/* ==========================================================================
   Windhorse Tours – Places directory (town, sight, hike, trek, hotel pages)
   template-parts/places/*.php. Everything is scoped to .whp so it cannot
   clash with the theme; colours and fonts are the variables below.
   ========================================================================== */

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

.whp {
  --bg: #ffffff; --stone: #f5f0f0; --panel: #ffffff; --ink: #2b1a1e; --muted: #6c5b5f; --line: #e7dcdd;
  --brand: #791e30; --brand-text: #791e30; --brand-deep: #712822; --gold: #eebc1d; --gold-text: #7d5f00;
  --on-brand: #ffffff; --land: #efe9e4;
  --c-sight: #791e30; --c-trek: #2f6b4f; --c-hotel: #b98a00; --c-restaurant: #5a4a9e; --c-festival: #b0306a; --c-pass: #4b5a6b; --c-shop: #0f6f68;
  --serif: "Miller Display", "Miller Display Bold", Georgia, "Times New Roman", serif;
  --sans: "Merriweather Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--wh-page-bg, var(--bg)); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6;
  padding-bottom: 64px;
}
.whp *, .whp *::before, .whp *::after { box-sizing: border-box; }
.whp img { max-width: 100%; display: block; }
.whp a { color: var(--brand-text); }
.whp button, .whp input, .whp select { font: inherit; color: inherit; }
.whp :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.whp h1, .whp h2, .whp h3, .whp h4 { font-family: var(--serif); font-weight: 700; line-height: 1.15; margin: 0; color: var(--ink); letter-spacing: 0; text-transform: none; }
.whp p { margin: 0 0 1em; }
.whp ul, .whp ol { margin: 0; padding: 0; }
.whp [hidden] { display: none !important; }
.whp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

.whp-crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 14px; }
.whp-crumbs a { color: var(--muted); text-decoration: none; }
.whp-crumbs a:hover { text-decoration: underline; }
.whp-crumbs [aria-current] { color: var(--ink); }
.whp-crumbs .sep { margin: 0 6px; opacity: .6; }

.whp-nophoto { display: grid; place-items: center; width: 100%; height: 100%; background: var(--stone); }
.whp-nophoto span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--brand-text); display: grid; place-items: center; font-family: var(--serif); color: var(--brand-text); font-size: 17px; line-height: 1; }
.whp-credit { font-size: 12px; color: var(--muted); margin: 6px 0 0; }

/* Town hero */
.whp-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; align-items: start; padding-bottom: 28px; }
.whp-hero > div:nth-child(2) { position: sticky; top: 16px; margin-top: 12px; }
.whp-readmore { border: 0; background: none; padding: 0; color: var(--brand-text); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.whp-hero.slim { grid-template-columns: minmax(0, 1fr); max-width: 820px; padding-bottom: 8px; }
.whp-hero-ph { aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; background: var(--stone); }
.whp-hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.whp-hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.01em; }
.whp-hero.slim h1 { font-size: clamp(36px, 5.5vw, 60px); }
.whp-region { color: var(--muted); margin: 6px 0 22px; }
.whp-alt-big { display: flex; align-items: baseline; gap: 12px; border-top: 2px solid var(--brand-text); padding-top: 12px; margin-bottom: 18px; }
.whp-alt-big b { font-family: var(--serif); font-size: 40px; font-weight: 400; color: var(--brand-text); }
.whp-alt-big span { color: var(--muted); font-size: 15px; }
.whp-intro { max-width: 62ch; }
.whp-intro p:last-child { margin-bottom: 0; }
.whp-facts-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 8px 0 40px; }
.whp-facts-row div { padding: 14px 18px 14px 0; }
.whp-facts-row div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.whp-facts-row dt { font-size: 13px; color: var(--muted); }
.whp-facts-row dd { margin: 2px 0 0; font-weight: 600; }
@media (max-width: 860px) {
  .whp-hero { grid-template-columns: minmax(0, 1fr); }
  .whp-hero > div:last-child:not(:first-child) { order: -1; }
  .whp-facts-row { grid-auto-flow: row; grid-template-columns: minmax(0, 1fr); }
  .whp-facts-row div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}

