/* ==========================================================================
   Fly-Cheap Dreamy Soft-Bright Redesign (WanderRadar Style)
   Designed by Antigravity - Apple Glassmorphism & Airbnb Warmth Style
   ========================================================================== */

:root {
  /* Soft Dreamy Gradients */
  --sky-grad: linear-gradient(135deg, #e0f2fe 0%, #fef08a 35%, #fbcfe8 70%, #ccfbf1 100%);
  --brand-grad: linear-gradient(135deg, #ff8c00 0%, #ff5e62 100%);
  --button-grad: linear-gradient(135deg, #ff8c00 0%, #d946ef 50%, #06b6d4 100%);
  
  /* Primary Identity Colors */
  --p: #ff8c00;          /* Brand Orange */
  --p-glow: rgba(255, 140, 0, 0.35);
  --p2: #d946ef;         /* Dreamy Purple */
  --p2-glow: rgba(217, 70, 239, 0.25);
  
  /* Alert Level Colors */
  --teal: #00c896;       /* Low Price Green */
  --red: #f87171;        /* High Price Red */
  --gold: #ffb347;       /* Typical Price Amber */
  --orange: #ff8c00;
  
  /* Typography Stack */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Light-mode Glass Constants */
  --bg-glass: rgba(255, 255, 255, 0.42);
  --border-glass: rgba(255, 255, 255, 0.58);
  --border-active: rgba(255, 140, 0, 0.3);
  
  --txt: #0c1a2e;        /* Deep Slate Text */
  --mut: #4f5e74;        /* Soft Muted Text */
  --bdr: rgba(255, 140, 0, 0.15);
  
  --sidebar-width: 480px;
  --drawer-width: 380px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-elastic: all 0.55s cubic-bezier(0.34, 1.6, 0.64, 1);
}

/* Global Reset & Body styling */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  color: var(--txt);
  -webkit-font-smoothing: antialiased;
}

/* Dreaming flowing animated background */
body {
  background: var(--sky-grad);
  background-size: 300% 300%;
  animation: sky-flow 25s ease infinite;
}

/* App Core Grid */
.app {
  display: grid;
  grid-template-columns: 1fr;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

/* ==========================================================================
   GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */
.glass {
  background: var(--bg-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1.5px solid var(--border-glass);
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05);
  border-radius: 24px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  border-radius: 20px;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 5px;
}
::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 140, 0, 0.15);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--p);
}

/* ==========================================================================
   SIDEBAR LAYOUT
   ========================================================================== */
.sidebar {
  display: flex;
  flex-direction: column;
  height: calc(100% - 32px);
  margin: 16px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  overflow: hidden;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-width);
  z-index: 40;
  border: 1.5px solid var(--border-glass);
  border-radius: 28px;
  box-shadow: 10px 0 50px rgba(15, 23, 42, 0.04);
  transition: var(--transition-smooth);
}

/* Brand header */
.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 28px;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}
.brand-logo {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
  transition: var(--transition-elastic);
}
.brand-logo:hover {
  transform: rotate(-10deg) scale(1.08);
}
.logo-svg {
  width: 28px;
  height: 28px;
}
.brand-info h1 {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -1.2px;
  line-height: 1;
}
.brand-info h1 span {
  color: var(--p);
}
.brand-info p {
  font-size: 10px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-top: 5px;
}

/* Form panel contents */
.sb-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: visible;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ctrl {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  transition: var(--transition-smooth);
}
.ctrl:focus-within {
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1), 0 4px 20px rgba(15, 23, 42, 0.04);
}
.shdr {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sbdg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.1);
  color: var(--p);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.shdr h2 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.shdr .sval {
  margin-left: auto;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: var(--p);
}

/* ==========================================================================
   INPUTS & AUTOCOMPLETE
   ========================================================================== */
.ac-wrap {
  position: relative;
  z-index: 100;
}
.ac-wrap:focus-within {
  z-index: 200;
}
.inp-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.inp-ico {
  position: absolute;
  left: 12px;
  color: var(--mut);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.inp-ico svg {
  width: 14px;
  height: 14px;
}
.fcinp {
  width: 100%;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  padding: 10px 12px 10px 36px;
  color: var(--txt);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  outline: none;
  transition: var(--transition-smooth);
}
.fcinp:focus {
  border-color: var(--p);
  background: white;
}
.fcinp::placeholder {
  color: #cbd5e1;
}
.fcinp[type="date"] {
  padding-left: 12px;
}
.clr-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--mut);
  cursor: pointer;
  display: none;
  align-items: center;
}
.clr-btn svg {
  width: 14px;
  height: 14px;
}

/* Autocomplete Dropdown */
.ac-dd {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 140, 0, 0.18);
  border-radius: 14px;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.ac-dd.open {
  display: block;
}
.ac-opt {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 12px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition-smooth);
}
.ac-opt:last-child {
  border-bottom: none;
}
.ac-opt:hover {
  background: rgba(255, 140, 0, 0.05);
}
.ac-code {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--p);
  font-size: 11px;
  background: rgba(255, 140, 0, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 6px;
}
.ac-st {
  font-size: 10px;
  color: var(--mut);
  font-weight: 500;
}

/* Selected Code Badge Card */
.from-card {
  background: linear-gradient(135deg, var(--p), #ff5e62);
  border-radius: 14px;
  padding: 12px 14px;
  display: none;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.25);
  animation: dpop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
  box-sizing: border-box;
}
.from-card.vis {
  display: flex;
}
.from-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.from-code {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  padding: 6px 12px;
  border-radius: 10px;
  flex-shrink: 0;
  white-space: nowrap;
}
.from-city {
  font-family: var(--font-heading);
  font-size: 14px;
  color: white;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}
.from-airport {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.88);
  display: block;
  white-space: normal;
  line-height: 1.4;
  word-break: break-word;
  text-align: left;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  padding-top: 6px;
  margin-top: 2px;
}
.lm-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 9px;
  color: white;
  margin-left: auto;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   VIBE & SLIDER
   ========================================================================== */
