/* index.css */
:root {
  --cream: #F8F5EE;
  --cream-dark: #EBE4D5;
  --olive: #46552B;
  --olive-dark: #2A3319;
  --gold: #AE8338;
  --gold-light: #EADCB9;
  --gold-glow: rgba(174, 131, 56, 0.3);
  --ink: #1F221B;
  --ink-soft: #5C6053;
  --stone: #CBC5B3;
  
  --glass: rgba(253, 251, 249, 0.88);
  --glass-border: rgba(174, 131, 56, 0.2);
  --shadow: 0 16px 36px rgba(31, 34, 27, 0.08), 0 4px 12px rgba(31, 34, 27, 0.03);
  
  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Work Sans', system-ui, -apple-system, sans-serif;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

#scene {
  position: fixed;
  inset: 0;
  z-index: 1;
}

#scene canvas {
  display: block;
}

/* Unified Top HUD Bar (Map Vibe, Centralized, Decluttered) */
/* Unified Top HUD Bar (Map Vibe, Centralized, Decluttered) */
.top-hud-bar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid var(--stone);
  border-radius: 40px;
  padding: 5px 12px 5px 16px;
  box-shadow: 0 10px 30px rgba(31, 34, 27, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: auto;
  width: max-content;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  box-sizing: border-box;
  transition: var(--transition);
}

.top-hud-bar::-webkit-scrollbar {
  display: none;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding-right: 12px;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-section h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 15px;
  color: var(--olive-dark);
  letter-spacing: -0.2px;
  margin: 0;
  white-space: nowrap;
}

.brand-section h1 span {
  color: var(--gold);
}

/* View Mode Switcher styling */
.mode-section {
  display: flex;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 2px;
  gap: 2px;
  flex-shrink: 0;
}

