/* ============================================
   Andy & Dori — Calm Edition
   Soft, magazine-clean, easy on the eyes
   ============================================ */

:root {
  /* Warm neutral palette */
  --bg: #FAF8F3;
  --bg-soft: #F2EEE5;
  --card: #FFFFFF;
  --card-soft: #FBF9F4;

  /* Brand colours — muted, not loud */
  --sage: #5E7B6D;          /* primary calm sage green */
  --sage-soft: #94A99D;
  --sage-tint: #E4EBE6;
  --terracotta: #B8744C;     /* warm accent, used sparingly */
  --terracotta-soft: #D9B5A0;
  --terracotta-tint: #F2E4DA;
  --blush: #E8D5CF;          /* birthday */
  --gold: #B89968;           /* Christmas */
  --slate: #5D7A8C;          /* NYE */

  /* Type — darker for WCAG AA contrast on cream/white backgrounds */
  --ink: #2C2C28;
  --ink-soft: #4F4F4A;    /* was #6B6B66 — much darker for body text readability */
  --ink-faint: #6E6E68;   /* was #9C9C95 — still subtle but actually readable */

  /* Lines */
  --line: #E8E4DC;
  --line-soft: #F0EDE5;

  /* Effects */
  --shadow-xs: 0 1px 3px rgba(60, 50, 30, 0.06);
  --shadow-sm: 0 2px 8px rgba(60, 50, 30, 0.06);
  --shadow-md: 0 4px 16px rgba(60, 50, 30, 0.08);
  --shadow-lg: 0 12px 36px rgba(60, 50, 30, 0.10);

  /* Sizing */
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  min-height: 100vh;
  font-size: 16.5px;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  color: var(--ink);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  margin-top: 0.4rem;
  margin-bottom: 1.2rem;
  font-weight: 600;
}

h3 {
  font-size: clamp(1.15rem, 1.8vw, 1.35rem);
  margin-top: 0.3rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
}

p { margin-bottom: 0.9rem; color: var(--ink-soft); line-height: 1.7; }
p + p { margin-top: 0.4rem; }
p:last-child { margin-bottom: 0; }

/* Section-level title styling — gives every h2 a consistent presence */
section > h2,
section > .container > h2,
.container > h2 {
  margin-top: 0;
}

/* Eyebrow under a section title (italic Lora subtitle) */
.section-sub {
  text-align: center;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: -0.5rem auto 2rem;
  line-height: 1.55;
}

a { color: var(--terracotta); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ink); }

strong { color: var(--ink); font-weight: 600; }

.script {
  font-family: 'Caveat', cursive;
  font-weight: 600;
}

/* ============= NAVIGATION ============= */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0.9rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.nav-logo {
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.nav-logo .heart { color: var(--terracotta); }
.nav-logo .accent { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; margin-left: 0.4rem; }

.nav-links {
  display: flex;
  gap: 0.2rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  transition: all .15s;
}

.nav-links a:hover { color: var(--sage); background: var(--bg-soft); }
.nav-links a.active { color: #2c4438; background: var(--sage-tint); font-weight: 600; }

/* ============= CONTAINERS ============= */
.container { max-width: 1180px; margin: 0 auto; padding: 0 1.75rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.75rem; }

/* Generous, consistent section rhythm — every block breathes the same way */
section { padding: 2.25rem 0; }
section:first-of-type { padding-top: 3rem; }
section:last-of-type { padding-bottom: 4rem; }

/* ============= HERO ============= */
.hero {
  padding: 5.5rem 1.5rem 4rem;
  text-align: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
  color: var(--terracotta);
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.hero h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.1;
}

.hero h1 .accent {
  color: var(--terracotta);
  font-style: italic;
  font-family: 'Lora', serif;
  font-weight: 500;
}

.hero-sub {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  max-width: 660px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
  line-height: 1.5;
}

/* Hero photo card — clean, polaroid-style framing */
.hero-photo-frame {
  background: var(--card);
  padding: 1.1rem 1.1rem 0.6rem;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius);
  max-width: 640px;
  margin: 0 auto 3rem;
  border: 1px solid var(--line);
}

.hero-photo-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--sage-tint) 0%, var(--terracotta-tint) 100%);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: var(--ink-soft);
  position: relative;
  overflow: hidden;
}

.hero-photo-placeholder .emoji {
  font-size: 2.4rem;
  margin: 0 0.2rem;
}

.hero-photo-placeholder .placeholder-note {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.hero-photo-caption {
  margin-top: 0.8rem;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  text-align: center;
  font-weight: 500;
}

/* ============= COUNTDOWN ============= */
.countdown-wrap {
  background: var(--card);
  padding: 1.6rem 2rem 1.4rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  display: inline-block;
  margin: 0 auto 1.75rem;
  position: relative;
}

.countdown-label-top {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.16rem;
  font-weight: 700;
}

.countdown {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.countdown-box {
  text-align: center;
  min-width: 60px;
}

.countdown-number {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  display: block;
  line-height: 1;
}

.countdown-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  font-weight: 700;
}

.travel-dates {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.02rem;
  color: var(--ink);
  margin-top: 0.6rem;
  font-weight: 500;
}

/* ============= CARDS ============= */
/* ============= CARDS — unified white card system ============= */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(184, 116, 76, 0.2);
}

.card > h3:first-child,
.card > h4:first-child { margin-top: 0; }

.card > p:last-child { margin-bottom: 0; }

/* Legacy alias for paper-card — unified to the same style */
.paper-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}

.paper-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.paper-card.with-tape::before { display: none; }

.paper-card > h3:first-child,
.paper-card > h4:first-child { margin-top: 0; }

.paper-card > p:last-child { margin-bottom: 0; }

/* ============= GRID — consistent gap rhythm ============= */
.grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* ============= STAT TILES ============= */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 2rem;
}

.stat {
  background: var(--card);
  padding: 1.4rem 1rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  transition: transform .2s, box-shadow .2s;
}

.stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-num {
  font-family: 'Lora', serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--sage);
  display: block;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  font-weight: 600;
  margin-top: 0.4rem;
  display: block;
}

/* ============= BADGES ============= */
.badge {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02rem;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
}

