/* ==========================================================================
   Wind Horse Tours — guest reviews
   One stylesheet for every review surface: trip-page block, single review,
   reviews archive, guide profile, card variants.

   Everything is namespaced .wh- so it cannot collide with the theme.
   Palette: #791e30 primary · #eebc1d secondary · #712822 third
   Type: the itinerary fonts — Miller Display (headings, self-hosted in
         assets/fonts) and Merriweather Sans (body)
   ========================================================================== */

@font-face {
  font-family: "Miller Display";
  src: url('../fonts/MillerDisplay-Roman.woff') format('woff');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Miller Display";
  src: url('../fonts/MillerDisplay-Semibold.woff') format('woff');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Miller Display";
  src: url('../fonts/MillerDisplay-SemiboldItal.woff') format('woff');
  font-weight: 600; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Miller Display";
  src: url('../fonts/MillerDisplay-Bold.woff') format('woff');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --wh-maroon: #791e30;
  --wh-maroon-dark: #712822;
  --wh-gold: #eebc1d;
  --wh-gold-ink: #c9971a;          /* gold dark enough to read on white */
  --wh-ink: #2b1a1e;
  --wh-ink-soft: #3d2a2f;
  --wh-muted: #6f5b60;
  --wh-line: #e8dcd9;
  --wh-line-soft: #f4ebe8;
  --wh-paper: #faf6f3;
  --wh-white: #ffffff;
  --wh-tint: #f3e7e9;

  --wh-display: "Miller Display", "Miller Display Bold", "Playfair Display", Georgia, "Times New Roman", serif;
  --wh-heading: var(--wh-display);
  --wh-body: "Merriweather Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wh-radius: 4px;
  --wh-gap: 20px;
  --wh-max: 1280px;
}

/* --------------------------------------------------------------- scaffold */
.wh { font-family: var(--wh-body); color: var(--wh-ink); line-height: 1.6; }
.wh .wh-btn.wh-btn--solid.wh-btn--block {
	color: #fff;
}
.wh *, .wh *::before, .wh *::after { box-sizing: border-box; }
.wh-wrap { max-width: var(--wh-max); margin: 0 auto; padding: 0 24px; }
.wh-section { padding: 56px 0; background: var(--wh-paper); }
.wh-stack { display: flex; flex-direction: column; gap: var(--wh-gap); }

.wh a { color: var(--wh-maroon); }
/* .wh a:hover { color: var(--wh-maroon-dark); } */
.wh :focus-visible { outline: 2px solid var(--wh-gold); outline-offset: 2px; }

