/* ═══════════════════════════════════════════════════
   WanderIndia — Premium Dark Mode (2025 Redesign)
   Fonts: Inter (body) + Space Grotesk (display)
   All class names preserved — only visuals updated
   ═══════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;0,900;1,700;1,800;1,900&display=swap');

:root {
  --disclaimer-h: 44px; /* height of .wi-ai-disclaimer-bar — used to offset fixed panes */
  /* ── Core palette ── */
  --bg:           #080C14;
  --surface-1:    #0F1729;
  --surface-2:    #162038;
  --panel:        rgba(255, 255, 255, 0.04);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --glass:        rgba(15, 23, 41, 0.85);
  --line:         rgba(255, 255, 255, 0.07);
  --line-strong:  rgba(255, 255, 255, 0.13);

  /* ── Text ── */
  --text:         #F0F4FF;
  --muted:        #8896B3;
  --muted-light:  #A8B5CC;

  /* ── Brand accents ── */
  --saffron:      #FF8C00;
  --saffron-glow: rgba(255, 140, 0, 0.22);
  --saffron-dim:  rgba(255, 140, 0, 0.08);
  --cyan:         #38BDF8;
  --cyan-glow:    rgba(56, 189, 248, 0.15);
  --teal:         #0FB8A0;
  --violet:       #8B5CF6;

  /* ── Semantic ── */
  --mint:         #10D483;
  --amber:        #F59E0B;
  --rose:         #FF6B35;
  --action:       #FF8C00;
  --action-hover: #E57A00;
  --safe:         #10D483;
  --caution:      #F5A623;
  --risk:         #FF4D4D;

  /* ── Radii ── */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;

  /* ── Shadows ── */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-saffron: 0 4px 20px rgba(255,140,0,0.25);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
.app-shell { min-height: 100vh; }
.hidden { display: none !important; }

/* ── Branded login→app transition splash ───────────────────────────────── */
#wiSplashOverlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #07090f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#wiSplashOverlay.wi-splash-in {
  opacity: 1;
  pointer-events: all;
}
#wiSplashOverlay.wi-splash-out {
  opacity: 0;
  transition: opacity 0.5s ease;
}
#wiSplashOverlay img {
  width: min(380px, 72vw);
  height: auto;
  animation: wi-splash-pulse 1.6s ease-in-out infinite;
  filter: drop-shadow(0 0 24px rgba(232, 137, 10, 0.35));
}
@keyframes wi-splash-pulse {
  0%, 100% { transform: scale(1);    filter: drop-shadow(0 0 24px rgba(232,137,10,0.35)); }
  50%       { transform: scale(1.04); filter: drop-shadow(0 0 48px rgba(232,137,10,0.65)); }
}

/* ── Smooth page-entry animation (from journey.html cinematic transition) ── */
@keyframes wi-fade-in {
  from { opacity: 0; transform: scale(1.012); }
  to   { opacity: 1; transform: scale(1); }
}
.wi-page-enter {
  animation: wi-fade-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ─────────────────────────────────────
   LOGIN
   ───────────────────────────────────── */
.login-view {
  position: relative;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,140,0,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(15,184,160,0.05) 0%, transparent 60%),
    var(--bg);
}

.aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 20% 30%, rgba(255,140,0,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 75% 70%, rgba(56,189,248,0.04) 0%, transparent 60%);
  animation: aurora-drift 12s ease-in-out infinite alternate;
}

.aurora::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   rgba(255,255,255,0.012) 0 1px, transparent 1px 60px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,0.012) 0 1px, transparent 1px 60px);
}

@keyframes aurora-drift {
  from { transform: scale(1) translateY(0); opacity: 0.7; }
  to   { transform: scale(1.08) translateY(-16px); opacity: 1; }
}

.login-panel {
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  padding: 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: rgba(15, 23, 41, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
  animation: panel-rise 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes panel-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─────────────────────────────────────
   TYPOGRAPHY
   ───────────────────────────────────── */
.eyebrow {
  margin: 0 0 8px;
  color: var(--saffron);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  margin-bottom: 10px;
  font-size: clamp(2.4rem, 9vw, 4.8rem);
  line-height: 0.92;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #FFFFFF 0%, rgba(255,140,0,0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h2 { margin-bottom: 8px; font-size: clamp(1.2rem, 3vw, 1.8rem); }
h3 { margin-bottom: 0; font-size: 1.4rem; }
h4 { margin-bottom: 10px; color: var(--text); font-size: 0.95rem; }

.login-copy, .fine-print, .plan-box p { color: var(--muted); }
.login-subtitle { color: var(--text); font-size: 1rem; margin: 4px 0 12px; font-weight: 500; }
.muted-note { color: var(--muted); font-size: 0.9rem; margin-bottom: 0; }

/* ─────────────────────────────────────
   FORM CONTROLS
   ───────────────────────────────────── */
label {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--muted-light);
  font-size: 0.88rem;
  font-weight: 600;
}

input, select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  outline: none;
  padding: 0 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input::placeholder { color: rgba(136,150,179,0.5); }

input:focus, select:focus, button:focus-visible {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px var(--saffron-dim), 0 0 0 1px var(--saffron);
}

select option { color: var(--text); background: var(--surface-1); }

/* ─────────────────────────────────────
   BUTTONS
   ───────────────────────────────────── */
.primary-button {
  cursor: pointer;
  min-height: 50px;
  width: 100%;
  margin-top: 24px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid var(--saffron);
  color: #0A0A0A;
  background: linear-gradient(135deg, var(--saffron) 0%, #FFAD1A 100%);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.primary-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.2s;
}

.primary-button:hover::before { opacity: 1; }
.primary-button:hover { box-shadow: var(--shadow-saffron); transform: translateY(-1px); }
.primary-button:active { transform: translateY(0); }

.planner-cta {
  margin-top: 0;
  background: linear-gradient(135deg, var(--rose) 0%, var(--saffron) 100%);
  border-color: var(--rose);
  color: #fff;
}

.planner-cta:hover { box-shadow: 0 4px 20px rgba(255,107,53,0.35); }

.secondary-button {
  cursor: pointer;
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.secondary-button:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-dim);
}

.icon-button {
  display: grid;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  color: var(--muted);
  background: transparent;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.icon-button:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.lang-select {
  height: 36px;
  padding: 0 28px 0 10px;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23aaa'/%3E%3C/svg%3E") no-repeat right 8px center;
  background-size: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.18s, color 0.18s;
  max-width: 140px;
}
.lang-select:hover, .lang-select:focus {
  border-color: rgba(255,140,0,0.45);
  color: var(--text);
}
.lang-select option { background: #0f1624; color: #e8e0d0; }

.chip {
  cursor: pointer;
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
  font-size: 0.82rem;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: transparent;
  transition: all 0.2s ease;
}

.chip:hover { border-color: var(--saffron); color: var(--saffron); background: var(--saffron-dim); }
.chip.active { border-color: var(--saffron); background: var(--saffron-dim); color: var(--saffron); }

/* ─────────────────────────────────────
   APP SHELL
   ───────────────────────────────────── */
.app-view {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--disclaimer-h, 44px));
  overflow: hidden;
}
.wi-ai-disclaimer-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(12, 18, 28, 0.96);
  border-top: 1px solid rgba(255, 160, 0, 0.22);
  color: rgba(255, 195, 80, 0.7);
  font-size: 0.72rem;
  line-height: 1.5;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.wi-ai-disclaimer-bar strong {
  color: rgba(255, 210, 100, 0.85);
  font-weight: 600;
}
.wi-ai-disclaimer-icon {
  flex-shrink: 0;
  font-size: 0.78rem;
  margin-top: 2px;
  opacity: 0.8;
}
#panesWrap {
  flex: 1;
  min-height: 0;
  position: relative;
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.topbar-brand { display: flex; flex-direction: column; }
.tab-nav { display: flex; gap: 4px; }

.tab-btn {
  cursor: pointer;
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.tab-btn.active {
  border-color: rgba(255,140,0,0.35);
  color: var(--saffron);
  background: var(--saffron-dim);
  box-shadow: 0 0 16px var(--saffron-glow);
}

.pane { overflow: hidden; }
/* Panes are stacked absolutely inside #panesWrap so each fills exactly
   the space below topbar+memorybar regardless of how many sibling panes
   are visible. Higher specificity wins over legacy position:relative rules. */
#panesWrap > .pane { position: absolute; inset: 0; }
#guidePane { overflow-y: auto; padding-bottom: var(--disclaimer-h, 44px); }

/* ─────────────────────────────────────
   MAP PANE
   ───────────────────────────────────── */
#mapPane {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  padding-bottom: var(--disclaimer-h, 44px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.control-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  backdrop-filter: blur(12px);
}

.control-strip label { margin: 0; }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 16px;
}

/* ── React terrain map root ── */
#terrain-map-root {
  grid-column: 1 / -1;
  display: flex;
  gap: 16px;
  min-height: 500px;
  align-items: stretch;
  /* Fill remaining height in the #mapPane flex column so the atlas never
     forces an unnecessary scrollbar on normal-sized viewports. */
  flex: 1;
}

.terrain-state.tier-muted { opacity: 0.12 !important; transition: opacity 0.25s ease; }

.atlas-map {
  flex: 1 1 0;
  min-width: 0;
  /* Stretch to fill the terrain-map-root flex row (which itself fills
     the #mapPane flex column via flex:1 above).
     min-height provides a floor so the map is never too short. */
  min-height: 480px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ── WebGL Atlas (map3d-webgl.js) ───────────────────────────── */
.atlas-webgl-canvas { border-radius: inherit; }
.atlas-webgl-canvas .maplibregl-canvas { outline: none; }
.atlas-webgl-canvas .maplibregl-ctrl-attrib,
.atlas-webgl-canvas .maplibregl-ctrl-logo { display: none !important; }
.atlas-webgl-canvas .maplibregl-ctrl-group {
  background: rgba(10,18,38,0.82) !important;
  border: 1px solid rgba(255,200,80,0.28) !important;
  box-shadow: 0 4px 14px rgba(0,0,0,0.4) !important;
  backdrop-filter: blur(8px);
}
.atlas-webgl-canvas .maplibregl-ctrl-group button {
  background: transparent !important;
  filter: invert(0.85) hue-rotate(180deg);
}
.atlas-webgl-canvas .maplibregl-ctrl-group button:hover {
  background: rgba(255,200,80,0.12) !important;
}

/* MapLibre's nav control sits inside .atlas-webgl-canvas (zIndex 1).
   Lift it above the atmosphere overlay so it remains clickable. */
.atlas-webgl-canvas .maplibregl-ctrl-top-right,
.atlas-webgl-canvas .maplibregl-ctrl-top-left,
.atlas-webgl-canvas .maplibregl-ctrl-bottom-right,
.atlas-webgl-canvas .maplibregl-ctrl-bottom-left { z-index: 3 !important; }

/* Route stops summary inside the InsightPanel — appears only when 2+ states
   have been selected, so the AI draft prompt reflects every stop, not just
   the last click. */
.route-stops-summary {
  border: 1px solid rgba(255, 200, 80, 0.18);
  background: rgba(15, 23, 41, 0.55);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 10px 0;
}
.route-stops-summary h4 {
  margin: 0 0 8px 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #FFD060;
}
.route-stops-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.route-stops-list__item {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d5dbe8;
}
.route-stops-list__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FFD060;
  box-shadow: 0 0 6px rgba(255, 208, 96, 0.55);
  margin-left: 3px;
}
.route-stops-list__item--last .route-stops-list__dot {
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
}
.route-stops-list__name { font-weight: 600; color: #FFE8B8; }
.route-stops-list__region {
  font-size: 10px;
  color: rgba(168, 181, 204, 0.85);
  letter-spacing: 0.03em;
}

/* Phase 2D — atmospheric vignette ringing the WebGL canvas, giving the
   "view from space" cinematic edge feel. pointer-events:none so it
   never blocks pan/zoom/click on the map. */
.atlas-webgl-atmosphere {
  background:
    radial-gradient(ellipse 78% 72% at 50% 48%,
      transparent 54%,
      rgba(255, 140, 0, 0.07) 72%,
      rgba(20, 25, 45, 0.45) 92%,
      rgba(4, 8, 26, 0.78) 100%);
  mix-blend-mode: normal;
}

@keyframes atlas-spin { to { transform: rotate(360deg); } }

.atlas-stage {
  background: #04080e;
  box-shadow: inset 0 0 140px rgba(255,140,0,0.08), var(--shadow-md);
}

/* Cinematic reveal — map fades+scales in when Atlas tab opens */
@keyframes atlas-cinematic-reveal {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: scale(1); }
}
.atlas-cinematic-reveal {
  animation: atlas-cinematic-reveal 1.1s cubic-bezier(0.22,1,0.36,1) both;
}

.atlas-cinematic-world {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 48% 44%, rgba(255,224,166,0.16), transparent 34%),
    linear-gradient(58deg, transparent 0 47%, rgba(255,140,0,0.10) 48%, transparent 57%),
    linear-gradient(118deg, transparent 0 54%, rgba(52,211,153,0.09) 55%, transparent 64%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.018) 0 1px, transparent 1px 44px);
  filter: blur(0.2px);
  animation: atlas-world-drift 14s ease-in-out infinite alternate;
}

.atlas-cinematic-world::before,
.atlas-cinematic-world::after {
  content: "";
  position: absolute;
  width: 46%;
  height: 18%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.16), rgba(255,255,255,0.035) 48%, transparent 72%);
  filter: blur(22px);
  opacity: 0.32;
  animation: atlas-cloud-drift 20s ease-in-out infinite alternate;
}

.atlas-cinematic-world::before { top: 8%; left: -8%; }
.atlas-cinematic-world::after { right: -10%; bottom: 18%; animation-delay: -8s; }

@keyframes atlas-world-drift {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(1.5%, 1%, 0) scale(1.045); }
}

@keyframes atlas-cloud-drift {
  from { transform: translateX(-4%) translateY(0); }
  to { transform: translateX(8%) translateY(9%); }
}

#terrain-map-root .insight-panel { width: 320px; flex-shrink: 0; overflow-y: auto; }
/* Atlas map section fills its flex parent — override map-card's fixed min-height
   so the terrain-map-root flex:1 layout controls sizing instead of 800px forcing overflow. */
#terrain-map-root > .atlas-map.map-card { min-height: 480px; }

.map-card {
  position: relative;
  min-height: 800px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background:
    radial-gradient(ellipse 80% 70% at 46% 46%, rgba(56,189,248,0.04) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(255,140,0,0.03) 0%, transparent 60%),
    var(--surface-1);
  box-shadow: var(--shadow-md);
}

.map-card::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 1px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: calc(var(--r-md) - 1px);
}

.map-card::after {
  content: '';
  pointer-events: none;
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg,   rgba(255,255,255,0.01) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(90deg,  rgba(255,255,255,0.01) 0 1px, transparent 1px 48px);
  border-radius: var(--r-md);
}

.map-overview-btn {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 8px 14px;
  color: var(--text);
  background: rgba(15,23,41,0.85);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
}

.map-overview-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: rgba(15,23,41,0.95);
}

#indiaMap {
  position: relative;
  width: 100%;
  height: min(78vh, 760px);
  min-height: 640px;
  display: block;
}

.insight-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.panel-header { padding-bottom: 12px; border-bottom: 1px solid var(--line); }

.meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.meta-item, .plan-box {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px;
  background: var(--panel);
}

.meta-item span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.meta-item strong { display: block; margin-top: 4px; font-size: 0.92rem; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─────────────────────────────────────
   CHAT PANE
   ───────────────────────────────────── */
#chatPane {
  /* sized by position: absolute; inset: 0 inside #panesWrap — no explicit height needed */
}

.chat-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  height: 100%;
  overflow: hidden;
}

.chat-sidebar {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  background: rgba(8,12,20,0.7);
  overflow-y: auto;
}

.sidebar-label {
  padding: 0 4px 10px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.starter-list { display: flex; flex-direction: column; gap: 5px; }

.starter-btn {
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--muted);
  background: transparent;
  text-align: left;
  font-size: 0.8rem;
  line-height: 1.45;
  transition: all 0.2s ease;
}

.starter-btn:hover {
  border-color: rgba(255,140,0,0.3);
  color: var(--text);
  background: rgba(255,140,0,0.04);
}

.sidebar-divider { height: 1px; background: var(--line); margin: 14px 0; }

.history-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  margin-bottom: 12px;
}

.history-item {
  cursor: pointer;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
  transition: all 0.18s;
}

.history-item:hover { border-color: var(--line); color: var(--text); background: rgba(255,255,255,0.03); }

.chat-main {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}

.scroll-to-bottom-btn {
  position: absolute;
  bottom: 12px;
  right: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,140,0,0.12);
  border: 1px solid rgba(255,140,0,0.35);
  color: var(--saffron, #ff8c00);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  opacity: 1;
  transition: opacity 0.18s, transform 0.18s, background 0.18s;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.scroll-to-bottom-btn:hover {
  background: rgba(255,140,0,0.22);
  transform: translateY(-2px);
}
.scroll-to-bottom-btn.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.07) transparent;
}

/* ── Welcome state ── */
.welcome-state {
  margin: auto;
  max-width: 540px;
  text-align: center;
  padding: 40px 20px;
  animation: panel-rise 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.welcome-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 16px rgba(255,140,0,0.3));
}

.example-prompt {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--panel);
  transition: all 0.2s;
  cursor: pointer;
}

.example-prompt:hover {
  border-color: rgba(255,140,0,0.3);
  color: var(--text);
  background: var(--saffron-dim);
}

/* ── Message bubbles ── */
.msg-user { display: flex; justify-content: flex-end; }

.msg-user-bubble {
  max-width: 70%;
  padding: 12px 16px;
  border: 1px solid rgba(255,140,0,0.18);
  border-radius: 14px 14px 4px 14px;
  background: rgba(255,140,0,0.07);
  color: var(--text);
  line-height: 1.55;
}

.msg-ai { display: flex; flex-direction: column; gap: 12px; }

.ai-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.ai-label::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease infinite;
  box-shadow: 0 0 8px var(--teal);
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ── Typing indicator ── */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  backdrop-filter: blur(8px);
  width: fit-content;
  color: var(--muted);
  font-size: 0.85rem;
}

.typing-dots { display: flex; gap: 4px; }

.typing-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  animation: bounce 1.2s ease infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.typing-progress {
  margin-left: 6px;
  font-size: 0.75rem;
  color: var(--saffron);
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
  transition: opacity 0.2s;
}

/* ── AI reasoning summary ── */
.ai-reasoning {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(255,255,255,0.02);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  border-left: 3px solid var(--teal);
}

.ai-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 13px;
  border-radius: var(--r-md);
  background: rgba(255, 180, 0, 0.06);
  border: 1px solid rgba(255, 180, 0, 0.2);
  color: rgba(255, 200, 80, 0.75);
  font-size: 0.76rem;
  line-height: 1.5;
}
.ai-disclaimer-icon {
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 1px;
  opacity: 0.85;
}

/* ── Three-plan tabs ── */
.plan-tabs-wrapper { display: flex; flex-direction: column; gap: 0; }

.plan-tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
}

.plan-tab-btn {
  cursor: pointer;
  padding: 10px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  transition: all 0.18s;
  margin-bottom: -1px;
}

.plan-tab-btn.active { border-bottom-color: var(--saffron); color: var(--saffron); }
.plan-tab-btn:hover:not(.active) { color: var(--text); }
.plan-tab-content { display: none; }
.plan-tab-content.active { display: block; }

/* ── Trip plan card ── */
.trip-plan-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
}

.plan-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}

.plan-card-meta { flex: 1; }
.plan-tagline { color: var(--muted); font-size: 0.85rem; margin-top: 4px; margin-bottom: 0; }

.plan-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-safe    { background: rgba(16,212,131,0.1);  color: var(--safe);    border: 1px solid rgba(16,212,131,0.25); }
.badge-caution { background: rgba(245,166,35,0.1);  color: var(--caution); border: 1px solid rgba(245,166,35,0.25); }
.badge-risk    { background: rgba(255,77,77,0.1);   color: var(--risk);    border: 1px solid rgba(255,77,77,0.25); }
.badge-weather { background: rgba(56,189,248,0.08); color: var(--cyan);    border: 1px solid rgba(56,189,248,0.2); }
.badge-budget  { background: rgba(15,184,160,0.08); color: var(--teal);    border: 1px solid rgba(15,184,160,0.2); }

.badge.safe    { background: rgba(16,212,131,0.1);  color: var(--safe);    border: 1px solid rgba(16,212,131,0.25); }
.badge.caution { background: rgba(245,166,35,0.1);  color: var(--caution); border: 1px solid rgba(245,166,35,0.25); }
.badge.risk    { background: rgba(255,77,77,0.1);   color: var(--risk);    border: 1px solid rgba(255,77,77,0.25); }

/* Summary note for skeleton plans (Best / Alternative) */
.plan-summary-note {
  padding: 18px 20px;
  margin: 8px 16px 16px;
  background: rgba(255,140,0,0.05);
  border: 1px solid rgba(255,140,0,0.18);
  border-radius: var(--r-md);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted-light);
}
.plan-summary-note p { margin: 0 0 8px; }
.plan-summary-note p:last-child { margin-bottom: 0; }
.plan-summary-note .plan-summary-hint { font-size: 0.78rem; color: var(--muted); font-style: italic; }

/* Day cards */
.day-cards { display: flex; flex-direction: column; gap: 0; }

.day-card {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.18s;
}

.day-card:last-child { border-bottom: none; }
.day-card:hover { background: rgba(255,140,0,0.03); }

.day-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.day-number {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--saffron-dim);
  border: 1px solid rgba(255,140,0,0.3);
  color: var(--saffron);
  font-size: 0.72rem;
  font-weight: 900;
}

.day-title { font-weight: 700; font-size: 0.95rem; margin: 0; flex: 1; }
.day-chips { display: flex; flex-wrap: wrap; gap: 5px; }

.day-chip {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
}

.day-body { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }

.day-row {
  display: flex;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
}

.day-row-icon { flex: 0 0 16px; opacity: 0.6; }
.day-row-text { flex: 1; }
.day-row strong { color: var(--text); }

.plan-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-link {
  cursor: pointer;
  color: var(--saffron);
  text-decoration: underline;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.8rem;
  transition: color 0.18s;
}

.footer-link:hover { color: var(--amber); }

.refinement-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.refine-btn {
  cursor: pointer;
  padding: 6px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.18s;
}

.refine-btn:hover {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-dim);
}

/* ── Chat input bar ── */
.chat-input-bar {
  padding: 10px 20px 16px;
  border-top: 1px solid var(--line);
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(16px);
}

/* ── Origin strip (Traveling From) ── */
.origin-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px 8px;
}
.origin-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--saffron);
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.origin-input {
  flex: 0 0 170px;
  height: 28px;
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255,140,0,0.06);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.origin-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 2px var(--saffron-dim);
}
.origin-input::placeholder { color: rgba(136,150,179,0.45); }
.origin-select {
  min-height: 28px;
  cursor: pointer;
}
.origin-date-input {
  min-height: 28px;
  width: 138px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  color: var(--text);
  padding: 0 8px;
  font: inherit;
  font-size: 0.72rem;
}
.date-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: nowrap;
}
.origin-hint {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── Budget strip ── */
.budget-strip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 2px 7px;
  border-top: 1px solid rgba(255,140,0,0.10);
  flex-wrap: wrap;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.budget-strip.budget-required {
  border-color: rgba(255,90,90,0.55);
  box-shadow: 0 0 0 2px rgba(255,90,90,0.12);
  animation: budget-shake 0.38s ease;
}
@keyframes budget-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-5px); }
  60%      { transform: translateX(4px); }
  80%      { transform: translateX(-3px); }
}
.budget-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--saffron);
  white-space: nowrap;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.budget-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.budget-chip {
  height: 26px;
  padding: 0 10px;
  font-size: 0.74rem;
  font-weight: 600;
  font-family: inherit;
  color: rgba(220,232,255,0.78);
  background: rgba(255,140,0,0.07);
  border: 1px solid rgba(255,140,0,0.28);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
}
.budget-chip:hover {
  background: rgba(255,140,0,0.16);
  border-color: rgba(255,140,0,0.55);
  color: var(--saffron);
}
.budget-chip:active { transform: scale(0.93); }
.budget-chip.active {
  background: rgba(255,140,0,0.22);
  border-color: var(--saffron);
  color: var(--saffron);
  box-shadow: 0 0 0 2px rgba(255,140,0,0.15);
}
.budget-custom-input {
  height: 26px;
  width: 96px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-family: inherit;
  color: var(--text);
  background: rgba(255,140,0,0.06);
  border: 1px solid rgba(255,140,0,0.25);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -moz-appearance: textfield;
}
.budget-custom-input::-webkit-outer-spin-button,
.budget-custom-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.budget-custom-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 2px var(--saffron-dim);
}
.budget-custom-input::placeholder { color: rgba(136,150,179,0.45); }
.budget-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 5px;
  background: rgba(255,140,0,0.14);
  color: var(--saffron);
  border: 1px solid rgba(255,140,0,0.32);
  white-space: nowrap;
  animation: tier-pop 0.2s ease;
}
@keyframes tier-pop {
  from { transform: scale(0.85); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}
.budget-hint {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s;
}
.budget-hint.is-set { color: rgba(255,140,0,0.75); font-weight: 600; }

/* ── Budget Breakdown (collapsible, shown below AI itinerary) ── */
.budget-breakdown {
  margin: 10px 0 6px;
  border: 1px solid rgba(255,140,0,0.18);
  border-radius: 10px;
  background: rgba(255,140,0,0.04);
  overflow: hidden;
}
.bdb-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  font-size: 0.8rem;
}
.bdb-summary::-webkit-details-marker { display: none; }
.bdb-summary::before {
  content: "▸";
  font-size: 0.7rem;
  color: var(--saffron);
  transition: transform 0.2s;
}
details[open] .bdb-summary::before { transform: rotate(90deg); }
.bdb-total-label { font-weight: 700; color: var(--text); }
.bdb-total-amount { font-weight: 700; color: var(--saffron); }
.bdb-tier {
  margin-left: auto;
  font-size: 0.7rem;
  color: rgba(220,232,255,0.65);
  border: 1px solid rgba(255,140,0,0.2);
  border-radius: 5px;
  padding: 2px 7px;
}
.bdb-body {
  padding: 4px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.bdb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
}
.bdb-icon { font-size: 0.85rem; width: 18px; text-align: center; flex-shrink: 0; }
.bdb-label { width: 76px; color: rgba(220,232,255,0.75); flex-shrink: 0; }
.bdb-bar-wrap {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}
.bdb-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(255,140,0,0.7), rgba(255,190,60,0.9));
  border-radius: 3px;
  transition: width 0.5s ease;
}
.bdb-amount { width: 72px; text-align: right; font-weight: 600; color: var(--text); flex-shrink: 0; }
.bdb-note {
  margin-top: 4px;
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── Custom budget input (shown when "Custom…" selected in a budget dropdown) ── */
.select-custom-input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 5px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,153,51,0.35);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.select-custom-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 2px rgba(255,153,51,0.18);
}
.select-custom-input::placeholder { color: var(--muted); }
.atc-budget-custom { margin-top: 4px; }

