/* ============================================================
   China Trip 2026 — Motion Design Layer (v4.0)
   Loaded AFTER style.css to enhance/override.
   Goal: cinematic, motion-driven, modern editorial feel.
   ============================================================ */

:root {
  --beijing:   #c1543e;     /* terracotta — Beijing red */
  --xian:      #c8a96e;     /* gold — Xi'an dynasty */
  --shanghai:  #4a7c5e;     /* jade — Shanghai */
  --transit:   #2c5282;     /* deep blue — flights */
  --ink-soft:  #2a2620;
  --paper-2:   #fafaf3;
  --line:      rgba(26,24,20,.08);
}

/* ── Smooth scroll polish ── */
html { scroll-padding-top: 64px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   1. JOURNEY RAIL — sticky left timeline (desktop only)
   ============================================================ */
.journey-rail {
  display: none;
}

@media (min-width: 1200px) {
  .journey-rail {
    display: flex;
    position: fixed;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 80;
    flex-direction: column;
    gap: 9px;
    padding: 12px 8px;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 30px rgba(26,24,20,.08);
  }
  .rail-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(26,24,20,.16);
    cursor: pointer;
    transition: transform .25s, background .25s, width .25s, height .25s;
    position: relative;
    border: none;
    padding: 0;
  }
  .rail-dot:hover { transform: scale(1.4); }
  .rail-dot[data-city="beijing"]  { background: rgba(193,84,62,.30); }
  .rail-dot[data-city="xian"]     { background: rgba(200,169,110,.45); }
  .rail-dot[data-city="shanghai"] { background: rgba(74,124,94,.35); }
  .rail-dot[data-city="transit"]  { background: rgba(44,82,130,.30); }
  .rail-dot.active {
    width: 9px; height: 9px;
    transform: scale(1.8);
    background: var(--ink) !important;
    box-shadow: 0 0 0 4px rgba(26,24,20,.08);
  }
  .rail-dot::after {
    content: attr(data-label);
    position: absolute;
    left: 24px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    background: var(--ink);
    color: var(--paper);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-family: var(--ff-ui);
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: .03em;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .rail-dot:hover::after,
  .rail-dot.active::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
  }
}

/* ============================================================
   2. PROGRESS BAR — top of viewport, scroll progress
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  z-index: 250;
  pointer-events: none;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--beijing), var(--xian), var(--shanghai));
  width: 0%;
  transition: width .12s linear;
  box-shadow: 0 0 12px rgba(200,169,110,.5);
}

/* ============================================================
   3. ENHANCED DAY NAV — color-coded, with progress
   ============================================================ */
.day-nav {
  height: 60px;
  background: rgba(246,240,231,.92);
}
.day-nav__btn {
  border-bottom: 2px solid transparent;
  position: relative;
  padding: .35rem .75rem;
}
.day-nav__btn[data-day="1"],
.day-nav__btn[data-day="14"] {
  border-color: rgba(44,82,130,.25);
}
.day-nav__btn[data-day="2"],
.day-nav__btn[data-day="3"],
.day-nav__btn[data-day="4"],
.day-nav__btn[data-day="5"] {
  border-color: rgba(193,84,62,.25);
}
.day-nav__btn[data-day="6"],
.day-nav__btn[data-day="7"],
.day-nav__btn[data-day="8"],
.day-nav__btn[data-day="9"] {
  border-color: rgba(200,169,110,.4);
}
.day-nav__btn[data-day="10"],
.day-nav__btn[data-day="11"],
.day-nav__btn[data-day="12"],
.day-nav__btn[data-day="13"] {
  border-color: rgba(74,124,94,.30);
}
.day-nav__btn.active {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26,24,20,.18);
}
.day-nav__btn.active .nav-num {
  color: var(--gold-light);
}

/* ============================================================
   4. HERO — refined with parallax + animated route map
   ============================================================ */
