/* Goodtimes Lagos — Trip Planner
   CONCEPT 1: "Cinematic Full-Bleed Scroll"
   Single continuous scroll. No white backgrounds anywhere — every section is
   a full-bleed photo or gradient, dark-mode-leaning, with light text
   overlaid on scrims (never opacity-on-image alone). Motion is simulated
   entirely with CSS: Ken-Burns pans/zooms on background photos, slow
   gradient drifts, a scroll-driven parallax on section backgrounds, and
   IntersectionObserver-driven reveal-on-scroll (see js/reveal.js). */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  /* Dark cinematic palette. Accent stays reserved for CTAs / functional
     wayfinding (day badges, selected states) — not washed across whole
     sections. A restrained accent reads more premium than a saturated one. */
  --bg: #0A0F12;
  --bg-elev: #101A1F;
  --ink: #F4F0E6;
  --ink-soft: rgba(244, 240, 230, 0.76);
  --ink-faint: rgba(244, 240, 230, 0.52);
  --heading: #FFFFFF;
  --accent: #FF0066;
  --accent-dark: #D1004F;
  --accent-soft: rgba(255, 0, 102, 0.16);
  --white: #FFFFFF;
  --line: rgba(255, 255, 255, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-bg-strong: rgba(8, 12, 14, 0.55);
  --glass-border: rgba(255, 255, 255, 0.16);
  --option-border: rgba(255, 255, 255, 0.28);
  --scrim-1: rgba(6, 10, 12, 0.5);
  --scrim-2: rgba(6, 10, 12, 0.82);

  /* Results page only — the hero/quiz stay dark and cinematic (the
     emotional sell), but the itinerary itself is a reference document
     people scan and click through, which reads better light. See
     #results-view overrides near the RESULTS section below. */
  --results-bg: #FAF7F1;
  --results-bg-alt: #FFFFFF;
  --results-ink: #1B2733;
  --results-ink-soft: rgba(27, 39, 51, 0.68);
  --results-ink-faint: rgba(27, 39, 51, 0.5);
  --results-line: rgba(27, 39, 51, 0.12);
  --results-card-bg: #FFFFFF;
  --results-card-border: rgba(27, 39, 51, 0.10);

  --font-display: 'Montserrat', -apple-system, sans-serif;
  --font-body: 'Montserrat', -apple-system, sans-serif;
  --font-ui: 'Montserrat', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Quiz scenes are each a full viewport tall (see .scene below) — snapping
   the page scroll to each one means a swipe/scroll gesture settles with
   that scene's image and question fully in view, not stopped halfway
   between two. Scoped by putting scroll-snap-align only on .scene itself
   (below) — the landing hero, footer, and results page have no snap
   points, so they still scroll freely. */
html { background: var(--bg); scroll-snap-type: y mandatory; }

body {
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

.content-max {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Scroll progress bar ---------- */

#progress-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 200;
}

#progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #FF6FA5);
  transition: width 0.08s linear;
}

/* ---------- Hero ---------- */

#landing-header {
  /* Confirmed as a real bug: with scroll-snap-type:mandatory set on html
     and only .scene carrying scroll-snap-align, the landing header had no
     snap point of its own — the very first scroll tick would snap
     straight through it to the first quiz scene, making the hero
     unreachable. This gives the top of the page a legitimate stopping
     point too. */
  scroll-snap-align: start;
}

.hero {
  position: relative;
  width: 100%;
}

.hero-photo {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 560px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
  display: block;
  animation: hero-ken-burns 26s ease-in-out infinite alternate;
}

@keyframes hero-ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-1.5%, -2%); }
}