/* Directory */
.whp-dir-head .whp-dir-title { font-family: var(--serif); font-weight: 700; line-height: 1.15; font-size: 32px; margin: 0 0 14px; color: var(--ink); }
.whp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.whp-chip { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 13px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.whp-chip .dot, .whp-type .dot { width: 9px; height: 9px; border-radius: 50%; }
.whp-chip .n, .whp-ghead .n { color: var(--muted); font-size: 12px; font-family: var(--sans); font-weight: 400; }
.whp-chip[aria-pressed="true"] { border-color: var(--brand-text); box-shadow: inset 0 0 0 1px var(--brand-text); font-weight: 600; }
.whp-toolbar { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.whp-toolbar label { font-size: 14px; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 0; }
.whp-toolbar select { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; background: var(--panel); }
.whp-count { font-size: 14px; color: var(--muted); }
.whp-filters { display: flex; flex-direction: column; gap: 8px; }
.whp-seg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.whp-seg button { border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 4px 10px; cursor: pointer; }
.whp-seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.whp-seg.gold button[aria-pressed="true"] { background: var(--gold); color: #2b1a1e; border-color: var(--gold); }
.whp-sort-note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.whp-directory { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; margin-top: 6px; }
.whp-directory.no-map { grid-template-columns: minmax(0, 1fr); }
.whp-list { list-style: none; }
.whp-ghead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 21px; margin: 30px 0 0; padding-bottom: 6px; border-bottom: 2px solid var(--brand-text); line-height: 1.15; }
.whp-group:first-child .whp-ghead { margin-top: 10px; }
.whp-ghead h2 { display: inline; font-size: inherit; line-height: inherit; margin: 0; padding: 0; border: 0; }
.whp-ghead .how { font-family: var(--sans); font-size: 12px; font-weight: 400; color: var(--muted); }
.whp-empty { padding: 20px 0; color: var(--muted); margin: 0; }

.whp-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); position: relative; }
.whp-row.sel { background: linear-gradient(90deg, var(--stone), transparent); }
.whp-row .whp-ph { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--stone); }
.whp-row .whp-ph img { width: 100%; height: 100%; object-fit: cover; }
.whp-type { font-size: 13px; display: flex; align-items: center; gap: 6px; color: var(--muted); }
.whp-type .dot { width: 8px; height: 8px; }
.whp-row h3 { font-size: 22px; margin: 2px 0 4px; }
.whp-row h3 a { color: var(--ink); text-decoration: none; }
.whp-row h3 a:hover { color: var(--brand-text); text-decoration: underline; }
.whp-row p { margin: 0 0 8px; color: var(--muted); font-size: 15px; max-width: 60ch; }
.whp-row.compact { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; padding: 14px 0; }
.whp-row.compact .whp-ph { aspect-ratio: 1; }
.whp-row.compact h3 { font-size: 19px; }
.whp-row.compact p { font-size: 14px; margin-bottom: 6px; }
.whp-pin { position: absolute; z-index: 2; left: 6px; top: 24px; min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: none; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.whp-directory:not(.no-map) .whp-row[data-lat] .whp-pin { display: grid; }
.whp-row.compact .whp-pin { top: 18px; left: -6px; }
.whp-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; align-items: center; }
.whp-badge { display: inline-block; font-size: 12px; border-radius: 4px; padding: 1px 7px; border: 1px solid currentColor; line-height: 1.5; }
.whp-badge.pick { color: var(--brand-text); }
.whp-badge.used { color: var(--c-trek); }
.whp-badge.cls { color: var(--gold-text); }
.whp-dates { margin-top: 8px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.whp-dates .tent { color: var(--muted); font-size: 13px; }
.whp-dates a { font-size: 13px; }
.whp-showmore { margin: 14px 0 0; border: 1px solid var(--line); background: var(--panel); border-radius: 6px; padding: 9px 16px; cursor: pointer; font-weight: 600; color: var(--brand-text); }
@media (max-width: 560px) {
  .whp-row { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .whp-row h3 { font-size: 19px; }
}

.whp-mapbox { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--land); }
.whp-map { height: 520px; }
.whp-mapcap { font-size: 12px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.whp-minimap { height: 220px; border-top: 1px solid var(--line); }
.whp-marker { background: none; border: 0; }
.whp-marker svg { display: block; overflow: visible; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3)); }
.whp-marker .halo { opacity: 0; transition: opacity .15s; }
.whp-marker.sel .halo { opacity: 1; }
.whp-maplegend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--muted); }
.whp-maplegend span { display: inline-flex; align-items: center; gap: 5px; }
.whp-maplegend i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 10px; font-weight: 700; }
.whp-maplegend svg, .whp-pin svg { display: block; }
@media (max-width: 980px) {
  .whp-directory { grid-template-columns: minmax(0, 1fr); }
  .whp-mapbox { position: relative; top: 0; order: -1; }
  .whp-map { height: 320px; }
}

