/* =========================================================================
   Mom & Dad in Southeast Asia
   Tokens first, then primitives, then screens. Nothing below the token
   block uses a raw color, size or timing.

   Built for two people in their seventies reading a phone at arm's length,
   often in bright sun: 19px body text as the floor, 48px tap targets, and
   7:1 contrast for anything that answers "where do we need to be".
   ========================================================================= */

:root {
  /* --- color primitives --------------------------------------------------
     jade: Halong water and the hotel's name. saffron: monks' robes, and the
     one warm family, reserved for "today" and "pay attention". paper: warm
     off-white that survives sunlight better than pure white. Contrast
     figures are against paper unless noted. */
  --jade-900: #073a37;   /* 12.1:1 */
  --jade-800: #0b4844;   /* 10.0:1 */
  --jade-700: #0f5f5a;   /*  7.3:1 — brand fill; white on it 7.3:1 */
  --jade-300: #8fc4b9;   /* the unfilled progress track: clearly a line, never text */
  --jade-100: #d9ebe7;
  --jade-50:  #ecf4f2;
  --saffron-700: #8f4406; /* 7.4:1 — warning text */
  --saffron-500: #e0a027;
  --saffron-400: #f2b641; /* ink on it 10.6:1 */
  --saffron-100: #fbeacb;
  --ink-900: #1f2a28;    /* 13.6:1 */
  --ink-600: #4a5654;    /*  6.9:1 — secondary text (7.6:1 on a white card) */
  --ink-400: #6b7674;    /*  4.6:1 — only for decorative meta */
  --paper: #f7f3ec;
  --card: #ffffff;
  /* Edges are ink at low opacity, never a solid tan: a hairline that reads
     as a slightly darker version of whatever it sits on, so a card on cream,
     a chip on white and land on the sea all get the same crisp 1px line. */
  --edge: rgb(31 42 40 / 0.18);
  --edge-strong: rgb(31 42 40 / 0.36);
  /* Photo overlays are black, eased from the bottom up: solid enough behind
     the text (with the text shadow and solid pills carrying the rest), then a long soft fade
     to nothing so the picture is never cut by a hard edge. */
  --overlay: rgb(0 0 0 / 0.50);
  --overlay-mid: rgb(0 0 0 / 0.28);
  --overlay-soft: rgb(0 0 0 / 0.08);
  --photo-fade: linear-gradient(to top, var(--overlay) 0%, var(--overlay) 30%, var(--overlay-mid) 48%, var(--overlay-soft) 64%, transparent 76%, transparent 100%);
  /* Two layers: a tight shadow that defines the letter edges and a wide soft
     one that reads as depth, so white text sits in the photo instead of on it. */
  --text-shadow-photo: 0 1px 2px rgb(0 0 0 / 0.55), 0 2px 14px rgb(0 0 0 / 0.40);
  --on-photo: #ffffff;               /* text laid over a photograph */
  --on-photo-soft: rgb(255 255 255 / 0.22); /* a pill or button over a photograph */
  --scrim: rgb(0 0 0 / 0.92);        /* behind the lightbox */
  --map-land: #ffffff;

  /* --- semantic ---------------------------------------------------------- */
  --bg: var(--paper);
  --bg-card: var(--card);
  --bg-muted: var(--jade-50);
  --fg: var(--ink-900);
  --fg-muted: var(--ink-600);
  --fg-faint: var(--ink-400);
  --brand: var(--jade-700);
  --brand-strong: var(--jade-800);
  --brand-fg: #ffffff;
  --brand-soft: var(--jade-100);
  --accent: var(--saffron-400);
  --accent-fg: var(--ink-900);
  --accent-soft: var(--saffron-100);
  --accent-text: var(--saffron-700);
  --border: var(--edge);
  --border-strong: var(--edge-strong);
  --hero-overlay: var(--overlay);
  --focus: var(--saffron-500);

  /* --- type -------------------------------------------------------------- */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --fs-meta: 1rem;        /* 16px: the floor, dates in lists only */
  --fs-body: 1.1875rem;   /* 19px */
  --fs-brand: clamp(1rem, 4.6vw, 1.1875rem); /* header title: 19px on wide phones, 16px on the narrowest */
  --fs-lead: 1.3125rem;   /* 21px */
  --fs-h3: 1.375rem;      /* 22px */
  --fs-h2: 1.625rem;      /* 26px */
  --fs-h1: 2.125rem;      /* 34px */
  --fs-display: 3rem;     /* 48px: the countdown, the driver card */
  --fs-display-xl: 4.5rem; /* 72px: the driver card on an iPad */
  --lh-tight: 1.15;
  --lh-body: 1.45;

  /* --- space, shape, motion --------------------------------------------- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --tap: 3rem;            /* 48px minimum target */
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgb(31 42 40 / 0.06), 0 6px 20px rgb(31 42 40 / 0.07);
  --dur-fast: 120ms;      /* press feedback */
  --dur: 220ms;           /* day changes, toasts */
  --dur-slow: 320ms;      /* the driver card, the countdown */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* entering: decelerate */
  --ease-in: cubic-bezier(0.55, 0, 1, 0.45);   /* leaving: accelerate */
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1); /* gliding: soft both ends */
  --slide: 1.5rem;        /* how far a day slides in from the side it came from */
  --press: 0.97;          /* every tappable thing shrinks to this while pressed */
  --dot: 0.35rem;         /* the active-tab marker */
  --lift: -2px;           /* how far a hovered card or button rises (desktop only) */
  --nudge: 4px;           /* a chevron slides this far on hover */
  --grow: 1.03;           /* a hovered photo or marker grows to this */
  --shadow-lift: 0 2px 4px rgb(31 42 40 / 0.08), 0 12px 28px rgb(31 42 40 / 0.12);
  --promo-map: 17rem;     /* the map as a picture on the countdown hero */
  --band-h: 17rem;        /* the photo band above it on a phone: room for the photo above the text */
  --promo-cta: 22rem;     /* and the button under it */
  --promo-map-wide: 19rem; /* the promo map on an iPad */
  --portrait: 5.5rem;      /* Lucy's photo on the countdown screen */
  --stamp: 2.75rem;        /* her paw-print stamp of approval: a saffron coin */
  --stamp-tilt: 14deg;
  --draw: 450ms;          /* one leg glides in over this, soft start and stop */
  --pop: 300ms;           /* its callout pops in as the line arrives */
  --stagger: 560ms;       /* the next leg begins as the pop finishes (~4.5s in all) */
  --arrive: 80ms;         /* the pop starts this much before the line fully lands, so it reads as one motion */
  --seg-h: 0.3rem;        /* the trip progress track */
  --seg-gap: 3px;         /* the cut between one day and the next */
  --track: var(--jade-300);
  --select: 1.12;         /* a selected map stop grows to this */
  --maxw: 40rem;
  --maxw-wide: 64rem;     /* iPad and landscape phones */
  --bp-wide: 48rem;       /* two-column layouts from here up (documentation; media queries cannot read tokens) */
  --tabs-h: 4.25rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14201e;
    --bg-card: #1c2a28;
    --bg-muted: #203330;
    --fg: #f1ece2;
    --fg-muted: #c2bcae;
    --fg-faint: #8f9a97;
    --brand: #6cc4b8;
    --brand-strong: #8fd6cc;
    --brand-fg: #073a37;
    --brand-soft: #24413d;
    --accent: #f2b641;
    --accent-fg: #1f2a28;
    --accent-soft: #4a3a18;
    --accent-text: #f2b641;
    --edge: rgb(255 255 255 / 0.16);
    --edge-strong: rgb(255 255 255 / 0.32);
    --border: var(--edge);
    --border-strong: var(--edge-strong);
    --map-land: #263a37;
    --track: #3f6b64;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 6px 20px rgb(0 0 0 / 0.35);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / 0.4), 0 14px 32px rgb(0 0 0 / 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --dur-fast: 0ms; --dur: 0ms; --dur-slow: 0ms; --slide: 0px; }
}

