/* ─────────────────────────────────────────
   TRIPCO — Premium Warm Editorial Theme
   Palette ref: Airbnb · Notion · Stripe
   ───────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  /* Backgrounds — warm, not cold */
  --bg-base:    #0f0d0b;
  --bg-surface: #161310;
  --bg-card:    #1c1814;
  --bg-inset:   #211d18;
  --bg-raised:  #261f18;

  /* Brand palette — inspired by Airbnb coral, Notion sand, Stripe slate */
  --amber:        #c8875a;   /* warm terracotta — primary accent */
  --amber-light:  #dba07a;
  --amber-faint:  rgba(200,135,90,0.08);
  --amber-border: rgba(200,135,90,0.22);

  --sage:         #7ba882;   /* muted sage green — food gem */
  --sage-light:   #9dc4a4;
  --sage-faint:   rgba(123,168,130,0.08);
  --sage-border:  rgba(123,168,130,0.22);

  --slate:        #8b9db5;   /* cool slate — transit / asakusa */
  --slate-faint:  rgba(139,157,181,0.08);
  --slate-border: rgba(139,157,181,0.22);

  --rose:         #c47d8a;   /* muted rose — Delhi accent */
  --rose-faint:   rgba(196,125,138,0.08);
  --rose-border:  rgba(196,125,138,0.22);

  /* Text — warm off-white scale */
  --text-primary:   #ede8e2;
  --text-secondary: #9e9085;
  --text-muted:     #635c54;
  --text-faint:     #3a3530;

  /* Borders */
  --border-hairline: rgba(255,255,255,0.05);
  --border-subtle:   rgba(255,255,255,0.08);
  --border-visible:  rgba(255,255,255,0.13);

  /* Type */
  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  18px;
  --r-xl:  22px;
  --r-pill:100px;

  /* Transitions */
  --t-fast: 0.15s ease;
  --t-base: 0.25s ease;
  --t-slow: 0.4s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
body {
  font-family: var(--sans);
  background: var(--bg-base);
  color: var(--text-primary);
  max-width: 430px;
  margin: 0 auto;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* scrollbar */
::-webkit-scrollbar { width:3px; }
::-webkit-scrollbar-track { background:var(--bg-base); }
::-webkit-scrollbar-thumb { background:var(--text-faint); border-radius:4px; }

/* ── APP VIEWS ── */
.app-view {
  display: none;
  animation: fadeUpView 0.3s ease both;
  padding-bottom: 120px; /* Ensure gap above bottom nav */
}
.app-view.active {
  display: block;
}

@keyframes fadeUpView {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── STATUS BAR ── */
.status-bar {
  display: none !important;
}
.status-icons { display:none !important; }

/* ── APP HEADER ── */
.app-header {
  display:flex; align-items:center; justify-content:space-between;
  padding: 6px 18px 10px;
  position:sticky; top:0; z-index:99;
  background: rgba(15,13,11,0.92);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--border-hairline);
}
.header-wordmark { font-family:var(--sans); font-weight:800; font-size:16px; letter-spacing:0.06em; }
.wordmark-trip { color:var(--text-primary); }
.wordmark-co   { color:var(--amber); }
.header-actions { display:flex; align-items:center; gap:8px; }
.hdr-btn {
  display:flex; align-items:center; justify-content:center;
  width:34px; height:34px;
  border-radius:var(--r-pill); border:1px solid var(--border-subtle);
  background:var(--bg-card); color:var(--text-secondary);
  cursor:pointer; transition:var(--t-fast);
}
.hdr-btn:hover { background:var(--bg-inset); color:var(--text-primary); }

/* ── CITY TABS ── */
.city-tabs {
  display:flex; align-items:stretch; justify-content: space-between;
  background:var(--bg-surface);
  border-bottom:1px solid var(--border-subtle);
  padding: 6px 18px 0;
  gap:4px;
  overflow-x: auto;
}
.city-tabs::-webkit-scrollbar { display: none; }
.city-tab-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  bottom: -1px;
  border-bottom: 2px solid transparent;
  transition: var(--t-base);
}
.city-tab {
  display:flex; align-items:center; gap:7px;
  padding: 10px 12px;
  border:none; background:none;
  font-family:var(--sans); font-size:13.5px; font-weight:600;
  color:var(--text-muted); cursor:pointer;
  white-space: nowrap;
  transition:var(--t-base);
}
.city-tab svg { width: 14px; height: 14px; opacity: 0.6; }
.city-tab:hover { color:var(--text-secondary); }
.city-tab:hover svg { opacity: 0.8; }
.tab-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
  margin-right: 4px;
}
.tab-close-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.city-tab-wrapper.active {
  border-bottom-color: var(--amber);
}
.city-tab-wrapper.active .city-tab {
  color: var(--amber);
}
.city-tab-wrapper.active .city-tab svg {
  opacity: 1; color: var(--amber);
}
.city-tab-wrapper.active .tab-close-btn {
  display: inline-flex;
}

/* ── CITY PANELS ── */
.city-panel { display:none; }
.city-panel.active { display:block; }

/* ── HERO ── */
.hero {
  padding: 28px 20px 22px;
  position:relative; overflow:hidden;
  background:
    radial-gradient(ellipse 240px 180px at 10% 20%, rgba(200,135,90,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 180px 180px at 90% 80%, rgba(123,168,130,0.05) 0%, transparent 70%),
    var(--bg-base);
}
.hero::before {
  content:''; position:absolute; inset:0; pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,0.012) 1px, transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,0.012) 1px, transparent 1px);
  background-size:32px 32px;
}
.hero-delhi {
  background:
    radial-gradient(ellipse 240px 180px at 10% 20%, rgba(196,125,138,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 180px 180px at 90% 80%, rgba(200,135,90,0.05) 0%, transparent 70%),
    var(--bg-base);
}
.hero-dehradun {
  background:
    radial-gradient(ellipse 240px 180px at 10% 20%, rgba(123,168,130,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 180px 180px at 90% 80%, rgba(139,157,181,0.05) 0%, transparent 70%),
    var(--bg-base);
}
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 10px; border-radius:var(--r-pill);
  background:var(--amber-faint); border:1px solid var(--amber-border);
  color:var(--amber); font-size:11px; font-weight:600; letter-spacing:0.03em;
  margin-bottom:12px; position:relative; z-index:1;
}
.hero-title {
  font-family:var(--serif);
  font-size:52px; font-weight:700;
  line-height:1.0; letter-spacing:-0.02em;
  color:var(--text-primary);
  margin-bottom:8px; position:relative; z-index:1;
}
.hero-subtitle {
  font-size:14px; font-weight:400;
  color:var(--text-secondary); line-height:1.5;
  margin-bottom:18px; position:relative; z-index:1;
}
.hero-pills {
  display:flex; gap:7px; flex-wrap:wrap;
  position:relative; z-index:1;
}
.pill {
  padding:5px 12px; border-radius:var(--r-pill);
  border:1px solid var(--border-visible);
  background:rgba(255,255,255,0.04);
  font-size:12px; font-weight:500; color:var(--text-secondary);
}
.pill.amber { background:var(--amber-faint); border-color:var(--amber-border); color:var(--amber); }
.pill.rose  { background:var(--rose-faint);  border-color:var(--rose-border);  color:var(--rose); }
.pill.sage  { background:var(--sage-faint);  border-color:var(--sage-border);  color:var(--sage); }

/* ── LEGEND ── */
.legend {
  display:flex; align-items:center; justify-content:center;
  gap:14px; padding:11px 18px;
  background:var(--bg-surface);
  border-bottom:1px solid var(--border-hairline);
  font-size:11.5px; font-weight:500; color:var(--text-muted);
}
.leg { display:flex; align-items:center; gap:6px; }
.leg-dot { width:7px; height:7px; border-radius:50%; flex-shrink:0; }
.amber-dot { background:var(--amber); box-shadow:0 0 5px rgba(200,135,90,0.5); }
.sage-dot  { background:var(--sage);  box-shadow:0 0 5px rgba(123,168,130,0.5); }
.slate-dot { background:var(--slate); box-shadow:0 0 5px rgba(139,157,181,0.5); }
.leg-div { width:1px; height:12px; background:var(--border-hairline); }

/* ── DAY FILTERS ── */
.day-filters-wrap {
  padding: 0 16px 16px;
  background: var(--bg-base);
}
.day-filters {
  display: flex; gap: 8px;
  overflow-x: auto;
}
.day-filters::-webkit-scrollbar { display: none; }
.day-filter-btn {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 12px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: var(--t-fast);
  white-space: nowrap;
}
.day-filter-btn:hover { background: var(--bg-inset); color: var(--text-secondary); }
.day-filter-btn.active {
  background: var(--amber-faint);
  border-color: var(--amber-border);
  color: var(--amber);
}

/* ── FOOD PREFERENCE FILTERS ── */
.food-pref-wrap {
  padding: 0 16px 16px;
  background: var(--bg-base);
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-hairline);
  overflow-x: auto;
}
.food-pref-wrap::-webkit-scrollbar { display: none; }
.pref-btn {
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  color: var(--text-muted);
  font-size: 11.5px; font-weight: 600; font-family: var(--sans);
  cursor: pointer; transition: var(--t-fast);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pref-btn:hover {
  background: var(--bg-inset);
  color: var(--text-secondary);
}
.pref-btn.active {
  background: var(--amber-faint);
  border-color: var(--amber-border);
  color: var(--amber);
}

.veg-indicator {
  width: 10px; height: 10px;
  border: 1px solid var(--sage);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px; padding: 1px;
  flex-shrink: 0;
}
.veg-indicator-dot {
  width: 4px; height: 4px;
  background: var(--sage);
  border-radius: 50%;
}

.nonveg-indicator {
  width: 10px; height: 10px;
  border: 1px solid var(--rose);
  display: flex; align-items: center; justify-content: center;
  border-radius: 2px; padding: 1px;
  flex-shrink: 0;
}
.nonveg-indicator-dot {
  width: 4px; height: 4px;
  background: var(--rose);
  border-radius: 50%;
}

.food-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-inset);
  padding: 2px 6px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-hairline);
}