@keyframes hero-ken-burns-alt {
  0% { transform: scale(1.08) translate(1%, 0); }
  100% { transform: scale(1) translate(-1%, -1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img, .scene-bg img { animation: none !important; }
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, var(--scrim-2) 0%, rgba(6,10,12,0.42) 45%, rgba(6,10,12,0.38) 100%),
    linear-gradient(to bottom, rgba(6,10,12,0.5) 0%, rgba(6,10,12,0.05) 30%);
}

.hero-logo {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-content {
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.hero-content-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.hero-content .kicker {
  color: var(--white);
  opacity: 0.92;
  margin-bottom: 18px;
}

.hero-content h1.display {
  color: var(--white);
  text-shadow: 0 4px 30px rgba(0,0,0,0.45);
  margin-top: 0;
  line-height: 1.05;
}

.btn-outline {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--white);
  border-radius: 100px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 38px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: var(--white);
  color: #10181C;
  transform: translateY(-1px);
}

.hero-cta {
  margin-top: 36px;
}

.hero-scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  background: none;
  border: none;
  padding: 10px;
  color: var(--white);
  cursor: pointer;
  opacity: 0.85;
  z-index: 2;
  animation: hero-cue-bounce 1.8s ease-in-out infinite;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.hero-scroll-cue:hover { opacity: 1; }

@keyframes hero-cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue { animation: none; }
}

/* Bar at the top of .quiz-first-fold (fold 2), built dynamically by
   buildScenes() in quiz.js — the hero photo (fold 1) stays image-only,
   and this bar + the shortened first scene share the next viewport. */
.intro-line {
  background: var(--bg);
  max-width: 780px;
  margin: 0 auto;
  padding: 16px 24px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.55;
  color: var(--ink-faint);
}

/* The actual fold-2 snap point: bar (natural height) + first scene
   (flex: 1, see .scene--first below) together fill exactly one viewport. */
.quiz-first-fold {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
}

/* ---------- Header text ---------- */

.kicker {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent);
}

h1.display {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--heading);
  margin-top: 10px;
}

h2.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.8vw, 32px);
  line-height: 1.15;
  color: var(--heading);
}

.lede {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-soft);
  font-weight: 400;
  margin-top: 10px;
}

.divider {
  width: 44px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 18px auto 0;
}

.results-header .divider,
.stay-card .divider { margin-left: 0; }

/* ================================================================
   QUIZ SCENES — one full-viewport-height, full-bleed section per
   question. Continuous scroll, no card/Next-button pattern.
   ================================================================ */

#quiz-view { width: 100%; }

.scene {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  scroll-snap-align: start;
  /* Was 120px/90px (top/bottom) — that 30px imbalance meant centered
     content always sat with visibly more room above it than below,
     since align-items:center centers within whatever space padding
     leaves behind, and that space itself started higher than it ended. */
  padding: 100px 24px 100px;
}

/* Scene 0 sits inside .quiz-first-fold, below the intro bar, so it doesn't
   get its own full viewport or snap point — it fills whatever height the
   fold has left under the bar (flex: 1) and the fold itself is the snap
   point (see .quiz-first-fold above). */
.scene--first {
  flex: 1;
  min-height: 0;
  scroll-snap-align: none;
}

.scene-bg {
  position: absolute;
  left: 0; right: 0;
  top: -8%;
  height: 116%;
  z-index: 0;
  overflow: hidden;
}

.scene-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: hero-ken-burns 30s ease-in-out infinite alternate;
}

.scene:nth-of-type(even) .scene-bg img {
  animation-name: hero-ken-burns-alt;
  animation-duration: 34s;
}

.scene-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 50% 15%, rgba(6,10,12,0.15) 0%, rgba(6,10,12,0.55) 60%, rgba(6,10,12,0.86) 100%),
    linear-gradient(180deg, rgba(6,10,12,0.55) 0%, rgba(6,10,12,0.35) 35%, rgba(6,10,12,0.72) 100%);
}

.scene-inner {
  position: relative;
  z-index: 1;
  /* Was 720px — at the large scene-title font size, most questions wrapped
     to two lines inside that width, so the centered title's visual
     silhouette read as noticeably narrower than the full-width option
     grid below it. Widened so more titles fit on one line and better
     match the button row's width. */
  max-width: 840px;
  width: 100%;
  text-align: center;
}