.vibe-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.vibe-btn {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  font-family: var(--font-body);
  outline: none;
}
.vibe-btn svg {
  width: 16px;
  height: 16px;
  color: var(--mut);
  transition: var(--transition-smooth);
}
.vibe-btn span {
  font-size: 10px;
  color: var(--mut);
  font-weight: 600;
}
.vibe-btn:hover {
  background: rgba(255, 140, 0, 0.05);
}
.vibe-btn.active {
  background: linear-gradient(135deg, #ff8c00, #ff5e62);
  border-color: var(--p);
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.25);
}
.vibe-btn.active svg, .vibe-btn.active span {
  color: white;
}

/* Budget Range Slider */
.slider-container {
  width: 100%;
  position: relative;
}
.fc-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--p), #d946ef);
  outline: none;
  cursor: pointer;
}
.fc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 3.5px solid var(--p);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(255, 140, 0, 0.35);
  transition: transform 0.1s ease;
}
.fc-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}
.sl-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--mut);
  font-weight: 600;
  margin-top: 4px;
}
.budget-fb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--teal);
  background: rgba(0, 200, 150, 0.06);
  border: 1px solid rgba(0, 200, 150, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
}
.budget-fb svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Date Grid Control */
.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dfield label {
  font-size: 9px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}
.forecast-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: rgba(255, 140, 0, 0.04);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-radius: 12px;
  padding: 10px 12px;
}
.forecast-box svg {
  width: 14px;
  height: 14px;
  color: var(--p);
  flex-shrink: 0;
  margin-top: 1px;
}
.forecast-box strong {
  display: block;
  color: var(--p);
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 2px;
}
.forecast-box p {
  color: #9a3412;
  font-size: 10px;
  line-height: 1.4;
}

/* ==========================================================================
   ALERTS AND TIERS
   ========================================================================== */
.nb-opts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.6);
  color: var(--mut);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
  font-family: var(--font-body);
}
.nb.active {
  border-color: var(--p);
  background: rgba(255, 140, 0, 0.08);
  color: var(--p);
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.08);
}
.nb.locked {
  opacity: 0.52;
  cursor: not-allowed;
  background: rgba(241, 245, 249, 0.6);
  border-color: rgba(255, 255, 255, 0.4);
}
.ltag {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--p2), #a855f7);
  color: white;
  margin-left: 2px;
}

/* Pricing Card Tiers */
.tiers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tc {
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.6);
}
.tc:hover {
  border-color: var(--p);
  background: rgba(255, 255, 255, 0.85);
}
.tc.sel {
  border-color: var(--p);
  background: white;
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.12);
}
.tc[data-t="pro"].sel, .tc[data-t="elite"].sel {
  border-color: var(--teal);
  box-shadow: 0 4px 16px rgba(0, 200, 150, 0.12);
}
.tc[data-t="pro"] .tp, .tc[data-t="elite"] .tp {
  color: var(--teal);
}
.trad {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc.sel .trad {
  border-color: var(--p);
}
.tc[data-t="pro"].sel .trad, .tc[data-t="elite"].sel .trad {
  border-color: var(--teal);
}
.tdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p);
  opacity: 0;
  transition: opacity 0.2s;
}
.tc[data-t="pro"] .tdot, .tc[data-t="elite"] .tdot {
  background: var(--teal);
}
.tc.sel .tdot {
  opacity: 1;
}
.ti {
  flex: 1;
}
.tn {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.td {
  font-size: 9px;
  color: var(--mut);
}
.tp {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: var(--p);
}
.tbdg {
  font-size: 8px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 100px;
  background: linear-gradient(135deg, #ff8c00, #ff5e62);
  color: white;
  margin-left: 4px;
}

.ftwo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.fg {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fg label {
  font-size: 9px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

/* Sidebar CTA Buttons footer */
.sb-footer {
  padding: 16px 24px 20px 24px;
  border-top: 1.5px solid rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.abtn {
  width: 100%;
  border: none;
  padding: 12px;
  border-radius: 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-elastic);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  outline: none;
}
.abtn.primary {
  background: linear-gradient(135deg, var(--p), #ff5e62);
  color: white;
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}
.abtn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.4);
}
.abtn.primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.abtn.secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--txt);
  border: 1px solid rgba(255, 140, 0, 0.2);
}
.abtn.secondary:hover {
  color: var(--p);
  border-color: var(--p);
  background: white;
}
.abtn.teal {
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: white;
  box-shadow: 0 4px 16px rgba(255, 140, 0, 0.3);
}
.abtn.teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 140, 0, 0.45), 0 0 10px rgba(217, 70, 239, 0.2);
}
.trust {
  font-size: 9px;
  color: var(--mut);
  text-align: center;
  font-weight: 600;
}

/* Success screen */
.succ {
  padding: 30px 24px;
  text-align: center;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.succ .si {
  font-size: 48px;
}
.succ h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.succ p {
  font-size: 11px;
  color: var(--mut);
  line-height: 1.6;
  max-width: 250px;
}

/* ==========================================================================
   MAP VIEWPORT
   ========================================================================== */
.map-area {
  position: relative;
  height: 100vh;
  overflow: hidden;
  width: 100%;
}

/* Landmark backdrop image behind the map */
.city-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: background-image 0.8s, opacity 0.8s;
  opacity: 0;
  pointer-events: none;
}
.city-bg.vis {
  opacity: 0.72;
  filter: blur(4px) saturate(1.2);
}
.city-bg-ov {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle, transparent 30%, rgba(255, 255, 255, 0.85) 90%);
  pointer-events: none;
}

#map {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
}

/* Voyager airy pastel map blending */
.leaflet-container {
  background: transparent !important;
}
.leaflet-control-zoom {
  display: none !important;
  border: none !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important;
  border-radius: 12px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--txt) !important;
  border: 1px solid rgba(0,0,0,0.03) !important;
  transition: var(--transition-smooth);
}
.leaflet-control-zoom a:hover {
  background: white !important;
  color: var(--p) !important;
}
.leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 140, 0, 0.15) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
}
.leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.92) !important;
}
.leaflet-popup-content {
  margin: 14px 18px !important;
  font-family: var(--font-body);
}

