/* ============================================================================
   ChinaTravelSky.com — Airial-Inspired Luxury Proposal & Conversion System
   Color Palette: Warm Cream (#FFFBFA) · Royal Navy (#13233E) · Champagne Gold (#C89D54) · WhatsApp Emerald (#10B981)
   ============================================================================ */

:root {
  --bg-cream: #FFFBFA;
  --bg-soft: #F6F0EC;
  --bg-card: #FFFFFF;
  --navy-950: #0B1528;
  --navy-900: #13233E;
  --navy-800: #1E345B;
  --gold-600: #B5873A;
  --gold-500: #C89D54;
  --gold-400: #DFB872;
  --gold-100: #FBF5E9;
  --emerald-600: #059669;
  --emerald-500: #10B981;
  --text-main: #13233E;
  --text-secondary: #5A6578;
  --text-muted: #8792A3;
  --border-subtle: rgba(19, 35, 62, 0.08);
  --border-strong: rgba(19, 35, 62, 0.16);
  --shadow-card: 0 10px 30px -5px rgba(19, 35, 62, 0.07), 0 4px 12px -2px rgba(19, 35, 62, 0.04);
  --shadow-float: 0 24px 54px -12px rgba(19, 35, 62, 0.18), 0 8px 20px -4px rgba(19, 35, 62, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  background-color: var(--bg-cream);
  color: var(--text-main);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-gutter: stable;
}

section[id],
div[id] {
  scroll-margin-top: 90px;
}

.font-serif-editorial {
  font-family: 'Playfair Display', Georgia, serif;
}

/* ---- Ambient Hero Top Gradient (Airial Full-Bleed Technique) ---- */
body {
  background-color: var(--bg-cream);
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1050px;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%, rgba(200, 157, 84, 0.13) 0%, rgba(19, 35, 62, 0.04) 55%, transparent 100%),
    linear-gradient(180deg, #FBF6F1 0%, var(--bg-cream) 100%);
  z-index: -1;
  pointer-events: none;
}

/* ---- Top Navigation Pill (Airial .topnav.scrolled pattern) ---- */
.topnav-wrapper {
  position: sticky;
  top: 14px;
  z-index: 40;
  padding: 0 16px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.topnav-bar {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 251, 250, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(19, 35, 62, 0.08);
  box-shadow: 0 4px 18px rgba(19, 35, 62, 0.04);
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.3s ease,
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

@media (max-width: 640px) {
  .topnav-wrapper {
    padding: 0 8px;
    top: 8px;
  }
  .topnav-bar {
    padding: 6px 10px;
    gap: 8px;
  }
  /* On mobile phones, refine brand logo subtitle to prevent layout pressure */
  .topnav-bar a[aria-label="ChinaTravelSky Home"] span[class*="tracking-[0.22em]"] {
    letter-spacing: 0.10em;
    font-size: 7.5px;
  }
  /* Mobile language selector compact styling */
  #global-lang-select {
    max-width: 110px;
    font-size: 11px;
    padding-left: 1.45rem;
    padding-right: 1.2rem;
    text-overflow: ellipsis;
  }
}

@media (max-width: 375px) {
  /* On very narrow phones (<= 375px), hide the subtitle to guarantee zero overflow */
  .topnav-bar a[aria-label="ChinaTravelSky Home"] .mt-1 {
    display: none;
  }
}

.topnav-bar.scrolled {
  padding: 8px 18px;
  background: rgba(255, 251, 250, 0.96);
  box-shadow: 0 14px 34px rgba(19, 35, 62, 0.10), 0 4px 12px rgba(19, 35, 62, 0.05);
  border-color: rgba(19, 35, 62, 0.12);
}

/* ---- Top Navigation Menu Capsule & Links ---- */
.nav-menu-dock {
  align-items: center;
  gap: 2px;
  background: rgba(245, 239, 234, 0.88);
  padding: 3px 5px;
  border-radius: 9999px;
  border: 1px solid rgba(19, 35, 62, 0.08);
  box-shadow: inset 0 1px 2px rgba(19, 35, 62, 0.03);
}

/* Desktop dock MUST be hidden on mobile/tablet viewports below desktop breakpoint */
.nav-menu-dock.hidden {
  display: none !important;
}

@media (min-width: 1280px) {
  .nav-menu-dock.xl\:flex {
    display: flex !important;
  }
}

@media (min-width: 1024px) {
  .nav-menu-dock.lg\:flex {
    display: flex !important;
  }
}

.nav-menu-link {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #4A5568;
  white-space: nowrap;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-menu-link:hover {
  color: #13233E;
  background: #FFFFFF;
  box-shadow: 0 2px 8px rgba(19, 35, 62, 0.07);
}

/* ---- Mobile Navigation Drawer & Hamburger Trigger ---- */
.mobile-nav-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9999px;
  background: #F5EFEA;
  border: 1px solid rgba(19, 35, 62, 0.12);
  color: #13233E;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.mobile-nav-toggle-btn:hover,
.mobile-nav-toggle-btn:active {
  background: #FFFFFF;
  border-color: #C89D54;
  color: #B5873A;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(200, 157, 84, 0.20);
}

@media (min-width: 1280px) {
  .mobile-nav-toggle-btn {
    display: none !important;
  }
  #mobile-nav-drawer {
    display: none !important;
  }
}

#mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-nav-drawer.active {
  opacity: 1;
  pointer-events: auto;
}

#mobile-nav-drawer .drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 19, 34, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#mobile-nav-drawer .drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  max-width: 440px;
  margin: 10px auto;
  padding: 0 10px;
  transform: translateY(-16px) scale(0.97);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-nav-drawer.active .drawer-panel {
  transform: translateY(0) scale(1);
}

.mobile-nav-card {
  background: #FFFBF7;
  border-radius: 28px;
  border: 1px solid rgba(19, 35, 62, 0.10);
  box-shadow: 0 24px 60px rgba(9, 19, 34, 0.28), 0 4px 16px rgba(9, 19, 34, 0.08);
  padding: 16px 14px;
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.18s ease;
  background: transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link:active {
  background: #F5EFEA;
  transform: translateX(2px);
}

.mobile-nav-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #FFFFFF;
  border: 1px solid rgba(19, 35, 62, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(19, 35, 62, 0.04);
}

/* ---- Airial Hero Constellation Floating Animations ---- */
@keyframes constellation-reveal {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes drift-slow-a {
  0%, 100% { transform: translateY(0px) rotate(-0.5deg); }
  50%      { transform: translateY(-9px) rotate(0.3deg); }
}

@keyframes drift-slow-b {
  0%, 100% { transform: translateY(0px) rotate(0.4deg); }
  50%      { transform: translateY(-7px) rotate(-0.3deg); }
}

@keyframes centerpiece-float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-5px); }
}