/* Sections */
.whp-block { padding: 48px 0 8px; }
.whp-block > h2, .whp-h2 { font-size: 30px; margin-bottom: 6px; }
.whp-h2 { font-size: 26px; margin: 24px 0 12px; }
.whp-sub { color: var(--muted); margin: 0 0 20px; font-size: 15px; }
.whp-triplist { list-style: none; max-width: 680px; }
.whp-triplist li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.whp-triplist li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-text); transform: translateY(-2px); }
.whp-triplist a { font-weight: 700; color: var(--ink); text-decoration: none; }
.whp-triplist a:hover { color: var(--brand-text); text-decoration: underline; }
.whp-triplist .why { display: block; font-size: 14px; color: var(--muted); }
.whp-triplist .dur { font-size: 13px; color: var(--muted); white-space: nowrap; }
.whp-reads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.whp-read { border-left: 3px solid var(--brand-text); padding: 4px 0 4px 18px; }
.whp-read .kind { font-size: 13px; color: var(--brand-text); font-weight: 600; }
.whp-read h3 { font-size: 22px; margin: 4px 0 6px; }
.whp-read h3 a { color: var(--ink); text-decoration: none; }
.whp-read h3 a:hover { color: var(--brand-text); text-decoration: underline; }
.whp-read p { color: var(--muted); font-size: 15px; margin: 0 0 8px; }
.whp-read .by { font-size: 13px; color: var(--muted); }
.whp-tips { max-width: 62ch; padding-left: 20px !important; }
.whp-tips li { margin: 0 0 6px; }
@media (max-width: 760px) { .whp-reads { grid-template-columns: minmax(0, 1fr); } }