.input-row { display: flex; gap: 10px; align-items: flex-end; }

.chat-textarea {
  flex: 1;
  min-height: 48px;
  max-height: 160px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  padding: 12px 14px;
  resize: none;
  outline: none;
  line-height: 1.5;
  overflow-y: auto;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.chat-textarea::placeholder { color: rgba(136,150,179,0.5); }
.chat-textarea:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px var(--saffron-dim); }

.send-button {
  cursor: pointer;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid var(--saffron);
  border-radius: var(--r-md);
  color: #0A0A0A;
  background: linear-gradient(135deg, var(--saffron) 0%, #FFAD1A 100%);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.send-button:hover { box-shadow: var(--shadow-saffron); transform: translateY(-1px); }
.send-button:active { transform: translateY(0); }
.send-button:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
.send-icon { display: inline-flex; align-items: center; justify-content: center; }
.send-icon--stop { display: none; }
.send-button.send-button--stop {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff3b3b 100%);
  border-color: #ff3b3b;
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 77, 77, 0.32);
}
.send-button.send-button--stop .send-icon--send { display: none; }
.send-button.send-button--stop .send-icon--stop { display: inline-flex; }

.input-hint { margin: 6px 0 0; color: rgba(136,150,179,0.4); font-size: 0.72rem; }

.citations { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.citation-tag { padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 0.72rem; }

/* ─────────────────────────────────────
   PHASE 1 — NEW COMPONENTS
   ───────────────────────────────────── */
.api-key-section {
  margin-top: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.api-key-section summary {
  cursor: pointer;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  list-style: none;
  user-select: none;
  transition: color 0.18s;
}

.api-key-section summary:hover { color: var(--text); }
.api-key-section[open] summary { border-bottom: 1px solid var(--line); }
.api-key-body { padding: 12px 14px; }

.optional-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mint);
  background: rgba(16,212,131,0.1);
  border-radius: 999px;
  padding: 1px 7px;
  margin-left: 6px;
}

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.mode-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  border: 1px solid;
  cursor: default;
}

.mode-live { color: var(--mint);    border-color: rgba(16,212,131,0.35);  background: rgba(16,212,131,0.07); }
.mode-mock { color: var(--caution); border-color: rgba(245,166,35,0.35);  background: rgba(245,166,35,0.07); }

/* ── AI toggle switch ─────────────────────────────────────────── */
.ai-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.ai-toggle-wrap input[type="checkbox"] { display: none; }
.ai-toggle-track {
  position: relative;
  width: 34px;
  height: 18px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  transition: background 0.22s, border-color 0.22s;
  flex-shrink: 0;
}
.ai-toggle-wrap input:checked + .ai-toggle-track {
  background: var(--saffron);
  border-color: var(--saffron);
}
.ai-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.ai-toggle-wrap input:checked + .ai-toggle-track .ai-toggle-thumb {
  transform: translateX(16px);
}
.ai-toggle-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.22s;
}
.ai-toggle-wrap:has(input:checked) .ai-toggle-label { color: var(--saffron); }

.memory-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 20px;
  border-bottom: 1px solid rgba(15,184,160,0.14);
  background: rgba(15,184,160,0.04);
  font-size: 0.78rem;
}

.memory-bar-label { color: var(--teal); font-weight: 800; white-space: nowrap; flex: 0 0 auto; }
.memory-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }

.memory-chip {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,184,160,0.22);
  background: rgba(15,184,160,0.06);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 700;
}

.memory-clear-btn {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.72rem;
  flex: 0 0 auto;
  padding: 0;
  transition: color 0.18s;
}

.memory-clear-btn:hover { color: var(--risk); }

.safety-panel { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; background: var(--panel); }
.safety-panel-header { display: flex; align-items: center; gap: 10px; }
.safety-reason { font-size: 0.82rem; color: var(--muted); }

.affiliate-links { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  background: transparent;
  text-decoration: none;
  transition: all 0.18s;
}

.affiliate-btn:hover { border-color: var(--saffron); color: var(--saffron); background: var(--saffron-dim); }

.memory-cite {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(15,184,160,0.09);
  border: 1px solid rgba(15,184,160,0.2);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0 2px;
}

/* Settings modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  padding: 24px;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal-panel {
  width: min(100%, 520px);
  max-height: 85vh;
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  background: var(--surface-1);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.04);
  animation: panel-rise 0.3s cubic-bezier(0.16,1,0.3,1) both;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(15,23,41,0.98);
  backdrop-filter: blur(12px);
  z-index: 1;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.modal-header h3 { margin: 0; font-size: 1.05rem; }

.settings-section {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.settings-section:last-child { border-bottom: none; }

.settings-section h4 {
  margin-bottom: 12px;
  color: var(--saffron);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.settings-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.api-key-row { display: flex; gap: 8px; }
.api-key-row input { flex: 1; }

.settings-save-btn {
  cursor: pointer;
  padding: 0 16px;
  min-height: 46px;
  border: 1px solid var(--saffron);
  border-radius: 6px;
  color: #0A0A0A;
  background: linear-gradient(135deg, var(--saffron) 0%, #FFAD1A 100%);
  font-weight: 700;
  white-space: nowrap;
  font: inherit;
  transition: all 0.2s;
}

.settings-save-btn:hover { box-shadow: var(--shadow-saffron); transform: translateY(-1px); }

.api-key-status { margin-top: 8px; font-size: 0.82rem; min-height: 20px; }
.api-key-status.ok  { color: var(--mint); }
.api-key-status.err { color: var(--risk); }

.settings-memory-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }

.settings-memory-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  background: var(--panel);
}

.settings-memory-item-del {
  cursor: pointer;
  background: none;
  border: none;
  color: rgba(255,77,77,0.4);
  font-size: 0.8rem;
  padding: 0;
  transition: color 0.18s;
}

.settings-memory-item-del:hover { color: var(--risk); }

.lang-toggle-row { display: flex; gap: 8px; }

.lang-btn {
  cursor: pointer;
  padding: 7px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  font-size: 0.85rem;
  font: inherit;
  transition: all 0.18s;
}

.lang-btn.active {
  border-color: rgba(255,140,0,0.4);
  color: var(--saffron);
  background: var(--saffron-dim);
}

.ai-label.live::before { background: var(--mint); box-shadow: 0 0 8px var(--mint); }

/* ─────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────── */
@media (max-width: 1100px) { .workspace { grid-template-columns: 1fr; } }

@media (max-width: 820px) {
  .chat-layout { grid-template-columns: 1fr; }
  .chat-sidebar { display: none; }
  .control-strip { grid-template-columns: 1fr; }
  #mapPane { padding: 12px; }
  .map-card { min-height: 560px; }
  #indiaMap { height: 560px; min-height: 560px; }
}

@media (max-width: 560px) {
  .login-panel { padding: 24px; }
  .meta-grid { grid-template-columns: 1fr; }
  .chat-messages { padding: 16px; }
  .plan-card-header { flex-direction: column; }
  .plan-badges { flex-direction: row; align-items: flex-start; }
}

/* ══════════════════════════════════════════════
   WEATHER WIDGET
 ════════════════════════════════════════════ */
.weather-panel { margin-top: 10px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.weather-widget { background: rgba(56,189,248,0.03); padding: 12px 14px 8px; }
.weather-offline, .weather-loading { padding: 10px 14px; font-size: 0.78rem; color: var(--muted); }

.wx-current { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.wx-main    { display: flex; align-items: baseline; gap: 6px; }
.wx-temp    { font-size: 1.8rem; font-weight: 700; color: var(--text); letter-spacing: -0.03em; }
.wx-icon    { font-size: 1.6rem; }
.wx-details { display: flex; flex-direction: column; gap: 2px; font-size: 0.78rem; color: var(--muted); }

.wx-forecast {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.wx-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 2px; }
.wx-day-name { font-size: 0.62rem; color: var(--muted); text-transform: uppercase; }
.wx-day-icon { font-size: 1rem; }
.wx-day-hi   { font-size: 0.72rem; font-weight: 700; color: var(--text); }
.wx-day-lo   { font-size: 0.68rem; color: var(--muted); }
.wx-source   { font-size: 0.62rem; color: var(--muted); margin: 6px 0 0; text-align: right; opacity: 0.5; }

/* ════════════════════════════════════════════
   EPISODIC MEMORY — PAST TRIPS SIDEBAR
 ══════════════════════════════════════════ */
.past-trips-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }

.episodic-clear-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.72rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: color 0.18s;
}

.episodic-clear-btn:hover { color: var(--risk); }

.past-trips-list { display: flex; flex-direction: column; gap: 5px; max-height: 220px; overflow-y: auto; }

.past-trip-item {
  padding: 8px 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}

.past-trip-item:hover {
  border-color: rgba(15,184,160,0.28);
  background: rgba(15,184,160,0.04);
}

.past-trip-dest { font-size: 0.78rem; color: var(--text); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.past-trip-meta { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.past-trip-date   { font-size: 0.65rem; color: var(--muted); }
.past-trip-budget { font-size: 0.65rem; color: var(--teal); }

/* ══════════════════════════════════════════
   TRAVEL GUIDE V1 — Dark theme
   ══════════════════════════════════════════ */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr 280px;
  height: calc(100vh - 56px);
  overflow: hidden;
}

.guide-filters {
  background: rgba(8,12,20,0.75);
  border-right: 1px solid var(--line);
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.guide-filters label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0;
}

.guide-filters select,
.guide-filters input[type="number"],
.guide-filters input[type="time"],
.guide-filters input[type="search"] {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text);
  padding: 6px 8px;
  font-size: 0.82rem;
  width: 100%;
}

.guide-filters select:focus,
.guide-filters input:focus { outline: 2px solid var(--saffron); outline-offset: -1px; }
.guide-filters select[multiple] { height: 120px; }

.guide-chips-row { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; min-height: 4px; }

.guide-chip {
  background: var(--saffron);
  color: #0A0A0A;
  border-radius: 30px;
  padding: 3px 8px 3px 10px;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.guide-chip-rm {
  background: none;
  border: none;
  color: rgba(0,0,0,0.5);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 1px;
}

.guide-cards-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.guide-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
}

.guide-card:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.guide-card.selected { border-color: var(--saffron); }

.guide-card-img {
  height: 78px;
  background: linear-gradient(135deg, #0F4C38 0%, #0B6F55 100%);
}

.guide-card-body { padding: 8px 10px 10px; }

.guide-card-tag {
  display: inline-block;
  background: var(--saffron-dim);
  color: var(--saffron);
  border-radius: 4px;
  font-size: 0.62rem;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  font-weight: 700;
}

.guide-card-name { font-size: 0.8rem; font-weight: 700; color: var(--text); margin: 0 0 3px; line-height: 1.3; }
.guide-card-desc { font-size: 0.72rem; color: var(--muted); margin: 0; line-height: 1.4; }
.guide-card-day  { display: inline-block; margin-top: 5px; font-size: 0.65rem; color: var(--rose); font-weight: 600; }

.guide-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 20px;
  height: 20px;
  background: var(--saffron);
  color: #0A0A0A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
}

.guide-trip-panel {
  background: rgba(8,12,20,0.75);
  border-left: 1px solid var(--line);
  padding: 16px 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#guideTripTitle { font-size: 0.88rem; margin: 0 0 4px; color: var(--text); }

.guide-time-summary { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 8px; }

.guide-time-summary div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.guide-time-summary span { font-size: 0.68rem; color: var(--muted); }
.guide-time-summary strong { font-size: 0.72rem; color: var(--text); text-align: right; }

.guide-day-plan { display: flex; flex-direction: column; gap: 10px; }

.guide-day-block {
  background: var(--panel);
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--saffron);
}

.guide-day-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--saffron);
  font-weight: 800;
  margin: 0 0 6px;
}

.guide-day-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
}

.guide-day-item:last-child { border-bottom: none; }

.guide-day-tag {
  font-size: 0.62rem;
  background: var(--saffron-dim);
  color: var(--saffron);
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
  font-weight: 700;
}

.guide-day-name { font-size: 0.78rem; color: var(--text); line-height: 1.3; }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; height: auto; overflow: visible; }
  .guide-filters, .guide-trip-panel {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--line);
    max-height: 260px;
    overflow-y: auto;
  }
  .guide-explore { min-height: 400px; }
}

/* ═══════════════ TRAVEL GUIDE V2 ═════════════ */
.gv2-layout {
  display: grid;
  grid-template-columns: 280px 1fr 270px;
  min-height: calc(100vh - 56px);
  /* `start` (not stretch) so the filter and itinerary columns size by their
   * own content. Stretch was forcing all three columns to match the tallest
   * column (the recommendation cards grid, ~1300px), which produced two UX
   * problems:
   *   1. A large empty gap below the Apply Filters button in the filter
   *      column — users read it as "no data" after applying filters.
   *   2. The "Selected Hotels" column was pushed to ~y=1300 because the
   *      empty itinerary container was stretched to match — users had to
   *      scroll the entire pane to find it.
   * With `start`, both side columns end at their natural content and the
   * sticky rules below pin them in view while the middle grid scrolls. */
  align-items: start;
  overflow: visible;
  background: var(--bg);
}

/* Keep filter + itinerary columns pinned to the top of the viewport as the
 * recommendation list scrolls past them. Without sticky the user would have
 * to scroll back up to change a filter or see selected hotels. */
.gv2-filters,
.gv2-itinerary {
  position: sticky;
  top: 0;
  align-self: start;
  max-height: calc(100vh - 56px);
}

/* ── Left: Filters ── */
.gv2-filters {
  background: rgba(8,12,20,0.88);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.gv2-filters-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.gv2-hamburger { background: none; border: none; cursor: pointer; padding: 4px; display: flex; flex-direction: column; gap: 4px; }
.gv2-hamburger span { display: block; width: 18px; height: 2px; background: var(--muted); border-radius: 2px; }

.gv2-filters-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }

.gv2-filters-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.gv2-step { display: flex; align-items: flex-start; gap: 10px; }

.gv2-step-line {
  width: 2px;
  height: 10px;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.1) 0px, rgba(255,255,255,0.1) 4px, transparent 4px, transparent 8px);
  margin-left: 17px;
}

