:root {
  /* Mapped for reuse of travel-app-components snippets (welcome-screen,
     packing-list-v2), which expect these variable names. Values match
     this site's existing hardcoded palette exactly - not new colors. */
  --navy: #0d2133; --navy2: #091b2a; --gold: #c9a24b; --gold-dim: #a8894a;
  --gold-soft: #dcc48a; --cream: #f8f7f3; --steel: #5b6577; --ink: #1c2840;
  --paper: #fff; --rule: #dcd8cf;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Crimson Pro', Georgia, serif;
  background: #f8f7f3;
  color: #1c2840;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, .display { font-family: 'Playfair Display', Georgia, serif; }
.mono, .item-time, .tag, .eyebrow, .day-block-label, .section-heading,
.nav-chip, .cond-time, .meal-badge, .wx-stat, .banner-eyebrow, .ref-city { font-family: 'DM Mono', monospace; }
/* ── WELCOME / ONBOARDING SCREEN (from travel-app-components/welcome-screen) ── */
#welcome-screen{
  position:fixed;inset:0;z-index:99999;
  background:linear-gradient(170deg, #0b1826 0%, #0d2133 55%, #091b2a 100%);
  display:flex;flex-direction:column;justify-content:flex-end;
  padding:0 20px 32px;
}
#welcome-screen.hidden{
  opacity:0;pointer-events:none;visibility:hidden;
  transition:opacity .5s ease,visibility 0s linear .5s;
}
#welcome-screen.hidden *{pointer-events:none!important}
#welcome-screen > *:not(.welcome-skip-bar){position:relative;z-index:1}
.welcome-skip-bar{ position:absolute;top:env(safe-area-inset-top,14px);right:16px;z-index:2;padding:14px 0; }
.welcome-skip{
  font-family:'DM Mono',monospace;font-size:9px;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(255,255,255,.7);background:rgba(0,0,0,.35);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,.15);border-radius:16px;padding:8px 16px;cursor:pointer;
}
.welcome-skip:hover{color:#fff;background:rgba(0,0,0,.5)}
.welcome-eyebrow{ font-family:'DM Mono',monospace;font-size:8px;letter-spacing:.3em;text-transform:uppercase;color:var(--gold);margin-bottom:8px; }
.welcome-title{
  font-family:'Playfair Display',serif;font-size:clamp(30px,8vw,42px);font-weight:900;
  color:#fff;line-height:1.05;margin-bottom:4px;text-shadow:0 2px 12px rgba(0,0,0,.3);
}
.welcome-subtitle{ font-family:'DM Mono',monospace;font-size:9px;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.45);margin-bottom:14px; }
.welcome-body{ font-family:'Crimson Pro',serif;font-size:15px;line-height:1.5;color:rgba(255,255,255,.7);margin-bottom:16px; }
.welcome-card{
  background:rgba(255,255,255,.08);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:14px 16px;margin-bottom:12px;
}
.welcome-card-label{ font-family:'DM Mono',monospace;font-size:7px;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);margin-bottom:8px; }
.welcome-features{ display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px; }
.welcome-feature{ display:flex;align-items:center;gap:6px;padding:7px 8px;border-radius:8px;background:rgba(255,255,255,.05); }
.welcome-feature-icon{font-size:15px;flex-shrink:0}
.welcome-feature-name{ font-family:'DM Mono',monospace;font-size:7.5px;letter-spacing:.04em;text-transform:uppercase;color:rgba(255,255,255,.75);font-weight:600; }
.welcome-install-row{ display:flex;gap:8px;margin-bottom:10px; }
.welcome-install-btn{
  flex:1;display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.08);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:12px;cursor:pointer;
  transition:all .2s;text-decoration:none;
}
.welcome-install-btn:hover,.welcome-install-btn:active{ background:rgba(255,255,255,.15);border-color:rgba(255,255,255,.25); }
.welcome-install-icon{font-size:22px;flex-shrink:0}
.welcome-install-text{display:flex;flex-direction:column}
.welcome-install-title{ font-family:'DM Mono',monospace;font-size:8.5px;letter-spacing:.06em;text-transform:uppercase;font-weight:600;color:rgba(255,255,255,.85); }
.welcome-install-desc{ font-family:'Crimson Pro',serif;font-size:11.5px;color:rgba(255,255,255,.45);margin-top:1px; }
.welcome-tip{
  background:rgba(201,162,75,.15);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(201,162,75,.35);border-radius:10px;padding:12px 16px;margin-bottom:16px;
}
.welcome-tip-label{ font-family:'DM Mono',monospace;font-size:9px;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);margin-bottom:4px;font-weight:600; }
.welcome-tip-text{ font-family:'Crimson Pro',serif;font-size:15px;line-height:1.5;color:rgba(255,255,255,.85); }
.welcome-enter-btn{
  display:flex;align-items:center;justify-content:center;font-family:'DM Mono',monospace;
  font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:600;
  padding:14px 20px;width:100%;border-radius:8px;background:rgba(255,255,255,.92);color:var(--navy2);
  border:none;cursor:pointer;transition:all .2s;min-height:46px;
}
.welcome-enter-btn:hover{background:#fff;transform:translateY(-1px)}
.welcome-enter-btn:active{transform:scale(.97)}

/* FABs/panels stay hidden until the welcome screen is dismissed */
body:not(.welcomed) .fab-row,
body:not(.welcomed) .panel { display: none !important; }

a { color: #3f7d86; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- Hero ---- */
.hero {
  /* Real full-bleed photo hero, matching zurich-pwa's #hero exactly (its
     ACTUAL current source - confirmed by reading /workspace/jhwiv/zurich-pwa,
     not the stale March-dated archive this build wrongly relied on the
     first time). #hero-photo carries the photo (set by app.js from
     HERO_PHOTOS, one of up to 10 candidates picked at random per page
     load - see the "carousel" comment on HERO_PHOTOS in app.js), swapped
     as a background-image so a missing/placeholder URL degrades to this
     gradient instead of a broken image. */
  min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(170deg, #0b1826 0%, #0d2133 55%, #091b2a 100%);
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 24px 24px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-photo {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(9,20,32,.2) 0%, rgba(9,20,32,.15) 40%, rgba(9,20,32,.55) 75%, rgba(9,20,32,.82) 100%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }
.hero .eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.7); margin-bottom: 14px; font-weight: 500;
}
.hero h1 {
  font-size: clamp(30px, 7vw, 50px); font-weight: 700; font-style: italic;
  letter-spacing: -0.5px; line-height: 1.15; margin-bottom: 10px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.hero .route { font-size: clamp(15px, 3vw, 19px); color: rgba(255,255,255,0.92); margin-bottom: 14px; }
.hero .meta { font-size: 13px; color: rgba(255,255,255,0.75); letter-spacing: 0.02em; }
.countdown-badge {
  display: inline-block; margin-top: 18px; padding: 7px 16px;
  font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: 0.06em;
  color: var(--gold); background: rgba(201,162,75,0.1);
  border: 1px solid rgba(201,162,75,0.4); border-radius: 20px;
}
.countdown-badge:empty { display: none; }

/* ---- Site nav — two flex-wrap rows, no horizontal scroll ---- */
.site-nav {
  background: #fff;
  border-bottom: 1px solid #dcd8cf;
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 6px 10px;
}
.nav-row { display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 2px 0; }
.nav-chip {
  font-size: 11px;
  padding: 8px 14px;
  min-height: 34px;
  border-radius: 20px;
  color: #5b6577;
  background: #f8f7f3;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}
.nav-chip:hover { background: #eef0ec; }
.nav-chip:active { transform: scale(0.96); }
.nav-chip.active { color: #0d2133; background: #fff; border-color: #c9a24b; font-weight: 600; }
@media (max-width: 420px) {
  .nav-chip { font-size: 9.5px; padding: 6px 10px; min-height: 28px; }
}

/* ---- Layout ---- */
.container { max-width: 760px; margin: 0 auto; padding: 20px 20px 40px; }
/* Continuous scroll (matches zurich-pwa's real architecture - confirmed
   from its actual current source, not the earlier stale-archive mistake):
   every section lives in normal document flow all the time. The nav no
   longer shows/hides sections on click - it smooth-scrolls to them, and
   a scroll-spy (app.js) highlights whichever one is currently in view.
   scroll-margin-top keeps a clicked-to section clear of the sticky nav. */
.tab-section { display: block; scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) {
  .city-card, .ref-card, .timeline-row, .item, .nav-chip, .day-jump-pill {
    transition: none;
  }
}
.section-heading {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #3f7d86; font-weight: 700; margin-bottom: 18px;
}
.ai-note { font-size: 12.5px; color: #9aa1ad; font-style: italic; margin-bottom: 14px; }
/* Plain explanatory caption - unlike .ai-note, carries no "unverified AI
   content" meaning, just a short "here's how to read this" hint above a
   UI element that isn't self-explanatory on its own (e.g. what a bar's
   fill width represents). */
.section-note { font-size: 12px; color: #9aa1ad; margin: -10px 0 14px; line-height: 1.5; }

/* ---- Location banner (real photo, at each city transition) ----
   Matches zurich-pwa's .location-banner/.location-banner-img exactly (its
   ACTUAL current source, confirmed live in the repo - not the stale
   archive this build wrongly relied on the first pass). .location-banner-img
   carries the real photo as a background-image (set inline per element by
   app.js from LOCATION_PHOTOS); .banner is kept as a bare fallback color
   only visible for the instant before the image paints / if a URL is
   missing. */
.location-banner {
  height: 150px; position: relative; overflow: hidden;
  background: var(--navy);
  /* Break out of .container's 20px side padding so the photo runs edge to
     edge, matching the real reference exactly - without this it would sit
     inset like a bordered card instead of a full-bleed banner. */
  margin: 0 -20px 24px; width: calc(100% + 40px);
}
.location-banner-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: brightness(0.65);
}
.location-banner-content {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 24px;
}
.location-banner-flag { font-size: 1.5rem; margin-bottom: 4px; }
.location-banner-city {
  font-family: 'Playfair Display', serif;
  font-size: clamp(20px, 5vw, 28px); font-weight: 700;
  color: #fff; letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.location-banner-sub {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.8); margin-top: 4px;
}

/* ---- Day banner (small navy marker, one per day - the accent color
   piece of the real pattern; kept deliberately thin so it reads as a
   divider, not another oversized color block). ---- */
.day-banner {
  background: var(--navy);
  padding: 18px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin: 0 -20px; width: calc(100% + 40px);
}
.day-banner::before {
  content: ""; display: block; width: 40px; height: 2px;
  background: var(--gold); margin: 0 auto 10px;
}
.day-banner-eyebrow {
  font-family: 'DM Mono', monospace; font-size: 9px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 4px;
}
.day-banner-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 4vw, 20px); font-weight: 700;
  color: #fff; line-height: 1.2;
}
/* Once a real city photo URL is supplied, add per-city rules like:
   .banner[data-city="London"] { background: url('LONDON_PHOTO_URL') center/cover no-repeat; }
   .banner[data-city="London"] .banner-scene { display: none; }
   matching zurich-pwa's .location-banner pattern. */

/* ---- Overview: city cards + logistics ----
   Rectangular, infographic-style, expand-on-click. Each card is a full-width
   bar (not a squarish tile) whose fill width encodes that city's share of
   total trip nights at a glance; tapping/clicking reveals the stay, transport
   leg, trip-focus highlights, and live weather underneath via a
   grid-template-rows 0fr->1fr animation (no fixed max-height guess needed). */
.city-cards { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.city-card {
  background: #f8f7f3; border: 1px solid #dcd8cf; border-radius: 10px;
  overflow: hidden; cursor: pointer;
  transition: box-shadow 0.18s ease, border-color 0.18s ease;
}
.city-card:hover { box-shadow: 0 8px 20px rgba(13,33,51,0.1); border-color: var(--gold-soft); }
.city-card:focus-visible { outline: 2px solid var(--gold-soft); outline-offset: -2px; }
.city-card-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; }
.city-card-flag { font-size: 20px; line-height: 1; flex: none; }
.city-card-name { font-size: 15px; font-weight: 700; flex: none; min-width: 82px; }
.city-card-bar-track { flex: 1; height: 9px; background: #e7e3d9; border-radius: 5px; overflow: hidden; }
.city-card-bar-fill { height: 100%; border-radius: 5px; transition: width 0.5s ease; }
.city-card-nights { font-family: 'DM Mono', monospace; font-size: 11px; color: #5b6577; white-space: nowrap; flex: none; }
.city-card-chevron { font-size: 11px; color: #9aa1ad; flex: none; transition: transform 0.2s ease; }
.city-card.expanded .city-card-chevron { transform: rotate(180deg); }
.city-card-body-outer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.28s ease; }
.city-card.expanded .city-card-body-outer { grid-template-rows: 1fr; }
.city-card-body-inner { overflow: hidden; min-height: 0; }
.city-card-body { padding: 0 16px 16px; border-top: 1px dashed #e6e3da; margin-top: -1px; padding-top: 12px; }
.city-card .nights-detail { font-size: 11px; color: #9aa1ad; margin-bottom: 6px; }
.city-card .stay { font-size: 12.5px; color: #5b6577; margin-bottom: 8px; }
.city-transport-in { font-size: 11.5px; color: #9aa1ad; margin: -2px 0 10px; line-height: 1.4; }
.city-card-focus { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.city-card-focus-chip { font-size: 11px; background: #fff; border: 1px solid #dcd8cf; border-radius: 20px; padding: 3px 10px; color: #5b6577; }

.logistics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.tag { font-size: 11px; background: #fff; border: 1px solid #dcd8cf; border-radius: 4px; padding: 4px 10px; color: #5b6577; }

.arc-text { font-size: 15px; line-height: 1.75; color: #333; }

/* ---- Weather card ---- */
.wx-loading { font-size: 12px; color: #9aa1ad; font-style: italic; }
.wx-top { font-size: 20px; font-weight: 700; color: #0d2133; }
.wx-hilo { font-size: 12px; font-weight: 400; color: #5b6577; }
.wx-cond { font-size: 13px; color: #5b6577; margin: 2px 0 8px; }
.wx-stats { display: flex; gap: 8px; flex-wrap: wrap; }
.wx-stat { font-size: 10.5px; background: #fff; border: 1px solid #dcd8cf; border-radius: 4px; padding: 2px 7px; color: #5b6577; }

/* ---- Condensed itinerary ----
   Was a flat, single-weight list (day label + bare time/text rows, no
   headline, no city cue, no per-item icon) - hard to scan or absorb at a
   glance since every one of 13 days looked identical. Each day is now a
   distinct card: a city-colored left accent bar + flag (the same visual
   anchor city tabs already give you, since Condensed deliberately shows
   every day back to back with no tab boundary between cities), the day's
   real headline as a subtitle (already existed in the data, just never
   rendered here), and the same circular item-type icon used in the
   day-tab card view so a flight/meal/hotel/activity pattern-matches at a
   glance down a long day instead of reading as identical text rows. */
.cond-day {
  padding: 14px 14px 12px; margin: 0 0 12px; border-left: 4px solid #dcd8cf;
  background: #fbfaf7; border-radius: 0 8px 8px 0;
}
.cond-day:last-child { margin-bottom: 0; }
.cond-day-head { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.cond-day-flag { font-size: 15px; line-height: 1; }
.cond-day-label { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700; color: #3f7d86; text-transform: uppercase; letter-spacing: 0.06em; }
.cond-day-headline { font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700; color: #1c2840; line-height: 1.3; margin-bottom: 10px; }
.cond-row { display: flex; align-items: flex-start; gap: 10px; padding: 5px 0; }
.cond-row-icon {
  flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%;
  background: #eef3f3; display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.cond-row-body { flex: 1; min-width: 0; font-size: 13.5px; color: #333; line-height: 1.45; }
.cond-time { color: #9aa1ad; font-size: 11px; display: block; }
.cond-warn { color: #b91c1c; font-size: 11px; font-weight: 600; }

/* ---- Meals & Reservations ---- */
.meals-banner { background: #fff7ed; border: 1px solid #f5d9b8; color: #92400e; font-size: 12.5px; padding: 10px 14px; border-radius: 8px; margin-top: 16px; }

/* ---- Before You Go (entry requirements) ---- */
.byg-card { background: #fff7ed; border: 1px solid #f5d9b8; border-radius: 10px; padding: 16px 18px; margin-bottom: 8px; }
.byg-title { font-weight: 700; font-size: 14.5px; color: #92400e; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.byg-line { font-size: 13px; color: #6b4a2a; line-height: 1.6; margin-bottom: 8px; }
.byg-line:last-child { margin-bottom: 0; }
.byg-line strong { color: #92400e; }
.meal-row { padding: 12px 0; border-top: 1px dashed #e6e3da; }
.meal-row:first-child { border-top: none; }
.meal-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.meal-name { font-weight: 700; font-size: 14.5px; }
.meal-badge { font-size: 10px; text-transform: uppercase; padding: 2px 8px; border-radius: 8px; background: #eef3f3; color: #3f7d86; white-space: nowrap; }
.meal-meta { font-size: 12px; color: #5b6577; margin-top: 2px; }

/* ---- Reservation Timeline (adapted from santafe-itinerary) ---- */
.timeline-intro { font-size: 13.5px; color: #5b6577; line-height: 1.55; margin: 6px 0 16px; }
.timeline-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.timeline-row { display: grid; grid-template-columns: 1fr; gap: 6px; background: #fff; border: 1px solid #dcd8cf; border-left: 3px solid #dcd8cf; padding: 12px 14px; border-radius: 4px; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.timeline-row:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,33,51,0.08); }
.timeline-row.tl-urgent { border-left-color: #c9524b; background: #fdf3ee; }
.timeline-row.tl-soon { border-left-color: var(--gold); }
.timeline-row.tl-done { border-left-color: #2d6b3b; background: #eaf4ec; }
.timeline-row.tl-flex { border-left-color: #9aa1ad; }
.tl-badge { display: inline-block; width: fit-content; justify-self: start; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 8px; border-radius: 3px; background: var(--cream); color: var(--navy); border: 1px solid #dcd8cf; }
.tl-urgent .tl-badge { background: #c9524b; color: #fff; border-color: #c9524b; }
.tl-soon .tl-badge { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.tl-done .tl-badge { background: #2d6b3b; color: #fff; border-color: #2d6b3b; }
.tl-flex .tl-badge { background: #fff; color: #9aa1ad; }
.tl-name { font-weight: 700; font-size: 14.5px; margin: 0 0 2px; }
.tl-note { font-size: 12.5px; color: #5b6577; margin: 0; line-height: 1.5; }

/* ---- Day items (used inside city tabs) ---- */
.day-block { padding: 24px 0; border-bottom: 1px solid #dcd8cf; scroll-margin-top: 112px; }

/* ---- Day quick-jump nav (top of each city tab) ---- */
.day-jump-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
/* NOTE: this row used to get large left/right padding on mobile to clear the
   fixed FAB stack, back when clicking a city nav-chip hard-switched tabs and
   reset scroll to top - landing this row directly under the FABs every time.
   Under the continuous-scroll architecture (scrollIntoView, no tab reset)
   this row appears wherever it naturally falls in the page, not pinned under
   the FABs, so that padding just crushed the pills into a single narrow
   column and forced them onto one row each. Removed; confirmed live via
   Playwright at 375px that FAB/pill overlap does not occur without it
   (the FABs are fixed at the bottom of the viewport, this row scrolls). */
.day-jump-pill {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.03em;
  padding: 6px 12px; border-radius: 14px; background: #f8f7f3; border: 1px solid #dcd8cf;
  color: #5b6577; text-decoration: none; transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.day-jump-pill:hover { background: #fff; border-color: var(--gold); color: var(--navy); }
.day-block:last-child { border-bottom: none; }
.day-block-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #3f7d86; font-weight: 700; }
.day-block-headline { font-size: 20px; font-weight: 700; margin: 4px 0 4px; font-family: 'Playfair Display', Georgia, serif; }
.day-block-weather { font-size: 13px; color: #5b6577; margin-bottom: 16px; }
.weather-tip {
  font-style: italic; font-size: 13px; color: var(--navy);
  margin: 6px 0 0; padding: 6px 10px;
  background: #fff7e6; border-left: 2px solid var(--gold);
  border-radius: 0 4px 4px 0; display: inline-block;
}

/* ---- Weather chip: collapsed infographic (icon + hi/lo + short label),
   expands on click/tap to the full sentence + advisory tip. Replaces the
   always-on-screen full-sentence .day-block-weather for every day whose
   weather string is parseable (see parseWeatherLine in app.js) — .day-
   block-weather above is kept only as the fallback for the one compound
   two-city transit day that doesn't parse. ---- */
.wx-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-bottom: 16px; padding: 5px 10px;
  background: #f8f7f3; border: 1px solid #dcd8cf; border-radius: 16px;
  cursor: pointer; user-select: none; position: relative;
}
.wx-chip:hover { border-color: var(--gold); }
.wx-chip-icon { font-size: 15px; line-height: 1; }
.wx-chip-temp { font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 600; color: #0d2133; }
.wx-chip-short { font-size: 12px; color: #5b6577; }
.wx-chip-caret { font-size: 11px; color: #9aa1ad; transition: transform 0.15s; margin-left: 2px; }
.wx-chip[aria-expanded="true"] .wx-chip-caret { transform: rotate(180deg); }
.wx-chip-detail {
  display: none; position: absolute; z-index: 5; top: calc(100% + 6px); left: 0;
  width: max-content; max-width: min(320px, 80vw);
  background: #fff; border: 1px solid #dcd8cf; border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  padding: 10px 12px; font-size: 13px; color: #5b6577;
  cursor: default; white-space: normal;
}
.wx-chip[aria-expanded="true"] .wx-chip-detail { display: block; }
.wx-chip-detail .weather-tip { margin-top: 8px; display: block; }

/* ---- Wear / Expect / Arrive rows (adapted from santafe-itinerary) ---- */
.logistics-rows { margin-top: 8px; padding: 8px 10px; background: #f8f7f3; border-left: 2px solid var(--gold-soft); border-radius: 0 4px 4px 0; }
.logistics-row { display: grid; grid-template-columns: 60px 1fr; gap: 8px; padding: 3px 0; font-size: 12.5px; color: #5b6577; line-height: 1.45; }
.logistics-label { font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-dim); padding-top: 1px; }
.logistics-disclaimer { font-size: 10.5px; color: #9aa1ad; margin-top: 4px; font-style: italic; }

.item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed #e6e3da; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 6px; transition: background 0.15s ease; }
.item:hover { background: #f8f7f3; }
.item:first-of-type { border-top: none; }
.free-time-item .item-text { color: #9aa1ad; font-style: italic; font-weight: 500; }
.free-time-item .item-icon { background: transparent; opacity: 0.6; }
.item-icon { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #eef3f3; display: flex; align-items: center; justify-content: center; font-size: 15px; }
.item-body { flex: 1; min-width: 0; }
.item-time { font-size: 11.5px; color: #9aa1ad; font-weight: 600; letter-spacing: 0.02em; }
.item-text { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.item-why { font-size: 13px; color: #5b6577; margin-top: 3px; font-style: italic; }
.item-links { margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.item-links a { font-size: 12.5px; font-weight: 600; }
.directions-group { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; }
.directions-group a {
  font-size: 10.5px; font-weight: 600; text-decoration: none;
  background: #eef3f3; color: #3f7d86; border-radius: 4px; padding: 3px 7px;
}
.directions-group a:hover { background: #dfeaea; text-decoration: none; }

.navigate-row {
  margin-top: 8px; padding: 8px 10px; background: #eef3f3; border: 1px solid #cfe0e0;
  border-radius: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.navigate-label { font-size: 11px; font-weight: 700; color: #1c2840; }
.navigate-row .directions-group a { background: #fff; }

/* ---- Reference cards (Essentials / Transit / Air & Hotel) ---- */
.ref-card { background: #f8f7f3; border: 1px solid #dcd8cf; border-radius: 10px; padding: 14px; margin-bottom: 10px; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease; }
.ref-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(13,33,51,0.08); border-color: var(--gold-soft); }
.ref-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ref-city { font-family: 'DM Mono', monospace; font-size: 10px; color: #9aa1ad; text-transform: uppercase; font-weight: 400; margin-left: 6px; }
.ref-line { font-size: 13px; color: #333; margin-top: 3px; }
.ref-line.ai-note { margin-top: 6px; }
.flight-warn { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; font-size: 12px; padding: 6px 10px; border-radius: 6px; margin: 6px 0; }
.flight-status { font-size: 11.5px; color: #9aa1ad; font-style: italic; }
.flight-status-ok { color: #166534; font-style: normal; font-weight: 600; }
.flight-status-warn { color: #b91c1c; font-style: normal; }
.flight-status-pending { color: #9aa1ad; font-style: italic; }

/* ---- Street Views ---- */
.sv-card { margin-bottom: 18px; }
.sv-title { font-weight: 700; font-size: 13.5px; margin-bottom: 6px; }
.sv-frame { width: 100%; height: 240px; border: 1px solid #dcd8cf; border-radius: 10px; }
.sv-link { display: block; font-size: 12px; margin-top: 4px; }

/* ---- History accordion ---- */
.accordion-item { border-bottom: 1px solid #dcd8cf; }
.accordion-header {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: 'Playfair Display', Georgia, serif; font-size: 16px; font-weight: 700;
  padding: 14px 0; color: #0d2133;
}
.accordion-header::after { content: '+'; float: right; color: #9aa1ad; }
.accordion-item.open .accordion-header::after { content: '−'; }
.accordion-body { display: none; font-size: 14px; line-height: 1.7; color: #333; padding-bottom: 14px; }
.accordion-item.open .accordion-body { display: block; }

/* ---- Map ---- */
.map-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.map-filter-btn { border: 1px solid #dcd8cf; background: #f8f7f3; border-radius: 20px; padding: 6px 14px; font-size: 12px; cursor: pointer; }
.map-filter-btn.active { background: #0d2133; color: #fff; border-color: #0d2133; }
#itineraryMap { width: 100%; height: 400px; border-radius: 12px; border: 1px solid #dcd8cf; position: relative; z-index: 1; isolation: isolate; }
.map-legend { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 12px; color: #5b6577; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

/* ---- Local search / chat panels — FABs bottom-left, matching zurich ---- */
.fab-row { position: fixed; left: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  background: #0d2133; color: #fff; border: none;
  font-size: 20px; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
@media (max-width: 480px) {
  /* Every tab switch resets scroll to top, so the FAB stack's fixed
     bottom-left footprint sits over whatever a tab's first-viewport
     content happens to be. Shrinking it (still above the 44px accessible
     touch-target minimum) reduces how much real content it can cover,
     paired with the .day-jump-nav clearance fix above for the case that
     actually blocked interaction. */
  .fab-row { left: 14px; bottom: 14px; gap: 8px; }
  .fab { width: 46px; height: 46px; font-size: 18px; }
}
.panel {
  position: fixed; left: 18px; bottom: 150px;
  width: min(360px, calc(100vw - 36px));
  max-height: 60vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
  border: 1px solid #dcd8cf;
}
.panel.active { display: flex; }
.panel-header {
  padding: 12px 14px;
  background: #0d2133;
  color: #fff;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; font-weight: 700;
}
.panel-header button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.panel-body { padding: 12px 14px; overflow-y: auto; flex: 1; font-size: 13.5px; }
.panel-footer { padding: 10px 14px; border-top: 1px solid #dcd8cf; display: flex; gap: 8px; }
.panel-footer input { flex: 1; border: 1px solid #dcd8cf; border-radius: 8px; padding: 8px 10px; font-size: 16px; font-family: inherit; }
.panel-footer button { border: none; background: #3f7d86; color: #fff; border-radius: 8px; padding: 8px 14px; font-weight: 700; cursor: pointer; }

.local-cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.local-cats button { border: 1px solid #dcd8cf; background: #f8f7f3; border-radius: 20px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; }

.chat-suggestions { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 14px; border-bottom: 1px solid #dcd8cf; }
.chat-suggest-btn {
  border: 1px solid #cfe0e0; background: #eef3f3; color: #1c2840; border-radius: 20px;
  padding: 6px 12px; font-size: 11.5px; cursor: pointer; white-space: nowrap;
}
.chat-suggest-btn:hover { background: #dfeaea; }
.local-result { padding: 8px 0; border-top: 1px dashed #e6e3da; }
.local-result:first-child { border-top: none; }
.local-result .name { font-weight: 700; font-size: 13.5px; }
.local-result .meta { font-size: 12px; color: #5b6577; }

.chat-msg { margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; max-width: 90%; font-family: 'Crimson Pro', Georgia, serif; }
.chat-msg--user { background: #eef3f3; margin-left: auto; }
.chat-msg--bot { background: #f8f7f3; }
.chat-msg a { text-decoration: underline; }

.footer-note { font-size: 12px; color: #9aa1ad; text-align: center; padding: 24px 0; }

/* ── PACKING LIST (from travel-app-components/packing-list-v2) ── */
.pack-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin: 14px 0 22px; padding: 12px 14px; background: #f8f7f3;
  border: 1px solid #dcd8cf; border-left: 3px solid var(--gold);
  border-radius: 4px; font-family: 'DM Mono', monospace; font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy);
}
.pack-progress { color: #3f7d86; font-weight: 600; }
.pack-reset {
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  background: transparent; color: #5b6577; border: 1px solid #dcd8cf; padding: 6px 12px;
  border-radius: 3px; cursor: pointer; transition: color .15s ease, border-color .15s ease;
}
.pack-reset:hover { color: #c9524b; border-color: #c9524b; }
.pack-group { margin: 22px 0 8px; }
.pack-group .grouphead { margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.pack-list { list-style: none; padding: 0; margin: 0 0 6px; border-top: 1px solid #dcd8cf; }
.pack-list li { border-bottom: 1px solid #dcd8cf; }
.pack-list label {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 4px; cursor: pointer;
  font-family: 'Crimson Pro', Georgia, serif; font-size: 16px; line-height: 1.45;
  color: #1c2840; user-select: none; -webkit-tap-highlight-color: transparent;
}
.pack-list input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 20px; height: 20px; flex-shrink: 0;
  margin-top: 2px; border: 1.5px solid var(--gold-soft); border-radius: 3px; background: #fff;
  position: relative; cursor: pointer; transition: background .15s ease, border-color .15s ease;
}
.pack-list input[type="checkbox"]:hover { border-color: #3f7d86; }
.pack-list input[type="checkbox"]:checked { background: #3f7d86; border-color: #3f7d86; }
.pack-list input[type="checkbox"]:checked::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.pack-list li.is-packed span { color: #9aa1ad; text-decoration: line-through; text-decoration-color: var(--gold-soft); }
@media (max-width: 540px) {
  .pack-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .pack-progress { text-align: center; }
  .pack-list label { font-size: 15.5px; }
}

@media (max-width: 480px) {
  #itineraryMap { height: 320px; }
  .sv-frame { height: 200px; }
}

/* ── PRINT ── prints whichever tab is currently open (a roadbook of the
   full trip in one print job isn't attempted here - see parking-lot
   items in docs/new-trip-site-playbook.md for that as a future add) ── */
@media print {
  .site-nav, .fab-row, .panel, #welcome-screen, .map-filters, #time-pill,
  #itineraryMap, .sv-frame, .hero-photo,
  .day-jump-nav, .countdown-badge { display: none !important; }
  .hero { background: none !important; min-height: 0; color: #1c2840; padding: 12px 0; }
  .hero-overlay { display: none; }
  .hero .eyebrow, .hero .meta { color: #5b6577; }
  .hero .route { color: #1c2840; }
  /* Location/day banners default to white-on-photo or white-on-navy for
     screen; without this override a printed page (or any browser with
     "print background graphics" off, the common default) would show white
     text on a white page - unreadable. Same light-on-white treatment as
     the hero, just above. */
  .location-banner, .day-banner { background: none !important; height: auto; margin: 0 0 8px; padding: 4px 0; }
  .location-banner-img { display: none; }
  .location-banner-city, .day-banner-title { color: #1c2840; }
  .location-banner-sub, .day-banner-eyebrow { color: #5b6577; }
  .day-banner::before { background: #c9a24b; }
  /* .wx-chip's expanded detail is a JS-toggled absolute popover, invisible
     by default (aria-expanded="false") - print has no click interaction to
     reveal it, so left alone the weather detail + advisory tip would
     silently vanish from every printed day. Force it open and flow inline
     instead of floating, and drop the now-nonfunctional caret. */
  .wx-chip { display: block; background: none; border: none; padding: 0; margin-bottom: 8px; }
  .wx-chip-caret { display: none; }
  .wx-chip-detail {
    display: block !important; position: static; box-shadow: none; border: none;
    background: none; padding: 4px 0 0; max-width: none; width: auto;
  }
  /* .city-card-body-outer collapses to 0fr height until .expanded is toggled
     by a click - print has no click interaction, so left alone the stay,
     transport, focus chips, and weather for every unexpanded city card would
     silently vanish from print, same failure shape as .wx-chip above. Force
     it open and drop the now-nonfunctional chevron/bar-track infographic. */
  .city-card-body-outer { display: block !important; }
  .city-card-body-inner { overflow: visible !important; }
  .city-card-chevron, .city-card-bar-track { display: none; }
  .city-card { break-inside: avoid; page-break-inside: avoid; cursor: default; }
  body { background: #fff; }
  .container { max-width: 100%; padding: 0; }
  .day-block { break-inside: avoid; page-break-inside: avoid; }
  .item { break-inside: avoid; }
  .cond-day { break-inside: avoid; page-break-inside: avoid; background: none; }
  a { color: #1c2840; text-decoration: underline; }
  .directions-group a, .navigate-row { display: none; }
  .item-links a[href^="tel:"], .item-links a[href^="http"] { text-decoration: underline; }
}

/* ── TIME PILL ── home-vs-local clock, adapted from maritimes-grandloop-v2.
   Trip-zone table is derived at runtime from the real per-day city/date
   data already embedded on the page (app.js), not duplicated here.
   Bottom-right (not top-right): the old top-right placement was chosen back
   when clicking a city nav-chip hard-switched tabs and reset scroll to top,
   landing this pill directly over the freshly-revealed sticky nav/tab
   content every time. The continuous-scroll rebuild (KNOWN FAILURE MODE-
   style regression, see the day-jump-nav mobile-padding fix earlier in this
   file) removed that reset entirely, so there's no more scroll-to-top event
   for a top-corner pill to avoid landing on - and top-right now visibly
   overlapped the sticky .site-nav tab row instead. Bottom-right mirrors the
   FAB row's own bottom-left placement (opposite corner, so neither collides
   with the other or with the .panel popouts, which anchor bottom-left). ── */
#time-pill {
  position: fixed; bottom: 14px; right: 14px; z-index: 65;
  display: none; align-items: center; gap: 0;
  background: var(--navy);
  border: 1px solid rgba(200, 168, 75, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.3);
  font-family: 'DM Mono', monospace;
  cursor: default; user-select: none;
}
#time-pill.visible { display: flex; }
#time-pill .tp-zone { display: flex; flex-direction: column; align-items: center; min-width: 58px; }
#time-pill .tp-flag { font-size: 10px; line-height: 1; margin-bottom: 1px; }
#time-pill .tp-time { font-size: 11px; font-weight: 600; color: var(--cream); letter-spacing: 0.02em; white-space: nowrap; }
#time-pill .tp-label { font-size: 7px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dim); margin-top: 1px; white-space: nowrap; }
#time-pill .tp-sep { width: 1px; height: 20px; background: rgba(200, 168, 75, 0.25); margin: 0 8px; }
@media (max-width: 480px) {
  #time-pill { font-size: 10px; bottom: 10px; right: 10px; }
  #time-pill .tp-zone { min-width: 46px; }
}