.scene-kicker {
  color: var(--white);
  opacity: 0.9;
}

.scene-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--white);
  text-shadow: 0 4px 26px rgba(0,0,0,0.45);
  margin-top: 12px;
}

.scene-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 14px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.scene-instructions {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-faint);
  margin-top: 10px;
}

.field-block { margin-top: 40px; }
.field-block:first-of-type { margin-top: 36px; }

.field-block-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 16px;
}

/* Conditional sub-fields (towns after "I know already", kids' ages after
   "Family") expand in place within the same scene rather than pushing the
   user to a new screen. */
.field-conditional {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
}

.field-conditional.is-shown {
  max-height: 900px;
  opacity: 1;
  margin-top: 36px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.option {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px 18px;
  border: 1.5px solid var(--option-border);
  border-radius: 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 500;
  color: var(--white);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.2s ease, transform 0.15s ease;
  user-select: none;
}

.option:hover {
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
}

.option.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(255, 0, 102, 0.35);
}

/* Two-line option (main label + a smaller example/subtext line), e.g.
   "Being Active" / "(surfing, kayaking, adventures)". Wrapped in one div
   so it's still a single flex item inside .option's row layout — the two
   lines stack via normal block flow inside that wrapper. */
.option-label { display: block; }

.option-sub {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.75;
}

/* ---------- Stepper (numeric fields) ---------- */

.stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.stepper-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--option-border);
  background: var(--glass-bg);
  color: var(--white);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.stepper-btn:hover { border-color: var(--accent); }
.stepper-btn:active { transform: scale(0.94); }

.stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.stepper-value {
  font-family: var(--font-display);
  font-size: clamp(48px, 9vw, 84px);
  font-weight: 700;
  color: var(--white);
  min-width: 100px;
  text-align: center;
  line-height: 1;
}

.stepper-caption {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

/* ---------- Text field ---------- */

.scene-text-input {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  font-family: var(--font-body);
  font-size: 20px;
  text-align: center;
  padding: 14px 10px;
  border: none;
  border-bottom: 2px solid var(--option-border);
  background: transparent;
  color: var(--white);
}

.scene-text-input::placeholder { color: var(--ink-faint); }
.scene-text-input:focus { outline: none; border-color: var(--accent); }

/* ---------- Buttons ---------- */

.btn {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 30px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(255, 0, 102, 0.3);
}

.btn-primary:hover { background: var(--accent-dark); }

.btn-secondary {
  background: transparent;
  color: var(--ink-soft);
  border: 1.5px solid var(--option-border);
}

.btn-secondary:hover { color: var(--white); border-color: rgba(255,255,255,0.5); }

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-large {
  padding: 19px 44px;
  font-size: 14px;
}

.cta-row {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

/* ---------- Thinking screen ---------- */

.thinking-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 60px 24px;
  text-align: center;
  overflow: hidden;
}

.thinking-spinner {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
  border-top-color: var(--accent);
  animation: thinking-spin 0.9s linear infinite;
}

@keyframes thinking-spin {
  to { transform: rotate(360deg); }
}

.thinking-line {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 28px);
  font-weight: 600;
  color: var(--white);
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  transition: opacity 0.15s ease;
}

.thinking-line.is-swapping { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .thinking-spinner { animation-duration: 1.4s; }
}

/* ---------- Route map ---------- */

