*, *::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; }
a { color: #3f7d86; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---- Hero ---- */
.hero {
  /* Solid gradient by default. Once a real photo URL is supplied, replace
     this rule's `background` with:
     background: url('PHOTO_URL') center/cover no-repeat;
     and add .hero-overlay { background: linear-gradient(180deg, rgba(11,24,38,.35), rgba(9,27,42,.75)); }
     matching zurich-pwa's #hero pattern exactly. */
  background: linear-gradient(170deg, #0b1826 0%, #0d2133 55%, #091b2a 100%);
  color: #fff;
  padding: 72px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 110% 55% at 50% 108%, rgba(63,125,134,0.55) 0%, transparent 65%),
    radial-gradient(ellipse 70% 40% at 90% 0%, rgba(201,162,75,0.15) 0%, transparent 55%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.hero .eyebrow {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.55); 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;
}
.hero .route { font-size: clamp(15px, 3vw, 19px); color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.hero .meta { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 0.02em; }

/* ---- 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;
}
.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; }
.tab-section { display: none; }
.tab-section.active { display: block; }
.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; }

/* ---- City / section banners (solid color, matches zurich's day-banner
       pattern for non-hero transitions) ---- */
.banner {
  background: linear-gradient(170deg, #0b1826 0%, #0d2133 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.banner::before {
  content: ""; position: absolute; left: 24px; top: 18px; width: 40px; height: 3px; background: #c9a24b;
}
.banner-inner { position: relative; padding-top: 10px; }
.banner-eyebrow { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.banner-title { font-size: 26px; font-weight: 700; font-style: italic; }
/* Once a 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"]::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(11,24,38,.3), rgba(9,27,42,.8)); }
   matching zurich-pwa's .location-banner pattern. */

/* ---- Overview: city cards + logistics ---- */
.city-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.city-card { background: #f8f7f3; border: 1px solid #dcd8cf; border-radius: 10px; padding: 14px; }
.city-card h3 { font-size: 16px; margin-bottom: 4px; }
.city-card .nights { font-size: 11px; color: #9aa1ad; margin-bottom: 8px; }
.city-card .stay { font-size: 12.5px; color: #5b6577; margin-bottom: 10px; }

.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 ---- */
.cond-day { padding: 10px 0; border-top: 1px dashed #e6e3da; }
.cond-day:first-child { border-top: none; }
.cond-day-label { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700; color: #3f7d86; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.cond-row { font-size: 13.5px; padding: 3px 0; color: #333; }
.cond-time { color: #9aa1ad; font-size: 11px; }

/* ---- 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; }
.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; }

/* ---- Day items (used inside city tabs) ---- */
.day-block { padding: 24px 0; border-bottom: 1px solid #dcd8cf; }
.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; }

.item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px dashed #e6e3da; }
.item:first-of-type { border-top: none; }
.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; }

/* ---- Reference cards (Essentials / Transit / Air & Hotel) ---- */
.ref-card { background: #f8f7f3; border: 1px solid #dcd8cf; border-radius: 10px; padding: 14px; margin-bottom: 10px; }
.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; }

/* ---- 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);
}
.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; }
.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; }

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