/* Thumbnails + lightbox */
.whp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.whp-thumbs button { width: 96px; height: 72px; padding: 0; border: 0; border-radius: 4px; overflow: hidden; cursor: zoom-in; background: var(--stone); }
.whp-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.whp-thumbs .more { display: grid; place-items: center; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); background: none; cursor: pointer; }
.whp-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: grid; place-items: center; z-index: 100000; padding: 20px; }
.whp-lightbox figure { margin: 0; max-width: 1000px; width: 100%; }
.whp-lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 4px; }
.whp-lightbox figcaption { color: #eee; font-size: 14px; margin-top: 8px; display: flex; justify-content: space-between; gap: 10px; }
.whp-lightbox button { background: none; border: 1px solid #aaa; color: #fff; border-radius: 6px; padding: 4px 12px; cursor: pointer; }

/* Sight page */
.whp-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: min(460px, 60vw); border-radius: 6px; overflow: hidden; }
.whp-gallery.count-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.whp-gallery.count-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.whp-gallery.count-3 { grid-template-columns: 2fr 1fr; }
.whp-gallery.count-4 { grid-template-columns: 2fr 1fr 1fr; }
.whp-gallery.count-4 .whp-gph:nth-child(4) { grid-column: 2 / 4; }
.whp-gph { position: relative; padding: 0; border: 0; cursor: zoom-in; background: var(--stone); overflow: hidden; }
.whp-gph img { width: 100%; height: 100%; object-fit: cover; }
.whp-gph:first-child { grid-row: 1 / 3; }
.whp-gallery.count-1 .whp-gph:first-child, .whp-gallery.count-2 .whp-gph:first-child { grid-row: auto; }
.whp-gph .more { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.6); color: #fff; border-radius: 4px; padding: 3px 9px; font-size: 13px; }
@media (max-width: 640px) {
  .whp-gallery, .whp-gallery[class*="count-"] { grid-template-columns: 1fr 1fr; grid-template-rows: none; height: auto; }
  .whp-gph { aspect-ratio: 4 / 3; }
  .whp-gph:first-child { grid-column: 1 / 3; grid-row: auto; }
  .whp-gph:nth-child(n+4) { display: none; }
}
.whp-place { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-top: 28px; align-items: start; }
.whp-place h1 { font-size: clamp(38px, 5.5vw, 60px); }
.whp-aka { color: var(--muted); margin: 6px 0 18px; }
.whp-desc { max-width: 66ch; font-size: 17px; }
.whp-desc > p:first-child::first-letter { font-family: var(--serif); float: left; font-size: 64px; line-height: .85; padding: 6px 8px 0 0; color: var(--brand-text); }
@media (max-width: 980px) { .whp-place { grid-template-columns: minmax(0, 1fr); } }

.whp-factbox { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); position: sticky; top: 16px; overflow: hidden; }
.whp-factbox h2 { font-size: 22px; padding: 16px 18px 0; }
.whp-factbox .checked { font-size: 12px; color: var(--muted); padding: 2px 18px 10px; margin: 0; }
.whp-gauge { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 18px 16px; border-bottom: 1px solid var(--line); }
.whp-gauge svg { height: 190px; width: 80px; }
.whp-gauge .lbls { position: relative; height: 190px; font-size: 13px; }
.whp-gauge .lbls div { position: absolute; left: 0; transform: translateY(-50%); line-height: 1.25; }
.whp-gauge .lbls b { font-family: var(--serif); font-size: 18px; display: block; }
.whp-gauge .lbls .top b { font-size: 26px; color: var(--brand-text); }
.whp-gauge .lbls small { color: var(--muted); }
.whp-facts { margin: 0; padding: 6px 18px 14px; }
.whp-facts div { display: grid; grid-template-columns: 118px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.whp-facts div:last-child { border-bottom: 0; }
.whp-facts dt { color: var(--muted); }
.whp-facts dd { margin: 0; }
.whp-fees { width: 100%; border-collapse: collapse; font-size: 14px; }
.whp-fees td { padding: 2px 0; vertical-align: top; border: 0; }
.whp-fees td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 8px; }
.whp-diff { display: inline-flex; gap: 3px; vertical-align: middle; margin-right: 6px; }
.whp-diff i { width: 14px; height: 6px; border-radius: 2px; background: var(--line); }
.whp-diff i.on { background: var(--brand-text); }

/* Hike / trek */
.whp-profile { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 14px 14px 6px; overflow-x: auto; }
.whp-profile svg { min-width: 620px; display: block; width: 100%; height: auto; }
.whp-trekstats { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-top: 2px solid var(--brand-text); border-bottom: 1px solid var(--line); margin: 22px 0 10px; }
.whp-trekstats div { padding: 12px 14px 12px 0; }
.whp-trekstats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.whp-trekstats dt { font-size: 13px; color: var(--muted); }
.whp-trekstats dd { margin: 0; font-family: var(--serif); font-size: 26px; }
@media (max-width: 760px) {
  .whp-trekstats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whp-trekstats div, .whp-trekstats div + div { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); }
}
.whp-trekgrid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; margin-top: 36px; align-items: start; }
@media (max-width: 980px) { .whp-trekgrid { grid-template-columns: minmax(0, 1fr); } }
.whp-days { list-style: none; }
.whp-day { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.whp-day .no { font-family: var(--serif); color: var(--brand-text); line-height: 1; }
.whp-day .no small { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.whp-day .no b { font-size: 40px; font-weight: 400; }
.whp-day h3 { font-size: 22px; }
.whp-day .stagefacts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); margin: 6px 0 8px; }
.whp-day .stagefacts b { color: var(--ink); }
.whp-day p { margin: 0; max-width: 62ch; }