.site-header {
  height: 100vh;
  min-height: 580px;
  background: linear-gradient(135deg, #0f0d0a 0%, #1a1814 60%, #2a2620 100%);
}
.site-header__bg {
  opacity: .42;
  filter: contrast(1.05) saturate(.85);
  animation: kenburns 28s ease-in-out infinite alternate;
}
.site-header__overlay {
  background:
    radial-gradient(ellipse at center, rgba(0,0,0,0) 0%, rgba(0,0,0,.4) 70%, rgba(0,0,0,.7) 100%),
    linear-gradient(to bottom, rgba(26,24,20,.2) 0%, rgba(26,24,20,.55) 100%);
}
.site-header__content {
  max-width: 920px;
  animation: heroRise 1.2s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes heroRise {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.site-header__zh {
  letter-spacing: .35em;
  font-size: clamp(.85rem, 1.6vw, 1.05rem);
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: .85;
}
.site-header__title {
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: .96;
  margin: .8rem 0 1.4rem;
  background: linear-gradient(180deg, #fff 0%, #e3c99a 130%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.site-header__sub {
  letter-spacing: .04em;
  font-size: clamp(.85rem, 1.6vw, 1.02rem);
}
.site-header__sub strong {
  color: var(--gold-light);
  font-weight: 600;
}

/* Hero stat row (under subtitle) */
.hero-stats {
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1.8rem 0 1rem;
  padding: 1rem 1.4rem;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.hero-stat__num {
  font-family: var(--ff-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
}
.hero-stat__label {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  font-weight: 500;
}

/* ============================================================
   5. ROUTE MAP — animated SVG path
   ============================================================ */
.route-map {
  background: linear-gradient(180deg, #0f0d0a 0%, #1a1814 100%);
  padding: 4rem 1rem 3rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.06);
}
.route-map__inner {
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.route-map__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--gold-light);
  text-align: center;
  margin-bottom: .3rem;
  letter-spacing: -.01em;
}
.route-map__subtitle {
  text-align: center;
  color: rgba(246,240,231,.55);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.route-map svg {
  width: 100%;
  height: auto;
  display: block;
}
.route-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 6px rgba(200,169,110,.4));
}
.route-path--solid {
  stroke-dasharray: none;
  stroke: var(--gold-light);
}
.route-path.animate {
  animation: routeFlow 30s linear infinite;
}
@keyframes routeFlow {
  to { stroke-dashoffset: -200; }
}
.route-marker {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2;
  cursor: pointer;
  transition: r .25s, fill .25s;
}
.route-marker:hover { fill: var(--gold-light); }
.route-marker--major { fill: var(--terracotta); stroke: var(--paper); stroke-width: 2.5; }
.route-marker--xian   { fill: var(--gold); }
.route-marker--shanghai { fill: var(--jade); }
.route-marker--dubai  { fill: #2c5282; }
.route-marker--cairo  { fill: #6b46c1; }
.route-label {
  fill: var(--paper);
  font-family: var(--ff-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  pointer-events: none;
}
.route-label--zh {
  fill: var(--gold-light);
  font-family: var(--ff-zh);
  font-size: 11px;
  opacity: .8;
}
.route-plane {
  fill: var(--gold-light);
}

/* ============================================================
   6. CONCURRENT EVENTS — "happening while you're there"
   ============================================================ */
.events-section {
  background: var(--paper);
  padding: 4rem 1rem;
  border-bottom: 1px solid var(--line);
}
.events-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}
.events-section__eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .4rem;
  text-align: center;
}
.events-section__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-align: center;
  margin-bottom: .4rem;
  color: var(--ink);
  letter-spacing: -.01em;
}
.events-section__sub {
  text-align: center;
  color: #5a5550;
  font-size: .92rem;
  margin-bottom: 2.2rem;
}
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.1rem;
}
.event-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  box-shadow: 0 2px 12px rgba(26,24,20,.06);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(26,24,20,.10);
}
.event-card__band {
  height: 4px;
  background: var(--gold);
}
.event-card[data-tag="festival"]  .event-card__band { background: var(--beijing); }
.event-card[data-tag="sport"]     .event-card__band { background: var(--shanghai); }
.event-card[data-tag="show"]      .event-card__band { background: var(--xian); }
.event-card[data-tag="exhibit"]   .event-card__band { background: #6b46c1; }
.event-card[data-tag="seasonal"]  .event-card__band { background: var(--terracotta); }
.event-card__body {
  padding: 1.1rem 1.2rem 1.3rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.event-card__date {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .25rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.event-card__date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
  box-shadow: 0 0 0 4px rgba(193,84,62,.15);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(193,84,62,.15); }
  50%      { box-shadow: 0 0 0 6px rgba(193,84,62,.25); }
}
.event-card__title {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .2rem;
  line-height: 1.25;
}
.event-card__location {
  font-size: .78rem;
  color: var(--jade);
  font-weight: 500;
  margin-bottom: .55rem;
}
.event-card__desc {
  font-size: .85rem;
  color: #5a5550;
  line-height: 1.55;
  margin-bottom: .8rem;
  flex: 1;
}
.event-card__meta {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: auto;
}
.event-tag {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--paper-dark);
  color: var(--ink);
  padding: .22rem .55rem;
  border-radius: 999px;
}
.event-tag--hot {
  background: var(--terracotta);
  color: var(--white);
}

/* ============================================================
   7. CITIES OVERVIEW — 3 anchor cards before days
   ============================================================ */
.cities-section {
  padding: 4rem 1rem 3rem;
  background: var(--paper-2);
}
.cities-section__inner {
  max-width: 1180px;
  margin: 0 auto;
}
.cities-section__title {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  text-align: center;
  color: var(--ink);
  margin-bottom: .3rem;
}
.cities-section__sub {
  text-align: center;
  color: #5a5550;
  font-size: .9rem;
  margin-bottom: 2.4rem;
  letter-spacing: .02em;
}
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}
.city-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 380px;
  cursor: pointer;
  transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
  box-shadow: 0 4px 20px rgba(26,24,20,.08);
}
.city-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(26,24,20,.18);
}
.city-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 1s cubic-bezier(.2,.7,.2,1);
}
.city-card:hover::before { transform: scale(1.08); }
.city-card[data-city="beijing"]::before  { background-image: url('../images/forbidden-city-1.jpg'), url('../images/forbidden-city.jpg'); }
.city-card[data-city="xian"]::before     { background-image: url('../images/xian-terracotta-1.jpg'), url('../images/xian-terracotta.jpg'); }
.city-card[data-city="shanghai"]::before { background-image: url('../images/the-bund-shanghai-1.jpg'), url('../images/the-bund-shanghai.jpg'); }
.city-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,24,20,.05) 0%, rgba(26,24,20,.55) 60%, rgba(26,24,20,.92) 100%);
}
.city-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 1.6rem;
  color: var(--white);
  z-index: 2;
}
.city-card__zh {
  font-family: var(--ff-zh);
  font-size: .75rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  opacity: .8;
  margin-bottom: .25rem;
}
.city-card__name {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
  margin-bottom: .35rem;
  letter-spacing: -.01em;
}
.city-card__dates {
  font-size: .72rem;
  opacity: .8;
  margin-bottom: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 500;
}
.city-card__highlights {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .9rem;
}
.city-pill {
  font-size: .68rem;
  letter-spacing: .04em;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: .25rem .65rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  font-weight: 500;
}
.city-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-light);
  transition: gap .25s;
}
.city-card:hover .city-card__cta { gap: .8rem; }
.city-card__cta::after { content: '→'; transition: transform .25s; }
.city-card:hover .city-card__cta::after { transform: translateX(2px); }