.anim-centerpiece {
  animation: constellation-reveal 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both,
             centerpiece-float 9s ease-in-out 0.9s infinite;
}

.anim-float-left {
  animation: constellation-reveal 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.28s both,
             drift-slow-a 7.5s ease-in-out 1.1s infinite;
}

.anim-float-right {
  animation: constellation-reveal 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) 0.42s both,
             drift-slow-b 8.5s ease-in-out 1.2s infinite;
}

/* ---- Proposal & Bento Cards ---- */
.proposal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s ease;
}

.proposal-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-float);
  border-color: rgba(200, 157, 84, 0.45);
}

/* ---- Airial Micro-Activity Card inside Day-by-Day Plan ---- */
.micro-event-card {
  border: 1px solid rgba(19, 35, 62, 0.08);
  border-radius: 16px;
  background: #FFFFFF;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.micro-event-card:hover {
  border-color: rgba(200, 157, 84, 0.5);
  box-shadow: 0 6px 18px rgba(19, 35, 62, 0.06);
}

.micro-status-bar {
  background: linear-gradient(90deg, #F5EFE6 0%, #FAF6F0 100%);
  color: #7A5822;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid rgba(200, 157, 84, 0.18);
}

/* ---- Interactive Quote Builder Pills ---- */
.choice-pill {
  cursor: pointer;
  user-select: none;
  transition: all 0.18s ease;
  border: 1.5px solid rgba(19, 35, 62, 0.12);
  background: #FFFFFF;
}

.choice-pill:hover {
  border-color: var(--gold-500);
  background: #FFFDF9;
}

.choice-pill.active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(19, 35, 62, 0.16);
}

.city-card-select {
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  border: 2px solid rgba(19, 35, 62, 0.09);
}

.city-card-select:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
}

.city-card-select.active {
  border-color: var(--emerald-500);
  background: #F0FDF4;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.14);
}

/* ---- Custom Scrollbar for Itinerary Drawer ---- */
.custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scroll::-webkit-scrollbar-track {
  background: #F5EFEA;
}

.custom-scroll::-webkit-scrollbar-thumb {
  background: #C7B9AD;
  border-radius: 999px;
}