/* ── CLUSTER SECTION ── */
.cluster {
  margin: 20px 16px 0;
  border-radius:var(--r-xl);
  background:var(--bg-surface);
  border:1px solid var(--border-hairline);
  overflow:hidden;
  animation: fadeUp 0.4s ease both;
}
.cluster + .cluster { margin-top:12px; }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── CLUSTER HEADER ── */
.cluster-hd {
  display:flex; align-items:center; gap:12px;
  padding:15px 16px;
  border-bottom:1px solid var(--border-hairline);
  cursor:pointer;
}
.chd-bar { width:3px; height:46px; border-radius:3px; flex-shrink:0; }
.bar-amber { background:linear-gradient(to bottom, var(--amber), var(--amber-light)); }
.bar-sage  { background:linear-gradient(to bottom, var(--sage),  var(--sage-light)); }
.bar-slate { background:linear-gradient(to bottom, var(--slate), #a8bcce); }

.chd-text { flex:1; min-width:0; }
.chd-daytag {
  display:inline-block; padding:2px 8px; border-radius:var(--r-pill);
  font-size:10px; font-weight:700; letter-spacing:0.06em;
  text-transform:uppercase; margin-bottom:3px;
}
.amber-tag { background:var(--amber-faint); border:1px solid var(--amber-border); color:var(--amber); }
.sage-tag  { background:var(--sage-faint);  border:1px solid var(--sage-border);  color:var(--sage); }
.slate-tag { background:var(--slate-faint); border:1px solid var(--slate-border); color:var(--slate); }

.chd-name {
  font-family:var(--serif); font-size:22px; font-weight:600;
  color:var(--text-primary); line-height:1.1;
}
.chd-sub { font-size:11.5px; color:var(--text-muted); margin-top:2px; }
.chd-meta {
  display:flex; flex-direction:column; align-items:flex-end; gap:2px;
  font-size:11px; color:var(--text-secondary); flex-shrink:0;
}

/* ── ARRIVAL ROW ── */
.arr-row {
  display:flex; align-items:center; gap:7px;
  padding:9px 16px;
  font-size:12px; color:var(--text-muted);
  background:rgba(200,135,90,0.03);
  border-bottom:1px solid var(--border-hairline);
}
.arr-row strong { color:var(--text-secondary); font-weight:600; }

/* ── SPOTS CONTAINER ── */
.spots { transition: max-height 0.4s ease, opacity 0.3s ease; }

/* ── SPOT ── */
.spot {
  display:flex; gap:12px;
  padding:14px 16px;
  border-bottom:1px solid var(--border-hairline);
  transition:background var(--t-fast);
  cursor:pointer;
  position: relative;
}
.spot:last-child { border-bottom:none; }
.spot:hover { background:rgba(255,255,255,0.015); }
.spot:hover .s-name { color:var(--amber); }
.spot.food:hover .s-name { color:var(--sage); }

/* SPOT SAVE BUTTON */
.spot-save-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--t-fast);
  z-index: 2;
  padding: 4px;
  border-radius: 50%;
}
.spot-save-btn:hover {
  background: var(--bg-inset);
  color: var(--text-secondary);
}
.spot-save-btn.saved {
  color: var(--amber);
}
.spot-save-btn.saved svg {
  fill: var(--amber);
}

.s-num {
  font-size:10.5px; font-weight:600; font-family:var(--sans);
  color:var(--text-faint); padding-top:3px; flex-shrink:0; width:18px;
  letter-spacing:0.02em;
}
.s-body { flex:1; min-width:0; padding-right: 24px; } /* padding for save btn */

/* meta row */
.s-meta-row {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  margin-bottom:6px;
}
.s-meta-left {
  display: flex; align-items: center; gap: 8px;
}
.s-badge {
  display:inline-flex; align-items:center; gap:4px;
  padding:2px 8px; border-radius:var(--r-pill);
  font-size:10px; font-weight:600; letter-spacing:0.02em;
}
.ae-badge { background:var(--amber-faint); border:1px solid var(--amber-border); color:var(--amber); }
.fd-badge { background:var(--sage-faint);  border:1px solid var(--sage-border);  color:var(--sage); }

.s-rating {
  display: flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; color: var(--amber);
}

.s-time { font-size:10.5px; color:var(--text-muted); white-space:nowrap; }

/* spot name & desc */
.s-name {
  font-family:var(--serif); font-size:16px; font-weight:600;
  color:var(--text-primary); margin-bottom:5px;
  line-height:1.25; transition:color var(--t-fast);
}
.s-desc {
  font-size:12.5px; line-height:1.65; color:var(--text-secondary);
  margin-bottom:9px; font-weight:400;
}
/* spot image injected from Unsplash */
.s-image-container {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background-color: var(--bg-inset);
  position: relative;
}
.s-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-normal) ease;
}
.spot-card:hover .s-image {
  transform: scale(1.03);
}
/* Satellite toggle button */
.sat-toggle {
  display:inline-flex; align-items:center; gap:5px;
  padding:4px 8px; border-radius:var(--r-pill);
  background:var(--bg-card); border:1px solid var(--border-subtle);
  color:var(--text-primary); font-size:11px; font-weight:600;
  cursor:pointer; transition:var(--t-fast);
}
.sat-toggle:hover {
  background:var(--bg-inset);
}
.s-tags {
  display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px;
}
.s-tags span {
  padding:2px 8px; border-radius:var(--r-pill);
  font-size:10.5px; font-weight:500;
  background:var(--bg-inset); border:1px solid var(--border-hairline);
  color:var(--text-muted);
}

/* maps button */
.maps-btn {
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 13px; border-radius:var(--r-pill);
  background:var(--amber-faint); border:1px solid var(--amber-border);
  color:var(--amber); font-size:11px; font-weight:600;
  text-decoration:none; cursor:pointer; transition:var(--t-fast);
}
.maps-btn:hover {
  background:rgba(200,135,90,0.15);
  border-color:rgba(200,135,90,0.4);
  box-shadow:0 0 12px rgba(200,135,90,0.12);
}

/* ── MENU TOGGLE BUTTON ── */
.menu-toggle {
  display:inline-flex; align-items:center; gap:5px;
  padding:6px 13px; border-radius:var(--r-pill);
  background:var(--bg-inset); border:1px solid var(--border-subtle);
  color:var(--text-muted); font-size:11px; font-weight:600;
  font-family:var(--sans); cursor:pointer; transition:var(--t-fast);
  margin-top:8px; margin-left:8px;
}
.menu-toggle:hover {
  background:var(--bg-raised); color:var(--text-secondary);
  border-color:var(--border-visible);
}
.menu-toggle.open {
  background:var(--sage-faint); border-color:var(--sage-border);
  color:var(--sage);
}

/* ── MENU DRAWER ── */
.menu-drawer {
  display:none;
  margin-top:12px;
  border-radius:var(--r-md);
  background:var(--bg-inset);
  border:1px solid var(--border-subtle);
  overflow:hidden;
}
.menu-drawer.open { display:block; animation:slideDown 0.3s ease; }

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

.menu-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px 9px;
  border-bottom:1px solid var(--border-hairline);
  background:var(--bg-card);
}
.menu-title { font-size:12px; font-weight:700; color:var(--text-secondary); text-transform:uppercase; letter-spacing:0.4px; }
.menu-note { font-size:11.5px; color:var(--text-muted); font-style:italic; }