.route-map {
  /* width: calc(100% - 56px), not padding — this element's own border/
     radius/shadow/overflow:hidden ARE the map's visual card frame, so
     padding would inset the Leaflet tiles inside that frame and leave a
     blank matte around them. Narrowing the box itself (width + max-width +
     auto margins) instead gives the same ~28px gutter as the hotel/day
     cards without that artifact. */
  width: calc(100% - 56px);
  max-width: 840px;
  margin: 0 auto 32px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.route-map .leaflet-popup-content-wrapper {
  font-family: var(--font-body);
  border-radius: 10px;
}

/* ---------- Trip summary ("Your trip at a glance") — a short warm
   paragraph recapping the quiz answers in the same voice as the quiz
   itself, rather than a tag/chip list (reads too much like a form
   receipt). ---------- */

.trip-summary {
  width: calc(100% - 56px);
  max-width: 840px;
  margin: 48px auto 32px;
}

.trip-summary-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 10px;
}

.trip-summary-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 640px;
}

/* The route line — new information the rest of the paragraph builds up
   to, so it gets real visual weight instead of blending into the prose. */
.trip-summary-route {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.3;
  color: var(--heading);
  margin-top: 18px;
}

.trip-summary-footer {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: 8px;
}

/* ---------- Transport panel ---------- */

.transport-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: calc(100% - 56px);
  max-width: 840px;
  margin: 0 auto 16px;
}

.transport-block {
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 24px 26px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.transport-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

.transport-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.transit-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.transit-row:first-of-type { border-top: none; }

.transit-town {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
}

.transit-note {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 2px;
}

.transit-note a { color: #FF8FB8; font-weight: 600; }

.transport-btn {
  padding: 11px 20px;
  font-size: 12px;
}

/* ================================================================
   RESULTS — same cinematic language: full-bleed photo/gradient bands
   for the header and each town's "where to stay" section, dark glass
   cards for the day-by-day timeline and transport panel.
   ================================================================ */

#results-view { width: 100%; }

.results-header {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 62vh;
  display: flex;
  /* Confirmed as a real bug: with no flex-direction set, this defaults to
     row — kicker/h1/divider (and now the hint line) were laid out
     side-by-side instead of stacked, only staying legible before by
     accident with just two short children. column + justify-content
     (not align-items, which controls the wrong axis once column is set)
     is what actually anchors the stacked text block to the bottom of the
     photo band. */
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 100px 28px 56px;
}

.results-header::before {
  content: '';
  position: absolute;
  inset: 0;
  /* Set inline per-render as --results-header-photo, matching the first
     base town in the actual itinerary (falls back to Dona Ana/Lagos if
     unset). See TOWN_PHOTOS / renderResults() in render.js. */
  background-image: var(--results-header-photo, url('../assets/dona-ana-hero.jpg'));
  background-size: cover;
  background-position: center 60%;
  animation: hero-ken-burns 32s ease-in-out infinite alternate;
  z-index: 0;
}

.results-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6,10,12,0.92) 0%, rgba(6,10,12,0.5) 55%, rgba(6,10,12,0.25) 100%);
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .results-header::before { animation: none; }
}

/* ---------- Per-town "chapter" photo break — opens each base's section
   with a full-bleed photo of that specific town (real photo for Lagos/
   Carrapateira, mood-matched placeholder otherwise — see TOWN_PHOTOS in
   render.js). Same visual language as .results-header, smaller. Breaks up
   the light stay-card/timeline content with a recurring dark cinematic
   moment tied to the town it introduces. ---------- */

.base-break {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  height: 46vh;
  min-height: 320px;
  overflow: hidden;
  margin-top: 56px;
}

.base-break--first { margin-top: 0; }

.base-break-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  animation: hero-ken-burns 30s ease-in-out infinite alternate;
}

.base-break-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,10,12,0.88) 0%, rgba(6,10,12,0.3) 55%, rgba(6,10,12,0.12) 100%);
}

.base-break-content {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0 28px 32px;
  /* Was max-width: 840px — .stay-card centers its children at 840px
     *inside* a box whose own 28px padding was already applied to the
     full-bleed 100vw parent (padding consumed first, then centering),
     but this element centers *itself* at 840px and only then applies
     its own 28px padding (centering first, padding second) — an extra
     28px of inset stay-card doesn't have, which is why the town name
     sat further in than "Where to Stay". Capping at 840+2*28=896
     instead makes both resolve to the same effective content offset. */
  max-width: 896px;
  margin: 0 auto;
}