/* ---- WhatsApp Pulse Animation ---- */
@keyframes pulse-emerald {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.wa-pulse {
  animation: pulse-emerald 2.4s infinite;
}

/* ---- Luxury Custom Quote Gold Pulse ---- */
@keyframes pulse-gold {
  0% { box-shadow: 0 10px 28px -4px rgba(19, 35, 62, 0.45), 0 0 0 0 rgba(200, 157, 84, 0.6); }
  70% { box-shadow: 0 10px 28px -4px rgba(19, 35, 62, 0.45), 0 0 0 10px rgba(200, 157, 84, 0); }
  100% { box-shadow: 0 10px 28px -4px rgba(19, 35, 62, 0.45), 0 0 0 0 rgba(200, 157, 84, 0); }
}

.gold-pulse {
  animation: pulse-gold 3s infinite;
}

/* ---- Luxury Itinerary Day Navigation Capsule ---- */
.day-nav-wrapper {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.day-nav-track::-webkit-scrollbar {
  display: none;
}

.day-nav-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.day-nav-pill {
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Regular Day Pill Active State */
.regular-day-pill.active {
  background-color: #13233E !important;
  color: #DFB872 !important;
  border-color: #C89D54 !important;
  box-shadow: 0 4px 14px rgba(19, 35, 62, 0.22) !important;
  transform: translateY(-1px) scale(1.02);
}

.regular-day-pill.active .day-dot {
  background-color: #DFB872 !important;
  opacity: 1 !important;
  box-shadow: 0 0 8px rgba(223, 184, 114, 0.7);
}

.regular-day-pill.active .day-tag {
  color: rgba(255, 255, 255, 0.95) !important;
  opacity: 1 !important;
}

/* ---- Transit Day Pill (Intercity Bullet Train Transition) ---- */
.transit-day-pill {
  background: linear-gradient(135deg, #FFFDF8 0%, #F5ECE0 100%);
  border: 1px dashed rgba(200, 157, 84, 0.65) !important;
  color: #1A283F;
  box-shadow: 0 1px 4px rgba(200, 157, 84, 0.12);
}

.transit-day-pill:hover {
  background: linear-gradient(135deg, #F8EFE0 0%, #EBDBC5 100%);
  border-color: #B5873A !important;
  color: #13233E;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 157, 84, 0.22);
}

.transit-day-pill .transit-route-badge {
  background: rgba(200, 157, 84, 0.15);
  color: #8D5E14;
  border: 1px solid rgba(200, 157, 84, 0.32);
  transition: all 0.25s ease;
}

.transit-day-pill:hover .transit-route-badge {
  background: rgba(200, 157, 84, 0.25);
  color: #72490A;
  border-color: rgba(200, 157, 84, 0.5);
}

.transit-day-pill .route-arrow {
  color: #C89D54;
  display: inline-block;
  transition: transform 0.25s ease;
}

.transit-day-pill:hover .route-arrow {
  transform: translateX(2px);
  color: #9E6E1D;
}

/* Active Transit Day Pill (Scroll Spy or Clicked) */
.transit-day-pill.active {
  background: linear-gradient(135deg, #0F1D33 0%, #162B4A 45%, #1F3F6B 100%) !important;
  border: 1.5px solid #C89D54 !important;
  border-style: solid !important;
  color: #DFB872 !important;
  box-shadow: 0 4px 18px rgba(200, 157, 84, 0.38), 0 2px 8px rgba(15, 29, 51, 0.3) !important;
  transform: translateY(-1px) scale(1.03) !important;
}

.transit-day-pill.active .transit-route-badge {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #FFFFFF !important;
  border-color: rgba(223, 184, 114, 0.45) !important;
  box-shadow: inset 0 0 8px rgba(223, 184, 114, 0.2) !important;
}

.transit-day-pill.active .route-arrow {
  color: #DFB872 !important;
  text-shadow: 0 0 8px rgba(223, 184, 114, 0.6);
  animation: pulse-arrow 1.8s ease-in-out infinite;
}

.transit-day-pill.active .transit-icon {
  filter: drop-shadow(0 0 5px rgba(223, 184, 114, 0.6));
}

@keyframes pulse-arrow {
  0%, 100% { transform: translateX(0); opacity: 0.9; }
  50% { transform: translateX(2px); opacity: 1; }
}

/* ---- Progressive Accordion Spotlight for All-Days Panoramic View ---- */
.day-nav-pill .pill-expanded-text {
  display: none !important;
}

.day-nav-pill.active .pill-expanded-text {
  display: inline-flex !important;
  align-items: center;
  gap: 3px;
}

.transit-day-pill.active .route-arrow-compact,
.transit-day-pill.active .dest-compact {
  display: none !important;
}

/* ---- 14-Day Full Panoramic Single-Screen Fit ---- */
.day-nav-wrapper {
  width: 100%;
}

.day-nav-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 4px;
}

.day-nav-pill {
  flex: 1 1 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 5px 6px;
}

.day-nav-pill.active {
  flex: 0 0 auto;
  padding: 5px 12px;
}

/* On mobile screens (< 640px), wrap cleanly into a 7-column 2-row grid */
@media (max-width: 639px) {
  .day-nav-wrapper {
    border-radius: 1.25rem !important;
    padding: 6px !important;
  }
  .day-nav-beacon {
    display: none !important;
  }
  .day-nav-track {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 4px !important;
    overflow-x: visible !important;
  }
  .day-nav-pill {
    padding: 6px 2px !important;
    font-size: 11px !important;
  }
  .day-nav-pill .pill-expanded-text {
    display: none !important;
  }
}

/* On desktop (>= 640px), smooth single-row panoramic bar */
@media (min-width: 640px) {
  .day-nav-track {
    overflow-x: visible !important;
  }
}