/* --- reset & base ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  min-height: 100dvh;
  padding-bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand-strong); }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
/* An author display value would otherwise beat the hidden attribute, and a
   hidden full-screen overlay that still renders swallows every tap beneath it. */
[hidden] { display: none !important; }
svg { display: inline-block; width: 1.5em; height: 1.5em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

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

/* --- top bar ------------------------------------------------------------- */
.top {
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: max(var(--sp-2), env(safe-area-inset-top)) var(--sp-4) var(--sp-2);
  min-height: var(--tap);
  background: var(--brand);
  color: var(--brand-fg);
}
.top__brand { color: inherit; text-decoration: none; font-family: var(--font-display); font-size: var(--fs-brand); font-weight: 600; letter-spacing: 0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; min-height: var(--tap); display: inline-flex; align-items: center; }
.top__status { font-size: var(--fs-meta); opacity: 0.92; text-align: right; white-space: nowrap; flex: none; }

/* --- motion ----------------------------------------------------------------
   Three entrances. Going forward a day slides in from the right, going back
   from the left, and switching sections just settles into place. Every
   duration is a token, and reduced-motion zeroes them all. */
@keyframes enter-forward { from { opacity: 0; transform: translateX(var(--slide)); } to { opacity: 1; transform: none; } }
@keyframes enter-back { from { opacity: 0; transform: translateX(calc(-1 * var(--slide))); } to { opacity: 1; transform: none; } }
@keyframes enter-settle { from { opacity: 0; transform: translateY(var(--sp-2)); } to { opacity: 1; transform: none; } }
@keyframes img-in { from { opacity: 0; } to { opacity: 1; } }
.view--forward { animation: enter-forward var(--dur) var(--ease-out); }
.view--back { animation: enter-back var(--dur) var(--ease-out); }
.view--settle { animation: enter-settle var(--dur) var(--ease-out); }

/* Press feedback for everything tappable that is not already a .btn. */
.daybar__btn, .daybar__today, .tabs a, .dayrow, .cityrow, .peek, .stay__photo, .stay__thumb, .map__city, .tel {
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast);
}
.daybar__btn:active, .daybar__today:active, .dayrow:active, .cityrow:active, .peek:active, .stay__thumb:active { transform: scale(var(--press)); }
.tabs a:active svg { transform: scale(var(--press)); }

/* --- layout -------------------------------------------------------------- */
/* minmax(0, 1fr) pins the column to the container so a wide child wraps
   instead of blowing the whole page out sideways at large text sizes. */
