/* ==========================================================================
   Wind Horse Tours — FAQ page styles
   Plain CSS, no framework, no build step. Safe to enqueue in WordPress.
   Everything is namespaced under .wh-faq so it cannot leak into the theme.
   ========================================================================== */

.wh-faq {
  /* Brand ---------------------------------------------------------------- */
  --wh-maroon: #791e30;
  --wh-maroon-dark: #5c1624;
  --wh-brick: #712822;
  --wh-gold: #eebc1d;

  /* Surfaces and text ---------------------------------------------------- */
  --wh-bg: var(--wh-page-bg, #f8f4ec);
  --wh-bg-alt: #f1e9dc;
  --wh-card: #fffdf9;
  --wh-ink: #2b1d1a;
  --wh-ink-soft: #3a2b27;
  --wh-muted: #6e5c57;
  --wh-line: #e6dccb;
  --wh-line-strong: #d9c9b3;
  --wh-focus: #712822;

  /* Type ----------------------------------------------------------------- */
  --wh-font-display: "Miller Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --wh-font-body: "Merriweather Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Rhythm --------------------------------------------------------------- */
  --wh-radius: 12px;
  --wh-gap: 24px;
  --wh-maxw: 1280px;

  font-family: var(--wh-font-body);
  color: var(--wh-ink);
  background: var(--wh-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Theme overrides -------------------------------------------------------------
   The theme's global stylesheet sets every heading to Open Sans and zeroes all
   margins. :where() keeps these at class-level weight, so the component rules
   below still win. */
.wh-faq :where(h1, h2, h3, h4, h5, h6) {
  font-family: inherit;
  font-weight: 700;
  margin: 0;
}

.wh-faq :where(button, input) {
  font-family: inherit;
}

.wh-faq a {
  color: var(--wh-maroon);
}

.wh-faq *,
.wh-faq *::before,
.wh-faq *::after {
  box-sizing: border-box;
}

.wh-faq :focus-visible {
  outline: 3px solid var(--wh-focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.wh-faq__inner {
  max-width: var(--wh-maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Screen-reader-only text --------------------------------------------------- */
.wh-faq__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Header / hero
   -------------------------------------------------------------------------- */
.wh-faq__hero {
  background: var(--wh-bg-alt);
  border-bottom: 1px solid var(--wh-line);
  padding: 40px 0 36px;
}

.wh-faq .wh-faq__crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  font-size: 13px;
  color: var(--wh-muted);
  margin-bottom: 18px;
  text-align: left;
}

.wh-faq__crumbs a {
  color: var(--wh-muted);
}

.wh-faq__title {
  font-family: var(--wh-font-display);
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.1;
  color: var(--wh-maroon);
  margin: 0 0 12px;
}

.wh-faq__standfirst {
  margin: 0;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--wh-ink-soft);
  max-width: 62ch;
}

.wh-faq__reviewed {
  font-size: 13px;
  color: var(--wh-muted);
  margin-top: 8px;
}

/* Search ------------------------------------------------------------------- */
.wh-faq__searchwrap {
  max-width: 900px;
  margin-top: 24px;
}

.wh-faq__label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--wh-ink-soft);
  margin-bottom: 8px;
}

.wh-faq__searchbox {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 2px solid var(--wh-maroon);
  border-radius: var(--wh-radius);
  padding: 0 16px;
  min-height: 60px;
}

.wh-faq__searchbox svg {
  flex: none;
}

.wh-faq__input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  color: var(--wh-ink);
  padding: 16px 0;
}

.wh-faq__input:focus {
  outline: none;
}

.wh-faq__input::placeholder {
  color: #8a7771;
}

.wh-faq__input::-webkit-search-cancel-button {
  display: none;
}

.wh-faq__clear {
  flex: none;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--wh-line);
  border-radius: 18px;
  background: var(--wh-bg);
  color: var(--wh-ink-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wh-faq__clear[hidden] {
  display: none;
}

/* Shortcut chips ----------------------------------------------------------- */
.wh-faq__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.wh-faq__chips-label {
  font-size: 13px;
  color: var(--wh-muted);
}

.wh-faq__chip {
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid var(--wh-line-strong);
  border-radius: 17px;
  background: var(--wh-card);
  color: var(--wh-maroon-dark);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wh-faq__chip:hover {
  background: var(--wh-bg-alt);
}

/* --------------------------------------------------------------------------
   Destination tabs
   -------------------------------------------------------------------------- */
.wh-faq__tabs {
  background: var(--wh-card);
  border-bottom: 1px solid var(--wh-line);
  position: sticky;
  top: var(--wh-faq-sticky-top, 0px);
  z-index: 20;
}

.wh-faq__tablist {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.wh-faq__tablist::-webkit-scrollbar {
  display: none;
}

.wh-faq__tab {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 0 18px;
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: var(--wh-ink-soft);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
  white-space: nowrap;
}

.wh-faq__tab:hover {
  color: var(--wh-maroon);
}

.wh-faq__tab[aria-selected="true"] {
  color: var(--wh-maroon);
  font-weight: 700;
  border-bottom-color: var(--wh-maroon);
}

.wh-faq__count {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--wh-bg-alt);
  color: #5a4843;
}

.wh-faq__tab[aria-selected="true"] .wh-faq__count {
  background: var(--wh-maroon);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Body layout
   -------------------------------------------------------------------------- */
.wh-faq__body {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 56px;
  padding: 40px 0 56px;
  align-items: start;
}

.wh-faq__rail {
  position: sticky;
  top: calc(var(--wh-faq-sticky-top, 0px) + 84px);
  display: grid;
  gap: 28px;
}

.wh-faq__railtitle {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-muted);
  padding: 0 14px 10px;
}

.wh-faq__topics {
  display: grid;
  gap: 4px;
}

.wh-faq__topic {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--wh-ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.wh-faq__topic[hidden] {
  display: none;
}

.wh-faq__topic:hover {
  background: var(--wh-bg-alt);
}

.wh-faq__topic[aria-pressed="true"] {
  background: var(--wh-maroon);
  color: #fff;
  font-weight: 700;
}

.wh-faq__topic-count {
  font-size: 12px;
  opacity: 0.85;
}

/* Contact card -------------------------------------------------------------- */
.wh-faq__help {
  background: var(--wh-maroon);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.wh-faq .wh-faq__help h2 {
  font-family: var(--wh-font-display);
  font-size: 22px;
  line-height: 1.2;
  margin: 0;
}

.wh-faq__help p {
  margin: 0;
  font-size: 14px;
  color: #f3dfe3;
}

.wh-faq__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 23px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
}

.wh-faq .wh-faq__btn--gold {
  background: var(--wh-gold);
  color: var(--wh-ink);
}

.wh-faq .wh-faq__btn--gold:hover {
  background: #d9aa15;
  color: var(--wh-ink);
}

.wh-faq .wh-faq__btn--ghost {
  border: 1px solid #f3dfe3;
  color: #fff;
  font-weight: 400;
}

.wh-faq .wh-faq__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --------------------------------------------------------------------------
   Answer list
   -------------------------------------------------------------------------- */
.wh-faq__listhead {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  margin-bottom: 16px;
}

.wh-faq__listtitle {
  font-family: var(--wh-font-display);
  font-weight: 700;
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0;
}

.wh-faq__listmeta {
  font-size: 13px;
  color: var(--wh-muted);
  flex: none;
}

.wh-faq__note {
  font-size: 14px;
  color: var(--wh-ink-soft);
  background: #fbf3d6;
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 16px;
}

.wh-faq__note[hidden] {
  display: none;
}

.wh-faq__list {
  display: grid;
  gap: 12px;
}

.wh-faq__item {
  background: var(--wh-card);
  border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius);
  overflow: hidden;
}

.wh-faq__item[hidden] {
  display: none;
}

.wh-faq__item.is-open {
  border-color: #c9a9ae;
}

/* Question button ----------------------------------------------------------- */
.wh-faq__q {
  margin: 0;
}

.wh-faq__trigger {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px 24px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: var(--wh-ink);
}

.wh-faq__trigger:hover {
  background: #fbf7f0;
}

.wh-faq__qtext {
  flex: 1 1 auto;
  display: grid;
  gap: 6px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
}

.wh-faq__badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-maroon);
}

.wh-faq__badge[hidden] {
  display: none;
}

.wh-faq__icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--wh-bg-alt);
  color: var(--wh-maroon);
  transition: transform 0.18s ease, background-color 0.18s ease;
}