.gv2-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.gv2-dot-country { background: linear-gradient(135deg, #10B981, #059669); }
.gv2-dot-state   { background: linear-gradient(135deg, #FF8C00, #E57A00); }
.gv2-dot-city    { background: linear-gradient(135deg, #38BDF8, #0EA5E9); }
.gv2-dot-days    { background: linear-gradient(135deg, #8B5CF6, #7C3AED); }
.gv2-dot-time    { background: linear-gradient(135deg, #64748B, #475569); }
.gv2-dot-type    { background: linear-gradient(135deg, #F43F5E, #E11D48); }

.gv2-step-content { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-bottom: 4px; }

.gv2-step-label { font-size: 0.67rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }

.gv2-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.8rem;
  color: var(--text);
  width: 100%;
  cursor: pointer;
  transition: border-color 0.18s;
}

.gv2-select:focus { outline: 2px solid var(--saffron); outline-offset: -1px; }

.gv2-time-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }

.gv2-time-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.gv2-time-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 0.82rem;
  color: var(--text);
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  transition: border-color 0.18s;
}

.gv2-time-input:focus { outline: 2px solid var(--saffron); outline-offset: -1px; }

.gv2-chip-row { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }

.gv2-chip {
  background: var(--saffron);
  color: #0A0A0A;
  border-radius: 12px;
  padding: 2px 8px 2px 6px;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
}

.gv2-chip-rm { background: none; border: none; color: rgba(0,0,0,0.5); cursor: pointer; font-size: 10px; padding: 0; line-height: 1; }

.gv2-state-chip { background: linear-gradient(135deg, #FF6B35, #FF8C00); font-weight: 600; }
.gv2-chip-state { opacity: 0.7; font-size: 0.65rem; }
.gv2-multi-hint { font-weight: 400; font-size: 0.65rem; color: var(--muted); text-transform: none; letter-spacing: 0; }

.gv2-type-chips { display: flex; flex-wrap: wrap; gap: 4px; }

.gv2-type-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 3px 9px;
  font-size: 0.72rem;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.18s;
}

.gv2-type-btn.active { background: var(--saffron); border-color: var(--saffron); color: #0A0A0A; font-weight: 700; }

.gv2-apply-btn {
  margin-top: 14px;
  background: linear-gradient(135deg, var(--saffron) 0%, #FFAD1A 100%);
  color: #0A0A0A;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  width: 100%;
  transition: all 0.2s;
}

.gv2-apply-btn:hover { box-shadow: var(--shadow-saffron); transform: translateY(-1px); }

/* Hotels section */
.gv2-hotels-section { border-top: 1px solid var(--line); padding: 12px; overflow-y: auto; max-height: 280px; flex-shrink: 0; }
.gv2-hotels-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 8px; }

.gv2-hotel-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all 0.18s;
  margin-bottom: 6px;
  background: var(--panel);
}

.gv2-hotel-card:hover { border-color: var(--line-strong); background: rgba(255,255,255,0.06); }
.gv2-hotel-card.selected { border-color: var(--saffron); background: var(--saffron-dim); }

.gv2-hotel-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: linear-gradient(135deg, #0F4C38, #0B6F55);
  flex-shrink: 0;
}

.gv2-hotel-info { flex: 1; min-width: 0; }
.gv2-hotel-name { font-size: 0.78rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv2-hotel-sub  { font-size: 0.68rem; color: var(--muted); }
.gv2-hotel-radio { width: 14px; height: 14px; accent-color: var(--saffron); }

/* ── Middle: Explore ── */
/* Explicit viewport height. Without this, the previous-commit switch to
 * `align-items: start` on .gv2-layout left this column auto-sized — and the
 * .gv2-map-wrap child's `height: 42%` then resolves against an unresolved
 * parent height, collapsing to 0 and hiding the Leaflet canvas entirely.
 * Same reason the cards-area's `flex: 1` would otherwise collapse. */
.gv2-explore {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
  height: calc(100vh - 56px);
}

.gv2-explore-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,12,20,0.82);
  flex-shrink: 0;
}

.gv2-dest-name { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 0; font-family: 'Space Grotesk', 'Inter', sans-serif; }

.gv2-view-toggle {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}

.gv2-view-btn {
  background: transparent;
  border: none;
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.18s;
}

.gv2-view-btn.active { background: var(--saffron); color: #0A0A0A; font-weight: 800; }

.gv2-map-wrap {
  flex-shrink: 0;
  height: 42%;
  min-height: 220px;
  max-height: 380px;
  position: relative;
  border-bottom: 1px solid var(--line);
}

#gv2Map { width: 100%; height: 100%; }

.gv2-cards-area {
  flex: 1;
  overflow-y: auto;
  padding: 14px 20px 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.gv2-cards-section-label { font-size: 0.78rem; color: var(--muted); margin: 0 0 12px; }

.gv2-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

/* Destination (state) cards */
.gv2-state-card {
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  aspect-ratio: 4/3;
  background: var(--surface-2);
}

.gv2-state-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.gv2-state-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

.gv2-state-card-name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 12px 10px;
  background: linear-gradient(transparent, rgba(0,0,0,0.82));
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Attraction cards */
.gv2-attr-card {
  background: var(--surface-1);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  border: 1px solid var(--line);
}

.gv2-attr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.gv2-attr-card.selected { border-color: var(--saffron); }

.gv2-attr-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: linear-gradient(135deg, #0F4C38 0%, #0B6F55 100%);
  display: block;
}

.gv2-attr-body { padding: 8px 10px 10px; }
.gv2-attr-badges { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 5px; }

.gv2-attr-tag {
  background: rgba(15,184,160,0.1);
  color: var(--teal);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gv2-attr-tag.must-visit { background: var(--saffron-dim); color: var(--saffron); }

.gv2-attr-name { font-size: 0.82rem; font-weight: 700; color: var(--text); margin: 0 0 3px; }
.gv2-attr-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Right: Itinerary ── */
.gv2-itinerary {
  background: rgba(8,12,20,0.88);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gv2-itin-heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

#gv2ItinContent {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.gv2-itin-placeholder { font-size: 0.8rem; color: var(--muted); line-height: 1.5; text-align: center; padding: 20px 0; opacity: 0.7; }

.gv2-itin-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }

.gv2-summary-cell { background: var(--panel); border-radius: 8px; padding: 8px 10px; border: 1px solid var(--line); }
.gv2-summary-val  { font-size: 1rem; font-weight: 700; color: var(--text); display: block; }
.gv2-summary-key  { font-size: 0.65rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.gv2-day-block { margin-bottom: 14px; }

.gv2-day-label { display: flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.gv2-day-dot   { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }

.gv2-day-stop {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 4px 0 4px 17px;
  font-size: 0.76rem;
  color: var(--muted-light);
  border-left: 2px solid var(--line-strong);
  margin-left: 4px;
}

.gv2-day-stop-icon { font-size: 12px; flex-shrink: 0; margin-top: 1px; }

.gv2-itin-hotel-section { background: var(--panel); border-radius: 10px; padding: 10px 12px; border: 1px solid var(--line); margin-top: 6px; }

.gv2-itin-hotel-label { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.gv2-itin-hotel-name  { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.gv2-itin-hotel-note  { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.gv2-itin-stay-row    { margin-bottom: 8px; }
.gv2-itin-stay-row:last-child { margin-bottom: 0; }

.gv2-transit-block {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px dashed var(--line-strong);
  border-radius: 6px;
  padding: 5px 10px;
  margin: 4px 0 10px;
}

.gv2-transit-icon { font-size: 12px; flex-shrink: 0; }
.gv2-day-city { font-weight: 400; color: var(--muted); font-size: 0.72rem; }

.gv2-plan-ai-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--rose) 0%, var(--saffron) 100%);
  color: #0A0A0A;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  margin-top: 12px;
  transition: all 0.2s;
}

.gv2-plan-ai-btn:hover { box-shadow: 0 4px 20px rgba(255,107,53,0.35); transform: translateY(-1px); }

/* Leaflet overrides for dark theme */
.leaflet-container { font-family: inherit; }
.leaflet-tile-pane { filter: brightness(0.65) saturate(0.5); }

.gv2-map-marker {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.gv2-hotel-marker {
  background: var(--saffron);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A0A0A;
  font-size: 11px;
  font-weight: 800;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

/* Responsive: collapse left panel */
.gv2-filters.collapsed .gv2-filters-body,
.gv2-filters.collapsed .gv2-hotels-section { display: none; }
.gv2-filters.collapsed { min-width: 52px; max-width: 52px; }
.gv2-layout.collapsed-left { grid-template-columns: 52px 1fr 270px; align-items: start; }

@media (max-width: 900px) {
  .gv2-layout { grid-template-columns: 52px 1fr; }
  .gv2-itinerary { display: none; }
  .gv2-cards-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ════════════════════════════════════════════
   GLOBAL SCROLLBARS
 ══════════════════════════════════════════ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.07); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.13); }

/* ════════════════════════════════════════════
   MICRO-ANIMATIONS
 ══════════════════════════════════════════ */
.msg-user, .msg-ai {
  animation: msg-in 0.3s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   MISSING / SUPPLEMENTARY CLASSES
   (referenced in app.js — dark theme versions)
 ══════════════════════════════════════════ */

/* Layout collapse */
.collapsed-left { grid-template-columns: 52px 1fr 270px !important; }

/* Map zoom state */
.state-zoomed { outline: 2px solid var(--saffron); outline-offset: -2px; }

/* Points-to-visit list (inside day cards) */
.points-list  { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.points-title { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 6px; }

/* Hour-by-hour timeline (inside day cards) */
.day-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}

/* ════════════════════════════════════════════
   SUPPLEMENTARY CLASSES (app.js references)
 ══════════════════════════════════════════ */

/* Layout */
.collapsed-left { grid-template-columns: 52px 1fr 270px !important; }
.state-zoomed { outline: 2px solid var(--saffron); outline-offset: -2px; }

/* Points list (day card highlights) */
.points-list  { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.points-title { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 6px; }

/* Hour-by-hour timeline */
.day-timeline { display: flex; flex-direction: column; gap: 0; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.timeline-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); transition: background 0.15s; }
.timeline-item:last-child { border-bottom: none; }
.timeline-item:hover { background: rgba(255,140,0,0.03); }
.timeline-time { flex: 0 0 52px; font-size: 0.72rem; font-weight: 800; color: var(--saffron); letter-spacing: 0.02em; padding-top: 2px; }
.timeline-icon { flex: 0 0 22px; font-size: 0.95rem; padding-top: 1px; }
.timeline-body { flex: 1; font-size: 0.82rem; color: var(--muted-light); line-height: 1.45; display: flex; flex-direction: column; gap: 2px; }
.timeline-body strong { color: var(--text); margin-right: 5px; }
.timeline-body small  { color: var(--muted); font-size: 0.72rem; }
.tl-move     .timeline-time { color: #38bdf8; }
.tl-food     .timeline-time { color: #fb923c; }
.tl-stay     .timeline-time { color: #a78bfa; }
.tl-photo    .timeline-time { color: #34d399; }
.tl-shopping .timeline-time { color: #f472b6; }

/* SVG signal lines on terrain map */
.signal-line       { stroke: rgba(56,189,248,0.18); stroke-width: 1; fill: none; stroke-dasharray: 4 4; animation: dash-flow 8s linear infinite; }
.signal-line-major { stroke: rgba(255,140,0,0.22); stroke-width: 1.5; fill: none; stroke-dasharray: 6 4; animation: dash-flow 6s linear infinite; }
@keyframes dash-flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -40; } }
.signal-node { fill: rgba(56,189,248,0.5); stroke: rgba(56,189,248,0.8); stroke-width: 1; }

/* Atlas badges and labels */
.atlas-live-badge, .atlas-route-chip {
  position: absolute;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid;
}

.atlas-live-badge {
  top: 16px;
  left: 16px;
  background: rgba(15, 184, 160, 0.08);
  border-color: rgba(15, 184, 160, 0.25);
  color: var(--teal);
  box-shadow: 0 0 12px rgba(15, 184, 160, 0.15);
}

.atlas-route-chip {
  top: 16px;
  right: 16px;
  background: rgba(56, 189, 248, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
  color: var(--cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.15);
}

/* Atlas zoom controls */
.atlas-zoom-btn:hover {
  background: rgba(255, 200, 80, 0.15) !important;
  border-color: rgba(255, 200, 80, 0.55) !important;
  box-shadow: 0 0 10px rgba(255, 200, 80, 0.2);
}
.atlas-zoom-btn:active {
  background: rgba(255, 200, 80, 0.25) !important;
  transform: scale(0.93);
}

/* Atlas motion routes */
.atlas-motion-layer { pointer-events: none; }

.atlas-route-line {
  stroke: rgba(56, 189, 248, 0.35);
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: route-flow 6s ease-in-out infinite;
}

.atlas-route-line.route-one  { animation-delay: 0s; }
.atlas-route-line.route-two  { animation-delay: 1.2s; }
.atlas-route-line.route-three { animation-delay: 2.4s; }

.atlas-route-link-glow,
.atlas-route-link {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.atlas-route-link-glow {
  stroke: rgba(255,140,0,0.28);
  stroke-width: 9;
  filter: blur(3px);
  opacity: 0.86;
}

.atlas-route-link {
  stroke: url(#atlas-route-gradient);
  stroke-width: 3.2;
  stroke-dasharray: 9 13;
  filter: drop-shadow(0 0 8px rgba(255,140,0,0.72)) drop-shadow(0 0 14px rgba(52,211,153,0.42));
  animation: atlas-route-link-flow 1.55s linear infinite, atlas-route-link-breathe 2.8s ease-in-out infinite;
}

@keyframes atlas-route-link-flow {
  from { stroke-dashoffset: 42; }
  to { stroke-dashoffset: 0; }
}

@keyframes atlas-route-link-breathe {
  0%, 100% { opacity: 0.64; }
  50% { opacity: 1; }
}

@keyframes route-flow {
  0%, 100% { stroke-dashoffset: 0; stroke-dasharray: 0 100; opacity: 0.2; }
  50% { stroke-dasharray: 50 50; opacity: 1; }
}

.atlas-signal-dot {
  fill: rgba(56, 189, 248, 0.6);
  stroke: rgba(56, 189, 248, 0.8);
  stroke-width: 1;
  animation: signal-pulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 4px rgba(56, 189, 248, 0.4));
}

.atlas-signal-dot.dot-one   { animation-delay: 0s; }
.atlas-signal-dot.dot-two   { animation-delay: 0.8s; }
.atlas-signal-dot.dot-three { animation-delay: 1.6s; }

.route-stop-dot {
  fill: rgba(255,224,166,0.92);
  stroke: rgba(52,211,153,0.92);
  stroke-width: 1.5;
  filter: drop-shadow(0 0 8px rgba(255,140,0,0.68)) drop-shadow(0 0 16px rgba(52,211,153,0.34));
}

.route-stop-dot--active {
  fill: #FF8C00;
  stroke: #FFE1A6;
}

.atlas-linked-route {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 48px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(255,140,0,0.26);
  border-radius: 14px;
  background: rgba(2,6,17,0.58);
  color: rgba(255,232,184,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 0 24px rgba(255,140,0,0.14), inset 0 0 24px rgba(52,211,153,0.05);
  pointer-events: none;
}

.atlas-linked-route span {
  flex: 0 0 auto;
  color: #34D399;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.atlas-linked-route strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #FFE1A6;
  font-size: 0.78rem;
  text-shadow: 0 0 12px rgba(255,140,0,0.42);
}

@keyframes signal-pulse {
  0%, 100% { r: 5px; opacity: 0.3; }
  50% { r: 8px; opacity: 0.8; }
}

/* ════════════════════════════════════════════
   PREMIUM MOTION ENHANCEMENTS (2025 Redesign)
   ══════════════════════════════════════════ */

/* Cinematic particle overlay for login - VALID SYNTAX */
.login-view::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 2px at 20% 30%, rgba(255,140,0,0.3), transparent),
    radial-gradient(circle 2px at 40% 70%, rgba(56,189,248,0.2), transparent),
    radial-gradient(circle 2px at 60% 20%, rgba(15,184,160,0.2), transparent),
    radial-gradient(circle 2px at 80% 60%, rgba(255,140,0,0.15), transparent),
    radial-gradient(circle 2px at 10% 80%, rgba(139,92,246,0.2), transparent);
  animation: particle-float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes particle-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-20px) scale(1.05); opacity: 1; }
}

/* Premium glassmorphism upgrade */
.glass-panel {
  background: rgba(15, 23, 41, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}

/* Sticky scroll section styling */
.sticky-section {
  position: sticky;
  top: 80px;
  z-index: 10;
  transition: all 0.3s ease;
}

/* Premium card hover effects with 3D transform */
.premium-card {
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.premium-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    0 0 40px rgba(255,140,0,0.1);
}

/* Gradient border animation */
.animated-border {
  position: relative;
  border: none !important;
  isolation: isolate;
}

.animated-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--saffron), var(--cyan), var(--teal), var(--violet));
  background-size: 300% 300%;
  animation: border-gradient 4s ease infinite;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.animated-border:hover::before { opacity: 1; }

@keyframes border-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Smooth page transition */
.page-transition {
  animation: page-enter 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(10px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* Loading skeleton shimmer */
.skeleton {
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .login-view::before { animation: none; }
  .aurora { animation: none; }
  .login-panel { animation: none; }
  .welcome-state { animation: none; }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--saffron);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --line: rgba(255,255,255,0.3);
    --line-strong: rgba(255,255,255,0.5);
    --muted: #CCD0DD;
    --text: #FFFFFF;
  }
}

/* Print styles */
@media print {
  .topbar, .chat-sidebar, .memory-bar, .settings-section { display: none; }
  body { background: white; color: black; }
  .app-view { display: block; }
}

/* ════════════════════════════════════════════
   MOTIONSITES-INSPIRED PREMIUM REMODEL
   Visual layer only: no behavior or data changes.
   ══════════════════════════════════════════ */
:root {
  --hero-glow: rgba(255, 140, 0, 0.34);
  --hero-cyan: rgba(56, 189, 248, 0.2);
  --hero-violet: rgba(139, 92, 246, 0.18);
  --glass-hi: rgba(255, 255, 255, 0.1);
  --glass-low: rgba(255, 255, 255, 0.035);
  --premium-border: rgba(255,255,255,0.12);
  --premium-border-hot: rgba(255,140,0,0.38);
  --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background:
    radial-gradient(circle at 12% 8%, rgba(255,140,0,0.12), transparent 30vw),
    radial-gradient(circle at 86% 14%, rgba(56,189,248,0.09), transparent 34vw),
    radial-gradient(circle at 74% 82%, rgba(139,92,246,0.08), transparent 30vw),
    linear-gradient(180deg, #05070D 0%, #090E19 48%, #060911 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black 0%, transparent 68%);
  opacity: 0.28;
}

.app-shell {
  position: relative;
  isolation: isolate;
}

.login-view {
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 440px);
  gap: clamp(28px, 6vw, 88px);
  justify-content: center;
  padding: clamp(24px, 6vw, 80px);
}

.login-view::after {
  content: "";
  position: absolute;
  width: min(72vw, 920px);
  aspect-ratio: 1;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -52%);
  border-radius: 50%;
  background:
    conic-gradient(from 120deg, transparent, rgba(255,140,0,0.16), transparent, rgba(56,189,248,0.14), transparent);
  filter: blur(24px);
  opacity: 0.8;
  animation: hero-halo 18s linear infinite;
  pointer-events: none;
}

.login-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 690px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
}

.hero-kicker {
  width: max-content;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(255,140,0,0.26);
  border-radius: 999px;
  background: rgba(255,140,0,0.08);
  color: #FFD199;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 36px rgba(255,140,0,0.12);
}

.login-hero-copy h2 {
  max-width: 640px;
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: clamp(3rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: 0;
  color: #fff;
  text-wrap: balance;
}

.login-hero-copy h2::after {
  content: "";
  display: block;
  width: min(360px, 60%);
  height: 2px;
  margin-top: 22px;
  background: linear-gradient(90deg, var(--saffron), transparent);
}

.login-hero-copy p {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.75;
}

.hero-signal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 30px;
}

.hero-signal-grid span,
.hero-orbit-card {
  border: 1px solid var(--premium-border);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.035)),
    rgba(8,12,20,0.54);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0,0,0,0.32);
}

.hero-signal-grid span {
  border-radius: 14px;
  padding: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.hero-signal-grid strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.hero-orbit-card {
  position: absolute;
  width: min(260px, 42vw);
  border-radius: 18px;
  padding: 16px;
  animation: float-card 7s var(--motion-ease) infinite;
}

.hero-orbit-card small,
.hero-orbit-card span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-orbit-card strong {
  display: block;
  margin: 5px 0;
  color: #fff;
  font-size: 0.95rem;
}

.hero-orbit-card-a { right: 4%; bottom: 12%; }
.hero-orbit-card-b { right: 18%; top: 14%; animation-delay: -2.5s; }

.login-panel {
  border-radius: 28px;
  border-color: rgba(255,255,255,0.16);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.13), rgba(255,255,255,0.045)),
    rgba(9, 14, 25, 0.82);
  box-shadow:
    0 30px 100px rgba(0,0,0,0.55),
    inset 0 1px 0 rgba(255,255,255,0.16),
    0 0 80px rgba(255,140,0,0.08);
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,140,0,0.45), transparent 32%, rgba(56,189,248,0.32));
  opacity: 0.6;
}

.login-panel .primary-button,
.primary-button,
.send-button,
.gv2-apply-btn,
.settings-save-btn {
  transform: translateZ(0);
  box-shadow: 0 18px 42px rgba(255,140,0,0.22);
}

.primary-button:hover,
.send-button:hover,
.gv2-apply-btn:hover,
.settings-save-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 55px rgba(255,140,0,0.32);
}

.topbar {
  margin: 12px 12px 0;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035)),
    rgba(6, 9, 17, 0.78);
  box-shadow: 0 18px 60px rgba(0,0,0,0.35);
}

.topbar-brand .eyebrow {
  color: #fff;
  font-size: 0.8rem;
}

.tab-nav {
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  background: rgba(0,0,0,0.22);
}

.tab-btn {
  border-radius: 11px;
  position: relative;
  overflow: hidden;
}

.tab-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-110%);
  transition: transform 0.45s var(--motion-ease);
}

.tab-btn:hover::before { transform: translateX(110%); }

.app-view {
  background:
    radial-gradient(circle at 20% 10%, rgba(255,140,0,0.08), transparent 34vw),
    radial-gradient(circle at 88% 18%, rgba(56,189,248,0.07), transparent 30vw),
    transparent;
}

#mapPane,
#guidePane,
#chatPane {
  position: relative;
}

#mapPane::before,
#guidePane::before,
#chatPane::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% -10%, rgba(255,140,0,0.08), transparent 34vw),
    linear-gradient(180deg, rgba(255,255,255,0.025), transparent 190px);
}

.control-strip,
.map-card,
#terrain-map-root .insight-panel,
.chat-sidebar,
.chat-input-bar,
.memory-bar,
.modal-panel,
.gv2-filters,
.gv2-itinerary,
.gv2-hotels-section,
.gv2-card,
.guide-card,
.plan-card,
.message-bubble,
.past-trip-item,
.weather-panel,
.safety-panel {
  border-color: rgba(255,255,255,0.11);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.028)),
    rgba(8, 12, 20, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 18px 60px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.control-strip {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  align-items: end;
  border-radius: 20px;
}

.control-strip label,
.settings-label,
.gv2-step-content {
  position: relative;
}

input,
select,
textarea,
.gv2-select,
.gv2-time-input,
.origin-input {
  border-color: rgba(255,255,255,0.14);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.035)),
    rgba(4,7,13,0.58);
}

input:hover,
select:hover,
textarea:hover,
.gv2-select:hover,
.gv2-time-input:hover,
.origin-input:hover {
  border-color: rgba(255,255,255,0.24);
}

.workspace,
#terrain-map-root,
.gv2-layout,
.chat-layout {
  animation: page-enter 0.5s var(--motion-ease) both;
}

.map-card,
.gv2-card,
.guide-card,
.plan-card,
.past-trip-item,
.starter-btn,
.history-item,
.weather-panel,
.safety-panel {
  transition:
    transform 0.28s var(--motion-ease),
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    background 0.28s ease;
}

.gv2-card:hover,
.guide-card:hover,
.plan-card:hover,
.past-trip-item:hover,
.starter-btn:hover,
.history-item:hover {
  transform: translateY(-4px);
  border-color: var(--premium-border-hot);
  box-shadow:
    0 26px 80px rgba(0,0,0,0.36),
    0 0 48px rgba(255,140,0,0.08);
}

.map-card {
  border-radius: 26px;
  background:
    radial-gradient(circle at 50% 38%, rgba(56,189,248,0.1), transparent 34%),
    radial-gradient(circle at 72% 18%, rgba(255,140,0,0.11), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    #09101C;
}

.map-card.atlas-stage {
  border-color: rgba(255,140,0,0.22);
  background:
    radial-gradient(circle at 50% 42%, rgba(255,140,0,0.15), transparent 34%),
    radial-gradient(circle at 70% 28%, rgba(52,211,153,0.14), transparent 30%),
    radial-gradient(circle at 22% 62%, rgba(56,189,248,0.12), transparent 34%),
    linear-gradient(145deg, #020611 0%, #07111f 48%, #020611 100%);
  box-shadow:
    inset 0 0 150px rgba(255,140,0,0.10),
    inset 0 0 90px rgba(52,211,153,0.05),
    0 28px 90px rgba(0,0,0,0.38);
}

#terrain-map-root .insight-panel {
  border-radius: 24px;
}

.chat-main {
  background:
    radial-gradient(circle at 50% 8%, rgba(255,140,0,0.06), transparent 42vw),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 220px),
    transparent;
}

.welcome-state {
  max-width: 740px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(8,12,20,0.56);
  box-shadow: 0 28px 90px rgba(0,0,0,0.32);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.welcome-state h2 {
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.98;
  text-wrap: balance;
}

.example-prompt {
  border-radius: 999px;
  background: rgba(255,140,0,0.07);
  border-color: rgba(255,140,0,0.22);
}

.origin-strip {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.035);
}

.input-row {
  align-items: stretch;
}

.chat-textarea {
  border-radius: 18px;
}

.send-button {
  border-radius: 18px;
}

.gv2-layout {
  gap: 12px;
  padding: 12px;
}

.gv2-filters,
.gv2-itinerary {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
}

.gv2-explore {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  background:
    radial-gradient(circle at 38% 0%, rgba(56,189,248,0.08), transparent 38vw),
    rgba(255,255,255,0.025);
  overflow: hidden;
}

.gv2-step-dot {
  box-shadow:
    0 12px 28px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.22);
}

.gv2-state-chip,
.gv2-chip,
.gv2-type-btn.active {
  box-shadow: 0 10px 24px rgba(255,140,0,0.18);
}

.gv2-type-btn,
.gv2-view-btn,
.lang-btn,
.chip,
.refine-btn,
.secondary-button,
.icon-button {
  transition:
    transform 0.22s var(--motion-ease),
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease;
}

.gv2-type-btn:hover,
.gv2-view-btn:hover,
.lang-btn:hover,
.chip:hover,
.refine-btn:hover,
.secondary-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.modal-overlay {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.modal-panel {
  border-radius: 26px;
}

@keyframes hero-halo {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes float-card {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(0, -16px, 0) rotate(1deg); }
}

@media (max-width: 1100px) {
  .login-view {
    grid-template-columns: 1fr;
  }

  .login-hero-copy {
    min-height: auto;
    align-items: center;
    text-align: center;
  }

  .login-hero-copy h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-orbit-card {
    display: none;
  }

  .control-strip {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    position: relative;
    top: auto;
    margin: 8px;
    flex-wrap: wrap;
  }

  .tab-nav,
  .topbar-actions {
    flex-wrap: wrap;
  }

  .gv2-layout {
    height: auto;
    min-height: calc(100vh - 74px);
  }

  #terrain-map-root {
    flex-direction: column;
    min-height: 0;
  }

  .atlas-map {
    min-height: 520px;
  }

  #terrain-map-root .insight-panel {
    width: 100%;
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .login-view {
    padding: 18px;
  }

  .login-hero-copy h2 {
    font-size: clamp(2.45rem, 15vw, 3.8rem);
  }

  .hero-signal-grid,
  .control-strip {
    grid-template-columns: 1fr;
  }

  .login-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .topbar {
    align-items: stretch;
    gap: 10px;
  }

  .topbar-brand,
  .topbar-actions,
  .tab-nav {
    width: 100%;
  }

  .tab-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mode-badge,
  .ai-toggle-wrap {
    justify-content: center;
  }

  #mapPane {
    padding: 8px 12px 14px;
  }

  .atlas-map,
  .map-card {
    min-height: 480px;
  }

  .gv2-layout {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .gv2-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .gv2-card {
    min-height: 128px;
  }

  .origin-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .origin-input {
    flex-basis: auto;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-view::after,
  .hero-orbit-card,
  .tab-btn::before {
    animation: none !important;
    transition: none !important;
  }

  .workspace,
  #terrain-map-root,
  .gv2-layout,
  .chat-layout {
    animation: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   ATLAS CINEMATIC OVERLAY
   Pure UI layer; no existing selectors touched.
   ═══════════════════════════════════════════════════════ */

/* Container — full-screen mode (.ac--full) sits absolute over the pane */
#mapPane { position: relative; }

#mapPane.ac-journey-active:not(.ac-map-revealed) {
  height: clamp(560px, calc(100vh - 122px), 820px);
  min-height: clamp(560px, calc(100vh - 122px), 820px);
  overflow: hidden;
  padding: 0;
  background: #020611;
}

#mapPane.ac-journey-active:not(.ac-map-revealed) > :not(#atlasCinematic) {
  visibility: hidden;
  pointer-events: none;
}

.ac {
  font-family: 'Inter', ui-sans-serif, sans-serif;
}

/* Full-screen overlay */
.ac--full {
  position: absolute;
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  z-index: 50;
  height: clamp(560px, calc(100vh - 122px), 820px);
  min-height: clamp(560px, calc(100vh - 122px), 820px);
  background:
    radial-gradient(circle at 14% 18%, rgba(255,140,0,0.14), transparent 26%),
    radial-gradient(circle at 86% 72%, rgba(16,185,129,0.12), transparent 30%),
    linear-gradient(145deg, #020611 0%, #081426 48%, #02040b 100%);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-shadow: inset 0 -120px 160px rgba(255,140,0,0.06);
}

/* Bar mode — static flex child, just a header strip */
.ac--bar {
  position: static;
  z-index: auto;
  background: transparent;
  overflow: visible;
  display: block;
}

/* ── PROGRESS DOTS ─────────────────────────────────────── */
.ac-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 18px 12px 0;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: min(900px, calc(100% - 24px));
  pointer-events: none;
}

.ac-route-progress {
  filter: drop-shadow(0 0 18px rgba(255,140,0,0.14));
}

.ac-waypoint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.48);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ac-waypoint-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  transition: background 0.4s, box-shadow 0.4s, transform 0.4s;
}

.ac-waypoint--active,
.ac-waypoint--done {
  color: rgba(255,244,222,0.96);
}

.ac-waypoint--active .ac-waypoint-dot,
.ac-waypoint--done .ac-waypoint-dot {
  background: var(--saffron);
  border-color: rgba(255,190,92,0.95);
  box-shadow: 0 0 18px rgba(255,140,0,0.72), 0 0 0 5px rgba(255,140,0,0.12);
}

.ac-waypoint--active .ac-waypoint-dot {
  transform: scale(1.24);
}

.ac-route-line {
  width: clamp(14px, 5vw, 70px);
  height: 2px;
  margin: 0 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
}

.ac-route-line--done {
  background: linear-gradient(90deg, rgba(255,140,0,0.9), rgba(52,211,153,0.65));
  box-shadow: 0 0 14px rgba(255,140,0,0.24);
}

.ac-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: background 0.4s, transform 0.4s;
  flex-shrink: 0;
}

.ac-dot--active {
  background: var(--saffron);
  transform: scale(1.4);
  box-shadow: 0 0 12px var(--saffron-glow);
}

.ac-dot--done { background: rgba(255,140,0,0.45); }

.ac-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.ac-line--done { background: rgba(255,140,0,0.4); }

/* ── SECTION BASE ──────────────────────────────────────── */
.ac-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 60px 24px 40px;
  min-height: 100%;
  text-align: center;
  overflow: hidden;
  transform-origin: center;
}

.ac-section--entering {
  opacity: 0;
  transform: translateY(40px) scale(0.96);
  filter: blur(8px);
}

.ac-section--entered {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition: opacity 0.72s cubic-bezier(0.16,1,0.3,1), transform 0.72s cubic-bezier(0.16,1,0.3,1), filter 0.72s ease;
}

.ac-section--leaving {
  opacity: 0 !important;
  transform: translateY(-34px) scale(1.035) !important;
  filter: blur(9px) !important;
  transition: opacity 0.36s ease, transform 0.36s ease, filter 0.36s ease !important;
}

.ac-center {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 680px;
  width: 100%;
}

.ac-world {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ac-world::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    linear-gradient(115deg, transparent 0 36%, rgba(255,180,84,0.09) 37%, transparent 49%),
    linear-gradient(54deg, transparent 0 56%, rgba(52,211,153,0.08) 57%, transparent 68%);
  animation: ac-camera-push 13s ease-in-out infinite alternate;
}

.ac-cloud {
  position: absolute;
  width: 38vw;
  height: 15vw;
  min-width: 260px;
  min-height: 110px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.18), rgba(255,255,255,0.045) 58%, transparent 74%);
  filter: blur(16px);
  opacity: 0.46;
  animation: ac-cloud-drift 22s ease-in-out infinite alternate;
}
.ac-cloud--one { top: 7%; left: -10%; }
.ac-cloud--two { right: -12%; top: 42%; animation-delay: -7s; }
.ac-cloud--three { left: 28%; bottom: -8%; animation-delay: -13s; }

.ac-map-thread {
  position: absolute;
  width: 46vw;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,190,92,0.68), transparent);
  box-shadow: 0 0 24px rgba(255,140,0,0.2);
  opacity: 0.3;
}
.ac-map-thread--one { top: 27%; left: 8%; transform: rotate(-18deg); }
.ac-map-thread--two { right: 2%; bottom: 31%; transform: rotate(15deg); }
.ac-map-thread--three { left: 25%; bottom: 18%; transform: rotate(-5deg); }

@keyframes ac-camera-push {
  from { transform: translate3d(-1%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.06); }
}

@keyframes ac-cloud-drift {
  from { transform: translateX(-5%) translateY(0); }
  to { transform: translateX(8%) translateY(7%); }
}

/* ── AURORA BACKGROUND ─────────────────────────────────── */
.ac-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 30%, rgba(255,140,0,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(15,184,160,.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 35% at 55% 50%, rgba(139,92,246,.06) 0%, transparent 60%);
  filter: blur(40px);
  animation: ac-aurora-shift 12s ease-in-out infinite alternate;
}

@keyframes ac-aurora-shift {
  0%   { opacity: 0.7; transform: scale(1); }
  50%  { opacity: 1; transform: scale(1.05) rotate(1deg); }
  100% { opacity: 0.8; transform: scale(0.97) rotate(-1deg); }
}

/* ── FLOATING PARTICLES ────────────────────────────────── */
.ac-floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.ac-float {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0.12;
  animation: ac-float-drift linear infinite;
  filter: blur(0.5px);
}

@keyframes ac-float-drift {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  15%  { opacity: 0.14; }
  85%  { opacity: 0.1; }
  100% { transform: translateY(-60px) rotate(8deg); opacity: 0; }
}

/* ── DISCOVER STEP ─────────────────────────────────────── */
.ac-discover { background: var(--bg); position: relative; }
.ac-discover-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
  filter: brightness(0.28) saturate(0.75);
  z-index: 0;
  pointer-events: none;
}

