/* The Heart of Canada Touring Route — landing page styles
   Brand palette from HeartofCanada-StyleGuide.pdf. Antarctican Headline (commercial) is
   substituted with Barlow Condensed; swap the @import and --display if the licensed face is added. */

:root {
  /* Style guide palette */
  --wheat: #cc9f53;
  --autumn: #eec558;
  --sand: #fceccb;
  --slate: #5b5e5e;
  --granite: #868787;
  --quartz: #e5e6e5;
  --white: #ffffff;
  /* Pantone 419 C at 100%: the dark end of the guide's grey family, used for the video stage */
  --shield: #212322;
  --shield-2: #2e3130;
  --sand-2: #fdf4e1;
  /* Landscape extension (2026-09-26, pending client sign-off): two grounds sampled from the route photography,
     used only as section fields so the guide's golds and greys stay the identity. */
  --spruce: #1f3b2f;
  --lake: #22485f;
  --lake-2: #1b3a4d;
  /* Timber: the stained wood of the sign posts, and nothing else */
  --timber: #5e4420;

  --display: "Barlow Condensed", "Antarctican Headline", "Arial Narrow", sans-serif;
  --body: "Open Sans", system-ui, sans-serif;

  --track: 0.15em; /* the guide's "tracking 150" for all-caps subheads */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 6px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --measure: 66ch;
  --section: clamp(4.5rem, 10vw, 9rem);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.6;
  color: var(--slate);
  background: var(--white);
  overflow-x: clip;
}

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; color: var(--shield); margin: 0; text-wrap: balance; line-height: 0.98; }
p { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; text-decoration-color: var(--wheat); }
a:hover { text-decoration-color: currentColor; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--wheat); color: var(--shield); }
:focus-visible { outline: 3px solid var(--autumn); outline-offset: 3px; border-radius: 2px; }
.stage :focus-visible, .bar :focus-visible, .board :focus-visible { outline-color: var(--sand); }

/* Scrollbar in the palette */
html { scrollbar-color: var(--wheat) var(--quartz); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--quartz); }
::-webkit-scrollbar-thumb { background: var(--wheat); border: 3px solid var(--quartz); border-radius: 8px; }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--shield); color: var(--sand); padding: 0.6rem 1rem; border-radius: var(--radius);
  font-family: var(--display); letter-spacing: var(--track); text-transform: uppercase;
}
.skip:focus { top: 1rem; }

.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: var(--measure); }

/* Type roles */
.eyebrow-free { display: none; } /* intentionally no kickers on this page */
.sub {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  letter-spacing: var(--track); font-size: 0.9rem; line-height: 1.2;
}
.h-xl { font-size: clamp(3rem, 2rem + 5vw, 6rem); }
.h-l  { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.5rem); }
.h-m  { font-size: clamp(1.8rem, 1.3rem + 1.8vw, 3rem); }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 1.05rem; line-height: 1;
  padding: 0.95rem 1.4rem 0.9rem; border-radius: var(--radius);
  text-decoration: none; transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--gold { background: var(--wheat); color: var(--shield); box-shadow: 0 6px 18px -8px rgba(33, 35, 34, 0.55); }
.btn--gold:hover { background: var(--autumn); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(33, 35, 34, 0.6); }
.btn--gold:active { transform: translateY(0); }
.btn--ghost { color: var(--sand); box-shadow: inset 0 0 0 1.5px rgba(252, 236, 203, 0.55); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--sand); background: rgba(252, 236, 203, 0.08); }
.btn--dark { background: var(--shield); color: var(--sand); }
.btn--dark:hover { background: var(--slate); }

/* ---------- Sticky bar (appears after the hero) ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(33, 35, 34, 0.94); color: var(--sand);
  backdrop-filter: blur(8px);
  transform: translateY(-110%); transition: transform 360ms var(--ease-out);
  border-bottom: 1px solid rgba(204, 159, 83, 0.35);
}
.bar.is-on { transform: translateY(0); }
.bar__in { display: flex; align-items: center; gap: 1.5rem; min-height: 60px; }
.bar__name { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 1rem; text-decoration: none; color: var(--sand); white-space: nowrap; }
.bar__name b { color: var(--wheat); font-weight: 600; }
.bar__nav { display: flex; gap: 1.4rem; margin-left: auto; }
.bar__nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; text-decoration: none; color: var(--quartz); }
.bar__nav a:hover { color: var(--autumn); }
.bar__nav a { white-space: nowrap; }
.bar .btn { padding: 0.65rem 1rem 0.6rem; font-size: 0.95rem; flex: none; white-space: nowrap; }
/* The bar holds one line. As it narrows, the name drops "Touring Route" (1080px), then the section links go (960px),
   then on phones the name and button tighten (520px). Nothing wraps and the button never leaves the screen. */