/* Pulsing radar sweep marker wave */
.radar {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  display: none;
}
.radar.on {
  display: block;
}
.radar::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 140, 0, 0.08);
  border: 2px solid var(--p-glow);
  box-shadow: 0 0 20px var(--p-glow);
  animation: radar-pulse-wave 2.2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
}

/* Glowing Float banner Selected Route overlay */
.f-banner {
  position: absolute;
  top: 16px;
  left: calc(var(--sidebar-width) + 40px);
  z-index: 20;
  display: flex;
  gap: 20px;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  border-radius: 40px;
  padding: 10px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.bi {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bi svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.bl {
  font-size: 9px;
  color: var(--mut);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
}
.bv {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  display: block;
  margin-top: 1px;
}
.bv.em {
  color: var(--teal);
}
.bdiv {
  width: 1.5px;
  height: 30px;
  background: rgba(255, 140, 0, 0.12);
}

.cwm {
  position: absolute;
  bottom: 80px;
  right: calc(var(--drawer-width) + 40px);
  z-index: 10;
  text-align: right;
  pointer-events: none;
}
.cwm .cn {
  font-family: var(--font-heading);
  font-size: clamp(24px, 4vw, 56px);
  font-weight: 900;
  color: rgba(255, 140, 0, 0.08);
  letter-spacing: -2px;
  line-height: 0.9;
  display: block;
}
.cwm .cs {
  font-size: 10px;
  color: rgba(255, 140, 0, 0.15);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

/* Custom glowing pins markers */
.fm {
  background: linear-gradient(135deg, var(--p), #ff5e62);
  border: 3.5px solid white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  box-shadow: 0 0 10px rgba(255, 140, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.15);
  animation: source-pulsing 2s infinite ease-in-out;
}

.dm-low, .dm-typ, .dm-hi {
  border: 3px solid white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  animation: dpop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}
.dm-low {
  background: var(--teal);
  box-shadow: 0 0 10px rgba(0, 200, 150, 0.4);
}
.dm-typ {
  background: var(--gold);
  box-shadow: 0 0 10px rgba(255, 179, 71, 0.4);
}
.dm-hi {
  background: var(--red);
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.4);
}

.pop-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--p), #ff5e62);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
  transition: var(--transition-smooth);
}
.pop-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(255, 140, 0, 0.3);
}

/* Legend Map box overlay */
.legend {
  position: absolute;
  bottom: 24px;
  left: calc(var(--sidebar-width) + 40px);
  z-index: 20;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15,23,42,0.03);
}
.li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--mut);
  margin-bottom: 5px;
  font-weight: 700;
}
.li:last-child {
  margin-bottom: 0;
}
.ldot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid white;
  flex-shrink: 0;
}
.hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-35%);
  z-index: 20;
  padding: 8px 20px;
  font-size: 11px;
  color: var(--mut);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  font-weight: 600;
  pointer-events: none;
}

.support-badge {
  position: absolute;
  bottom: 80px;
  right: 20px;
  z-index: 20;
  background: white;
  border: 1.5px solid rgba(0, 200, 150, 0.25);
  border-radius: 16px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition-elastic);
  box-shadow: 0 8px 20px rgba(0, 200, 150, 0.12);
  animation: float-promo 2.5s infinite ease-in-out;
}
.support-badge:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(0, 200, 150, 0.2);
}
.support-ico {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--teal), #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(0, 200, 150, 0.2);
}
.support-txt strong {
  font-family: var(--font-heading);
  font-size: 12px;
  color: #0f172a;
  display: block;
  font-weight: 800;
}
.support-txt span {
  font-size: 9px;
  color: var(--mut);
  font-weight: 600;
}

/* ==========================================================================
   DESTINATION DRAWER (SLIDEOUT PANEL)
   ========================================================================== */
.drawer {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: var(--drawer-width);
  z-index: 30;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(32px);
  -webkit-backdrop-filter: blur(32px);
  border: 1.5px solid var(--border-glass);
  border-radius: 28px;
  transform: translateX(calc(100% + 32px));
  transition: var(--transition-smooth);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.05);
}
.drawer.open {
  transform: translateX(0);
}
.d-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 140, 0, 0.15);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--mut);
  font-size: 14px;
  z-index: 5;
  transition: var(--transition-smooth);
}
.d-close:hover {
  transform: rotate(90deg);
  color: var(--p);
  border-color: var(--p);
}
.d-hero {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
  flex-shrink: 0;
  border-radius: 26px 26px 0 0;
  overflow: hidden;
}
.d-hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15,23,42,0.1), rgba(15,23,42,0.8));
}
.d-hero-meta {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 44px;
}
.d-hero-meta h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}
.d-hero-meta p {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.vtag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: linear-gradient(135deg, var(--p), #ff5e62);
  color: white;
  font-size: 9px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.2);
}

.d-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.dg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.dc {
  background: white;
  border: 1px solid rgba(255, 140, 0, 0.1);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(15,23,42,0.01);
}
.dc .dl {
  font-size: 9px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}
.dc .dv {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}
.dc .dv.hi {
  background: linear-gradient(135deg, #ff8c00, #d946ef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Low / Typical / High Price slider bar indicator */
.pbar-sec {
  padding: 14px;
  border: 1px solid rgba(255, 140, 0, 0.1);
}
.pbar-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.pbar-lbl {
  font-size: 9px;
  color: var(--mut);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pbadge {
  font-size: 9px;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 700;
}
.pbadge.low {
  background: rgba(0, 200, 150, 0.1);
  color: var(--teal);
}
.pbadge.typical {
  background: rgba(255, 179, 71, 0.1);
  color: var(--gold);
}
.pbadge.high {
  background: rgba(248, 113, 113, 0.1);
  color: var(--red);
}
.pbar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--red));
  position: relative;
  margin-bottom: 6px;
}
.pdot {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--p);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(255, 140, 0, 0.3);
}
.pbar-lbls {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--mut);
  font-weight: 700;
}