.ac-eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--saffron);
  opacity: 0.85;
  margin-bottom: 20px;
}

.ac-hero {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 28px;
}

.ac-hero em {
  font-style: italic;
  color: var(--saffron);
}

.ac-sub {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 0 48px;
}

.ac-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 44px;
  background: var(--saffron);
  color: #000;
  border: none;
  border-radius: 100px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(255,140,0,0.35), 0 2px 8px rgba(0,0,0,0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  margin-bottom: 32px;
}

.ac-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255,140,0,0.5), 0 4px 16px rgba(0,0,0,0.4);
}

.ac-cta:active { transform: scale(0.97); }

.ac-cta--secondary {
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: none;
  font-size: 0.8rem;
  padding: 13px 28px;
}

.ac-cta--secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  box-shadow: none;
  color: var(--text);
}

.ac-center .ac-cta + .ac-cta { margin-top: 0; }
.ac-center .ac-cta { margin-bottom: 12px; }

.ac-arrow { transition: transform 0.2s ease; }
.ac-cta:hover .ac-arrow { transform: translateX(4px); }

.ac-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.ac-chips span {
  padding: 7px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--muted-light);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ── FORM STEPS (Dates / Travelers / Duration) ─────────── */
.ac-form-step { background: var(--bg); }

.ac-kicker {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}

.ac-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 44px;
}

.ac-title em {
  font-style: italic;
  color: var(--saffron);
}

/* Dates */
.ac-date-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 52px;
  flex-wrap: wrap;
  justify-content: center;
}

.ac-date-field {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.ac-date-lbl {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.ac-date-inp {
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255,255,255,0.12);
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700;
  text-align: center;
  padding: 8px 4px;
  outline: none;
  width: 100%;
  transition: border-color 0.3s;
  cursor: pointer;
  color-scheme: dark;
}

.ac-date-inp:focus { border-bottom-color: var(--saffron); }

.ac-date-arrow {
  font-size: 1.6rem;
  color: var(--saffron);
  opacity: 0.6;
  padding-bottom: 10px;
  flex-shrink: 0;
}

/* Traveler type pills */
.ac-type-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}

.ac-type-btn {
  padding: 12px 26px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  color: var(--muted-light);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ac-type-btn:hover {
  border-color: rgba(255,140,0,0.3);
  color: var(--text);
  background: rgba(255,140,0,0.06);
}

.ac-type-btn--on {
  background: rgba(255,140,0,0.12);
  border-color: var(--saffron);
  color: var(--saffron);
  box-shadow: 0 0 20px rgba(255,140,0,0.18);
}

/* Counter */
.ac-counter {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 52px;
}

.ac-ctr-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.25s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-ctr-btn:hover {
  background: rgba(255,140,0,0.12);
  border-color: var(--saffron);
  color: var(--saffron);
}

.ac-ctr-display { text-align: center; }

.ac-ctr-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 6rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
}

.ac-ctr-lbl {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

/* Duration */
.ac-dur-display {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 36px;
}

.ac-dur-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  transition: color 0.2s;
}

.ac-dur-unit {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.ac-range {
  width: 100%;
  max-width: 420px;
  height: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(to right, var(--saffron) calc(var(--pct, 20%) * 1%), rgba(255,255,255,0.1) 0%);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin-bottom: 14px;
}

.ac-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 16px rgba(255,140,0,0.5);
  cursor: pointer;
  transition: transform 0.15s;
}

.ac-range::-webkit-slider-thumb:hover { transform: scale(1.3); }

.ac-range-ends {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 52px;
}

/* Continue / Next button */
.ac-next {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ac-next:hover {
  background: var(--saffron);
  border-color: var(--saffron);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,140,0,0.3);
}

.ac-next-arrow { transition: transform 0.2s; }
.ac-next:hover .ac-next-arrow { transform: translateX(4px); }
.ac-next--skip {
  background: transparent;
  border-color: rgba(255,255,255,0.08);
  color: var(--muted-light);
  font-weight: 500;
}
.ac-next--skip:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
  color: var(--text);
  transform: none;
  box-shadow: none;
}

/* ── ORIGIN STEP ────────────────────────────────────────── */
.ac-origin-wrap {
  margin: 0 auto 16px;
  width: 100%;
  max-width: 420px;
}
.ac-origin-inp {
  width: 100%;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Space Grotesk', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ac-origin-inp::placeholder { color: var(--muted-light); }
.ac-origin-inp:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px rgba(255,140,0,0.15);
}
.ac-origin-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.ac-origin-chip {
  padding: 7px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 100px;
  color: var(--muted-light);
  font-size: 0.8rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  transition: all 0.18s ease;
}
.ac-origin-chip:hover {
  background: rgba(255,140,0,0.12);
  border-color: rgba(255,140,0,0.35);
  color: var(--text);
}
.ac-origin-chip--on {
  background: rgba(255,140,0,0.18);
  border-color: var(--saffron);
  color: var(--saffron);
}
.ac-dest-sublabel {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
  margin: 0 0 10px;
  opacity: 0.6;
}
.ac-more-dest-wrap {
  max-width: 380px;
  margin: 0 auto 20px;
}
.ac-more-dest-select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--muted-light);
  font-size: 0.85rem;
  font-family: 'Space Grotesk', sans-serif;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  transition: border-color 0.18s ease;
}
.ac-more-dest-select:hover,
.ac-more-dest-select:focus {
  border-color: rgba(255,140,0,0.4);
  outline: none;
}
.ac-more-dest-select optgroup {
  font-weight: 600;
  color: var(--saffron);
  background: #1a1a2e;
}
.ac-more-dest-select option {
  color: #ddd;
  background: #1a1a2e;
  padding: 4px 8px;
}
.ac-selected-dests {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto 20px;
  min-height: 0;
}
.ac-sel-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px 5px 13px;
  background: rgba(255,140,0,0.15);
  border: 1px solid var(--saffron);
  border-radius: 100px;
  color: var(--saffron);
  font-size: 0.78rem;
  font-family: 'Space Grotesk', sans-serif;
}
.ac-sel-chip-rm {
  background: none;
  border: none;
  color: rgba(255,140,0,0.7);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}
.ac-sel-chip-rm:hover { color: #fff; }
.ac-origin-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── EXPLORE BAR ───────────────────────────────────────── */
.ac-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(15,23,41,0.97), rgba(22,32,56,0.97));
  border: 1px solid rgba(255,140,0,0.2);
  border-radius: var(--r-md);
  margin-bottom: 4px;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,140,0,0.08) inset;
  flex-wrap: wrap;
  gap: 12px;
}

.ac--explore {
  animation: ac-explore-bar-in 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

.ac-explore-route {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px 10px;
  overflow-x: auto;
  color: rgba(255,255,255,0.48);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-explore-waypoint {
  white-space: nowrap;
}

.ac-explore-waypoint--done {
  color: rgba(255,218,155,0.98);
  text-shadow: 0 0 14px rgba(255,140,0,0.34);
}

.ac-explore-line {
  width: 34px;
  height: 2px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,140,0,0.85), rgba(52,211,153,0.55));
}

#mapPane.ac-map-revealed .control-strip {
  animation: ac-map-controls-in 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

#mapPane.ac-map-revealed #terrain-map-root {
  position: relative;
  animation: ac-destination-world-in 1s cubic-bezier(0.16,1,0.3,1) both;
  box-shadow: inset 0 0 120px rgba(255,140,0,0.08);
}

#mapPane.ac-map-revealed #terrain-map-root::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 20%, rgba(255,180,84,0.18), transparent 30%),
    linear-gradient(180deg, rgba(255,255,255,0.06), transparent 32%);
  opacity: 0;
  animation: ac-map-glow-sweep 1.6s ease both;
  z-index: 5;
}

@keyframes ac-explore-bar-in {
  from { opacity: 0; transform: translateY(-18px); filter: blur(8px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

@keyframes ac-map-controls-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ac-destination-world-in {
  0% { opacity: 0.35; transform: perspective(1100px) translateY(42px) rotateX(8deg) scale(0.965); filter: blur(10px) saturate(0.8); }
  60% { opacity: 1; filter: blur(0) saturate(1.15); }
  100% { opacity: 1; transform: perspective(1100px) translateY(0) rotateX(0) scale(1); filter: blur(0) saturate(1); }
}

@keyframes ac-map-glow-sweep {
  0% { opacity: 0; transform: translateY(-14%); }
  35% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(20%); }
}

.ac-bar-left { display: flex; flex-direction: column; gap: 3px; }

.ac-bar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
}

.ac-bar-meta {
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 0.05em;
}

.ac-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ac-dest-tag {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--saffron);
  background: rgba(255,140,0,0.1);
  border: 1px solid rgba(255,140,0,0.2);
  padding: 5px 12px;
  border-radius: 100px;
}

.ac-gen-btn {
  padding: 10px 22px;
  background: var(--saffron);
  border: none;
  border-radius: 100px;
  color: #000;
  font-size: 0.8rem;
  font-weight: 800;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,140,0,0.3);
  transition: all 0.25s ease;
}

.ac-gen-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,140,0,0.5);
}

.ac-gen-btn--off {
  background: rgba(255,255,255,0.07);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
}

.ac-gen-btn--off:hover { transform: none; box-shadow: none; }

.ac-restart {
  padding: 8px 14px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}

.ac-restart:hover {
  border-color: rgba(255,255,255,0.25);
  color: var(--text);
}

.ac-hint {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 6px 16px 10px;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
}

.ac-hint strong { color: var(--saffron); }

/* Final cloud-to-destination drop before handing off to Plan a Trip. */
.ac-sky-drop {
  position: fixed;
  inset: 0;
  z-index: 5000;
  pointer-events: none;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  background:
    linear-gradient(180deg, #dbeeff 0%, #6b99c6 38%, #071326 100%);
}

.ac-sky-drop--active {
  visibility: visible;
  opacity: 1;
  animation: ac-drop-overlay 2.45s cubic-bezier(0.2,0.86,0.2,1) both;
}

.ac-drop-cloud {
  position: absolute;
  left: -15%;
  right: -15%;
  height: 44%;
  background:
    radial-gradient(ellipse at 16% 40%, rgba(255,255,255,0.96), transparent 26%),
    radial-gradient(ellipse at 46% 58%, rgba(255,255,255,0.86), transparent 32%),
    radial-gradient(ellipse at 78% 38%, rgba(255,255,255,0.9), transparent 28%);
  filter: blur(12px);
}

.ac-drop-cloud--top {
  top: -9%;
  animation: ac-cloud-split-top 2.15s ease both;
}

.ac-drop-cloud--bottom {
  bottom: -12%;
  transform: rotate(180deg);
  animation: ac-cloud-split-bottom 2.15s ease both;
}

.ac-drop-speed {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(100deg, transparent 0 16px, rgba(255,255,255,0.36) 17px 19px, transparent 20px 52px);
  opacity: 0;
  animation: ac-drop-speed 1.45s ease 0.35s both;
}

.ac-drop-map {
  position: absolute;
  left: 50%;
  top: 58%;
  width: min(82vmin, 680px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(1.8);
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 40%, rgba(255,140,0,0.5), transparent 5%),
    radial-gradient(circle at 44% 52%, rgba(52,211,153,0.32), transparent 7%),
    radial-gradient(circle at 48% 50%, rgba(3,7,18,0.82), rgba(3,7,18,0.18) 48%, transparent 58%);
  box-shadow: 0 0 80px rgba(255,140,0,0.2);
  opacity: 0;
  animation: ac-drop-map-zoom 1.7s ease 0.55s both;
}

.ac-drop-title {
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%) scale(1.25);
  display: grid;
  gap: 8px;
  text-align: center;
  color: #fff7dc;
  text-shadow: 0 0 34px rgba(255,140,0,0.85), 0 10px 50px rgba(0,0,0,0.8);
  opacity: 0;
  animation: ac-drop-title 1.85s ease 0.42s both;
}

.ac-drop-title span {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.ac-drop-title strong {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 10vw, 7.5rem);
  line-height: 0.9;
}

.ac-drop-flash {
  position: absolute;
  inset: 0;
  background: #fff8dc;
  opacity: 0;
  animation: ac-drop-flash 2.35s ease both;
}

@keyframes ac-cloud-split-top {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-46%) scale(1.35); opacity: 0.18; }
}

@keyframes ac-cloud-split-bottom {
  0% { transform: translateY(0) rotate(180deg) scale(1); opacity: 1; }
  100% { transform: translateY(46%) rotate(180deg) scale(1.35); opacity: 0.16; }
}

@keyframes ac-drop-speed {
  0% { opacity: 0; transform: translateY(-28%) scale(1.05); }
  38% { opacity: 0.72; }
  100% { opacity: 0; transform: translateY(35%) scale(1.42); }
}

@keyframes ac-drop-map-zoom {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(2.15); filter: blur(12px); }
  48% { opacity: 1; filter: blur(0); }
  100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.86); filter: blur(3px); }
}

@keyframes ac-drop-title {
  0% { opacity: 0; transform: translate(-50%, -64%) scale(1.65); filter: blur(10px); }
  42% { opacity: 1; filter: blur(0); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.82); filter: blur(4px); }
}

@keyframes ac-drop-flash {
  0%, 72% { opacity: 0; }
  84% { opacity: 0.86; }
  100% { opacity: 0; }
}

@keyframes ac-drop-overlay {
  0% { transform: scale(1); }
  72% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* ── CUSTOM CURSOR ─────────────────────────────────────── */
.ac-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,140,0,0.5);
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  display: none;
  transition: width 0.25s, height 0.25s, border-color 0.25s;
}

.ac-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--saffron);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  display: none;
}

.ac-cursor-ring--hover {
  width: 48px;
  height: 48px;
  border-color: var(--saffron);
  background: rgba(255,140,0,0.06);
}

@media (pointer: fine) {
  .ac-cursor-ring,
  .ac-cursor-dot { display: block; }
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 640px) {
  .ac-hero { font-size: 3rem; }
  .ac-title { font-size: 2.2rem; }
  .ac-progress { justify-content: flex-start; overflow-x: auto; padding-left: 18px; padding-right: 18px; }
  .ac-waypoint-label { display: none; }
  .ac-route-line { width: 34px; margin: 0 7px; }
  .ac-date-row { flex-direction: column; align-items: center; }
  .ac-date-arrow { transform: rotate(90deg); }
  .ac-bar { flex-direction: column; align-items: flex-start; }
  .ac-bar-right { width: 100%; justify-content: flex-end; }
  .ac-cta { padding: 16px 32px; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-cinematic-world,
  .atlas-cinematic-world::before,
  .atlas-cinematic-world::after,
  .atlas-route-line,
  .atlas-route-link,
  .atlas-signal-dot,
  .ac-world::before,
  .ac-cloud,
  .ac-aurora,
  .ac-float,
  .ac--explore,
  #mapPane.ac-map-revealed .control-strip,
  #mapPane.ac-map-revealed #terrain-map-root,
  #mapPane.ac-map-revealed #terrain-map-root::before,
  .ac-sky-drop--active,
  .ac-drop-cloud--top,
  .ac-drop-cloud--bottom,
  .ac-drop-speed,
  .ac-drop-map,
  .ac-drop-title,
  .ac-drop-flash {
    animation: none !important;
  }
  .ac-section--entering,
  .ac-section--entered,
  .ac-section--leaving {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* Range slider track gradient update via JS */
.ac-range { --pct: 20%; }

/* ══════════════════════════════════════════════════════════
   JOURNEY PLANNER PANE  (tabJourney / journeyPane)
   ══════════════════════════════════════════════════════════ */
.jp-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  height: 100%;
  overflow: hidden;
}
.jp-form {
  padding: 18px 16px;
  overflow-y: auto;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(255,255,255,0.012);
}
.jp-form-head {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.jp-field { display: flex; flex-direction: column; gap: 7px; }
.jp-field-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.jp-text-inp {
  padding: 9px 13px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.87rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.jp-text-inp:focus { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,140,0,0.12); }
.jp-text-inp::placeholder { color: var(--muted-light); }
.jp-quick-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.jp-chip {
  padding: 4px 11px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 0.73rem;
  cursor: pointer;
  transition: all 0.15s;
}
.jp-chip:hover { border-color: var(--saffron); color: var(--text); }
.jp-chip--on { background: rgba(255,140,0,0.15); border-color: var(--saffron); color: var(--saffron); }
.jp-date-row { display: flex; align-items: center; gap: 7px; }
.jp-date-inp {
  flex: 1; min-width: 0;
  padding: 8px 9px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  font-size: 0.8rem;
  outline: none;
}
.jp-date-inp:focus { border-color: var(--saffron); }
.jp-date-sep { color: var(--muted-light); font-size: 0.8rem; flex-shrink: 0; }
.jp-type-pills { display: flex; flex-wrap: wrap; gap: 5px; }
.jp-type-pill {
  padding: 5px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 0.76rem;
  cursor: pointer;
  transition: all 0.15s;
}
.jp-type-pill:hover { border-color: var(--saffron); color: var(--text); }
.jp-type-pill--on { background: rgba(255,140,0,0.15); border-color: var(--saffron); color: var(--saffron); }
.jp-counter { display: flex; align-items: center; gap: 9px; margin-top: 2px; }
.jp-ctr-btn {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s;
  line-height: 1;
}
.jp-ctr-btn:hover { background: rgba(255,140,0,0.15); border-color: var(--saffron); }
.jp-ctr-num { font-size: 1rem; font-weight: 700; color: var(--text); min-width: 20px; text-align: center; }
.jp-ctr-lbl { font-size: 0.75rem; color: var(--muted-light); }
.jp-range { width: 100%; accent-color: var(--saffron); cursor: pointer; }
.jp-range-ends { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted-light); }

/* Map column */
.jp-map-col { display: flex; flex-direction: column; overflow: hidden; }
.jp-map-header {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.jp-map-title { font-size: 0.86rem; font-weight: 600; color: var(--text); }
.jp-map-hint { font-size: 0.7rem; color: var(--muted-light); }
.jp-map { flex: 1; min-height: 0; }
.jp-map .leaflet-container { background: #0a0a0f !important; }

/* Destination bar */
.jp-dest-bar {
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex-shrink: 0;
  min-height: 50px;
}
.jp-dest-empty { font-size: 0.78rem; color: var(--muted-light); flex: 1; }
.jp-dest-chips { display: flex; flex-wrap: wrap; gap: 5px; flex: 1; }
.jp-dest-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  background: rgba(255,140,0,0.12);
  border: 1px solid rgba(255,140,0,0.35);
  border-radius: 999px;
  color: var(--saffron);
  font-size: 0.73rem; font-weight: 600;
}
.jp-dest-chip-x { opacity: 0.55; cursor: pointer; font-size: 12px; }
.jp-dest-chip-x:hover { opacity: 1; }
.jp-gen-btn {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 20px;
  background: var(--saffron);
  border: none; border-radius: 999px;
  color: #000; font-size: 0.8rem; font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 4px 14px rgba(255,140,0,0.3);
}
.jp-gen-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.jp-gen-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,140,0,0.45); }
.jp-gen-arrow { transition: transform 0.2s; }
.jp-gen-btn:not(:disabled):hover .jp-gen-arrow { transform: translateX(4px); }

/* Leaflet markers inside Journey pane (#jpMap) */
#jpMap .jmap-marker {
  position: relative;
  width: 14px; height: 14px;
  cursor: pointer !important;
}
#jpMap .jmap-marker-core {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #FF8C00;
  box-shadow: 0 0 8px 2px rgba(255,140,0,0.55);
  top: 2px; left: 2px;
  transition: transform 0.18s, box-shadow 0.18s;
}
#jpMap .jmap-marker:hover .jmap-marker-core {
  transform: scale(1.5);
  box-shadow: 0 0 18px 6px rgba(255,140,0,0.7), 0 0 0 3px rgba(255,140,0,0.3);
}
#jpMap .jmap-marker-pulse {
  position: absolute;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(255,140,0,0.18);
  top: 0; left: 0;
  animation: jmap-pulse 2.2s ease-out infinite;
}
@keyframes jmap-pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  70%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}
/* Selected state */
#jpMap .jmap-marker--selected .jmap-marker-core {
  background: #fff;
  box-shadow: 0 0 14px 4px rgba(255,255,255,0.7), 0 0 0 3px rgba(255,140,0,0.6);
  transform: scale(1.35);
}
#jpMap .jmap-marker--selected .jmap-marker-pulse {
  background: rgba(255,255,255,0.22);
  animation: jmap-pulse-sel 1.2s ease-out infinite;
}
@keyframes jmap-pulse-sel {
  0%   { transform: scale(1); opacity: 0.8; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}
/* Leaflet tooltip in journey pane */
#jpMap .jmap-tip {
  background: rgba(10,10,20,0.92);
  border: 1px solid rgba(255,140,0,0.35);
  color: #f0e6d0;
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .jp-layout { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .jp-form { border-right: none; border-bottom: 1px solid var(--border); max-height: 260px; }
}

.gv2-inline-back-btn {
  margin-left: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 153, 0, 0.5);
  background: rgba(255, 153, 0, 0.12);
  color: #ffb347;
  font-size: 0.75rem;
  cursor: pointer;
}
.gv2-inline-back-btn:hover { background: rgba(255, 153, 0, 0.2); }

/* ── Cinematic Route Overlay ───────────────────────────── */
.ac-route-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  opacity: 0;
  transition: opacity 1s ease;
}
.ac-route-overlay--in { opacity: 1; }
.ac-route-svg { width: 100%; height: 100%; overflow: visible; }

.ac-route-link {
  stroke: var(--saffron, #FF8C00);
  stroke-width: 0.4;
  stroke-dasharray: 3 1.5;
  opacity: 0.75;
  animation: ac-rd 3s linear infinite;
  filter: drop-shadow(0 0 1px rgba(255,140,0,0.6));
}
@keyframes ac-rd { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -18; } }

.ac-route-dot {
  fill: #FF8C00;
  filter: url(#acNodeGlow);
  opacity: 0;
  animation: ac-nd-in 0.4s ease forwards;
  animation-delay: var(--nd, 0s);
}
@keyframes ac-nd-in { to { opacity: 1; } }

.ac-route-pulse {
  fill: rgba(255,140,0,0.35);
  transform-origin: center;
  opacity: 0;
  animation: ac-nd-in 0.4s ease forwards, ac-pulse 2s ease-out infinite;
  animation-delay: var(--nd, 0s), calc(var(--nd, 0s) + 0.4s);
}
.ac-route-pulse--2 {
  animation-delay: calc(var(--nd, 0s) + 0.8s), calc(var(--nd, 0s) + 1.2s);
}
@keyframes ac-pulse {
  0% { r: 2.5; opacity: 0.6; }
  100% { r: 7; opacity: 0; }
}

.ac-route-label {
  fill: rgba(255,218,155,0.92);
  font-size: 2.8px;
  font-family: 'Space Grotesk', monospace;
  font-weight: 700;
  text-anchor: middle;
  letter-spacing: 0.03em;
  text-shadow: none;
  filter: url(#acNodeGlow);
  opacity: 0;
  animation: ac-nd-in 0.5s ease forwards;
  animation-delay: calc(var(--nd, 0s) + 0.2s);
}

/* ── Portal Transition ─────────────────────────────────── */
.ac-portal {
  position: fixed;
  inset: 0;
  z-index: 8500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4,0,0.2,1);
}
.ac-portal--in {
  opacity: 1;
  pointer-events: all;
}
.ac-portal--out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1);
}
.ac-portal-bg {
  position: absolute;
  inset: 0;
  background: #030712;
  backdrop-filter: blur(20px);
}
.ac-portal-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255,140,0,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 30% 60%, rgba(15,184,160,0.06) 0%, transparent 60%);
}
.ac-portal-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.ac-portal-eyebrow {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,218,155,0.6);
}
.ac-portal-dest {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, #FF8C00 0%, #FFD89B 45%, #0FB8A0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 40px rgba(255,140,0,0.3));
}
.ac-portal-bar {
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.ac-portal-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #FF8C00, #0FB8A0);
  border-radius: 999px;
  animation: ac-portal-load 0.8s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}
@keyframes ac-portal-load { to { width: 100%; } }