.wh-eyebrow {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--wh-muted); font-weight: 700; margin: 0;
}
.wh-h1 { font-family: var(--wh-display); font-weight: 400; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.1; margin: 0; text-wrap: balance; }
.wh-h2 { font-family: var(--wh-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 40px); line-height: 1.12; margin: 0; text-wrap: balance; }
.wh-h3 { font-family: var(--wh-heading); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0; }
.wh-lede { font-size: 16px; color: #5c494e; line-height: 1.7; margin: 0; }
.wh-note { font-size: 12.5px; color: var(--wh-muted); line-height: 1.6; margin: 0; }

.wh-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ stars */
/* <span class="wh-stars" role="img" aria-label="Rated 5 out of 5">
     <span class="wh-stars__fill" style="width:100%"></span></span>          */
.wh-stars {
  position: relative; display: inline-block; white-space: nowrap;
  color: #ddd0cd; font-size: 15px; line-height: 1; vertical-align: -1px;
  font-family: "Font Awesome 5 Free"; font-weight: 900; letter-spacing: 3px;
  -webkit-font-smoothing: antialiased;
}
/* Font Awesome solid star (\f005) five times: grey behind, gold on top, cut to the rating from the left. */
.wh-stars__fill {
  color: var(--wh-gold-ink); white-space: nowrap;
}
.wh-stars__fill::before { content: "\f005\f005\f005\f005\f005"; }
.wh-stars--lg { font-size: 22px; letter-spacing: 5px; }

/* ---------------------------------------------------------------- summary */
.wh-summary {
  background: var(--wh-white); border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.wh-summary__score { display: flex; align-items: baseline; gap: 10px; }
.wh-summary__score b { font-family: var(--wh-display); font-size: 54px; font-weight: 400; line-height: 1; }
.wh-summary__score span { font-size: 13px; color: var(--wh-muted); }
.wh-summary__count { font-size: 13px; color: var(--wh-muted); }
.wh-summary__count strong { color: var(--wh-ink); }

.wh-bars { display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--wh-line-soft); padding-top: 16px; margin: 0; }
.wh-bar { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--wh-muted); }
.wh-bar__label { width: 28px; }
.wh-bar__track { flex-grow: 1; height: 7px; background: #efe6e3; border-radius: 4px; overflow: hidden; }
.wh-bar__fill { display: block; height: 7px; background: var(--wh-maroon); }
.wh-bar__n { width: 20px; text-align: right; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- review card */
.wh-review {
  background: var(--wh-white); border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius); padding: 24px 26px;
  display: flex; flex-direction: column; gap: 11px;
}
.wh-review__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wh-review__title { font-family: var(--wh-heading); font-weight: 700; font-size: 20px; line-height: 1.3; margin: 0; }
.wh-review__title a { color: var(--wh-ink); text-decoration: none; }
.wh-review__title a:hover { color: var(--wh-maroon); }
.wh-review__body { margin: 0; font-size: 15px; line-height: 1.7; color: var(--wh-ink-soft); }
.wh-review__meta {
  font-size: 12.5px; color: var(--wh-muted);
  border-top: 1px solid var(--wh-line-soft); padding-top: 11px;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
}
.wh-review__meta strong { color: var(--wh-ink); font-weight: 600; }
.wh-review__meta a { text-decoration: none; border-bottom: 1px solid #e0c9cd; }
.wh-review--quote .wh-review__body { font-family: var(--wh-heading); font-size: 17px; line-height: 1.55; }

.wh-chip {
  display: inline-block; background: var(--wh-tint); color: var(--wh-maroon);
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 3px;
}
.wh-chip--plain { background: var(--wh-paper); color: var(--wh-muted); border: 1px solid var(--wh-line); font-weight: 400; }

/* office reply under a review */
.wh-reply {
  background: #f8f3ef; border: 1px solid #ece0d6; border-radius: 3px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 5px;
}
.wh-reply__who { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--wh-muted); font-weight: 700; }
.wh-reply p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--wh-ink-soft); }

/* photos attached to a review */
.wh-photos { display: flex; gap: 10px; flex-wrap: wrap; }
.wh-photos img, .wh-photo {
  width: 210px; height: 140px; object-fit: cover;
  border-radius: var(--wh-radius); border: 1px solid var(--wh-line);
  background: #efe3df;
}
.wh-photos--sm img, .wh-photos--sm .wh-photo { width: 64px; height: 48px; }

/* --------------------------------------------------------------- layouts */
.wh-block { display: flex; gap: 40px; align-items: flex-start; }
.wh-block__aside { width: 300px; flex-shrink: 0; }
.wh-block__main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--wh-gap); }

.wh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--wh-gap); }