.mode-btn {
  background: transparent;
  border: none;
  border-radius: 18px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.mode-btn:hover {
  color: var(--olive-dark);
}

.mode-btn.active {
  background: var(--cream);
  color: var(--olive-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* Colony Plots Status UI Colors */
.status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.status-dot.available   { background-color: #4CAF50; box-shadow: 0 0 6px rgba(76,175,80,0.5); }
.status-dot.booked      { background-color: #9E9E9E; }
.status-dot.constructed { background-color: #E08A45; box-shadow: 0 0 6px rgba(224,138,69,0.5); }
.status-dot.resale      { background-color: #F3A828; box-shadow: 0 0 6px rgba(243,168,40,0.5); }
.status-dot.company     { background-color: #247BA0; box-shadow: 0 0 6px rgba(36,123,160,0.5); }

/* Legend Dots */
.legend-row .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
}
.legend-row .dot.constructed { background-color: #E08A45; }
.legend-row .dot.resale      { background-color: #F3A828; }
.legend-row .dot.company     { background-color: #247BA0; }
.legend-row .dot.available   { background-color: #4CAF50; }
.legend-row .dot.booked      { background-color: #9E9E9E; }
.legend-row .dot.project     { background-color: #AE8338; }
.legend-row .dot.landmark    { background-color: #46552B; }
.legend-row .dot.road        { background-color: #3C3C40; }
.legend-row .dot.route       { background-color: #29B6F6; }

.search-section {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 4px 10px;
  width: 180px;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-section:focus-within {
  width: 220px;
  background: rgba(0, 0, 0, 0.07);
}

.search-section svg {
  width: 14px;
  height: 14px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.search-section input {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 11.5px;
  color: var(--ink);
  outline: none;
  width: 100%;
}

/* Search Autocomplete Floating Dropdown */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 290px;
  max-height: 340px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.20), 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  padding: 6px 0;
  scrollbar-width: thin;
}

.search-dropdown-header {
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover, .search-dropdown-item.selected {
  background: rgba(174, 131, 56, 0.12);
}

.search-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-item-badge {
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}

.search-item-sub {
  font-size: 10.5px;
  color: var(--ink-soft);
}

.search-item-status {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.search-item-status.available { background: rgba(76, 175, 80, 0.15); color: #2E7D32; }
.search-item-status.constructed { background: rgba(224, 138, 69, 0.15); color: #C85A17; }
.search-item-status.resale { background: rgba(243, 168, 40, 0.18); color: #B45309; }
.search-item-status.company { background: rgba(36, 123, 160, 0.15); color: #1D4ED8; }
.search-item-status.under_const { background: rgba(100, 116, 139, 0.15); color: #475569; }
.search-item-status.booked { background: rgba(158, 158, 158, 0.2); color: #616161; }
.search-item-status.commercial { background: rgba(147, 51, 234, 0.15); color: #7E22CE; }

.plot-select-btn {
  background: rgba(174, 131, 56, 0.12) !important;
  border: 1px solid rgba(174, 131, 56, 0.4) !important;
  color: var(--olive-dark) !important;
  font-weight: 700 !important;
}

.plot-select-btn:hover {
  background: rgba(174, 131, 56, 0.22) !important;
}

.filter-section {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Top HUD Route Selectors (From & To Dropdowns) */
.city-route-selectors {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-select-wrap {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 3px 8px 3px 10px;
  transition: var(--transition);
}

.hud-select-wrap:hover,
.hud-select-wrap:focus-within {
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(174, 131, 56, 0.18);
}

.hud-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--olive-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
}

.hud-select {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  max-width: 155px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hud-swap-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: bold;
  color: var(--olive-dark);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.hud-swap-btn:hover {
  background: var(--gold-light);
  color: var(--olive-dark);
  transform: rotate(180deg);
}

.hud-pill-btn {
  background: var(--cream);
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 4px 11px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--olive-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.hud-pill-btn:hover {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}

.daynight-btn {
  background: #1E293B !important;
  color: #F8FAFC !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
  font-weight: 700 !important;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  cursor: pointer;
}

.daynight-btn:hover {
  background: #0F172A !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.5);
}

.daynight-btn.night {
  background: linear-gradient(135deg, #F59E0B, #D97706) !important;
  color: #0F172A !important;
  border-color: #FDE68A !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 12px rgba(245, 158, 11, 0.55);
}

.start-drive-btn {
  background: #16A34A !important;
  color: #FFFFFF !important;
  border: 1px solid #22C55E !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 10px rgba(22, 163, 74, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.start-drive-btn:hover {
  background: #15803D !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.45);
}

.start-drive-btn.driving {
  background: #DC2626 !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
  animation: pulseDriving 1.6s infinite alternate;
}

@keyframes pulseDriving {
  from { box-shadow: 0 0 6px rgba(220, 38, 38, 0.4); }
  to { box-shadow: 0 0 16px rgba(220, 38, 38, 0.8); }
}

.gmaps-nav-start-btn {
  background: #1A73E8;
  color: #FFFFFF;
  border: none;
  border-radius: 18px;
  padding: 4px 12px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  margin-left: auto;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(26, 115, 232, 0.35);
}

.gmaps-nav-start-btn:hover {
  background: #1557B0;
  transform: translateY(-1px);
}

.gmaps-nav-start-btn.driving {
  background: #DC2626;
}

.filter-btn {
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 5px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--olive-dark);
  background: rgba(0, 0, 0, 0.04);
}

.filter-btn.active {
  background: var(--olive);
  color: var(--cream);
  box-shadow: 0 4px 10px rgba(70, 85, 43, 0.15);
}

.filter-select {
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 4px 8px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-select:hover {
  border-color: rgba(0, 0, 0, 0.2);
}

.filter-select:focus {
  border-color: var(--olive);
}

/* Colony Camera Presets Floating Sub-bar */
.colony-view-presets {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--stone);
  border-radius: 30px;
  padding: 3px 8px;
  box-shadow: 0 8px 24px rgba(31, 34, 27, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  width: max-content;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  box-sizing: border-box;
  transition: var(--transition);
}

.colony-view-presets::-webkit-scrollbar {
  display: none;
}

.cam-preset-btn {
  background: transparent;
  border: none;
  border-radius: 16px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.cam-preset-btn:hover {
  color: var(--olive-dark);
  background: rgba(0, 0, 0, 0.05);
}

.cam-preset-btn.active {
  background: var(--gold);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(174, 131, 56, 0.35);
}

/* Day/Night Mode Switcher Button */
.daynight-btn {
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 4px 10px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}

.daynight-btn:hover {
  background: rgba(0, 0, 0, 0.1);
}

.daynight-btn.night {
  background: #1B263B;
  color: #E0E1DD;
  border-color: #415A77;
  box-shadow: 0 2px 8px rgba(13, 27, 42, 0.4);
}

/* Floating 3D Navigation & Zoom Controls (Right Side) */
.nav-controls {
  position: fixed;
  right: 24px;
  bottom: 120px;
  z-index: 95;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--stone);
  border-radius: 16px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(31, 34, 27, 0.12);
  backdrop-filter: blur(16px);
}

.nav-btn {
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  border-radius: 10px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--olive-dark);
  transform: scale(1.08);
}

.nav-btn:active {
  transform: scale(0.92);
}

/* Floating Bottom Drawer Details Card (Apple Maps/Google Maps Vibe) */
#info {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 40px);
  z-index: 100;
  background: var(--glass);
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 20px;
  width: 520px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 24px 48px rgba(31, 34, 27, 0.12);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

#info.show {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

/* Close Button */
#info .close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.04);
  border: none;
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: var(--transition);
  z-index: 10;
}

#info .close:hover {
  background: rgba(0,0,0,0.08);
  color: var(--ink);
}

/* Split Layout inside Info Card */
.info-split {
  display: flex;
  gap: 18px;
}

.info-thumb-col {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, var(--olive-dark) 0%, var(--gold) 100%);
  border: 1px solid rgba(0,0,0,0.06);
  flex-shrink: 0;
}

.info-thumb-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.info-thumb-col .thumb-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255,255,255,0.85);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-thumb-col .thumb-ph svg {
  width: 24px;
  height: 24px;
  opacity: 0.85;
}

.info-details-col {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#info .eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

#info h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--olive-dark);
  margin-bottom: 6px;
  line-height: 1.2;
}

#info p.desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

/* Compact Proximity Widget */
#info .dist {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 6px 12px;
  margin-bottom: 14px;
}

#info .dist-left {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

#info .dist-left b {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--olive-dark);
}

#info .dist-left span {
  font-size: 11.5px;
  color: var(--ink-soft);
}

#info .dist-right {
  font-size: 11px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Actions */
.actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.actions button {
  flex: 1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid var(--olive);
  background: var(--olive);
  color: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}

.actions button:hover {
  background: var(--olive-dark);
  border-color: var(--olive-dark);
}

.actions button.ghost {
  background: transparent;
  color: var(--olive);
}

.actions button.ghost:hover {
  background: rgba(70, 85, 43, 0.05);
}

/* Collapsible Legend Widget (Floating on bottom left) */
.legend-container {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 100;
  pointer-events: auto;
}

.legend-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--stone);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--olive-dark);
  transition: var(--transition);
}

.legend-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.legend-toggle-btn svg {
  width: 18px;
  height: 18px;
}

.legend-card {
  position: absolute;
  bottom: 50px;
  left: 0;
  background: var(--glass);
  border: 1px solid var(--stone);
  border-radius: 12px;
  padding: 12px 16px;
  width: 220px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: scale(0.9) translateY(10px);
  transform-origin: bottom left;
  pointer-events: none;
  transition: var(--transition);
}

.legend-card.show {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.legend-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  padding-bottom: 4px;
  margin-bottom: 2px;
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot.project { background: var(--gold); }
.dot.landmark { background: var(--olive); }
.dot.constructed { background: #E08A45; }
.dot.resale { background: #F3A828; }
.dot.company { background: #247BA0; }
.dot.under_const { background: #D96B27; }
.dot.available { background: #5C9E4E; }
.dot.booked { background: #C5BCAB; }
.dot.road { width: 14px; height: 2px; border-radius: 1px; background: #827E72; }
.dot.route { width: 14px; height: 3px; border-radius: 1.5px; background: var(--gold); box-shadow: 0 0 4px var(--gold); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}
.status-dot.constructed { background: #E08A45; box-shadow: 0 0 6px #E08A45; }
.status-dot.resale { background: #F3A828; box-shadow: 0 0 6px #F3A828; }
.status-dot.company { background: #247BA0; box-shadow: 0 0 6px #247BA0; }
.status-dot.under_const { background: #D96B27; box-shadow: 0 0 6px #D96B27; }
.status-dot.available { background: #5C9E4E; box-shadow: 0 0 6px #5C9E4E; }
.status-dot.booked { background: #C5BCAB; }

/* Live GPS HUD in bottom-right corner */
.gps-hud {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 4px;
  padding: 2px 8px;
  font-family: monospace;
  font-size: 10.5px;
  color: var(--ink-soft);
  backdrop-filter: blur(4px);
  z-index: 100;
}

/* Floating Helper Hint at Beginning */
.map-hint {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(36, 45, 21, 0.9);
  border: 1px solid rgba(174, 131, 56, 0.25);
  color: var(--cream);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  pointer-events: none;
  z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 6px;
  animation: bounce 2s infinite ease-in-out;
  transition: var(--transition);
}

.map-hint.hide {
  opacity: 0;
  transform: translate(-50%, -10px);
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -5px); }
}

/* Floating HTML Map Badges */
.map-badge {
  position: absolute;
  transform: translate(-50%, -120%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--glass);
  border: 1px solid var(--stone);
  border-radius: 20px;
  padding: 4px 10px 4px 6px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  cursor: pointer;
  pointer-events: auto;
  z-index: 50;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease;
  user-select: none;
}

.map-badge:hover {
  border-color: var(--gold);
  transform: translate(-50%, -125%) scale(1.06);
  box-shadow: 0 8px 24px rgba(174, 131, 56, 0.25);
}

.map-badge.active {
  background: var(--olive);
  border-color: var(--olive);
  color: var(--cream);
  box-shadow: 0 6px 16px rgba(70, 85, 43, 0.3);
}

.map-badge img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
  transition: border-color 0.25s ease;
}

.map-badge.active img {
  border-color: var(--cream);
}

.map-badge span {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* Mobile responsive styling overrides */
@media (max-width: 768px) {
  .top-hud-bar {
    top: 12px;
    padding: 6px 12px;
    width: calc(100% - 24px);
    flex-direction: column;
    align-items: stretch;
    border-radius: 16px;
    gap: 8px;
  }
  
  .brand-section {
    border-right: none;
    padding-right: 0;
    justify-content: center;
  }
  
  .search-section {
    width: 100%;
  }
  
  .search-section:focus-within {
    width: 100%;
  }
  
  .filter-section {
    justify-content: center;
  }
  
  #info {
    bottom: 12px;
    width: calc(100% - 24px);
    padding: 16px;
  }
  
  .info-split {
    flex-direction: column;
    gap: 12px;
  }
  
  .info-thumb-col {
    width: 100%;
    height: 100px;
  }
  
  .legend-container {
    bottom: 150px;
    left: 12px;
  }
  
  .gps-hud {
    display: none; /* Hide coords on mobile to save space */
  }
  
  .map-hint {
    top: 150px;
  }
  
  .map-badge {
    padding: 3px 8px 3px 4px;
    transform: translate(-50%, -110%) scale(0.9);
  }
  
  .map-badge img {
    width: 20px;
    height: 20px;
  }
  
/* ==========================================================================
   Interactive 3D Car Drive Tour HUD & Navigation Deck
   ========================================================================== */

.cam-preset-btn.tour-btn {
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #43A047 100%);
  color: #FFFFFF !important;
  font-weight: 700;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35);
  animation: pulseGlow 2.5s infinite ease-in-out;
}

.cam-preset-btn.tour-btn:hover {
  background: linear-gradient(135deg, #2E7D32 0%, #388E3C 50%, #4CAF50 100%);
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 18px rgba(46, 125, 50, 0.5);
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(46, 125, 50, 0.35); }
  50% { box-shadow: 0 4px 22px rgba(76, 175, 80, 0.7); }
}

.drive-tour-hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
}

.drive-hud-top {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 24, 33, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 10px 20px;
  max-width: 820px;
  margin: 0 auto;
  width: calc(100% - 48px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.drive-hud-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #4CAF50;
  text-transform: uppercase;
}

.live-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 10px #4CAF50;
  animation: blink 1.2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.75); }
}

.drive-landmark-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: 0.02em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 16px;
}

.drive-exit-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drive-exit-btn:hover {
  background: #D32F2F;
  border-color: #D32F2F;
  transform: scale(1.05);
}

.drive-hud-bottom {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  width: calc(100% - 48px);
  animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Subtitles Card */
.drive-subtitles-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(18, 24, 33, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.subtitle-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.subtitle-content {
  flex-grow: 1;
}

.subtitle-speaker {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #B8863E;
  margin-bottom: 2px;
}

.subtitle-text {
  font-size: 14px;
  line-height: 1.45;
  color: #F0F4F8;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

/* Controls Bar */
.drive-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(18, 24, 33, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 10px 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  gap: 12px;
  flex-wrap: wrap;
}

.drive-ctrl-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drive-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
}

.drive-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 6px 12px;
  border-radius: 10px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drive-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.drive-play-btn {
  background: #B8863E;
  border-color: #B8863E;
  color: #FFFFFF;
  padding: 6px 16px;
  font-weight: 700;
}

.drive-play-btn:hover {
  background: #C9974F;
  border-color: #C9974F;
}

.drive-voice-btn.active {
  background: rgba(76, 175, 80, 0.25);
  border-color: #4CAF50;
  color: #81C784;
}

.drive-cam-btn, .drive-speed-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.drive-cam-btn:hover, .drive-speed-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.drive-cam-btn.active, .drive-speed-btn.active {
  background: #B8863E;
  border-color: #B8863E;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(184, 134, 62, 0.4);
}

/* Scrubber Track & Milestone Dots */
.drive-progress-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: rgba(18, 24, 33, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  padding: 10px 16px 8px;
}

.drive-progress-track {
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  cursor: pointer;
  overflow: visible;
}

.drive-progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #4CAF50 0%, #B8863E 100%);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.drive-progress-marker {
  position: absolute;
  top: -4px;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 0 8px rgba(0,0,0,0.5), 0 0 10px #B8863E;
  transform: translateX(-50%);
  pointer-events: none;
  transition: left 0.1s linear;
}

.drive-chapter-stops {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0 0;
}

.chapter-dot {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.chapter-dot:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}

.chapter-dot.active {
  color: #B8863E;
  font-weight: 700;
}

/* Mobile responsive for Drive HUD */
@media (max-width: 768px) {
  .drive-tour-hud {
    padding: 12px;
  }
  .drive-hud-top, .drive-hud-bottom {
    width: 100%;
  }
  .drive-controls-bar {
    padding: 8px 12px;
    gap: 8px;
    justify-content: center;
  }
  .drive-chapter-stops {
    overflow-x: auto;
    gap: 12px;
    justify-content: flex-start;
  }
}

/* Blended Luxury Google Maps Directions Card Component */
.gmaps-directions-card {
  position: fixed;
  top: 76px;
  left: 24px;
  z-index: 150;
  width: 390px;
  max-width: calc(100vw - 32px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(24px) saturate(190%);
  -webkit-backdrop-filter: blur(24px) saturate(190%);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 2px 8px rgba(15, 23, 42, 0.04);
  pointer-events: auto;
  font-family: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow: hidden;
  animation: gmapsSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 1. Top Transport Modes Row */
.gmaps-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px 0 10px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255, 255, 255, 0.6);
}

.gmaps-icon-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gmaps-icon-btn:hover {
  background: rgba(241, 245, 249, 0.9);
  color: #0F172A;
}

.gmaps-mode-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 4px 6px 4px;
  cursor: pointer;
  color: #64748B;
  position: relative;
  gap: 2px;
  min-width: 44px;
  transition: all 0.2s ease;
}

.gmaps-mode-tab:hover {
  color: #0F172A;
}

.gmaps-mode-tab.active {
  color: #2563EB;
}

.gmaps-mode-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 4px;
  right: 4px;
  height: 3px;
  background: #2563EB;
  border-radius: 3px 3px 0 0;
}

.gmaps-tab-pill {
  background: #EFF6FF;
  border-radius: 16px;
  padding: 2px 8px;
  color: #2563EB;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmaps-tab-label {
  font-size: 10.5px;
  font-weight: 600;
}

.gmaps-tab-time {
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
}

/* 2. Origin & Destination Inputs Row */
.gmaps-inputs-container {
  display: flex;
  align-items: center;
  padding: 12px 12px 6px 12px;
  gap: 10px;
}

.gmaps-pins-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 2px 0;
  width: 18px;
}

.gmaps-drag-handle {
  color: #94A3B8;
  font-size: 13px;
  line-height: 1;
  cursor: grab;
}

.gmaps-circle-pin {
  width: 10px;
  height: 10px;
  border: 2px solid #3B82F6;
  border-radius: 50%;
  background: #FFFFFF;
}

.gmaps-dots-connector {
  width: 2px;
  height: 18px;
  border-left: 2px dotted #94A3B8;
}

.gmaps-dest-pin {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gmaps-inputs-fields {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gmaps-field-box {
  position: relative;
  width: 100%;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.9);
  transition: all 0.2s ease;
}

.gmaps-field-box:hover, .gmaps-field-box:focus-within {
  border-color: #3B82F6;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.gmaps-select {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #0F172A;
  cursor: pointer;
  text-overflow: ellipsis;
}

.gmaps-reverse-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #CBD5E1;
  background: rgba(241, 245, 249, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #475569;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.gmaps-reverse-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
  transform: rotate(180deg);
}

/* 3. Footer Options */
.gmaps-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 10px 14px;
}

.gmaps-text-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #2563EB;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: background 0.2s;
}

.gmaps-text-btn:hover {
  background: #EFF6FF;
}

.gmaps-footer-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gmaps-pill-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(241, 245, 249, 0.9);
  border: 1px solid #CBD5E1;
  border-radius: 16px;
  padding: 3px 10px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gmaps-pill-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.gmaps-link-btn {
  font-size: 12px;
  color: #2563EB;
  font-weight: 600;
  cursor: pointer;
}

.gmaps-link-btn:hover {
  text-decoration: underline;
}

/* 4. Live Route Detail Banner */
.gmaps-route-banner {
  background: rgba(248, 250, 252, 0.95);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gmaps-route-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.gmaps-route-duration {
  font-size: 18px;
  font-weight: 700;
  color: #16A34A;
}

.gmaps-route-dist {
  font-size: 13.5px;
  font-weight: 600;
  color: #64748B;
}

.gmaps-route-sub {
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  line-height: 1.35;
}

.gmaps-route-traffic {
  font-size: 11px;
  color: #16A34A;
  font-weight: 600;
}

@media (max-width: 768px) {
  .gmaps-directions-card {
    top: 72px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
  }
}

/* Google Maps Style Side Navigation Drawer */
.gmaps-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.gmaps-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.gmaps-side-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: #FFFFFF;
  z-index: 1300;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.gmaps-side-drawer.show {
  transform: translateX(0);
}

.gmaps-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px;
  border-bottom: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.gmaps-drawer-brand h2 {
  font-size: 16px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.gmaps-drawer-brand span {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

.gmaps-drawer-section {
  padding: 12px 10px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gmaps-drawer-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: #94A3B8;
  padding: 6px 10px;
}

.gmaps-drawer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
}

.gmaps-drawer-item:hover {
  background: #F1F5F9;
  color: #0F172A;
}

.gmaps-drawer-item.active {
  background: #EFF6FF;
  color: #2563EB;
  font-weight: 600;
}

.gmaps-drawer-footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid #E2E8F0;
  background: #F8FAFC;
}

.gmaps-drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  background: #16A34A;
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.gmaps-drawer-cta:hover {
  background: #15803D;
}

/* City Category Filter Bar (Visible in City Connectivity Mode) */
.city-category-bar {
  position: fixed;
  top: 68px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  padding: 4px 8px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  pointer-events: auto;
  width: max-content;
  max-width: calc(100vw - 24px);
  overflow-x: auto;
  scrollbar-width: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.city-category-bar::-webkit-scrollbar {
  display: none;
}

.city-cat-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid transparent;
  color: #E2E8F0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.city-cat-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.city-cat-pill.active {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.45);
}

/* Upgraded High-Visibility Floating HTML Landmark Badges */
.map-badge {
  position: absolute;
  transform: translate(-50%, -120%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.94);
  border: 1.5px solid var(--badge-accent, #38BDF8);
  border-radius: 24px;
  padding: 4px 12px 4px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.38), 0 0 14px var(--badge-glow, rgba(56, 189, 248, 0.3));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  pointer-events: auto;
  z-index: 50;
  transition: transform 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.25s ease, box-shadow 0.25s ease, opacity 0.35s ease, filter 0.35s ease;
  user-select: none;
  color: #F8FAFC;
  font-family: 'Work Sans', sans-serif;
}

.map-badge:hover {
  border-color: #F59E0B;
  transform: translate(-50%, -128%) scale(1.10);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(245, 158, 11, 0.55);
  z-index: 65;
}

.map-badge.active,
.map-badge.route-active {
  background: rgba(15, 23, 42, 0.98);
  border-color: #F59E0B;
  color: #FFFFFF;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 22px rgba(245, 158, 11, 0.65);
  transform: translate(-50%, -128%) scale(1.12);
  z-index: 70;
}

.map-badge.core-cluster {
  border-color: #F59E0B;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.95), rgba(15, 23, 42, 0.95));
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35), 0 0 16px rgba(245, 158, 11, 0.45);
}

.map-badge .badge-icon-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}

.map-badge .badge-body {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.map-badge .badge-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.map-badge .badge-meta {
  font-size: 9.5px;
  font-weight: 600;
  color: #94A3B8;
  white-space: nowrap;
}

.map-badge.active .badge-meta,
.map-badge.route-active .badge-meta {
  color: #FDE047;
}

.map-badge.dimmed {
  opacity: 0.25 !important;
  filter: grayscale(65%) blur(0.5px);
}

.map-badge.dimmed:hover {
  opacity: 0.95 !important;
  filter: none;
  transform: translate(-50%, -125%) scale(1.05);
  z-index: 55;
}