/* ============================================================
   8. DAY SECTION ENHANCEMENTS
   ============================================================ */
.day-section {
  position: relative;
  border-bottom: none;
  padding: 0 0 3rem;
}
.day-section + .day-section {
  border-top: 1px solid var(--line);
}
.day-section.in-view .stamp { animation: stampIn .6s cubic-bezier(.2,.7,.2,1) both; }
@keyframes stampIn {
  0%   { opacity: 0; transform: rotate(-12deg) scale(.6); }
  60%  { opacity: 1; transform: rotate(2deg)  scale(1.06); }
  100% { opacity: 1; transform: rotate(-2deg) scale(1); }
}

/* Bigger numerical day marker overlay */
.day-section[data-day]::before {
  content: attr(data-day);
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-family: var(--ff-display);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 600;
  color: var(--ink);
  opacity: .04;
  pointer-events: none;
  z-index: 0;
  letter-spacing: -.04em;
  line-height: 1;
}
@media (min-width: 768px) {
  .day-section[data-day]::before {
    top: 2rem;
    right: 3rem;
    font-size: clamp(6rem, 11vw, 11rem);
    opacity: .055;
  }
}

/* Color-bind day section by city */
.day-section[data-day="2"] .stamp,
.day-section[data-day="3"] .stamp,
.day-section[data-day="4"] .stamp,
.day-section[data-day="5"] .stamp { background: var(--beijing); }