@media (max-width: 1080px) { .bar__name b { display: none; } }
@media (max-width: 960px) { .bar__nav { display: none; } .bar .btn { margin-left: auto; } }
@media (max-width: 520px) {
  .bar__in { gap: 0.75rem; }
  .bar__name { font-size: 0.9rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .bar .btn { padding-inline: 0.75rem; font-size: 0.85rem; }
}

/* ---------- Hero stage ---------- */
.stage {
  position: relative; min-height: 100svh; background: var(--shield); color: var(--sand);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; isolation: isolate; overflow: clip;
}
.stage__media { position: absolute; inset: 0; z-index: 0; }
.stage__poster, .stage__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage__poster img, .stage__poster svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.stage__player { display: none; }

/* Player mode: an embedded iframe player sits in a 16:9 frame; copy drops beneath it. */
.stage[data-video="player"] { min-height: 0; grid-template-rows: auto auto auto; }
.stage[data-video="player"] .stage__media { position: relative; grid-row: 2; z-index: 1; }
.stage[data-video="player"] .stage__poster { display: none; }
.stage[data-video="player"] .stage__player { display: block; position: relative; width: min(1280px, 100%); margin-inline: auto; aspect-ratio: 16 / 9; background: #000; }
.stage[data-video="player"] .stage__player iframe, .stage[data-video="player"] .stage__player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.stage[data-video="player"] .stage__scrim { display: none; }
.stage[data-video="player"] .stage__copy { grid-row: 3; padding-top: 2.5rem; }
.stage[data-video="player"] .stage__top { position: relative; }
.stage[data-video="player"] .stage__play { display: none; }

.stage__scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(33, 35, 34, 0.92) 0%, rgba(33, 35, 34, 0.55) 34%, rgba(33, 35, 34, 0) 62%),
    linear-gradient(to bottom, rgba(33, 35, 34, 0.55) 0%, rgba(33, 35, 34, 0) 28%);
}

.stage__top { position: relative; z-index: 2; display: flex; align-items: flex-start; justify-content: space-between; padding-top: clamp(1.25rem, 3vw, 2.5rem); gap: 1rem; }
.stage__logo { width: clamp(84px, 9vw, 124px); filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.35)); }
.stage__nav { display: flex; gap: 1.6rem; padding-top: 0.6rem; }
.stage__nav a { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 1rem; text-decoration: none; color: var(--sand); text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45); }
.stage__nav a:hover { color: var(--autumn); }
@media (max-width: 640px) { .stage__nav { display: none; } }

.stage__play {
  position: absolute; z-index: 2; left: 72%; top: 44%; translate: -50% -50%;
  display: grid; place-items: center; width: clamp(72px, 8vw, 104px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(33, 35, 34, 0.35); color: var(--sand); box-shadow: inset 0 0 0 2px rgba(252, 236, 203, 0.7), 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  transition: transform 220ms var(--ease-out), background-color 220ms var(--ease-out);
}
.stage__play svg { width: 34%; height: 34%; margin-left: 6%; }
.stage__play:hover { transform: scale(1.06); background: rgba(204, 159, 83, 0.9); color: var(--shield); }
.stage__play span { position: absolute; top: calc(100% + 0.8rem); white-space: nowrap; font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); font-size: 0.85rem; color: var(--sand); }
.stage[data-video="background"] .stage__play, .stage.no-film .stage__play { display: none; }
@media (max-width: 760px) { .stage__play { left: 50%; top: 36%; } }
@media (max-height: 700px) { .stage__play { top: 40%; } }

.stage__copy { position: relative; z-index: 2; padding-block: clamp(2rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem); align-self: end; }
.stage__copy h1 { color: var(--white); text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }
.stage__copy h1 em { font-style: normal; color: var(--autumn); }
.stage__copy .lede { max-width: 46ch; margin-top: 1.25rem; color: var(--sand); }
.stage__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.9rem; }

.stage__line {
  position: relative; z-index: 2; border-top: 1px solid rgba(204, 159, 83, 0.4);
  background: rgba(33, 35, 34, 0.7); backdrop-filter: blur(6px);
}
.route-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.9rem; padding-block: 0.9rem; font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.95rem; color: var(--sand); }
.route-line b { font-weight: 600; color: var(--white); }
.route-line .hwy { display: inline-flex; align-items: center; gap: 0.3rem; color: var(--wheat); font-weight: 600; letter-spacing: 0.06em; }
.route-line .hwy::before { content: ""; width: 1.6rem; height: 0; border-top: 2px dashed var(--wheat); opacity: 0.8; }
@media (max-width: 640px) { .route-line { font-size: 0.85rem; gap: 0.3rem 0.6rem; } .route-line .hwy::before { width: 0.9rem; } }