.menu-grid { padding:6px 0; }
.menu-item { padding:8px 14px; border-bottom:1px solid var(--border-hairline); }
.menu-item:last-child { border-bottom:none; }
.menu-item.highlight-item { background:var(--bg-elevated); position:relative; }
.menu-item.highlight-item::before {
  content:""; position:absolute; left:0; top:0; bottom:0; width:3px; background:var(--amber);
}

.trip-type-toggle {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  justify-content: center;
}
.trip-type-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.trip-type-label input { display: none; }
.trip-type-label:hover {
  background: var(--bg-hover);
  color: var(--text-secondary);
}
.trip-type-label.active {
  background: var(--amber);
  color: var(--bg-surface);
  border-color: var(--amber);
}

.autocomplete-dropdown {
  display:flex; align-items:center; justify-content:space-between;
  padding:10px 14px 9px;
  border-bottom:1px solid var(--border-hairline);
}
.menu-title {
  font-size:12px; font-weight:700; color:var(--text-primary);
  font-family:var(--sans);
}
.menu-note { font-size:10.5px; color:var(--text-muted); }

.menu-grid { padding:8px 10px; display:flex; flex-direction:column; gap:2px; }

.menu-item {
  padding:10px 8px;
  border-radius:var(--r-sm);
  transition:background var(--t-fast);
}
.menu-item:hover { background:var(--bg-raised); }
.highlight-item {
  background:rgba(200,135,90,0.05);
  border:1px solid var(--amber-border);
}
.highlight-item:hover { background:rgba(200,135,90,0.09); }

.mi-top {
  display:flex; align-items:baseline; justify-content:space-between; gap:8px;
  margin-bottom:3px;
}
.mi-name { font-size:12.5px; font-weight:600; color:var(--text-primary); }
.mi-price {
  font-size:12.5px; font-weight:700; color:var(--amber);
  flex-shrink:0; font-feature-settings:"tnum";
}
.mi-desc { font-size:11.5px; color:var(--text-secondary); line-height:1.5; }

.menu-tip {
  display:flex; align-items:flex-start; gap:7px;
  padding:10px 14px;
  border-top:1px solid var(--border-hairline);
  font-size:11px; color:var(--text-muted); line-height:1.55;
}
.menu-tip svg { flex-shrink:0; margin-top:1px; color:var(--amber); }

/* ── TRANSIT BAR ── */
.transit-bar {
  display:flex; align-items:center; gap:12px;
  padding:13px 16px;
  border-top:1px solid var(--border-hairline);
  background:linear-gradient(to right, rgba(200,135,90,0.05), transparent);
  cursor:pointer; transition:background var(--t-fast);
}
.transit-bar:hover { background:linear-gradient(to right, rgba(200,135,90,0.09), transparent); }
.transit-bar svg { color:var(--amber); flex-shrink:0; }
.tr-sage svg { color:var(--sage); }
.tr-sage { background:linear-gradient(to right, rgba(123,168,130,0.05), transparent); }
.tr-sage:hover { background:linear-gradient(to right, rgba(123,168,130,0.09), transparent); }
.tr-info { display:flex; flex-direction:column; gap:2px; }
.tr-info strong { font-size:13px; font-weight:700; color:var(--text-primary); }
.tr-info span   { font-size:11.5px; color:var(--text-muted); }

/* ── END STRIP ── */
.end-strip {
  display:flex; align-items:center; gap:10px;
  padding:12px 16px;
  border-top:1px solid var(--border-hairline);
  font-size:12px; color:var(--text-muted);
  background:rgba(255,255,255,0.01);
}
.end-strip svg { color:var(--sage); flex-shrink:0; }

/* ── FULL WIDTH LAYOUT (Map Removed from Itinerary) ── */
.explore-split-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.narrative-journal {
  padding-bottom: 120px;
  width: 100%;
  max-width: 800px; /* Keep text readable */
  margin: 0 auto; /* Center the journal */
}
.sticky-map-container {
  display: none !important; /* Force hide the map from the Explore screen on all devices */
}

@media (min-width: 768px) {
}

#view-map {
  padding-bottom: 0;
  height: calc(100vh - 85px); /* minus bottom nav */
  flex-direction: column;
}
#view-map.active {
  display: flex;
}
#view-map .app-header {
  flex-shrink: 0;
}

#map {
  width: 100%;
  height: 100%;
  margin-top: 0;
  background-color: var(--bg-dark);
}

.open-explorer-inline-btn {
  margin: 32px 18px 48px;
  width: calc(100% - 36px);
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 14px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--t-fast);
}
.open-explorer-inline-btn:hover {
  background: var(--bg-inset);
  border-color: var(--border-strong);
}

.map-layer-filters {
  position: absolute;
  top: 16px; /* Moved to top to prevent overlap/hiding by bottom nav */
  bottom: auto;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001; /* Above Leaflet controls */
  background: #161310; /* Surface #161310 */
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.8);
  width: max-content;
}
.layer-pill {
  background: transparent;
  color: var(--text-secondary);
  border: none;
  padding: 10px 18px; /* Larger tap targets */
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--t-fast);
}
.layer-pill:hover {
  color: var(--text-primary);
}
.layer-pill.active {
  background: var(--bg-inset);
  color: var(--text-primary);
}

/* Active Pin / Spot Animations */
.spot-card {
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), border-color 0.4s ease;
}
.spot-card.active-spot {
  transform: scale(1.01);
  border-color: var(--border-strong);
  background: var(--bg-surface);
}

.leaflet-marker-icon.muted-pin {
  opacity: 0.35 !important;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}
.leaflet-marker-icon.active-pin {
  opacity: 1 !important;
  z-index: 1000 !important;
  transition: opacity 0.4s cubic-bezier(.4,0,.2,1);
}

/* Custom Leaflet Dark Popups */
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--bg-dark) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md) !important;
}
.leaflet-popup-content {
  margin: 12px !important;
  font-family: var(--sans) !important;
  font-size: 13px !important;
}
.leaflet-popup-content h3.popup-title-link {
  font-family: var(--serif);
  font-size: 16px;
  margin: 0 0 4px 0;
  color: var(--amber);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: color var(--t-fast);
}
.leaflet-popup-content h3.popup-title-link:hover {
  color: #E6C27A;
  text-decoration: underline;
}
.leaflet-popup-content p {
  margin: 0;
  color: var(--text-muted);
}
.leaflet-container a.leaflet-popup-close-button {
  color: var(--text-muted) !important;
}

/* ── CUSTOM MAP POPOVER CARD ── */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.custom-leaflet-popup .leaflet-popup-tip-container {
  display: none !important;
}
.custom-leaflet-popup .leaflet-popup-content {
  margin: 0 !important;
  width: 280px !important;
}
.custom-leaflet-popup a.leaflet-popup-close-button {
  display: none !important;
}

.map-popover-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.8);
  font-family: var(--sans);
  transform: translateZ(0); /* Force hardware accel */
}

.map-popover-img-wrap {
  position: relative;
  width: 100%;
  height: 160px;
  background: var(--bg-inset);
}
.map-popover-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-popover-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.map-popover-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(15,13,11,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--t-fast);
}
.map-popover-btn:hover {
  background: rgba(15,13,11,0.8);
  transform: scale(1.05);
}

.map-popover-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 5px;
  z-index: 2;
}
.map-popover-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
}
.map-popover-dot.active {
  background: var(--text-primary);
}

.map-popover-body {
  padding: 16px;
}
.map-popover-title {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  line-height: 1.2;
}
.map-popover-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}
.map-popover-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.map-popover-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.map-popover-footer-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6e5c82; /* Muted purple like in ref */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 10px;
}

/* Push zoom controls up to avoid bottom nav overlap */
.leaflet-bottom.leaflet-right {
  margin-bottom: 140px !important;
}

/* Spot Card Image Wrapper */
.s-img-wrap {
  width: 100%;
  height: 160px;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border-hairline);
}
.s-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Custom Map Markers - Luxury Jewel Concept */
.map-marker {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  border: none;
}
.map-marker .marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.map-marker.amber-marker { background: rgba(200, 135, 90, 0.25); border: 1px solid var(--amber); }
.map-marker.amber-marker .marker-dot { background: var(--amber); }

.map-marker.sage-marker { background: rgba(125, 139, 118, 0.25); border: 1px solid var(--sage); }
.map-marker.sage-marker .marker-dot { background: var(--sage); }

.map-marker.slate-marker { background: rgba(139, 146, 165, 0.25); border: 1px solid var(--slate); }
.map-marker.slate-marker .marker-dot { background: var(--slate); }