/* Order swapped (heading now first, kicker underneath) — the 6px
   separation spacing moves with it, from the heading to the kicker. */
.base-break-content .kicker { color: #FF8FB8; margin-top: 6px; }
.base-break-content h2.display { color: #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .base-break-img { animation: none; }
}

.results-header > * {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}

.results-header .kicker { color: #FF8FB8; }

/* ---------- "Where to stay" band per base town — rich warm gradient
   that slowly drifts, standing in for a second photo texture (explicitly
   allowed alongside Ken-Burns per the design brief) ---------- */

.stay-card {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  color: var(--white);
  padding: 90px 28px 64px;
  margin-top: 48px;
  overflow: hidden;
}

.stay-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #1a0f08 0%, #5c2413 26%, #9c4221 52%, #3a1b10 78%, #120a06 100%);
  background-size: 320% 320%;
  animation: gradient-drift 22s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes gradient-drift {
  0% { background-position: 0% 30%; }
  100% { background-position: 100% 70%; }
}

@media (prefers-reduced-motion: reduce) {
  .stay-card::before { animation: none; }
}

.stay-card > * {
  position: relative;
  z-index: 1;
  max-width: 840px;
  margin: 0 auto;
  width: 100%;
}

.stay-card .kicker { color: #FFD9A0; }
.stay-card h2.display { color: var(--white); margin-top: 8px; }
.stay-card .lede { color: rgba(255,255,255,0.82); }

.hotel-list {
  margin-top: 26px;
  display: grid;
  gap: 14px;
}

.hotel-item {
  padding: 22px 24px;
  border-radius: 14px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hotel-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
}

.hotel-meta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FFD9A0;
  margin-top: 4px;
}

.hotel-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.82);
  margin-top: 10px;
}

/* Was .hotel-item .maps-link only — now a booking-link can sit alongside
   it (see render.js hotelHtml), so the margin belongs on their shared
   .stop-links flex wrapper instead, or the two would sit at different
   heights (margin on only one flex-row sibling). */
.hotel-item .stop-links { margin-top: 12px; }

/* ---------- Day-by-day timeline — dark glass cards over the base --bg,
   sitting between the warm stay-card bands ---------- */

/* Was a plain max-width:840px + padding:0 28px block, applying its own
   padding *inside* the 840px cap (unlike .stay-card, which is full-bleed
   100vw with padding on the outer box and centers its children at the
   full 840px *inside* that padding) — meaning stop cards only ever got
   ~784px to work with while stay cards got the full 840px. Restructured
   to the same full-bleed pattern .stay-card uses, via .day-section > *
   below, so both card types render the same width. */
.day-section {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 44px;
  padding: 0 28px;
}

.day-section > * {
  max-width: 840px;
  margin: 0 auto;
}

/* A day label, not a button — no pill shape or fill (those read as
   tappable). The accent shows up only as a small underline rule, the same
   restrained-decoration role .divider already plays elsewhere. */
.day-badge {
  /* block + width:fit-content (not inline-block) so the new
     .day-section > * { margin: 0 auto } centering rule actually applies
     to it — auto margins don't center inline-block boxes, only true
     block-level ones, and without this it would sit flush against
     .day-section's padding edge while .timeline (a real block/grid box)
     gets pulled to the centered 840px column, misaligning the two. */
  display: block;
  width: fit-content;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 7px;
  border-bottom: 2px solid var(--accent);
}

/* Only rendered under the trip's very first day — see dayHtml() in
   render.js — right where Swap first becomes something there's actually
   a card on screen to use it on. */
.day-swap-hint {
  text-align: center;
  margin-top: 10px;
  font-size: 13px;
  color: var(--results-ink-faint);
}

.timeline { margin-top: 22px; display: grid; gap: 14px; }