.wh-faq__trigger[aria-expanded="true"] .wh-faq__icon {
  background: var(--wh-maroon);
  color: #fff;
  transform: rotate(45deg);
}

/* Answer -------------------------------------------------------------------- */
.wh-faq__a {
  padding: 0 24px 22px;
  max-width: 78ch;
}

.wh-faq__a[hidden] {
  display: none;
}

.wh-faq__a>*+* {
  margin-top: 14px;
}

.wh-faq__a p {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--wh-ink-soft);
}

.wh-faq__a strong {
  color: var(--wh-maroon);
}

.wh-faq__a :where(h2, h3, h4, h5) {
  font-size: 14px;
  margin: 0;
  color: var(--wh-ink);
}

.wh-faq__a ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--wh-ink-soft);
  list-style: disc;
}

.wh-faq__a ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 15px;
  color: var(--wh-ink-soft);
  list-style: decimal;
}

.wh-faq__a a {
  font-weight: 600;
}

.wh-faq__a img {
  max-width: 100%;
  height: auto;
}

.wh-faq__a table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.wh-faq__a :where(th, td) {
  padding: 6px 8px;
  border: 1px solid var(--wh-line);
  text-align: left;
}

/* Footer row of an answer ---------------------------------------------------- */
.wh-faq__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #efe6d8;
}