/* Hotel */
.whp-subline { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0 14px; font-size: 15px; color: var(--muted); }
.whp-why { border-left: 3px solid var(--gold); background: var(--stone); padding: 12px 16px; border-radius: 0 4px 4px 0; margin: 18px 0 0; max-width: 66ch; }
.whp-why b { display: block; font-size: 13px; color: var(--gold-text); }
.whp-why p { margin: 4px 0 0; }
.whp-rooms { list-style: none; }
.whp-room { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.whp-room .whp-ph { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--stone); }
.whp-room .whp-ph img { width: 100%; height: 100%; object-fit: cover; }
.whp-room h3 { font-size: 19px; }
.whp-room .cat { font-size: 13px; color: var(--muted); }
.whp-room .rf { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; margin-top: 6px; }
.whp-room .cnt { font-family: var(--serif); font-size: 26px; line-height: 1; text-align: right; }
.whp-room .cnt small { display: block; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.whp-roomtotal { display: flex; justify-content: space-between; padding: 10px 0; font-weight: 700; font-size: 14px; max-width: 100%; }
@media (max-width: 560px) {
  .whp-room { grid-template-columns: 72px minmax(0, 1fr); }
  .whp-room .cnt { grid-column: 2; text-align: left; }
}
.whp-amen { list-style: none; margin: 6px 0 0; columns: 3 190px; column-gap: 24px; font-size: 14px; }
.whp-amen li { break-inside: avoid; padding: 3px 0 3px 22px; position: relative; }
.whp-amen li::before { content: "\2713"; position: absolute; left: 0; color: var(--c-trek); font-weight: 700; }
.whp-amen.no li { color: var(--muted); }
.whp-amen.no li::before { content: "\2715"; color: var(--muted); font-weight: 400; }
.whp-amgroup { margin-top: 14px; }
.whp-amgroup h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: var(--muted); }
.whp-policy { margin: 0; max-width: 680px; }
.whp-policy div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.whp-policy dt { color: var(--muted); }
.whp-policy dd { margin: 0; }
@media (max-width: 560px) { .whp-policy div { grid-template-columns: 1fr; gap: 2px; } }

@media (prefers-reduced-motion: reduce) { .whp * { transition: none !important; scroll-behavior: auto !important; } }
.whp-more-link { margin: 12px 0 0; font-size: 14.5px; font-weight: 600; }

/* ==========================================================================
   Sights directory: /sights/ and /sights/{country}/ (template-parts/places/directory.php)
   ========================================================================== */
.whd .whd-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Hero */
.whd-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; padding: 8px 0 40px; }
.whd-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-text); margin: 0 0 14px !important; }
.whd-eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.whd-hero h1 { font-size: clamp(40px, 5.6vw, 70px); letter-spacing: -.015em; line-height: 1.02; }
.whd-hero h1 span { font-weight: 400; color: var(--muted); }
.whd-lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 18px 0 24px !important; }
.whd-stats { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 0 0 26px; padding-top: 14px; border-top: 2px solid var(--brand-text); }
.whd-stats div { display: flex; flex-direction: column-reverse; }
.whd-stats dd { margin: 0; font-family: var(--serif); font-size: 40px; line-height: 1.05; color: var(--brand-text); font-variant-numeric: lining-nums; }
.whd-stats dt { font-size: 13px; color: var(--muted); }
.whd-search { display: flex; align-items: center; gap: 10px; max-width: 540px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 18px; box-shadow: 0 1px 2px rgba(43,26,30,.06), 0 10px 28px rgba(43,26,30,.08); }
.whd-search:focus-within { border-color: var(--brand-text); }
.whd-search svg { color: var(--muted); flex: none; }
.whd-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; font-size: 16px; outline: 0; }
.whd-search input::-webkit-search-cancel-button { cursor: pointer; }
.whd-search button { border: 0; background: var(--brand); color: var(--on-brand); border-radius: 999px; padding: 10px 20px; font-weight: 700; cursor: pointer; }
.whd-search button:hover { background: var(--brand-deep); }
.whd-mosaic { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; aspect-ratio: 5 / 4; }
.whd-mosaic.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.whd-mosaic.n2 { grid-template-rows: 1fr; }
.whd-mosaic figure { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--stone); min-height: 0; }
.whd-mosaic.n3 figure:first-child { grid-row: 1 / 3; }
.whd-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.whd-mosaic figcaption { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
.whd-mosaic figcaption a { display: inline-block; background: rgba(43,26,30,.72); color: #fff !important; font-size: 12.5px; font-weight: 600; text-decoration: none; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.whd-mosaic figcaption a:hover { background: var(--brand); }

/* Country tabs */
.whd-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.whd-tabs a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 15px; color: var(--ink) !important; text-decoration: none; }
.whd-tabs a span { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.whd-tabs a:hover { border-color: var(--brand-text); }
.whd-tabs a[aria-current] { background: var(--brand); border-color: var(--brand); color: var(--on-brand) !important; }
.whd-tabs a[aria-current] span { color: rgba(255,255,255,.8); }

/* Sections */
.whd-sect { padding-top: 52px; }
.whd-sect-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 20px; }
.whd-sect-h h2 { font-size: clamp(28px, 3.4vw, 38px); }
.whd-sect-h p { color: var(--muted); margin: 0 !important; max-width: 60ch; }

/* Where to start */
.whd-highlights { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; }
.whd-highlights li.big { grid-column: span 2; grid-row: span 2; }
.whd-highlights a { position: relative; display: block; height: 100%; border-radius: 12px; overflow: hidden; background: var(--stone); color: #fff !important; text-decoration: none; }
.whd-highlights img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.whd-highlights a:hover img { transform: scale(1.04); }
.whd-highlights a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30,14,18,.82), rgba(30,14,18,.15) 55%, rgba(30,14,18,0)); }
.whd-hl-text { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; gap: 2px; }
.whd-hl-meta { font-size: 12.5px; opacity: .9; }
.whd-hl-name { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1.15; }
.whd-highlights .big .whd-hl-name { font-size: clamp(26px, 3vw, 36px); }