.stop {
  display: flex;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.stop-time {
  /* Was 76px — "Afternoon" (9 letters, bold + letter-spaced) was wide
     enough to wrap onto two lines in that column while Morning/Lunch/
     Dinner stayed on one, so an Afternoon row rendered taller than its
     neighbors — which read as the description text below it being
     misaligned even though .stop-body's own margin never changed (it's
     a flex sibling, not nested under .stop-time). Widened so every
     label reliably fits on one line. */
  flex: 0 0 92px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #FF8FB8;
  padding-top: 3px;
}

.stop-body { flex: 1; }

.stop-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(255,255,255,0.14);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.stop-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}

.stop-note {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.veg-flag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #8FE39B;
  background: rgba(143,227,155,0.14);
  padding: 3px 9px;
  border-radius: 100px;
  margin-left: 6px;
}

.stop-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.maps-link,
.booking-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: #FF8FB8;
  text-decoration: none;
  border-bottom: 1.5px solid #FF8FB8;
  opacity: 0.92;
  padding-bottom: 1px;
}

.maps-link:hover, .booking-link:hover { opacity: 1; }

.maps-link::before { content: "📍"; font-size: 12px; }
.booking-link::before { content: "🎟️"; font-size: 12px; }

/* Swap + swap panel — only ever rendered inside .stop on the light results
   page, so these use --results-* tokens directly (same approach as
   .feedback-* above) rather than needing a #results-view-scoped override
   the way .stop's own dark-default styling does. Styled to match
   .maps-link/.booking-link exactly (same row, same icon-prefixed-link
   look) but in --accent rather than their #FF8FB8, since a swap actually
   changes something — it reads as the more consequential action of the
   three, not just another info link. */
.swap-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border: none;
  border-bottom: 1.5px solid var(--accent);
  opacity: 0.92;
  padding: 0 0 1px;
  background: none;
  cursor: pointer;
}

.swap-link:hover { opacity: 1; }
.swap-link::before { content: "⇄"; font-size: 13px; }

.stop.is-swap-confirmed {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.swap-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--results-card-border);
}

.swap-panel-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--results-ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.swap-candidate {
  padding: 12px 0;
  border-bottom: 1px solid var(--results-line);
}

.swap-candidate:last-of-type { border-bottom: none; }

.swap-candidate-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--results-ink);
}

.swap-candidate-note {
  font-size: 13px;
  line-height: 1.4;
  color: var(--results-ink-soft);
  margin: 4px 0 8px;
}

.swap-candidate-choose {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: none;
  background: var(--accent);
  color: var(--white);
  cursor: pointer;
}

.swap-empty {
  font-size: 14px;
  color: var(--results-ink-faint);
  margin-bottom: 10px;
}