.wh-faq__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wh-faq__tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--wh-bg-alt);
  color: #5a4843;
}

.wh-faq__vote {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--wh-muted);
}

.wh-faq__votebtn {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--wh-line-strong);
  border-radius: 17px;
  background: #fff;
  color: var(--wh-ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.wh-faq__votebtn:hover {
  background: var(--wh-bg-alt);
}

.wh-faq__thanks {
  color: #2f6b3a;
  font-weight: 600;
}

.wh-faq__copy {
  border: 0;
  background: none;
  padding: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--wh-maroon);
  text-decoration: underline;
  cursor: pointer;
}

/* Empty state ---------------------------------------------------------------- */
.wh-faq__empty {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 48px 24px;
  background: var(--wh-card);
  border: 1px dashed var(--wh-line-strong);
  border-radius: var(--wh-radius);
}

.wh-faq__empty[hidden] {
  display: none;
}

.wh-faq__empty-title {
  font-size: 18px;
  font-weight: 700;
}

.wh-faq__empty p {
  margin: 0;
  font-size: 14px;
  color: var(--wh-muted);
}

/* --------------------------------------------------------------------------
   Trip bridge + footer band
   -------------------------------------------------------------------------- */
.wh-faq__trips {
  background: var(--wh-card);
  border-top: 1px solid var(--wh-line);
  padding: 48px 0;
}

.wh-faq__trips-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 24px;
}

.wh-faq__trips h2 {
  font-family: var(--wh-font-display);
  font-size: clamp(22px, 2.6vw, 32px);
  margin: 0 0 8px;
}

.wh-faq__trips p {
  margin: 0;
  font-size: 15px;
  color: var(--wh-ink-soft);
  max-width: 68ch;
}

.wh-faq__tripgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.wh-faq .wh-faq__tripcard {
  display: grid;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--wh-line);
  border-radius: 14px;
  background: var(--wh-bg);
  text-decoration: none;
  color: var(--wh-ink);
}

.wh-faq .wh-faq__tripcard:hover {
  border-color: var(--wh-maroon);
  color: var(--wh-ink);
}

.wh-faq__tripcard-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-maroon);
}

.wh-faq__tripcard-name {
  font-family: var(--wh-font-display);
  font-weight: 700;
  font-size: 22px;
}

.wh-faq__tripcard-meta {
  font-size: 14px;
  color: var(--wh-muted);
}

/* --------------------------------------------------------------------------
   Trip-page variant: <div class="wh-faq wh-faq--trip"> … </div>
   Same components, no hero, no rail.
   -------------------------------------------------------------------------- */