/* Hopper Trend Predictor Card */
.predictor {
  padding: 16px;
  border: 1px solid rgba(255, 140, 0, 0.1);
}
.pred-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pred-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.pred-ico.buy {
  background: rgba(0, 200, 150, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.2);
}
.pred-ico.wait {
  background: rgba(255, 179, 71, 0.08);
  border: 1px solid rgba(255, 179, 71, 0.2);
}
.pred-ico.high {
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
}
.pred-hdr h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.pred-hdr p {
  font-size: 10px;
  color: var(--mut);
}

.chart-wrap {
  position: relative;
  height: 100px;
  width: 100%;
  margin-bottom: 6px;
}
.chart-tl {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--mut);
  font-weight: 600;
}
.disc {
  font-size: 8px;
  color: #94a3b8;
  font-style: italic;
  text-align: center;
  margin-top: 4px;
}

.watch-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}
.watch-btn {
  width: 100%;
  background: linear-gradient(135deg, #fff7ed, #fff);
  border: 1.5px solid rgba(255, 140, 0, 0.2);
  color: var(--p);
  padding: 10px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  outline: none;
}
.watch-btn:hover {
  background: white;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.08);
}
.watch-btn.on {
  background: linear-gradient(135deg, #ecfdf5, #fff);
  border-color: rgba(0, 200, 150, 0.25);
  color: var(--teal);
}
.wstats {
  font-size: 9px;
  color: var(--mut);
  text-align: center;
  font-weight: 600;
}

/* Landmark spotlights */
.lm-card {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 140, 0, 0.1);
}
.lm-img {
  height: 120px;
  background-size: cover;
  background-position: center;
}
.lm-body {
  padding: 12px 14px;
}
.lm-body h4 {
  font-size: 8px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
  font-weight: 800;
}
.lm-body h5 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}
.lm-body p {
  font-size: 10px;
  color: var(--mut);
  line-height: 1.5;
}

/* Aviasales Affiliate CTAs */
.book-sec {
  padding: 14px;
  border: 1px solid rgba(255, 140, 0, 0.1);
}
.book-sec h3 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}
.class-row {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}
.copt {
  flex: 1;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 8px 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--mut);
  cursor: pointer;
  font-family: var(--font-body);
  transition: var(--transition-smooth);
  outline: none;
}
.copt.active {
  border-color: var(--p);
  background: rgba(255, 140, 0, 0.06);
  color: var(--p);
}
.copt:hover:not(.active) {
  background: #f1f5f9;
}
.book-cta {
  width: 100%;
  background: linear-gradient(135deg, var(--p), #ff5e62);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(255, 140, 0, 0.25);
  transition: var(--transition-elastic);
}
.book-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
}

/* Glowing Skeleton loading state for drawer */
.drawer-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.skeleton-pill {
  width: 40%;
  height: 18px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 10px;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
}
.skeleton-row-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.skeleton-card {
  height: 54px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 14px;
  animation: skeleton-shimmer 1.5s infinite ease-in-out;
}
.skeleton-card.large {
  height: 110px;
}

/* Friendly Uncached Route Card design */
.uncached-route-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px dashed rgba(255, 140, 0, 0.22);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.02);
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  animation: dpop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.uncached-plane-icon {
  font-size: 36px;
  animation: float-promo 3s infinite ease-in-out;
  margin-bottom: 12px;
}
.uncached-route-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}
.uncached-route-card p {
  font-size: 11px;
  color: var(--mut);
  line-height: 1.5;
}
.uncached-glowing-pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(255, 140, 0, 0.04);
  border-radius: 50%;
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

/* ==========================================================================
   MODALS AND INTERACTIVE PLOTS
   ========================================================================== */
.modal-ov {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}
.modal-ov.open {
  display: flex;
}

/* Customer Support Box & Chat styling */
.support-box {
  background: white;
  border-radius: 24px;
  padding: 24px;
  max-width: 440px;
  width: 95%;
  position: relative;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(0, 200, 150, 0.15);
  text-align: center;
}
.support-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  padding: 14px;
  margin-bottom: 12px;
}
.chat-messages {
  height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  text-align: left;
}
.msg {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 85%;
}
.msg.bot {
  align-self: flex-start;
}
.msg.user {
  align-self: flex-end;
}
.msg-txt {
  padding: 8px 14px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 500;
}
.msg.bot .msg-txt {
  background: rgba(0, 200, 150, 0.08);
  color: #065f46;
  border-radius: 4px 14px 14px 14px;
  border: 1px solid rgba(0, 200, 150, 0.12);
}
.msg.user .msg-txt {
  background: linear-gradient(135deg, var(--p), #ff5e62);
  color: white;
  border-radius: 14px 14px 4px 14px;
  box-shadow: 0 3px 8px rgba(255, 140, 0, 0.15);
}
.msg-time {
  font-size: 8px;
  color: var(--mut);
  font-weight: 500;
  margin-left: 4px;
}
.msg.user .msg-time {
  align-self: flex-end;
  margin-right: 4px;
}
.chat-suggest {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.sug-btn {
  background: white;
  border: 1px solid rgba(0, 200, 150, 0.2);
  border-radius: 12px;
  padding: 4px 10px;
  font-size: 9px;
  color: #0f766e;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.sug-btn:hover {
  background: rgba(0, 200, 150, 0.05);
  border-color: var(--teal);
}
.chat-input-row {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.chat-send-btn {
  background: linear-gradient(135deg, var(--teal), #06b6d4);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 200, 150, 0.2);
  transition: var(--transition-smooth);
  flex-shrink: 0;
}
.chat-send-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 200, 150, 0.3);
}
.chat-send-btn svg {
  width: 14px;
  height: 14px;
}
.support-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  color: var(--mut);
  font-weight: 600;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding-top: 12px;
  margin-top: 4px;
}
  border: 1px solid rgba(0,0,0,0.02);
  border-radius: 8px;
  padding: 8px 12px;
  justify-content: center;
}