/* User Location Marker */
.user-marker {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
}
.user-pulse {
  width: 14px;
  height: 14px;
  background: #00E5FF;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 0 4px rgba(0, 229, 255, 0.3);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 0 0 rgba(0, 229, 255, 0.6); }
  70% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 0 10px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 8px rgba(0, 229, 255, 0.8), 0 0 0 0 rgba(0, 229, 255, 0); }
}
/* ── SAVED SPOTS EMPTY STATE ── */
.empty-state {
  grid-column: 1 / -1; /* Ensure it spans full width if inside a grid */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 65vh; /* Center vertically in the viewport */
  color: var(--text-secondary);
  gap: 16px;
  padding: 0 24px;
}
.empty-state svg {
  color: var(--text-faint);
  opacity: 0.5;
  margin-bottom: 8px;
}

/* ── AURELIAN PROFILE VIEW ── */
.aurelian-theme {
  background-color: #141210;
  color: var(--text-primary);
  min-height: 100vh;
}

.aurelian-profile-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.aurelian-sidebar {
  display: none;
}

.aurelian-main {
  flex: 1;
  padding: 20px 16px 100px;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.aurelian-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.aurelian-main-header h2 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  color: #f4ece3;
}
.aurelian-header-icons {
  display: flex;
  gap: 16px;
  color: var(--amber);
}

.aurelian-profile-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
}

.aurelian-avatar-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  margin-bottom: 16px;
}
.aurelian-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #231f1c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--amber);
  border: 2px solid var(--amber);
  box-shadow: 0 0 20px rgba(200, 135, 90, 0.2);
  background-size: cover;
  background-position: center;
}
.aurelian-verified-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 24px;
  height: 24px;
  background: var(--amber);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #141210;
}
#profile-photo-upload {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
  border-radius: 50%;
}

.aurelian-profile-name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  color: #f4ece3;
  margin-bottom: 6px;
}
.aurelian-profile-subtitle {
  font-size: 13px;
  color: #948981;
}
.elite-text {
  color: var(--amber);
  font-weight: 500;
}

.aurelian-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
.aurelian-stat-card {
  background: #1e1b18;
  border-radius: var(--r-md);
  padding: 20px 10px;
  text-align: center;
}
.stat-value {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--amber);
  margin-bottom: 6px;
}
.stat-label {
  font-size: 10px;
  color: #948981;
  letter-spacing: 0.05em;
}

.aurelian-lists-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 40px;
}

.aurelian-list-title {
  font-family: var(--serif);
  font-size: 15px;
  color: #f4ece3;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.aurelian-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aurelian-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f4ece3;
  font-size: 14px;
  cursor: pointer;
}
.aurelian-list li .list-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.aurelian-list li .list-left svg {
  color: #948981;
}
.aurelian-list li .chevron {
  color: #554f4b;
}
.aurelian-list li.danger span, .aurelian-list li.danger svg {
  color: var(--error);
}

.aurelian-upgrade-card {
  background: linear-gradient(145deg, #241d16, #1a1612);
  border: 1px solid rgba(200, 135, 90, 0.1);
  border-radius: var(--r-md);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.upgrade-info h4 {
  color: var(--amber);
  font-size: 11px;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.upgrade-info p {
  color: #948981;
  font-size: 12px;
  line-height: 1.4;
  max-width: 200px;
}
.aurelian-btn-secondary {
  background: var(--amber);
  color: #141210;
  border: none;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

/* DESKTOP LAYOUT (SIDEBAR) */
@media (min-width: 768px) {
  .aurelian-profile-layout {
    flex-direction: row;
  }
  .aurelian-sidebar {
    display: flex;
    flex-direction: column;
    width: 260px;
    background: #181512;
    border-right: 1px solid rgba(255,255,255,0.03);
    padding: 30px 20px;
    min-height: 100vh;
  }
  .aurelian-main {
    padding: 40px;
    max-width: 900px;
  }
  .aurelian-wordmark {
    font-family: var(--serif);
    color: var(--amber);
    font-size: 24px;
    margin-bottom: 40px;
  }
  .aurelian-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
  }
  .sidebar-avatar {
    width: 40px; height: 40px;
    background: #231f1c;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--amber); font-family: var(--serif); font-size: 18px;
    border: 1px solid rgba(200,135,90,0.3);
    background-size: cover;
    background-position: center;
  }
  .sidebar-name {
    color: #f4ece3;
    font-size: 13px;
    font-weight: 500;
  }
  .sidebar-role {
    color: var(--amber);
    font-size: 11px;
  }
  .aurelian-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
  }
  .aurelian-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #948981;
    text-decoration: none;
    font-size: 13px;
    border-radius: var(--r-sm);
    transition: background 0.2s, color 0.2s;
  }
  .aurelian-nav-link:hover, .aurelian-nav-link.active {
    background: #1e1b18;
    color: #f4ece3;
  }
  .aurelian-sidebar-bottom {
    margin-top: auto;
  }
  .aurelian-btn-primary {
    width: 100%;
    background: var(--amber);
    color: #141210;
    border: none;
    padding: 14px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
  }
  .aurelian-lists-container {
    flex-direction: row;
    gap: 60px;
  }
  .aurelian-list-section {
    flex: 1;
  }
  .aurelian-upgrade-card {
    display: none;
  }
}

/* ── BOTTOM NAV ── */
.bottom-nav {
  position:fixed; bottom:0; left:50%; transform:translateX(-50%);
  width:100%; max-width:430px;
  display:flex; align-items:center; justify-content:space-around;
  padding:10px 10px 24px;
  background:rgba(15,13,11,0.95);
  backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px);
  border-top:1px solid var(--border-subtle);
  z-index:100;
}
.nav-btn {
  display:flex; flex-direction:column; align-items:center; gap:3px;
  padding:8px 14px; border-radius:var(--r-md);
  border:none; background:none;
  color:var(--text-faint); cursor:pointer;
  font-size:10px; font-weight:600; font-family:var(--sans);
  letter-spacing:0.03em; transition:var(--t-fast);
}
.nav-btn:hover { color:var(--text-muted); background:var(--bg-card); }
.nav-btn.active { color:var(--amber); }
.nav-btn.active svg { filter:drop-shadow(0 0 5px rgba(200,135,90,0.4)); }

/* ── ACCESSIBILITY ── */
:focus-visible { outline:2px solid var(--amber); outline-offset:2px; border-radius:4px; }
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after {
    animation-duration:0.01ms !important;
    transition-duration:0.01ms !important;
  }
}

/* ── DESKTOP FRAME ── */
@media (min-width:430px) {
  body {
    border-left:1px solid var(--border-hairline);
    border-right:1px solid var(--border-hairline);
    box-shadow:0 0 80px rgba(0,0,0,0.7);
  }
}
@media (min-width:768px) {
  body {
    margin:48px auto;
    border-radius:var(--r-xl);
    overflow:hidden;
    max-height:900px;
    overflow-y:auto;
    min-height:auto;
  }
  .app-header { top:0; }
  .bottom-nav { border-radius:0 0 var(--r-xl) var(--r-xl); }
}

/* ── AUTHENTICATION UI (PREMIUM) ── */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: 36px 32px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.auth-header {
  text-align: center;
  margin-bottom: 24px;
}
.auth-header h2 {
  font-family: var(--serif);
  font-size: 28px;
  margin: 0 0 8px 0;
  color: var(--amber);
}
.auth-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}
.auth-tabs {
  display: flex;
  background: var(--bg-inset);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: 24px;
}
.auth-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: var(--r-pill);
  padding: 10px 0;
  color: var(--text-muted);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.auth-tab.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.social-auth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1px solid transparent;
}
.social-btn:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.apple-btn {
  background: #ffffff;
  color: #000000;
}
.apple-btn:hover { background: #f0f0f0; }
.google-btn {
  background: var(--bg-inset);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.google-btn:hover { background: rgba(255,255,255,0.05); }

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-subtle);
}
.auth-divider span { padding: 0 12px; }

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.input-group label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}
.input-group input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-group input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(200,135,90,0.1);
}
.input-group input[aria-invalid="true"] {
  border-color: var(--rose);
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.pwd-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}
.pwd-toggle:hover { color: var(--text-primary); }
.pwd-toggle:focus-visible {
  outline: 2px solid var(--amber);
  border-radius: 4px;
}
.inline-error {
  color: var(--rose);
  font-size: 12px;
  min-height: 16px;
  display: block;
}