.day-section[data-day="6"] .stamp,
.day-section[data-day="7"] .stamp,
.day-section[data-day="8"] .stamp,
.day-section[data-day="9"] .stamp { background: var(--xian); border-color: var(--gold-light); }

.day-section[data-day="10"] .stamp,
.day-section[data-day="11"] .stamp,
.day-section[data-day="12"] .stamp,
.day-section[data-day="13"] .stamp { background: var(--shanghai); }

.day-section[data-day="1"] .stamp,
.day-section[data-day="14"] .stamp { background: var(--transit); }

/* Tighter, more elegant day-content */
.day-content { padding: 2.2rem 1.4rem 2rem; position: relative; z-index: 1; }
@media (min-width: 768px) { .day-content { padding: 2.6rem 2.8rem 2.4rem; } }

/* Day date as elegant kicker */
.day-date {
  font-size: .7rem;
  letter-spacing: .25em;
  margin-bottom: .35rem;
  font-weight: 700;
}

.day-title {
  font-style: normal;
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-family: var(--ff-display);
  margin-bottom: 1.4rem;
}

/* ============================================================
   9. STATS STRIP — animated counters
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.stat-cell {
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.08);
  position: relative;
}
.stat-cell:last-child { border-right: none; }
@media (max-width: 600px) {
  .stat-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,.08); }
  .stat-cell:last-child { border-bottom: none; }
}
.stat-cell__num {
  font-family: var(--ff-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1;
  letter-spacing: -.01em;
  display: block;
  font-variant-numeric: tabular-nums;
}
.stat-cell__label {
  font-size: .66rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(246,240,231,.55);
  font-weight: 500;
  margin-top: .35rem;
  display: block;
}

/* ============================================================
   10. ENHANCED PHOTO STRIPS
   ============================================================ */
.photo-strip img {
  border-radius: 8px;
  width: 280px;
  height: 200px;
  object-fit: cover;
  flex: 0 0 auto;
  scroll-snap-align: start;
  cursor: zoom-in;
  transition: transform .35s ease, filter .35s;
  filter: saturate(.92);
  box-shadow: 0 4px 14px rgba(26,24,20,.10);
}
.photo-strip img:hover {
  transform: scale(1.025);
  filter: saturate(1.05);
}

/* ============================================================
   11. INFO CARD ENHANCEMENTS (bookings, hotels)
   ============================================================ */
.info-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: .9rem 1.1rem;
  transition: transform .25s, box-shadow .25s;
}
.info-card:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 20px rgba(26,24,20,.08);
}
.info-card--confirmed {
  border-left-color: var(--jade);
}
.info-card--confirmed .info-card__label {
  color: var(--jade);
}
.info-card--confirmed::before {
  content: '✓ ';
  color: var(--jade);
  font-weight: bold;
}
.info-card--alert {
  border-left-color: var(--beijing);
  background: #fff5f1;
}
.info-card--alert .info-card__label { color: var(--beijing); }

/* ============================================================
   12. BUTTONS / LINKS — refined
   ============================================================ */
.btn-print {
  background: var(--ink);
  color: var(--paper);
  border: none;
  padding: .7rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: .82rem;
  letter-spacing: .05em;
  font-weight: 500;
  transition: background .25s, transform .15s;
  box-shadow: 0 4px 14px rgba(26,24,20,.16);
}
.btn-print:hover {
  background: var(--terracotta);
  transform: translateY(-1px);
}