.view { max-width: var(--maxw); margin: 0 auto; padding: var(--sp-4); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.view:focus { outline: none; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); }
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-4); }
.card--muted { background: var(--bg-muted); box-shadow: none; }
.card--accent { background: var(--accent-soft); box-shadow: none; }
.card__title { font-family: var(--font-body); font-size: var(--fs-meta); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); margin-bottom: var(--sp-3); }
.card > .card__title:first-child { margin-top: 0; }

.h1 { font-family: var(--font-display); font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 600; }
.h2 { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-tight); font-weight: 600; }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-tight); font-weight: 700; }
.lead { font-size: var(--fs-lead); }
.muted { color: var(--fg-muted); }
.meta { font-size: var(--fs-meta); color: var(--fg-muted); }
.prose { display: grid; gap: var(--sp-3); }
.prose, .step__detail, .hero__title, .h1, .h2, .h3 { overflow-wrap: anywhere; }

/* --- day columns -----------------------------------------------------------
   On a phone the wrappers vanish (display: contents) and `order` restores
   the one-column reading order: plan, hotel, notes, tomorrow, about. On an
   iPad the wrappers become two real columns. */
.cols, .col { display: contents; }
.o-now { order: 1; } .o-badges { order: 2; } .o-plan { order: 3; } .o-hotel { order: 4; }
.o-notes { order: 5; } .o-peek { order: 6; } .o-about { order: 7; } .o-nav { order: 8; }
.o-1 { order: 1; } .o-2 { order: 2; } .o-3 { order: 3; } .o-4 { order: 4; }

/* --- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: var(--tap); padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius); border: 2px solid var(--brand);
  background: var(--brand); color: var(--brand-fg);
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast);
}
.btn:active { transform: scale(0.97); }
.btn--ghost { background: transparent; color: var(--brand-strong); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.btn--block { width: 100%; }
.btn--lg { font-size: var(--fs-lead); min-height: 3.5rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row > .btn { flex: 1 1 10rem; }

/* --- day strip (prev / today / next) ------------------------------------- */
.daybar {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--sp-2);
  margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) 0;
  padding: var(--sp-2) var(--sp-3);
  background: var(--bg); border-bottom: 1px solid var(--border);
  overflow: hidden; /* never widen the page; app.js reads the clipped width and drops the captions */
}
.daybar__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  min-height: var(--tap); min-width: var(--tap); padding: 0 var(--sp-3); overflow: hidden;
  border-radius: var(--radius); border: 2px solid var(--border-strong);
  background: var(--bg-card); color: var(--fg); font-weight: 700; text-decoration: none;
}
.daybar__btn[aria-disabled="true"] { opacity: 0.35; pointer-events: none; }
.daybar__btn span { font-size: var(--fs-meta); }
.daybar__mid { text-align: center; display: grid; justify-items: center; gap: var(--sp-1); min-width: 0; overflow: hidden; }
.daybar__label { font-weight: 700; font-size: var(--fs-meta); }
.daybar__today { text-decoration: none; white-space: nowrap; min-height: var(--tap); padding: 0 var(--sp-3); border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-fg); border: 0; font-weight: 700; font-size: var(--fs-meta); display: inline-flex; align-items: center; gap: var(--sp-1); }

/* --- hero ---------------------------------------------------------------- */
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--brand-strong); border: 1px solid var(--border); min-height: 15rem; display: grid; align-items: end; box-shadow: var(--shadow); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: img-in var(--dur-slow) var(--ease-out); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--photo-fade); pointer-events: none; }
.hero--map::after { content: none; }
.hero__body { position: relative; z-index: 1; padding: var(--sp-5) var(--sp-4) var(--sp-4); color: var(--on-photo); text-shadow: var(--text-shadow-photo); display: grid; gap: var(--sp-2); }
.hero__body a { color: inherit; }
.hero__kicker { display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; font-size: var(--fs-meta); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__title { font-family: var(--font-display); font-size: var(--fs-h1); line-height: var(--lh-tight); font-weight: 600; text-wrap: balance; }
.hero__sub { font-size: var(--fs-lead); }
/* On a photo a pill is solid jade, so white text on it is 7.5:1 whatever is behind;
   with a solid background it needs no text shadow. */
.pill { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0.2em 0.7em; border-radius: var(--radius-pill); background: var(--brand); text-shadow: none; }
.pill--today { background: var(--accent); color: var(--accent-fg); }
.pill--plain { background: none; padding-inline: 0; }

/* The countdown hero: a title band, then a promo of the route (small map,
   big call to action). The promo is one link; the map inside is a picture. */
.hero--map { display: grid; grid-template-rows: auto 1fr; align-items: start; min-height: 0; background: var(--brand-soft); }
.hero--map .map { border-radius: 0; border: 0; background: transparent; width: min(100%, var(--promo-map)); }
.hero__band { position: relative; overflow: hidden; min-height: var(--band-h); padding: var(--sp-4); background: var(--brand); color: var(--brand-fg); display: grid; align-content: end; }
.hero__band::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--photo-fade); pointer-events: none; }
.hero__band-body { position: relative; z-index: 1; display: grid; gap: var(--sp-2); text-shadow: var(--text-shadow-photo); }
.hero__band .pill { background: var(--brand); }
.hero__promo { display: grid; justify-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-4) var(--sp-5); text-decoration: none; color: inherit; transition: transform var(--dur-fast) var(--ease-out); }
.hero__promo:active { transform: scale(var(--press)); }
.hero__cta { width: 100%; max-width: var(--promo-cta); font-size: var(--fs-h3); box-shadow: var(--shadow); }