.auth-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: -4px;
}
.text-link {
  color: var(--amber);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.text-link:hover { color: var(--amber-light); text-decoration: underline; }

.primary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  border-radius: var(--r-pill);
  border: none;
  background: linear-gradient(135deg, var(--amber), #d49a6a);
  color: var(--bg-base);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-top: 8px;
}
.primary-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,135,90,0.35);
}
.primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.loading-spinner {
  animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.magic-link-wrapper {
  margin-top: 16px;
}
.secondary-btn {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.secondary-btn:hover {
  background: var(--bg-inset);
  border-color: var(--amber-border);
}

.auth-terms {
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 24px;
  line-height: 1.5;
}

/* Transitions */
.transition-wrapper {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.fade-out {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}
.hidden {
  display: none !important;
}

.text-danger {
  color: var(--rose) !important;
}

/* ══════════════════════════════════════
   AI SEARCH BAR
   ══════════════════════════════════════ */
.ai-search-wrap {
  padding: 10px 16px 6px;
  background: var(--bg-base);
  position: sticky;
  top: 38px;
  z-index: 98;
}
.ai-search-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 14px;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.ai-search-bar:focus-within {
  border-color: var(--amber-border);
  box-shadow: 0 0 0 3px rgba(200,135,90,0.08), 0 4px 20px rgba(0,0,0,0.3);
}
.ai-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.ai-search-bar:focus-within .ai-search-icon { opacity: 1; }

.ai-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  color: var(--text-primary);
  padding: 8px 10px;
  min-width: 0;
}
.ai-search-input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.ai-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  border: none;
  background: linear-gradient(135deg, var(--amber), #d49a6a);
  color: var(--bg-base);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all var(--t-fast);
  flex-shrink: 0;
  white-space: nowrap;
}
.ai-search-btn:hover {
  background: linear-gradient(135deg, var(--amber-light), var(--amber));
  box-shadow: 0 4px 16px rgba(200,135,90,0.35);
  transform: translateY(-1px);
}
.ai-search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(200,135,90,0.2);
}
.ai-search-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ai-btn-arrow { flex-shrink: 0; }

.ai-search-filters {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding: 0 4px;
}
.ai-filter-select {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--sans);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23949089%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 10px top 50%;
  background-size: 8px auto;
  transition: border-color var(--t-fast);
}
.ai-filter-select:focus {
  border-color: var(--amber-border);
}



/* ══════════════════════════════════════
   AI LOADING OVERLAY
   ══════════════════════════════════════ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(11, 12, 16, 0.85); /* Dark surface with slight transparency */
  backdrop-filter: blur(12px);
  display: flex;
  justify-content: space-around;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  z-index: 100;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.bottom-nav.hidden-nav {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.ai-loading-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,13,11,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
.ai-loading-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ai-loading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  padding: 40px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  max-width: 90%;
  width: 360px;
}

/* Animated Rickshaw */
.rickshaw-sketch {
  position: relative;
  width: 240px;
  height: 80px;
  margin-bottom: 10px;
}

/* Progress Bar (Level Indicator) */
.ai-loading-progress-wrap {
  width: 100%;
  height: 6px;
  background: var(--bg-inset);
  border-radius: var(--r-pill);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
  margin-top: 5px;
}

.ai-loading-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--amber) 0%, #d49a6a 100%);
  border-radius: var(--r-pill);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  box-shadow: 0 0 10px rgba(200, 135, 90, 0.4);
}

.ai-loading-progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.2) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: progressShimmer 1.5s infinite linear;
}

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

.ai-loading-progress-status {
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-family: var(--sans);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: -10px;
  margin-bottom: 5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.progress-percent {
  color: var(--amber);
  font-weight: 700;
}

.ai-loading-text {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  animation: textShimmer 2s ease-in-out infinite;
}

@keyframes textShimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.ai-loading-sub {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 400;
}

/* ══════════════════════════════════════
   AI ERROR TOAST
   ══════════════════════════════════════ */
.ai-error-toast {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translate(-50%, -150%);
  max-width: 380px;
  width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  background: rgba(196,80,80,0.15);
  border: 1px solid rgba(196,80,80,0.35);
  color: #e8a0a0;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ai-error-toast svg {
  flex-shrink: 0;
  color: #e8a0a0;
}
.ai-error-toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}


/* ══════════════════════════════════════
   BUDGET ESTIMATOR & REFINE UI
   ══════════════════════════════════════ */
.budget-estimator {
  margin: 16px 20px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.budget-estimator svg {
  color: var(--sage);
  flex-shrink: 0;
}
.budget-estimator strong {
  font-weight: 700;
  color: var(--sage);
}

.refine-section {
  margin: 30px 20px 40px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  text-align: center;
}
.refine-title {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.refine-sub {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.refine-input-group {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.refine-input-group input {
  flex: 1;
  max-width: 250px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 13px;
  outline: none;
  transition: border-color var(--t-fast);
}
.refine-input-group input:focus {
  border-color: var(--amber);
}
.refine-input-group button {
  padding: 10px 20px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--amber);
  color: var(--bg-base);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.refine-input-group button:hover {
  background: var(--amber-light);
  transform: translateY(-1px);
}
.refine-input-group button:active {
  transform: translateY(0);
}

/* ══════════════════════════════════════
   BIG SCREENS RESPONSIVE (TABLETS & LAPTOPS)
   ══════════════════════════════════════ */
@media (min-width: 768px) {
  body {
    max-width: 1000px;
    margin: 0 auto;
    border-left: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
    box-shadow: 0 0 50px rgba(0,0,0,0.4);
  }

  .status-bar, .app-header, .ai-search-wrap, .bottom-nav {
    max-width: 1000px;
    margin: 0 auto;
  }

  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    border-radius: 24px 24px 0 0;
  }

  .city-tabs {
    justify-content: center;
  }

  .hero {
    padding: 80px 40px;
    text-align: center;
  }

  .hero-title {
    font-size: 52px;
  }

  .hero-pills {
    justify-content: center;
  }

  .day-filters-wrap {
    display: flex;
    justify-content: center;
  }
  
  .food-pref-wrap {
    justify-content: center;
  }
  
  .legend {
    justify-content: center;
  }

  .spots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
  }

  .spot {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
  }
  
  .s-body {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  .menu-drawer {
    margin-top: auto;
  }

  .refine-section {
    margin-top: 50px;
    padding: 40px;
  }

  .refine-input-group input {
    max-width: 400px;
  }
}

@media (min-width: 1100px) {
  body {
    max-width: 1200px;
  }

  .status-bar, .app-header, .ai-search-wrap, .bottom-nav {
    max-width: 1200px;
  }

  .hero-title {
    font-size: 64px;
  }
}


/* ── MULTIPLAYER VOTE CONTROLS ── */
.vote-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  padding: 4px;
  z-index: 10;
}
.vote-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--t-fast);
}
.vote-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}
.vote-btn.active.upvote {
  color: #10b981; /* Green */
}
.vote-btn.active.downvote {
  color: #ef4444; /* Red */
}
.vote-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2px 0;
}

/* ── SMART SEARCH AUTOCOMPLETE ── */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  max-height: 250px;
  overflow-y: auto;
  z-index: 100;
  list-style: none;
  padding: 8px 0;
  margin: 0;
}
.autocomplete-dropdown.hidden {
  display: none;
}
.autocomplete-item {
  padding: 10px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-primary);
  transition: background var(--t-fast);
}
.autocomplete-item:hover,
.autocomplete-item.active {
  background: var(--bg-surface);
}
.autocomplete-item svg {
  color: var(--text-muted);
  flex-shrink: 0;
}
.autocomplete-item .match-text {
  font-weight: 700;
  color: var(--amber);
}

.did-you-mean-container {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-secondary);
  padding: 0 16px;
}
.did-you-mean-container.hidden {
  display: none;
}
.did-you-mean-link {
  color: var(--amber);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color var(--t-fast);
}
.did-you-mean-link:hover {
  text-decoration-color: var(--amber);
}

/* ── WELCOME VIEW (PREMIUM GATEWAY) ── */
#view-welcome {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 9999;
  display: none;
  flex-direction: column;
  background: url('hero-bg.png') center/cover no-repeat;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

#view-welcome.active {
  display: flex !important;
}

#view-welcome::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(18, 18, 18, 0.4);
  z-index: 0;
}



/* Remove blobs or hide them */
.welcome-blob { display: none; }
#welcome-canvas { display: none; }

.welcome-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 60px;
  width: 100%;
  box-sizing: border-box;
}

.welcome-brand {
  font-family: var(--serif);
  font-size: 36px;
  color: var(--amber);
  font-weight: 500;
  letter-spacing: 2px;
}

.welcome-nav {
  display: flex;
  gap: 30px;
  align-items: center;
}