/* ---------- The things you stop the car for: live Whereabouts listings ---------- */
.drive { position: relative; background: var(--sand); color: var(--slate); padding-top: clamp(3rem, 7vw, 6rem); }
.drive__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.drive__head p { max-width: 44ch; justify-self: end; color: var(--slate); }
@media (max-width: 860px) { .drive__head { grid-template-columns: 1fr; } .drive__head p { justify-self: start; } }

.wb { position: relative; }
/* Three states, set by main.js. Loading: blank plates hold the space the listings will take, and the widget sits
   under them unseen. Live (.is-live): the widget has drawn listings, the plates go. Slow (.is-slow): nothing after
   about 8 seconds, so the plates give way to one line; if the listings arrive later the widget still goes live. */
/* Plain block flow: the widget centres itself with auto margins, so as a grid or flex item it would shrink to one card. */
.wb__widget { position: relative; width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wb:not(.is-live) whereabouts-operators-widget { visibility: hidden; height: 0; overflow: hidden; }
/* The plates mirror the widget's own layout: one row of 260px cards under 640px, and from 640px a grid of as many
   260px columns as fit, twelve cards and a Load more row. Same card height and gaps, so going live moves nothing. */
.wb__skeleton { display: flex; gap: 16px; height: 470px; overflow: hidden; }
.wb__skeleton i { flex: none; width: 260px; height: 400px; border-radius: 10px; background: rgba(255, 255, 255, 0.55); animation: pulse 1.8s ease-in-out infinite; }
@media (min-width: 640px) {
  .wb__skeleton { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; height: auto; overflow: visible; align-content: start; padding-bottom: 139px; }
  .wb__skeleton i { width: auto; }
}
.wb.is-live .wb__skeleton, .wb.is-slow .wb__skeleton { display: none; }
@media (prefers-reduced-motion: reduce) { .wb__skeleton i { animation: none; } }

.wb__state { display: none; margin-block: 0; font-size: 1.05rem; color: var(--slate); }
.wb.is-slow:not(.is-live) .wb__state { display: block; padding-block: clamp(1.5rem, 4vw, 3rem); }
.wb__state a { color: var(--shield); font-weight: 600; text-decoration-color: var(--wheat); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wb__state a:hover { text-decoration-color: var(--shield); }

/* Prev and next drive the widget's own carousel, which it only builds under 640px (wider, it lays the cards out as a
   grid with a Load more button). main.js sets .has-arrows while that carousel exists; touch screens swipe instead. */
.wb__arrow {
  position: absolute; top: 200px; z-index: 2; translate: 0 -50%;
  display: none; place-items: center; width: 3rem; height: 3rem; border-radius: 50%;
  background: var(--shield); color: var(--sand); box-shadow: 0 10px 24px -12px rgba(33, 35, 34, 0.7);
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), opacity 180ms var(--ease-out);
}
.wb__arrow svg { width: 1.3rem; height: 1.3rem; }
.wb__arrow:hover { background: var(--wheat); color: var(--shield); transform: scale(1.05); }
.wb__arrow[disabled] { opacity: 0.25; pointer-events: none; }
.wb__arrow--prev { left: -0.75rem; }
.wb__arrow--next { right: -0.75rem; }
@media (hover: hover) and (pointer: fine) { .wb.is-live.has-arrows .wb__arrow { display: grid; } }

/* Whereabouts widget theming. The widget renders in an open shadow root themed by --wa-* tokens; rules on the host
   element win over the widget's own :host defaults, so the brand is applied by remapping its scales:
   blue (its accent) -> Wheat/Autumn golds, ink (its greys) -> Shield/Slate/Granite/Quartz, cream -> Sand. */
whereabouts-operators-widget {
  display: block; font-family: var(--body);
  --global-font-body: "Open Sans", system-ui, sans-serif;
  --global-font-heading: "Barlow Condensed", "Antarctican Headline", sans-serif;
  --wa-fonts-body: "Open Sans", system-ui, sans-serif;
  --wa-fonts-heading: "Barlow Condensed", "Antarctican Headline", sans-serif;
  --wa-colors-blue-100: #fceccb; --wa-colors-blue-200: #f6dfa8; --wa-colors-blue-300: #eec558; --wa-colors-blue-400: #e0b64f;
  --wa-colors-blue-500: #d4a854; --wa-colors-blue-600: #cc9f53; --wa-colors-blue-700: #b88a44; --wa-colors-blue-800: #9a7238; --wa-colors-blue-900: #7c5b2c; --wa-colors-blue-1000: #5e4420;
  --wa-colors-ink-100: #f4f4f3; --wa-colors-ink-200: #e5e6e5; --wa-colors-ink-300: #cfd0cf; --wa-colors-ink-400: #a9aaaa; --wa-colors-ink-500: #868787;
  --wa-colors-ink-600: #6f7271; --wa-colors-ink-700: #5b5e5e; --wa-colors-ink-800: #3e4140; --wa-colors-ink-900: #2e3130; --wa-colors-ink-1000: #212322;
  --wa-colors-cream-100: #fdf4e1; --wa-colors-cream-200: #fceccb; --wa-colors-cream-400: #eec558; --wa-colors-cream-600: #cc9f53; --wa-colors-cream-800: #9a7238;
  --wa-radii-100: 10px; --wa-radii-150: 10px; --wa-radii-200: 12px; --wa-radii-75: 6px; --wa-radii-50: 3px;
}

/* The road: a divider in the section's grammar */
.drive__road { position: relative; height: clamp(56px, 8vh, 80px); margin-top: clamp(1rem, 3vh, 2rem); }
.drive__road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 22px; translate: 0 -50%; background: var(--slate); }
.drive__road::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0; border-top: 3px dashed var(--autumn); translate: 0 -1px; opacity: 0.9; }