/* ── Chat pane reveal ──────────────────────────────────── */
@keyframes ac-chat-reveal-anim {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ac-chat-reveal {
  animation: ac-chat-reveal-anim 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

/* ══════════════════════════════════════════════════════════
   PREMIUM MOTION DESIGN  — motionsites.ai inspired
   ══════════════════════════════════════════════════════════ */

/* ── Discover screen: rich mesh backdrop ─────────────────── */
.ac-discover {
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%,  rgba(255,140,0,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 70% at 85% 90%,  rgba(15,184,160,0.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 10% 80%,  rgba(56,189,248,0.04) 0%, transparent 50%);
}
/* Subtle noise grain overlay */
.ac-discover::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── Hero italic: gradient flame text ───────────────────── */
.ac-hero em {
  font-style: italic;
  background: linear-gradient(130deg, #FF8C00 0%, #FFD580 38%, #FF6B35 72%, #FF8C00 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ac-hero-flame 5s linear infinite;
  filter: drop-shadow(0 0 28px rgba(255,140,0,0.45));
}
@keyframes ac-hero-flame {
  from { background-position: 0% center; }
  to   { background-position: 200% center; }
}

/* Form step title italic: same treatment */
.ac-title em {
  background: linear-gradient(130deg, #FF8C00 0%, #FFD580 50%, #FF6B35 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: ac-hero-flame 5s linear infinite;
}

/* ── Kicker: pill badge style ───────────────────────────── */
.ac-kicker {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid rgba(255,140,0,0.28);
  border-radius: 999px;
  background: rgba(255,140,0,0.06);
  backdrop-filter: blur(10px);
  font-family: 'Space Grotesk', monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 18px;
}

/* ── Primary CTA: shimmer sweep + glow ring ─────────────── */
.ac-cta--journey {
  position: relative;
  overflow: hidden;
  background: linear-gradient(130deg, #FF8C00 0%, #E67300 100%);
  box-shadow:
    0 0 0 0 rgba(255,140,0,0),
    0 8px 32px rgba(255,140,0,0.4),
    0 2px 8px rgba(0,0,0,0.5);
  animation: ac-cta-pulse 3s ease-in-out infinite;
}
/* Shimmer sweep */
.ac-cta--journey::before {
  content: '';
  position: absolute;
  top: -10%; left: -140%;
  width: 55%; height: 120%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.22) 50%, transparent 100%);
  transform: skewX(-20deg);
  animation: ac-cta-shimmer 2.8s ease-in-out infinite;
  border-radius: inherit;
}
@keyframes ac-cta-shimmer {
  0%   { left: -140%; }
  100% { left: 240%; }
}
/* Breathing glow ring */
@keyframes ac-cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,140,0,0), 0 8px 32px rgba(255,140,0,0.4), 0 2px 8px rgba(0,0,0,0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(255,140,0,0.1), 0 12px 40px rgba(255,140,0,0.55), 0 4px 12px rgba(0,0,0,0.5); }
}

/* ── Step transitions: 3D perspective depth ─────────────── */
.ac-section--entering {
  opacity: 0;
  transform: perspective(900px) translateY(44px) rotateX(10deg) scale(0.97);
  filter: blur(8px);
}
.ac-section--entered {
  opacity: 1;
  transform: perspective(900px) translateY(0) rotateX(0) scale(1);
  filter: blur(0);
  transition:
    opacity 0.68s cubic-bezier(0.16,1,0.3,1),
    transform 0.68s cubic-bezier(0.16,1,0.3,1),
    filter 0.68s ease;
}
.ac-section--leaving {
  opacity: 0 !important;
  transform: perspective(900px) translateY(-32px) rotateX(-8deg) scale(1.02) !important;
  filter: blur(9px) !important;
  transition: opacity 0.32s ease, transform 0.32s ease, filter 0.32s ease !important;
}

/* ── Destination / origin chips: magnetic lift ──────────── */
.ac-origin-chip {
  transition: all 0.22s cubic-bezier(0.16,1,0.3,1) !important;
}
.ac-origin-chip:hover {
  transform: translateY(-3px) scale(1.06) !important;
  box-shadow: 0 6px 20px rgba(255,140,0,0.28) !important;
}
.ac-origin-chip--on {
  box-shadow: 0 0 0 1.5px rgba(255,140,0,0.9), 0 4px 22px rgba(255,140,0,0.38) !important;
  animation: ac-chip-breathe 2.2s ease-in-out infinite !important;
}
@keyframes ac-chip-breathe {
  0%, 100% { box-shadow: 0 0 0 1.5px rgba(255,140,0,0.8), 0 4px 22px rgba(255,140,0,0.32); }
  50%      { box-shadow: 0 0 0 2px rgba(255,140,0,0.6), 0 6px 32px rgba(255,140,0,0.55); }
}

/* ── Traveler type buttons ───────────────────────────────── */
.ac-type-btn {
  transition: all 0.22s cubic-bezier(0.16,1,0.3,1);
}
.ac-type-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 18px rgba(255,140,0,0.22); }
.ac-type-btn--on   { animation: ac-chip-breathe 2.4s ease-in-out infinite; }

/* ── Input focus: saffron glow ──────────────────────────── */
.ac-origin-inp:focus {
  border-color: rgba(255,140,0,0.75) !important;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.1), 0 0 18px rgba(255,140,0,0.08) !important;
  background: rgba(255,140,0,0.025) !important;
  outline: none;
}
.ac-date-inp:focus {
  border-color: rgba(255,140,0,0.75) !important;
  box-shadow: 0 0 0 3px rgba(255,140,0,0.1) !important;
  outline: none;
}

/* ── Generate button: shimmer + pulse ───────────────────── */
.ac-gen-btn {
  position: relative;
  overflow: hidden;
}
.ac-gen-btn::before {
  content: '';
  position: absolute;
  top: -10%; left: -180%;
  width: 70%; height: 120%;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transform: skewX(-18deg);
  animation: ac-gen-shimmer 2.2s ease-in-out infinite;
}
@keyframes ac-gen-shimmer {
  0%   { left: -180%; }
  100% { left: 280%; }
}

/* ── Route overlay: brighter + particle feel ────────────── */
.ac-route-link {
  stroke: rgba(255,140,0,0.85);
  stroke-width: 0.5;
  stroke-dasharray: 2.5 1.5;
  filter: drop-shadow(0 0 1.5px rgba(255,140,0,0.7));
}
.ac-route-dot {
  fill: #FF8C00;
  filter: url(#acNodeGlow) drop-shadow(0 0 2px rgba(255,140,0,0.9));
}
.ac-route-label {
  font-size: 3.2px;
  fill: rgba(255,230,170,0.95);
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.8));
}

/* ── Portal: richer background ──────────────────────────── */
.ac-portal-bg {
  background: #020912;
}
.ac-portal-bg::after {
  background:
    radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,140,0,0.1) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 30% 70%, rgba(15,184,160,0.07) 0%, transparent 55%),
    radial-gradient(ellipse 35% 45% at 75% 30%, rgba(56,189,248,0.05) 0%, transparent 50%);
  animation: ac-portal-breathe 2s ease-in-out infinite alternate;
}
@keyframes ac-portal-breathe {
  from { opacity: 0.7; transform: scale(1); }
  to   { opacity: 1;   transform: scale(1.04); }
}

/* ── Form step: ambient corner glows ────────────────────── */
.ac-form-step {
  position: relative;
  overflow: hidden;
}
.ac-form-step::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 45% 35% at 15% 85%, rgba(255,140,0,0.035) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 85% 15%, rgba(15,184,160,0.03) 0%, transparent 55%);
}

/* ── Counter animation on +/- click ─────────────────────── */
@keyframes ac-num-pop {
  0%   { transform: scale(0.7); opacity: 0.4; }
  60%  { transform: scale(1.15); }
  100% { transform: scale(1);   opacity: 1; }
}
.ac-ctr-num { display: inline-block; }

/* ── Secondary CTA border glow on hover ─────────────────── */
.ac-cta--secondary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}
.ac-cta--secondary:hover {
  border-color: rgba(255,140,0,0.35);
  box-shadow: 0 0 24px rgba(255,140,0,0.08) !important;
}

/* ── Explore bar: glassy border gradient ────────────────── */
.ac--bar {
  border-top: 1px solid transparent;
  background:
    linear-gradient(rgba(3,7,18,0.92), rgba(3,7,18,0.92)) padding-box,
    linear-gradient(90deg, rgba(255,140,0,0.3), rgba(15,184,160,0.2), rgba(255,140,0,0.3)) border-box;
}

/* ── Cursor ring: desktop-only show ─────────────────────── */
@media (pointer: fine) {
  .ac-cursor-ring, .ac-cursor-dot { display: block; }
}

/* ── India silhouette on discover ───────────────────────── */
.ac-india-silhouette {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 22vw, 280px);
  height: auto;
  opacity: 0.6;
  pointer-events: none;
  filter: blur(0.5px);
  animation: ac-india-float 9s ease-in-out infinite alternate;
}
@keyframes ac-india-float {
  from { transform: translateY(-52%) rotate(-1deg); opacity: 0.5; }
  to   { transform: translateY(-48%) rotate(1deg);  opacity: 0.7; }
}
.ac-india-dot {
  animation: ac-india-dot-pulse 3s ease-in-out infinite;
}
.ac-india-dot:nth-child(2) { animation-delay: 0.8s; }
.ac-india-dot:nth-child(3) { animation-delay: 1.6s; }
.ac-india-dot:nth-child(4) { animation-delay: 2.4s; }
@keyframes ac-india-dot-pulse {
  0%, 100% { opacity: 0.4; r: 2; }
  50%       { opacity: 1;   r: 4; }
}

/* ── Prefers-reduced-motion guard ───────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ac-hero em, .ac-title em { animation: none !important; -webkit-text-fill-color: var(--saffron); background: none; }
  .ac-cta--journey, .ac-cta--journey::before, .ac-origin-chip--on,
  .ac-type-btn--on, .ac-gen-btn::before, .ac-portal-bg::after { animation: none !important; }
}

/* ══════════════════════════════════════════════════════════
   ACTIVITIES CATALOG LAYER
   Components for rendering data/activities.json entries
   ══════════════════════════════════════════════════════════ */

/* ── Activities pane wrapper ────────────────────────────── */
#adventurePane {
  overflow: hidden;
}

.activities-pane {
  position: fixed;
  inset: 0;
  bottom: var(--disclaimer-h, 44px);
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.activities-pane::-webkit-scrollbar { width: 6px; }
.activities-pane::-webkit-scrollbar-track { background: transparent; }
.activities-pane::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Activities top bar ─────────────────────────────────── */
.activities-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,12,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-shrink: 0;
}

.activities-title {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.activities-count {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  margin-left: 8px;
}

/* ── Category filter strip ──────────────────────────────── */
.activities-filter-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,12,20,0.7);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.activities-filter-strip::-webkit-scrollbar { display: none; }

.act-filter-btn {
  cursor: pointer;
  white-space: nowrap;
  padding: 5px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 700;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.act-filter-btn:hover {
  border-color: rgba(255,140,0,0.35);
  color: var(--text);
  background: rgba(255,140,0,0.04);
}

.act-filter-btn.active {
  border-color: var(--saffron);
  color: var(--saffron);
  background: var(--saffron-dim);
}

/* Category-specific accent colors on active state */
.act-filter-btn.active[data-cat="Adventure"]    { border-color: #FF6B35; color: #FF6B35; background: rgba(255,107,53,0.08); }
.act-filter-btn.active[data-cat="Wildlife"]     { border-color: #10D483; color: #10D483; background: rgba(16,212,131,0.08); }
.act-filter-btn.active[data-cat="Spiritual"]    { border-color: #FFD580; color: #FFD580; background: rgba(255,213,128,0.08); }
.act-filter-btn.active[data-cat="Cultural"]     { border-color: #F59E0B; color: #F59E0B; background: rgba(245,158,11,0.08); }
.act-filter-btn.active[data-cat="Water Sports"] { border-color: #38BDF8; color: #38BDF8; background: rgba(56,189,248,0.08); }
.act-filter-btn.active[data-cat="Trekking"]     { border-color: #34D399; color: #34D399; background: rgba(52,211,153,0.08); }
.act-filter-btn.active[data-cat="Culinary"]     { border-color: #FB923C; color: #FB923C; background: rgba(251,146,60,0.08); }
.act-filter-btn.active[data-cat="Heritage Walk"]{ border-color: #A78BFA; color: #A78BFA; background: rgba(167,139,250,0.08); }
.act-filter-btn.active[data-cat="Wellness"]     { border-color: #6EE7B7; color: #6EE7B7; background: rgba(110,231,183,0.08); }
.act-filter-btn.active[data-cat="Photography"]  { border-color: #F472B6; color: #F472B6; background: rgba(244,114,182,0.08); }
.act-filter-btn.active[data-cat="Nightlife"]    { border-color: #8B5CF6; color: #8B5CF6; background: rgba(139,92,246,0.08); }
.act-filter-btn.active[data-cat="Winter Sports"]{ border-color: #BAE6FD; color: #BAE6FD; background: rgba(186,230,253,0.08); }

/* ── Main activities body (scroll area + optional sidebar) ─ */
.activities-body {
  display: grid;
  grid-template-columns: 1fr;
  flex: 1;
  overflow: hidden;
}

.activities-body.with-sidebar {
  grid-template-columns: 1fr 320px;
}

/* ── Cards scroll area ──────────────────────────────────── */
.activities-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.07) transparent;
}

/* ── Activities grid ────────────────────────────────────── */
.act-grid-scroll {
  /* Scroll handled by .activities-pane — this is a plain block */
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px 24px 32px;
  align-content: start;
}

/* ── Activity card ──────────────────────────────────────── */
.act-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--panel);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.16,1,0.3,1), border-color 0.22s ease, box-shadow 0.22s ease;
}

.act-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255,140,0,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3), 0 0 24px rgba(255,140,0,0.06);
}

.act-card.selected {
  border-color: var(--saffron);
  box-shadow: 0 0 0 1px rgba(255,140,0,0.25), 0 12px 40px rgba(0,0,0,0.35);
}

/* ── Activity card image ────────────────────────────────── */
.act-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(15,23,41,0.9) 100%);
}

.act-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.act-card:hover .act-card-img img { transform: scale(1.04); }

/* Category icon placeholder when no image */
.act-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  opacity: 0.35;
}

/* Category color bands at top of card */
.act-card-img::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--act-accent, var(--saffron));
  z-index: 1;
}

/* ── Category color tokens ──────────────────────────────── */
.act-card[data-cat="Adventure"]    { --act-accent: #FF6B35; }
.act-card[data-cat="Wildlife"]     { --act-accent: #10D483; }
.act-card[data-cat="Spiritual"]    { --act-accent: #FFD580; }
.act-card[data-cat="Cultural"]     { --act-accent: #F59E0B; }
.act-card[data-cat="Water Sports"] { --act-accent: #38BDF8; }
.act-card[data-cat="Trekking"]     { --act-accent: #34D399; }
.act-card[data-cat="Culinary"]     { --act-accent: #FB923C; }
.act-card[data-cat="Heritage Walk"]{ --act-accent: #A78BFA; }
.act-card[data-cat="Wellness"]     { --act-accent: #6EE7B7; }
.act-card[data-cat="Photography"]  { --act-accent: #F472B6; }
.act-card[data-cat="Nightlife"]    { --act-accent: #8B5CF6; }
.act-card[data-cat="Winter Sports"]{ --act-accent: #BAE6FD; }

/* ── Activity card body ─────────────────────────────────── */
.act-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Activity card header row ───────────────────────────── */
.act-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.act-card-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
  flex: 1;
}

/* ── Safety badge on card ───────────────────────────────── */
.act-safety {
  flex-shrink: 0;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.act-safety.safe    { background: rgba(16,212,131,0.1);  color: var(--safe);    border: 1px solid rgba(16,212,131,0.25); }
.act-safety.caution { background: rgba(245,166,35,0.1);  color: var(--caution); border: 1px solid rgba(245,166,35,0.25); }
.act-safety.risk    { background: rgba(255,77,77,0.1);   color: var(--risk);    border: 1px solid rgba(255,77,77,0.25); }

/* ── Activity destination + category line ───────────────── */
.act-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.act-cat-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.06);
  color: var(--muted-light);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Category-specific tag tint */
.act-cat-tag[data-cat="Adventure"]    { color: #FF6B35; background: rgba(255,107,53,0.08); border-color: rgba(255,107,53,0.2); }
.act-cat-tag[data-cat="Wildlife"]     { color: #10D483; background: rgba(16,212,131,0.08); border-color: rgba(16,212,131,0.2); }
.act-cat-tag[data-cat="Spiritual"]    { color: #FFD580; background: rgba(255,213,128,0.08); border-color: rgba(255,213,128,0.2); }
.act-cat-tag[data-cat="Cultural"]     { color: #F59E0B; background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
.act-cat-tag[data-cat="Water Sports"] { color: #38BDF8; background: rgba(56,189,248,0.08); border-color: rgba(56,189,248,0.2); }
.act-cat-tag[data-cat="Trekking"]     { color: #34D399; background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.2); }
.act-cat-tag[data-cat="Culinary"]     { color: #FB923C; background: rgba(251,146,60,0.08); border-color: rgba(251,146,60,0.2); }
.act-cat-tag[data-cat="Heritage Walk"]{ color: #A78BFA; background: rgba(167,139,250,0.08); border-color: rgba(167,139,250,0.2); }
.act-cat-tag[data-cat="Wellness"]     { color: #6EE7B7; background: rgba(110,231,183,0.08); border-color: rgba(110,231,183,0.2); }
.act-cat-tag[data-cat="Photography"]  { color: #F472B6; background: rgba(244,114,182,0.08); border-color: rgba(244,114,182,0.2); }
.act-cat-tag[data-cat="Nightlife"]    { color: #8B5CF6; background: rgba(139,92,246,0.08); border-color: rgba(139,92,246,0.2); }
.act-cat-tag[data-cat="Winter Sports"]{ color: #BAE6FD; background: rgba(186,230,253,0.08); border-color: rgba(186,230,253,0.2); }

.act-dest-name {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Activity stats row ─────────────────────────────────── */
.act-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.act-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--muted);
}

.act-stat-icon { opacity: 0.65; font-size: 0.8rem; }
.act-stat-val  { color: var(--muted-light); font-weight: 600; }

/* ── Difficulty pill ────────────────────────────────────── */
.act-difficulty {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.act-difficulty.easy     { background: rgba(16,212,131,0.08); color: #10D483; border: 1px solid rgba(16,212,131,0.2); }
.act-difficulty.moderate { background: rgba(245,158,11,0.08); color: #F59E0B; border: 1px solid rgba(245,158,11,0.2); }
.act-difficulty.hard     { background: rgba(255,107,53,0.08); color: #FF6B35; border: 1px solid rgba(255,107,53,0.2); }
.act-difficulty.extreme  { background: rgba(255,77,77,0.08);  color: #FF4D4D; border: 1px solid rgba(255,77,77,0.2); }

/* ── Price display ──────────────────────────────────────── */
.act-price {
  font-size: 0.78rem;
  color: var(--teal);
  font-weight: 700;
}

.act-price-free {
  color: var(--mint);
}

.act-price-range {
  display: flex;
  align-items: center;
  gap: 4px;
}

.act-price-tier {
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 400;
}

/* ── Best months chips ──────────────────────────────────── */
.act-months {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.act-month-chip {
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 700;
  background: rgba(56,189,248,0.07);
  color: var(--cyan);
  border: 1px solid rgba(56,189,248,0.18);
}

/* ── Tags row ───────────────────────────────────────────── */
.act-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}

.act-tag {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.66rem;
  font-weight: 600;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.06);
}

/* ── Booking required indicator ─────────────────────────── */
.act-booking-required {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--caution);
  font-weight: 600;
}

.act-booking-walk-in {
  font-size: 0.68rem;
  color: var(--mint);
  font-weight: 600;
}

/* ── Crowd indicator ────────────────────────────────────── */
.act-crowd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--muted);
}

.act-crowd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.act-crowd.low    .act-crowd-dot { background: var(--mint); }
.act-crowd.medium .act-crowd-dot { background: var(--caution); }
.act-crowd.high   .act-crowd-dot { background: var(--risk); }

/* ── Card footer with CTA ───────────────────────────────── */
.act-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid rgba(255,255,255,0.04);
  background: rgba(255,255,255,0.015);
}

.act-add-btn {
  cursor: pointer;
  padding: 6px 14px;
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: 999px;
  color: var(--saffron);
  background: rgba(255,140,0,0.06);
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.act-add-btn:hover {
  background: var(--saffron-dim);
  border-color: var(--saffron);
  transform: translateY(-1px);
}

.act-add-btn.added {
  background: rgba(16,212,131,0.08);
  border-color: rgba(16,212,131,0.3);
  color: var(--mint);
}

.act-detail-btn {
  cursor: pointer;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
  transition: color 0.18s;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(136,150,179,0.3);
}

.act-detail-btn:hover { color: var(--text); text-decoration-color: var(--muted); }

/* ══════════════════════════════════════════════════════════
   ACTIVITY DETAIL DRAWER / PANEL
   ══════════════════════════════════════════════════════════ */

.act-detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(480px, 100vw);
  z-index: 9999;
  background: var(--surface-1);
  border-left: 1px solid var(--line-strong);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1);
}

.act-detail-panel.open { transform: translateX(0); }

.act-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(15,23,41,0.98);
  backdrop-filter: blur(12px);
}

.act-detail-close {
  cursor: pointer;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 1.1rem;
  transition: all 0.18s;
}

.act-detail-close:hover {
  border-color: rgba(255,77,77,0.3);
  color: var(--risk);
  background: rgba(255,77,77,0.06);
}

.act-detail-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.07) transparent;
}

.act-detail-hero {
  height: 200px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, var(--surface-2) 0%, rgba(15,23,41,0.9) 100%);
  margin-bottom: 18px;
  position: relative;
}

.act-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 14px;
}

.act-detail-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.act-detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.act-detail-section {
  margin-bottom: 20px;
}

.act-detail-section-title {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--saffron);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255,140,0,0.12);
}

/* Highlights list */
.act-highlights-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.act-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--muted-light);
  line-height: 1.45;
}

.act-highlight-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--saffron);
  margin-top: 6px;
  opacity: 0.7;
}

/* Tips list */
.act-tips-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act-tip-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--teal);
  font-size: 0.82rem;
  color: var(--muted-light);
  line-height: 1.5;
}

/* Price breakdown */
.act-price-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  font-size: 0.83rem;
}

.act-price-label {
  color: var(--muted);
  font-weight: 600;
  text-transform: capitalize;
}

.act-price-value {
  color: var(--text);
  font-weight: 700;
  text-align: right;
}

.act-price-value.free { color: var(--mint); }

/* Detail footer */
.act-detail-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: rgba(8,12,20,0.92);
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.act-detail-add-btn {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--saffron);
  border-radius: var(--r-md);
  color: #0A0A0A;
  background: linear-gradient(135deg, var(--saffron) 0%, #FFAD1A 100%);
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act-detail-add-btn:hover { box-shadow: var(--shadow-saffron); transform: translateY(-1px); }
.act-detail-add-btn.added { background: linear-gradient(135deg, var(--mint), #0DB876); border-color: var(--mint); }

/* ══════════════════════════════════════════════════════════
   ACTIVITY ITINERARY SIDEBAR
   (Right panel showing selected activities for the day)
   ══════════════════════════════════════════════════════════ */

.act-itinerary-panel {
  border-left: 1px solid var(--line);
  background: rgba(8,12,20,0.88);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.act-itin-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.act-itin-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
}

.act-itin-subtitle {
  font-size: 0.72rem;
  color: var(--muted);
}

.act-itin-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.06) transparent;
}

.act-itin-empty {
  text-align: center;
  padding: 32px 16px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
  opacity: 0.7;
}

/* Selected activity row in itinerary */
.act-itin-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.act-itin-item:last-child { border-bottom: none; }

.act-itin-color-bar {
  flex-shrink: 0;
  width: 3px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--act-accent, var(--saffron));
  min-height: 40px;
}

.act-itin-info { flex: 1; min-width: 0; }

.act-itin-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.act-itin-meta {
  font-size: 0.70rem;
  color: var(--muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.act-itin-remove {
  cursor: pointer;
  background: none;
  border: none;
  color: rgba(255,77,77,0.4);
  font-size: 0.9rem;
  padding: 2px;
  transition: color 0.18s;
  flex-shrink: 0;
}

.act-itin-remove:hover { color: var(--risk); }

/* Itinerary summary footer */
.act-itin-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  flex-shrink: 0;
}

.act-itin-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.act-itin-sum-cell {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 10px;
}

.act-itin-sum-val {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.act-itin-sum-key {
  font-size: 0.62rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.act-itin-plan-btn {
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--rose) 0%, var(--saffron) 100%);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.act-itin-plan-btn:hover {
  box-shadow: 0 4px 20px rgba(255,107,53,0.35);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   ACTIVITY SEARCH BAR
   ══════════════════════════════════════════════════════════ */

.act-search-wrap {
  position: relative;
  flex: 1;
  max-width: 320px;
}

.act-search-input {
  width: 100%;
  min-height: 36px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--text);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.act-search-input::placeholder { color: rgba(136,150,179,0.5); }
.act-search-input:focus {
  border-color: var(--saffron);
  box-shadow: 0 0 0 3px var(--saffron-dim);
}

.act-search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 0.85rem;
  pointer-events: none;
}

/* ── Sort/view controls ──────────────────────────────────── */
.act-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.act-sort-select {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: rgba(255,255,255,0.04);
  color: var(--muted);
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.18s;
}

.act-sort-select:focus { border-color: var(--saffron); outline: none; }

.act-view-toggle {
  display: flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  overflow: hidden;
}

.act-view-btn {
  padding: 6px 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.18s;
}

.act-view-btn.active { background: rgba(255,140,0,0.1); color: var(--saffron); }

/* ── List view variant ───────────────────────────────────── */
.activities-grid.list-view {
  grid-template-columns: 1fr;
}

.activities-grid.list-view .act-card {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.activities-grid.list-view .act-card-img {
  height: 100%;
  min-height: 100px;
}

.activities-grid.list-view .act-card-body {
  padding: 12px 16px;
}

/* ── Loading skeleton for activities ─────────────────────── */
.act-card-skeleton {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  pointer-events: none;
}

.act-skeleton-img {
  height: 130px;
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.act-skeleton-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.act-skeleton-line {
  height: 10px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.act-skeleton-line.short { width: 60%; }
.act-skeleton-line.medium { width: 80%; }
.act-skeleton-line.long { width: 100%; }

/* ── Empty state ─────────────────────────────────────────── */
.activities-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.activities-empty-icon {
  font-size: 3rem;
  opacity: 0.3;
  margin-bottom: 14px;
}

.activities-empty-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted-light);
  margin: 0 0 6px;
}

.activities-empty-sub {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0;
}

/* ── Responsive breakpoints ──────────────────────────────── */
@media (max-width: 1100px) {
  .activities-body.with-sidebar {
    grid-template-columns: 1fr;
  }
  .act-itinerary-panel {
    display: none;
  }
}

@media (max-width: 820px) {
  .activities-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  .activities-topbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .act-search-wrap {
    max-width: 100%;
    flex: 1 1 200px;
  }
}

@media (max-width: 560px) {
  .activities-grid {
    grid-template-columns: 1fr;
  }
  .activities-grid.list-view .act-card {
    grid-template-columns: 90px 1fr;
  }
  .activities-grid.list-view .act-card-img {
    min-height: 80px;
  }
  .act-detail-panel {
    width: 100vw;
  }
  .activities-filter-strip {
    padding: 8px 12px;
  }
}

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .act-card { transition: border-color 0.18s ease; }
  .act-card:hover { transform: none; }
  .act-card-img img { transition: none; }
  .act-detail-panel { transition: none; }
  .act-skeleton-img,
  .act-skeleton-line { animation: none; background: var(--surface-2); }
}

/* ── Adventure pane supplemental styles ─────────────────────── */

/* Hero */
.act-hero {
  position: relative;
  flex-shrink: 0;
  height: calc(100vh - 80px);
  min-height: 360px;
  max-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #080f1c;
}
.act-hero-image-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.act-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.act-hero-img.loaded {
  opacity: 1;
}
.act-hero-img-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(4,10,22,0.82) 0%, rgba(4,10,22,0.45) 55%, rgba(4,10,22,0.15) 100%),
    linear-gradient(to top,   rgba(4,10,22,0.6)  0%, transparent 50%);
  pointer-events: none;
}
.act-hero-image-wrap::after {
  content: '⛰️';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  opacity: 0.2;
  pointer-events: none;
}
.act-hero-image-wrap:has(.act-hero-img.loaded)::after {
  display: none;
}
.act-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 36px 36px;
  max-width: 560px;
}
.act-hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ff8c00;
  background: rgba(255,140,0,0.15);
  border: 1px solid rgba(255,140,0,0.3);
  border-radius: 20px;
  padding: 3px 10px;
  margin-bottom: 12px;
  width: fit-content;
}
.act-hero-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.act-hero-sub {
  font-size: 0.95rem;
  color: rgba(190,215,240,0.85);
  margin: 0 0 20px;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.act-hero-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.act-hero-stat {
  font-size: 0.82rem;
  color: rgba(160,195,230,0.8);
}
.act-hero-stat strong {
  color: #c8e0ff;
  font-weight: 600;
}
.act-hero-stat-sep {
  color: rgba(100,130,160,0.5);
  font-size: 0.75rem;
}
@media (max-width: 768px) {
  .act-hero { height: 280px; }
  .act-hero-content { padding: 0 20px 24px; }
}
@media (max-width: 480px) {
  .act-hero { height: 240px; }
  .act-hero-title { font-size: 1.5rem; }
}

/* Controls bar (search + sort + view toggle) */
.act-controls-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-wrap: wrap;
  flex-shrink: 0;
}
.act-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 0.85rem; opacity: 0.5; pointer-events: none; }
.act-sort-wrap { margin-left: auto; }
.act-view-toggle { display: flex; gap: 4px; }

/* Secondary filter row */
.act-filter-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
}
.act-filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.act-filter-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; white-space: nowrap; }
.act-filter-btn--sm { padding: 4px 10px; font-size: 0.72rem; }

/* Results bar */
.act-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: rgba(255,255,255,0.015);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  flex-wrap: wrap;
  gap: 8px;
}
.act-result-count { font-size: 0.8rem; color: var(--muted); }
.act-badges-row { display: flex; gap: 8px; flex-wrap: wrap; }
.act-badge-chip {
  padding: 4px 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 0.72rem;
  color: rgba(180,200,220,0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.act-badge-chip:hover { background: rgba(255,140,0,0.1); color: var(--saffron); border-color: rgba(255,140,0,0.3); }

/* Card score + meta */
.act-card-score { font-size: 0.78rem; color: var(--saffron); font-weight: 600; }
.act-meta-item { font-size: 0.75rem; color: var(--muted); }

/* Empty state */
.act-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
  color: var(--muted);
}
.act-empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: 0.4; }
.act-reset-btn {
  margin-top: 16px;
  padding: 8px 24px;
  background: rgba(255,140,0,0.1);
  border: 1px solid rgba(255,140,0,0.3);
  color: var(--saffron);
  border-radius: 24px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.15s;
}
.act-reset-btn:hover { background: rgba(255,140,0,0.2); }

/* Detail panel backdrop */
.act-detail-backdrop {
  position: fixed; inset: 0; z-index: 9997;
  background: rgba(0,0,0,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
}
.act-detail-backdrop.active { opacity: 1; pointer-events: auto; }

/* Detail panel inner layout */
.act-detail-inner { padding: 0 0 80px; }
.act-detail-icon { font-size: 3.5rem; line-height: 1; margin-bottom: 12px; }
.act-detail-meta-top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.act-detail-title {
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin: 0 0 6px; line-height: 1.25;
}
.act-detail-sub { font-size: 0.85rem; color: var(--muted); margin: 0 0 20px; }

/* Stats row in detail */
.act-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 24px;
}
.act-stat-val { display: block; font-size: 1.1rem; font-weight: 700; color: #fff; }
.act-stat-lbl { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 2px; }

/* Detail sections */
.act-detail-section { margin-bottom: 20px; }
.act-section-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 10px;
  font-weight: 600;
}
.act-detail-list { margin: 0; padding-left: 18px; }
.act-detail-list li { font-size: 0.88rem; color: rgba(180,200,220,0.85); margin-bottom: 6px; line-height: 1.5; }

/* Logistics table */
.act-logistics-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.act-logistics-table tr { border-bottom: 1px solid rgba(255,255,255,0.04); }
.act-logistics-table tr:last-child { border-bottom: none; }
.act-logistics-table td { padding: 7px 4px; }
.act-logistics-table td:first-child { color: var(--muted); width: 42%; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; }
.act-logistics-table td:last-child { color: rgba(200,215,235,0.9); }

/* Safety note callout */
.act-safety-note {
  display: flex; gap: 10px;
  background: rgba(245,158,11,0.07);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 12px 14px;
  font-size: 0.83rem;
  color: rgba(245,180,80,0.9);
  line-height: 1.5;
  margin-bottom: 20px;
}
.act-safety-note-icon { flex-shrink: 0; font-size: 1rem; }

/* Packing / risk sections */
.act-carry-section, .act-risk-section { margin-bottom: 20px; }
.act-carry-list, .act-risk-list { margin: 0; padding-left: 18px; }
.act-carry-list li, .act-risk-list li { font-size: 0.83rem; color: rgba(180,200,220,0.8); margin-bottom: 5px; }
.act-risk-list li { color: rgba(255,160,100,0.85); }

/* Itinerary in detail */
.act-itin-section { margin-bottom: 24px; }
.act-itin-list { margin: 0; padding-left: 0; list-style: none; counter-reset: itin; }
.act-itin-list .act-itin-item {
  position: relative;
  padding: 10px 12px 10px 44px;
  border-left: 2px solid rgba(255,140,0,0.2);
  margin-bottom: 8px;
  font-size: 0.83rem;
}
.act-itin-list .act-itin-item::before {
  content: counter(itin);
  counter-increment: itin;
  position: absolute; left: -12px; top: 10px;
  width: 22px; height: 22px;
  background: rgba(255,140,0,0.15);
  border: 1px solid rgba(255,140,0,0.3);
  color: var(--saffron);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.act-itin-list .act-itin-item strong { color: rgba(220,235,255,0.95); display: block; margin-bottom: 6px; font-size: 0.9rem; letter-spacing: 0.01em; }
.act-itin-list .act-itin-item p { margin: 0; color: var(--muted); line-height: 1.5; }

.act-itin-hint {
  margin: 2px 0 12px;
  font-size: 0.75rem;
  color: rgba(180,200,220,0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Hour-by-hour timeline inside each day */
.act-itin-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
  padding-left: 2px;
  border-left: 2px dashed rgba(255,140,0,0.18);
  margin-left: 2px;
}
.act-itin-slot {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0 4px 10px;
  position: relative;
}
.act-itin-slot::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,140,0,0.85);
  box-shadow: 0 0 0 3px rgba(255,140,0,0.18);
}
.act-itin-time {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--saffron);
  white-space: nowrap;
}
.act-itin-slot p {
  margin: 0;
  color: rgba(220,230,245,0.88);
  font-size: 0.82rem;
  line-height: 1.55;
}
@media (max-width: 640px) {
  .act-itin-slot {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* Itinerary inside the multi-trek comparison panel */
.act-multi-itin { margin-top: 14px; }
.act-multi-itin .act-itin-section { margin-bottom: 0; }
.act-multi-itin .act-section-title {
  font-size: 0.85rem;
  margin-top: 0;
}
.act-multi-itin .act-itin-list .act-itin-item {
  padding: 8px 10px 8px 32px;
  font-size: 0.78rem;
}
.act-multi-itin .act-itin-slot {
  grid-template-columns: 120px 1fr;
}
.act-multi-itin .act-itin-time { font-size: 0.66rem; }
.act-multi-itin .act-itin-slot p { font-size: 0.78rem; }

/* Tags */
.act-tags-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.act-tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 0.72rem;
  color: rgba(160,180,210,0.7);
}

/* Plan with BeastMind AI button */
.act-plan-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, rgba(255,140,0,0.15), rgba(255,80,0,0.08));
  border: 1px solid rgba(255,140,0,0.35);
  color: var(--saffron);
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.02em;
}
.act-plan-btn:hover {
  background: linear-gradient(135deg, rgba(255,140,0,0.25), rgba(255,80,0,0.15));
  transform: translateY(-1px);
}