.welcome-nav-link {
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.welcome-nav-link:hover {
  opacity: 1;
}

.welcome-nav-link.active {
  color: var(--amber);
  border-bottom: 1px solid var(--amber);
  padding-bottom: 4px;
}

/* ── Container ── */
.welcome-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.welcome-card {
  background: rgba(20, 20, 20, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 135, 90, 0.4);
  padding: 60px 40px;
  text-align: center;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .welcome-card {
    padding: 40px 20px;
  }
}

.welcome-card .eyebrow {
  color: var(--amber);
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.welcome-card .brand {
  font-family: var(--serif);
  font-size: clamp(48px, 12vw, 64px);
  color: #fff;
  margin-bottom: 30px;
  font-style: italic;
  font-weight: 400;
}

.welcome-card .brand .co {
  color: var(--amber);
  font-style: normal;
}

.welcome-card .rule {
  width: 80px;
  height: 1px;
  background: rgba(200, 135, 90, 0.5);
  margin: 0 auto 30px;
}

.welcome-card .sub {
  color: #fff;
  font-family: var(--serif);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.welcome-card .btn-p {
  background: #d6b354;
  color: #1a1a1a;
  border: none;
  padding: 16px 40px;
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  transition: all 0.3s;
}

.welcome-card .btn-p:hover {
  background: #c29d40;
}

.welcome-card .guest-link-wrap {
  margin-top: 30px;
}

.welcome-card .welcome-guest-link {
  color: #ccc;
  font-family: var(--serif);
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 2px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 4px;
  transition: all 0.3s;
}

.welcome-card .welcome-guest-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.welcome-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  background: rgba(20, 20, 20, 0.9);
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .welcome-footer {
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    text-align: center;
  }
  .welcome-footer .footer-center {
    flex-direction: column;
    gap: 12px;
  }
}

.footer-left {
  font-family: var(--serif);
  color: var(--amber);
  font-size: 14px;
  letter-spacing: 1px;
}

.footer-center {
  display: flex;
  gap: 30px;
}

.footer-center a {
  color: #888;
  font-family: var(--serif);
  font-size: 11px;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

.footer-right {
  font-family: var(--serif);
  color: #888;
  font-size: 11px;
  letter-spacing: 1px;
}

/* ══════════════════════════════════════════════════════════════════════
   ONBOARDING OVERLAY
   ══════════════════════════════════════════════════════════════════════ */
.onboarding-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.5s ease;
}
.onboarding-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════════════════════════════════════
   PREMIUM MODAL
   ══════════════════════════════════════════════════════════════════════ */
.premium-modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.premium-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.premium-modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  width: 90%;
  max-width: 400px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
}

.premium-modal-overlay.active .premium-modal {
  transform: translateY(0) scale(1);
}

.premium-modal h3 {
  font-family: var(--serif);
  color: var(--amber);
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 500;
}

.premium-modal p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.premium-modal button {
  background: var(--amber);
  color: var(--bg-base);
  border: none;
  border-radius: 30px;
  padding: 12px 32px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.premium-modal button:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}
.onboarding-modal {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(30,30,30,0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  width: 85%;
  max-width: 380px;
  padding: 40px 24px 32px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: modalPopIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
  0% { opacity: 0; transform: scale(0.8) translateY(20px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.animated-float {
  animation: floatBounce 3s ease-in-out infinite;
}
.onboarding-slides {
  position: relative;
  min-height: 180px;
}
.ob-slide {
  position: absolute;
  top: 0; left: 0; right: 0;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.ob-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}
.ob-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ob-icon-wrapper.amber { background: rgba(200, 135, 90, 0.15); color: var(--amber); }
.ob-icon-wrapper.sage { background: rgba(138, 163, 142, 0.15); color: var(--sage); }
.ob-icon-wrapper.slate { background: rgba(144, 153, 162, 0.15); color: var(--slate); }

.ob-slide h2 {
  font-family: var(--serif);
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.ob-slide p {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.ob-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* Quick Vibe Selector Styles */
.quick-vibe-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.quick-vibe-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.quick-vibe-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--amber);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .onboarding-modal {
    width: 90%;
    padding: 28px 16px 20px;
    gap: 20px;
    border-radius: 24px;
  }
  .onboarding-slides {
    min-height: 220px;
  }
  .ob-icon-wrapper {
    width: 52px;
    height: 52px;
    margin-bottom: 12px;
  }
  .ob-slide h2 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .ob-slide p {
    font-size: 13px;
  }
}

.ob-dots {
  display: flex;
  gap: 8px;
}
.ob-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border-subtle);
  transition: all 0.3s ease;
}
.ob-dot.active {
  background: var(--text-primary);
  width: 16px;
  border-radius: 4px;
}
.ob-next-btn {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--text-primary);
  color: var(--bg-base);
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s;
}
.ob-next-btn:active {
  transform: scale(0.98);
}

.welcome-screen {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.welcome-screen.hidden {
  opacity: 0;
  transform: translateY(15px);
  pointer-events: none;
  display: none !important;
}
.welcome-screen.active {
  opacity: 1;
  transform: translateY(0);
  display: flex !important;
}

/* ── Brand Badge ── */
.welcome-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(200, 135, 90, 0.1);
  border: 1px solid rgba(200, 135, 90, 0.2);
  border-radius: 100px;
  padding: 6px 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.25, 1, 0.5, 1) 0.1s forwards;
}
.brand-badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.7); }
}

/* ── Animated Logo ── */
.welcome-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0.5rem;
  position: relative;
}

.welcome-logo-text {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(3.4rem, 10vw, 5.2rem);
  letter-spacing: -0.01em;
  text-transform: lowercase;
  line-height: 1;
  display: flex;
}

/* Each letter animates in individually */
.logo-letter {
  display: inline-block;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  filter: blur(4px);
  animation: letterRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.25s + var(--i) * 0.07s);
}
.wordmark-co-letter {
  color: var(--amber);
}

@keyframes letterRise {
  0%   { opacity: 0; transform: translateY(24px) scale(0.9); filter: blur(5px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: translateY(0) scale(1);    filter: blur(0); }
}

/* Decorative amber dot below logo */
.welcome-logo-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--amber);
  margin-top: 10px;
  opacity: 0;
  animation: fadeUp 0.4s ease 1.0s forwards;
}

/* ── Tagline ── */
.welcome-tagline {
  font-family: var(--sans);
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 300;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  margin: 1rem 0 0.9rem;
  display: flex;
  gap: 0.45em;
  flex-wrap: wrap;
  justify-content: center;
}
.tagline-word {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(0.85s + var(--j) * 0.1s);
}
.tagline-accent {
  color: var(--amber);
  font-weight: 600;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Description ── */
.welcome-desc {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 1.8rem;
  max-width: 380px;
  font-weight: 400;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.25s forwards;
}

/* ── Feature Pills ── */
.welcome-features {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.45s forwards;
}
.welcome-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 100px;
  padding: 6px 12px;
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.welcome-pill svg {
  color: var(--amber);
  flex-shrink: 0;
}

/* ── Action Buttons ── */
.welcome-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  opacity: 0;
  animation: fadeUp 0.6s ease 1.65s forwards;
}

.welcome-start-btn {
  background: linear-gradient(135deg, var(--amber) 0%, #d4975e 50%, #c07d46 100%);
  color: var(--bg-base);
  border: none;
  border-radius: var(--r-pill);
  padding: 15px 38px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 28px rgba(200, 135, 90, 0.3), 0 2px 8px rgba(0,0,0,0.3);
  transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
  position: relative;
  overflow: hidden;
}
.welcome-start-btn::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;
}
.welcome-start-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 38px rgba(200, 135, 90, 0.45), 0 4px 12px rgba(0,0,0,0.35);
}
.welcome-start-btn:hover::before { opacity: 1; }
.welcome-start-btn svg { transition: transform 0.2s ease; }
.welcome-start-btn:hover svg { transform: translateX(4px); }
.welcome-start-btn:active { transform: translateY(0); }