/* ============================================================
   13. EXTRAS SECTION — better grid
   ============================================================ */
.extras {
  background: var(--paper-2);
  padding: 4rem 1rem;
}
.extras__inner {
  max-width: 1280px;
  margin: 0 auto;
}
.extras__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.4rem;
}
.extras h2 {
  font-family: var(--ff-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
  color: var(--ink);
  position: relative;
  padding-left: .8rem;
}
.extras h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: .4em;
  bottom: .4em;
  width: 3px;
  background: var(--terracotta);
  border-radius: 2px;
}

/* ============================================================
   14. FOOTER — refined
   ============================================================ */
footer {
  background: var(--ink);
  color: rgba(246,240,231,.85);
  padding: 3rem 1.4rem;
  text-align: center;
}
footer p { margin-bottom: .6rem; font-size: .85rem; }
.footer__love {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--gold-light);
  margin-bottom: 1rem;
}
.footer__ref {
  font-size: .72rem;
  opacity: .55;
  letter-spacing: .08em;
}

/* ============================================================
   15. REVEAL ANIMATIONS — generic
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
[data-reveal][data-delay="1"] { transition-delay: .1s; }
[data-reveal][data-delay="2"] { transition-delay: .2s; }
[data-reveal][data-delay="3"] { transition-delay: .3s; }
[data-reveal][data-delay="4"] { transition-delay: .4s; }

/* ============================================================
   16. CONFETTI piece (already used in JS)
   ============================================================ */
.confetti-piece {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 9999;
}

/* ============================================================
   18. POLISH PASS v5.1 — fix density, kill redundancy, add delight
   ============================================================ */

/* Smooth anchor scroll past sticky bars */
html { scroll-padding-top: 110px; }

/* CRITICAL FIX: don't hide day sections by default — IO sometimes never fires
   on full-page renders or fast scrolls, leaving content invisible. */
.day-section {
  opacity: 1 !important;
  transform: none !important;
}
.day-section .stamp,
.day-section .day-title,
.day-section .timeline,
.day-section .stops,
.day-section .info-card,
.day-section .photo-strip,
.day-section .tip-box {
  /* preserve subtle in-view animation but keep content visible */
}
/* Soft fade-in only when in view, no hide */
.day-section.in-view .stamp { animation: stampIn .55s cubic-bezier(.2,.7,.2,1) both; }

/* Kill the giant fade-in [data-day] number — looked accidental */
.day-section[data-day]::before { display: none !important; }

/* Hero refinement — cleaner, less crowded */
.site-header__zh { letter-spacing: .35em; }
.site-header__sub:nth-of-type(2) {
  /* dates line — make it the star */
  font-family: var(--ff-display);
  font-style: italic;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  letter-spacing: .04em;
  color: var(--gold-light);
  margin-top: .4rem;
}
/* Tighter header subtitles */
.site-header__sub { margin-bottom: .28rem; }
/* Hide the duplicate hero-stats inside hero — keep stat-strip only */
.site-header__content .hero-stats { display: none !important; }
/* Hide weather widget that almost never has content */
.site-header__weather:empty { display: none; }

/* Day hero shrinks to a 16:9 cinematic banner instead of 70vh */
.day-hero {
  height: 32vh !important;
  min-height: 240px !important;
  max-height: 380px;
  border-radius: 0;
  position: relative;
}
.day-hero img {
  filter: saturate(.92) contrast(1.04);
}
.day-hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px; height: 50%;
  background: linear-gradient(to bottom, transparent 0%, var(--paper) 95%);
  pointer-events: none;
}

/* Day-split image — cap its size on desktop */
@media (min-width: 768px) {
  .day-split { grid-template-columns: 44% 56% !important; }
  .day-split__image { max-height: 480px !important; }
}
.day-split__image img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.day-split__image:hover img { transform: scale(1.05); }

/* Tighter day section spacing */
.day-section { padding: 0 0 2.2rem !important; }
.day-content { padding: 1.6rem 1.4rem 1.4rem !important; }
@media (min-width: 768px) { .day-content { padding: 2rem 2.5rem 1.8rem !important; } }