/* Mobile adjustments for new elements */
@media (max-width: 640px) {
  .act-controls-bar { gap: 8px; padding: 10px 12px; }
  .act-filter-row { padding: 8px 12px; gap: 10px; }
  .act-detail-stats { grid-template-columns: repeat(2, 1fr); }
  .act-hero { padding: 32px 16px 24px; }
  .act-plan-btn { width: calc(100% - 24px); margin: 0 12px 16px; }
  .act-results-bar { padding: 6px 12px; }
  .act-badges-row { display: none; }
}

/* Reduced motion additions */
@media (prefers-reduced-motion: reduce) {
  .act-detail-backdrop { transition: none; }
  .act-plan-btn:hover { transform: none; }
}

/* ── Adventure pane: results bar flex-shrink ─────────────── */
.act-results-bar { flex-shrink: 0; }

/* ── Activity detail panel: hero image ───────────────────── */
.act-detail-hero-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 16px;
  display: block;
}
@media (max-width: 480px) {
  .act-detail-hero-img { height: 150px; }
}

/* ═══════════════════════════════════════════════════════════════
   Adventure — illustrated trek poster + multi-trek comparison
   All driven from the trek data; no per-trek hardcoded styling.
   ═══════════════════════════════════════════════════════════════ */

/* ── Compare toggle button (small +/✓ chip on each card) ───── */
.act-card { position: relative; }
.act-compare-toggle {
  position: absolute; top: 8px; right: 8px; z-index: 5;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 200, 80, 0.55);
  background: rgba(15, 23, 41, 0.78);
  color: #FFD060;
  font-size: 16px; font-weight: 700; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.act-compare-toggle:hover {
  transform: scale(1.08);
  background: rgba(255, 200, 80, 0.18);
  border-color: rgba(255, 200, 80, 0.85);
}
.act-compare-toggle.on {
  background: linear-gradient(135deg, #FFD060, #FF8800);
  border-color: #FFE1A6;
  color: #2a1a08;
  box-shadow: 0 0 12px rgba(255, 200, 80, 0.55);
}
.act-card.in-compare {
  outline: 2px solid rgba(255, 200, 80, 0.55);
  outline-offset: 2px;
}

/* ── Floating compare bar (appears when 1+ in comparison) ──── */
.act-compare-bar {
  position: sticky;
  bottom: 16px;
  left: 0; right: 0;
  z-index: 50;
  margin: 16px auto 0;
  max-width: 920px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.act-compare-bar.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.act-compare-bar-inner {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
  background: rgba(15, 23, 41, 0.92);
  border: 1px solid rgba(255, 200, 80, 0.35);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45),
              0 0 0 1px rgba(255, 200, 80, 0.08) inset;
  backdrop-filter: blur(10px);
}
.act-compare-count {
  font-weight: 700; font-size: 12px;
  color: #FFD060;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.act-compare-chips {
  display: flex; gap: 6px; flex-wrap: wrap; flex: 1 1 auto;
}
.act-compare-chip {
  background: rgba(255, 200, 80, 0.12);
  border: 1px solid rgba(255, 200, 80, 0.35);
  color: #FFE8B8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.act-compare-chip:hover { background: rgba(255, 100, 60, 0.18); }
.act-compare-clear, .act-compare-view {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #d5dbe8;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.act-compare-clear:hover { color: #ff8c8c; border-color: rgba(255, 140, 140, 0.5); }
.act-compare-view {
  background: linear-gradient(135deg, #FFD060, #FF8800);
  color: #2a1a08;
  border-color: transparent;
}
.act-compare-view:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 6px 18px rgba(255, 140, 0, 0.4);
}
.act-compare-view:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Trek-poster section inside the detail panel ───────────── */
.act-poster-section {
  margin: 18px 0 20px;
  background: linear-gradient(180deg, rgba(255, 200, 80, 0.06), rgba(255, 140, 0, 0.02));
  border: 1px solid rgba(255, 200, 80, 0.18);
  border-radius: 14px;
  padding: 14px 14px 16px;
}
.act-poster-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
  gap: 12px; flex-wrap: wrap;
}
.act-poster-actions { display: flex; gap: 6px; }
.act-poster-btn {
  background: rgba(15, 23, 41, 0.7);
  border: 1px solid rgba(255, 200, 80, 0.35);
  color: #FFE8B8;
  border-radius: 8px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.act-poster-btn:hover {
  background: rgba(255, 200, 80, 0.15);
  transform: translateY(-1px);
}
.act-poster-btn:active { transform: translateY(0); }
.act-poster-svg {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #04081a;
  min-height: 220px;
}
.act-poster-svg svg {
  display: block; width: 100%; height: auto;
}
.act-poster-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  color: #FFD060;
  font-size: 12px; font-weight: 500;
  background: rgba(4, 8, 26, 0.92);
}
.act-poster-spinner {
  width: 22px; height: 22px;
  border: 2px solid rgba(255, 200, 80, 0.25);
  border-top-color: #FFD060;
  border-radius: 50%;
  animation: act-poster-spin 0.9s linear infinite;
}
@keyframes act-poster-spin { to { transform: rotate(360deg); } }
.act-poster-fallback {
  padding: 28px 20px;
  text-align: center;
  color: #c4cbd9;
}
.act-poster-fallback-emoji { font-size: 32px; margin-bottom: 8px; }

/* ── Multi-trek comparison panel ──────────────────────────── */
.act-multi-inner .act-multi-card {
  background: rgba(15, 23, 41, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 18px;
}
.act-multi-card-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
}
.act-multi-card-icon { font-size: 28px; }
.act-multi-card-titles { flex: 1 1 auto; min-width: 0; }
.act-multi-card-titles h3 { margin: 0; font-size: 18px; color: #FFE8B8; }
.act-multi-card-sub { margin: 2px 0 0; font-size: 11px; color: #9aa3b8; }
.act-multi-card-stats {
  display: flex; gap: 18px;
  font-size: 11px; color: #c4cbd9;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.act-multi-card-stats strong { color: #FFD060; font-size: 13px; }
.act-multi-regions {
  margin: 6px 0 0; font-size: 11px;
  color: rgba(255, 200, 80, 0.85);
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   Overview Dashboard — central intelligence hub
   Glassmorphism + amber accent, responsive across breakpoints.
   ══════════════════════════════════════════════════════════════ */
/* Pane must scroll internally — base .pane has overflow:hidden,
   which used to push the dashboard outside the viewport and force
   the user to scroll past empty space to reach the content. */
#overviewPane {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: var(--disclaimer-h, 44px);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 200, 80, 0.18) transparent;
}
#overviewPane::-webkit-scrollbar { width: 8px; }
#overviewPane::-webkit-scrollbar-thumb {
  background: rgba(255, 200, 80, 0.18);
  border-radius: 4px;
}
.overview-root {
  padding: 24px clamp(16px, 3vw, 36px) 60px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(255,140,0,0.10), transparent 70%),
    radial-gradient(800px 500px at 95% 8%, rgba(56,189,248,0.06), transparent 60%);
}

/* ── Header strip ── */
.ov-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}
.ov-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255, 200, 80, 0.6);
  margin: 0 0 4px;
}
.ov-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 600;
  margin: 0;
  color: #FFE8B8;
  letter-spacing: -0.01em;
}
.ov-tagline {
  margin: 6px 0 0;
  color: rgba(200, 215, 235, 0.7);
  font-size: 0.86rem;
  max-width: 720px;
}
.ov-header-actions { display: flex; gap: 8px; }
.ov-header-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 200, 80, 0.18);
  color: rgba(255, 232, 184, 0.85);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
  font-family: inherit;
}
.ov-header-btn:hover { background: rgba(255, 200, 80, 0.12); border-color: rgba(255, 200, 80, 0.4); transform: translateY(-1px); }
.ov-header-btn--danger { color: #ffb0b0; border-color: rgba(230, 57, 70, 0.3); }
.ov-header-btn--danger:hover { background: rgba(230, 57, 70, 0.15); border-color: rgba(230, 57, 70, 0.6); }

/* ── KPI strip ── */
.ov-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.ov-kpi-card {
  position: relative;
  display: flex; gap: 14px; align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(140deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}
.ov-kpi-card::after {
  content: ""; position: absolute; inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 100% 0%, var(--kpi-glow, transparent) 0%, transparent 60%);
  opacity: 0.5;
}
.ov-kpi-amber   { --kpi-glow: rgba(255, 200, 80, 0.18); }
.ov-kpi-gold    { --kpi-glow: rgba(255, 232, 184, 0.18); }
.ov-kpi-blue    { --kpi-glow: rgba(93, 168, 199, 0.18); }
.ov-kpi-green   { --kpi-glow: rgba(63, 164, 106, 0.18); }
.ov-kpi-lilac   { --kpi-glow: rgba(139, 92, 246, 0.18); }
.ov-kpi-neutral { --kpi-glow: rgba(200, 215, 235, 0.10); }
.ov-kpi-icon {
  font-size: 22px;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ov-kpi-body { display: flex; flex-direction: column; gap: 2px; }
.ov-kpi-value {
  font-size: 1.6rem; font-weight: 700;
  color: #FFE8B8;
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1;
}
.ov-kpi-value-sm { font-size: 0.95rem; font-weight: 600; }
.ov-kpi-label {
  font-size: 0.72rem;
  color: rgba(200, 215, 235, 0.62);
  letter-spacing: 0.04em;
}

/* ── Main grid ── */
.ov-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}
.ov-col-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ov-col-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.ov-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

/* ── Card (glassmorphism) ── */
.ov-card {
  position: relative;
  background: linear-gradient(150deg, rgba(15, 23, 41, 0.7), rgba(11, 17, 32, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; gap: 12px;
  min-width: 0;
}
.ov-card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  flex-wrap: wrap;
}
.ov-card-head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #FFE8B8;
  letter-spacing: 0.01em;
}
.ov-card-sub {
  font-size: 0.72rem;
  color: rgba(200, 215, 235, 0.55);
  letter-spacing: 0.04em;
}
.ov-card-cta {
  align-self: flex-start;
  margin-top: 6px;
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.18), rgba(255, 200, 80, 0.10));
  border: 1px solid rgba(255, 200, 80, 0.32);
  color: #FFE1A6;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  font-family: inherit;
}
.ov-card-cta:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, rgba(255, 140, 0, 0.28), rgba(255, 200, 80, 0.16));
  border-color: rgba(255, 200, 80, 0.55);
}
.ov-card-cta--lg { padding: 12px 22px; font-size: 0.92rem; }

.ov-empty-mini {
  font-size: 0.84rem;
  color: rgba(200, 215, 235, 0.55);
  line-height: 1.5;
}

