/* ============================================================
   TYPE B TRAVEL: design system v0
   ------------------------------------------------------------
   No brand exists yet, so this is a deliberately quiet starting
   point: cool lavender-grey neutrals, deep ink, one terracotta
   accent, a serif for personality, system sans for reading.

   TO REBRAND: change the tokens in :root. Nothing below uses a
   raw color or font. (Contrast notes are next to each token;
   keep body text >= 4.5:1.)
   ============================================================ */

:root {
    /* Color */
    --paper:       #F3F2FA;   /* page background base: light lavender-grey */
    --paper-2:     #E8E7F3;   /* subtle panels, chips */
    --card:        #FFFFFF;
    --ink:         #1D1C27;   /* body text; ~16:1 on paper */
    --ink-2:       #45445A;   /* secondary text; ~8.5:1 */
    --muted:       #5C5B74;   /* captions; 5.0:1 at worst on the gradient */
    --line:        #E0DFEA;
    --line-strong: #C6C5D8;
    --accent:      #564ECC;   /* soft periwinkle; white text on it 6.3:1 */
    --accent-ink:  #FFFFFF;
    --accent-deep: #3E37A5;   /* the tactile "lip" under buttons, hover */
    --accent-soft: #E7E5FA;   /* selected-state tint; accent text on it 5.1:1 */
    --accent-glow: #9A93F0;   /* progress-bar highlight (decorative only) */
    --cta-from:    #645CDB;   /* CTA gradient, top-left; white text 5.1:1 */
    --cta-to:      #4B43BE;   /* CTA gradient, bottom-right; white text 7.4:1 */
    --focus:       #1A56DB;
    --danger:      #A31621;
    --ok:          #2F6B4F;

    /* Background wash: soft pastel blobs over a lavender base (decorative). */
    --wash-aqua:  #D9F1F0;
    --wash-lilac: #E3DDF8;
    --wash-blush: #F8E3EC;
    --wash-peach: #FCEBDD;

    /* Type */
    /* Loaded from Google Fonts in includes/site_layout.php. The fallbacks show while it loads. */
    --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body:    "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    /* Shape & space */
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 24px;
    --shadow: 0 1px 2px rgba(29, 28, 39, .06), 0 8px 24px rgba(29, 28, 39, .06);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    position: relative;
    color: var(--ink);
    font: 17.5px/1.6 var(--font-body);
    -webkit-font-smoothing: antialiased;
}
body::before {
    content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(60% 42% at 6% 0%,    var(--wash-aqua)  0%, transparent 72%),
        radial-gradient(52% 40% at 96% 10%,  var(--wash-lilac) 0%, transparent 72%),
        radial-gradient(60% 46% at 88% 100%, var(--wash-blush) 0%, transparent 72%),
        radial-gradient(46% 36% at 4% 96%,   var(--wash-peach) 0%, transparent 72%),
        linear-gradient(180deg, #F3F2FA 0%, #ECEFFA 50%, #F6EEF7 100%);
}
/* Montserrat is wide, so headings are set a little smaller and tighter than a typical serif would be. */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; margin: 0; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3.2vw, 1.8rem); }
h3 { font-size: 1.12rem; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-underline-offset: .15em; }
img { max-width: 100%; display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container        { width: 100%; max-width: 920px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 680px; }

.site-header { padding: 18px 0; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark {
    display: inline-flex; align-items: center; gap: .3em;
    font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; line-height: 1;
    letter-spacing: -.02em; color: var(--ink); text-decoration: none;
}
.wordmark .mark {
    /* viewBox is 46x48 around a 40-unit circle, so size it to keep the circle ~1.55em */
    width: 1.78em; height: 1.86em; flex: none; overflow: visible;
    margin: -.05em -.1em;                                       /* cancel the built-in padding */
    transform: rotate(-7deg);                                   /* the "Type B" relaxed tilt */
    transition: transform .35s var(--ease);
}
.wordmark:hover .mark, .wordmark:focus-visible .mark { transform: rotate(5deg) scale(1.06); }
@media (max-width: 380px) { .wordmark { font-size: 1.15rem; } }
/* Top navigation: stays on one row on desktop and wraps under the logo on phones (no hamburger needed). */
.site-header .container { flex-wrap: wrap; row-gap: 10px; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.site-nav a:not(.btn) { color: var(--ink-2); font-weight: 700; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.btn):hover { color: var(--ink); border-bottom-color: var(--line-strong); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
/* On phones the long label swaps for a short one (display:none removes the hidden one from screen readers too),
   so Type B / Guides / Pricing / Plan my trip stay on a single row. */
.nav-short { display: none; }
@media (max-width: 560px) {
    .site-nav { width: 100%; justify-content: space-between; gap: 6px 12px; flex-wrap: nowrap; }
    .nav-long { display: none; }
    .nav-short { display: inline; }
}
@media (max-width: 380px) { .site-nav .btn--sm { padding: 0 12px; } .site-nav { gap: 4px 8px; } }
.site-footer { padding: 56px 0 40px; color: var(--muted); font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
    --_bg: transparent; --_fg: var(--ink); --_bd: var(--line-strong);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 22px;
    font: 600 1rem/1 var(--font-body);
    color: var(--_fg); background: var(--_bg);
    border: 1.5px solid var(--_bd); border-radius: 999px;
    text-decoration: none; cursor: pointer;
    transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:not(.btn--primary):not(.btn--quiet) { background: color-mix(in srgb, var(--card) 70%, transparent); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn--primary {
    --_bg: var(--accent); --_fg: var(--accent-ink); --_bd: var(--accent-deep);
    background: linear-gradient(135deg, var(--cta-from) 0%, var(--cta-to) 100%);   /* subtle diagonal, like the logo badge */
    box-shadow: 0 4px 0 var(--accent-deep);          /* the chunky, pressable lip */
}
.btn--primary:hover { filter: brightness(1.07) saturate(1.05); border-color: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 5px 0 var(--accent-deep); }
.btn--primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-deep); }
.btn--quiet { border-color: transparent; padding: 0 12px; min-height: 44px; color: var(--ink-2); }
.btn--quiet:hover { border-color: transparent; color: var(--ink); background: var(--paper-2); }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: .9rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- Forms ---------- */
.field { margin: 0 0 20px; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.hint { color: var(--muted); font-size: .95rem; margin: 0 0 10px; }
.input, .textarea {
    width: 100%; font: inherit; color: var(--ink); background: var(--card);
    border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
    padding: 13px 14px; min-height: 50px;
    transition: border-color .15s, box-shadow .15s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--ink-2); }
.input:focus-visible, .textarea:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(26, 86, 219, .25); }
.error-text { color: var(--danger); font-weight: 600; font-size: .95rem; margin: 8px 0 0; }

/* ============================================================
   QUIZ
   ============================================================ */
.quiz { min-height: 100vh; display: flex; flex-direction: column; }
.quiz-main { flex: 1; padding: 8px 20px 28px; }   /* keep the container's side padding */

.stepper { padding: 4px 0 28px; }
.stepper-meta { display: flex; justify-content: space-between; align-items: center; min-height: 44px; font-size: .9rem; color: var(--muted); }
.stepper-bar { height: 10px; background: color-mix(in srgb, var(--accent) 14%, var(--card)); border-radius: 99px; overflow: hidden; box-shadow: inset 0 1px 2px rgba(29, 28, 39, .08); }
.stepper-fill { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-glow)); border-radius: 99px; transition: width .4s var(--ease); }

.q-step { animation: rise .28s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.q-title { margin-bottom: 10px; outline: none; }
.q-sub   { color: var(--ink-2); font-size: 1.1rem; margin-bottom: 28px; }

.group { border: 0; margin: 0 0 32px; padding: 0; min-width: 0; }
.group legend { font-weight: 600; font-size: 1.05rem; padding: 0; margin-bottom: 4px; }
.group .hint { margin-bottom: 12px; }

.bulk { display: flex; gap: 8px; margin: 0 0 12px; }
.bulk-btn {
    font: 700 .85rem/1 var(--font-body); color: var(--accent);
    min-height: 36px; padding: 0 14px; border-radius: 999px;
    background: color-mix(in srgb, var(--card) 70%, transparent);
    border: 1.5px solid var(--line-strong); cursor: pointer;
    transition: border-color .15s, background-color .15s, transform .15s var(--ease);
}
.bulk-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.bulk-btn:active { transform: translateY(1px); }

.opt-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .opt-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 600px) { .opt-grid.cols-2 { grid-template-columns: 1fr 1fr; } }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt-body {
    display: flex; align-items: center; gap: 14px;
    min-height: 60px; padding: 14px 16px;
    background: var(--card); border: 1.5px solid var(--line-strong); border-radius: 18px;
    transition: border-color .15s, background-color .15s, transform .15s var(--ease), box-shadow .15s;
}
.opt:hover .opt-body { border-color: var(--ink-2); }
.opt:active .opt-body { transform: scale(.99); }
.opt-mark {
    flex: none; width: 22px; height: 22px; border: 1.5px solid var(--line-strong); background: var(--card);
    display: grid; place-items: center; transition: all .15s;
}
.opt--radio .opt-mark { border-radius: 50%; }
.opt--check .opt-mark { border-radius: 6px; }
.opt-mark svg { width: 14px; height: 14px; opacity: 0; transform: scale(.5); transition: all .18s var(--ease); stroke: var(--accent-ink); }
.opt-text { display: block; }
.opt-title { display: block; font-weight: 600; line-height: 1.3; }
.opt-desc  { display: block; color: var(--muted); font-size: .93rem; line-height: 1.4; margin-top: 2px; }

.opt input:checked + .opt-body { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 55%, transparent); transform: translateY(-1px); }
.opt input:checked + .opt-body .opt-mark { background: var(--accent); border-color: var(--accent); }
.opt input:checked + .opt-body .opt-mark svg { opacity: 1; transform: none; }
.opt input:focus-visible + .opt-body { outline: 3px solid var(--focus); outline-offset: 3px; }