/* Section dividers */
.day-section + .day-section {
  border-top: none !important;
  position: relative;
}
.day-section + .day-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: clamp(120px, 30%, 360px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .55;
}

/* Stamp gets a subtle pulse on view */
.day-section.in-view .stamp {
  animation: stampIn .7s cubic-bezier(.2,.7,.2,1) both, stampGlow 4s 1s ease-in-out infinite;
}
@keyframes stampGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193,84,62,.0); }
  50%      { box-shadow: 0 0 0 8px rgba(193,84,62,.06); }
}

/* Timeline upgrade — visual punch */
.timeline {
  background: rgba(255,255,255,.65);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 2.4rem !important;
  backdrop-filter: blur(4px);
}
.timeline::before {
  background: linear-gradient(to bottom, var(--terracotta) 0%, var(--gold) 50%, var(--jade) 100%) !important;
  width: 2px !important;
  left: 1.4rem !important;
}
.timeline li::before {
  background: var(--paper) !important;
  border: 2px solid var(--terracotta) !important;
  box-shadow: 0 0 0 3px rgba(193,84,62,.10) !important;
  width: 10px !important; height: 10px !important;
  left: -1.05rem !important;
  transition: transform .25s, background .25s;
}
.timeline li:hover::before { transform: scale(1.3); background: var(--terracotta) !important; }
.timeline .time {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: .95rem !important;
  font-weight: 600 !important;
  display: inline-block;
  min-width: 3.4em;
  color: var(--terracotta);
}

/* Stops as elegant cards */
.stop {
  background: var(--white);
  border-radius: 10px;
  padding: .9rem 1rem;
  margin-bottom: .65rem;
  border: 1px solid var(--line);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
}
.stop:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -10px rgba(26,24,20,.18);
}
.stop__icon {
  background: linear-gradient(135deg, var(--jade-light), var(--jade)) !important;
  width: 36px !important;
  height: 36px !important;
  font-size: 1rem !important;
  box-shadow: 0 4px 10px -3px rgba(74,124,94,.45);
}

/* Photo strip — tighter, more curated */
.photo-strip {
  padding: 6px 0 12px !important;
  margin-bottom: 0 !important;
}
.photo-strip img {
  width: 240px !important;
  height: 168px !important;
  border-radius: 10px !important;
}
@media (min-width: 768px) {
  .photo-strip img { width: 260px !important; height: 180px !important; }
}
.strip-heading {
  font-family: var(--ff-display) !important;
  font-style: italic !important;
  font-size: 1rem !important;
  letter-spacing: .01em;
  color: var(--ink) !important;
  border: none !important;
  margin: 1.2rem 0 .35rem !important;
  padding-left: 0 !important;
  display: flex;
  align-items: center;
  gap: .55rem;
}
.strip-heading::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--terracotta);
  display: inline-block;
}

/* Tip box - more visual */
.tip-box {
  background: linear-gradient(135deg, #fef9ee, #fbeed5);
  border: 1px solid var(--gold);
  border-radius: 10px;
  padding: .85rem 1rem !important;
  font-size: .82rem;
  line-height: 1.55;
  position: relative;
}

/* Cities section — denser, better images */
.cities-section { padding: 3rem 1rem 2.5rem; }
.city-card { height: 320px !important; }
.city-card[data-city="beijing"]::before  {
  background-image: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)), url('../images/forbidden-city-1.jpg') !important;
}
.city-card[data-city="xian"]::before     {
  background-image: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)), url('../images/xian-terracotta-1.jpg') !important;
}
.city-card[data-city="shanghai"]::before {
  background-image: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)), url('../images/the-bund-shanghai-1.jpg') !important;
}

/* Events section refinement */
.events-section { padding: 3rem 1rem 2.5rem; }
.events-grid { gap: 1rem; }
.event-card { box-shadow: 0 4px 18px -8px rgba(26,24,20,.14); border-radius: 12px; }
.event-card__title { font-style: italic; font-size: 1.1rem; }