/* --- badges -------------------------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.badge { display: inline-flex; align-items: center; gap: var(--sp-1); padding: 0.35em 0.8em; border-radius: var(--radius-pill); background: var(--accent-soft); border: 1px solid var(--border); color: var(--accent-text); font-weight: 700; font-size: var(--fs-meta); }
.badge svg { width: 1.25em; height: 1.25em; }
.badge--calm { background: var(--brand-soft); color: var(--brand-strong); }

/* --- now line ------------------------------------------------------------ */
.now { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius); }
.now svg { color: var(--brand); }
.now__time { font-weight: 700; }

/* --- timeline ------------------------------------------------------------ */
.timeline { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: var(--tap) minmax(0, 1fr); gap: var(--sp-3); padding: var(--sp-3) 0; position: relative; }
.step + .step { border-top: 1px solid var(--border); }
.step__icon { width: var(--tap); height: var(--tap); border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--border); color: var(--brand-strong); display: grid; place-items: center; }
.step__icon svg { width: 1.6rem; height: 1.6rem; }
.step__icon--accent { background: var(--accent); color: var(--accent-fg); }
.step__body { display: grid; gap: var(--sp-1); align-content: start; padding-top: 0.15rem; min-width: 0; }
.step__kind { font-size: var(--fs-meta); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-muted); display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.step__time { color: var(--accent-text); }
.step__title { font-size: var(--fs-h3); font-weight: 700; line-height: var(--lh-tight); }
.step__detail { color: var(--fg-muted); }

/* --- hotel card ---------------------------------------------------------- */
.hotel { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: var(--sp-4); align-items: start; }
.hotel__img { width: 6rem; height: 6rem; object-fit: cover; border-radius: var(--radius); outline: 1px solid var(--border); outline-offset: -1px; }
.hotel__body { display: grid; gap: var(--sp-1); min-width: 0; }
.hotel .btn-row { grid-column: 1 / -1; }

/* --- notes --------------------------------------------------------------- */
.notes { display: grid; gap: var(--sp-3); }
.notes li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: var(--sp-2); }
.notes svg { color: var(--accent-text); width: 1.5rem; height: 1.5rem; margin-top: 0.15rem; }

/* --- tomorrow / peek card ------------------------------------------------- */
.peek { display: grid; grid-template-columns: 5rem minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; text-decoration: none; color: inherit; }
.peek__img { width: 5rem; height: 5rem; object-fit: cover; border-radius: var(--radius); outline: 1px solid var(--border); outline-offset: -1px; }
.peek__body { display: grid; gap: var(--sp-1); min-width: 0; }
.peek svg { color: var(--brand); }

/* --- day list: one chapter per city -------------------------------------------
   The city's photo and stop number on one side, its days on the other. */
.chapters { display: grid; gap: var(--sp-4); }
.chapter { display: grid; gap: var(--sp-3); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-3); }
.chapter--here { border: 2px solid var(--accent); }
.chapter__media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 9rem; display: grid; align-items: end; background: var(--brand-strong); }
.chapter__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chapter__media::after { content: ""; position: absolute; inset: 0; z-index: 0; background: var(--photo-fade); pointer-events: none; }
.chapter__caption { position: relative; z-index: 1; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3); color: var(--on-photo); text-shadow: var(--text-shadow-photo); }
.chapter__n { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand); color: var(--brand-fg); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-meta); flex: none; text-shadow: none; }
.chapter--here .chapter__n { background: var(--accent); color: var(--accent-fg); }
.chapter__title { font-family: var(--font-display); font-size: var(--fs-h2); line-height: var(--lh-tight); font-weight: 600; }
.chapter__meta { font-size: var(--fs-meta); opacity: 0.95; }
.chapter__days { display: grid; gap: var(--sp-2); }
.dayrow { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; padding: var(--sp-2) var(--sp-3) var(--sp-2) var(--sp-2); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; min-height: var(--tap); }
.dayrow--today { border: 2px solid var(--accent); background: var(--accent-soft); }
.dayrow--past .dayrow__img { filter: saturate(0.6); }
.dayrow--past .dayrow__title { color: var(--fg-muted); }
.dayrow__img { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: var(--radius); outline: 1px solid var(--border); outline-offset: -1px; }
.dayrow__body { display: grid; gap: 0.15rem; min-width: 0; }
.dayrow__title { font-weight: 700; line-height: var(--lh-tight); }
.dayrow svg { color: var(--fg-faint); }

/* --- countdown ----------------------------------------------------------- */
.count { text-align: center; display: grid; gap: var(--sp-2); padding: var(--sp-5) var(--sp-4); }
.count__num { font-family: var(--font-display); font-size: var(--fs-display); line-height: 1; font-weight: 600; color: var(--brand-strong); }

/* --- Lucy's stamp of approval --------------------------------------------- */
.lucy { order: 99; /* last, on the phone's single column */ display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-3) var(--sp-2); }
.lucy__portrait { position: relative; flex: none; width: var(--portrait); height: var(--portrait); }
.lucy__photo { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; outline: 1px solid var(--border); outline-offset: -1px; }
/* A saffron coin over the lower right of the portrait, with the real ink paw
   print inside it in black (the saffron file, darkened; its ink alpha stays). */