.welcome-guest-link {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.welcome-guest-link:hover {
  color: var(--amber);
  background: rgba(200,135,90,0.06);
}

/* Onboarding fade-out transition for welcome page exit */
.fade-out-welcome {
  opacity: 0 !important;
  transform: scale(0.97) !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ══════════════════════════════════════
   SKETCHY BACKGROUND TRANSPORT WORLD
══════════════════════════════════════ */
.welcome-transport-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.sketch-transport {
  position: absolute;
  color: var(--amber);
  opacity: 0.18;
  pointer-events: none;
}

/* ── Moving Vehicles ── */
.transport-airplane {
  top: 13%;
  animation: flyAcross 44s linear infinite;
}
.transport-train {
  bottom: 6%;
  animation: chugAcross 30s linear infinite;
}
.transport-bicycle {
  top: 48%;
  animation: cycleAcross 52s linear infinite;
}
.transport-rickshaw {
  bottom: 22%;
  animation: driveAcross 36s linear infinite 5s;
}

@keyframes flyAcross {
  0%   { left: -160px; transform: rotate(3deg) translateY(0); }
  50%  { transform: rotate(3deg) translateY(-22px); }
  100% { left: 110vw;  transform: rotate(3deg) translateY(0); }
}
@keyframes chugAcross {
  0%   { left: -200px; }
  100% { left: 110vw;  }
}
@keyframes cycleAcross {
  0%   { right: -130px; transform: scaleX(-1) translateY(0); }
  50%  { transform: scaleX(-1) translateY(6px); }
  100% { right: 110vw;  transform: scaleX(-1) translateY(0); }
}
@keyframes driveAcross {
  0%   { right: -140px; transform: scaleX(-1); }
  100% { right: 110vw;  transform: scaleX(-1); }
}

/* ── Static/Slow Ambient Sketches ── */

/* Compass — top right, slowly spinning */
.sketch-compass {
  top: 8%;
  right: 6%;
  opacity: 0.14;
  animation: compassSpin 60s linear infinite, floatVertical 8s ease-in-out infinite alternate;
}
@keyframes compassSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Map pin — left, floating up/down */
.sketch-mappin {
  top: 30%;
  left: 5%;
  opacity: 0.16;
  animation: floatVertical 6s ease-in-out infinite alternate;
}

/* Small plane — upper right, gentle drift */
.sketch-plane-2 {
  top: 20%;
  right: 18%;
  opacity: 0.12;
  animation: plane2Drift 70s linear infinite 10s;
}
@keyframes plane2Drift {
  0%   { right: 18%;  top: 20%; }
  30%  { right: 50%;  top: 16%; }
  60%  { right: 80%;  top: 22%; }
  100% { right: 115%; top: 20%; }
}

/* Mountain — bottom right, static/subtle */
.sketch-mountain {
  bottom: 2%;
  right: 3%;
  opacity: 0.10;
  animation: floatVertical 12s ease-in-out infinite alternate;
}

/* Cloud — slowly drifts across */
.sketch-cloud {
  top: 5%;
  animation: cloudDrift 80s linear infinite 8s;
  opacity: 0.11;
}
@keyframes cloudDrift {
  0%   { left: -130px; }
  100% { left: 110vw; }
}

@keyframes floatVertical {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

/* ─────────────────────────────────────────────────────────
   NEW LANDING HERO STYLES (Provided by User)
────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}
.eyebrow {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #635c54;
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 1s ease 0.3s forwards;
}
.brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 96px;
  font-weight: 700;
  letter-spacing: -3px;
  line-height: 0.95;
  color: #ede8e2;
  opacity: 0;
  animation: fadeUp 1.1s ease 0.6s forwards;
  position: relative;
}
.brand em {
  font-style: italic;
  font-weight: 400;
  color: #c8875a;
}
.rule {
  width: 48px;
  height: 1px;
  background: #c8875a;
  opacity: 0;
  margin: 24px auto;
  animation: scaleIn 0.8s ease 1.2s forwards;
}
.sub {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #9e9085;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  line-height: 1.8;
  max-width: 460px;
  opacity: 0;
  animation: fadeUp 1s ease 1.4s forwards;
}
.cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
  opacity: 0;
  animation: fadeUp 1s ease 1.7s forwards;
  pointer-events: all;
}
.btn-p {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #0f0d0b;
  background: #c8875a;
  border: none;
  padding: 14px 40px;
  border-radius: 100px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-p:hover {
  opacity: .85;
}
@media(prefers-reduced-motion: reduce) {
  .hero > * { opacity: 1 !important; transform: none !important; animation: none !important; }
  .rule { opacity: 0.4 !important; }
}
@media(max-width: 600px) {
  .brand { font-size: 62px; letter-spacing: -2px; }
  .sub { font-size: 11px; letter-spacing: 2px; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scaleX(0); }
  to { opacity: 0.4; transform: scaleX(1); }
}

/* ── FEEDBACK WIDGET ── */
.feedback-trigger-btn {
  position: fixed;
  bottom: 96px;
  right: calc(50% - 215px + 16px);
  z-index: 200;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
  transition: all var(--t-fast);
}
@media (max-width: 430px) {
  .feedback-trigger-btn {
    right: 16px;
  }
}
.feedback-trigger-btn:hover {
  background: var(--bg-inset);
  border-color: var(--amber);
  transform: translateY(-2px);
}

/* ── AMBIENT SOUNDSCAPE CONTROLLER ── */
.ambient-sound-ctrl {
  position: fixed;
  bottom: 96px;
  left: calc(50% - 215px + 16px);
  z-index: 200;
}
@media (max-width: 430px) {
  .ambient-sound-ctrl {
    left: 16px;
  }
}
.ambient-sound-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all var(--t-fast);
}
.ambient-sound-btn:hover {
  background: rgba(15,13,11,0.8);
  border-color: var(--amber);
  color: var(--text-primary);
  transform: scale(1.05);
}
.ambient-sound-btn.playing {
  color: var(--amber);
  border-color: var(--amber-border);
  box-shadow: 0 0 10px rgba(200, 135, 90, 0.3);
}

/* ── MEMORY MODAL & GALLERY ── */
.memory-modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(15,13,11,0.8); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; transition: opacity 0.3s ease;
}
.memory-modal-card {
  background: var(--bg-card); border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg); width: 100%; max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  display: flex; flex-direction: column; overflow: hidden;
}
.memory-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 20px; border-bottom: 1px solid var(--border-subtle);
}
.memory-modal-title { font-family: var(--serif); font-size: 18px; color: var(--text-primary); margin: 0; }
.memory-modal-close { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 4px; }
.memory-modal-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.memory-upload-area {
  border: 2px dashed var(--border-subtle); border-radius: var(--r-md);
  height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-muted); font-family: var(--sans); font-size: 13px;
  background: var(--bg-inset); transition: border-color 0.2s ease; position: relative; overflow: hidden;
}
.memory-upload-area:hover { border-color: var(--amber); color: var(--amber); }
.memory-preview-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.memory-note-input {
  width: 100%; background: var(--bg-inset); border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm); padding: 12px; color: var(--text-primary); font-family: var(--sans);
  font-size: 14px; min-height: 80px; resize: none; outline: none;
}
.memory-note-input:focus { border-color: var(--amber); }
.memory-modal-footer { padding: 16px 20px; border-top: 1px solid var(--border-subtle); }

.spot-memories-gallery {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-subtle);
  display: flex; flex-direction: column; gap: 8px;
}
.spot-memory-item {
  display: flex; gap: 12px; background: var(--bg-inset); padding: 8px; border-radius: var(--r-sm);
}
.spot-memory-img { width: 60px; height: 60px; border-radius: 4px; object-fit: cover; border: 1px solid var(--border-subtle); }
.spot-memory-text { flex: 1; font-size: 13px; color: var(--text-secondary); font-style: italic; line-height: 1.4; }

.add-memory-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px solid var(--border-subtle); border-radius: var(--r-pill);
  color: var(--text-secondary); padding: 6px 12px; font-size: 12px; font-weight: 500;
  cursor: pointer; margin-top: 12px; transition: all 0.2s;
}
.add-memory-btn:hover { border-color: var(--amber); color: var(--amber); }

/* ── RIDE SHARING BUTTONS ── */
.ride-btn-group {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.ride-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg-inset); border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill); padding: 6px 12px;
  font-size: 12px; font-weight: 600; color: var(--text-primary);
  text-decoration: none; transition: background 0.2s;
}
.ride-btn.uber:hover { background: #000; border-color: #000; color: #fff; }
.ride-btn.ola:hover { background: #D4E12C; border-color: #D4E12C; color: #000; }

/* ── DRAG AND DROP ── */
.spot-card[draggable="true"] { cursor: grab; }
.spot-card[draggable="true"]:active { cursor: grabbing; }
.spot-card.dragging { opacity: 0.4; }
.spots.drag-over { background: rgba(200, 135, 90, 0.05); border-radius: var(--r-lg); }

/* ── TIME DISTANCE WARNING ── */
.time-warning-badge {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 16px; justify-content: center;
  background: transparent; border: none;
  color: var(--amber); border-radius: 0;
  padding: 0; font-size: 13px; font-weight: 500; margin: 10px 0;
  opacity: 0.8;
  width: 100%;
}
.time-warning-badge::before,
.time-warning-badge::after {
  content: '';
  flex: 1;
  border-top: 1px dashed var(--amber);
  opacity: 0.3;
}
.time-warning-badge svg {
  margin-right: -4px;
}

/* ── OFFLINE SAVE BUTTON ── */
.offline-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
}

.offline-save-btn:hover {
  background: rgba(200, 135, 90, 0.12);
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-1px);
}

.offline-save-btn:active {
  transform: scale(0.96);
}

.offline-save-btn .offline-icon-download {
  display: inline-block;
}
.offline-save-btn .offline-icon-check {
  display: none;
}