.swap-cancel {
  display: block;
  margin-top: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  background: none;
  border: none;
  color: var(--results-ink-faint);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.restart-row {
  text-align: center;
  margin: 72px 0 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.save-send-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.save-send-hint {
  font-size: 13px;
  color: var(--results-ink-faint);
  max-width: 320px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-elev);
  border-top: 1px solid var(--line);
  /* padding, not margin-top: a margin here would sit outside the footer's
     own background, exposing the page's base dark color underneath —
     invisible against the dark hero/quiz, but a stray black bar between the
     footer and the results page's light background. Padding keeps this
     spacing painted in the footer's own color regardless of what precedes it. */
  padding: 112px 24px 48px;
}

.footer-inner {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.82;
  text-decoration: none;
}

.footer-links a:hover { opacity: 1; text-decoration: underline; }

.footer-social {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.footer-social-icons { display: flex; gap: 16px; }

.footer-social-icons a { color: var(--white); opacity: 0.82; display: flex; }
.footer-social-icons a:hover { opacity: 1; }

.footer-email {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.82;
  text-decoration: none;
}

.footer-email:hover { opacity: 1; text-decoration: underline; }

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-zoom {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.reveal-zoom.is-visible {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-zoom { opacity: 1; transform: none; transition: none; }
}

/* ---------- Utility ---------- */

.hidden { display: none !important; }

/* ================================================================
   RESULTS PAGE — LIGHT THEME OVERRIDE
   The hero/quiz stay dark and cinematic (the emotional sell — short,
   glanceable, mood-first). The itinerary itself is a reference document
   people scan, compare, and click links from — dark-vs-light research
   consistently favors light for that use case — so it switches to a
   clean, light theme instead of carrying the dark palette all the way
   through. The header photo band is untouched: it's a real photo, not
   a flat dark panel, so it stays as the cinematic opening moment.
   ================================================================ */

#results-view {
  background: var(--results-bg);
  color: var(--results-ink);
  /* Without this, .restart-row's own bottom margin collapses straight
     through this unpadded edge and out of the box — exposing the raw body
     background (a different, darker shade than the footer) as a second
     stray band, right above the one the footer's margin-top caused. Any
     non-zero padding here blocks that collapse per spec, without clipping
     the full-bleed 100vw-breakout sections (padding alone doesn't affect
     horizontal overflow the way overflow:hidden would). */
  padding-bottom: 1px;
}

#results-view .stay-card {
  background: var(--results-bg-alt);
  color: var(--results-ink);
  /* The base rule's margin-top: 48px was spacing .stay-card away from
     whatever came before it when that was plain content. Now a .base-break
     photo always comes first, and its own bottom edge plus this card's
     existing top padding are already enough separation — the extra margin
     just reads as a stray gap of page background wedged under the photo. */
  margin-top: 0;
}
#results-view .stay-card::before { display: none; }
#results-view .stay-card .kicker { color: var(--results-ink-faint); }
#results-view .stay-card h2.display { color: var(--results-ink); }
#results-view .stay-card .lede { color: var(--results-ink-soft); }

#results-view .hotel-item {
  background: var(--results-card-bg);
  border: 1px solid var(--results-card-border);
  box-shadow: 0 2px 10px rgba(27, 39, 51, 0.05);
  backdrop-filter: none;
}
#results-view .hotel-name { color: var(--results-ink); }
#results-view .hotel-meta { color: var(--results-ink-faint); }
#results-view .hotel-note { color: var(--results-ink-soft); }

#results-view .stop {
  background: var(--results-card-bg);
  border: 1px solid var(--results-card-border);
  box-shadow: 0 2px 10px rgba(27, 39, 51, 0.05);
  backdrop-filter: none;
}
#results-view .stop-time { color: var(--results-ink-faint); }
#results-view .stop-tag { background: rgba(27, 39, 51, 0.06); color: var(--results-ink-soft); }
#results-view .stop-name { color: var(--results-ink); }
#results-view .stop-note { color: var(--results-ink-soft); }
#results-view .veg-flag { color: #1F8A4C; background: rgba(31, 138, 76, 0.12); }
#results-view .maps-link,
#results-view .booking-link { color: var(--accent); border-bottom-color: var(--accent); }

#results-view .trip-summary-label { color: var(--results-ink-faint); }
#results-view .trip-summary-text { color: var(--results-ink-soft); }
#results-view .trip-summary-route { color: var(--results-ink); }
#results-view .trip-summary-footer { color: var(--results-ink-faint); }

#results-view .transport-block {
  background: var(--results-card-bg);
  border: 1px solid var(--results-card-border);
  backdrop-filter: none;
}
#results-view .transport-label { color: var(--results-ink-faint); }
#results-view .transit-row { border-top-color: var(--results-line); }
#results-view .transit-town { color: var(--results-ink); }
#results-view .transit-note { color: var(--results-ink-soft); }
#results-view .transit-note a { color: var(--accent); }

/* Route map: plain, clean, real basemap — no dark recolor filter. */
#results-view .route-map {
  margin-top: 32px;
  box-shadow: 0 2px 16px rgba(27, 39, 51, 0.08);
  border: 1px solid var(--results-card-border);
}