/* Highway shield glyph */
.shield { display: inline-grid; place-items: center; width: 2rem; height: 2rem; font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--shield); background: var(--white); border: 2px solid var(--shield); border-radius: 4px 4px 45% 45%; line-height: 1; padding-top: 0.1rem; }
.shield--tc { border-radius: 50%; color: var(--white); background: var(--shield); border-color: var(--shield); }

/* ---------- Route section ---------- */
.route { background: var(--white); padding-block: var(--section); }
.route__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 960px) { .route__grid { grid-template-columns: minmax(0, 1fr); } .map { min-width: 0; } }
.route__copy h2 { margin-bottom: 1.5rem; }
.route__copy p + p { margin-top: 1.1rem; }
.route__copy .lede { color: var(--shield); }
.route__facts { margin-top: 2rem; border-top: 2px solid var(--shield); }
.route__facts div { display: grid; grid-template-columns: 9rem 1fr; gap: 1rem; padding: 0.8rem 0; border-bottom: 1px solid var(--quartz); }
.route__facts dt { font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); font-size: 0.85rem; font-weight: 600; color: var(--shield); padding-top: 0.15rem; }
.route__facts dd { margin: 0; color: var(--slate); }
@media (max-width: 480px) { .route__facts div { grid-template-columns: 1fr; gap: 0.2rem; } }