/* ── Timeline ── */
.ov-timeline-card { min-height: 240px; }
.ov-tl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ov-tl-item {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s;
}
.ov-tl-item:hover { background: rgba(255, 200, 80, 0.07); }
.ov-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 7px;
  box-shadow: 0 0 12px currentColor;
}
.ov-tl-body { min-width: 0; }
.ov-tl-line {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.ov-tl-icon { font-size: 14px; }
.ov-tl-title { font-weight: 600; color: #FFE8B8; font-size: 0.86rem; }
.ov-tl-time  { font-size: 0.7rem; color: rgba(200, 215, 235, 0.5); margin-left: auto; }
.ov-tl-sub   { font-size: 0.76rem; color: rgba(200, 215, 235, 0.62); margin: 3px 0; line-height: 1.45; }
.ov-tl-tags  { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.ov-tag {
  font-size: 0.66rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(200, 215, 235, 0.7);
  letter-spacing: 0.03em;
}
.ov-tag--type { color: var(--tag-color, #FFD060); border-color: color-mix(in srgb, var(--tag-color, #FFD060) 30%, transparent); background: color-mix(in srgb, var(--tag-color, #FFD060) 10%, transparent); }
.ov-tl-cta {
  align-self: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 200, 80, 0.10);
  border: 1px solid rgba(255, 200, 80, 0.25);
  color: #FFE1A6;
  cursor: pointer;
  font-family: inherit;
}
.ov-tl-cta:hover { background: rgba(255, 200, 80, 0.18); }

/* ── Atlas insight ── */
.ov-atlas-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 16px;
}
.ov-atlas-most {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px;
  background: rgba(93, 168, 199, 0.08);
  border: 1px solid rgba(93, 168, 199, 0.22);
  border-radius: 12px;
}
.ov-most-label { font-size: 0.7rem; color: rgba(200, 215, 235, 0.55); letter-spacing: 0.04em; text-transform: uppercase; }
.ov-most-name  { font-family: "Playfair Display", Georgia, serif; font-size: 1.3rem; color: #FFE8B8; }
.ov-most-count { font-size: 0.74rem; color: rgba(200, 215, 235, 0.55); }
.ov-state-chips {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
  overflow: auto; max-height: 180px;
}
.ov-state-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
}
.ov-state-chip:hover { background: rgba(255, 200, 80, 0.08); border-color: rgba(255, 200, 80, 0.3); }
.ov-state-dot { width: 7px; height: 7px; border-radius: 50%; background: #FFD060; box-shadow: 0 0 6px #FFD060; }
.ov-state-name { color: #FFE8B8; font-weight: 600; }
.ov-state-region { color: rgba(200, 215, 235, 0.5); font-size: 0.74rem; margin-left: auto; }

/* ── AI itinerary / trip lists ── */
.ov-trip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ov-trip-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.ov-trip-row:hover { background: rgba(255, 200, 80, 0.07); border-color: rgba(255, 200, 80, 0.18); }
.ov-trip-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ov-trip-name { font-size: 0.86rem; font-weight: 600; color: #FFE8B8; }
.ov-trip-meta { font-size: 0.72rem; color: rgba(200, 215, 235, 0.55); }
.ov-trip-date { font-size: 0.72rem; color: rgba(200, 215, 235, 0.5); white-space: nowrap; }

/* ── Adventure difficulty pills ── */
.ov-diff-row { display: flex; gap: 6px; flex-wrap: wrap; }
.ov-diff-pill {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(220, 230, 245, 0.8);
  text-transform: capitalize;
}
.ov-diff-easy     { color: #88c47a; border-color: rgba(136, 196, 122, 0.35); background: rgba(136, 196, 122, 0.10); }
.ov-diff-moderate { color: #FFD060; border-color: rgba(255, 208, 96, 0.35); background: rgba(255, 208, 96, 0.10); }
.ov-diff-hard     { color: #FF8C00; border-color: rgba(255, 140, 0, 0.35); background: rgba(255, 140, 0, 0.10); }
.ov-diff-extreme  { color: #E63946; border-color: rgba(230, 57, 70, 0.35); background: rgba(230, 57, 70, 0.10); }

/* ── Preferences ── */
.ov-pref-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ov-pref-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  font-size: 0.82rem;
}
.ov-pref-label { color: rgba(200, 215, 235, 0.6); }
.ov-pref-value { color: #FFE8B8; font-weight: 600; }

/* ── Empty hero ── */
.ov-empty-hero {
  position: relative;
  padding: 60px 24px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 80, 0.16);
  background: linear-gradient(160deg, rgba(255, 200, 80, 0.05), rgba(20, 30, 52, 0.4));
  overflow: hidden;
}
.ov-empty-hero-aura {
  position: absolute; inset: -40%;
  background: radial-gradient(circle at center, rgba(255, 140, 0, 0.16), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.ov-empty-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.8rem;
  color: #FFE8B8;
  margin: 0 0 6px;
  position: relative;
}
.ov-empty-sub {
  font-size: 0.92rem;
  color: rgba(200, 215, 235, 0.7);
  max-width: 620px;
  margin: 0 auto 20px;
  position: relative;
}
.ov-empty-ctas {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  position: relative;
}

/* ── Tab button accent for the new Dashboard tab ── */
.tab-btn--overview { /* default styling matches existing tabs */ }
.tab-btn--overview.active { color: #FFE8B8; }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .ov-grid { grid-template-columns: 1fr; }
  .ov-col-side { order: 2; }
}
@media (max-width: 900px) {
  .ov-kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .ov-row-2     { grid-template-columns: 1fr; }
  .ov-atlas-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .overview-root { padding: 18px 12px 50px; }
  .ov-kpi-strip {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .ov-kpi-card { scroll-snap-align: start; }
  .ov-card { padding: 14px; }
  .ov-tl-item { grid-template-columns: 10px 1fr; }
  .ov-tl-cta  { grid-column: 1 / -1; align-self: start; margin-top: 6px; }
  .ov-tl-time { margin-left: 0; }
  .ov-empty-hero { padding: 36px 18px; }
  .ov-empty-title { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ov-header-btn:hover, .ov-card-cta:hover { transform: none; }
}

/* Landing-style login page, matched to the reference composition. */
.wi-landing-login {
  display: block;
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
  background: #f4f1eb;
  color: #fff;
}

.wi-landing-login::before,
.wi-landing-login::after,
.wi-landing-login .aurora {
  display: none;
}

.wi-stars {
  position: fixed;
  inset: 0 0 auto;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  background:
    radial-gradient(circle at 21% 10%, rgba(255,255,255,0.8) 0 1px, transparent 1.5px),
    radial-gradient(circle at 48% 4%, rgba(255,255,255,0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 12%, rgba(255,255,255,0.45) 0 1px, transparent 1.5px),
    radial-gradient(ellipse 95% 85% at 26% 45%, #0c1c3a 0%, #060a18 54%, #020408 100%);
}

.wi-landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(24px, 4vw, 56px);
  background: rgba(4, 8, 18, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wi-brand,
.wi-nav-links a,
.wi-get-app,
.wi-login-nav-btn,
.wi-start-btn {
  color: #fff;
  text-decoration: none;
}

.wi-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.wi-brand-icon {
  height: 44px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.wi-brand-icon--sm {
  height: 28px;
}

.wi-brand-text {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.wi-brand-text--sm .wi-brand-main { font-size: 0.9rem; }

.wi-brand-main {
  font-family: 'Black Ops One', 'Impact', sans-serif;
  font-size: 1.25rem;
  color: #c8bfa8;
  letter-spacing: 0.03em;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.6);
  line-height: 1;
}

.wi-india-badge--brand {
  font-family: 'Black Ops One', 'Impact', sans-serif;
  font-size: 0.68rem;
  padding: 2px 9px;
  letter-spacing: 0.1em;
}

.wi-brand--topbar {
  text-decoration: none;
  margin-bottom: 4px;
}

.wi-india-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: linear-gradient(135deg, #ff6b35, #e8a045);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 20px;
  vertical-align: middle;
  line-height: 1.6;
}

.wi-lotus {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-block;
}

.wi-lotus span {
  position: absolute;
  left: 14px;
  top: 3px;
  width: 8px;
  height: 18px;
  border-radius: 10px 10px 2px 2px;
  transform-origin: 50% 100%;
  background: #ff6b2b;
}

.wi-lotus span:nth-child(2) { transform: rotate(-42deg); background: #e8a020; }
.wi-lotus span:nth-child(3) { transform: rotate(42deg); background: #138808; }
.wi-lotus span:nth-child(4) { transform: rotate(-76deg); top: 11px; background: #0080ff; }
.wi-lotus span:nth-child(5) { transform: rotate(76deg); top: 11px; background: #9b59b6; }

.wi-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 34px);
  font-size: 0.84rem;
}

.wi-nav-links a {
  position: relative;
  color: rgba(255,255,255,0.72);
  transition: color 0.25s ease;
}

.wi-nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -6px;
  height: 1px;
  background: #e8a020;
  transition: right 0.28s ease;
}

.wi-nav-links a:hover { color: #fff; }
.wi-nav-links a:hover::after { right: 0; }

.wi-get-app {
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  font-size: 0.84rem;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.wi-get-app:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}

.wi-login-nav-btn {
  padding: 10px 20px;
  border: 1px solid rgba(201, 162, 39, 0.55);
  border-radius: 999px;
  background: rgba(201, 162, 39, 0.10);
  font-size: 0.84rem;
  font-weight: 600;
  color: #e8c560;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.wi-login-nav-btn:hover {
  transform: translateY(-2px);
  background: rgba(201, 162, 39, 0.20);
  border-color: rgba(201, 162, 39, 0.85);
  box-shadow: 0 8px 28px rgba(201, 162, 39, 0.18);
  color: #f5d97a;
}

.wi-hero-stage {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 56.25%) minmax(360px, 43.75%);
  min-height: 100vh;
  padding-top: 64px;
  background: linear-gradient(90deg, transparent 0 56.25%, #f4f1eb 56.25% 100%);
}

.wi-hero-main {
  position: relative;
  min-height: calc(100vh - 64px);
  height: calc(100vh - 64px);
  align-self: start;
  padding: clamp(32px, 4vw, 56px);
  overflow: hidden;
  background:
    radial-gradient(ellipse 78% 50% at 62% 44%, rgba(16, 184, 160, 0.35), transparent 58%),
    radial-gradient(ellipse 50% 30% at 36% 18%, rgba(80, 130, 220, 0.18), transparent 70%),
    linear-gradient(180deg, #071226 0%, #020814 100%);
}

.wi-hero-main::before {
  content: "";
  position: absolute;
  inset: 8% 0 12% 22%;
  background:
    radial-gradient(ellipse at 50% 10%, rgba(255,255,255,0.55), transparent 18%),
    radial-gradient(ellipse at 52% 36%, rgba(255,255,255,0.34), transparent 30%),
    radial-gradient(ellipse at 40% 76%, rgba(255,255,255,0.32), transparent 24%);
  filter: blur(18px);
  opacity: 0.86;
  animation: wi-cloud-drift 10s ease-in-out infinite alternate;
}

.wi-hero-copy {
  position: relative;
  z-index: 5;
  max-width: 460px;
  padding-top: min(8vh, 58px);
}

.wi-hero-copy h1 {
  margin: 0 0 28px;
  font-family: 'Playfair Display', 'Space Grotesk', serif;
  font-size: clamp(3rem, 4.25vw, 4.9rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: #fff;
  background: none;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 4px 42px rgba(0,0,0,0.72);
}

.wi-hero-copy h1 span {
  color: #e8a020;
}

.wi-hero-copy p {
  max-width: 390px;
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.75;
}

.wi-start-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding: 15px 17px 15px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4056ff 0%, #2367ff 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(35, 103, 255, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.wi-start-btn span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  color: #2367ff;
}

.wi-start-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 52px rgba(35, 103, 255, 0.48);
}

.wi-trust {
  margin-top: 34px;
  color: rgba(255,255,255,0.72);
  font-size: 0.84rem;
}

.wi-avatars {
  display: flex;
  align-items: center;
  margin-top: 12px;
}

.wi-avatars i,
.wi-avatars b {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-right: -9px;
  border: 2px solid #08101d;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4cfaa, #6d9ad2);
}

.wi-avatars i:nth-child(2) { background: linear-gradient(135deg, #f6f4ef, #dd6b6b); }
.wi-avatars i:nth-child(3) { background: linear-gradient(135deg, #f8d2c8, #237b64); }
.wi-avatars i:nth-child(4) { background: linear-gradient(135deg, #e7bb83, #36244a); }
.wi-avatars b {
  width: 52px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  font-size: 0.74rem;
}

.wi-map-wrap {
  position: absolute;
  inset: 10% 4% 124px 34%;
  z-index: 4;
  transform-style: preserve-3d;
  perspective: 850px;
}

.wi-map-glow {
  position: absolute;
  inset: 14% 2% 4% 2%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 211, 160, 0.44), rgba(27, 85, 170, 0.22) 42%, transparent 70%);
  filter: blur(30px);
}

.wi-india-map {
  position: absolute;
  inset: 6% 12% 3% 13%;
  animation: wi-map-float 7s ease-in-out infinite;
  transform: rotateX(20deg) rotateY(-8deg) translateZ(0);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 48px 96px rgba(0,0,0,0.72),
    0 0 0 1px rgba(125,236,156,0.24),
    0 28px 60px rgba(64,218,126,0.18);
}

/* SVG map container — fills .wi-india-map */
#wiHeroMapContainer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
#wiHeroMapContainer svg {
  display: block;
}

/* .wi-map-layer rules removed — D3 SVG map replaces CSS layer approach */

.wi-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transform: translate(-50%, -50%);
  animation: wi-pin-rise 0.7s var(--motion-ease) both, wi-pin-float 3.5s ease-in-out infinite;
}

.wi-pin b {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border: 2.5px solid rgba(255,255,255,0.9);
  border-radius: 50%;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.55),
    0 0 0 4px rgba(232,160,32,0.18),
    0 0 18px rgba(232,160,32,0.22);
  background: linear-gradient(145deg, #73c0f0, #5366ff 44%, #e8a020 45%, #0d7b6e);
}

/* Per-destination photo-badge gradients */
.wi-pin-ladakh b    { background: linear-gradient(145deg, #d0e8f8 0%, #5a9ed4 38%, #1e5898 72%, #0a3468 100%); }
.wi-pin-rishikesh b { background: linear-gradient(145deg, #a0d4a0 0%, #3a8a50 38%, #1a5830 72%, #0a3820 100%); }
.wi-pin-jaipur b    { background: linear-gradient(145deg, #f0c880 0%, #d47830 38%, #a84810 72%, #782800 100%); }
.wi-pin-hampi b     { background: linear-gradient(145deg, #d4b888 0%, #9a7040 38%, #6a4820 72%, #3a2808 100%); }
.wi-pin-kerala b    { background: linear-gradient(145deg, #80d8b0 0%, #20a068 38%, #0a6840 72%, #054020 100%); }

/* Stem line beneath badge */
.wi-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 52px;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: linear-gradient(180deg, #e8a020 0%, transparent 100%);
}

.wi-pin span {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(4,8,18,0.80);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 0.70rem;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.wi-pin-ladakh { left: 30%; top: 16%; animation-delay: 0.7s; }
.wi-pin-rishikesh { left: 70%; top: 28%; animation-delay: 0.9s; }
.wi-pin-jaipur { left: 32%; top: 45%; animation-delay: 1.1s; }
.wi-pin-hampi { left: 62%; top: 66%; animation-delay: 1.3s; }
.wi-pin-kerala { left: 36%; top: 79%; animation-delay: 1.5s; }

.wi-region-card {
  position: absolute;
  right: 2%;
  bottom: 8%;
  width: 212px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  background: rgba(5,10,22,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.38);
  animation: wi-card-in 0.8s 1.7s var(--motion-ease) both, wi-card-float 5s ease-in-out 2.2s infinite;
}

.wi-region-photo {
  float: left;
  width: 68px;
  height: 58px;
  margin-right: 12px;
  border-radius: 9px;
  background:
    linear-gradient(160deg, transparent 43%, #165d57 44% 100%),
    linear-gradient(35deg, #8bd2ef 0 34%, #f8f2dd 35% 42%, #5a86a5 43% 55%, #0d7b6e 56% 100%);
}

.wi-region-card strong,
.wi-region-card small,
.wi-region-card p,
.wi-region-card em {
  display: block;
}

.wi-region-card strong { font-size: 0.9rem; }
.wi-region-card small { color: rgba(255,255,255,0.55); font-size: 0.68rem; }
.wi-region-card p { clear: both; margin: 10px 0 0; color: rgba(255,255,255,0.62); font-size: 0.68rem; line-height: 1.45; }
.wi-region-card em { margin-top: 10px; color: #fff; font-style: normal; font-size: 0.78rem; font-weight: 800; }

.wi-statbar {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  right: clamp(24px, 4vw, 56px);
  bottom: 24px;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.055);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: none;
}

.wi-statbar div {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.09);
}

.wi-statbar div:last-child { border-right: 0; }
.wi-stat-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: rgba(45, 111, 255, 0.13);
  color: #72a6ff;
  font-weight: 900;
}
.wi-statbar strong { color: #fff; font-size: 1rem; }
.wi-statbar small { color: rgba(255,255,255,0.62); }

.wi-side-stack {
  position: relative;
  display: grid;
  grid-template-rows: 52% 48%;
  height: calc(100vh - 64px);
  align-self: start;
  gap: 0;
  padding: 0;
  background: #f4f1eb;
}

.wi-explore-card,
.wi-plan-card,
.wi-login-card {
  position: relative;
  overflow: hidden;
}

.wi-explore-card {
  margin: 14px 36px 14px 30px;
  min-height: 0;
  padding: 34px 38px;
  border: 1px solid rgba(255,255,255,0.34);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(1,8,18,0.12), rgba(1,8,18,0.78)),
    radial-gradient(ellipse at 80% 22%, rgba(232,160,32,0.35), transparent 12%),
    linear-gradient(145deg, #314159 0%, #142333 35%, #07131e 100%);
  box-shadow: inset 0 0 70px rgba(0,0,0,0.35);
}

.wi-explore-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 40%, rgba(255,255,255,0.12) 41% 42%, transparent 43%),
    radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.5), transparent 6%),
    linear-gradient(145deg, transparent 18%, rgba(245,246,247,0.16) 19% 24%, transparent 25%);
  clip-path: polygon(0 55%, 18% 28%, 32% 46%, 48% 15%, 66% 44%, 78% 22%, 100% 36%, 100% 100%, 0 100%);
  opacity: 0.62;
}

.wi-section-code {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.wi-section-code span { color: inherit; }

.wi-explore-card h2 {
  position: relative;
  z-index: 2;
  margin: 34px 0 14px;
  max-width: 280px;
  color: #fff;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.wi-explore-card p {
  position: relative;
  z-index: 2;
  max-width: 290px;
  color: rgba(255,255,255,0.76);
  line-height: 1.55;
}

.wi-explore-card button,
.wi-plan-card button,
.wi-experience-copy button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  color: inherit;
  cursor: pointer;
  transition: gap 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.wi-explore-card button:hover,
.wi-plan-card button:hover,
.wi-experience-copy button:hover {
  gap: 24px;
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
}

.wi-route-line {
  position: absolute;
  inset: auto 9% 14% 45%;
  height: 170px;
  z-index: 1;
}

.wi-route-line svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.wi-route-line path {
  fill: none;
  stroke: rgba(232,160,32,0.42);
  stroke-width: 5;
  stroke-linecap: round;
}

.wi-route-line .wi-route-hot {
  stroke: #ffb03b;
  stroke-width: 2;
  stroke-dasharray: 12 10;
  filter: drop-shadow(0 0 10px #ffb03b);
  animation: wi-route 3s linear infinite;
}

.wi-route-line i,
.wi-route-line b {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.75);
  border-radius: 50%;
  background: #ff8c00;
  box-shadow: 0 0 18px rgba(255,140,0,0.75);
}

.wi-route-line i:nth-of-type(1) { left: 5%; bottom: 18%; }
.wi-route-line i:nth-of-type(2) { left: 48%; top: 14%; }
.wi-route-line i:nth-of-type(3) { right: 8%; top: 28%; }
.wi-route-line b {
  left: 56%;
  bottom: 16%;
  width: 58px;
  height: 58px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}

.wi-card-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  display: flex;
  gap: 16px;
  transform: translateX(-50%);
}

.wi-card-dots span {
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.34);
}

.wi-card-dots span:first-child { background: #fff; }

.wi-plan-card {
  display: grid;
  grid-template-columns: 42% 58%;
  min-height: 0;
  padding: 44px 30px 32px;
  color: #111;
  background: radial-gradient(circle at 10% 50%, #fff 0%, #f5efe5 48%, #ede7de 100%);
}

.wi-plan-copy .wi-section-code {
  color: #111;
}

.wi-plan-card h2 {
  margin: 42px 0 18px;
  color: #111;
  font-size: clamp(1.85rem, 2.5vw, 2.8rem);
  line-height: 1.12;
}

.wi-plan-card p {
  color: rgba(17,17,17,0.56);
  line-height: 1.6;
}

.wi-plan-card button {
  margin-top: 16px;
  color: #111;
  background: rgba(255,255,255,0.62);
  border-color: rgba(0,0,0,0.09);
}

.wi-plan-map {
  position: relative;
  min-height: 230px;
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.72), rgba(255,255,255,0.32)),
    linear-gradient(145deg, #dfe9cf 0%, #9dbb8b 100%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.7);
}

.wi-plan-map::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(255,255,255,0.25) 29px 30px),
    radial-gradient(circle at 68% 24%, #6ca4ff 0 7px, transparent 8px),
    radial-gradient(circle at 70% 75%, #6ca4ff 0 7px, transparent 8px);
  opacity: 0.8;
}

.wi-day-card,
.wi-trip-card {
  position: absolute;
  z-index: 2;
  width: 40%;
  padding: 16px;
  border-radius: 15px;
  background: rgba(255,255,255,0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  font-size: 0.75rem;
}

.wi-day-card {
  left: 14px;
  top: 12px;
}

.wi-trip-card {
  right: 14px;
  top: 18px;
  bottom: 18px;
  width: 38%;
}

.wi-day-card strong,
.wi-trip-card strong {
  display: block;
  color: #111;
  margin-bottom: 10px;
}

.wi-day-card p,
.wi-trip-card p {
  margin: 10px 0;
  color: #526051;
  font-size: 0.68rem;
}

.wi-day-card span { color: #0d7b6e; }
.wi-trip-card div {
  height: 52px;
  border-radius: 9px;
  background: linear-gradient(150deg, #7aa4c8, #1d4d68 48%, #d2b35a);
}

.wi-trip-card meter {
  width: 100%;
  height: 8px;
}

.wi-login-card {
  position: absolute;
  z-index: 30;
  top: calc(100% + 28px);
  left: 30px;
  right: 36px;
  width: auto;
  margin: 0;
  padding: 24px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), rgba(255,255,255,0.065)),
    rgba(8, 13, 28, 0.88);
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
}

.wi-login-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1.55rem;
}

.wi-login-card label {
  margin-top: 12px;
}

.wi-login-card input {
  min-height: 42px;
}

.wi-login-card .primary-button {
  margin-top: 16px;
}

.wi-experience-section {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 40px clamp(24px, 4vw, 56px) 50px;
  color: #111;
  background: #f4f1eb;
}

.wi-experience-copy .wi-section-code {
  color: #1b2838;
}

.wi-experience-copy h2 {
  margin: 30px 0 22px;
  color: #111;
  font-size: clamp(2rem, 3vw, 3.05rem);
  line-height: 1.15;
}

.wi-experience-copy p {
  color: rgba(17,17,17,0.58);
  line-height: 1.7;
}

.wi-experience-copy button {
  margin-top: 20px;
  color: #111;
  border-color: rgba(0,0,0,0.1);
  background: #fff;
}

.wi-experience-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 18px;
  overflow-x: auto;
  padding: 8px 0 18px;
}

.wi-exp-card {
  position: relative;
  min-height: 270px;
  border-radius: 14px;
  overflow: hidden;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: #16382e;
  box-shadow: 0 22px 45px rgba(0,0,0,0.16);
  transition: transform 0.3s var(--motion-ease), box-shadow 0.3s ease;
}

.wi-exp-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 38%, rgba(0,0,0,0.72) 100%),
    var(--exp-bg);
  transition: transform 0.6s ease;
}

.wi-exp-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}

.wi-exp-card:hover::before {
  transform: scale(1.06);
}

.wi-exp-houseboat { --exp-bg: linear-gradient(150deg, #9acb88, #244f39 48%, #c49c52); }
.wi-exp-desert { --exp-bg: linear-gradient(150deg, #e8a34a, #8a3b16 52%, #1f100a); }
.wi-exp-yoga { --exp-bg: linear-gradient(150deg, #9fb0ad, #315f62 52%, #122333); }
.wi-exp-trek { --exp-bg: linear-gradient(150deg, #cfd7dc, #4b625e 42%, #171f2a); }
.wi-exp-scuba { --exp-bg: linear-gradient(150deg, #12b6df, #075a8f 48%, #03152a); }

.wi-exp-card button {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.16);
  cursor: pointer;
}

.wi-exp-card strong,
.wi-exp-card span {
  position: relative;
  z-index: 2;
}

.wi-exp-card strong {
  font-size: 1rem;
}

.wi-exp-card span {
  margin-top: 5px;
  color: rgba(255,255,255,0.78);
}

/* ═══════════════════════════════════════════════════════════════
   PRICING / FEATURE COMPARISON SECTION (landing page)
═══════════════════════════════════════════════════════════════ */
.wi-pricing-section {
  position: relative; z-index: 2;
  padding: 80px 40px 60px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(10,12,20,0.6) 100%);
}
.wi-pricing-header { text-align: center; margin-bottom: 48px; }
.wi-section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--saffron); margin: 0 0 10px;
}
.wi-pricing-header h2 { font-size: 2rem; margin: 0 0 10px; color: #fff; }
.wi-pricing-sub { color: rgba(255,255,255,0.55); font-size: 0.95rem; margin: 0; }

/* Plan cards row */
.wi-pricing-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 860px; margin: 0 auto 48px;
}
.wi-plan-card-tier {
  position: relative;
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px; padding: 24px 20px; display: flex; flex-direction: column; gap: 10px;
}
.wi-plan-card-tier--free  { border-color: rgba(255,255,255,0.14); }
.wi-plan-card-tier--premium {
  background: rgba(255,180,0,0.06); border-color: rgba(255,180,0,0.35);
  box-shadow: 0 0 28px rgba(255,180,0,0.08);
}
.wi-plan-tier-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--saffron); color: #000; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 10px; border-radius: 20px;
}
.wi-plan-tier-label { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); }
.wi-plan-card-tier--premium .wi-plan-tier-label { color: var(--saffron); }
.wi-plan-tier-price { font-size: 1.4rem; font-weight: 700; color: #fff; }
.wi-plan-tier-price span { font-size: 0.8rem; font-weight: 400; color: rgba(255,255,255,0.45); }
.wi-plan-tier-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); flex: 1; margin: 0; line-height: 1.5; }
.wi-plan-tier-btn {
  width: 100%; padding: 10px; border-radius: 8px; border: none; cursor: pointer;
  font-size: 0.85rem; font-weight: 600; transition: opacity 0.2s;
}
.wi-plan-tier-btn:hover { opacity: 0.85; }
.wi-plan-tier-btn--ghost    { background: rgba(255,255,255,0.07); color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.15); }
.wi-plan-tier-btn--secondary { background: rgba(255,255,255,0.12); color: #fff; }
.wi-plan-tier-btn--premium   { background: var(--saffron); color: #000; }

/* Comparison table */
.wi-pricing-table-wrap {
  max-width: 860px; margin: 0 auto; overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08); border-radius: 12px;
}
.wi-pricing-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.wi-pricing-table thead th {
  padding: 12px 14px; text-align: center; font-weight: 600;
  background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
}
.wi-pricing-table thead th.wi-pt-feat { text-align: left; }
.wi-pricing-table thead th.wi-pt-premium { color: var(--saffron); }
.wi-pricing-table tbody tr { border-top: 1px solid rgba(255,255,255,0.05); }
.wi-pricing-table tbody tr:hover { background: rgba(255,255,255,0.02); }
.wi-pricing-table tbody td { padding: 10px 14px; text-align: center; color: rgba(255,255,255,0.45); }
.wi-pricing-table tbody td:first-child { text-align: left; color: rgba(255,255,255,0.8); }
.wi-pt-premium { background: rgba(255,180,0,0.04); }
.wi-pt-yes  { color: #4caf87 !important; font-weight: 600; }
.wi-pt-no   { color: rgba(255,255,255,0.2) !important; }
.wi-pt-lim  { color: #e8a045 !important; font-weight: 500; }
.wi-pt-premium.wi-pt-yes { color: var(--saffron) !important; }

@media (max-width: 680px) {
  .wi-pricing-section { padding: 60px 20px 40px; }
  .wi-pricing-cards { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────────────────────── */

.wi-benefit-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px clamp(24px, 10vw, 160px);
  background: radial-gradient(ellipse at 50% 0%, #0f2238 0%, #071120 54%, #020811 100%);
}

.wi-benefit-strip div {
  display: grid;
  grid-template-columns: 58px 1fr;
  column-gap: 18px;
  align-items: center;
}

.wi-benefit-strip span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #e8a020;
  font-weight: 900;
}

.wi-benefit-strip strong {
  color: #fff;
}

.wi-benefit-strip p {
  margin: 4px 0 0;
  color: rgba(255,255,255,0.58);
}

@keyframes wi-cloud-drift {
  from { transform: translate3d(-14px, 2px, 0) scale(1); }
  to { transform: translate3d(18px, -10px, 0) scale(1.04); }
}

@keyframes wi-map-float {
  0%, 100% { transform: rotateX(20deg) rotateY(-8deg) translate3d(0, 0, 0); }
  50%       { transform: rotateX(20deg) rotateY(-8deg) translate3d(0, -18px, 0); }
}

@keyframes wi-pin-rise {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(0.3); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes wi-pin-float {
  0%, 100% { margin-top: 0; }
  50% { margin-top: -8px; }
}

@keyframes wi-card-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes wi-card-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes wi-route {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -180; }
}

@media (max-width: 1180px) {
  .wi-hero-stage {
    grid-template-columns: 1fr;
    background: #f4f1eb;
  }

  .wi-hero-main {
    min-height: 760px;
  }

  .wi-side-stack {
    grid-template-rows: none;
  }

  .wi-explore-card,
  .wi-login-card {
    margin-left: 24px;
    margin-right: 24px;
  }

  .wi-plan-card {
    margin: 0;
  }
}

@media (max-width: 820px) {
  .wi-landing-nav {
    padding: 16px 18px;
  }

  .wi-nav-links {
    display: none;
  }

  .wi-hero-main {
    min-height: 980px;
    height: 980px;
    padding: 96px 20px 24px;
  }

  .wi-hero-copy {
    padding-top: 0;
  }

  .wi-map-wrap {
    inset: 270px -12% 124px -4%;
    opacity: 0.84;
  }

  .wi-region-card {
    display: none;
  }

  .wi-statbar {
    left: 16px;
    right: 16px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .wi-statbar div {
    border-right: 0;
    padding: 0;
  }

  .wi-plan-card,
  .wi-experience-section,
  .wi-benefit-strip {
    grid-template-columns: 1fr;
  }

  .wi-plan-map {
    min-height: 280px;
  }

  .wi-experience-rail {
    grid-template-columns: repeat(5, 220px);
  }

  .wi-benefit-strip {
    padding: 30px 20px;
  }
}

@media (max-width: 560px) {
  .wi-brand span:last-child {
    display: none;
  }

  .wi-hero-copy h1 {
    font-size: clamp(2.7rem, 16vw, 4rem);
  }

  .wi-map-wrap {
    inset: 320px -28% 155px -18%;
  }

  .wi-pin span,
  .wi-pin::after {
    display: none;
  }

  .wi-statbar {
    grid-template-columns: 1fr;
  }

  .wi-explore-card {
    min-height: 390px;
    padding: 34px 24px;
  }

  .wi-route-line {
    inset: auto 0 18% 12%;
  }

  .wi-plan-card {
    padding: 34px 20px;
  }

  .wi-day-card,
  .wi-trip-card {
    width: calc(50% - 20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wi-hero-main::before,
  .wi-india-map,
  .wi-pin,
  .wi-region-card,
  .wi-route-hot {
    animation: none !important;
  }
}

/* ============================================================
   WB MOTION SYSTEM — cinematic entrance, parallax, scroll reveals
   ============================================================ */

/* Scroll reveal base */
.wb-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--wb-delay, 0ms),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) var(--wb-delay, 0ms);
}
.wb-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Word-split spans (set by JS) */
.wb-word { display: inline-block; }

/* CTA button — spring scale + shine sweep + arrow nudge */
.wi-start-btn {
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
}
.wi-start-btn:hover {
  transform: scale(1.04);
  box-shadow:
    0 0 32px rgba(100, 160, 255, 0.42),
    0 8px 24px rgba(0, 0, 0, 0.28);
}
.wi-start-btn span[aria-hidden] {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wi-start-btn:hover span[aria-hidden] {
  transform: translate(5px, -2px);
}
.wi-start-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.58s ease;
}
.wi-start-btn:hover::after { transform: translateX(100%); }

/* Explore card — Ken Burns background zoom */
.wi-explore-bg-zoom {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(160deg, #1a2850 0%, #0c1830 50%, #0a1a28 100%);
  animation: wi-ken-burns 14s ease-in-out infinite alternate;
}
@keyframes wi-ken-burns {
  from { transform: scale(1); }
  to   { transform: scale(1.09); }
}

/* Heart pop animation */
.wb-heart-pop {
  animation: wb-heart-pop 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes wb-heart-pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.45); }
  100% { transform: scale(1.18); }
}

/* Click ripple */
.wb-ripple {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  transform: translate(-50%, -50%) scale(0);
  animation: wb-ripple 0.7s ease-out forwards;
  pointer-events: none;
}
@keyframes wb-ripple {
  to {
    transform: translate(-50%, -50%) scale(30);
    opacity: 0;
  }
}

/* Route SVG pins + hubs */
.wb-route-pin {
  animation: wb-pin-pulse 2s ease-in-out infinite;
}
@keyframes wb-pin-pulse {
  0%, 100% { transform: scale(1);   opacity: 1; }
  50%       { transform: scale(1.4); opacity: 0.7; }
}
.wb-route-hub {
  animation: wb-hub-glow 2.5s ease-in-out infinite;
}
@keyframes wb-hub-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 140, 0, 0.50); }
  50%       { box-shadow: 0 0 28px rgba(255, 140, 0, 0.85); }
}

/* Region card — spring lift on hover */
.wi-region-card {
  transition:
    transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
  cursor: default;
}
.wi-region-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(232, 160, 32, 0.48);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(232, 160, 32, 0.22),
    0 0 44px rgba(232, 160, 32, 0.12);
}

/* Stat bar hover lift */
.wi-statbar {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}
.wi-statbar:hover {
  transform: translateY(-3px);
  opacity: 1;
}

/* Planner day card + trip card hover */
.wi-day-card,
.wi-trip-card {
  transition:
    transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.38s ease;
}
.wi-day-card:hover,
.wi-trip-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.16);
}

/* Budget meter bar fill */
.wi-budget-fill {
  width: 0%;
  transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reduced motion — kill everything motion-related */
@media (prefers-reduced-motion: reduce) {
  .wb-reveal,
  .wb-word,
  .wi-start-btn,
  .wi-start-btn::after,
  .wi-explore-bg-zoom,
  .wb-route-pin,
  .wb-route-hub,
  .wi-region-card,
  .wi-statbar,
  .wi-day-card,
  .wi-trip-card,
  .wi-budget-fill {
    animation: none !important;
    transition: none !important;
  }
  .wb-ripple { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH CHOICE SCREEN (landing card)
═══════════════════════════════════════════════════════════════ */
.auth-screen { width: 100%; }
.auth-screen.hidden { display: none; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0; color: var(--text-muted, #8899aa); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: rgba(255,255,255,0.1);
}

.auth-back-btn {
  background: none; border: none; color: var(--saffron, #f4a623);
  font-size: 0.85rem; cursor: pointer; padding: 0 0 10px;
  opacity: 0.8; transition: opacity 0.2s;
}
.auth-back-btn:hover { opacity: 1; }

.auth-tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  background: rgba(255,255,255,0.05); border-radius: 8px; padding: 4px;
}
.auth-tabs--modal { margin-top: 4px; }
.auth-tab {
  flex: 1; padding: 8px 0; border: none; border-radius: 6px;
  background: transparent; color: var(--text-muted, #8899aa);
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.auth-tab.active {
  background: rgba(244,166,35,0.2); color: var(--saffron, #f4a623);
}

.auth-error {
  font-size: 0.8rem; color: #ff6b6b; margin: 6px 0;
  padding: 8px 10px; background: rgba(255,107,107,0.08);
  border-radius: 6px; border-left: 3px solid #ff6b6b;
}
.auth-error.hidden { display: none; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE ICON (topbar)
═══════════════════════════════════════════════════════════════ */
.profile-icon-wrap { position: relative; }

.profile-icon-btn {
  width: 32px; height: 32px; padding: 0; border-radius: 50% !important;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}

.profile-avatar-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0;
  line-height: 1; user-select: none;
}
.profile-avatar-badge--guest {
  background: rgba(255,255,255,0.1); color: var(--text-muted, #8899aa);
  border: 1px dashed rgba(255,255,255,0.2);
}
.profile-avatar-badge--initials {
  background: linear-gradient(135deg, var(--saffron,#f4a623), #e05c1a);
  color: #fff;
}
.profile-avatar-badge--photo { background: transparent; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE DROPDOWN
═══════════════════════════════════════════════════════════════ */
.profile-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 220px; background: #0f1e2e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  z-index: 9999; padding: 8px 0; overflow: hidden;
}
.profile-dropdown.hidden { display: none; }

.pd-header {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 10px;
}
.pd-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700;
}
.pd-avatar--guest { background: rgba(255,255,255,0.08); color: #8899aa; }
.pd-avatar--user  { background: linear-gradient(135deg,#f4a623,#e05c1a); color: #fff; }

.pd-name  { font-size: 0.85rem; font-weight: 600; color: #e8edf2; line-height: 1.2; }
.pd-plan  { font-size: 0.72rem; color: #8899aa; margin-top: 2px; }
.pd-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 4px 0; }

.pd-item {
  display: block; width: 100%; text-align: left;
  padding: 9px 16px; background: none; border: none;
  color: #c8d4df; font-size: 0.82rem; cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pd-item:hover { background: rgba(255,255,255,0.06); color: #fff; }
.pd-item--primary { color: var(--saffron,#f4a623); font-weight: 600; }
.pd-item--upgrade { color: var(--saffron,#f4a623); }
.pd-item--logout  { color: #ff7b7b; }

/* ═══════════════════════════════════════════════════════════════
   SAVE ITINERARY BUTTON (dashboard header)
═══════════════════════════════════════════════════════════════ */
.save-itin-btn {
  padding: 6px 14px; border-radius: 20px; border: 1px solid var(--saffron,#f4a623);
  background: transparent; color: var(--saffron,#f4a623);
  font-size: 0.75rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s, color 0.2s; white-space: nowrap;
}
.save-itin-btn:hover   { background: var(--saffron,#f4a623); color: #0a1520; }
.save-itin-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.save-itin-btn.saved   { background: #2a6e3a; border-color: #3aa84e; color: #fff; }

/* ═══════════════════════════════════════════════════════════════
   WI MODAL — generic overlay + panel
═══════════════════════════════════════════════════════════════ */
.wi-modal {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.wi-modal.hidden { display: none; }

.wi-modal-panel {
  background: #0f1e2e; border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px; padding: 28px 28px 24px;
  width: 100%; max-width: 500px; max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.wi-modal-panel--sm { max-width: 380px; }
.wi-modal-panel--lg { max-width: 700px; }

.wi-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: #8899aa;
  font-size: 1rem; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: color 0.2s, background 0.2s; z-index: 1;
}
.wi-modal-close:hover { background: rgba(255,255,255,0.08); color: #fff; }

.wi-modal-panel h3 {
  font-size: 1.1rem; font-weight: 700; color: #e8edf2; margin: 0 0 16px;
}

/* ═══════════════════════════════════════════════════════════════
   AUTH REQUIRED MODAL
═══════════════════════════════════════════════════════════════ */
.arm-icon { font-size: 2.5rem; text-align: center; margin-bottom: 10px; }
#authRequiredModal h3 { text-align: center; margin-bottom: 8px; }
.arm-msg { text-align: center; color: #8899aa; font-size: 0.88rem; margin: 0 0 10px; }
.arm-guest-note { text-align: center; margin: 0 0 18px; font-size: 0.8rem; }
#authRequiredModal .primary-button,
#authRequiredModal .secondary-button { width: 100%; }
.arm-guest-link {
  display: block; width: 100%; margin-top: 10px; background: none; border: none;
  color: #8899aa; font-size: 0.8rem; cursor: pointer; text-decoration: underline;
  text-align: center;
}
.arm-guest-link:hover { color: #c8d4df; }

/* ═══════════════════════════════════════════════════════════════
   UPGRADE MODAL
═══════════════════════════════════════════════════════════════ */
.wi-modal-panel--md { max-width: 560px; }
.upg-icon { font-size: 2.5rem; text-align: center; margin-bottom: 10px; }
#upgradeModal h3 { text-align: center; margin-bottom: 8px; }
.upg-sub { text-align: center; color: #8899aa; font-size: 0.88rem; margin: 0 0 16px; }

.upg-table-wrap { overflow-x: auto; margin: 0 0 20px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); }
.upg-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.upg-table thead th {
  padding: 8px 10px; text-align: center; font-weight: 600;
  background: rgba(255,255,255,0.04); color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em;
}
.upg-table thead th.upg-feat-col { text-align: left; }
.upg-table thead th.upg-col--premium { color: var(--saffron); }
.upg-table tbody tr { border-top: 1px solid rgba(255,255,255,0.05); }
.upg-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.upg-table tbody td { padding: 7px 10px; text-align: center; color: var(--muted); }
.upg-table tbody td:first-child { text-align: left; color: var(--text); }
.upg-col--premium { background: rgba(255,180,0,0.04); }
.upg-yes  { color: #4caf87 !important; font-weight: 500; }
.upg-no   { color: #556070 !important; }
.upg-lim  { color: #e8a045 !important; font-weight: 500; }
.upg-col--premium.upg-yes { color: var(--saffron) !important; }

#upgradeModal .primary-button,
#upgradeModal .secondary-button { width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   PROFILE MODAL
═══════════════════════════════════════════════════════════════ */
.pm-top {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.pm-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#f4a623,#e05c1a);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700; color: #fff;
  overflow: hidden;
}
.pm-pic-section { flex: 1; min-width: 0; }

.pm-fields { display: flex; flex-direction: column; gap: 2px; }

.pm-stats {
  display: flex; gap: 24px; margin: 20px 0 16px;
  padding: 14px 16px; background: rgba(255,255,255,0.04);
  border-radius: 10px;
}
.pm-stat { display: flex; flex-direction: column; align-items: center; }
.pm-stat strong { font-size: 1.2rem; color: var(--saffron,#f4a623); }
.pm-stat span   { font-size: 0.72rem; color: #8899aa; margin-top: 2px; }

.pm-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pm-actions .primary-button   { flex: 1; min-width: 140px; }
.pm-actions .secondary-button { flex: 1; min-width: 140px; }

/* ── profile picture upload ─────────────────────────────────── */
.pm-avatar--clickable {
  cursor: pointer; position: relative;
  transition: filter 0.2s;
}
.pm-avatar--clickable:hover   { filter: brightness(0.75); }
.pm-avatar--clickable:focus   { outline: 2px solid var(--saffron,#f4a623); outline-offset: 2px; }

.pm-avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.45); font-size: 1.3rem;
  opacity: 0; transition: opacity 0.2s; pointer-events: none;
}
.pm-avatar--clickable:hover .pm-avatar-overlay,
.pm-avatar--clickable:focus .pm-avatar-overlay { opacity: 1; }

.pm-pic-btns { display: flex; gap: 8px; }

.pm-remove-btn {
  padding: 5px 10px; border-radius: 6px; font-size: 0.78rem;
  background: rgba(255,123,123,0.1); border: 1px solid rgba(255,123,123,0.3);
  color: #ff8a8a; cursor: pointer; transition: background 0.2s, color 0.2s;
}
.pm-remove-btn:hover    { background: rgba(255,123,123,0.2); color: #ffadad; }
.pm-remove-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.pm-upload-status {
  font-size: 0.78rem; margin-top: 6px; min-height: 1.1em;
  transition: color 0.2s;
}
.pm-upload-status--ok    { color: #5ecb80; }
.pm-upload-status--error { color: #ff7b7b; }

/* ═══════════════════════════════════════════════════════════════
   SAVED ITINERARIES MODAL
═══════════════════════════════════════════════════════════════ */
.si-empty {
  text-align: center; padding: 40px 20px;
  color: #8899aa;
}
.si-empty.hidden { display: none; }
.si-empty-icon { font-size: 3rem; margin-bottom: 12px; }

.si-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px; margin-top: 4px;
}
.si-loading, .si-error { color: #8899aa; font-size: 0.85rem; padding: 20px; text-align: center; }

.si-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 6px;
  transition: border-color 0.2s, background 0.2s;
}
.si-card:hover { background: rgba(255,255,255,0.07); border-color: rgba(244,166,35,0.3); }

.si-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.si-card-title { font-size: 0.88rem; font-weight: 600; color: #e8edf2; margin: 0; flex: 1; }
.si-fav { color: var(--saffron,#f4a623); font-size: 0.9rem; }
.si-card-dest { font-size: 0.78rem; color: #8899aa; margin: 0; }
.si-card-meta {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: 0.72rem; color: #6a7f8e;
}
.si-card-date { margin-left: auto; }
.si-card-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px;
}
.si-fav-btn, .si-del-btn {
  background: none; border: none; cursor: pointer;
  font-size: 0.85rem; padding: 3px 7px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.si-fav-btn { color: var(--saffron,#f4a623); }
.si-fav-btn:hover { background: rgba(244,166,35,0.15); }
.si-del-btn { color: #ff7b7b; }
.si-del-btn:hover { background: rgba(255,123,123,0.12); }

.si-pagination {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 16px; padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.si-pagination .secondary-button { padding: 6px 14px; font-size: 0.8rem; }
.si-pagination .secondary-button:disabled { opacity: 0.35; cursor: not-allowed; }

/* ── Brand showcase ──────────────────────────────────── */
.wi-brand-showcase {
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse at 40% 50%, #0d1a2e 0%, #060c18 60%, #020811 100%);
  border-top: 1px solid rgba(232, 137, 10, 0.12);
  border-bottom: 1px solid rgba(232, 137, 10, 0.12);
  padding: 64px 24px;
}

.wi-brand-showcase-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 56px;
}

.wi-showcase-logo {
  width: 340px;
  max-width: 42vw;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 0 32px rgba(232, 137, 10, 0.25));
}

.wi-showcase-copy {
  flex: 1;
  min-width: 0;
}

.wi-showcase-name {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.wi-showcase-wordmark {
  font-family: 'Black Ops One', 'Impact', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #c8bfa8;
  letter-spacing: 0.03em;
  text-shadow: 2px 3px 6px rgba(0,0,0,0.9), 0 0 20px rgba(0,0,0,0.5);
  line-height: 1;
}

.wi-india-badge--lg {
  font-family: 'Black Ops One', 'Impact', sans-serif;
  font-size: 1rem;
  padding: 4px 14px;
  letter-spacing: 0.1em;
}

.wi-showcase-tagline {
  font-family: 'Black Ops One', 'Impact', sans-serif;
  font-size: clamp(0.95rem, 2.2vw, 1.3rem);
  color: #e8890a;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-shadow: 0 0 12px rgba(232, 137, 10, 0.3);
}

.wi-showcase-sub {
  font-size: 0.95rem;
  color: rgba(245, 239, 216, 0.55);
  line-height: 1.65;
  margin: 0;
  max-width: 480px;
}

@media (max-width: 680px) {
  .wi-brand-showcase-inner {
    flex-direction: column;
    gap: 32px;
    text-align: center;
  }
  .wi-showcase-logo {
    width: 240px;
    max-width: 70vw;
  }
  .wi-showcase-name { justify-content: center; }
  .wi-showcase-sub { margin: 0 auto; }
}

/* ── Landing footer ──────────────────────────────────── */
.wi-landing-footer {
  background: rgba(4, 6, 14, 0.96);
  border-top: 1px solid rgba(201, 162, 39, 0.14);
  padding: 48px 24px 32px;
}
.wi-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.wi-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f5efd8;
}
.wi-footer-brand-name { color: #f5efd8; }
.wi-footer-tagline {
  color: rgba(245, 239, 216, 0.5);
  font-size: 0.82rem;
  margin: 0;
  max-width: 480px;
}
.wi-footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.wi-footer-links a {
  color: rgba(245, 239, 216, 0.55);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.wi-footer-links a:hover { color: #c9a227; }
.wi-footer-legal {
  color: rgba(245, 239, 216, 0.3);
  font-size: 0.72rem;
  margin: 0;
  max-width: 600px;
  line-height: 1.6;
}

/* ═══ EMAIL VERIFICATION SCREENS ════════════════════════════════════════════ */

.auth-verify-icon {
  font-size: 2.8rem;
  text-align: center;
  margin: 0 0 16px;
  line-height: 1;
  display: block;
}
.auth-verify-icon--success { color: #22c55e; }
.auth-verify-icon--error   { color: #ef4444; }

.auth-verify-heading {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text, #F0F4FF);
  margin: 0 0 12px;
  text-align: center;
}

.auth-verify-msg {
  font-size: 0.9rem;
  color: var(--muted-light, #A8B5CC);
  line-height: 1.6;
  margin: 0 0 10px;
  text-align: center;
}

.auth-verify-sub {
  font-size: 0.78rem;
  color: var(--muted, #8896B3);
  text-align: center;
  margin: 0 0 14px;
}

/* Unverified banner shown below the login form */
.auth-unverified-banner {
  background: rgba(234, 179, 8, 0.08);
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #fde68a;
  line-height: 1.55;
  margin-bottom: 10px;
}

/* Inline link-style button used inside the unverified banner */
.auth-link-btn {
  background: none;
  border: none;
  padding: 0;
  color: #c9a227;
  font-size: inherit;
  font-family: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Transport booking widget (shown above itinerary tabs) ── */
.transport-widget {
  background: rgba(15, 184, 160, 0.05);
  border: 1px solid rgba(15, 184, 160, 0.18);
  border-radius: var(--r-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.twl-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.twl-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
}

.twl-route {
  font-size: 0.82rem;
  color: var(--muted-light);
}

.twl-modes {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.twl-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.twl-icon {
  font-size: 0.95rem;
  width: 20px;
  text-align: center;
  flex: 0 0 auto;
}

.twl-mode {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  width: 42px;
  flex: 0 0 auto;
}

.twl-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.twl-link {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(15, 184, 160, 0.09);
  border: 1px solid rgba(15, 184, 160, 0.22);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.twl-link:hover {
  background: rgba(15, 184, 160, 0.22);
  border-color: rgba(15, 184, 160, 0.45);
  color: #fff;
}

@media (max-width: 480px) {
  .twl-row { gap: 6px; }
  .twl-mode { width: 36px; font-size: 0.68rem; }
}
.auth-link-btn:hover { color: #f5c842; }

/* ── Stay tier badges ─────────────────────────────────── */
.stay-tier-badge {
  display: inline-block;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 20px;
  margin-right: 5px;
  vertical-align: middle;
  flex-shrink: 0;
}
.tier-premium  { background: rgba(212,175,55,0.15); color: #c9a227; border: 1px solid rgba(212,175,55,0.3); }
.tier-balanced { background: rgba(15,184,160,0.13); color: #0fb8a0; border: 1px solid rgba(15,184,160,0.28); }
.tier-budget   { background: rgba(90,158,106,0.13); color: #5a9e6a; border: 1px solid rgba(90,158,106,0.28); }

.stay-block, .move-block { display: flex; flex-direction: column; gap: 3px; }
.stay-header { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; line-height: 1.4; }
.stay-type   { font-size: 0.72rem; color: var(--text-muted, #888); text-transform: capitalize; }
.stay-rating { color: var(--amber, #f59e0b); font-size: 0.8rem; }
.stay-price  { font-size: 0.8rem; color: var(--text-muted, #888); }
.stay-why    { font-size: 0.76rem; color: var(--text-muted, #888); font-style: italic; margin: 0; }

/* ── Transport (Move) tier indicators ────────────────── */
.move-mode    { font-weight: 600; font-size: 0.84rem; }
.move-fastest { color: #e07b2a; }
.move-balanced{ color: #0fb8a0; }
.move-cheapest{ color: #5a9e6a; }
.move-meta    { font-size: 0.8rem; color: var(--text-muted, #888); }
.move-why     { font-size: 0.76rem; color: var(--text-muted, #888); font-style: italic; margin: 0; }

.day-row--stay .day-row-text,
.day-row--move .day-row-text { display: flex; flex-direction: column; gap: 3px; }

/* Anti-flash session guard — applied by js/anti-flash.js via classList (no inline style needed) */
html.wi-has-session #loginView { display: none !important; }
/* MUST be `flex !important`, not `block` — .app-view is defined as
 * display: flex; flex-direction: column with #panesWrap using `flex: 1`
 * to fill the remaining vertical space. Forcing `display: block` here
 * (the previous value) breaks the flex layout: panesWrap collapses to
 * 0 height because `flex: 1` is meaningless inside a block parent, so
 * adventurePane / chatPane / overviewPane render at h=0 ("blank tab"
 * symptom) after any reload where sessionStorage.wi_session_active
 * persists and anti-flash.js fires before the tab pane content scripts.
 */
html.wi-has-session #appView   { display: flex !important; }

/* ── CSP utility classes (replaces inline style= attributes) ── */
.wi-hidden       { display: none !important; }
.wi-avatar-img   { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE NAVIGATION — hamburger toggle + slide-down drawer
   Drawer and overlay are display:none on desktop; shown only at ≤820px.
   Animation uses visibility/opacity so the transition is smooth without
   the display:none flicker problem.
   ═══════════════════════════════════════════════════════════════════════════ */

/* Hamburger button — hidden on desktop */
.wi-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 8px;
  cursor: pointer;
  color: inherit;
  transition: background 0.22s ease, border-color 0.22s ease;
}
.wi-nav-toggle:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.28);
}
.wi-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: rgba(255,255,255,0.86);
  border-radius: 2px;
  transition: transform 0.26s ease, opacity 0.26s ease;
  transform-origin: center;
}
/* Animate to × when open */
.wi-nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wi-nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.wi-nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — hidden everywhere by default */
.wi-mobile-nav {
  display: none;
}

/* Background overlay — hidden everywhere by default */
.wi-mobile-nav-overlay {
  display: none;
}

/* ── Mobile overrides ≤820px ──────────────────────────────────────── */
@media (max-width: 820px) {
  /* Show the toggle button */
  .wi-nav-toggle { display: flex; }

  /* Slide-down drawer */
  .wi-mobile-nav {
    position: fixed;
    top: 62px;            /* clear the mobile nav bar height (16px*2 + ~30px brand) */
    left: 0;
    right: 0;
    z-index: 21;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(6, 10, 22, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 8px 24px 26px;
    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0s 0.24s;
  }
  .wi-mobile-nav.wi-mobile-nav--open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.24s ease, transform 0.24s ease; /* no visibility delay on open */
  }

  /* Nav links inside drawer */
  .wi-mobile-nav a {
    display: block;
    padding: 15px 0;
    color: rgba(255,255,255,0.72);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    transition: color 0.18s ease;
  }
  .wi-mobile-nav a:last-child { border-bottom: none; }
  .wi-mobile-nav a:hover,
  .wi-mobile-nav a:active { color: #fff; }

  /* Get App CTA styled differently inside drawer */
  .wi-mobile-nav .wi-mobile-nav-cta {
    margin-top: 14px;
    padding: 14px 0 !important;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.22) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.05);
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff !important;
    letter-spacing: 0.01em;
  }
  .wi-mobile-nav .wi-mobile-nav-cta:hover {
    background: rgba(255,255,255,0.10) !important;
    color: #fff !important;
  }

  /* Dim overlay behind the drawer — starts at the bottom of the nav bar
     (same top as the drawer) so the nav/toggle remains fully clickable. */
  .wi-mobile-nav-overlay {
    display: block;
    position: fixed;
    top: 62px;   /* clear the nav bar — matches drawer top */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: rgba(0, 0, 0, 0);
    pointer-events: none;
    transition: background 0.24s ease;
  }
  .wi-mobile-nav-overlay.wi-mobile-nav-overlay--open {
    background: rgba(0, 0, 0, 0.46);
    pointer-events: auto;
  }
}
.atc-action--full { width: 100%; margin-top: 8px; }