/* Saved state */
.offline-save-btn.saved {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.4);
  color: #66BB6A;
}

.offline-save-btn.saved:hover {
  background: rgba(76, 175, 80, 0.2);
  border-color: rgba(76, 175, 80, 0.6);
  color: #81C784;
}

.offline-save-btn.saved .offline-icon-download {
  display: none;
}
.offline-save-btn.saved .offline-icon-check {
  display: inline-block;
  animation: offlineCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes offlineCheckPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); opacity: 1; }
}

/* ── CURRENCY CONVERTER ── */
.budget-converter-wrap {
  flex-direction: column;
}

.currency-converter-rows {
  width: 100%;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.converter-results {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.converter-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-family: var(--ff-body);
  animation: converterFadeIn 0.3s ease;
}

.converter-approx {
  color: var(--text-tertiary);
  font-size: 11px;
}

.converter-amount {
  font-weight: 700;
  color: var(--text-primary);
}

.converter-code {
  color: var(--text-tertiary);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.converter-change-wrap {
  position: relative;
  display: inline-block;
}

.converter-change-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-tertiary);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all 0.2s ease;
}

.converter-change-btn:hover {
  color: var(--amber);
  border-color: var(--amber);
  background: rgba(200, 135, 90, 0.08);
}

.converter-dropdown {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 6px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  min-width: 240px;
  animation: converterFadeIn 0.2s ease;
}

.converter-dropdown.hidden {
  display: none;
}

.converter-dropdown-item {
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  font-family: var(--ff-body);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-align: left;
}

.converter-dropdown-item:hover {
  background: rgba(200, 135, 90, 0.1);
  color: var(--amber);
}

.converter-dropdown-item.active {
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
  color: #66BB6A;
  font-weight: 700;
}

.converter-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.converter-dot-pulse {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  animation: dotPulse 1s ease infinite;
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes converterFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── EMBASSY INFORMATION CARD ── */
.embassy-card {
  margin: 12px 20px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  animation: converterFadeIn 0.35s ease;
}

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

.embassy-flag {
  font-size: 24px;
  line-height: 1;
}

.embassy-header-text {
  flex: 1;
}

.embassy-header-text h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--ff-body);
}

.embassy-header-text span {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

.embassy-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.embassy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  font-family: var(--ff-body);
}

.embassy-row-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.embassy-row a {
  color: var(--amber);
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s;
}

.embassy-row a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.embassy-row .embassy-address {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.4;
}

.embassy-hours {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-tertiary);
}

.embassy-hours-icon {
  font-size: 14px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* ── AI COPILOT FAB & DRAWER ── */
.copilot-fab {
  position: fixed;
  bottom: 90px; /* Above bottom nav */
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(200, 135, 90, 0.4);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.copilot-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(200, 135, 90, 0.5);
}

body.copilot-active {
  overflow: hidden;
}

.copilot-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(18, 18, 18, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.copilot-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.trip-action-btn:hover {
  filter: brightness(1.2);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.copilot-drawer {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  max-width: none;
  height: 70vh;
  max-height: 600px;
  background: var(--bg-surface);
  border: 1px solid rgba(200, 135, 90, 0.2);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateY(120%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.copilot-drawer.open {
  transform: translateY(0);
}

@media (min-width: 768px) {
  .copilot-drawer {
    bottom: 20px;
    right: 20px;
    width: 400px;
    border-radius: 20px;
    height: 500px;
    transform: translateY(120%);
    border: 1px solid var(--border-subtle);
  }
  .copilot-drawer.open {
    transform: translateY(0);
  }
}

.copilot-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copilot-title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.copilot-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.copilot-body {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.copilot-msg {
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  max-width: 85%;
  animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.copilot-msg.bot {
  background: var(--bg-inset);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.copilot-msg.user {
  background: var(--amber);
  color: var(--bg-base);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.copilot-chip {
  display: inline-block;
  font-size: 13px;
  padding: 8px 14px;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: normal;
  text-align: left;
  line-height: 1.4;
}

.copilot-chip:hover {
  background: rgba(200, 135, 90, 0.1);
  border-color: var(--amber);
  color: var(--amber);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.copilot-footer {
  padding: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 8px;
}
.copilot-footer input {
  flex: 1;
  background: var(--bg-inset);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 10px 16px;
  color: var(--text-primary);
  font-size: 14px;
}
.copilot-footer input:focus {
  outline: none;
  border-color: var(--amber);
}
.copilot-footer button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--bg-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
}

/* Export Button */
.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 15px 15px 10px 15px;
}
.export-btn:hover {
  background: var(--bg-inset);
  border-color: var(--text-muted);
}

/* Route Optimization Badge */
.route-opt-badge {
  margin: 0 15px 20px 15px;
  padding: 10px 14px;
  background: rgba(139, 146, 165, 0.1);
  border: 1px solid var(--slate);
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--slate);
  font-weight: 500;
}

/* Print Styles */
@media print {
  body { background: white !important; color: black !important; overflow: auto !important; }
  .bottom-nav, .app-header, .copilot-fab, .copilot-drawer, .refine-section, .export-btn, #inline-explorer-btn, .map-layer-filters, .sat-toggle { display: none !important; }
  .explore-split-layout { display: block !important; }
  .narrative-journal { padding: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; }
  .city-panel { padding-top: 0 !important; }
  .spot-card, .cluster-hd, .os-insights-wrap, .budget-estimator { 
    page-break-inside: avoid !important; 
    break-inside: avoid !important; 
  }
  .spot-card { border: 1px solid #eee; box-shadow: none; margin-bottom: 20px; }
  h2, h3, h4 { page-break-after: avoid !important; break-after: avoid !important; }
}

/* Trip Dashboard Styles */
.trip-dashboard-wrap {
  display: flex;
  gap: 12px;
  margin: 0 15px 20px 15px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.dashboard-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-score {
  border-right: 1px solid var(--border-subtle);
  padding-right: 12px;
  flex: 1.2;
}
.stat-val {
  font-size: 24px;
  font-weight: 700;
  color: var(--amber);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
}
.stat-lbl {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-secondary);
  font-weight: 500;
}
.score-breakdown {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 11px;
  color: var(--text-secondary);
}

/* Slider styles */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: var(--border-subtle);
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
}

/* ── AFFILIATE BOOKING ENGINE ── */
.affiliate-engine-wrap {
  margin: 40px 15px 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
}
.affiliate-title {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.affiliate-subtitle {
  font-size: 12px;
  color: var(--amber);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Flight Banner */
.affiliate-flight-banner {
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1e1b18, #2a2520);
  border: 1px solid rgba(200, 135, 90, 0.15);
  border-radius: var(--r-md);
  padding: 20px;
  text-decoration: none;
  margin-bottom: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.affiliate-flight-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  border-color: rgba(200, 135, 90, 0.3);
}
.flight-banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.flight-banner-content svg {
  color: var(--amber);
}
.fb-title {
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}
.fb-sub {
  color: var(--text-secondary);
  font-size: 12px;
}
.fb-btn {
  background: var(--amber);
  color: #141210;
  border: none;
  padding: 12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  width: 100%;
}
.ae-btn {
  background: transparent;
  color: var(--amber);
  border: 1px solid var(--amber);
}

/* Experiences Banner */
.affiliate-experience-banner {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px dashed rgba(200, 135, 90, 0.3);
  border-radius: var(--r-md);
  padding: 20px;
  text-decoration: none;
  transition: background 0.2s;
}
.affiliate-experience-banner:hover {
  background: var(--bg-inset);
}
.ae-content {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.ae-content svg {
  color: var(--amber);
}

/* Hotel Carousel */
.affiliate-hotel-section {
  margin-bottom: 30px;
}
.ah-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}
.ah-header h4 {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 600;
}
.ah-view-all {
  font-size: 11px;
  color: var(--amber);
  text-decoration: none;
}
.ah-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
}
.ah-carousel::-webkit-scrollbar {
  display: none;
}
.ah-card {
  flex: 0 0 220px;
  background: var(--bg-surface);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  scroll-snap-align: start;
}
.ah-img-wrap {
  width: 100%;
  height: 120px;
  overflow: hidden;
}
.ah-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.ah-card:hover .ah-img-wrap img {
  transform: scale(1.05);
}

.ah-card.text-only {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.ah-card.text-only::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(200, 135, 90, 0.15) 0%, transparent 100%);
  pointer-events: none;
}
.ah-card.text-only:hover {
  border-color: var(--amber);
  transform: translateY(-2px);
}
.ah-card.text-only .ah-info {
  width: 100%;
  padding: 16px;
  z-index: 1;
}
.ah-info {
  padding: 12px;
}
.ah-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ah-rating {
  font-size: 11px;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 4px;
}
.ah-price {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}