/* Pricing-feedback block: same light-card look as .stay-card/.hotel-item
   above, not the quiz's dark .option/.glass-bg styling — this sits on the
   light results page, not the dark quiz scenes. */
.feedback-block {
  max-width: 640px;
  margin: 56px auto 0;
  padding: 32px;
  background: var(--results-card-bg);
  border: 1px solid var(--results-card-border);
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(27, 39, 51, 0.05);
  text-align: center;
}

.feedback-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--results-ink);
}

.feedback-sub {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--results-ink-faint);
}

.feedback-question {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 600;
  color: var(--results-ink);
}

.feedback-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.feedback-option {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 100px;
  border: 1.5px solid var(--results-card-border);
  background: var(--results-bg);
  color: var(--results-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.feedback-option:hover { border-color: rgba(27, 39, 51, 0.35); }

.feedback-option.is-selected {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
  font-weight: 600;
}

.feedback-label {
  display: block;
  margin-top: 24px;
  font-size: 13px;
  color: var(--results-ink-faint);
}

.feedback-textarea {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  min-height: 70px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--results-ink);
  background: var(--results-bg);
  border: 1.5px solid var(--results-card-border);
  border-radius: 10px;
  resize: vertical;
}

.feedback-textarea::placeholder { color: var(--results-ink-faint); }
.feedback-textarea:focus { outline: none; border-color: var(--accent); }

#feedback-submit {
  margin-top: 20px;
}

#feedback-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Covers both the restart button and the transport panel's "Book a
   shuttle bus" / "Private shuttle" links — .btn-secondary's base rule
   (style.css:547) is light-on-dark and was unreadable against the light
   results theme. */
#results-view .btn-secondary {
  color: var(--results-ink-soft);
  border-color: rgba(27, 39, 51, 0.22);
}
#results-view .btn-secondary:hover {
  color: var(--results-ink);
  border-color: rgba(27, 39, 51, 0.4);
}

/* Transport buttons link out to booking sites, same as "Open in Google
   Maps" / "Book this" elsewhere on this page — pink text + pink border so
   they read as active/clickable, not the neutral grey .btn-secondary uses
   for in-page actions like "Start over". Wins the tie with the rule above
   by appearing later at equal specificity. */
#results-view .transport-btn {
  color: var(--accent);
  border-color: var(--accent);
}
#results-view .transport-btn:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

@media (max-width: 480px) {
  .hero-content-inner { padding: 0 18px; }
  .scene { padding: 100px 18px 70px; }
  .stepper { gap: 18px; }
  .stay-card { padding: 70px 20px 48px; }
  .results-header { padding: 80px 20px 40px; min-height: 56vh; }
  .base-break { height: 40vh; min-height: 260px; }
  .footer-inner { flex-direction: column; }
  .footer-social { align-items: flex-start; }

  /* Confirmed as a real bug: .stop-time's fixed 92px side column (sized
     for "AFTERNOON" on desktop) left too little room beside it on a
     narrow phone, squeezing .stop-body enough that even short links like
     "Open in Google Maps" wrapped awkwardly. Stacking the label above the
     content instead of beside it removes that competition entirely —
     works for any label length, not just a fix for "Afternoon"
     specifically, and content gets the card's full width to work with. */
  .stop { flex-direction: column; gap: 6px; }
  .stop-time { flex: none; padding-top: 0; }
}

/* Save/Send (window.print()) output: keep only the itinerary content
   itself — no buttons, no swap UI, no feedback ask. Real <a href> links
   survive browser print-to-PDF as genuinely clickable links, so no extra
   handling is needed to keep them usable in the saved file. */
@media print {
  .hero, #progress-bar, .site-footer,
  .swap-link, .swap-panel, .day-swap-hint,
  #feedback-block, .restart-row {
    display: none !important;
  }
}