.lucy__stamp { position: absolute; right: calc(-1 * var(--sp-3)); bottom: calc(-1 * var(--sp-3)); width: var(--stamp); height: var(--stamp); border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); display: grid; place-items: center; transform: rotate(var(--stamp-tilt)); }
.lucy__stamp img { width: 44%; height: auto; filter: brightness(0); }
.lucy__text { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; color: var(--fg-muted); }

/* --- map ----------------------------------------------------------------- */
.map { width: 100%; height: auto; display: block; border-radius: var(--radius-lg); background: var(--brand-soft); border: 1px solid var(--border); }
.map__land { fill: var(--map-land); stroke: var(--border-strong); stroke-width: 1; }
.map__label { font-family: var(--font-body); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; fill: var(--fg-faint); text-transform: uppercase; stroke: none; }
.map__leg { fill: none; stroke: var(--brand); stroke-width: 2.5; }
.map__leg--air { stroke-dasharray: 5 5; }
.map__city { cursor: inherit; }
a.map__city { cursor: pointer; }
.map__leader { stroke: var(--brand); stroke-width: 1.5; }
.map__point { fill: var(--brand); stroke: none; }
.map__ring { fill: none; stroke: var(--on-photo); stroke-width: 3; }
.map__pill { fill: var(--brand); stroke: var(--bg-card); stroke-width: 2; }
.map__pill-text { font-family: var(--font-body); font-size: 15px; font-weight: 700; fill: var(--brand-fg); stroke: none; }
.map__name { font-family: var(--font-body); font-size: 17px; font-weight: 700; fill: var(--fg); stroke: var(--brand-soft); stroke-width: 5px; stroke-linejoin: round; paint-order: stroke; }
.map--big .map__pill-text { font-size: 16px; }
.map--big .map__name { font-size: 22px; }
.map__city--here .map__pill { fill: var(--accent); }
.map__city--here .map__pill-text { fill: var(--accent-fg); }
.map__city--here .map__point { fill: var(--accent); }
.map__city--here .map__leader { stroke: var(--accent); }
.map__pulse { fill: var(--accent); opacity: 0.5; transform-origin: center; transform-box: fill-box; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map__pulse { animation: none; opacity: 0.35; transform: scale(1.6); } }
.map__city .map__hit { fill: transparent; stroke: none; }
/* The route draws itself: a mask over each leg is a copy of the same path
   whose dash offset runs from 1 to 0 (pathLength=1), leg by leg in travel
   order; each stop pops in as its leg arrives. Reduced motion zeroes it all. */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes city-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
.map__draw { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw var(--draw) var(--ease-in-out) forwards; animation-delay: calc(var(--i, 0) * var(--stagger)); }
/* A callout pops in as its line arrives (just before it fully lands), and the
   next leg waits for the pop to finish: one continuous motion, stop by stop. */
.map--unfold .map__city { opacity: 0; transform-box: fill-box; transform-origin: center; animation: city-in var(--pop) var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * var(--stagger) + (var(--draw) - var(--arrive)) * min(var(--i, 0), 1)); }
/* Country names hold still at half strength the whole time: the stage, not the play. */
.map--unfold .map__label { opacity: 0.55; }
.map--big .map__label { font-size: 15px; }
@media (prefers-reduced-motion: reduce) { .map__draw, .map--unfold .map__city { animation-delay: 0s; } }
.map__leg--upcoming { opacity: 0.4; }
.map--unfold .map__city--set { opacity: 1; animation: none; }
/* Only the callout (photo, day pill, name) grows on hover or selection; the
   leader line and its dot stay put. Origin is the photo's centre, set inline. */
.map__callout { transition: transform var(--dur) var(--ease-out); transform-box: view-box; }
.map__city--selected .map__callout { transform: scale(var(--select)); }
.map__city--selected .map__ring { stroke: var(--accent); stroke-width: 4; }
.legend i.faint { opacity: 0.4; }

/* --- stop sheet ------------------------------------------------------------ */
.sheet { position: fixed; inset: 0; z-index: 30; display: grid; align-items: end; }
.sheet__backdrop { position: absolute; inset: 0; background: var(--overlay-soft); opacity: 0; transition: opacity var(--dur-slow) var(--ease-out); }
.sheet__panel { position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; background: var(--bg-card); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow); overflow: hidden; transform: translateY(100%); transition: transform var(--dur-slow) var(--ease-out); padding-bottom: env(safe-area-inset-bottom); }
.sheet--open .sheet__backdrop { opacity: 1; }
.sheet--open .sheet__panel { transform: none; }
.sheet__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.sheet__body { display: grid; gap: var(--sp-3); padding: var(--sp-4); }
@media (min-width: 48rem) {
  .sheet { align-items: center; padding: var(--sp-5); }
  .sheet__panel { max-width: 34rem; border-radius: var(--radius-lg); transform: translateY(var(--sp-4)); opacity: 0; transition: transform var(--dur-slow) var(--ease-out), opacity var(--dur-slow) var(--ease-out); }
  .sheet--open .sheet__panel { transform: none; opacity: 1; }
}

/* --- progress track ------------------------------------------------------------
   A slim track split into sixteen faint slots. Jade fills the days already
   travelled, a saffron slot is today, and a small ink dot below marks the
   day being read (it slides as you page). Nothing is outlined or enlarged. */