.quiz-nav {
    /* In the page flow, right under the questions. On a short step it simply sits there; on a long
       step it sticks to the bottom of the window as a floating bar. It does NOT depend on being
       pinned to the screen edge, which breaks when a browser's visible area and reported size differ. */
    position: sticky; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 20;
    display: flex; gap: 12px; justify-content: space-between; align-items: center;
    margin-top: 28px; padding: 10px 12px;
    background: var(--paper); border: 1px solid var(--line-strong); border-radius: 22px;
    box-shadow: 0 10px 30px rgba(29, 28, 39, .12), 0 2px 6px rgba(29, 28, 39, .06);
}
.quiz-nav[hidden] { display: none; }
.quiz-nav .btn--primary { min-width: 160px; }
.quiz-nav .btn { white-space: nowrap; flex: none; }
@media (max-width: 380px) { .quiz-nav .btn--primary { min-width: 0; padding: 0 18px; } }

.stepper-tools { display: inline-flex; align-items: center; gap: 14px; }
.stepper-tools .link-btn { margin-left: 0; font-size: .9rem; color: var(--muted); }
.stepper-tools .link-btn:hover { color: var(--accent); }
.stepper-meta > span, .stepper-tools .link-btn { white-space: nowrap; }
/* On phones: "Step 3 of 6" and "Start over" share the first row; the city drops to its own line. */
@media (max-width: 560px) {
    .stepper-meta { flex-wrap: wrap; gap: 2px 12px; }
    .stepper-tools { display: contents; }
    #stepLabel { order: 1; }
    .stepper-tools .link-btn { order: 2; margin-left: auto; }
    .stepper-tools > span { order: 3; flex-basis: 100%; }
}
/* ---- Answer review (final screen): grouped, with tag chips and one Edit per group ---- */
.review { margin: 30px 0 0; background: color-mix(in srgb, var(--card) 82%, transparent); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.review > summary {
    display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none;
    padding: 16px 20px; font-weight: 700; font-family: var(--font-display); letter-spacing: -.01em;
}
.review > summary::-webkit-details-marker { display: none; }
.review > summary::before {                                   /* a chevron that turns when open */
    content: ""; flex: none; width: 9px; height: 9px; margin-right: 2px;
    border-right: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent);
    transform: rotate(-45deg); transition: transform .2s var(--ease);
}
.review[open] > summary::before { transform: rotate(45deg); }
.review > summary:hover { background: var(--accent-soft); }
.review > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: 20px; }   /* inset, so it hugs the card */
.review-count { margin-left: auto; font: 400 .85rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.review-groups { border-top: 1px solid var(--line); }
.review-group { padding: 16px 20px 6px; }
.review-group + .review-group { border-top: 1px solid var(--line); }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review-title { font-family: var(--font-body); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.review-edit {
    font: 700 .85rem/1 var(--font-body); color: var(--accent); background: transparent;
    border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; min-height: 32px; cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.review-edit:hover { border-color: var(--accent); background: var(--accent-soft); }
dl.summary { margin: 0; }
.summary-row { display: grid; grid-template-columns: 8.5rem 1fr; gap: 4px 16px; padding: 9px 0; align-items: baseline; }
.summary-row dt { color: var(--muted); font-size: .92rem; }
.summary-row dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.review-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.review-chips li { background: var(--accent-soft); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: .9rem; font-weight: 600; }
.summary-row.same-label { grid-template-columns: 1fr; }
.summary-row.same-label dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) { .summary-row { grid-template-columns: 1fr; gap: 2px; } }

.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 18px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; margin-left: 8px; font-weight: 500; }

body.quiz .site-footer { display: none; }   /* the fixed Continue bar would cover it */

.thanks { text-align: center; padding: 4px 0 56px; }
.thanks-hero { position: relative; margin-bottom: 54px; }
.thanks-media { aspect-ratio: 16 / 7; }
.thanks-badge {
    position: absolute; left: 50%; bottom: -36px; width: 76px; height: 80px;
    margin-left: -38px; transform: rotate(-8deg);
    animation: badge-pop .7s .15s cubic-bezier(.2, 1.6, .4, 1) both;
}
.thanks-badge svg { width: 100%; height: 100%; display: block; overflow: visible; filter: none; }
.thanks-badge::before { content: ""; position: absolute; inset: -6px -6px 0 -6px; border-radius: 50%; background: var(--paper); z-index: -1; }
@keyframes badge-pop { from { transform: scale(.2) rotate(-40deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }
.thanks-title { margin: 6px 0 12px; outline: none; }   /* focus is moved here for screen readers; no ring needed on a heading */
.thanks .q-sub { max-width: 34em; margin: 0 auto 30px; font-size: 1.15rem; }

.next-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 520px; text-align: left; counter-reset: s; }
.next-steps li {
    counter-increment: s; display: flex; gap: 16px; align-items: flex-start;
    background: color-mix(in srgb, var(--card) 78%, transparent); border: 1px solid var(--line);
    border-radius: 18px; padding: 16px 18px; margin: 0 0 12px;
    animation: rise .55s calc(.35s + var(--i, 0) * .14s) var(--ease) both;
}
.next-steps li::before {
    content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%;
    background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .95rem;
    display: grid; place-items: center; margin-top: 1px;
}
.next-steps li:nth-child(2)::before { background: #D6F0EE; color: #16605B; }
.next-steps li:nth-child(3)::before { background: #F8DEE8; color: #8A2C55; }
.next-steps strong { font-weight: 700; }
.thanks-cta { margin-top: 34px; animation: rise .55s .9s var(--ease) both; }
.thanks-cta .hint { margin: 14px 0 0; }

.confetti { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 30; }
.confetti i { position: absolute; top: -16px; width: 9px; height: 15px; border-radius: 2px; opacity: 0; animation: confetti-fall 2.6s cubic-bezier(.2, .6, .3, 1) forwards; }
@keyframes confetti-fall {
    0%   { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
    85%  { opacity: 1; }
    100% { opacity: 0; transform: translate3d(var(--dx, 0), 105vh, 0) rotate(var(--rot, 360deg)); }
}

/* ============================================================
   ITINERARY (traveler-facing page)
   ============================================================ */
.itin-hero { padding: 8px 0 8px; }
.hero-media { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 16 / 8; background: var(--paper-2); }
@media (max-width: 600px) { .hero-media { aspect-ratio: 4 / 3; border-radius: var(--r-md); } }
.hero-img { width: 100%; height: 100%; object-fit: cover; }

/* Placeholder art: a quiet sunset-and-hills scene whose hue comes from the city name.
   Replace by adding assets/img/cities/<city-slug>.jpg (see README-REWORK.md). */
.hero-art {
    position: absolute; inset: 0; overflow: hidden;
    background: linear-gradient(180deg, hsl(var(--h) 75% 92%) 0%, hsl(calc(var(--h) + 22) 72% 86%) 55%, hsl(calc(var(--h) + 44) 58% 78%) 100%);
}
.hero-art::before { /* sun / moon */
    content: ""; position: absolute; width: 22%; aspect-ratio: 1; border-radius: 50%;
    left: 66%; top: 18%; background: hsl(var(--h) 100% 98%);
    box-shadow: 0 0 0 18px hsla(0, 0%, 100%, .28), 0 0 0 42px hsla(0, 0%, 100%, .16);
}
.hero-art::after { /* hills: farther = paler, like haze */
    content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
    background:
        radial-gradient(ellipse 60% 100% at 18% 100%, hsl(calc(var(--h) + 8) 26% 60%) 0 62%, transparent 63%),
        radial-gradient(ellipse 70% 85% at 70% 100%, hsl(var(--h) 28% 48%) 0 62%, transparent 63%),
        radial-gradient(ellipse 50% 60% at 42% 100%, hsl(calc(var(--h) + 16) 24% 70%) 0 62%, transparent 63%);
}

.hero-body { padding: 26px 0 8px; }
.eyebrow { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.chip { background: var(--paper-2); color: var(--ink-2); border-radius: 999px; padding: 5px 12px; font-size: .88rem; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 6px; }
@media (max-width: 600px) { .actions .btn { flex: 1 1 100%; } }
.status { min-height: 1.4em; font-size: .9rem; color: var(--ok); margin: 6px 0 0; }
.howto { margin: 10px 0 0; font-size: .95rem; color: var(--ink-2); }
.howto summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.howto ol { margin: 10px 0 0; padding-left: 1.2em; }

.day-nav { position: sticky; top: 0; z-index: 15; background: var(--paper);   /* solid, no backdrop-filter: see .quiz-nav */ border-bottom: 1px solid var(--line); margin-top: 28px; }
.day-nav ul { display: flex; gap: 8px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.day-nav a { display: block; white-space: nowrap; padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .92rem; font-weight: 600; }
.day-nav a:hover { border-color: var(--ink-2); }
.day-nav a[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

.day { padding: 44px 0 8px; scroll-margin-top: 64px; }
.day-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.day-label {
    display: inline-block; margin: 0 0 8px; padding: 4px 12px; border-radius: 999px;
    background: var(--tint-bg, var(--accent-soft)); color: var(--tint-fg, var(--accent));
    font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
}
.day-borough { margin: 0 0 4px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.day:nth-of-type(4n+1) { --tint-bg: #E1E4FB; --tint-fg: #3F47A8; }   /* periwinkle */
.day:nth-of-type(4n+2) { --tint-bg: #D6F0EE; --tint-fg: #16605B; }   /* aqua */
.day:nth-of-type(4n+3) { --tint-bg: #F8DEE8; --tint-fg: #8A2C55; }   /* blush */
.day:nth-of-type(4n)   { --tint-bg: #FBE6D6; --tint-fg: #8A4A12; }   /* peach */
.day-meta { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: var(--line-strong); }
.stop { position: relative; display: flex; gap: 18px; padding: 0 0 18px; break-inside: avoid; }
.stop-num { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--tint-fg, var(--accent)); color: #fff; font-weight: 700; font-size: .95rem; display: grid; place-items: center; box-shadow: 0 0 0 5px var(--paper); }
.stop-card { flex: 1; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: 0 1px 0 rgba(29, 28, 39, .03); }
.stop-period { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.stop-card h3 { margin-bottom: 4px; }
.stop-meta { color: var(--muted); font-size: .92rem; margin: 0 0 10px; }
.stop-note { margin: 0 0 12px; color: var(--ink-2); }
.stop-link { font-weight: 600; font-size: .92rem; }

@media (max-width: 600px) {
    .stop { gap: 12px; }
    .stop-num { width: 30px; height: 30px; font-size: .85rem; box-shadow: 0 0 0 4px var(--paper); }
    .timeline::before { left: 14px; }
    .stop-card { padding: 16px; }
}

/* ============================================================
   HOMEPAGE (placeholder)
   ============================================================ */
.home-hero { display: grid; gap: 36px; align-items: center; padding: 20px 0 8px; }
@media (min-width: 860px) { .home-hero { grid-template-columns: 1fr 1fr; gap: 48px; padding-top: 40px; } }
.home-hero h1 { font-size: clamp(2rem, 5.4vw, 3.2rem); margin-bottom: 16px; }
.home-sub { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.home-art { aspect-ratio: 5 / 6; border-radius: var(--r-lg); box-shadow: var(--shadow); }
@media (max-width: 859px) { .home-art { order: -1; width: 100%; max-width: 440px; margin-inline: auto; } }
.feature-pills { list-style: none; display: grid; gap: 12px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); max-width: 30em; }
.feature-pills li { display: flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 700; color: var(--ink-2); }
.feature-pills .icon { flex: none; box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.launch-note { margin: 18px 0 0; color: var(--muted); font-size: .98rem; }
.launch-note strong { color: var(--ink); }

.home-section { padding: 56px 0 0; }
.home-section > h2 { margin-bottom: 10px; }
.home-lede { color: var(--ink-2); margin: 0 0 22px; }

.how-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .how-grid { grid-template-columns: repeat(3, 1fr); } }
.how-card { background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.how-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint-bg); color: var(--tint-fg); font-weight: 700; margin-bottom: 14px; }
.how-card h3 { margin-bottom: 6px; }
.how-card p { margin: 0; color: var(--ink-2); }

.city-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 640px) { .city-grid { grid-template-columns: repeat(3, 1fr); } }
.city-card { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 12px 12px 18px; transition: transform .2s var(--ease), box-shadow .2s; }
a.city-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.city-art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; margin-bottom: 10px; background: var(--paper-2); }
.city-art img { width: 100%; height: 100%; object-fit: cover; }
.city-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em; padding: 0 6px; }
.city-cta { padding: 0 6px; color: var(--accent); font-weight: 700; font-size: .95rem; }
.city-card.is-soon { background: color-mix(in srgb, var(--card) 55%, transparent); }
.city-card.is-soon .city-art { opacity: .55; filter: saturate(.7); }
.city-card.is-soon .city-cta { color: var(--muted); }
.home-closing { margin-top: 64px; }
.home-closing .btn { margin-top: 6px; }

/* ============================================================
   HOMEPAGE: Type B section, pricing, guides teaser
   ============================================================ */
.trait-grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .trait-grid { grid-template-columns: repeat(2, 1fr); } }
.trait-card { display: flex; gap: 14px; align-items: flex-start; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; }
.trait-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; margin-top: 7px; background: var(--tint-fg); box-shadow: 0 0 0 5px var(--tint-bg); }
.trait-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.trait-card p { margin: 0; color: var(--ink-2); }
.text-link { font-weight: 700; }

.price-card { display: grid; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 760px) { .price-card { grid-template-columns: minmax(240px, 5fr) 7fr; } }
.price-panel { display: flex; flex-direction: column; gap: 4px; justify-content: center; padding: 28px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 11%, #fff), color-mix(in srgb, var(--accent) 4%, #fff)); }
.price-from { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.price-amount { display: block; font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.price-tiers { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); }
.price-tiers li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); color: var(--ink-2); }
.price-tiers strong { color: var(--ink); }
.price-link { align-self: flex-start; margin-top: 14px; font-weight: 700; color: var(--accent); text-decoration: none; }
.price-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.price-body { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px; }
.price-body h3 { margin: 0; font-size: 1.1rem; }
.price-includes { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 12px; }
.price-includes li { position: relative; padding-left: 32px; color: var(--ink-2); line-height: 1.45; }
.price-includes li::before { content: ""; position: absolute; left: 0; top: .08em; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); }
.price-includes li::after { content: ""; position: absolute; left: 8px; top: .3em; width: 5px; height: 10px; border: solid var(--accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.pricing-head { padding-bottom: 18px; }
.tier-grid { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 760px) { .tier-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
.tier-card { display: flex; flex-direction: column; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.tier-card.is-featured { border-color: var(--accent); box-shadow: 0 3px 0 color-mix(in srgb, var(--accent) 55%, transparent), var(--shadow); }
.tier-detail { margin: 0; color: var(--muted); }
.tier-price.is-text { font-size: 1.6rem; line-height: 1.2; padding: .3rem 0 .5rem; }
.tier-card.is-custom { background: color-mix(in srgb, var(--card) 70%, transparent); border-style: dashed; }
.thanks-paid { display: inline-block; margin: 0 auto 22px; padding: 8px 16px; border-radius: 999px; background: #D6F0EE; color: #16605B; font-weight: 700; }
.notice { margin: 0 0 22px; padding: 14px 18px; border-radius: 16px; background: #FFF1B8; color: #4A3B00; }
.notice a { color: inherit; font-weight: 700; }
.thanks-custom { max-width: 520px; margin: 16px auto 0; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); color: var(--ink); text-align: left; }
.tier-price { margin: 4px 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; letter-spacing: -.03em; line-height: 1; }
.tier-card ul { list-style: none; margin: 0 0 14px; padding: 0; flex: 1; }
.tier-card li { padding: 3px 0 3px 22px; position: relative; color: var(--ink-2); }
.tier-card li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
@media (max-width: 420px) { .site-nav a:not(.btn) { font-size: .92rem; } }
.price-note { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

/* ============================================================
   GUIDES (SEO articles)
   ============================================================ */
.breadcrumbs { padding: 10px 0 4px; font-size: .9rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); }
.breadcrumbs [aria-current] { color: var(--muted); }

.prose { padding: 10px 0 8px; }
.home-section.prose { padding-top: 56px; }   /* .prose would otherwise cancel the section spacing */
.prose h1 { margin: 4px 0 16px; }
.prose-lede { font-size: 1.15rem; color: var(--ink-2); }
.prose-meta { color: var(--muted); font-size: .9rem; margin: 18px 0 0; }
.prose-section { margin-top: 44px; }
.prose-section h2 { margin-bottom: 14px; }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0 0 .5em; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.callout { margin: 22px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 6px 0 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 540px; font-size: .98rem; }
table.compare th, table.compare td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.compare thead th { background: var(--paper-2); font-family: var(--font-display); font-size: .92rem; letter-spacing: -.01em; }
table.compare tbody th { font-weight: 700; color: var(--ink); white-space: nowrap; }
table.compare tr:last-child th, table.compare tr:last-child td { border-bottom: 0; }

@media (max-width: 640px) {
    .table-wrap { border: 0; background: none; overflow: visible; }
    table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; min-width: 0; }
    table.compare { min-width: 0; }
    table.compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    table.compare tr { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px 10px; margin: 0 0 12px; }
    table.compare tbody th { border: 0; padding: 10px 0 2px; font-family: var(--font-display); letter-spacing: -.01em; white-space: normal; }
    table.compare td { border: 0; padding: 6px 0; }
    table.compare td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
}

/* FAQ: one joined card, a chevron that turns, a roomy tap target, and a gentle reveal. Native <details>, so it works without JavaScript. */
.faq h2 { margin-bottom: 16px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-top-width: 0; padding: 0; margin: 0; }
.faq details:first-of-type { border-top-width: 1px; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.faq details:last-of-type { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.faq details:only-of-type { border-radius: var(--r-lg); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 700; font-size: 1.05rem; color: var(--ink); border-radius: inherit; transition: background .15s, color .15s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 10%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23564ECC' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10l5 5 5-5'/%3E%3C/svg%3E") center / 18px no-repeat; transition: transform .25s var(--ease), background-color .15s; }
.faq summary:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { transform: rotate(180deg); background-color: color-mix(in srgb, var(--accent) 18%, transparent); }
.faq details p { margin: 0; padding: 0 22px 20px; max-width: 64ch; color: var(--ink-2); line-height: 1.6; }
.faq details[open] p { animation: fade-up .3s var(--ease) backwards; }
@media (max-width: 520px) { .faq summary { padding: 16px 16px; } .faq details p { padding: 0 16px 18px; } }

.related { margin-top: 56px; }
.related h2 { margin-bottom: 16px; }
.guide-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .guide-grid:not(.guide-grid--list) { grid-template-columns: repeat(3, 1fr); } }
.guide-grid--list { margin-top: 24px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; height: 100%; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--accent); }
.guide-title { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.guide-sum { color: var(--ink-2); font-size: .95rem; }


/* ---- Testimonials ---- */
/* Balanced columns (masonry): handles any number of testimonials of any length without orphans or tall gaps. */
.quote-grid { list-style: none; margin: 22px 0 0; padding: 0; column-width: 260px; column-gap: 14px; }
.quote-grid > li { break-inside: avoid; margin: 0 0 14px; }
.quote-card { position: relative; margin: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px 22px; overflow: hidden; }
.quote-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--tint-fg); opacity: .75; }
.quote-card.is-featured { border-color: var(--tint-fg); box-shadow: var(--shadow); }
.quote-mark { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: .7; color: var(--tint-fg); height: 1.3rem; }
.quote-card blockquote { margin: 6px 0 18px; flex: 1; }
.quote-card blockquote p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.quote-name { font-weight: 700; }
.quote-trip { color: var(--muted); font-size: .9rem; }

.feedback { margin: 48px 0 0; padding: 28px; background: color-mix(in srgb, var(--card) 80%, transparent); border: 1px solid var(--line); border-radius: var(--r-lg); }
.feedback h2 { margin-bottom: 8px; }
.feedback .check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; }
.feedback .check input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--accent); }
@media print { .feedback { display: none !important; } }

.closing { margin: 56px 0 0; padding: 32px; background: var(--paper-2); border-radius: var(--r-lg); text-align: center; }
.closing p { color: var(--ink-2); max-width: 46ch; margin-left: auto; margin-right: auto; }
.fineprint { color: var(--muted); font-size: .88rem; margin-top: 28px; }

/* Dialog (invite travel partner) */
dialog { border: 0; border-radius: var(--r-lg); padding: 28px; max-width: 440px; width: calc(100% - 32px); box-shadow: 0 24px 64px rgba(29, 28, 39, .3); background: var(--card); color: var(--ink); }
dialog::backdrop { background: rgba(29, 28, 39, .5); }
dialog h2 { font-size: 1.3rem; margin-bottom: 8px; }

.preview-banner { background: #FFF1B8; color: #4A3B00; padding: 10px 16px; text-align: center; font-size: .92rem; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================
   LITTLE TRAVEL MOMENTS
   Rule: the visible state is the default. Animations only describe where something comes FROM
   (keyframes with `from`, fill-mode `backwards`), so with reduced motion, or if scripts fail,
   everything is simply there, never stuck hidden.
   ============================================================ */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.icon--sm { width: 15px; height: 15px; vertical-align: -.15em; }
@keyframes pop-in   { from { opacity: 0; transform: scale(.4); } }
@keyframes drop-in  { from { opacity: 0; transform: translateY(-18px) scale(.6); } 60% { opacity: 1; transform: translateY(2px) scale(1.08); } }
@keyframes fade-up  { from { opacity: 0; transform: translateY(8px); } }
@keyframes pin-hop  { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-4px); } }

/* ---- Itinerary: hero route + pin ---- */
.hero-route { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-route path { fill: none; stroke: rgba(255, 255, 255, .92); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: .1 11; animation: fade-up 1.1s .3s var(--ease) backwards; }
.hero-pin { position: absolute; left: 95%; top: 19%; width: 0; height: 0; pointer-events: none; }
.hero-pin .icon { position: absolute; left: -19px; top: -37px; width: 38px; height: 38px; fill: var(--accent); stroke: #fff; filter: drop-shadow(0 3px 5px rgba(29, 28, 39, .28)); animation: drop-in .7s .9s var(--ease) backwards; }

/* ---- Itinerary: stop tags, route notes, day strip ---- */
.stop-body { flex: 1; min-width: 0; }
.stop-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-bottom: 8px; }
.stop-type { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px; border-radius: 999px; background: var(--tint-bg, var(--accent-soft)); color: var(--tint-fg, var(--accent)); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.stop-head .stop-period { margin: 0; }
.stop-link .icon { margin-right: 5px; }
.leg { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px 6px; color: var(--muted); font-size: .88rem; }
.leg .icon { color: var(--tint-fg, var(--accent)); }
.day-strip { display: flex; align-items: center; margin: 14px 0 0; }
.ds { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--tint-bg, var(--accent-soft)); color: var(--tint-fg, var(--accent)); }
.ds .icon { width: 18px; height: 18px; }
.ds-link { flex: 0 0 16px; height: 0; border-top: 2px dotted var(--line-strong); }
.animate-pins .stop:not(.is-in) .stop-num { opacity: 0; transform: translateY(-18px) scale(.5); }
.stop.is-in .stop-num { animation: drop-in .6s var(--ease) both; }

/* ---- Homepage: the map card in the hero ---- */
.map-card { position: relative; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, #EAF5F4, #E6E3F8 55%, #F6E4EC); box-shadow: var(--shadow); }
.map-card > svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-route { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .1 11; }
.map-reveal { fill: none; stroke: #fff; stroke-width: 16; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; animation: map-draw 1.9s .4s ease-out backwards; }
@keyframes map-draw { from { stroke-dashoffset: 1; } }
.map-pin { transform-box: fill-box; transform-origin: 50% 100%; animation: pop-in .5s calc(.5s + var(--i) * .33s) var(--ease) backwards; }
.map-chip {
    position: absolute; margin: -41px 0 0 22px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 8px;
    background: rgba(255, 255, 255, .94); border-radius: 999px; box-shadow: 0 6px 16px rgba(29, 28, 39, .12);
    font-size: .82rem; font-weight: 700; color: var(--ink); white-space: nowrap;
    animation: fade-up .5s calc(.7s + var(--i) * .33s) var(--ease) backwards;
}
.map-chip .chip-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--tint-bg); color: var(--tint-fg); }
.map-chip .chip-ic .icon { width: 14px; height: 14px; }
.map-chip small { font-weight: 400; color: var(--muted); }
.map-caption { position: absolute; right: 14px; bottom: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: .8rem; font-weight: 700; color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.map-caption .icon { color: var(--accent); }
@media (max-width: 520px) { .map-chip { font-size: .72rem; padding: 4px 9px 4px 6px; gap: 5px; } .map-chip .chip-ic { width: 20px; height: 20px; } .map-chip small { display: none; } }

/* ---- Homepage: how-it-works icons, city pins, luggage-tag pricing ---- */
.how-num { width: 46px; height: 46px; }
.how-num .icon { width: 23px; height: 23px; }
.how-step { display: block; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tint-fg); margin: 0 0 4px; }
.city-cta .icon { margin-right: 4px; }
a.city-card:hover .city-cta .icon { animation: pin-hop .6s var(--ease); }

/* ---- Quiz: option icons, a map pin riding the progress bar, passport stamp ---- */
.opt-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--paper-2); color: var(--accent); transition: background-color .15s, color .15s; }
.opt-icon .icon { width: 20px; height: 20px; }
.opt input:checked + .opt-body .opt-icon { background: var(--accent); color: #fff; }
.stepper-bar { overflow: visible; position: relative; }
.stepper-fill { position: relative; }
.stepper-fill::after { content: ""; position: absolute; right: -8px; top: -17px; width: 16px; height: 16px; background: var(--accent-deep); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 5px rgba(29, 28, 39, .25); }
.stepper-fill::before { content: ""; position: absolute; right: -3px; top: -12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; z-index: 1; }
.stamp { position: absolute; right: 5%; top: 9%; width: 104px; height: 104px; border-radius: 50%; border: 3px double var(--accent); color: var(--accent); background: rgba(255, 255, 255, .86); display: grid; place-content: center; text-align: center; line-height: 1.15; transform: rotate(-12deg); animation: stamp-thunk .55s .55s var(--ease) backwards; }
.stamp small { font-size: .56rem; letter-spacing: .22em; font-weight: 700; text-transform: uppercase; }
.stamp b { font-family: var(--font-display); font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; padding: 3px 8px; }
.stamp span { font-size: .6rem; letter-spacing: .12em; font-weight: 700; }
@keyframes stamp-thunk { from { opacity: 0; transform: rotate(-32deg) scale(1.9); } }
@media (max-width: 520px) { .stamp { width: 84px; height: 84px; } .stamp b { font-size: .66rem; } }

/* ---------- Print / Save as PDF ---------- */
@media print {
    @page { margin: 14mm 14mm 16mm; }
    html, body { background: #fff !important; color: #000; font-size: 10.5pt; line-height: 1.4; -webkit-print-color-adjust: economy; print-color-adjust: economy; }
    body::before { display: none; }
    a { color: inherit; text-decoration: none; }

    /* Screen-only controls and decoration: nothing here is useful on paper, and the hero art is mostly ink. */
    .site-header .container > :not(.wordmark), .actions, .status, .howto, .day-nav, .btn, .closing, dialog,
    .preview-banner, .stop-link, .skip-link, .contact, .day-maps, .feedback, .hero-media, .day-strip,
    .hero-route, .hero-pin, .stamp { display: none !important; }

    /* Header: plain text, one rule. */
    .hero-body { padding: 4pt 0 10pt; }
    h1 { font-size: 22pt; }
    h2 { font-size: 15pt; }
    .chip { background: none; border: .5pt solid #777; color: #000; }

    /* One day per page, so a day can be folded, cut out or taped up as a unit. */
    .day { padding-top: 0; }
    .day + .day { break-before: page; }
    .day-head { break-after: avoid; border-bottom: 1.5pt solid #000; padding-bottom: 6pt; margin-bottom: 10pt; }
    .day-label { background: none !important; color: #000 !important; padding: 0; }
    .day-meta { color: #333; }

    /* Stops: outlined numbers and hairline rules instead of filled color blocks and shadows. */
    .timeline::before { display: none; }
    .stop { break-inside: avoid; padding-bottom: 8pt; gap: 10pt; }
    .stop-num { width: 22pt; height: 22pt; font-size: 10pt; background: #fff !important; color: #000 !important; border: 1.2pt solid #000; box-shadow: none; }
    .animate-pins .stop .stop-num { opacity: 1 !important; transform: none !important; animation: none !important; }
    .stop-card { background: none; border: 0; border-bottom: .5pt solid #bbb; border-radius: 0; box-shadow: none; padding: 0 0 8pt; }
    .stop-type { background: none !important; color: #000 !important; border: .5pt solid #777; padding: 0 6pt; }
    .stop-type .icon { display: none; }
    .stop-period, .stop-meta, .leg { color: #333 !important; }
    .leg { font-size: 9pt; margin: 0 0 6pt; }
    .leg .icon { display: none; }
    .stop-note { color: #000; font-size: 10pt; margin-bottom: 0; }
    .fineprint { color: #333; }
}

/* ---- Cities carousel: only used when there are more than three cities ---- */
.city-carousel { position: relative; }
.city-grid.is-carousel { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 10px; margin: -4px -2px 0; }
.city-grid.is-carousel::-webkit-scrollbar { display: none; }
.city-grid.is-carousel > li { scroll-snap-align: start; }
@media (min-width: 640px) { .city-grid.is-carousel { grid-auto-columns: calc((100% - 28px) / 3); } }
.city-grid.is-carousel:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.carousel-controls { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.carousel-controls[hidden] { display: none; }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 1.1rem; cursor: pointer; }
.carousel-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.carousel-btn:disabled { opacity: .4; cursor: default; }

/* ---- Itinerary: per-day map buttons, copied state, contact ---- */
.day-maps { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.is-copied { border-color: var(--ok); color: var(--ok); }
.contact { margin-top: 36px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: color-mix(in srgb, var(--card) 70%, transparent); }
.contact h2 { font-size: 1.15rem; margin: 0 0 6px; }
.contact p { margin: 0 0 8px; color: var(--ink-2); }

/* In-page link targets land below the sticky header (see assets/js/smooth-anchors.js). :where() keeps this easy to override. */
:where([id]) { scroll-margin-top: 88px; }

/* ---- Delight: pricing trait cards and "every itinerary includes" ---- */
.trait-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--tint-bg); color: var(--tint-fg); transition: transform .3s var(--ease); }
.trait-icon .icon { width: 22px; height: 22px; }
.trait-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.trait-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--tint-fg) 35%, var(--line)); }
.trait-card:hover .trait-icon { transform: rotate(-8deg) scale(1.08); }

/* Scroll-in (see assets/js/reveal.js): the hidden state exists only while the script is waiting on an element. */
[data-reveal] { transition: opacity .55s var(--ease) calc(var(--i, 0) * .09s), transform .55s var(--ease) calc(var(--i, 0) * .09s); }
[data-reveal].reveal-wait { opacity: 0; transform: translateY(16px); }
.trait-card[data-reveal] { transition: opacity .55s var(--ease) calc(var(--i, 0) * .09s), transform .3s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.trait-card[data-reveal]:hover { transition-delay: 0s; }
@media print { [data-reveal].reveal-wait { opacity: 1; transform: none; } }

/* ---- Marketing banners: the hero's map as a quiet backdrop. A soft wash behind the text keeps the copy readable. ---- */
.closing--map {
    position: relative; overflow: hidden; isolation: isolate;
    background:
        radial-gradient(ellipse 62% 78% at 50% 50%, color-mix(in srgb, var(--paper-2) 97%, transparent) 0 55%, color-mix(in srgb, var(--paper-2) 0%, transparent) 100%),
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%20320%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cpath%20d%3D%22M-10%20120%20C%20180%20190%2C%20330%2070%2C%20520%20130%20S%20860%20230%2C%201210%20150%20L1210%20215%20C%20900%20300%2C%20760%20190%2C%20560%20205%20S%20180%20270%2C%20-10%20195%20Z%22%20fill%3D%22%23CDEBE8%22%20opacity%3D%22.8%22%2F%3E%3Cellipse%20cx%3D%221010%22%20cy%3D%2270%22%20rx%3D%22120%22%20ry%3D%2252%22%20fill%3D%22%23DCEBD3%22%20opacity%3D%22.9%22%2F%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%22285%22%20rx%3D%22110%22%20ry%3D%2246%22%20fill%3D%22%23DCEBD3%22%20opacity%3D%22.8%22%2F%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%20opacity%3D%22.85%22%3E%3Cpath%20d%3D%22M0%2070%20L1200%2040%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M0%20255%20L1200%20285%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M250%200%20L300%20320%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M700%200%20L660%20320%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M980%200%20L1020%20320%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M0%20170%20L1200%20120%22%20stroke-width%3D%224%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23fff%22%20opacity%3D%22.6%22%3E%3Crect%20x%3D%2260%22%20y%3D%2295%22%20width%3D%2270%22%20height%3D%2240%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22380%22%20y%3D%2230%22%20width%3D%2290%22%20height%3D%2246%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22800%22%20y%3D%22215%22%20width%3D%2280%22%20height%3D%2244%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%221090%22%20y%3D%22175%22%20width%3D%2270%22%20height%3D%2240%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22430%22%20y%3D%22235%22%20width%3D%2286%22%20height%3D%2242%22%20rx%3D%228%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M70%20250%20C%20200%20130%2C%20330%20260%2C%20470%20170%20S%20700%2060%2C%20840%20150%20S%201020%20250%2C%201140%2090%22%20fill%3D%22none%22%20stroke%3D%22%23564ECC%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20stroke-dasharray%3D%220.1%2014%22%20opacity%3D%22.55%22%2F%3E%3Cg%20fill%3D%22%23564ECC%22%20opacity%3D%22.6%22%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%22250%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%22470%22%20cy%3D%22170%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%22840%22%20cy%3D%22150%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%221140%22%20cy%3D%2290%22%20r%3D%229%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / cover no-repeat,
        linear-gradient(160deg, #EAF5F4, #E6E3F8 55%, #F6E4EC);
}
@media (max-width: 640px) { .closing--map { background: linear-gradient(color-mix(in srgb, var(--paper-2) 88%, transparent), color-mix(in srgb, var(--paper-2) 88%, transparent)), url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%201200%20320%22%20preserveAspectRatio%3D%22xMidYMid%20slice%22%3E%3Cpath%20d%3D%22M-10%20120%20C%20180%20190%2C%20330%2070%2C%20520%20130%20S%20860%20230%2C%201210%20150%20L1210%20215%20C%20900%20300%2C%20760%20190%2C%20560%20205%20S%20180%20270%2C%20-10%20195%20Z%22%20fill%3D%22%23CDEBE8%22%20opacity%3D%22.8%22%2F%3E%3Cellipse%20cx%3D%221010%22%20cy%3D%2270%22%20rx%3D%22120%22%20ry%3D%2252%22%20fill%3D%22%23DCEBD3%22%20opacity%3D%22.9%22%2F%3E%3Cellipse%20cx%3D%22150%22%20cy%3D%22285%22%20rx%3D%22110%22%20ry%3D%2246%22%20fill%3D%22%23DCEBD3%22%20opacity%3D%22.8%22%2F%3E%3Cg%20stroke%3D%22%23fff%22%20stroke-linecap%3D%22round%22%20fill%3D%22none%22%20opacity%3D%22.85%22%3E%3Cpath%20d%3D%22M0%2070%20L1200%2040%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M0%20255%20L1200%20285%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M250%200%20L300%20320%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M700%200%20L660%20320%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M980%200%20L1020%20320%22%20stroke-width%3D%228%22%2F%3E%3Cpath%20d%3D%22M0%20170%20L1200%20120%22%20stroke-width%3D%224%22%2F%3E%3C%2Fg%3E%3Cg%20fill%3D%22%23fff%22%20opacity%3D%22.6%22%3E%3Crect%20x%3D%2260%22%20y%3D%2295%22%20width%3D%2270%22%20height%3D%2240%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22380%22%20y%3D%2230%22%20width%3D%2290%22%20height%3D%2246%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22800%22%20y%3D%22215%22%20width%3D%2280%22%20height%3D%2244%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%221090%22%20y%3D%22175%22%20width%3D%2270%22%20height%3D%2240%22%20rx%3D%228%22%2F%3E%3Crect%20x%3D%22430%22%20y%3D%22235%22%20width%3D%2286%22%20height%3D%2242%22%20rx%3D%228%22%2F%3E%3C%2Fg%3E%3Cpath%20d%3D%22M70%20250%20C%20200%20130%2C%20330%20260%2C%20470%20170%20S%20700%2060%2C%20840%20150%20S%201020%20250%2C%201140%2090%22%20fill%3D%22none%22%20stroke%3D%22%23564ECC%22%20stroke-width%3D%225%22%20stroke-linecap%3D%22round%22%20stroke-dasharray%3D%220.1%2014%22%20opacity%3D%22.55%22%2F%3E%3Cg%20fill%3D%22%23564ECC%22%20opacity%3D%22.6%22%3E%3Ccircle%20cx%3D%2270%22%20cy%3D%22250%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%22470%22%20cy%3D%22170%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%22840%22%20cy%3D%22150%22%20r%3D%229%22%2F%3E%3Ccircle%20cx%3D%221140%22%20cy%3D%2290%22%20r%3D%229%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / cover no-repeat, linear-gradient(160deg, #EAF5F4, #E6E3F8 55%, #F6E4EC); } }
@media print { .closing--map { background: none; } }

/* ---- Footer: brand + two link columns, then a quiet base line with a dotted route ---- */
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; } }
.footer-brand .wordmark { font-size: 1.35rem; }
.footer-brand p { margin: 12px 0 16px; max-width: 30ch; color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
.footer-col h2 { margin: 0 0 12px; font: 700 .76rem/1 var(--font-body, inherit); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 4px 0; color: var(--ink-2); font-weight: 700; text-decoration: none; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat; transition: color .15s, background-size .25s var(--ease); }
.footer-col a:hover, .footer-col a:focus-visible { color: var(--accent); background-size: 100% 2px; }
.footer-base { margin-top: 36px; }
.footer-route { display: block; width: 100%; height: 12px; margin-bottom: 18px; overflow: visible; }
.footer-route path { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 10; }
.footer-base p { margin: 0; color: var(--muted); }
@media print { .site-footer { display: none; } }

/* ---- Contact page ---- */
.contact-card { max-width: 640px; margin: 8px 0 72px; padding: 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.contact-card .field { margin: 0 0 20px; }
.contact-card .hint { margin: 6px 0 0; }
.contact-card select.input { appearance: auto; }
.contact-alert { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: #FDECEC; color: #8A1C1C; font-weight: 700; }
.contact-alert:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.contact-done h2 { margin-bottom: 8px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 520px) { .contact-card { padding: 20px 16px; } }