.badge-coral, .badge-terracotta { background: var(--terracotta-tint); color: #8a5234; }
.badge-rose { background: var(--blush); color: #8a5a55; }
.badge-sage { background: var(--sage-tint); color: #3e5a4d; }
.badge-blue, .badge-slate { background: #E3EBF1; color: #3d5a6c; }
.badge-gold { background: #F0E5CC; color: #806530; }

/* ============= CURRENCY WIDGET ============= */
.currency-widget {
  background: linear-gradient(135deg, var(--sage) 0%, #708F80 100%);
  color: var(--card);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

.currency-widget h3 {
  color: var(--card);
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-family: 'Lora', serif;
}

.currency-widget h3::before { content: '💱  '; }

.currency-widget > p { color: rgba(255,255,255,0.95); font-size: 0.92rem; }

.currency-input-row {
  display: flex;
  gap: 0.4rem;
  margin: 0.9rem 0;
  flex-wrap: wrap;
}

.currency-input-row input,
.currency-input-row select {
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.15);
  color: var(--card);
  font-size: 0.92rem;
  flex: 1;
  min-width: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.currency-input-row input::placeholder { color: rgba(255,255,255,0.55); }
.currency-input-row select option { color: var(--ink); }

.currency-result {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--card);
  margin: 0.6rem 0;
  word-break: break-word;
  line-height: 1.2;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.rate-tile {
  background: rgba(255,255,255,0.15);
  padding: 0.5rem 0.55rem;
  border-radius: 6px;
  text-align: center;
}

.rate-tile-cur {
  font-size: 0.74rem;
  opacity: 0.95;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04rem;
}

.rate-tile-val {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--card);
  display: block;
  margin-top: 0.15rem;
  font-weight: 600;
}

.rate-status {
  font-size: 0.78rem;
  opacity: 0.92;
  margin-top: 0.7rem;
}

/* ============= CITY POLAROID GRID ============= */
.cities-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

@media (max-width: 900px) {
  .cities-bar { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .cities-bar { grid-template-columns: repeat(2, 1fr); }
}

.polaroid {
  background: var(--card);
  padding: 0.7rem 0.7rem 1.1rem;
  box-shadow: var(--shadow-xs);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  display: block;
  border: 1px solid var(--line);
}

.polaroid:hover {
  transform: translateY(-4px) rotate(-0.6deg);
  box-shadow: var(--shadow-md);
}

.polaroid:hover .polaroid-caption {
  color: var(--terracotta);
}

.polaroid-caption {
  transition: color 0.2s;
}

/* Subtle border on polaroid images so they look like real polaroids */
.polaroid .polaroid-img {
  border: 1px solid rgba(0,0,0,0.05);
}

/* Active link styling for Memories nav */
.nav-links a[href="memories.html"].active { color: #8a5234; background: var(--terracotta-tint); font-weight: 600; }

.polaroid-img {
  width: 100%;
  aspect-ratio: 384 / 295;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  /* Stretch panels to fully fill the polaroid frame — uniform appearance, no borders.
     Slight distortion (5-15%) is barely perceptible on illustrated artwork. */
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Each polaroid uses its own pre-cropped panel image (clean, no slicing math). */
.polaroid-img.city-munich     { background-image: url('../images/cities/munich.png');     background-color: #B8946A; }
.polaroid-img.city-nuremberg  { background-image: url('../images/cities/nuremberg.png');  background-color: #94585A; }
.polaroid-img.city-prague     { background-image: url('../images/cities/prague.png');     background-color: #826853; }
.polaroid-img.city-vienna     { background-image: url('../images/cities/vienna.png');     background-color: #A88860; }
.polaroid-img.city-salzburg   { background-image: url('../images/cities/salzburg.png');   background-color: #94785A; }
.polaroid-img.city-lucerne    { background-image: url('../images/cities/lucerne.png');    background-color: #6E89A3; }
.polaroid-img.city-grindelwald{ background-image: url('../images/cities/grindelwald.png');background-color: #2D6A4F; }
.polaroid-img.city-strasbourg { background-image: url('../images/cities/strasbourg.png'); background-color: #B89360; }
.polaroid-img.city-paris      { background-image: url('../images/cities/paris.png');      background-color: #826570; }
.polaroid-img.city-dolomites  { background-image: url('../images/cities/dolomites.png');  background-color: #94A0AE; }
.polaroid-img.city-florence   { background-image: url('../images/cities/florence.png');   background-color: #94614A; }
.polaroid-img.city-rome       { background-image: url('../images/cities/rome.png');       background-color: #A87858; }

/* Emoji hidden when bg image present (still in HTML for accessibility) */
.polaroid-img > .emoji-fallback {
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.2s;
}
/* If image fails to load: gradient + emoji still shown via scene-* class */
.polaroid-img.scene-munich,
.polaroid-img.scene-nuremberg,
.polaroid-img.scene-prague,
.polaroid-img.scene-vienna,
.polaroid-img.scene-salzburg,
.polaroid-img.scene-lucerne,
.polaroid-img.scene-grindelwald,
.polaroid-img.scene-strasbourg,
.polaroid-img.scene-paris,
.polaroid-img.scene-dolomites,
.polaroid-img.scene-florence,
.polaroid-img.scene-rome {
  background-color: transparent;
}

.polaroid-caption {
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: center;
  margin-top: 0.2rem;
  font-weight: 600;
}

.polaroid-flag {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  color: var(--terracotta);
  font-weight: 600;
}

/* Themed city scenes — muted versions */
.scene-munich    { background: linear-gradient(135deg, #E8D5B0 0%, #B8946A 100%); }
.scene-nuremberg { background: linear-gradient(135deg, #D4A498 0%, #94585A 100%); }
.scene-rothenburg{ background: linear-gradient(135deg, #F0DCBC 0%, #B89360 100%); }
.scene-prague    { background: linear-gradient(135deg, #C8B5A8 0%, #826853 100%); }
.scene-vienna    { background: linear-gradient(135deg, #E8D8A8 0%, #A88860 100%); }
.scene-hallstatt { background: linear-gradient(135deg, #D0DCE6 0%, #6E8AA3 100%); }
.scene-salzburg  { background: linear-gradient(135deg, #DDC8AA 0%, #94785A 100%); }
.scene-lucerne   { background: linear-gradient(135deg, #B5C9DD 0%, #6E89A3 100%); }
.scene-interlaken{ background: linear-gradient(135deg, #E8EAEA 0%, #94A8B8 100%); }
.scene-paris     { background: linear-gradient(135deg, #D4B5BA 0%, #826570 100%); }
.scene-chamonix  { background: linear-gradient(135deg, #E8E8E8 0%, #94A0AE 100%); }
.scene-venice    { background: linear-gradient(135deg, #E0BC95 0%, #A87858 100%); }
.scene-rome      { background: linear-gradient(135deg, #D8B098 0%, #94614A 100%); }
.scene-melbourne { background: linear-gradient(135deg, #E8C8A0 0%, #B47A3D 100%); }

/* ============= CALLOUTS — premium feel, more space ============= */
.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
  box-shadow: var(--shadow-xs);
}

.callout-pink, .callout-burgundy {
  background: #FFF8F3;
  border-color: rgba(184, 116, 76, 0.15);
  border-left-color: var(--terracotta);
}

.callout-mint, .callout-forest {
  background: #F4F8F5;
  border-color: rgba(94, 123, 109, 0.15);
  border-left-color: var(--sage);
}

.callout > h4:first-child { margin-top: 0; }
.callout > p:last-child { margin-bottom: 0; }

.callout h4 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.callout p { margin-bottom: 0; font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; }

/* ============= TIMELINE ============= */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: 1.2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0.55rem;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  margin-bottom: 1.6rem;
  padding-left: 0.4rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.85rem;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--sage);
  z-index: 1;
}

.timeline-time {
  font-weight: 700;
  color: var(--sage);
  font-size: 0.88rem;
  letter-spacing: 0.02rem;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.timeline-content {
  background: var(--card);
  padding: 1.1rem 1.4rem 1.15rem;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  transition: box-shadow 0.2s, transform 0.2s;
}

.timeline-content:hover {
  box-shadow: var(--shadow-sm);
  transform: translateX(2px);
}

.timeline-content h4 {
  color: var(--ink);
  margin-top: 0;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
  font-family: 'Lora', serif;
  font-weight: 700;
}

.timeline-content .detail {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.55;
}

.timeline-content .cost {
  display: inline-block;
  background: var(--sage-tint);
  color: #2c4438;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

/* ============= DAY HEADER ============= */
.day-header {
  background: var(--card);
  padding: 1.25rem 1.6rem;
  border-radius: var(--radius);
  margin: 2.5rem 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
}

.day-header h3 {
  color: var(--ink);
  font-family: 'Lora', serif;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
}

.day-header .day-meta {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

.day-header.birthday {
  border-left-color: var(--terracotta);
  background: linear-gradient(90deg, #FFF1E7 0%, var(--card) 55%);
}
.day-header.christmas {
  border-left-color: #B89968;
  background: linear-gradient(90deg, #FAF1DD 0%, var(--card) 55%);
}
.day-header.nye {
  border-left-color: var(--slate);
  background: linear-gradient(90deg, #EBF0F4 0%, var(--card) 55%);
}

/* ============= CITY HERO ============= */
.city-hero {
  background: linear-gradient(180deg, #FFFFFF 0%, #FBF9F4 100%);
  padding: 2.5rem 2rem;
  border-radius: var(--radius);
  margin: 2.5rem 0 1.75rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  border-top: 4px solid var(--sage);
}

.city-hero h2 { margin-top: 0.25rem; }
.city-hero > p:last-child { margin-bottom: 0; }

.city-hero h2 {
  color: var(--ink);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
  font-family: 'Lora', serif;
  font-weight: 600;
}

.city-hero .city-flag {
  font-size: 1.4rem;
  display: block;
  margin-bottom: 0.3rem;
}

.city-hero .city-dates {
  color: var(--terracotta);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15rem;
  text-transform: uppercase;
  margin-top: 0.3rem;
}

.city-hero .city-emoji { font-size: 2.4rem; margin-bottom: 0.3rem; }

.city-hero .city-tag {
  display: inline-block;
  background: var(--sage-tint);
  color: #3e5a4d;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.city-hero p {
  font-family: 'Lora', serif;
  font-style: italic;
  margin: 0.8rem auto 0;
  max-width: 580px;
  color: var(--ink-soft);
}

/* ============= HOTEL CARDS ============= */
.hotel-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}

.hotel-card-header {
  background: linear-gradient(135deg, #FBF9F4 0%, #FFFFFF 100%);
  color: var(--ink);
  padding: 1.2rem 1.4rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.hotel-card-header h4 {
  color: var(--ink);
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-family: 'Lora', serif;
  font-weight: 700;
}

.hotel-stars { color: var(--terracotta); letter-spacing: 0.08rem; font-size: 0.85rem; font-weight: 600; }
.hotel-type { color: var(--terracotta); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08rem; margin-bottom: 0.3rem; }

.hotel-card-body { padding: 1.4rem 1.4rem 1.5rem; }

.hotel-price {
  font-family: 'Lora', serif;
  font-size: 1.35rem;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.hotel-price small {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  margin-top: 0.2rem;
}

.pros-cons {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.pros-cons div h5 {
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 700;
}

.pros-cons ul { list-style: none; font-size: 0.88rem; color: var(--ink-soft); line-height: 1.55; }
.pros-cons li { padding: 0.1rem 0; line-height: 1.45; }
.pros-cons .pros li::before { content: '+ '; color: var(--sage); font-weight: 600; }
.pros-cons .cons li::before { content: '− '; color: var(--terracotta); font-weight: 600; }

@media (max-width: 500px) { .pros-cons { grid-template-columns: 1fr; } }

/* ============= TABLE ============= */
.tbl {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
}

.tbl th {
  background: var(--card-soft);
  color: var(--ink);
  padding: 0.85rem 0.95rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.tbl td {
  padding: 0.78rem 0.95rem;
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--bg-soft); }

.tbl-wrap { overflow-x: auto; }

/* ============= CITY NAV ============= */
.city-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1.2rem -0.5rem 1.5rem;
  justify-content: center;
  /* Sticky: stays visible just below the main top-nav as you scroll */
  position: sticky;
  top: 58px;
  z-index: 40;
  background: rgba(250, 248, 243, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(60, 50, 30, 0.04);
}

.city-nav a {
  background: var(--card);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--line);
  transition: all .15s;
  white-space: nowrap;
}

.city-nav a:hover { background: var(--sage); color: var(--card); border-color: var(--sage); }
.city-nav a.city-nav-active {
  background: var(--terracotta);
  color: var(--card);
  border-color: var(--terracotta);
}

@media (max-width: 600px) {
  .city-nav {
    top: 52px;
    padding: 0.5rem 0.4rem;
    gap: 0.3rem;
    /* On phones, scroll horizontally rather than wrap into multiple rows */
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .city-nav::-webkit-scrollbar { display: none; }
  .city-nav a { padding: 0.38rem 0.7rem; font-size: 0.82rem; flex-shrink: 0; }
}

/* ============= CHECKLIST ============= */
.checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.4rem;
  margin: 1rem 0;
}

.checklist li {
  background: var(--card);
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  transition: all .15s;
  border: 1px solid var(--line);
  user-select: none;
}

.checklist li:hover { background: var(--bg-soft); }

.checklist li::before {
  content: '☐';
  color: var(--ink-faint);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.checklist li.done {
  background: var(--sage-tint);
  color: var(--ink-soft);
  text-decoration: line-through;
  opacity: 0.75;
}

.checklist li.done::before { content: '☑'; color: var(--sage); }

/* ============= HR ============= */
.hr-fancy {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3rem auto;
  max-width: 200px;
}

/* ============= SECTION TITLES + SUBTITLES ============= */
/* When a centered h2 is followed by a short paragraph, treat that paragraph as a subtitle */
section > .container > h2 {
  text-align: center;
  margin-bottom: 0.6rem;
}

section > .container > h2 + p {
  text-align: center;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  line-height: 1.55;
}

/* Rhythm between major blocks */
.grid + h2,
.grid + .grid,
.tbl-wrap + h2,
.tbl-wrap + h3 { margin-top: 2.75rem; }

.callout { margin-top: 1.75rem; }
.callout + .callout { margin-top: 1rem; }

/* ============= BUTTONS ============= */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  background: var(--sage);
  color: var(--card);
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all .15s;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01rem;
}

.btn:hover { background: var(--ink); color: var(--card); }
.btn-outline { background: transparent; border: 1px solid var(--sage); color: var(--sage); }
.btn-outline:hover { background: var(--sage); color: var(--card); border-color: var(--sage); }

/* ============= STICKY (now subtle highlight cards) ============= */
.sticky {
  background: var(--sage-tint);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid #d4dcd6;
}

.sticky.pink { background: var(--terracotta-tint); border-color: #e5ccbe; }
.sticky.mint { background: var(--sage-tint); border-color: #d4dcd6; }

.sticky h4 {
  font-size: 0.95rem;
  font-weight: 600;
  font-family: 'Lora', serif;
  color: var(--ink);
  margin-bottom: 0.3rem;
}

.sticky p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.45;
}

/* ============= FOOTER ============= */
footer {
  background: var(--card);
  color: var(--ink-soft);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  margin-top: 4rem;
  border-top: 1px solid var(--line);
}

footer h3 {
  color: var(--ink);
  margin-bottom: 0.4rem;
  font-family: 'Lora', serif;
  font-size: 1.1rem;
  font-weight: 600;
}

footer p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 500;
}

footer .heart { color: var(--terracotta); }

/* ============= TAG ============= */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.6rem 0; }

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
  .nav-container { padding: 0 1rem; }
  .nav-links { gap: 0.15rem; }
  .nav-links a { padding: 0.3rem 0.55rem; font-size: 0.78rem; }
  .container, .container-narrow { padding: 0 1rem; }
  section { padding: 2rem 0; }
  .hero { padding: 3rem 1rem 2rem; }
  .countdown-box { min-width: 50px; }
  .countdown-number { font-size: 1.6rem; }
  .day-header { padding: 0.9rem; }
  .day-header h3 { font-size: 1rem; }
  .timeline { padding-left: 1.6rem; }
  .timeline-item::before { left: -1.45rem; }
  .polaroid { padding: 0.5rem 0.5rem 0.8rem; }
}

/* ============= SNOWFLAKE (kept but quieter, can be removed) ============= */
.snowflake { display: none; }

/* ============================================
   MEMORIES PAGE
   ============================================ */

/* Virtual Passport */
.passport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.passport-stamp {
  position: relative;
  background: var(--bg-soft);
  border: 2px dashed var(--ink-faint);
  border-radius: var(--radius-sm);
  padding: 1rem 0.8rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  opacity: 0.55;
  user-select: none;
  --stamp-color: var(--sage);
}

.passport-stamp:hover {
  opacity: 1;
  transform: translateY(-2px);
  border-color: var(--stamp-color);
}

.passport-stamp.stamped {
  background: var(--card);
  border: 2px solid var(--stamp-color);
  opacity: 1;
  box-shadow: 0 2px 8px rgba(60, 50, 30, 0.08);
  transform: rotate(-1.5deg);
}

.passport-stamp.stamped::before {
  content: '✓';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--stamp-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.passport-stamp-num {
  font-family: 'Lora', serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-faint);
  display: inline-block;
  background: var(--card);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.4rem;
}

.passport-stamp.stamped .passport-stamp-num {
  background: var(--stamp-color);
  color: white;
}

.passport-stamp-name {
  font-family: 'Lora', serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.passport-stamp-flag {
  font-size: 1.4rem;
  margin: 0.2rem 0;
}

.passport-stamp-date {
  font-size: 0.78rem;
  color: var(--ink-soft);
  font-style: italic;
}

.passport-stamp.stamped .passport-stamp-date {
  color: var(--stamp-color);
  font-weight: 600;
  font-style: normal;
}

/* Journal grid */
.journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.journal-card {
  --accent: var(--sage);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  display: flex;
  flex-direction: column;
}

.journal-photo {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.journal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.journal-photo-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  font-size: 0.92rem;
  font-style: italic;
}

.journal-body {
  padding: 1.2rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.journal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.2rem;
}

.journal-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  color: var(--ink);
}

.journal-title strong { font-weight: 700; }

.journal-emoji { font-size: 1.3rem; }
.journal-flag { font-size: 1rem; opacity: 0.9; }

.journal-dates {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0.3rem 0 0.5rem;
}

.rating .star {
  font-size: 1.5rem;
  cursor: pointer;
  color: #DDD;
  transition: color 0.15s, transform 0.15s;
  line-height: 1;
  user-select: none;
}

.rating .star.on { color: #E5A93B; }
.rating .star:hover { transform: scale(1.15); }

.rating-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-left: 0.5rem;
  font-style: italic;
}

.journal-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin-bottom: 0.3rem;
  display: block;
}

.journal-card input[type="text"],
.journal-card input[type="url"],
.journal-card textarea {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.93rem;
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.journal-card input:focus,
.journal-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--card);
}

.journal-card textarea {
  min-height: 80px;
  resize: vertical;
  line-height: 1.5;
  font-family: 'Inter', sans-serif;
}

.journal-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

@media (max-width: 480px) {
  .journal-row { grid-template-columns: 1fr; }
}

/* Quote bubble */
.quote-bubble {
  position: relative;
  background: var(--bg-soft);
  border-left: 3px solid var(--sage);
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
}

.quote-text {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.5;
}

.quote-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
}

.quote-del {
  background: transparent;
  border: none;
  color: var(--ink-faint);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.4rem;
  transition: color 0.15s;
}

.quote-del:hover { color: #c0392b; }

/* ============================================
   MILESTONE COUNTDOWNS (multi-card on homepage)
   ============================================ */
.milestones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.milestone-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.milestone-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ms-color, var(--sage));
}

.milestone-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.milestone-emoji {
  font-size: 1.8rem;
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.milestone-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  margin-bottom: 0.6rem;
}

.milestone-days {
  font-family: 'Lora', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ms-color, var(--sage));
  line-height: 1;
}

.milestone-days-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 0.3rem;
  font-style: italic;
}

.milestone-card.passed { opacity: 0.55; }

/* ============================================
   LIVE WEATHER WIDGET
   ============================================ */
.weather-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--slate);
}

.weather-widget h3 { margin-top: 0; }

.weather-now {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: 1rem;
}

.weather-icon {
  font-size: 3.2rem;
  line-height: 1;
}

.weather-temp {
  font-family: 'Lora', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--slate);
  line-height: 1;
}

.weather-info {
  flex: 1;
}

.weather-city {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.weather-desc {
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-family: 'Lora', serif;
  font-style: italic;
}

.weather-loading {
  color: var(--ink-faint);
  font-style: italic;
  font-size: 0.92rem;
  padding: 0.4rem 0;
}

/* ============================================
   SCROLL FADE-IN ANIMATIONS
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ============================================
   PRINT-FRIENDLY STYLES
   ============================================ */
@media print {
  .nav, .scroll-top, .check-price, .map-link, footer { display: none !important; }
  body { background: white; color: black; font-size: 11pt; }
  .container { max-width: 100%; padding: 0; }
  section { padding: 0.5rem 0; page-break-inside: avoid; }
  .card, .timeline-content, .callout, .day-header, .city-hero, .hotel-card { box-shadow: none; border: 1px solid #ccc; page-break-inside: avoid; }
  .city-map-wrap, .route-map-wrap, iframe { display: none !important; }
  a[href]:after { content: none !important; }
  h1, h2, h3, h4 { page-break-after: avoid; }
  .day-header { page-break-before: auto; }
}

/* Print button */
.print-btn {
  position: fixed;
  bottom: 24px;
  right: 80px;
  width: 44px;
  height: 44px;
  background: var(--terracotta);
  color: var(--card);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 99;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

/* ============================================
   FINANCES PAGE — expense tracker
   ============================================ */
.expense-form { margin-top: 1rem; }

.form-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  min-width: 130px;
  display: flex;
  flex-direction: column;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field select {
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.15s, background 0.15s;
}

.form-field input:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(94, 123, 109, 0.15);
}

/* Expense table */
.expense-table th,
.expense-table td {
  font-size: 0.88rem;
  padding: 0.6rem 0.7rem;
  vertical-align: top;
}

.expense-table th { font-size: 0.75rem; }

.tag-andy, .tag-dori, .tag-both, .tag-split {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tag-andy { background: var(--sage-tint); color: #2c4438; }
.tag-dori { background: var(--terracotta-tint); color: #8a5234; }
.tag-both { background: #E3EBF1; color: #3d5a6c; }
.tag-split { background: var(--bg-soft); color: var(--ink-soft); }

.row-del {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-faint);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.15s;
}

.row-del:hover {
  background: #fde8e8;
  border-color: #c0392b;
  color: #c0392b;
}

/* Budget progress bar in settlement cards */
.bp-bar {
  background: var(--bg-soft);
  height: 6px;
  border-radius: 999px;
  margin-top: 0.6rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.bp-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Tweak grid-4 for the settlement summary on mobile */
@media (max-width: 720px) {
  .expense-table { font-size: 0.82rem; }
  .expense-table th, .expense-table td { padding: 0.45rem 0.55rem; }
}

.print-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.print-btn:hover {
  background: var(--ink);
  transform: translateY(-3px);
}

/* ============= TWEMOJI inline emoji ============= */
img.emoji {
  height: 1em;
  width: 1em;
  margin: 0 0.05em 0 0.1em;
  vertical-align: -0.1em;
  display: inline-block;
}

/* ============= BUCKET LIST WIDGET ============= */
.bucket-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--terracotta);
}

.bucket-widget h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--ink);
}

.bucket-widget > p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.bucket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.bucket-list li {
  background: var(--card);
  padding: 0.65rem 0.95rem;
  border-radius: 6px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
  color: var(--ink);
  line-height: 1.4;
}

.bucket-list li:hover { border-color: var(--terracotta); background: #FFF8F2; }

.bucket-list li::before {
  content: '○';
  font-size: 1.2rem;
  color: var(--ink-faint);
  line-height: 1;
  flex-shrink: 0;
}

.bucket-list li.done {
  background: var(--sage-tint);
  border-color: #cdd9d2;
  color: var(--ink-soft);
  text-decoration: line-through;
  text-decoration-color: var(--sage);
}

.bucket-list li.done::before {
  content: '●';
  color: var(--sage);
}

.bucket-progress {
  margin-top: 0.8rem;
  background: var(--bg-soft);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.bucket-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
  width: 0%;
  transition: width 0.4s ease;
}

.bucket-progress-text {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.5rem;
  text-align: center;
  font-weight: 500;
}

/* ============= TRIP PROGRESS WIDGET ============= */
.progress-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--sage);
}

.progress-widget h3 {
  margin-top: 0;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}

.progress-widget > p {
  font-size: 0.93rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.timeline-bar {
  position: relative;
  height: 8px;
  background: var(--bg-soft);
  border-radius: 999px;
  margin: 1.8rem 0 1rem;
  border: 1px solid var(--line);
}

.timeline-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.timeline-marker {
  position: absolute;
  top: -8px;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  background: var(--card);
  border: 3px solid var(--sage);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s;
  z-index: 2;
}

.timeline-marker:hover { transform: translateX(-50%) scale(1.4); }
.timeline-marker.birthday { border-color: var(--terracotta); }
.timeline-marker.christmas { border-color: #B89968; }
.timeline-marker.nye { border-color: var(--slate); }
.timeline-marker.current {
  background: var(--terracotta);
  border-color: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(184, 116, 76, 0.2);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(184, 116, 76, 0.2); }
  50%      { box-shadow: 0 0 0 8px rgba(184, 116, 76, 0.05); }
}

.timeline-marker-tooltip {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--card);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}

.timeline-marker:hover .timeline-marker-tooltip { opacity: 1; }

.progress-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
}

.progress-stat {
  text-align: center;
}

.progress-stat-num {
  font-family: 'Lora', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--sage);
  display: block;
  line-height: 1;
}

.progress-stat-label {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-weight: 700;
  margin-top: 0.3rem;
  display: block;
}

/* ============= TIME ZONE WIDGET ============= */
.tz-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid #B89968;
}

.tz-widget h3 { margin-top: 0; color: var(--ink); }

.tz-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.tz-row:last-child { border-bottom: none; }

.tz-label {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.tz-label strong { color: var(--ink); font-weight: 700; font-size: 1rem; }

.tz-time {
  font-family: 'Lora', serif;
  font-size: 1.5rem;
  color: var(--sage);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tz-diff {
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* ============= SCROLL TO TOP ============= */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--sage);
  color: var(--card);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 99;
  font-size: 1.2rem;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  background: var(--ink);
  transform: translateY(-3px);
}

/* ============= MINI MAP (per-city) ============= */
.city-map-wrap {
  position: relative;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.city-map {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

.map-link {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--card);
  color: var(--ink);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
}

.map-link:hover { background: var(--sage); color: var(--card); border-color: var(--sage); }

/* ============= ROUTE MAP (overview SVG) ============= */
.route-map-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-xs);
  margin: 1.5rem 0;
}

.route-map-wrap svg {
  width: 100%;
  height: auto;
  max-height: 520px;
  display: block;
}

.route-map-legend {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--ink);
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line-soft);
  font-weight: 500;
}

.route-map-legend span { display: inline-flex; align-items: center; gap: 0.4rem; }

.route-map-legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ============= TWO-COL HERO+MAP for itinerary city sections ============= */
.city-block { margin-bottom: 0; }

.city-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin: 1.5rem 0;
}

@media (max-width: 760px) {
  .city-grid { grid-template-columns: 1fr; }
  .city-map { height: 220px; }
}

/* ============================================================
   ░ AWARD-WINNING POLISH ░
   Reading bar, floating countdown, refined typography,
   microinteractions, signature widgets.
   ============================================================ */

/* --- selection colour --- */
::selection { background: rgba(184,116,76,0.25); color: var(--ink); }
::-moz-selection { background: rgba(184,116,76,0.25); color: var(--ink); }

/* --- focus rings (a11y) --- */
:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
button:focus-visible,
a:focus-visible { outline-offset: 4px; }

/* --- refined body type (numerals, ligatures) --- */
body {
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- subtle decorative underline under h2 --- */
.section-title-deco {
  text-align: center;
  position: relative;
  padding-bottom: 0.8rem;
  margin-bottom: 0.4rem;
}
.section-title-deco::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
  margin: 0.8rem auto 0;
}

/* --- enhanced card hover (lift + glow border) --- */
.card,
.paper-card {
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.32s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.32s ease;
}
.card:hover,
.paper-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(60, 50, 30, 0.10);
}

/* --- polaroid: tilt + lift on hover --- */
.polaroid {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.4s ease;
  will-change: transform;
}
.polaroid:hover {
  transform: translateY(-6px) rotate(-1.2deg);
  box-shadow: 0 18px 36px rgba(60, 50, 30, 0.14);
  z-index: 5;
}
.polaroid:nth-child(even):hover {
  transform: translateY(-6px) rotate(1.2deg);
}

/* --- buttons: refined gradient on primary --- */
.btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.2s ease;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.btn:hover::after { opacity: 1; }

/* ============= READING PROGRESS BAR (top of page) ============= */
.read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
  z-index: 9999;
  transition: width 0.08s linear;
  box-shadow: 0 0 8px rgba(184, 116, 76, 0.35);
}

/* ============= FLOATING DAYS-TO-GO BADGE (bottom-left) ============= */
.floating-cd {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: linear-gradient(135deg, var(--card) 0%, #FFF8F0 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terracotta);
  border-radius: 12px;
  padding: 0.6rem 0.9rem 0.65rem;
  box-shadow: 0 8px 24px rgba(60, 50, 30, 0.12);
  font-family: 'Inter', sans-serif;
  z-index: 99;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
}
.floating-cd.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.floating-cd:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(60, 50, 30, 0.16);
  color: var(--ink);
}
.floating-cd .fcd-emoji { font-size: 1.4rem; line-height: 1; }
.floating-cd .fcd-num {
  font-family: 'Lora', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--terracotta);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.floating-cd .fcd-lbl {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  color: var(--ink-soft);
  font-weight: 700;
  margin-top: 0.15rem;
  display: block;
}
@media (max-width: 600px) {
  .floating-cd { padding: 0.5rem 0.7rem 0.55rem; }
  .floating-cd .fcd-num { font-size: 1.3rem; }
}

/* ============= COUNT-UP ANIMATION (stats) ============= */
.stat-num.counting { transition: none; }
.stat-num.counted {
  animation: countPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes countPop {
  0%   { transform: scale(0.85); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============= TODAY'S PREP TIP ============= */
.prep-tip {
  background: linear-gradient(135deg, #F0F5F1 0%, #FFFFFF 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.5rem 1.8rem;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
}
.prep-tip .prep-emoji {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.prep-tip .prep-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14rem;
  color: var(--sage);
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.prep-tip .prep-title {
  font-family: 'Lora', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.prep-tip .prep-body {
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
}

/* ============= ANTICIPATION METER ============= */
.anticip-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-xs);
  border-top: 3px solid var(--terracotta);
}
.anticip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.anticip-row {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-soft);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.anticip-row:hover { border-color: var(--terracotta); transform: translateY(-2px); }
.anticip-city {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}
.anticip-city .avg-score {
  font-family: 'Caveat', cursive;
  color: var(--terracotta);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}
.anticip-stars {
  display: flex;
  gap: 0.15rem;
  font-size: 1.2rem;
  cursor: pointer;
  user-select: none;
}
.anticip-stars span {
  color: #E0DCD2;
  transition: color 0.15s ease, transform 0.15s ease;
}
.anticip-stars span.lit { color: var(--terracotta); }
.anticip-stars:hover span:not(.lit) { color: rgba(184,116,76,0.35); }
.anticip-stars span:hover { transform: scale(1.2); }
.anticip-who {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  color: var(--ink-faint);
  font-weight: 700;
  margin-top: 0.35rem;
}

/* tabs for switching whose ratings */
.anticip-tabs {
  display: inline-flex;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem;
  margin-top: 0.4rem;
}
.anticip-tab {
  background: transparent;
  border: 0;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.18s ease;
  font-family: inherit;
}
.anticip-tab.active {
  background: var(--card);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* ============= FADE-IN refined easing ============= */
.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Stagger nested grid children for a cascading feel */
.fade-in.visible > * { animation: cascadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fade-in.visible > *:nth-child(2) { animation-delay: 0.08s; }
.fade-in.visible > *:nth-child(3) { animation-delay: 0.16s; }
.fade-in.visible > *:nth-child(4) { animation-delay: 0.24s; }
.fade-in.visible > *:nth-child(5) { animation-delay: 0.32s; }
.fade-in.visible > *:nth-child(6) { animation-delay: 0.40s; }
@keyframes cascadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* respect reduced motion across all polish */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1 !important; transform: none !important; }
}

/* ============= FOOTER REFINEMENT ============= */
footer {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  background: linear-gradient(180deg, transparent 0%, var(--bg-soft) 100%);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
footer::before {
  content: '♡';
  display: block;
  font-size: 1.3rem;
  color: var(--terracotta);
  margin-bottom: 0.6rem;
  opacity: 0.6;
}
footer h3 {
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}
footer p {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0.2rem 0;
}

/* hide floating cd on print */
@media print {
  .read-progress, .floating-cd, .scroll-top, .print-btn { display: none !important; }
}

/* ============= BOOKED ACCOMMODATION CARD ============= */
.booked-card {
  background: linear-gradient(135deg, #F0F7F1 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-left: 5px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  margin: 1.5rem 0;
  position: relative;
}
.booked-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.booked-emoji { font-size: 2.4rem; line-height: 1; }
.booked-badge {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12rem;
  text-transform: uppercase;
}
.booked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  margin: 0.5rem 0 1rem;
}
.booked-cell {
  text-align: left;
}
.booked-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12rem;
  color: var(--ink-soft);
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.booked-value {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.2;
}
.booked-sub {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 0.25rem;
}
.booked-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.booked-btn {
  flex: 1 1 auto;
  text-align: center;
  padding: 0.65rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s ease;
  min-width: 200px;
}
.booked-btn:hover {
  background: var(--bg-soft);
  border-color: var(--sage);
  color: var(--ink);
  transform: translateY(-1px);
}
.booked-btn-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.booked-btn-primary:hover {
  background: #4d6a5b;
  color: #fff;
}

/* Booked badge on the homepage "Book NOW" tier */
.booking-tier li.booked-li {
  opacity: 0.85;
}
.booking-tier .booked-tag {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.4rem;
  vertical-align: middle;
}

/* Bookings progress pill on homepage — clickable link to tracker */
.bookings-progress-pill {
  display: inline-block;
  background: var(--sage-tint);
  color: #2c4438;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  border: 1px solid var(--sage);
  text-decoration: none;
  transition: all 0.18s ease;
}
.bookings-progress-pill:hover {
  background: var(--sage);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(94, 123, 109, 0.3);
}

/* ============================================================
   ░ BOOKINGS TRACKER ░
   ============================================================ */
.bookings-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.bsum-stats {
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.bsum-stat strong {
  color: var(--ink);
  font-family: 'Lora', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-right: 0.2rem;
}
.bsum-dot { color: var(--ink-faint); }

.booking-form-wrap { margin-bottom: 1.2rem; }

.bookings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}
.booking-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.booking-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.booking-card.status-past {
  opacity: 0.7;
  border-left-color: var(--ink-faint);
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--card) 100%);
}
.booking-card.status-active {
  border-left-color: var(--terracotta);
  background: linear-gradient(135deg, rgba(184, 116, 76, 0.06) 0%, var(--card) 100%);
}
.booking-card.status-active::before {
  content: '';
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  width: 10px; height: 10px;
  background: var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(184, 116, 76, 0.5);
  animation: pulseLive 1.8s ease-in-out infinite;
}
@keyframes pulseLive {
  0%, 100% { box-shadow: 0 0 0 0    rgba(184, 116, 76, 0.5); }
  50%      { box-shadow: 0 0 0 8px  rgba(184, 116, 76, 0); }
}

.booking-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.booking-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
  border: 1px solid;
}
.booking-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
}
.booking-status-pill.status-upcoming { background: var(--sage-tint); color: #2c4438; }
.booking-status-pill.status-active   { background: var(--terracotta-tint); color: #8a5234; }
.booking-status-pill.status-past     { background: var(--bg-soft); color: var(--ink-faint); }

.booking-name {
  font-family: 'Lora', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}
.booking-city {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.booking-date {
  font-size: 0.86rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.booking-conf {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 0.3rem;
}
.booking-conf code {
  background: var(--bg-soft);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  color: var(--ink);
}
.booking-notes {
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line-soft);
  line-height: 1.5;
}
.booking-actions {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.booking-btn-link {
  flex: 0 1 auto;
  padding: 0.42rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s;
}
.booking-btn-link:hover {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--sage);
}
.booking-btn-link.booking-primary {
  background: var(--sage);
  color: #fff;
  border-color: var(--sage);
}
.booking-btn-link.booking-primary:hover {
  background: #4d6a5b;
  color: #fff;
}
.booking-btn-edit, .booking-btn-del {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.55rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-left: auto;
  transition: all 0.15s;
}
.booking-btn-edit:hover { background: var(--bg-soft); color: var(--ink); }
.booking-btn-del:hover  { background: rgba(196, 74, 74, 0.1); color: #C44A4A; border-color: #C44A4A; }
.booking-btn-edit { margin-left: 0; }

.booking-empty {
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  color: var(--ink-faint);
  font-family: 'Lora', serif;
  font-style: italic;
}

@media (max-width: 600px) {
  .bookings-summary { padding: 0.7rem 0.9rem; }
  .booking-card { padding: 1rem 1.05rem 0.9rem; }
  .booking-actions { gap: 0.35rem; }
  .booking-btn-link { padding: 0.5rem 0.65rem; font-size: 0.82rem; }
}

/* ============================================================
   ░ MOBILE OPTIMIZATIONS ░
   Comprehensive pass for trip-day usage on phones.
   ============================================================ */

/* Prevent iOS auto-zoom on input focus (16px+ font required) */
input[type="text"],
input[type="number"],
input[type="date"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="search"],
select,
textarea {
  font-size: 16px;
  -webkit-appearance: none;
  appearance: none;
  background-image: none;
}
select {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem !important;
}

/* Touch target minimum — mobile only, so desktop UI stays compact */
@media (hover: none) and (pointer: coarse) {
  .btn,
  .route-btn,
  .quick-btn,
  .anticip-tab,
  .booked-btn,
  .check-price,
  .maps-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  /* Larger tap area for inline rating stars */
  .anticip-stars span { padding: 0.2rem 0.3rem; }
}

/* ============= 768px breakpoint (tablet → mobile) ============= */
@media (max-width: 768px) {
  /* Nav: tighter spacing, smaller text, wrap */
  .nav-links { gap: 0.1rem; justify-content: center; width: 100%; }
  .nav-links a { padding: 0.4rem 0.65rem; font-size: 0.8rem; min-height: 36px; }

  /* Hero: tighter padding, smaller countdown */
  .hero { padding: 2.5rem 1rem 1.5rem; }
  .hero h1 { font-size: clamp(1.9rem, 7vw, 2.6rem); margin-bottom: 0.6rem; }
  .hero-sub { font-size: 1rem; margin-bottom: 1.5rem; }
  .countdown-wrap { padding: 1.2rem 1rem; margin-bottom: 1rem; }
  .countdown { gap: 0.6rem; }
  .countdown-box { min-width: 48px; }
  .countdown-number { font-size: 1.55rem; }
  .countdown-label { font-size: 0.68rem; letter-spacing: 0.08rem; }

  /* Sections: less padding */
  section { padding: 1.5rem 0; }
  section:first-of-type { padding-top: 1.75rem; }

  /* Cards: less padding */
  .card, .paper-card { padding: 1.25rem; }

  /* Tables: ensure smooth scroll */
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
  .tbl th, .tbl td { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
}

/* ============= 600px breakpoint (phone) ============= */
@media (max-width: 600px) {
  body { font-size: 15.5px; }

  /* Hero countdown — 2x2 grid instead of 4 across */
  .countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
  .countdown-box { min-width: 0; }

  /* Booking tier cards: stack head + when vertically */
  .booking-tier { padding: 1.1rem 1.2rem; }
  .booking-tier-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-bottom: 0.5rem;
  }
  .booking-tier-when { font-size: 0.85rem; }

  /* Tier picker (Money): comfortable taps */
  .tier-picker { gap: 0.5rem; grid-template-columns: 1fr !important; }
  .tier-btn { padding: 0.95rem 1rem; }
  .tier-btn .tier-price { font-size: 1.5rem; }

  /* Expense form: stack rows fully */
  .form-row { flex-direction: column; gap: 0.6rem; }
  .form-field { width: 100%; flex: 1 1 auto !important; min-width: 0 !important; }
  .form-field input,
  .form-field select { width: 100%; padding: 0.7rem 0.9rem; }

  /* Quick-add buttons: 2 columns grid for thumb-reach */
  .quick-add-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .quick-btn { font-size: 0.85rem; padding: 0.6rem 0.5rem; }

  /* Currency converter: stack inputs */
  .currency-input-row { flex-direction: column; gap: 0.5rem; }
  .currency-input-row input,
  .currency-input-row select { width: 100%; min-width: 0; }
  .rate-grid { grid-template-columns: 1fr 1fr; }

  /* Route map controls: tighter, stack buttons */
  .route-controls { padding: 0.75rem 0.8rem; gap: 0.6rem; }
  .route-step-text { font-size: 0.85rem; }
  .route-step-num { font-size: 0.7rem; padding: 0.18rem 0.55rem; }
  .route-buttons { gap: 0.35rem; }
  .route-btn { padding: 0.5rem 0.7rem; font-size: 0.82rem; min-height: 44px; }
  .route-btn-primary { padding: 0.55rem 0.9rem; flex: 1 1 100%; }
  #route-map { height: 380px !important; }

  /* Booking confirmed card: stack header */
  .booked-card { padding: 1.2rem 1.1rem; }
  .booked-header { flex-direction: column; align-items: flex-start; }
  .booked-emoji { font-size: 2rem; }
  .booked-grid { grid-template-columns: 1fr; padding: 0.85rem; gap: 0.75rem; }
  .booked-btn { min-width: 0; padding: 0.7rem 0.8rem; font-size: 0.88rem; }

  /* Day headers (itinerary): stack title + badge */
  .day-header { padding: 0.85rem 1rem; gap: 0.4rem; }
  .day-header h3 { font-size: 0.98rem; }
  .day-header .day-meta { font-size: 0.82rem; }

  /* Timeline: tighter rail */
  .timeline { padding-left: 1.4rem; }
  .timeline-item { margin-bottom: 1.2rem; }
  .timeline-content { padding: 0.85rem 1rem; }
  .timeline-content h4 { font-size: 0.98rem; }
  .timeline-content .detail { font-size: 0.88rem; }
  .timeline-time { font-size: 0.82rem; }

  /* Hotel cards: full-width single column */
  .hotel-card-body { padding: 1rem 1.1rem; }
  .hotel-price { font-size: 1.1rem; }
  .check-price, .maps-link { padding: 0.75rem 0.8rem; font-size: 0.88rem; }
  .pros-cons { grid-template-columns: 1fr; gap: 0.5rem; }

  /* City hero: smaller padding */
  .city-hero { padding: 1.6rem 1.2rem; }
  .city-hero h2 { font-size: 1.45rem; }
  .city-hero .city-emoji { font-size: 1.9rem; }

  /* Stats: 2-column at most */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .stat { padding: 1rem 0.6rem; }
  .stat-num { font-size: 1.55rem; }
  .stat-label { font-size: 0.7rem; letter-spacing: 0.08rem; }

  /* Anticipation meter: tighter */
  .anticip-card { padding: 1.2rem; }
  .anticip-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .anticip-stars span { font-size: 1.5rem; padding: 0 0.2rem; } /* bigger tap area */
  .anticip-tabs { width: 100%; justify-content: stretch; }
  .anticip-tab { flex: 1; }

  /* Sticky TOC (essentials): smaller chips, wrap nicely */
  .toc-sticky { top: 52px; padding: 0.5rem 0; }
  .toc-row { gap: 0.4rem; padding: 0 1rem; }
  .toc-row a { padding: 0.4rem 0.75rem; font-size: 0.84rem; min-height: 36px; }
  .sub-toc { gap: 0.35rem; padding: 0 0.5rem; }
  .sub-toc a { font-size: 0.78rem; padding: 0.35rem 0.65rem; min-height: 32px; }

  /* Section openers (essentials): less padding */
  .section-opener { padding: 1.6rem 1.2rem; }

  /* Milestones: smaller cards */
  .milestone-card { padding: 0.9rem; }

  /* Bucket list: bigger tap rows */
  .bucket-list li { padding: 0.7rem 0.6rem; min-height: 44px; display: flex; align-items: center; }

  /* Floating elements: stay out of thumb zone */
  .scroll-top { bottom: 16px; right: 16px; width: 42px; height: 42px; }
  .print-btn { bottom: 16px; right: 64px; width: 42px; height: 42px; }
  .floating-cd { bottom: 16px; left: 16px; padding: 0.45rem 0.65rem; }
  .floating-cd .fcd-num { font-size: 1.2rem; }
  .floating-cd .fcd-emoji { font-size: 1.2rem; }

  /* Nav: smaller, wrap nicely on tiny screens */
  .nav { padding: 0.6rem 0; }
  .nav-logo { font-size: 1rem; }
  .nav-logo .accent { display: none; } /* save space */
  .nav-links a { font-size: 0.78rem; padding: 0.35rem 0.55rem; }

  /* Tier comparison table: scroll-friendly */
  .tbl th:first-child, .tbl td:first-child { position: sticky; left: 0; background: var(--card); z-index: 1; }
  .tbl-wrap { max-width: 100%; overflow-x: auto; }

  /* Quick-refs row at bottom (3 callouts → 1 column) */
  .grid-3 { grid-template-columns: 1fr; }

  /* Hero photo frame: less padding */
  .hero-photo-frame { padding: 0.7rem 0.7rem 0.5rem; margin-bottom: 1.5rem; }
}

/* ============= 380px breakpoint (small phones, iPhone SE 1st gen) ============= */
@media (max-width: 380px) {
  body { font-size: 15px; }
  .nav-logo { font-size: 0.92rem; }
  .nav-links a { font-size: 0.72rem; padding: 0.3rem 0.4rem; }
  .hero h1 { font-size: 1.7rem; }
  .countdown-number { font-size: 1.3rem; }
  .quick-add-row { grid-template-columns: 1fr; }
  .booking-tier-badge { font-size: 0.7rem; }
}

/* ============= LANDSCAPE PHONE (e.g. quick check while travelling) ============= */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 1.5rem 1rem 1rem; }
  .countdown-wrap { padding: 0.8rem 1.2rem; }
  .hero h1 { font-size: 1.8rem; }
}

/* ============= PREVENT HORIZONTAL SCROLL (catch-all) =============
   overflow-x: clip is used (instead of hidden) so position:sticky still works
   on descendants like .city-nav and .toc-sticky */
html, body { overflow-x: clip; max-width: 100vw; }
@supports not (overflow-x: clip) {
  /* Fallback for older browsers — accept the sticky compromise */
  html, body { overflow-x: hidden; }
}
img, iframe, video { max-width: 100%; height: auto; }
.city-map { width: 100%; }

/* ============= MAPS LINKS (hotels + restaurants) ============= */
.maps-link {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--sage);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sage);
  text-decoration: none;
  transition: all 0.15s ease;
  text-align: center;
}
.maps-link:hover {
  background: var(--sage-tint);
  color: #2c4438;
  border-color: var(--sage);
}
.maps-link-inline {
  display: inline-block;
  margin-left: 0.25rem;
  text-decoration: none;
  font-size: 0.95rem;
  filter: saturate(0.85);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.maps-link-inline:hover { transform: scale(1.2); filter: saturate(1.2); }

/* ============= ITINERARY: today highlight ============= */
.day-header.day-today {
  border-left-width: 6px !important;
  border-left-color: var(--terracotta) !important;
  background: linear-gradient(90deg, #FFF1E7 0%, var(--card) 60%) !important;
  position: relative;
}
.day-header.day-today::after {
  content: '↑ TODAY';
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--terracotta);
  color: #fff;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1rem;
  box-shadow: 0 4px 10px rgba(184, 116, 76, 0.35);
}

/* ============= PHONE LINKS (essentials) ============= */
.phone-link {
  color: var(--terracotta);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed rgba(184, 116, 76, 0.35);
  transition: color 0.15s, border-bottom-color 0.15s;
}
.phone-link:hover {
  color: var(--ink);
  border-bottom-color: var(--terracotta);
}
.phone-list li { margin: 0.3rem 0; }

/* ============= QUICK-ADD EXPENSE BUTTONS ============= */
.quick-add-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.quick-btn {
  flex: 0 1 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.quick-btn:hover {
  background: var(--terracotta-tint);
  border-color: var(--terracotta);
  color: #8a5234;
  transform: translateY(-1px);
}
.quick-btn:active {
  transform: translateY(0);
}
.expense-form.flash {
  animation: formFlash 0.6s ease;
}
@keyframes formFlash {
  0%, 100% { background: transparent; }
  40%      { background: rgba(184, 116, 76, 0.06); border-radius: 8px; }
}

/* ============= ROUTE MAP — CINEMATIC OVERLAY (above map during play) ============= */
.route-overlay {
  background: linear-gradient(135deg, #2C2C28 0%, #4F4F4A 100%);
  color: #FAF8F3;
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  transition: background 0.5s ease;
}
.route-overlay::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(184, 116, 76, 0.25) 0%, transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.route-overlay.playing::before { opacity: 1; }
.route-overlay-day {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16rem;
  text-transform: uppercase;
  color: rgba(250, 248, 243, 0.7);
}
.route-overlay-arrow {
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 3.4vw, 2.1rem);
  font-weight: 600;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
}
.route-overlay-mid {
  color: var(--terracotta);
  font-weight: 700;
  opacity: 0.9;
}
.route-overlay-from,
.route-overlay-to { color: #FAF8F3; }
.route-overlay.playing .route-overlay-to {
  animation: overlayPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes overlayPop {
  0%   { transform: scale(0.95); opacity: 0; }
  100% { transform: scale(1);    opacity: 1; }
}
.route-overlay-mode {
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: rgba(250, 248, 243, 0.85);
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  .route-overlay { padding: 0.9rem 1rem; }
  .route-overlay-arrow { gap: 0.5rem; font-size: 1.2rem; }
  .route-overlay-mode { font-size: 0.88rem; }
}

/* ============= ROUTE MAP — JOURNEY REPLAY CONTROLS ============= */
.route-controls {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.route-status {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--ink);
  min-height: 1.6rem;
}
.route-step-num {
  display: inline-block;
  background: var(--sage-tint);
  color: #2c4438;
  padding: 0.22rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06rem;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.route-step-text { flex: 1; min-width: 200px; color: var(--ink-soft); }
.route-step-text strong { color: var(--ink); }

.route-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.route-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 44px;
}
.route-btn:hover:not(:disabled) {
  background: var(--bg-soft);
  border-color: var(--sage);
  transform: translateY(-1px);
}
.route-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.route-btn-primary {
  background: var(--sage);
  color: var(--card);
  border-color: var(--sage);
  padding: 0.55rem 1.2rem;
}
.route-btn-primary:hover:not(:disabled) {
  background: #4d6a5b;
  color: var(--card);
  border-color: #4d6a5b;
}
.route-btn-primary.playing {
  background: var(--terracotta);
  border-color: var(--terracotta);
}
.route-btn-primary.playing:hover:not(:disabled) {
  background: #a05e3a;
  border-color: #a05e3a;
}

.route-progress {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 999px;
  overflow: hidden;
}
.route-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--sage), var(--terracotta));
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

/* Moving traveler emoji (✈ / 🚆) along the current leg */
.route-traveler { background: transparent !important; border: 0 !important; }
.rt-bubble {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--terracotta);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(184, 116, 76, 0.45), 0 0 0 4px rgba(184, 116, 76, 0.18);
  animation: rtHover 1.6s ease-in-out infinite;
}
@keyframes rtHover {
  0%, 100% { transform: translateY(0)   scale(1);    box-shadow: 0 4px 12px rgba(184, 116, 76, 0.45), 0 0 0 4px rgba(184, 116, 76, 0.18); }
  50%      { transform: translateY(-2px) scale(1.06); box-shadow: 0 6px 14px rgba(184, 116, 76, 0.55), 0 0 0 8px rgba(184, 116, 76, 0.08); }
}

/* Pin pulse when reached */
.rp-circle {
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 2px solid #fff;
}
.rp-circle.rp-day {
  width: 22px;
  height: 22px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.rp-circle.rp-pulse {
  animation: rpPulse 1.4s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}
@keyframes rpPulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0    rgba(184, 116, 76, 0.55), 0 2px 6px rgba(0,0,0,0.3); }
  40%  { transform: scale(1.4); box-shadow: 0 0 0 12px rgba(184, 116, 76, 0.0),  0 2px 6px rgba(0,0,0,0.3); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0    rgba(184, 116, 76, 0.0),  0 2px 6px rgba(0,0,0,0.3); }
}

@media (max-width: 600px) {
  .route-step-text { font-size: 0.86rem; }
  .route-btn { padding: 0.45rem 0.7rem; font-size: 0.85rem; }
}

/* ============= BOOKING TIERS (urgency-sorted) ============= */
.booking-tiers {
  display: grid;
  gap: 1.2rem;
  margin-top: 1rem;
}
.booking-tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--sage);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.booking-tier:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.booking-tier-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line-soft);
}
.booking-tier-badge {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  color: var(--ink);
}
.booking-tier-when {
  font-family: 'Lora', serif;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.booking-tier ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.booking-tier li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.booking-tier li:last-child { border-bottom: none; }
.booking-tier .what {
  font-weight: 600;
  color: var(--ink);
  display: block;
  font-size: 0.98rem;
}
.booking-tier .why {
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: block;
  margin-top: 0.2rem;
  line-height: 1.55;
}

/* Tier accents */
.booking-tier.tier-now {
  border-left-color: #C44A4A;
  background: linear-gradient(90deg, rgba(196, 74, 74, 0.06) 0%, var(--card) 35%);
}
.booking-tier.tier-now .booking-tier-badge { color: #A03939; }
.booking-tier.tier-soon { border-left-color: var(--terracotta); }
.booking-tier.tier-soon .booking-tier-badge { color: var(--terracotta); }
.booking-tier.tier-later { border-left-color: var(--gold); }
.booking-tier.tier-later .booking-tier-badge { color: #806530; }
.booking-tier.tier-closer { border-left-color: var(--sage); }
.booking-tier.tier-closer .booking-tier-badge { color: #2c4438; }