.progress { grid-column: 1 / -1; position: relative; height: var(--seg-h); margin-top: var(--sp-3); margin-bottom: var(--dot); border-radius: var(--radius-pill); background: var(--track); overflow: visible; }
/* The cuts sit on top of every layer, so filled days and today are sliced too. */
.progress::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(100% / var(--days) - var(--seg-gap)), var(--bg) calc(100% / var(--days) - var(--seg-gap)), var(--bg) calc(100% / var(--days))); }
.progress__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: var(--radius-pill); background: var(--brand); }
.progress__today { position: absolute; top: 0; bottom: 0; left: calc(var(--i) * 100% / var(--days)); width: calc(100% / var(--days)); border-radius: var(--radius-pill); background: var(--accent); }
.progress__view { position: absolute; top: calc(100% + 3px); left: calc((var(--i) + 0.5) * 100% / var(--days)); width: var(--dot); height: var(--dot); margin-left: calc(-1 * var(--dot) / 2); border-radius: 50%; background: var(--fg); transition: left var(--dur) var(--ease-out); }

/* --- lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 40; background: var(--scrim); display: grid; place-items: center; opacity: 0; transition: opacity var(--dur) var(--ease-out); padding: var(--sp-4); }
.lightbox--open { opacity: 1; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius); transform: scale(0.96); transition: transform var(--dur-slow) var(--ease-out); }
.lightbox--open .lightbox__img { transform: none; }
.lightbox__close, .lightbox__nav { position: absolute; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: var(--on-photo-soft); color: var(--on-photo); display: grid; place-items: center; cursor: pointer; }
.lightbox__close { top: max(var(--sp-4), env(safe-area-inset-top)); right: var(--sp-4); }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: var(--sp-3); }
.lightbox__nav--next { right: var(--sp-3); }
.lightbox--single .lightbox__nav { display: none; }
.lightbox__count { position: absolute; bottom: max(var(--sp-4), env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: var(--on-photo); font-size: var(--fs-meta); font-weight: 700; }
.hero:not(.hero--map) .hero__img { cursor: zoom-in; }

.map-link { display: block; position: relative; border-radius: var(--radius-lg); text-decoration: none; color: inherit; transition: transform var(--dur-fast) var(--ease-out); }
.map-link:active { transform: scale(var(--press)); }
.map-link .map__city { cursor: inherit; }
.map-link__hint { position: absolute; left: var(--sp-3); bottom: var(--sp-3); display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 2.25rem; padding: 0 var(--sp-3); border-radius: var(--radius-pill); background: var(--brand); color: var(--brand-fg); font-size: var(--fs-meta); font-weight: 700; }
.map-link__hint svg { width: 1.25em; height: 1.25em; }
.stops { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-3); }
.stop { display: inline-flex; align-items: center; gap: var(--sp-2); min-height: var(--tap); padding: 0 var(--sp-3) 0 var(--sp-1); border-radius: var(--radius-pill); border: 2px solid var(--border-strong); background: var(--bg-card); color: var(--fg); font-weight: 700; text-decoration: none; transition: transform var(--dur-fast) var(--ease-out); }
.stop:active { transform: scale(var(--press)); }
.stop b { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--border); color: var(--brand-strong); display: grid; place-items: center; font-size: var(--fs-meta); }
.stop .meta { font-weight: 400; }
.stop--here { border-color: var(--accent); }
.stop--here b { background: var(--accent); color: var(--accent-fg); }
.legend { display: flex; flex-wrap: wrap; gap: var(--sp-4); font-size: var(--fs-meta); color: var(--fg-muted); }
.legend span { display: inline-flex; align-items: center; gap: var(--sp-2); }
.legend i { width: 2rem; height: 0; border-top: 3px solid var(--brand); }
.legend i.air { border-top-style: dashed; }
.legend b { width: 1.4rem; height: 0.9rem; border-radius: var(--radius-pill); background: var(--accent); }
.citylist { display: grid; gap: var(--sp-2); }
.cityrow { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; gap: var(--sp-3); align-items: center; min-height: var(--tap); padding: var(--sp-2) var(--sp-3); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: inherit; }
.cityrow--here { border: 2px solid var(--accent); }
.cityrow__n { width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--border); color: var(--brand-strong); display: grid; place-items: center; font-weight: 700; font-size: var(--fs-meta); }
.cityrow--here .cityrow__n { background: var(--accent); color: var(--accent-fg); }
.cityrow svg { color: var(--fg-faint); }

/* --- stays (the hotels screen) ------------------------------------------------
   One stay per row in trip order: a main photo with a strip of thumbnails,
   then the words. Wide screens put the photo beside the text. */
.stays { display: grid; gap: var(--sp-4); }
.stay { display: grid; gap: var(--sp-4); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: var(--sp-4); }
.stay--tonight { border: 2px solid var(--accent); }
.stay__media { display: grid; gap: var(--sp-2); }
.stay__photo { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.stay__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: 1px solid var(--border); outline-offset: -1px; transition: transform var(--dur) var(--ease-out); }
.stay__thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-2); }
.stay__thumb { padding: 0; border: 0; background: none; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; min-height: var(--tap); }
.stay__thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; outline: 1px solid var(--border); outline-offset: -1px; transition: transform var(--dur) var(--ease-out); }
.stay__body { display: grid; gap: var(--sp-3); align-content: start; min-width: 0; }
.stay__kicker { display: flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-meta); font-weight: 700; color: var(--fg-muted); }
.stay__n { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--brand-soft); border: 1px solid var(--border); color: var(--brand-strong); display: grid; place-items: center; flex: none; }
.stay--tonight .stay__n { background: var(--accent); color: var(--accent-fg); }
.stay .badge { justify-self: start; }