.map { position: sticky; top: 5rem; }
.map__frame { border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(33, 35, 34, 0.06), 0 24px 48px -26px rgba(15, 42, 34, 0.55); }
.map svg { width: 100%; height: auto; display: block; }
/* Narrow screens: the map keeps its size and pans sideways so labels stay legible */
@media (max-width: 700px) {
  .map { position: static; }
  .map__frame { overflow-x: auto; scrollbar-width: thin; border-radius: 12px; }
  .map svg { min-width: 760px; }
}
/* Geographic map. Land and water tones are map-only colours in the manner of the route's printed map. */
.map .geo-us { fill: #7fc0ae; }
.map .geo-canada { fill: #3f9c86; }
.map .geo-water { fill: #a9d4ea; }
.map .geo-border { fill: none; stroke: rgba(15, 42, 34, 0.35); stroke-width: 1.2; stroke-dasharray: 5 5; }
.map .geo-prov { font-family: "Caveat", cursive; font-weight: 700; font-size: 24px; fill: rgba(255, 255, 255, 0.7); letter-spacing: 0.04em; }
.map .line { fill: none; stroke: var(--lake-2); stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.map .line--ghost { stroke: rgba(27, 58, 77, 0.28); stroke-dasharray: none; opacity: 1; }
.map .line--draw { pathLength: 1; stroke-dasharray: 1; stroke-dashoffset: 1; }
.map.is-drawn .line--draw { transition: stroke-dashoffset 2400ms var(--ease-out); stroke-dashoffset: 0; }
.map .stop circle { fill: var(--white); stroke: var(--lake-2); stroke-width: 3; transition: opacity 260ms var(--ease-out), r 260ms var(--ease-out); }
.map .stop text { font-family: "Caveat", cursive; font-weight: 700; font-size: 27px; fill: var(--white); filter: url(#geo-shadow); transition: opacity 260ms var(--ease-out); }
.map .stop--city circle { fill: var(--lake-2); }
.map .stop--city text { font-family: var(--display); font-weight: 700; font-size: 30px; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--lake-2); filter: none; }
.map .stop--x circle { fill: var(--autumn); stroke: var(--lake-2); }
.map .medal__ring { fill: var(--white); filter: url(#geo-soft); }
.map .geo-label--medal { font-family: "Caveat", cursive; font-weight: 700; font-size: 25px; fill: var(--white); filter: url(#geo-shadow); }
.map[data-filter]:not([data-filter="all"]) .stop:not([data-themes~="__f"]) circle { opacity: 0.25; }
.map[data-filter]:not([data-filter="all"]) .stop:not([data-themes~="__f"]) text { opacity: 0.25; }
.map[data-filter]:not([data-filter="all"]) .medal { opacity: 0.45; }
.map .stop.is-lit circle { fill: var(--autumn); r: 8; }

.map__legend { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.chip {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.9rem; font-weight: 600;
  padding: 0.5rem 0.9rem 0.45rem; border-radius: 999px; color: var(--shield); background: var(--white); box-shadow: inset 0 0 0 1.5px var(--quartz);
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--wheat); }
.chip[aria-pressed="true"] { background: var(--shield); color: var(--sand); box-shadow: none; }
.map__note { margin-top: 0.8rem; font-size: 0.85rem; color: var(--slate); }

/* Highway photographs under the route grid */
.route__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem); margin-top: clamp(3rem, 6vw, 5rem); }
@media (max-width: 760px) { .route__photos { grid-template-columns: 1fr; } }
.route__photos figure { margin: 0; }
.route__photos img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; box-shadow: 0 1px 0 rgba(33, 35, 34, 0.06), 0 18px 40px -22px rgba(91, 94, 94, 0.55); }
.route__photos figcaption { margin-top: 0.7rem; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 0.8rem; color: var(--slate); }

/* ---------- Itineraries: billboards ---------- */
.trips { background: var(--sand-2); padding-block: var(--section); background-image: radial-gradient(60% 40% at 85% 0%, rgba(238, 197, 88, 0.28), transparent 70%); }
.trips__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.trips__head p { max-width: 46ch; justify-self: end; }
@media (max-width: 860px) { .trips__head { grid-template-columns: 1fr; } .trips__head p { justify-self: start; } }

/* A board is bolted to the front of two squared, stained timbers, the way a forest service sign is hung.
   The posts run the full height behind the board: their bevelled caps stand above its top edge and their
   legs carry it to the ground. */
.billboard {
  --post-w: clamp(26px, 3.6vw, 52px); --post-cap: clamp(1.25rem, 2.6vw, 2.25rem); --post-leg: clamp(3rem, 6.5vw, 5.5rem); --post-gap: clamp(1.25rem, 2.5vw, 2rem);
  position: relative; isolation: isolate; padding-top: var(--post-cap); padding-bottom: calc(var(--post-leg) + var(--post-gap));
}
.billboard + .billboard { margin-top: clamp(1rem, 2vw, 2rem); }
.board {
  position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  background: var(--shield); color: var(--sand); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(33, 35, 34, 0.6), 0 2px 0 rgba(255, 255, 255, 0.35) inset;
  border: 6px solid var(--slate);
  z-index: 1;
}
.board::before { content: ""; position: absolute; inset: 0; border: 1px solid rgba(204, 159, 83, 0.35); pointer-events: none; border-radius: 4px; }
@media (max-width: 900px) { .board { grid-template-columns: 1fr; } }

.board__copy { padding: clamp(1.5rem, 3.5vw, 3rem); display: grid; align-content: start; gap: 1rem; }
.board__copy h3 { color: var(--white); }
.board__copy h3 em { font-style: normal; color: var(--autumn); }
.board__who { display: flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-size: 1.25rem; color: var(--autumn); line-height: 1.15; letter-spacing: 0.01em; }
.board__who svg { width: 1.5rem; height: 1.5rem; flex: none; color: var(--wheat); }
/* The theme plate: a sign bolted to the top-left corner of its board */
.board__sign { position: absolute; z-index: 2; top: 0; left: 0; display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.7rem 1.1rem 0.65rem; background: var(--wheat); color: var(--shield); font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 0.9rem; border-radius: 0 0 6px 0; }
.board__sign svg { width: 1.3rem; height: 1.3rem; }
.board__copy p { color: var(--sand); }
.board__cta { margin-top: 0.75rem; display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

/* Itinerary boards: a band of copy, photograph and direction control across the top, the live Tripper plan full width beneath.
   The plan needs the whole board: under about 920px it has no room to put its map beside its stop list. */
.board--trip { grid-template-columns: minmax(0, 1fr); }
.board--trip .board__copy {
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr); grid-template-areas: "text photo cta";
  gap: clamp(1.25rem, 2.5vw, 2.5rem); align-items: stretch; align-content: normal;
  padding-top: calc(clamp(1.5rem, 3.5vw, 3rem) + 2.4rem);
}
.board__text { grid-area: text; display: grid; gap: 1rem; align-content: start; }
.board__photo { grid-area: photo; position: relative; margin: 0; min-height: 11rem; border-radius: var(--radius); overflow: hidden; background: var(--shield-2); }
.board__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.board--trip .board__cta { grid-area: cta; align-self: end; margin-top: 0; flex-direction: column; align-items: stretch; gap: 1rem; }
.board--trip .board__cta .btn { align-self: flex-start; }
@media (max-width: 1100px) {
  .board--trip .board__copy { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "text text" "photo cta"; }
}
@media (max-width: 700px) {
  .board--trip .board__copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "photo" "cta"; }
  .board__photo { min-height: 0; aspect-ratio: 16 / 9; }
}

/* Direction control: two options, one pressed. Changing it swaps the plan in the panel and the Tripper link. */
.dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.35rem; }
.dir__label { grid-column: 1 / -1; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 0.8rem; color: var(--wheat); margin-bottom: 0.15rem; }
.dir__opt {
  display: grid; align-content: center; gap: 0.2rem; min-height: 3.5rem; padding: 0.65rem 0.9rem 0.6rem; text-align: left;
  border-radius: var(--radius); color: var(--sand); box-shadow: inset 0 0 0 1.5px rgba(252, 236, 203, 0.4);
  transition: background-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out), color 180ms var(--ease-out);
}
.dir__opt b { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; font-size: 1.05rem; line-height: 1; }
.dir__opt span { font-size: 0.8rem; line-height: 1.25; color: var(--quartz); }
.dir__opt:hover { box-shadow: inset 0 0 0 1.5px var(--sand); background: rgba(252, 236, 203, 0.08); }
.dir__opt[aria-pressed="true"] { background: var(--sand); color: var(--shield); box-shadow: none; }
.dir__opt[aria-pressed="true"] span { color: var(--slate); }

.board__embed { position: relative; background: var(--shield-2); min-height: 420px; display: grid; grid-template-columns: minmax(0, 1fr); }
/* Review capture hook: ?only=<selector> isolates one section */
body.is-only > :not(.is-only-keep) { display: none !important; }
.board__embed > * { grid-area: 1 / 1; }
/* Tripper frame: the panel sets the size and the widget fills it (height="100%" on the element); the widget's internals are left alone.
   The fixed height keeps the page from jumping while a plan loads or the direction changes. Wide, the widget shows its map beside
   its stop list; main.js asks for the widget's own stacked layout (map above list) when the frame is too narrow for that. */
.board__embed--trip { height: clamp(34rem, 82svh, 48rem); min-height: 0; overflow: hidden; border-top: 1px solid rgba(204, 159, 83, 0.35); }
.board__embed--trip > whereabouts-tripper-widget { position: absolute; inset: 0; z-index: 1; }
/* Once a plan has drawn, the panel behind it is white, the ground the widget is designed for. */
.board__embed.is-live { background: var(--sand-2); }
.embed__state { align-self: center; justify-self: center; display: flex; align-items: center; gap: 0.6rem; max-width: 30rem; padding: 1.5rem; text-align: center; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 0.85rem; line-height: 1.5; color: var(--quartz); }
.embed__state i { flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--autumn); animation: pulse 1.8s ease-in-out infinite; }
.embed__state a { color: var(--autumn); }
.board__embed.is-live .embed__state { visibility: hidden; }
.board__embed.is-failed .embed__state { display: block; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--sand); }
.board__embed.is-failed .embed__state i { display: none; }
@media (max-width: 959px) { .board__embed--trip { height: clamp(36rem, 86svh, 46rem); } }
@media (prefers-reduced-motion: reduce) { .embed__state i { animation: none; } }
.slot {
  display: grid; grid-template-rows: 1fr auto; padding: clamp(1rem, 2.5vw, 1.75rem);
  background:
    repeating-linear-gradient(135deg, rgba(204, 159, 83, 0.07) 0 12px, transparent 12px 24px);
}
@media (max-width: 640px) { .slot__state { flex-direction: column; align-items: flex-start; gap: 0.35rem; } .slot__state > span:last-child { white-space: normal; color: var(--sand); } }
.slot__state > span:last-child { white-space: nowrap; }
.slot__state { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: 0.75rem; border-top: 1px solid rgba(252, 236, 203, 0.25); font-family: var(--display); text-transform: uppercase; letter-spacing: var(--track); font-size: 0.8rem; color: var(--quartz); }
.slot__state i { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--autumn); margin-right: 0.5rem; vertical-align: 0.05em; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .slot__state i { animation: none; } }