/* Towns */
.whd-country-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 30px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.whd-country-h:first-of-type { margin-top: 0; }
.whd-country-h h3 { font-size: 24px; }
.whd-country-h a { font-weight: 700; font-size: 14.5px; text-decoration: none; }
.whd-country-h a::after { content: " →"; }
.whd-country-h a:hover { text-decoration: underline; }
.whd-region-h { font-size: 22px; margin: 26px 0 12px; }
.whd-sect-h + .whd-region-h { margin-top: 6px; }
.whd-towns { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px 18px; }
.whd-towns a { display: flex; flex-direction: column; gap: 2px; color: var(--ink) !important; text-decoration: none; }
.whd-town-ph { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--stone); margin-bottom: 8px; }
.whd-town-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.whd-towns a:hover img { transform: scale(1.04); }
.whd-town-name { font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.2; }
.whd-towns a:hover .whd-town-name { color: var(--brand-text); text-decoration: underline; text-underline-offset: 3px; }
.whd-town-meta { font-size: 13.5px; color: var(--muted); }
.whd-more { display: inline-flex; margin-top: 18px; border: 1px solid var(--line); background: var(--panel); color: var(--brand-text); border-radius: 8px; padding: 9px 18px; font-weight: 700; cursor: pointer; }
.whd-more:hover { border-color: var(--brand-text); }

/* All sights: filters */
.whd-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.whd-chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.whd-chips button span { color: var(--muted); font-size: 12.5px; margin-left: 2px; }
.whd-chips button:hover { border-color: var(--brand-text); }
.whd-chips button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); font-weight: 600; }
.whd-chips button[aria-pressed="true"] span { color: rgba(255,255,255,.8); }
.whd-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 16px 0 22px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.whd-toolbar label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.whd-toolbar select { border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; background: var(--panel); color: var(--ink); max-width: 240px; }
.whd-count { margin-left: auto; font-size: 14px; font-weight: 600; }
.whd-maptoggle { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--brand-text); border-radius: 7px; padding: 7px 14px; font-weight: 700; cursor: pointer; }