/* Checkout success pass stub */
.checkout-box {
  background: white;
  border-radius: 28px;
  padding: 30px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(255, 140, 0, 0.15);
}
.ld, .cs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.radar-loader {
  position: relative;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.radar-loader .pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--p);
  animation: rl 1.5s ease-out infinite;
}
@keyframes rl {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.ld h2, .cs h2 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}
.ld p, .cs p {
  font-size: 12px;
  color: var(--mut);
  line-height: 1.5;
}

.succ-ico {
  width: 60px;
  height: 60px;
  background: rgba(0, 200, 150, 0.1);
  border: 2px solid rgba(0, 200, 150, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 15px rgba(0, 200, 150, 0.2);
}
.hl {
  color: var(--p);
  font-weight: 800;
}

/* Boarding ticket stub */
.ticket {
  border: 1.5px solid rgba(255, 140, 0, 0.15);
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
  text-align: left;
  margin-top: 4px;
}
.tk-hdr {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(255, 140, 0, 0.05);
  border-bottom: 1.5px dashed rgba(255, 140, 0, 0.18);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  color: var(--p);
  letter-spacing: 0.5px;
}
.tk-body {
  padding: 14px 16px;
  background: white;
}
.tk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.tk-row:last-child {
  margin-bottom: 0;
}
.tl {
  font-size: 9px;
  color: var(--mut);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  font-weight: 700;
  margin-bottom: 2px;
}
.tv {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 900;
  color: #0f172a;
}
.tk-row.sm .tv {
  font-size: 13px;
}
.bc {
  display: flex;
  align-items: center;
  height: 28px;
  gap: 1.5px;
  padding: 0 16px 10px;
  background: white;
  justify-content: center;
}
.bc .br {
  width: 2.5px;
  height: 100%;
  background: rgba(255, 140, 0, 0.25);
}
.bc .br.t {
  width: 1px;
  background: rgba(255, 140, 0, 0.12);
}
.bc .br.k {
  width: 4px;
  background: rgba(255, 140, 0, 0.35);
}

/* ==========================================================================
   DYNAMIC NOTIFICATION TOAST
   ========================================================================== */
.notif-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none; /* Let map clicks pass through the container background */
}
.notif {
  pointer-events: auto; /* Allow interaction with actual toasts */
  background: white;
  border-radius: 14px;
  padding: 10px 16px;
  font-size: 11px;
  color: var(--txt);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  animation: slideIn 0.3s ease;
  max-width: 280px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,0.03);
  border-left: 4.5px solid var(--p);
  font-weight: 600;
}
.notif.warn {
  border-left-color: var(--gold);
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: white;
  padding: 10px 22px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 800;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.25);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.audio-badge {
  position: fixed;
  bottom: 24px;
  left: 512px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 140, 0, 0.2);
  border-radius: 20px;
  padding: 5px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--mut);
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  font-weight: 700;
}
.audio-badge:hover {
  border-color: var(--p);
  color: var(--p);
  transform: translateY(-1px);
}

/* ==========================================================================
   KEYFRAME ANIMATION POOL
   ========================================================================== */
@keyframes sky-flow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes radar-pulse-wave {
  0% { width: 0; height: 0; margin: 0; opacity: 1; }
  100% { width: 900px; height: 900px; margin: -450px; opacity: 0; }
}

@keyframes source-pulsing {
  0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(255, 140, 0, 0.5); }
  50% { transform: scale(1.08); box-shadow: 0 0 18px rgba(255, 140, 0, 0.7); }
}

@keyframes dpop {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

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

@keyframes skeleton-shimmer {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media(max-width:900px) {
  .sidebar {
    position: relative;
    width: calc(100% - 32px);
    height: auto;
    max-height: 50vh;
    margin: 16px;
  }
  .map-area {
    height: 50vh;
  }
  .drawer {
    width: calc(100% - 32px);
    top: auto;
    bottom: 16px;
    height: 70vh;
    margin: 16px;
    transform: translateY(calc(100% + 32px));
    border-left: 1.5px solid var(--border-glass);
  }
  .drawer.open {
    transform: translateY(0);
  }
  .f-banner {
    left: 16px;
    top: 16px;
    font-size: 10px;
    padding: 8px 16px;
    gap: 12px;
  }
  .audio-badge {
    left: 16px;
    bottom: 16px;
  }
}

/* ==========================================================================
   HIGH-FIDELITY MOCKUP OVERLAYS & CUSTOM COMPONENT STYLING
   ========================================================================== */

/* Esri hybrid mapping layers */
.leaflet-tile {
  transition: filter 0.8s ease;
}
.map-day .leaflet-tile {
  filter: brightness(1.2) contrast(1.0) saturate(1.2) !important;
}
.map-night .leaflet-tile {
  filter: brightness(0.35) contrast(1.35) saturate(0.7) hue-rotate(200deg) !important;
}
.map-sunset .leaflet-tile {
  filter: brightness(1.05) contrast(1.1) saturate(1.4) sepia(0.55) hue-rotate(-10deg) !important;
}

/* Avoid leaflet attribution colliding with bottom overlay elements */
.leaflet-bottom.leaflet-right {
  padding-bottom: 55px !important;
}

/* Leaflet Custom HTML Pin Card Capsules */
.fm-capsule {
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 6px 12px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 90px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: var(--transition-elastic);
  position: absolute;
  transform: translate(-50%, -100%);
}
.fm-capsule::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.78) transparent;
  display: block;
  width: 0;
}
.fm-capsule:hover {
  transform: translate(-50%, -105%) scale(1.06);
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--p);
  box-shadow: 0 8px 25px rgba(255, 140, 0, 0.45);
  z-index: 1000 !important;
}
.fm-c-name {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 2px;
}
.fm-c-price {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: white;
}
.fm-c-badge {
  font-size: 7px;
  font-weight: 800;
  margin-top: 2px;
  padding: 1px 6px;
  border-radius: 100px;
  display: inline-block;
  white-space: nowrap;
}
.fm-c-badge.amazing {
  background: rgba(0, 200, 150, 0.15);
  color: #34d399;
  border: 1px solid rgba(0, 200, 150, 0.25);
}
.fm-c-badge.great {
  background: rgba(0, 200, 150, 0.12);
  color: #34d399;
}
.fm-c-badge.good {
  background: rgba(255, 179, 71, 0.12);
  color: #fbbf24;
}
.fm-c-badge.normal {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
}
.fm-dot-anchor {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 10px white;
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
}