.posts { position: absolute; z-index: 0; inset: 0 0 var(--post-gap) 0; pointer-events: none; filter: drop-shadow(0 5px 4px rgba(33, 35, 34, 0.32)); }
.posts::before, .posts::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: var(--post-w);
  /* a four-way bevel on the cap, cut to shed rain */
  clip-path: polygon(0 calc(var(--post-w) * 0.3), 50% 0, 100% calc(var(--post-w) * 0.3), 100% 100%, 0 100%);
  background:
    /* the board's shadow falling on the leg */
    linear-gradient(to bottom, rgba(18, 12, 4, 0.62), rgba(18, 12, 4, 0)) left 0 bottom calc(var(--post-leg) * 0.4) / 100% calc(var(--post-leg) * 0.6) no-repeat,
    /* light catching the bevel */
    linear-gradient(to bottom, rgba(255, 236, 196, 0.26), rgba(255, 236, 196, 0)) top / 100% calc(var(--post-w) * 0.55) no-repeat,
    /* two seasoning checks */
    linear-gradient(rgba(18, 12, 4, 0.5), rgba(18, 12, 4, 0.5)) 34% 99.2% / 1.5px calc(var(--post-leg) * 0.5) no-repeat,
    linear-gradient(rgba(18, 12, 4, 0.4), rgba(18, 12, 4, 0.4)) 70% 0.35rem / 1px calc(var(--post-cap) * 0.6) no-repeat,
    /* one lit face, one in shade */
    linear-gradient(90deg, rgba(255, 236, 196, 0.14), rgba(255, 236, 196, 0) 20%, rgba(18, 12, 4, 0) 60%, rgba(18, 12, 4, 0.4)),
    /* grain */
    repeating-linear-gradient(90deg, rgba(18, 12, 4, 0) 0 4px, rgba(18, 12, 4, 0.17) 4px 5px, rgba(18, 12, 4, 0) 5px 9px, rgba(255, 236, 196, 0.07) 9px 10px, rgba(18, 12, 4, 0) 10px 13px),
    var(--timber);
}
.posts::before { left: 8%; }
.posts::after { right: 8%; }