/* All sights: cards and map */
.whd-body { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }
.whd-body.no-map { grid-template-columns: minmax(0, 1fr); }
.whd-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 20px 18px; }
.whd-card a { display: flex; flex-direction: column; height: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; color: var(--ink) !important; text-decoration: none; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.whd-card a:hover, .whd-card.is-hot a { border-color: var(--brand-text); box-shadow: 0 10px 26px rgba(43,26,30,.12); transform: translateY(-2px); }
.whd-card-ph { display: block; aspect-ratio: 3 / 2; background: var(--stone); overflow: hidden; }
.whd-card-ph img { width: 100%; height: 100%; object-fit: cover; }
.whd-noph { display: grid; place-items: center; width: 100%; height: 100%; background: repeating-linear-gradient(135deg, var(--stone) 0 12px, #efe7e7 12px 24px); }
.whd-noph span { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--brand-text); display: grid; place-items: center; font-family: var(--serif); font-size: 24px; color: var(--brand-text); background: var(--panel); }
.whd-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 16px; flex: 1; }
.whd-card-meta { font-size: 12.5px; color: var(--muted); }
.whd-card-name { font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.2; }
.whd-card a:hover .whd-card-name { color: var(--brand-text); }
.whd-card-text { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.whd-card-alt { margin-top: auto; padding-top: 6px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.whd-empty { padding: 30px 0; color: var(--muted); }
.whd-mapbox { position: sticky; top: 90px; }
.whd-map { height: min(640px, calc(100vh - 150px)); min-height: 360px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--land); z-index: 0; }
.whd-mapcap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--muted); margin: 6px 0 0 !important; }
.whd-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--brand, #791e30); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transition: transform .15s ease; }
.whd-pin.hot { background: #eebc1d; transform: scale(1.45); }
.whd .leaflet-popup-content { margin: 10px 12px; font-family: var(--sans); }
.whd-pop { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 200px; }
.whd-pop img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.whd-pop.noimg { grid-template-columns: 1fr; }
.whd-pop small { display: block; color: var(--muted); font-size: 11.5px; }
.whd-pop a { font-weight: 700; font-size: 14px; text-decoration: none; }

/* Call to action */
.whd-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 40px; align-items: center; margin-top: 64px; padding: 36px 40px; border-radius: 16px; background: var(--brand-deep); color: #fff; background-image: radial-gradient(circle at 100% 0, rgba(238,188,29,.22), transparent 45%); }
.whd-cta h2 { color: #fff !important; font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.whd-cta p { color: rgba(255,255,255,.85); margin: 0 !important; max-width: 60ch; }
.whd-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.whd-btn { display: inline-flex; align-items: center; border-radius: 8px; padding: 12px 22px; font-weight: 700; text-decoration: none; background: var(--gold); color: #2b1a1e !important; border: 1px solid var(--gold); }
.whd-btn:hover { background: #ffd04a; }
.whd-btn.ghost { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.55); }
.whd-btn.ghost:hover { background: rgba(255,255,255,.1); }

@media (max-width: 1080px) {
  .whd-body { grid-template-columns: minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .whd-hero { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-bottom: 28px; }
  .whd-mosaic { aspect-ratio: 16 / 10; }
  .whd-body { grid-template-columns: minmax(0, 1fr); }
  .whd-maptoggle { display: inline-flex; }
  .whd-mapbox { display: none; position: static; order: -1; }
  .whd-body.map-open .whd-mapbox { display: block; }
  .whd-map { height: 340px; min-height: 0; }
  .whd-cta { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }
}
@media (max-width: 640px) {
  .whd-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 10px; }
  .whd-highlights li.big { grid-row: span 1; }
  .whd-hl-name { font-size: 17px; }
  .whd-highlights .big .whd-hl-name { font-size: 24px; }
  .whd-towns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .whd-town-name { font-size: 17px; }
  .whd-grid { grid-template-columns: minmax(0, 1fr); }
  .whd-card a { flex-direction: row; }
  .whd-card-ph { width: 116px; flex: none; aspect-ratio: auto; }
  .whd-card-name { font-size: 17px; }
  .whd-card-text { -webkit-line-clamp: 2; }
  .whd-count { margin-left: 0; }
  .whd-toolbar select { max-width: 180px; }
  .whd-search button { padding: 10px 14px; }
  .whd-stats dd { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .whd-highlights img, .whd-town-ph img, .whd-card a, .whd-pin { transition: none; }
}

/* Videos (towns, sights, walks): poster and play button; the player loads on press */
.whp-videos { display: grid; gap: 14px; margin: 18px 0 6px; }
.whp-videos.is-many { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.whp-video { margin: 0; }
.whp-video-play, .whp-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; overflow: hidden; background: #2b1a1e; }
.whp-video-play { position: relative; padding: 0; cursor: pointer; }
.whp-video-play img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .88; }
.whp-video-btn { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--brand-text, #791e30); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.whp-video-play:hover .whp-video-btn, .whp-video-play:focus-visible .whp-video-btn { transform: scale(1.06); }
.whp-video figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* A walk's months to avoid */
.whp-avoid { margin: 12px 0; padding: 10px 14px; border-left: 4px solid #b3311f; background: rgba(179, 49, 31, .07); border-radius: 0 6px 6px 0; font-size: 14px; line-height: 1.5; }
.whp-factbox .whp-avoid { margin: 10px 18px; }