/* --- driver card --------------------------------------------------------- */
.driver { animation: enter-settle var(--dur-slow) var(--ease-out); position: fixed; inset: 0; z-index: 20; background: var(--bg-card); color: var(--fg); display: grid; grid-template-rows: auto 1fr auto; padding: max(var(--sp-4), env(safe-area-inset-top)) var(--sp-4) max(var(--sp-4), env(safe-area-inset-bottom)); gap: var(--sp-4); }
.driver__main { display: grid; align-content: center; gap: var(--sp-4); text-align: center; }
.driver__name { font-family: var(--font-display); font-size: var(--fs-display); line-height: var(--lh-tight); font-weight: 600; text-wrap: balance; }
.driver__city { font-size: var(--fs-h2); color: var(--fg-muted); }

/* --- info ---------------------------------------------------------------- */
.kv { display: grid; gap: var(--sp-3); }
.kv li { display: grid; gap: var(--sp-1); min-width: 0; }
.kv b { font-size: var(--fs-meta); color: var(--fg-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tel { font-size: var(--fs-h3); font-weight: 700; min-height: var(--tap); display: inline-flex; align-items: center; gap: var(--sp-2); }
.check { display: grid; gap: var(--sp-2); }
.check li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr); gap: var(--sp-2); }
.check svg { color: var(--brand); width: 1.4rem; height: 1.4rem; margin-top: 0.2rem; }
.field { display: grid; gap: var(--sp-2); }
.field input { font: inherit; min-height: var(--tap); padding: 0 var(--sp-3); border: 2px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-card); color: var(--fg); }

/* --- fold ---------------------------------------------------------------- */
.fold summary { cursor: pointer; min-height: var(--tap); display: flex; align-items: center; font-weight: 700; color: var(--fg-muted); list-style: none; }
.fold summary::before { content: ""; width: 0.6em; height: 0.6em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); margin-right: var(--sp-3); transition: transform var(--dur-fast) var(--ease-out); }
.fold[open] summary::before { transform: rotate(45deg); }
.fold summary::-webkit-details-marker { display: none; }
.fold > form { margin-top: var(--sp-3); }

/* --- tabs ---------------------------------------------------------------- */
.tabs {
  position: fixed; inset: auto 0 0 0; z-index: 10;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--bg-card); border-top: 1px solid var(--border);
  overflow: hidden; /* same as .daybar */
}
/* overflow: hidden gives each tab a zero min-content, so five always fit
   the bar's width and nothing can widen the page before app.js picks a tier. */
.tabs a { display: grid; justify-items: center; align-content: center; gap: 0.15rem; color: var(--fg-muted); text-decoration: none; font-size: var(--fs-meta); font-weight: 700; min-height: var(--tap); min-width: 0; overflow: hidden; text-align: center; line-height: 1.1; }
.tabs a svg { width: 1.75rem; height: 1.75rem; transition: transform var(--dur-fast) var(--ease-out); }
.tabs a[aria-current="page"] { color: var(--brand-strong); }
.tabs a[aria-current="page"] svg { stroke-width: 2.4; }
.tabs a::after { content: ""; width: var(--dot); height: var(--dot); border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--dur) var(--ease-out); }
.tabs a[aria-current="page"]::after { transform: scale(1); }

/* --- large text ------------------------------------------------------------
   Media queries cannot see a phone's text-size setting, so app.js measures
   the day bar and tab bar after every render and sets data-text on <html>
   when they would overflow: "large" drops the arrow captions and shrinks the
   tab labels; "xl" hides the tab labels (their names stay for screen readers). */
:root[data-text] .daybar__btn span { display: none; }
:root[data-text] .daybar__btn { padding: 0 var(--sp-2); }
:root[data-text] .top__status { display: none; }
:root[data-text="large"] .tabs a span { font-size: 0.7em; }
:root[data-text="xl"] .tabs a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- toast --------------------------------------------------------------- */
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, var(--sp-3)); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast { animation: toast-in var(--dur) var(--ease-out); position: fixed; left: 50%; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom) + var(--sp-3)); transform: translateX(-50%); z-index: 15; display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-3) var(--sp-4); background: var(--fg); color: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow); max-width: calc(100% - 2 * var(--sp-4)); }
.toast button { min-height: 2.5rem; padding: 0 var(--sp-3); border-radius: var(--radius); border: 0; background: var(--accent); color: var(--accent-fg); font-weight: 700; }