/* View Mode Toggles Center-Top */
.view-toggles {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-35%);
  z-index: 20;
  display: flex;
  background: rgba(15, 23, 42, 0.68);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px;
  padding: 4px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}
.vt-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  padding: 8px 16px;
  border-radius: 30px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
  outline: none;
}
.vt-btn svg {
  width: 13px;
  height: 13px;
}
.vt-btn.active {
  background: white;
  color: #0f172a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.vt-btn:hover:not(.active) {
  color: white;
}

/* Top Right Actions bar */
.top-actions {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
}
.action-btn {
  border: none;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  outline: none;
}
.action-btn svg {
  width: 16px;
  height: 16px;
}
.action-btn:hover {
  transform: scale(1.08);
  border-color: var(--teal);
  color: var(--teal);
}
.user-profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-smooth);
}
.user-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.user-profile:hover {
  transform: scale(1.08);
  border-color: var(--p);
}

/* Legend Map Customization */
.legend {
  background: rgba(15, 23, 42, 0.72) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: white !important;
}
.legend .li {
  color: rgba(255,255,255,0.7) !important;
}
.ldot.l-amazing { background: #f87171; box-shadow: 0 0 8px #f87171; }
.ldot.l-great { background: #ffb347; box-shadow: 0 0 8px #ffb347; }
.ldot.l-good { background: #3b82f6; box-shadow: 0 0 8px #3b82f6; }
.ldot.l-normal { background: #94a3b8; }

/* BOTTOM DEALS CAROUSEL TRAY STYLE */
.deals-tray {
  position: absolute;
  bottom: 16px;
  left: calc(var(--sidebar-width) + 36px);
  right: 20px;
  z-index: 20;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 16px 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(calc(100% + 40px));
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.deals-tray.vis {
  transform: translateY(0);
}
.dt-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}
.dt-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dt-sparkle {
  font-size: 16px;
}
.dt-title h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0;
}
.dt-view-all {
  background: transparent;
  border: none;
  color: var(--teal);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}
.dt-view-all:hover {
  color: white;
  transform: translateX(3px);
}
.dt-carousel-wrap {
  position: relative;
  width: 100%;
}
.dt-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 4px;
}
.dt-carousel::-webkit-scrollbar {
  height: 5px;
}
.dt-carousel::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.05);
  border-radius: 10px;
}
.dt-carousel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 10px;
}

/* Deal Cards */
.deal-card {
  flex: 0 0 156px;
  height: 124px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition-elastic);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.deal-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.95));
  z-index: 1;
}
.deal-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--p);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.35);
}
.dc-content {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  z-index: 2;
  color: white;
  text-align: left;
}
.dc-city {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  display: block;
}
.dc-country {
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  display: block;
  margin-bottom: 2px;
}
.dc-price {
  font-size: 10px;
  font-weight: 800;
  color: var(--teal);
  display: block;
}
.dc-percent {
  font-size: 7px;
  color: rgba(255,255,255,0.58);
  display: block;
}
.dc-score-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.1);
}
.dc-score-val {
  font-family: var(--font-heading);
  font-size: 8px;
  font-weight: 900;
  color: var(--teal);
}
.dt-nav-btn {
  position: absolute;
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
  z-index: 3;
  border: none;
  background: white;
  color: #0f172a;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: var(--transition-smooth);
  outline: none;
}
.dt-nav-btn svg { width: 10px; height: 10px; }
.dt-nav-btn:hover { transform: translateY(-50%) scale(1.1); background: var(--p); color: white; }

/* Roulette card in Sidebar */
.roulette-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.65);
  border: 1.5px solid rgba(255, 140, 0, 0.15);
  border-radius: 18px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-elastic);
  margin-top: 12px;
}
.roulette-card:hover {
  border-color: var(--p);
  background: white;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.12);
  transform: translateY(-2px);
}
.r-icon {
  font-size: 20px;
}
.r-text {
  flex: 1;
  text-align: left;
}
.r-text strong {
  font-family: var(--font-heading);
  font-size: 12px;
  color: #0f172a;
  display: block;
  font-weight: 800;
}
.r-text span {
  font-size: 9px;
  color: var(--mut);
}
.r-arrow {
  color: var(--mut);
  display: flex;
  align-items: center;
}
.r-arrow svg {
  width: 14px;
  height: 14px;
}

/* Redesigned Active Vibe button gradient */
.vibe-btn.active {
  background: linear-gradient(135deg, #ff8c00 0%, #ff5e62 100%) !important;
  color: white !important;
  border-color: transparent !important;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.35) !important;
}
.vibe-btn.active svg {
  color: white !important;
}

/* Sidebar Budget Value Placement */
.ctrl .shdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ctrl .shdr .sval {
  color: var(--p);
  font-weight: 800;
  font-size: 13px;
  font-family: var(--font-heading);
}

/* Right Details Panel Updates */
.drawer-data-content .dg2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.price-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.d-trend-lbl {
  font-size: 9px;
  color: var(--teal);
  font-weight: 700;
  margin-top: 2px;
}

/* Deal Score Card layouts */
.score-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.score-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}
.score-ring-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring-bg {
  fill: none;
  stroke: rgba(0,0,0,0.06);
  stroke-width: 3.5;
}
.ring-fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.8s ease-in-out;
}
.score-val {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 900;
  color: #0f172a;
}
.score-lbl {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
}