/* ---------- Along the way: Whereabouts ---------- */
.along { background: var(--lake); color: var(--sand); padding-block: var(--section); background-image: radial-gradient(50% 45% at 10% 100%, rgba(31, 59, 47, 0.7), transparent 70%); }
.along h2 { color: var(--white); }
.along__head p { color: var(--sand); }
.along .board { border-color: var(--lake-2); }
.along__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3rem); }
.along__head p { max-width: 46ch; justify-self: end; }
@media (max-width: 860px) { .along__head { grid-template-columns: 1fr; } .along__head p { justify-self: start; } }
.board--services { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
.board--services .board__sign { position: static; align-self: start; justify-self: start; border-radius: 0 0 6px 0; }
.signs { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.25rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 3rem) clamp(1rem, 2.5vw, 1.75rem); border-bottom: 1px solid rgba(252, 236, 203, 0.25); }
.signs li { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.9rem); color: var(--white); line-height: 1; }
.signs li svg { width: 1.4em; height: 1.4em; color: var(--wheat); flex: none; }
.slot--services { min-height: 300px; grid-template-rows: 1fr auto; }
.slot--services .slot__state { border-top: 0; }
@media (max-width: 640px) { .signs { flex-direction: column; align-items: stretch; gap: 0.6rem; } .signs li { justify-content: flex-start; padding: 0.4rem 0; border-bottom: 1px solid rgba(252, 236, 203, 0.14); } .signs li:last-child { border-bottom: 0; } }

/* ---------- Partner communities ---------- */
.towns { position: relative; background: var(--spruce); color: var(--sand); padding-block: 0 var(--section); background-image: radial-gradient(70% 50% at 100% 100%, rgba(34, 72, 95, 0.55), transparent 70%); }
.towns__shore { display: block; width: 100%; height: clamp(40px, 6vw, 90px); }
.towns__head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: end; padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 5vw, 4rem); }
.towns__head h2 { color: var(--white); }
.towns__head p { max-width: 46ch; justify-self: end; color: var(--sand); }
@media (max-width: 860px) { .towns__head { grid-template-columns: 1fr; } .towns__head p { justify-self: start; } }