/* --- iPad and wide screens ------------------------------------------------- */
@media (min-width: 48rem) {
  .view { max-width: var(--maxw-wide); padding: var(--sp-5); gap: var(--sp-5); }
  .daybar { margin: calc(-1 * var(--sp-5)) calc(-1 * var(--sp-5)) 0; padding: var(--sp-3) var(--sp-5); }
  .hero { min-height: 22rem; }
  .hero__title { font-size: var(--fs-display); }
  .cols { display: grid; grid-template-columns: 3fr 2fr; gap: var(--sp-5); align-items: start; }
  .col { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); }
  .o-now, .o-badges, .o-plan, .o-hotel, .o-notes, .o-peek, .o-about, .o-1, .o-2, .o-3, .o-4 { order: 0; }
  .chapters { gap: var(--sp-5); }
  .chapter { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--sp-4); padding: var(--sp-4); align-items: stretch; }
  .chapter__media { min-height: 12rem; }
  .stay { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--sp-5); padding: var(--sp-5); align-items: start; }
  .stays { gap: var(--sp-5); }
  .view--map { grid-template-columns: 3fr 2fr; align-items: start; }
  .view--map > .h1, .view--map > .now { grid-column: 1 / -1; }
  .view--map > .map { grid-row: span 3; }
  .tabs { grid-auto-columns: minmax(0, 9rem); justify-content: center; }
  .driver__name { font-size: var(--fs-display-xl); }
  /* Countdown hero on a wide screen: band beside the map, map no taller than the screen. */
  .hero--map { grid-template-columns: 1fr 1fr; grid-template-rows: none; align-items: stretch; min-height: 0; }
  .hero--map .hero__band { align-content: end; padding: var(--sp-6); min-height: 0; }
  .cols--even { grid-template-columns: 1fr 1fr; }
  .hero__promo { align-content: center; padding: var(--sp-5); }
  .hero--map .map { width: min(100%, var(--promo-map-wide)); }
}

/* --- hover, on devices that have it --------------------------------------
   Every hover is a small, honest preview of the tap: the thing you would
   press rises or grows a little and its edge picks up the brand. Kept behind
   the hover/fine-pointer query so touch screens never get a stuck state. */
@media (hover: hover) and (pointer: fine) {
  .btn { transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast), box-shadow var(--dur-fast), border-color var(--dur-fast); }
  .btn:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lift); background: var(--brand-strong); border-color: var(--brand-strong); }
  .btn--ghost:hover { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
  .btn--accent:hover { background: var(--saffron-500); border-color: var(--saffron-500); color: var(--accent-fg); }
  .daybar__btn:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
  .daybar__today:hover { background: var(--saffron-500); }
  .tabs a:hover { color: var(--brand-strong); }
  .tabs a:hover svg { transform: translateY(var(--lift)); }
  .top__brand:hover { text-decoration: underline; text-underline-offset: 0.2em; }
  .tel:hover, .prose a:hover, .meta a:hover { text-decoration-thickness: 2px; color: var(--brand); }
  .fold summary:hover { color: var(--fg); }

  /* cards that are links rise, their chevron slides, their edge picks up the brand */
  .dayrow, .cityrow, .peek, .stop, .map-link, .hero__promo { transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast), border-color var(--dur-fast), background-color var(--dur-fast); }
  .dayrow:hover, .cityrow:hover, .peek:hover, .stop:hover { transform: translateY(var(--lift)); box-shadow: var(--shadow-lift); border-color: var(--brand); }
  .dayrow svg, .cityrow svg, .peek svg { transition: transform var(--dur-fast) var(--ease-out), color var(--dur-fast); }
  .dayrow:hover svg, .cityrow:hover svg, .peek:hover svg { transform: translateX(var(--nudge)); color: var(--brand); }
  .cityrow--hover { border-color: var(--brand); background: var(--bg-muted); } /* set from the map, see app.js */

  /* photos ease in a touch, inside their rounded frames */
  .hero:not(.hero--map) .hero__img, .peek__img, .dayrow__img { transition: transform var(--dur) var(--ease-out); }
  .stay__photo:hover img, .stay__thumb:hover img, .hero:not(.hero--map):hover .hero__img { transform: scale(var(--grow)); }
  .peek:hover .peek__img, .dayrow:hover .dayrow__img { transform: scale(var(--grow)); }
  .hero:not(.hero--map) { overflow: hidden; }
  .peek, .dayrow { overflow: hidden; }
  .lightbox__close:hover, .lightbox__nav:hover { background: rgb(255 255 255 / 0.32); }

  /* the countdown promo: the button rises, the map breathes */
  .hero__promo:hover .hero__cta { transform: translateY(var(--lift)); box-shadow: var(--shadow-lift); background: var(--saffron-500); border-color: var(--saffron-500); }
  .hero__promo .map { transition: transform var(--dur) var(--ease-out); }
  .hero__promo:hover .map { transform: scale(1.02); }

  /* map stops: grow, ring goes saffron, leader thickens; the matching list row lights up */
  /* Only real marker links hover; the promo on the countdown screen is one link, one hover. */
  a.map__city:hover .map__callout { transform: scale(var(--select)); }
  .map__ring, .map__leader { transition: stroke var(--dur-fast), stroke-width var(--dur-fast); }
  a.map__city:hover .map__ring { stroke: var(--accent); stroke-width: 4; }
  .map__city--hover .map__callout { transform: scale(var(--select)); }
  .map__city--hover .map__ring { stroke: var(--accent); stroke-width: 4; }
}

/* --- print --------------------------------------------------------------- */
@media print {
  body { padding: 0; background: #fff; color: #000; font-size: 12pt; }
  .top, .tabs, .daybar, .toast, .btn, .btn-row { display: none !important; }
  .view { max-width: none; padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .print-day { break-before: page; }
  .print-day:first-child { break-before: auto; }
  .hero { min-height: 0; }
  .hero__img { display: none; }
  .hero__body { color: #000; background: none; padding: 0; }
}