/* Stat strip — visible padding */
.stat-strip { padding: 0; }
.stat-cell { padding: 1.6rem 1rem; }

/* Route map — tighter */
.route-map { padding: 3rem 1rem 2rem; }

/* Day nav refinements — tighter spacing, better active state */
.day-nav__btn { padding: .35rem .65rem !important; }
.day-nav__btn .nav-num { font-size: .9rem !important; }
.day-nav__btn span:nth-child(2) { font-size: .65rem; opacity: .85; }

/* Journey rail — bigger hit targets, better tooltip */
@media (min-width: 1200px) {
  .rail-dot { width: 11px !important; height: 11px !important; }
  .rail-dot.active { width: 11px !important; height: 11px !important; transform: scale(1.7); }
  .rail-dot::after {
    background: var(--ink) !important;
    color: var(--paper) !important;
    font-weight: 600;
    font-size: 11px;
    box-shadow: 0 8px 22px -6px rgba(26,24,20,.35);
  }
}

/* Hero - keep it cinematic but no redundant stats */
.site-header__content { max-width: 760px; }

/* Day-transit (Day 1, Day 14) — looked too sparse */
.day-transit {
  max-width: 720px !important;
  background: rgba(255,255,255,.5);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 2.2rem !important;
  margin: 2.5rem auto !important;
  box-shadow: 0 6px 24px -10px rgba(26,24,20,.12);
}

/* Footer print button */
.btn-print {
  background: var(--terracotta) !important;
  color: var(--paper) !important;
}
.btn-print:hover { background: var(--ink) !important; }

/* Hover sparkle on confirmed bookings */
.info-card[class*="--confirmed"]:hover,
.info-card:hover { transform: translateX(3px) translateY(-2px); }

/* Reveal — softer y-shift */
[data-reveal] { transform: translateY(14px); }

/* Tiny bounce on the scroll arrow */
.site-header__scroll {
  animation: bounce 1.3s ease-in-out infinite alternate;
  cursor: pointer;
  font-size: 1.6rem;
}

/* ============================================================
   17. PRINT — cleaner output
   ============================================================ */
@media print {
  .day-nav, .progress-bar, .journey-rail, .visa-banner,
  .route-map, .events-section, .cities-section,
  .site-header__scroll, .btn-print {
    display: none !important;
  }
  .site-header { height: auto; min-height: 0; padding: 2rem 1rem; }
  .site-header__bg, .site-header__overlay { display: none; }
  .site-header__content { color: var(--ink); }
  .site-header__title { color: var(--ink); -webkit-text-fill-color: var(--ink); }
  .day-section { page-break-inside: avoid; padding: 1rem 0 1.5rem; }
  .photo-strip { display: none; }
  body { background: white; color: black; }
}

/* ============================================================
   19. MOBILE PASS v5.2 — bigger taps, real responsiveness
   ============================================================ */