/* Average Price Label under History Graph */
.avg-price-tag {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--mut);
  font-weight: 700;
  text-align: center;
  margin-top: 8px;
}

/* Best Time to Book Advisory Card */
.best-time-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 200, 150, 0.05);
  border: 1px solid rgba(0, 200, 150, 0.15);
  border-radius: 16px;
  padding: 12px 16px;
  text-align: left;
  margin-bottom: 12px;
}
.bt-icon {
  font-size: 22px;
  color: var(--teal);
}
.bt-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.bt-title {
  font-size: 8px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.bt-text strong {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.bt-sub {
  font-size: 9px;
  color: var(--mut);
}

/* Drawer Premium Action buttons */
.drawer-actions {
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.book-now-btn {
  background: linear-gradient(135deg, var(--p), #d946ef);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  padding: 12px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.25);
  transition: var(--transition-elastic);
}
.book-now-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.45), 0 0 10px rgba(217, 70, 239, 0.25);
}
.actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.actions-row .abtn {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 11px;
}
.actions-row .abtn svg {
  width: 13px;
  height: 13px;
}

/* Reset default Leaflet divIcon square styling to allow glowing capsules to render alone */
.leaflet-div-icon, .custom-capsule-marker-icon {
  background: transparent !important;
  border: none !important;
}

/* ==========================================================================
   THREE-COLUMN PERMANENT SIDE-BY-SIDE DOCKED SYSTEM
   ========================================================================== */
@media (min-width: 769px) {
  /* ==========================================================================
     THREE-COLUMN PERMANENT SIDE-BY-SIDE DOCKED SYSTEM
     ========================================================================== */
  .app {
    display: grid !important;
    grid-template-columns: 30% 45% 25% !important;
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .sidebar {
    grid-column: 1 !important;
    position: relative !important;
    width: auto !important;
    height: calc(100% - 32px) !important;
    margin: 16px 8px 16px 16px !important;
    z-index: 40 !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
  }

  .map-area {
    grid-column: 2 !important;
    position: relative !important;
    height: calc(100% - 32px) !important;
    width: auto !important;
    margin: 16px 8px !important;
    border-radius: 28px !important;
    overflow: hidden !important;
    border: 1.5px solid var(--border-glass) !important;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05) !important;
    z-index: 30 !important;
  }

  .drawer {
    grid-column: 3 !important;
    position: relative !important;
    width: auto !important;
    height: calc(100% - 32px) !important;
    margin: 16px 16px 16px 8px !important;
    z-index: 45 !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important; /* Force permanent visibility! */
    opacity: 1 !important;
    pointer-events: auto !important;
  }

  /* Adjust map size inside center column container */
  #map {
    height: 100% !important;
    width: 100% !important;
  }

  /* Hide close button on right panel in permanently docked layout */
  .drawer .d-close {
    display: none !important;
  }
}

/* ============================================================
   FLY-CHEAP MOBILE FIX — Add to bottom of styles.css
   ============================================================ */

@media (max-width: 768px) {

  /* Stack everything vertically */
  .app {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 100vh !important;
    width: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  /* SIDEBAR — compact header strip on mobile */
  .sidebar {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.1) !important;
    flex-shrink: 0 !important;
    position: relative !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
  }

  /* Brand header smaller on mobile */
  .brand {
    padding: 10px 14px !important;
  }

  .brand-info h1 {
    font-size: 18px !important;
  }

  .brand-logo {
    width: 32px !important;
    height: 32px !important;
  }

  /* Sidebar body scrollable */
  .sb-body {
    padding: 10px 14px !important;
    gap: 8px !important;
  }

  /* Ctrl sections smaller */
  .ctrl {
    padding: 10px 12px !important;
    border-radius: 10px !important;
  }

  .shdr h2 {
    font-size: 12px !important;
  }

  /* Vibe grid 3 columns stays OK */
  .vibe-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 4px !important;
  }

  .vibe-btn {
    padding: 6px 2px !important;
  }

  .vibe-btn span {
    font-size: 9px !important;
  }

  /* Sidebar footer */
  .sb-footer {
    padding: 8px 14px !important;
    gap: 6px !important;
  }

  .abtn {
    padding: 10px !important;
    font-size: 12px !important;
  }

  /* MAP — takes remaining space */
  .map-area {
    width: 100% !important;
    height: 60vh !important;
    position: relative !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
  }

  #map {
    width: 100% !important;
    height: 100% !important;
  }

  /* Floating banner — smaller on mobile */
  .f-banner {
    left: 10px !important;
    right: 10px !important;
    top: 8px !important;
    transform: none !important;
    padding: 6px 12px !important;
    gap: 10px !important;
    font-size: 10px !important;
  }

  .bi .bv {
    font-size: 11px !important;
  }

  .bl {
    font-size: 8px !important;
  }

  /* View toggles */
  .view-toggles {
    top: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: none !important; /* Hide on mobile to save space */
  }

  /* Top actions */
  .top-actions {
    top: 8px !important;
    right: 8px !important;
  }

  .action-btn {
    width: 28px !important;
    height: 28px !important;
  }

  .user-profile {
    width: 28px !important;
    height: 28px !important;
  }

  /* Legend — smaller */
  .legend {
    bottom: auto !important;
    top: 8px !important;
    left: 8px !important;
    padding: 6px 10px !important;
  }

  .li {
    font-size: 9px !important;
    margin-bottom: 2px !important;
  }

  /* City watermark — hide on mobile */
  .cwm {
    display: none !important;
  }

  /* Audio badge */
  .audio-badge {
    bottom: 8px !important;
    left: 8px !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
  }

  /* Hint */
  .hint {
    bottom: 8px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    font-size: 10px !important;
    padding: 5px 12px !important;
    white-space: nowrap !important;
  }

  /* Support badge — hide on mobile */
  .support-badge {
    display: none !important;
  }

  /* Deals tray — compact on mobile */
  .deals-tray {
    padding: 8px 12px 10px !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
    z-index: 20 !important;
  }

  .dt-title h3 {
    font-size: 11px !important;
  }

  .dt-card {
    width: 130px !important;
  }

  .dt-card-img {
    height: 65px !important;
  }

  /* DRAWER — stacked below the map on mobile */
  .drawer {
    display: none !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 15 !important;
    left: auto !important;
    top: auto !important;
    bottom: auto !important;
    right: auto !important;
  }

  .drawer.open {
    display: block !important;
  }

  /* Drawer hero smaller */
  .d-hero {
    height: 140px !important;
  }

  .d-hero-meta h2 {
    font-size: 18px !important;
  }

  /* Drawer body */
  .d-body {
    padding: 12px !important;
    gap: 10px !important;
  }

  /* Price cards grid */
  .dg2 {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  /* Chart smaller on mobile */
  .chart-wrap {
    height: 70px !important;
  }

  /* Book now button */
  .book-now-btn {
    padding: 11px !important;
    font-size: 13px !important;
  }

  /* Class row */
  .class-row {
    gap: 4px !important;
  }

  .copt {
    padding: 6px 4px !important;
    font-size: 10px !important;
  }

  /* Actions row */
  .actions-row .abtn {
    padding: 8px !important;
    font-size: 10px !important;
  }

  /* Modals full screen on mobile */
  .modal-ov {
    align-items: flex-end !important;
    padding: 0 !important;
  }

  .support-box,
  .checkout-box {
    width: 100% !important;
    max-width: 100% !important;
    border-radius: 20px 20px 0 0 !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
  }

  /* Drawer close button */
  .d-close {
    top: 10px !important;
    right: 10px !important;
  }

  /* Add drag handle to drawer */
  .drawer::before {
    content: '' !important;
    display: block !important;
    width: 40px !important;
    height: 4px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 2px !important;
    margin: 10px auto 0 !important;
  }

  /* Notification container */
  .notif-container {
    top: 8px !important;
    right: 8px !important;
    left: 8px !important;
  }

  .notif {
    max-width: 100% !important;
    font-size: 11px !important;
  }

  /* Toast */
  .toast {
    width: 90% !important;
    font-size: 11px !important;
  }

  /* Tiers compact */
  .tiers {
    gap: 5px !important;
  }

  .tc {
    padding: 8px 10px !important;
  }

  .tn {
    font-size: 11px !important;
  }

  .td {
    font-size: 9px !important;
  }

  .tp {
    font-size: 11px !important;
  }

  /* Date grid */
  .date-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
  }

  /* Roulette card */
  .roulette-card {
    padding: 10px 12px !important;
  }

  .r-text strong {
    font-size: 11px !important;
  }

  /* From card */
  .from-card {
    padding: 8px 10px !important;
  }

  .from-code {
    font-size: 18px !important;
  }

  /* Forecast box */
  .forecast-box {
    padding: 8px 10px !important;
  }

  .forecast-box p {
    font-size: 10px !important;
  }

  /* Notification buttons */
  .nb-opts {
    gap: 4px !important;
  }

  .nb {
    padding: 4px 7px !important;
    font-size: 10px !important;
  }

}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 375px) {

  .sidebar {
    max-height: 40vh !important;
  }

  .map-area {
    height: 60vh !important;
  }

  .brand-info h1 {
    font-size: 16px !important;
  }

  .vibe-btn span {
    font-size: 8px !important;
  }

}