.wh-faq--trip {
  background: transparent;
  container-type: inline-size;
}

/* Stacked by default: on a trip page the block sits in a content column
   beside the price sidebar, so the essentials list only moves alongside
   the answers when the block itself is wide enough. */
.wh-faq--trip .wh-faq__body {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  padding: 0;
  gap: 28px;
}

.wh-faq--trip .wh-faq__rail {
  position: static;
}

@container (min-width: 820px) {
  .wh-faq--trip .wh-faq__body {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 28px;
  }

  .wh-faq--trip .wh-faq__rail {
    position: sticky;
    top: 90px;
  }

  .wh-faq--no-rail .wh-faq__body {
    grid-template-columns: minmax(0, 1fr);
  }
}

.wh-faq__help--trip {
  margin-top: 24px;
}

.wh-faq .wh-faq__related-all {
  font-weight: 700;
  color: var(--wh-maroon);
}

/* Trip-page section wrapper (itenerary-section-classic/ite-faq-section.php). */
.wh-trip-faqs__lede {
  margin: 6px 0 20px;
  font-size: 15px;
  color: var(--ink-2, #4a3a36);
}

.wh-faq__related {
  display: grid;
  gap: 0;
  padding: 24px;
  background: var(--wh-card);
  border: 1px solid var(--wh-line);
  border-radius: 14px;
}

.wh-faq .wh-faq__related h2 {
  font-family: var(--wh-font-body);
  line-height: 1.4;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wh-maroon);
  margin: 0 0 8px;
}

.wh-faq__related a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  border-bottom: 1px solid #efe6d8;
  color: var(--wh-ink);
  text-decoration: none;
  font-size: 15px;
}

.wh-faq__related a:last-of-type {
  border-bottom: 0;
}

.wh-faq__related a:hover {
  color: var(--wh-maroon);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {

  .wh-faq__body,
  .wh-faq--trip .wh-faq__body {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .wh-faq__rail {
    position: static;
    min-width: 0;
  }

  .wh-faq__rail>* {
    min-width: 0;
  }

  .wh-faq__topics {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .wh-faq__topics::-webkit-scrollbar {
    display: none;
  }

  .wh-faq__topic {
    border: 1px solid var(--wh-line-strong);
    border-radius: 22px;
  }

  .wh-faq__topic[aria-pressed="true"] {
    border-color: var(--wh-maroon);
  }

  .wh-faq__railtitle {
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  .wh-faq__inner {
    padding: 0 16px;
  }

  .wh-faq__hero {
    padding: 36px 0 24px;
  }

  /* clears the theme header's patterned border */
  .wh-faq__searchbox {
    min-height: 52px;
    padding: 0 14px;
  }

  .wh-faq__input {
    font-size: 16px;
    padding: 12px 0;
  }

  /* 16px stops iOS zooming */
  .wh-faq__trigger {
    padding: 16px;
    gap: 12px;
  }

  .wh-faq__qtext {
    font-size: 16px;
  }

  .wh-faq__a {
    padding: 0 16px 18px;
  }

  .wh-faq__meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .wh-faq__votebtn {
    min-height: 40px;
  }

  .wh-faq__tab {
    min-height: 52px;
    padding: 0 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wh-faq * {
    transition: none !important;
    animation: none !important;
  }
}

/* Print: every answer open, no controls ------------------------------------- */
@media print {
  .wh-faq {
    background: #fff;
  }

  .wh-faq__tabs,
  .wh-faq__searchwrap,
  .wh-faq__chips,
  .wh-faq__rail,
  .wh-faq__vote,
  .wh-faq__copy,
  .wh-faq__trips {
    display: none !important;
  }

  .wh-faq__a[hidden] {
    display: block !important;
  }

  .wh-faq__item {
    break-inside: avoid;
    border-color: #ccc;
  }

  .wh-faq__body {
    display: block;
  }
}

/* Trip with no answers of its own: link to the rest of that destination's FAQs. */
.wh-trip-faqs__all {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.wh-trip-faqs__all a {
  color: var(--wh-maroon, #791e30);
}