.wh-head {
  display: flex; flex-direction: column; gap: 18px;
  border-bottom: 1px solid var(--wh-line); padding-bottom: 22px;
}
.wh-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.wh-head__score { text-align: right; display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.wh-head__score b { font-family: var(--wh-display); font-size: 30px; font-weight: 400; }

/* -------------------------------------------------------------- controls */
.wh-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wh-filters label { font-size: 12px; color: var(--wh-muted); font-weight: 600; }
.wh-filters select {
  font: inherit; font-size: 13px; padding: 9px 12px; color: var(--wh-ink);
  border: 1px solid #ded0cd; border-radius: var(--wh-radius); background: var(--wh-white);
}
/* trip names are long; keep the trip select compact (the open list still shows full names) */
.wh-filters #f-trip, .wh-filters #f-guide { width: 180px; text-overflow: ellipsis; }
.wh-filters__spacer { flex-grow: 1; }

/* scoped to .wh: the footer's shortlist link also uses .wh-btn */
.wh .wh-btn {
  display: inline-block; text-align: center; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 13px 24px;
  border-radius: var(--wh-radius); border: 1px solid var(--wh-maroon);
  color: var(--wh-maroon); background: var(--wh-white); cursor: pointer;
}
.wh .wh-btn:hover { background: var(--wh-tint); color: var(--wh-maroon); }
.wh .wh-btn--solid { background: var(--wh-maroon); color: #fff; }
.wh .wh-btn--solid:hover { background: var(--wh-maroon-dark); color: #fff; }
.wh .wh-btn--block { display: block; width: 100%; }

.wh-more { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

.wh-results { display: flex; flex-direction: column; gap: var(--wh-gap); transition: opacity .15s; }
.wh-results[aria-busy="true"] { opacity: .45; pointer-events: none; }

.wh-pagination { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 8px; }
.wh-pagination a, .wh-pagination span {
  min-width: 44px; height: 44px; border-radius: var(--wh-radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; text-decoration: none; padding: 0 12px;
  border: 1px solid #ded0cd; background: var(--wh-white); color: var(--wh-ink);
}
.wh-pagination .is-current { background: var(--wh-maroon); border-color: var(--wh-maroon); color: #fff; font-weight: 700; }
.wh-pagination .wh-dots { border: 0; background: none; color: #a99194; min-width: 0; }

/* ------------------------------------------------------- single review page */
.wh-single { display: flex; gap: 48px; align-items: flex-start; }
.wh-single__main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.wh-single__aside { width: 332px; flex-shrink: 0; display: flex; flex-direction: column; gap: 18px; }
.wh-single__body { display: flex; flex-direction: column; gap: 16px; }
.wh-single__body p { margin: 0; font-size: 17px; line-height: 1.75; color: var(--wh-ink-soft); }
/* older reviews were pasted from email, as <div>s rather than <p>s */
.wh-single__body > div { font-size: 17px; line-height: 1.75; color: var(--wh-ink-soft); }
.wh-single__body img { max-width: 100%; height: auto; }
.wh-byline { font-size: 13.5px; color: var(--wh-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.wh-byline strong { color: var(--wh-ink); font-weight: 600; }

.wh-crumbs { font-size: 12px; color: var(--wh-muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-start;}
.wh-crumbs a { text-decoration: none; color:  var(--wh-maroon) }
.wh-crumbs span[aria-hidden] { color: #c9b6b8; }

/* words for the guide */
.wh-guide-words {
  background: var(--wh-white); border: 1px solid var(--wh-line); border-radius: var(--wh-radius);
  padding: 22px 24px; display: flex; gap: 18px; align-items: flex-start; max-width: 660px; margin: 0;
}
.wh-avatar {
  width: 54px; height: 54px; border-radius: 50%; flex-shrink: 0;
  background: var(--wh-tint); color: var(--wh-maroon);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--wh-heading); font-size: 18px; object-fit: cover;
}
.wh-guide-words p { margin: 0; font-family: var(--wh-heading); font-size: 17px; line-height: 1.6; font-style: italic; color: var(--wh-ink-soft); }
.wh-guide-words footer { font-size: 12.5px; color: var(--wh-muted); }

/* trip card in the sidebar */
.wh-tripcard { background: var(--wh-white); border: 1px solid var(--wh-line); border-radius: var(--wh-radius); overflow: hidden; }
.wh-tripcard__img { display: block; width: 100%; height: 132px; object-fit: cover; background: #e9ddd9; border-bottom: 1px solid var(--wh-line); }
.wh-tripcard__in { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.wh-tripcard__facts { font-size: 13px; color: var(--wh-muted); line-height: 1.7; }
.wh-tripcard__rating { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--wh-muted); border-top: 1px solid var(--wh-line-soft); padding-top: 12px; }

.wh-linklist { background: var(--wh-white); border: 1px solid var(--wh-line); border-radius: var(--wh-radius); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.wh-linklist a { text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.wh-linklist a + a { border-top: 1px solid var(--wh-line-soft); padding-top: 12px; }
.wh-linklist a span:first-child {  font-size: 15px; color: var(--wh-ink); }
.wh-linklist a span + span { font-size: 12px; color: var(--wh-muted); }

/* ------------------------------------------------------------ guide profile */
.wh-profile { display: flex; gap: 40px; align-items: flex-start; }
.wh-profile__aside { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.wh-profile__photo { width: 100%; height: 340px; object-fit: cover; border-radius: var(--wh-radius); border: 1px solid var(--wh-line); background: #e9ddd9; }
.wh-profile__main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.wh-profile__bio { margin: 0; font-size: 16px; line-height: 1.75; color: var(--wh-ink-soft); max-width: 62ch; }
.wh-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.wh-tag { background: var(--wh-white); border: 1px solid #e0d2ce; border-radius: 3px; font-size: 12px; padding: 5px 11px; color: #4c3a3f; text-decoration: none; }

.wh-quote {
  margin: 0; background: var(--wh-white); border: 1px solid var(--wh-line);
  border-radius: var(--wh-radius); padding: 20px; display: flex; flex-direction: column; gap: 9px;
}
.wh-quote p { margin: 0; font-family: var(--wh-heading); font-size: 16px; line-height: 1.6; font-style: italic; color: var(--wh-ink-soft); }
.wh-quote footer { font-size: 12px; color: var(--wh-muted); }
.wh-quote footer a { text-decoration: none; border-bottom: 1px solid #e0c9cd; }

/* a trip with no reviews yet — render this INSTEAD of an empty rating */
.wh-empty {
  border: 1px dashed #ded0cd; border-radius: var(--wh-radius); padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.wh-empty b { font-size: 13.5px; }
.wh-empty span { font-size: 12.5px; color: var(--wh-muted); line-height: 1.6; }

/* --------------------------------------------------- trip page reviews block */
/* Sits in the trip page's content column (beside its 336px sidebar), so it
   stacks by the column's width rather than the screen's. */
.wh-trip-reviews { container-type: inline-size; }
.wh-trip-reviews .wh-h2 { margin-bottom: 24px; }
.wh-trip-reviews .wh-eyebrow { margin-bottom: 14px; }
.wh-trip-reviews .wh-review__title a { color: var(--wh-ink); text-decoration: none; }
.wh-trip-reviews .wh-review__title a:hover { color: var(--wh-maroon); }
.wh-trip-reviews .wh-block__aside { width: 260px; position: sticky; top: 90px; }
@container (max-width: 720px) {
  .wh-trip-reviews .wh-block { flex-direction: column; gap: 24px; }
  .wh-trip-reviews .wh-block__aside { width: 100%; position: static; }
}
.sec-acc .wh-trip-reviews { font-size: 15px; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .wh-block, .wh-single, .wh-profile { flex-direction: column; gap: 28px; }
  .wh-block__aside, .wh-single__aside, .wh-profile__aside { width: 100%; }
  .wh-grid { grid-template-columns: minmax(0, 1fr); }
  .wh-single__body p { font-size: 16px; }
}
@media (max-width: 560px) {
  .wh-section { padding: 36px 0; }
  .wh-wrap { padding: 0 16px; }
  .wh-review { padding: 18px; }
  .wh-review__title { font-size: 17px; }
  .wh-review__body { font-size: 13.5px; }
  .wh-summary { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
  .wh-summary__score b { font-size: 34px; }
  .wh-bars, .wh-summary__note { display: none; }      /* keep the phone block short */
  .wh-photos img, .wh-photo { width: 100%; height: 180px; }
  .wh-filters select { flex: 1 1 140px; }
  .wh-filters #f-trip, .wh-filters #f-guide { width: auto; min-width: 0; }
  .wh-profile__photo { height: 260px; }
}

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

/* --------------------------------------------------------------- printing */
@media print {
  .wh-filters, .wh-pagination, .wh .wh-btn { display: none; }
  .wh-section { background: #fff; }
  .wh-review { break-inside: avoid; }
}