/* ==========================================================================
   MOBILE-ONLY COLLAPSIBLE SECTIONS FOR INDEX.HTML SIDEBAR
   ========================================================================== */
@media (min-width: 769px) {
  .mobile-collapsible {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .mobile-collapsible {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    overflow: hidden;
    margin-top: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }

  .mobile-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    color: white;
    background: rgba(255, 255, 255, 0.02);
  }

  .mobile-section-header button {
    background: rgba(255,140,0,0.15);
    border: 1px solid rgba(255,140,0,0.3);
    color: #ff8c00;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
  }

  .mobile-section-header button:hover {
    background: rgba(255,140,0,0.25);
  }

  .collapsible-content {
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
  }

  .collapsible-content.expanded {
    max-height: 1000px;
    opacity: 1;
    padding: 12px;
  }

  .collapsible-content.collapsed {
    max-height: 0;
    opacity: 0;
    padding: 0 12px;
  }

  .mobile-deals-carousel {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .mobile-deals-carousel::-webkit-scrollbar { display: none; }

  .mobile-deal-card {
    flex-shrink: 0;
    width: 130px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease;
  }

  .mobile-deal-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 140, 0, 0.3);
  }

  .mdc-price {
    font-size: 15px;
    font-weight: 900;
    color: #ff8c00;
    margin-bottom: 2px;
  }

  .mdc-route {
    font-size: 9px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 2px;
  }

  .mdc-city {
    font-size: 11px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mdc-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 20px;
    display: inline-block;
  }

  .mdc-badge.low { background: rgba(0,200,150,0.2); color: #00c896; }
  .mdc-badge.typical { background: rgba(255,179,71,0.2); color: #ffb347; }
  .mdc-badge.high { background: rgba(248,113,113,0.2); color: #f87171; }

  .mobile-price-hero {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .mobile-price {
    font-size: 28px;
    font-weight: 900;
    color: white;
  }

  .mobile-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
  }

  .mobile-chart-wrap {
    height: 80px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 4px;
  }

  .mobile-pbar-wrap {
    margin-bottom: 12px;
    padding: 0 4px;
  }

  .mobile-predictor {
    font-size: 12px;
    font-weight: 700;
    color: white;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    text-align: center;
    line-height: 1.4;
  }

  .mobile-book-btn {
    display: block;
    background: linear-gradient(135deg, #ff8c00, #f97316);
    color: white !important;
    padding: 12px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-book-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 0, 0.3);
  }
}