.towns__list { position: relative; list-style: none; counter-reset: town; display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
/* the route thread: a dashed line down the middle that the pebbles hang from */
.towns__list::before { content: ""; position: absolute; left: 50%; top: 2rem; bottom: 2rem; width: 0; border-left: 3px dashed rgba(238, 197, 88, 0.55); translate: -50% 0; }
.town { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; counter-increment: town; }
.town--right .town__photo { order: 2; }
.town__photo { margin: 0; position: relative; width: min(100%, 460px); aspect-ratio: 1; justify-self: end; }
.town--right .town__photo { justify-self: start; }
.town__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.town__photo::after { content: counter(town, decimal-leading-zero); position: absolute; right: -0.4rem; bottom: 1.2rem; font-family: var(--display); font-weight: 700; font-size: clamp(2.6rem, 3vw, 3.6rem); line-height: 1; color: var(--autumn); text-shadow: 0 2px 20px rgba(23, 48, 37, 0.7); }
.town--right .town__photo::after { right: auto; left: -0.4rem; }
.town__body { max-width: 46ch; }
.town--left .town__body { justify-self: start; }
.town--right .town__body { justify-self: end; text-align: right; }
.town__body h3 { color: var(--white); }
.town__prov { display: block; margin-top: 0.5rem; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 0.85rem; color: var(--autumn); }
.town__body p { margin-top: 0.9rem; color: var(--sand); }
.town__stops { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.town--right .town__stops { justify-content: flex-end; }
.town__stops li { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; color: var(--white); padding: 0.35rem 0.7rem 0.3rem; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(238, 197, 88, 0.55); }
@media (max-width: 760px) {
  .towns__list::before { display: none; }
  .town { grid-template-columns: 1fr; gap: 1.25rem; }
  .town--right .town__photo { order: 0; }
  .town__photo, .town--right .town__photo { width: min(100%, 360px); justify-self: start; }
  .town--right .town__body { justify-self: start; text-align: left; }
  .town--right .town__stops { justify-content: flex-start; }
  .town--right .town__photo::after { left: auto; right: -0.4rem; }
}

/* Pebbles: Shield-granite silhouettes for photographs. Six shapes so no two neighbours match. */
.pebble { overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6), inset 0 0 0 4px rgba(252, 236, 203, 0.12); }
.pebble--a { border-radius: 63% 37% 54% 46% / 45% 65% 35% 55%; }
.pebble--b { border-radius: 38% 62% 45% 55% / 62% 40% 60% 38%; }
.pebble--c { border-radius: 55% 45% 66% 34% / 40% 58% 42% 60%; }
.pebble--d { border-radius: 36% 64% 42% 58% / 58% 44% 56% 42%; }
.pebble--e { border-radius: 60% 40% 38% 62% / 44% 62% 38% 56%; }
.pebble--f { border-radius: 45% 55% 62% 38% / 64% 38% 62% 36%; }

/* ---------- Follow your heart: photo mosaic ---------- */
.heart { background: var(--sand); padding-block: var(--section); background-image: radial-gradient(55% 60% at 0% 0%, rgba(238, 197, 88, 0.45), transparent 70%); }
.heart__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.heart__head p { max-width: 52ch; justify-self: end; color: var(--slate); font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.55; }
.heart__head p b { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--shield); }
@media (max-width: 860px) { .heart__head { grid-template-columns: 1fr; } .heart__head p { justify-self: start; } }
.heart__mosaic { width: min(1440px, 100% - 2 * var(--gutter)); margin-inline: auto; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 15vw, 220px); grid-auto-flow: dense; gap: clamp(0.6rem, 1.2vw, 1rem); }
.tile { margin: 0; position: relative; overflow: hidden; border-radius: 18px 26px 16px 28px; grid-column: span 2; grid-row: span 1; background: var(--sand-2); }
.tile--wide { grid-column: span 3; grid-row: span 2; }
.tile--tall { grid-column: span 2; grid-row: span 2; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 700ms var(--ease-out); }
.tile:hover img { transform: scale(1.04); }
.tile figcaption { position: absolute; left: 0.9rem; bottom: 0.75rem; font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: var(--track); font-size: 0.78rem; color: var(--white); text-shadow: 0 1px 14px rgba(33, 35, 34, 0.7); }
@media (max-width: 760px) { .heart__mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 28vw, 180px); } .tile, .tile--wide, .tile--tall { grid-column: span 1; grid-row: span 1; } .tile--wide { grid-column: span 2; } .tile--tall { grid-row: span 2; } }

/* ---------- Footer ---------- */
.foot { background: var(--shield); color: var(--sand); padding-block: var(--section) 2.5rem; }
.foot__grid { display: grid; grid-template-columns: auto 1fr; gap: 2.5rem 4rem; align-items: start; }
@media (max-width: 760px) { .foot__grid { grid-template-columns: 1fr; } }
.foot__logo { width: clamp(110px, 12vw, 150px); }
.foot h2 { color: var(--white); }
.foot p { max-width: 60ch; margin-top: 1rem; color: var(--sand); }
.foot__partners { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem 2rem; }
.foot__partners li { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.9rem; color: var(--quartz); padding: 0.5rem 0; border-top: 1px solid rgba(252, 236, 203, 0.3); }
.foot__tag { margin-top: 2.5rem; font-family: var(--display); font-weight: 600; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem); color: var(--white); }
.foot__tag b { font-weight: 600; color: var(--wheat); }
.foot__meta { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(252, 236, 203, 0.25); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; font-size: 0.85rem; color: var(--quartz); }
.foot__meta a { color: var(--sand); }

/* Utilities */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