@media (max-width: 768px) {
  /* Hide visa banner on mobile (saves vertical space, info is in checklist) */
  .visa-banner {
    font-size: .68rem;
    padding: .35rem .6rem;
    flex-wrap: wrap;
    text-align: center;
    line-height: 1.35;
  }
  .visa-banner .countdown {
    font-size: .65rem;
    padding: .1rem .45rem;
  }

  /* Day-nav: bigger taps, scroll-snap, no fade clipping */
  .day-nav {
    height: auto !important;
    padding: .35rem 0;
  }
  .day-nav__inner {
    gap: .15rem !important;
    padding: 0 .6rem !important;
    scroll-snap-type: x mandatory;
  }
  .day-nav__btn {
    min-width: 56px;
    min-height: 48px;
    padding: .35rem .55rem !important;
    scroll-snap-align: center;
  }
  .day-nav__btn .nav-num { font-size: .95rem !important; }
  .day-nav__btn span:nth-child(2) { font-size: .58rem !important; }

  /* Hero — shorter on mobile */
  .site-header {
    height: auto !important;
    min-height: 70vh !important;
    padding: 2.5rem 1rem 3rem;
  }
  .site-header__title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: .98;
  }
  .site-header__sub { font-size: .82rem !important; }
  .hero-stats {
    gap: .8rem !important;
    padding: .8rem !important;
    margin: 1.2rem 0 .5rem !important;
  }
  .hero-stat__num { font-size: 1.35rem !important; }
  .hero-stat__label { font-size: .55rem !important; letter-spacing: .12em !important; }

  /* Stat strip — 3 columns mobile */
  .stat-strip { grid-template-columns: repeat(3, 1fr) !important; }
  .stat-cell { padding: 1rem .4rem !important; border-bottom: 1px solid rgba(255,255,255,.08); border-right: 1px solid rgba(255,255,255,.08) !important; }
  .stat-cell__num { font-size: 1.4rem !important; }
  .stat-cell__label { font-size: .55rem !important; letter-spacing: .12em !important; }

  /* Route map smaller padding */
  .route-map { padding: 2rem .8rem 1.6rem !important; }
  .route-map svg { aspect-ratio: 16/9; }

  /* Cities — stack and shorter */
  .cities-section { padding: 2rem .8rem 1.5rem !important; }
  .cities-grid { gap: .9rem !important; }
  .city-card { height: 240px !important; }
  .city-card__name { font-size: 1.7rem !important; }
  .city-card__highlights { gap: .25rem !important; }
  .city-pill { font-size: .6rem !important; padding: .2rem .55rem !important; }

  /* Events — stack */
  .events-section { padding: 2rem .8rem 1.5rem !important; }
  .events-grid { grid-template-columns: 1fr !important; gap: .8rem !important; }

  /* Day sections tighter */
  .day-section { padding: 0 0 1.5rem !important; }
  .day-content { padding: 1.2rem 1rem 1rem !important; }
  .day-hero { height: 28vh !important; min-height: 200px !important; max-height: 280px !important; }
  .day-title { font-size: 1.35rem !important; }
  .day-date { font-size: .65rem !important; letter-spacing: .15em !important; }

  /* Day-split: stack on mobile */
  .day-split { grid-template-columns: 1fr !important; }
  .day-split__image { max-height: 240px !important; }

  /* Timeline tighter */
  .timeline { padding: .8rem .8rem .8rem 2rem !important; }
  .timeline li { font-size: .82rem !important; line-height: 1.45; }
  .timeline .time { font-size: .85rem !important; min-width: 3em !important; }

  /* Stops more compact */
  .stop { padding: .7rem .8rem !important; }
  .stop__icon { width: 32px !important; height: 32px !important; font-size: .85rem !important; }
  .stop__name { font-size: .85rem !important; }
  .stop__desc { font-size: .76rem !important; }
  .btn-maps { font-size: .65rem !important; padding: .2rem .55rem !important; }

  /* Tip box smaller */
  .tip-box { font-size: .76rem !important; padding: .65rem .85rem !important; }

  /* Photo strip - tighter */
  .photo-strip img { width: 200px !important; height: 140px !important; }

  /* Extras */
  .extras { padding: 2.5rem .9rem !important; }
  .extras h2 { font-size: 1.2rem !important; }
  .extras__grid { grid-template-columns: 1fr !important; gap: 1rem !important; }
  .apps-grid { grid-template-columns: repeat(auto-fill, minmax(125px, 1fr)) !important; }
  .app-tile { padding: .75rem !important; }

  /* Costs table scroll horizontally on tiny screens */
  .costs-table-wrap { overflow-x: auto; }
  .costs-table { font-size: .78rem; min-width: 520px; }

  /* Footer */
  footer { padding: 2rem 1rem !important; }
}

@media (max-width: 480px) {
  .day-nav__btn { padding: .35rem .45rem !important; min-width: 50px; }
  .day-nav__btn span:nth-child(2) { font-size: .54rem !important; }
  .hero-stats { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: .55rem !important; }
  .hero-stat:nth-child(n+4) { display: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Touch device — disable hover-only effects */
@media (hover: none) {
  .city-card:hover { transform: none; }
  .stop:hover { transform: none; }
  .info-card:hover { transform: none; }
  .photo-strip img:hover { transform: none; }
}
