/* ==========================================================================
   Wayfare - Modern Passenger Discovery Companion Design System
   Glassmorphism, Luminous Accents, Fluid Typography & Responsive Controls
   ========================================================================== */

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f4f7fb;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --border-subtle: rgba(15, 23, 42, 0.10);
  --border-glow: rgba(37, 99, 235, 0.22);

  --accent-cyan: #0284c7; /* brand sky, darkened for text on white */
  --accent-primary: #2563eb; /* brand blue: main buttons (white text) */
  --accent-cyan-glow: rgba(37, 99, 235, 0.10);
  --accent-amber: #ea580c; /* brand orange, readable on white */
  --accent-amber-glow: rgba(249, 115, 22, 0.14);
  --accent-emerald: #059669;
  --accent-rose: #e11d48;
  --accent-purple: #7c3aed;

  --text-main: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --font-family: var(--font-family);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px var(--border-subtle);
  --shadow-glow: 0 8px 24px -8px rgba(37, 99, 235, 0.35);
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ==========================================================================
   App Layout & Interactive Studio Frame
   ========================================================================== */

.interactive-studio-frame {
  width: 100%;
  height: 84vh;
  min-height: 680px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glow);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.25), 0 0 0 1px var(--border-subtle);
  background: var(--bg-secondary);
}

#app-container {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: 100%;
  width: 100%;
  position: relative;
  overflow: hidden;
}

#app-container.fullscreen-studio {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  border-radius: 0 !important;
}

/* Header */
.app-header {
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 1000;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #ffffff 30%, var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-amber);
  background: rgba(249, 115, 22, 0.12);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-left: 0.5rem;
  border: 1px solid rgba(249, 115, 22, 0.25);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Mode Switch: Passenger vs Driver Audio-Only */
.mode-toggle-group {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
}

.mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.mode-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(56, 189, 248, 0.35);
}

.mode-btn.driver.active {
  background: linear-gradient(135deg, var(--accent-amber), #d97706);
  color: #1a0f02;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.35);
}

/* Header Action Buttons */
.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.icon-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Main Content Area: Map & Overlay Panels
   ========================================================================== */

.main-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  background: #080c14;
  z-index: 1;
}

/* Floating HUD - Top Left: Route Selector & Stats */
.floating-panel {
  position: absolute;
  z-index: 500;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: all var(--transition-smooth);
}

.route-selector-card {
  top: 1rem;
  left: 1rem;
  width: min(92vw, 350px);
  padding: 1rem 1.15rem;
}

.route-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.section-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  font-weight: 700;
}

.custom-select {
  width: 100%;
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.custom-select:focus {
  border-color: var(--accent-cyan);
}

.route-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.stat-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Preference Controls & Output Switcher */
.pref-control-section {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.pref-label-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.pref-badge {
  font-size: 0.68rem;
  color: var(--accent-cyan);
  font-weight: 600;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.btn-text-action {
  background: transparent;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: opacity var(--transition-fast);
}

.btn-text-action:hover {
  opacity: 0.75;
}

.output-segmented-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.output-seg-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 4px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all var(--transition-fast);
}

.output-seg-btn:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

.output-seg-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(56, 189, 248, 0.35);
}

/* Category Multi-Select Button Group */
.category-button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-height: 110px;
  overflow-y: auto;
  padding-right: 2px;
}

.category-button-group::-webkit-scrollbar {
  width: 4px;
}
.category-button-group::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.cat-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
  user-select: none;
}

.cat-pill-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.2);
}

.cat-pill-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.cat-count-badge {
  font-size: 0.65rem;
  opacity: 0.75;
  background: rgba(0, 0, 0, 0.3);
  padding: 1px 4px;
  border-radius: var(--radius-full);
}


/* Floating HUD - Top Center: Ambient Road & Horizon Bar */
.ambient-road-bar {
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 550;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-full);
  padding: 0.45rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-cyan-glow);
  pointer-events: auto;
  max-width: min(92vw, 620px);
  white-space: nowrap;
  animation: slide-down-bar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-down-bar {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.road-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: #ffffff;
}

.road-icon {
  font-size: 1rem;
}

.road-name {
  color: var(--accent-cyan);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.horizon-divider {
  width: 1px;
  height: 16px;
  background: var(--border-subtle);
}

.horizon-sight {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.horizon-sight.left {
  color: var(--text-main);
}

.horizon-sight.left .sight-indicator {
  color: var(--accent-cyan);
  font-weight: 800;
}

.horizon-sight.right {
  color: var(--text-main);
}

.horizon-sight.right .sight-indicator {
  color: var(--accent-amber);
  font-weight: 800;
}

/* Ambient Small Road Notification Toast */
.ambient-toast {
  position: absolute;
  top: 4.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 680;
  width: min(92vw, 440px);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 25px var(--accent-cyan-glow);
  animation: toast-drop-in 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

@keyframes toast-drop-in {
  from { opacity: 0; transform: translate(-50%, -15px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.ambient-toast-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.ambient-toast-icon-wrap.right {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-amber);
  border-color: rgba(249, 115, 22, 0.3);
}

.ambient-toast-body {
  flex: 1;
  min-width: 0;
}

.ambient-toast-road {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-amber);
  margin-bottom: 2px;
}

.ambient-toast-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ambient-toast-sub {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 1px;
}

.ambient-toast-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.ambient-toast-close:hover {
  color: #ffffff;
}

/* Floating HUD - Top Right: Live GPS / Audio Indicator */
.status-pill-group {
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 500;
  position: absolute;
}

.status-pill {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Audio Speaking Waveform Animation */
.audio-visualizer-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 16px;
}

.audio-bar {
  width: 3px;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 3px;
  animation: sound-bars 1s ease-in-out infinite alternate;
}

.audio-bar:nth-child(2) { animation-delay: 0.2s; height: 70%; }
.audio-bar:nth-child(3) { animation-delay: 0.4s; height: 90%; }
.audio-bar:nth-child(4) { animation-delay: 0.1s; height: 50%; }

@keyframes sound-bars {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1.2); }
}

/* ==========================================================================
   AI Scenic Co-Pilot Assistant Widget
   ========================================================================== */

.copilot-floating-widget {
  position: absolute;
  bottom: 6.8rem;
  right: 1.25rem;
  z-index: 650;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

.copilot-bubble {
  pointer-events: auto;
  width: min(88vw, 380px);
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.75), 0 0 25px var(--accent-cyan-glow);
  animation: slide-up-card 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.copilot-bubble-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.45rem;
  margin-bottom: 0.5rem;
}

.copilot-avatar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.copilot-sparkle {
  font-size: 1.1rem;
}

.copilot-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
}

.copilot-user-question {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-amber);
  margin-bottom: 0.45rem;
  font-style: italic;
}

.copilot-response-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-main);
}

.copilot-prompt-chips {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: 380px;
}

.copilot-chip {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.copilot-chip:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.3);
}

.btn-copilot-mic {
  pointer-events: auto;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7, var(--accent-cyan));
  color: #ffffff;
  border: none;
  font-family: var(--font-family);
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
  transition: all var(--transition-fast);
}

.btn-copilot-mic:hover {
  transform: scale(1.05);
  filter: brightness(1.12);
}

.btn-copilot-mic.listening {
  background: linear-gradient(135deg, var(--accent-rose), #e11d48);
  color: #ffffff;
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.6);
}

.mic-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent-cyan);
  opacity: 0;
  pointer-events: none;
}

.btn-copilot-mic.listening .mic-pulse-ring {
  border-color: var(--accent-rose);
  animation: pulse-listening 1.4s infinite ease-out;
}

@keyframes pulse-listening {
  0% { transform: scale(0.95); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.icon-btn-tiny {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color var(--transition-fast);
}

.icon-btn-tiny:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Discovery Notification Card (Passenger Discovery Pop-Up)
   ========================================================================== */

.discovery-overlay {
  position: absolute;
  bottom: 6.8rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 540px);
  z-index: 600;
  pointer-events: none;
}

.discovery-card {
  pointer-events: auto;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 30px var(--accent-cyan-glow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  animation: slide-up-card 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up-card {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.15rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--border-subtle);
}

.side-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.side-badge.left {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.side-badge.right {
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(249, 115, 22, 0.35);
}

.side-badge.ahead {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.distance-tag {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-content-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  padding: 1rem 1.15rem;
  gap: 1rem;
}

.poi-thumbnail {
  width: 100%;
  height: 115px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

.poi-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.poi-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.poi-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 3px 0 6px 0;
  color: var(--text-main);
}

.poi-teaser {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.15rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border-subtle);
}

.action-btn-group {
  display: flex;
  gap: 0.65rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  color: #ffffff;
  border: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  filter: brightness(1.15);
  box-shadow: 0 0 15px var(--accent-cyan-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: none;
  font-family: var(--font-family);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.55rem 0.75rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-ghost:hover {
  color: var(--text-main);
}

/* ==========================================================================
   Full Story Modal Dialog
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-fast);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: min(100%, 640px);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
  transform: translateY(20px) scale(0.97);
  transition: transform var(--transition-smooth);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-hero-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  position: relative;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 0.35rem 0 0.75rem 0;
}

.modal-fast-fact-box {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--accent-cyan);
  padding: 0.85rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: #bae6fd;
}

.modal-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Bottom Controls Bar: Playback, Speed, Route Timeline
   ========================================================================== */

.bottom-playback-bar {
  height: 84px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
  z-index: 1000;
}

.playback-buttons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-play-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), #0284c7);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 18px var(--accent-cyan-glow);
  transition: all var(--transition-fast);
}

.btn-play-circle:hover {
  transform: scale(1.06);
}

.timeline-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.timeline-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.timeline-track-wrapper {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.timeline-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  border-radius: var(--radius-full);
  width: 0%;
}

.timeline-poi-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-amber);
  border: 2px solid var(--bg-primary);
  box-shadow: 0 0 6px var(--accent-amber);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.timeline-poi-marker:hover {
  transform: translate(-50%, -50%) scale(1.5);
}

/* Speed Selector & Auto-Narrate Toggles */
.secondary-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.transit-pace-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
  margin-right: 6px;
}

.pace-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pace-btn:hover {
  color: #ffffff;
}

.pace-btn.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.speed-badge-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.speed-badge-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* ==========================================================================
   Side Drawer: Journey Journal & Safety Guide
   ========================================================================== */

.side-drawer {
  position: fixed;
  top: 64px;
  right: -420px;
  width: min(90vw, 400px);
  height: calc(100vh - 64px - 84px);
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.7);
  z-index: 990;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-smooth);
}

.side-drawer.open {
  right: 0;
}

.drawer-header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.drawer-tabs {
  display: flex;
  padding: 0.5rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent-cyan);
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
}

.journal-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.journal-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  margin-bottom: 0.75rem;
  display: flex;
  gap: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.journal-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
}

.journal-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.journal-info {
  flex: 1;
}

.journal-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.journal-time {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

/* ==========================================================================
   Driver Audio-Only Safety Screen Overlay
   ========================================================================== */

.driver-mode-screen {
  position: absolute;
  inset: 0;
  background: #04060a;
  z-index: 1500;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-smooth);
}

.driver-mode-screen.active {
  opacity: 1;
  pointer-events: auto;
}

.driver-shield-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 1px solid rgba(249, 115, 22, 0.3);
  margin-bottom: 1.5rem;
  animation: pulse-dot 2.5s infinite;
}

.driver-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.driver-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.driver-audio-status {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ==========================================================================
   Map Custom Markers & Pulse Elements
   ========================================================================== */

.vehicle-pulse-marker {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vehicle-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.5);
  animation: ring-pulse 2s infinite ease-out;
}

@keyframes ring-pulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.vehicle-core {
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border: 3px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 16px var(--accent-cyan);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  transition: transform 0.2s linear;
}

.poi-map-marker {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-amber);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--accent-amber);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.4);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.poi-map-marker:hover,
.poi-map-marker.active {
  transform: scale(1.3);
  border-color: #ffffff;
  background: var(--accent-amber);
  color: #1a0f02;
  box-shadow: 0 0 20px var(--accent-amber);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* ==========================================================================
   Header Search & Quick Landmark Finder
   ========================================================================== */

.header-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 0 12px;
  width: 250px;
  transition: all var(--transition-fast);
}

.header-search-wrap:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
  width: 290px;
}

.search-icon {
  font-size: 13px;
  opacity: 0.65;
  margin-right: 6px;
  user-select: none;
}

.header-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.82rem;
  width: 100%;
  height: 34px;
}

.header-search-input::placeholder {
  color: var(--text-muted);
}

.search-results-dropdown {
  position: absolute;
  top: 42px;
  left: 0;
  width: 320px;
  max-height: 380px;
  overflow-y: auto;
  background: rgba(11, 16, 27, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85);
  z-index: 1200;
  padding: 6px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:hover {
  background: rgba(56, 189, 248, 0.12);
}

.search-result-thumb {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ==========================================================================
   Open On Phone Button & Mobile QR Modal
   ========================================================================== */

.btn-share-mobile {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.16));
  border: 1px solid rgba(56, 189, 248, 0.45);
  color: #ffffff;
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.22);
  transition: all var(--transition-fast);
}

.btn-share-mobile:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.3), rgba(139, 92, 246, 0.3));
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.45);
  transform: translateY(-1px);
}

.qr-modal-card {
  max-width: 460px;
  width: 92%;
  background: rgba(11, 16, 27, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
  animation: modalSlideUp 0.24s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem 0.5rem;
}

.qr-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.qr-modal-body {
  padding: 0.75rem 1.5rem 1.5rem;
}

.qr-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.qr-modal-desc {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.qr-display-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.1rem;
}

.qr-code-box {
  background: #ffffff;
  padding: 12px;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  min-height: 200px;
}

.qr-code-box img,
.qr-code-box canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.qr-code-caption {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qr-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

.share-url-box {
  display: flex;
  gap: 8px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 6px 4px 12px;
  margin-bottom: 0.85rem;
}

.share-url-input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-main);
  font-size: 0.8rem;
  flex: 1;
  font-family: monospace;
}

.copy-btn {
  padding: 6px 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.share-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 0.85rem;
}

.btn-share-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  transition: all var(--transition-fast);
}

.btn-share-action:hover {
  transform: translateY(-1px);
}

.native-share-btn:hover {
  background: rgba(56, 189, 248, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.whatsapp-btn:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: #25d366;
  color: #25d366;
}

.twitter-btn:hover {
  background: rgba(29, 155, 240, 0.18);
  border-color: #1d9bf0;
  color: #1d9bf0;
}

.pwa-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(16, 185, 129, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 0.85rem;
}

.pwa-install-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
}

.pwa-install-text strong {
  color: #ffffff;
}

.pwa-install-text span {
  color: var(--text-secondary);
  font-size: 0.72rem;
}

.btn-pwa-install {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-family);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 6px 14px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.mobile-tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-tip-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.74rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.tip-os {
  display: block;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

/* ==========================================================================
   Traveler FAQ Cards in Side Drawer
   ========================================================================== */

.faq-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color var(--transition-fast);
}

.faq-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.faq-question {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 6px;
  line-height: 1.3;
}

.faq-answer {
  font-size: 0.79rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 768px) {
  .app-header {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }
  .brand-tagline {
    display: none;
  }
  .header-search-wrap {
    display: flex;
    flex: 1;
    max-width: 180px;
  }
  .header-search-input {
    font-size: 0.72rem;
    padding: 0.35rem 0.5rem 0.35rem 1.7rem;
  }
  .hide-mobile {
    display: none;
  }
  .route-selector-card {
    width: calc(100vw - 2rem);
    top: 0.5rem;
    left: 1rem;
    padding: 0.75rem 0.85rem;
  }
  .status-pill-group {
    display: none;
  }
  .card-content-grid {
    grid-template-columns: 100px 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }
  .poi-thumbnail {
    height: 90px;
  }
  .poi-title {
    font-size: 1rem;
  }
  .bottom-playback-bar {
    height: 74px;
    padding: 0 1rem;
    gap: 0.75rem;
  }
}

/* ==========================================================================
   1,000+ Worldwide Travel Routes Index (SEO & Google Crawl Directory)
   ========================================================================== */

.world-routes-directory {
  background: #f4f7fb;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 4rem 1.5rem 6rem;
  color: var(--text-primary);
  position: relative;
  z-index: 10;
}

.directory-container {
  max-width: 1360px;
  margin: 0 auto;
}

.directory-hero {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3rem;
}

.directory-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.directory-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #0f172a 45%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.directory-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.continents-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.continent-group {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.continent-group:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.continent-summary {
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid transparent;
}

.continent-group[open] .continent-summary {
  border-bottom-color: rgba(15, 23, 42, 0.06);
  background: rgba(56, 189, 248, 0.03);
}

.continent-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
}

.route-seo-card {
  background: rgba(15, 23, 42, 0.02);
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.route-seo-card:hover {
  background: rgba(56, 189, 248, 0.05);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.route-seo-link {
  display: block;
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
}

.route-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.route-transit-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.route-distance-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.route-seo-name {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 0.35rem 0;
  line-height: 1.3;
}

.route-seo-region {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 0.5rem;
}

.route-seo-highlights {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==========================================================================
   Global Website Footer
   ========================================================================== */

.site-global-footer {
  background: #f4f7fb;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding: 4.5rem 1.5rem 3rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  position: relative;
  z-index: 10;
}

.footer-container {
  max-width: 1360px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-family: var(--font-family);
}

.footer-brand-title span.badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 9999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-weight: 700;
}

.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
  margin-bottom: 1.1rem;
  text-transform: uppercase;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.footer-safety-pill {
  background: rgba(249, 115, 22, 0.08);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-top: 0.75rem;
}

.footer-safety-pill-title {
  color: var(--accent-amber);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-safety-pill-text {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Cookie & Privacy Consent Banner
   ========================================================================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: min(92vw, 680px);
  background: #ffffff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.21);
  z-index: 3500;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-consent-banner.show {
  transform: translateX(-50%) translateY(0);
}

.consent-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.consent-text strong {
  color: var(--text-primary);
}

.consent-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-consent-accept {
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-consent-accept:hover {
  background: #38bdf8;
  transform: translateY(-1px);
}

.btn-consent-link {
  color: var(--text-muted);
  text-decoration: underline;
  font-size: 0.78rem;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.3rem 0.5rem;
}

.btn-consent-link:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   Standalone Legal & Security Pages (privacy.html, terms.html, security.html)
   ========================================================================== */

.legal-page-body {
  background-color: #ffffff;
  color: var(--text-primary);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.legal-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.legal-brand-title {
  font-family: var(--font-family);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.legal-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-primary);
  text-decoration: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.legal-back-btn:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: var(--accent-cyan);
}

.legal-main-container {
  max-width: 960px;
  margin: 3rem auto 6rem;
  padding: 0 1.5rem;
}

.legal-hero {
  margin-bottom: 2.5rem;
}

.legal-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.85rem;
}

.legal-hero-title {
  font-family: var(--font-family);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.75rem 0;
  color: var(--text-main);
}

.legal-hero-sub {
  font-size: 1rem;
  color: var(--text-secondary);
}

.legal-content-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section-title {
  font-family: var(--font-family);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-list {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.legal-list li {
  margin-bottom: 0.5rem;
}

.legal-highlight-box {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.25rem 0;
}

.legal-highlight-box.amber {
  background: rgba(249, 115, 22, 0.06);
  border-left-color: var(--accent-amber);
}

.legal-highlight-box.green {
  background: rgba(16, 185, 129, 0.06);
  border-left-color: #10b981;
}

.legal-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.legal-feature-card {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}

.legal-feature-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin: 0 0 0.5rem 0;
}

.legal-feature-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Wayfare app refresh: calm surfaces, clearer hierarchy, touch-first controls
   ========================================================================== */

#app-container {
  --bg-primary: #f3f6f5;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.97);
  --bg-card-hover: #f8fafc;
  --bg-glass: rgba(255, 255, 255, 0.96);
  --border-subtle: rgba(25, 45, 42, 0.12);
  --border-glow: rgba(15, 118, 110, 0.22);
  --accent-cyan: #1d4ed8;
  --accent-cyan-glow: rgba(15, 118, 110, 0.13);
  --accent-amber: #b45309;
  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #788984;
  --shadow-card: 0 12px 32px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(15, 23, 42, 0.08);

  background: #f3f6f5;
  height: 100vh;
  height: 100dvh;
}

.app-header {
  min-height: 68px;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(25, 45, 42, 0.1);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
  color: #0f172a;
}

.brand-logo-icon {
  border-radius: 12px;
  background: #ccfbf1;
  box-shadow: none;
}

.brand-logo-icon svg {
  stroke: #1d4ed8;
}

.brand-title {
  background: none;
  color: #0f172a;
  -webkit-text-fill-color: currentColor;
}

.brand-tagline {
  color: #52635f;
  background: #f1f5f4;
  border-color: #e2e8f0;
}

.header-search-wrap {
  border-radius: 12px;
  background: #f3f6f5;
  border-color: #e2e8f0;
  box-shadow: none;
}

.header-search-input {
  color: #0f172a;
}

.header-search-input::placeholder {
  color: #84938f;
}

.mode-toggle-group {
  background: #f3f6f5;
  border-color: #e2e8f0;
}

.mode-btn {
  min-height: 38px;
  color: #475569;
}

.mode-btn.active {
  background: #d9f3ee;
  color: #115e59;
  box-shadow: none;
}

.mode-btn.driver.active {
  background: #fff1d6;
  color: #854d0e;
  box-shadow: none;
}

.icon-btn {
  background: #f6f8f7;
  border-color: #e2e8f0;
  color: #405550;
}

.icon-btn:hover,
.icon-btn.active {
  background: #e5f5f1;
  border-color: #b7ddd4;
  color: #1d4ed8;
}

.main-stage {
  background: #e9efed;
}

#map {
  background: #e9efed;
}

.leaflet-control-zoom a {
  color: #263d38 !important;
  background: #fff !important;
}

.floating-panel,
.ambient-road-bar,
.status-pill,
.copilot-bubble,
.copilot-chip {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(25, 45, 42, 0.12);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  color: #0f172a;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.route-selector-card {
  top: 1.1rem;
  left: 1.1rem;
  width: min(90vw, 340px);
  padding: 1rem;
}

.section-label {
  color: #52716a;
  letter-spacing: 0.07em;
}

.custom-select {
  min-height: 44px;
  color: #0f172a;
  background-color: #f8fafc;
  border-color: #dce7e3;
  border-radius: 11px;
}

.custom-select:focus-visible,
.header-search-input:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.route-stats-grid {
  gap: 0.4rem;
  padding-top: 0.8rem;
  border-color: #e8eeec;
}

.stat-item {
  padding: 0.55rem 0.35rem;
  background: #f6f9f8;
  border-radius: 10px;
}

.stat-value {
  color: #0f172a;
}

.stat-label {
  color: #71817c;
}

.pref-control-section {
  border-color: #e8eeec;
}

.pref-badge {
  color: #11665e;
  background: #eff6ff;
  border-color: #d2ebe4;
}

.output-segmented-control {
  gap: 3px;
  background: #f1f5f4;
  border-color: #e4ebe8;
  border-radius: 11px;
}

.output-seg-btn {
  min-height: 38px;
  color: #596b66;
  border-radius: 8px;
}

.output-seg-btn.active {
  background: #fff;
  color: #1e40af;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.12);
}

.category-button-group {
  max-height: 84px;
  gap: 6px;
}

.cat-pill-btn {
  min-height: 32px;
  color: #475569;
  background: #f8fafc;
  border-color: #e1e9e6;
}

.cat-pill-btn.active {
  color: #1e40af;
  background: #eff6ff;
  border-color: #b9ddd4;
  box-shadow: none;
}

.cat-count-badge {
  color: #475569;
  background: rgba(25, 45, 42, 0.07);
}

.ambient-road-bar {
  top: 1.1rem;
  gap: 0.8rem;
  border-radius: 16px;
  padding: 0.75rem 1rem;
}

.road-badge,
.horizon-sight,
.horizon-sight.left,
.horizon-sight.right {
  color: #405550;
}

.road-name {
  color: #1e40af;
}

.horizon-sight.left .sight-indicator,
.horizon-sight.right .sight-indicator {
  color: #1d4ed8;
}

.status-pill-group {
  top: 1.1rem;
  right: 1.1rem;
}

.status-pill {
  color: #405550;
  padding: 0.55rem 0.85rem;
}

.ambient-toast,
.discovery-card {
  background: rgba(255, 255, 255, 0.98);
  border-color: #b9ddd4;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  color: #0f172a;
}

.ambient-toast-title,
.poi-title {
  color: #0f172a;
}

.ambient-toast-sub,
.poi-teaser {
  color: #475569;
}

.ambient-toast-road {
  color: #9a570f;
}

.copilot-floating-widget {
  right: 1.1rem;
  bottom: 6.8rem;
  gap: 0.55rem;
}

.copilot-title {
  color: #1e40af;
}

.copilot-user-question {
  color: #9a570f;
}

.copilot-chip {
  color: #405550;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
}

.copilot-chip:hover {
  color: #1e40af;
  background: #eff6ff;
  border-color: #b9ddd4;
  box-shadow: 0 5px 14px rgba(15, 23, 42, 0.12);
}

.btn-copilot-mic {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.24);
}

.btn-copilot-mic:hover {
  filter: brightness(1.08);
}

.bottom-playback-bar {
  min-height: 78px;
  background: rgba(255, 255, 255, 0.98);
  border-top-color: rgba(25, 45, 42, 0.1);
  box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.06);
  padding: 0 1.25rem;
  gap: 1.1rem;
}

.btn-play-circle {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 5px 14px rgba(15, 118, 110, 0.22);
}

.timeline-meta-row {
  color: #687a75;
}

.timeline-track-wrapper {
  height: 7px;
  background: #e6ece9;
}

.timeline-progress-fill {
  background: #1d4ed8;
}

.timeline-poi-marker {
  border-color: #fff;
}

.transit-pace-group {
  background: #f1f5f4;
  border-color: #e2e8f0;
}

.pace-btn,
.speed-badge-btn {
  min-height: 34px;
  color: #475569;
}

.pace-btn.active {
  background: #d9f3ee;
  color: #115e59;
  box-shadow: none;
}

.speed-badge-btn {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.speed-badge-btn.active {
  color: #115e59;
  background: #eff6ff;
  border-color: #c6e4dc;
}

.side-drawer {
  background: #fff;
  color: #0f172a;
  box-shadow: -16px 0 44px rgba(15, 23, 42, 0.18);
}

.drawer-header,
.drawer-tabs {
  border-color: #e6ece9;
}

.drawer-title,
.tab-btn,
.journal-empty-state,
.faq-question {
  color: #263d38;
}

.tab-btn.active {
  color: #1e40af;
  border-bottom-color: #1d4ed8;
}

@media (max-width: 1024px) {
  .ambient-road-bar {
    left: auto;
    right: 1rem;
    transform: none;
    max-width: min(52vw, 560px);
  }

  .status-pill-group {
    top: 4.5rem;
  }
}

@media (max-width: 768px) {
  #app-container {
    grid-template-rows: 58px minmax(0, 1fr) 106px;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .main-stage,
  .bottom-playback-bar,
  .secondary-controls {
    min-width: 0;
  }

  .app-header {
    min-height: 58px;
    height: 58px;
    padding: 0 0.7rem;
  }

  .brand-section {
    gap: 0.5rem;
  }

  .brand-logo-icon {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .header-controls {
    flex: 1;
    min-width: 0;
    justify-content: flex-end;
    gap: 0.35rem;
  }

  .header-search-wrap {
    min-width: 0;
    flex: 1;
    max-width: 150px;
  }

  .header-search-input {
    font-size: 0.68rem;
  }

  .mode-toggle-group {
    display: none;
  }

  .btn-share-mobile {
    min-height: 36px;
    padding: 0 0.55rem;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
  }

  .cookie-consent-banner {
    left: 12px;
    bottom: calc(0.75rem + env(safe-area-inset-bottom));
    width: calc(100vw - 24px);
    max-width: 480px;
    padding: 0.9rem 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }

  .cookie-consent-banner.show {
    transform: translateY(0);
  }

  .consent-text {
    font-size: 0.78rem;
  }

  .consent-actions {
    justify-content: flex-end;
  }

  .route-selector-card {
    top: 5.2rem;
    left: 0.75rem;
    width: min(88vw, 340px);
    max-height: min(48vh, 390px);
    overflow: auto;
    padding: 0.8rem;
    border-radius: 16px;
  }

  .route-stats-grid {
    margin-top: 0.55rem;
    padding-top: 0.55rem;
  }

  .stat-item {
    padding: 0.4rem 0.2rem;
  }

  .pref-control-section {
    margin-top: 0.6rem;
    padding-top: 0.55rem;
  }

  .ambient-road-bar {
    top: 0.55rem;
    left: 0.75rem;
    right: 0.75rem;
    width: auto;
    min-width: 0;
    max-width: none;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.4rem 0.65rem;
    padding: 0.55rem 0.75rem;
    border-radius: 14px;
    white-space: normal;
  }

  .road-badge {
    flex: 1 0 100%;
    min-width: 0;
  }

  .road-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .horizon-divider {
    display: none;
  }

  .horizon-sight {
    flex: 1 1 42%;
    min-width: 0;
    max-width: 48%;
    font-size: 0.7rem;
  }

  .status-pill-group {
    display: none;
  }

  .copilot-floating-widget {
    right: 0.75rem;
    bottom: 7.1rem;
    width: min(380px, calc(100vw - 1.5rem));
    max-width: calc(100vw - 1.5rem);
  }

  .copilot-bubble,
  .copilot-prompt-chips {
    max-width: 100%;
    min-width: 0;
  }

  .copilot-prompt-chips {
    max-width: min(88vw, 380px);
  }

  .copilot-chip {
    font-size: 0.7rem;
    padding: 0.42rem 0.7rem;
  }

  .bottom-playback-bar {
    min-height: 106px;
    height: 106px;
    width: 100%;
    padding: 0.65rem 0.75rem;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 0.35rem 0.7rem;
  }

  .playback-buttons {
    grid-row: 1;
    grid-column: 1;
  }

  .btn-play-circle {
    width: 42px;
    height: 42px;
  }

  .timeline-container {
    grid-row: 1;
    grid-column: 2;
  }

  .timeline-meta-row {
    font-size: 0.66rem;
  }

  .timeline-meta-row span:nth-child(2) {
    display: none;
  }

  .secondary-controls {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    gap: 0.4rem;
    overflow: hidden;
  }

  .transit-pace-group {
    min-width: 0;
    margin: 0;
  }

  .pace-btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.68rem;
  }

  .speed-badge-btn {
    min-height: 30px;
    padding: 0.25rem 0.45rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 380px) {
  .brand-title {
    font-size: 0.9rem;
  }

  .header-search-wrap {
    max-width: 112px;
  }

  .icon-btn {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .pace-btn {
    padding: 0.3rem 0.4rem;
  }

  .transit-pace-group {
    gap: 0;
    padding: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #app-container *,
  #app-container *::before,
  #app-container *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.trip-planner-trigger {
  border: 0;
  border-radius: 999px;
  padding: 0.42rem 0.72rem;
  color: #1e40af;
  background: #eff6ff;
  font: 700 0.74rem var(--font-family);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.trip-planner-trigger:hover {
  background: #d7eee8;
  transform: translateY(-1px);
}

body.trip-planner-open {
  overflow: hidden;
}

.trip-planner-backdrop[hidden] {
  display: none;
}

.trip-planner-backdrop {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 29, 26, 0.42);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.trip-planner-dialog {
  width: min(100%, 700px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border: 1px solid #e1e9e6;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(14, 38, 33, 0.24);
  color: #0f172a;
}

.trip-planner-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.trip-planner-eyebrow {
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.trip-planner-heading h2 {
  margin-top: 0.4rem;
  color: #0f172a;
  font-size: clamp(1.35rem, 3vw, 1.8rem);
  letter-spacing: -0.035em;
}

.trip-planner-heading p {
  margin-top: 0.45rem;
  color: #60716d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.trip-planner-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid #e4ebe8;
  border-radius: 50%;
  background: #f8fafc;
  color: #475569;
  font: 400 1.4rem/1 var(--font-family);
  cursor: pointer;
}

.trip-planner-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.trip-planner-form label {
  display: grid;
  gap: 0.4rem;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
}

.trip-planner-form input,
.trip-planner-form select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.7rem 0.8rem;
  border: 1px solid #dce7e3;
  border-radius: 11px;
  background: #f8faf9;
  color: #0f172a;
  font: 500 0.86rem var(--font-family);
}

.trip-planner-form input::placeholder {
  color: #899793;
}

.trip-planner-submit {
  align-self: end;
  min-height: 46px;
  border: 0;
  border-radius: 11px;
  background: #1d4ed8;
  color: #fff;
  font: 700 0.86rem var(--font-family);
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.trip-planner-submit:hover,
.trip-route-open:hover {
  background: #115e59;
  transform: translateY(-1px);
}

.trip-planner-note {
  margin: 0.95rem 0;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
  background: #f3f7f6;
  color: #60716d;
  font-size: 0.74rem;
  line-height: 1.5;
}

.trip-planner-results {
  display: grid;
  gap: 0.65rem;
}

.trip-planner-empty {
  padding: 1rem 0.4rem;
  color: #71817c;
  font-size: 0.86rem;
  text-align: center;
}

.trip-route-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border: 1px solid #e5ece9;
  border-radius: 14px;
  background: #fff;
}

.trip-route-result-copy {
  min-width: 0;
}

.trip-route-result-match {
  color: #1d4ed8;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.trip-route-result h3 {
  margin-top: 0.18rem;
  color: #0f172a;
  font-size: 0.95rem;
}

.trip-route-result p {
  margin-top: 0.2rem;
  color: #687a75;
  font-size: 0.74rem;
  line-height: 1.45;
}

.trip-route-result .trip-route-highlights {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.trip-route-open {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: 9px;
  background: #1d4ed8;
  color: #fff;
  font: 700 0.75rem var(--font-family);
  cursor: pointer;
}

@media (max-width: 600px) {
  .trip-planner-backdrop {
    align-items: end;
    padding: 0;
  }

  .trip-planner-dialog {
    width: 100%;
    max-height: min(92vh, 820px);
    padding: 1.1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }

  .trip-planner-form {
    grid-template-columns: 1fr;
    gap: 0.7rem;
    margin-top: 1rem;
  }

  .trip-planner-form label {
    gap: 0.3rem;
  }

  .trip-planner-submit {
    margin-top: 0.15rem;
  }

  .trip-route-result {
    padding: 0.75rem;
  }
}

/* ==========================================================================
   Planet AI Pro Homepage & Problem-Solving Presentation Design System
   World-Class UI/UX, Spatial Aesthetics, Problem-to-Solution Architecture
   ========================================================================== */

/* Top Site Global Navigation */
.site-global-nav {
  position: sticky;
  top: 0;
  width: 100%;
  height: 72px;
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  z-index: 9999;
  transition: all var(--transition-fast);
}

.site-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.site-nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8 0%, #10b981 50%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
  color: #0a1222;
  font-size: 1.25rem;
}

.site-nav-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 45%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.site-nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.site-nav-link:hover {
  color: var(--accent-cyan);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-nav-phone {
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-main);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-nav-phone:hover {
  background: rgba(15, 23, 42, 0.1);
  border-color: rgba(15, 23, 42, 0.25);
}

.btn-nav-cta {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border: none;
  color: #ffffff;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
  text-decoration: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.55);
}

/* Landing Hero Section */
.landing-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(56, 189, 248, 0.12) 0%, rgba(16, 185, 129, 0.04) 35%, transparent 70%);
}

.hero-glow-orbit {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.18) 0%, transparent 60%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 16px;
  border-radius: 999px;
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #0f172a 45%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--text-secondary);
  max-width: 780px;
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  font-weight: 400;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  padding: 1rem 2.25rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.35);
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.5);
}

.btn-hero-secondary {
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text-main);
  padding: 1rem 2rem;
  border-radius: 999px;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: rgba(15, 23, 42, 0.12);
  border-color: rgba(15, 23, 42, 0.3);
}

/* Live Simulation Audio Sample Pill */
.hero-audio-preview {
  background: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  padding: 8px 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
  max-width: 90%;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-audio-preview:hover {
  border-color: var(--accent-cyan);
  background: #ffffff;
}

.audio-preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-ring 2s infinite;
}

/* Hero Stats Metric Grid */
.hero-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  max-width: 1100px;
  margin: 3rem auto 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-metric-card {
  background: #ffffff;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: left;
  display: flex;
  gap: 1rem;
  align-items: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.hero-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.metric-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Landing Section General Architecture */
.landing-section {
  max-width: 1360px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
  position: relative;
}

.section-header-centered {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 3.5rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 0.75rem;
}

.section-main-title {
  font-size: clamp(2rem, 3.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.section-lead {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Problem-Solution Comparison Cards */
.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.problem-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.problem-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.problem-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.problem-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.problem-target-user {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #f43f5e;
}

.problem-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.problem-pain-box {
  background: rgba(244, 63, 94, 0.06);
  border-left: 3px solid #f43f5e;
  padding: 1rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 1.25rem;
}

.problem-pain-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #f43f5e;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.problem-pain-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.solution-box {
  background: rgba(16, 185, 129, 0.08);
  border-left: 3px solid #10b981;
  padding: 1rem 1.1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: auto;
}

.solution-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: #10b981;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.solution-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

/* Capabilities Matrix Section ("What It Can Do & How You Utilize It") */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.capability-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
}

.capability-card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 45px rgba(56, 189, 248, 0.12);
  transform: translateY(-4px);
}

.cap-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-tag {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 3px 10px;
  border-radius: 999px;
}

.cap-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.cap-block {
  margin-bottom: 1.25rem;
}

.cap-block-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-amber);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cap-block-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.cap-utilize-box {
  background: rgba(56, 189, 248, 0.05);
  border-left: 3px solid var(--accent-cyan);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: auto;
}

.cap-utilize-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cap-utilize-text {
  font-size: 0.92rem;
  color: var(--text-main);
  line-height: 1.5;
  font-weight: 500;
}

/* 4-Step How-To-Use Flow Grid */
.steps-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  position: relative;
}

.step-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-fast);
}

.step-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
}

.step-num-pill {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.35);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.step-text {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Interactive Studio Showcase Section */
.companion-studio-section {
  padding-top: 2rem;
  padding-bottom: 6rem;
}

.studio-top-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.studio-status-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulse-ring 2s infinite;
}

.studio-title-badge {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-fullscreen-toggle {
  background: rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.15);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-fullscreen-toggle:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-cyan);
  color: var(--text-main);
}

/* Our Mission / Vision For Planet Earth */
.mission-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, #ffffff 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-lg);
  padding: 3.5rem clamp(1.5rem, 4vw, 3.5rem);
  text-align: center;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  max-width: 1050px;
  margin: 0 auto;
}

.mission-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.mission-title {
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

.mission-text {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 820px;
  margin: 0 auto 2rem;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: left;
  margin-top: 2rem;
}

.pillar-item {
  background: rgba(15, 23, 42, 0.03);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #10b981;
  margin-bottom: 0.5rem;
}

.pillar-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Landing FAQ Grid */
.landing-faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}

.landing-faq-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}

.faq-q-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.faq-a-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .site-nav-links {
    display: none;
  }

  .interactive-studio-frame {
    height: 75vh;
    min-height: 580px;
  }
}

@media (max-width: 600px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-hero-primary, .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .interactive-studio-frame {
    height: 72vh;
    min-height: 520px;
    border-radius: 12px;
  }
}

/* Worldwide place search results */
.place-search-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.35);
}
.place-result-item .search-result-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.place-popup strong { font-size: 0.9rem; }

/* Fullscreen cockpit: lock page scroll behind it */
body.studio-fullscreen-open { overflow: hidden; }

/* Route panel collapse (mainly for phones, where the panel would cover the map) */
.route-header-actions { display: flex; align-items: center; gap: 6px; }
.route-panel-toggle {
  display: none;
  width: 30px; height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: inherit;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.route-panel-toggle-icon { transition: transform 0.2s ease; display: inline-block; }
.route-selector-card.collapsed .route-panel-toggle-icon { transform: rotate(-90deg); }
.route-selector-card.collapsed > :not(.route-header-row):not(#route-select) { display: none; }

@media (max-width: 768px) {
  .route-panel-toggle { display: inline-flex; }
  .route-selector-card.collapsed { max-height: none; overflow: visible; }
  /* Co-Pilot question chips: one swipeable row instead of a wall over the map */
  .copilot-prompt-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .copilot-prompt-chips::-webkit-scrollbar { display: none; }
  .copilot-chip { flex: 0 0 auto; white-space: nowrap; }
}

/* Mobile-only copy of the Passenger / Driver switch */
.mobile-only-mode { display: none; }
@media (max-width: 768px) {
  .mobile-only-mode { display: block; }
  .mobile-only-mode .mode-toggle-group { display: flex; width: 100%; }
  .mobile-only-mode .mode-btn { flex: 1; }

  /* Search expands across the whole header while typing */
  .app-header { position: relative; }
  .header-search-wrap:focus-within {
    position: absolute;
    left: 0.6rem;
    right: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    max-width: none;
    z-index: 1200;
  }
  .header-search-wrap:focus-within .header-search-input { font-size: 16px; } /* 16px stops iOS zoom-on-focus */
  .header-search-wrap:focus-within .search-results-dropdown { left: 0; right: 0; width: auto; }
}

.driver-exit-btn { margin-top: 1.5rem; pointer-events: auto; position: relative; z-index: 2; }

/* Search dropdown is always dark: keep its text light in every theme */
.search-results-dropdown .search-result-title { color: var(--text-main); }
.search-results-dropdown .search-result-sub { color: var(--text-secondary); }
@media (max-width: 768px) {
  .header-search-wrap:focus-within .search-results-dropdown { width: 100%; max-width: none; }
}

/* Brand logo image (replaces the old compass glyph) */
.brand-logo-icon,
.brand-logo-icon:is(*) {
  background: none !important;
  box-shadow: none !important;
  padding: 0;
  overflow: hidden;
  border-radius: 10px;
}
.brand-logo-icon img { width: 100%; height: 100%; display: block; }
img.footer-logo-icon { width: 28px; height: 28px; border-radius: 7px; vertical-align: middle; }
.site-nav-logo { background: none !important; box-shadow: none !important; padding: 0; overflow: hidden; border-radius: 10px; }
.site-nav-logo img { width: 100%; height: 100%; display: block; }

/* ==========================================================================
   Mobile layout fixes (2026-11-08)
   ========================================================================== */

/* Routes directory: continents start closed (one open at a time via
   <details name="continents">); an open list scrolls inside its own box so
   the page never becomes thousands of cards long. */
.continent-summary { list-style: none; gap: 1rem; }
.continent-summary::-webkit-details-marker { display: none; }
.continent-summary::after {
  content: "";
  flex: 0 0 10px;
  width: 10px; height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin: -4px 4px 0 0;
  opacity: 0.6;
  transition: transform 0.2s ease;
}
.continent-group[open] .continent-summary::after { transform: rotate(-135deg); margin-top: 4px; }
.continent-group[open] .routes-grid {
  max-height: min(70vh, 720px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

@media (max-width: 640px) {
  .continents-accordion { gap: 0.75rem; }
  .continent-summary { padding: 1rem 1.1rem; font-size: 1rem; }
  .continent-hint { display: none; }
  .routes-grid { grid-template-columns: minmax(0, 1fr); gap: 0.6rem; padding: 0.9rem; }
  .continent-group[open] .routes-grid { max-height: 65vh; }
}

/* Privacy banner on phones: full width, docked to the bottom, never shifted
   sideways by the desktop centring transform. */
@media (max-width: 768px) {
  .cookie-consent-banner {
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
    transform: translateY(calc(100% + 2rem));
  }
  .cookie-consent-banner.show { transform: none; }
}

/* Top navigation on phones: logo + name + one compact call to action. */
@media (max-width: 640px) {
  .site-global-nav { height: 60px; padding: 0 0.9rem; gap: 0.5rem; }
  .site-nav-brand { gap: 0.6rem; min-width: 0; }
  .site-nav-logo { width: 34px; height: 34px; flex: 0 0 34px; }
  .site-nav-title { font-size: 1.1rem; white-space: nowrap; }
  .site-nav-badge { display: none; }
  .site-nav-actions { gap: 0.5rem; flex-shrink: 0; }
  .btn-nav-phone { padding: 0; width: 38px; height: 38px; justify-content: center; }
  .btn-nav-phone span { display: none; }
  .btn-nav-cta { padding: 0.5rem 0.95rem; font-size: 0.85rem; white-space: nowrap; }
}
@media (max-width: 340px) {
  .btn-nav-phone { display: none; }
}

/* ==========================================================================
   Enterprise typography: one typeface, ink + grey text, a single blue accent.
   Coloured text (orange, green, red, gradients) is not used for content.
   ========================================================================== */
:root {
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --text-main: #0f172a;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent-cyan: #1d4ed8;
  --accent-text: #1d4ed8;
}
body, button, input, select, textarea { font-family: var(--font-family); }
body { color: var(--text-secondary); font-feature-settings: 'cv11', 'ss01'; }

/* Headings: solid ink, no gradient fills, calmer weight and tracking */
.hero-title, .site-nav-title, .directory-title, .section-main-title, .legal-hero-title,
.footer-brand-title, .step-title, .problem-title, .cap-title, .mission-title,
.route-seo-name, .continent-title, .legal-section-title, .faq-q-title {
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--text-main) !important;
  letter-spacing: -0.02em;
}
.hero-title { font-weight: 700; letter-spacing: -0.035em; }
.section-main-title, .directory-title, .legal-hero-title { font-weight: 700; }
.step-title, .problem-title, .cap-title, .legal-section-title { font-weight: 600; }
.site-nav-title { font-weight: 700; }

/* Body copy: one grey */
.hero-subtitle, .section-lead, .step-text, .directory-desc, .route-seo-highlights,
.legal-text, .legal-list li, .legal-feature-card p, .footer-desc, .problem-pain-text,
.solution-text, .cap-block-text, .cap-utilize-text, .pillar-desc, .faq-a-desc, .mission-text,
.footer-safety-pill-text, .consent-text, .legal-highlight-box {
  color: var(--text-secondary) !important;
}
.hero-subtitle strong, .step-text strong, .legal-text strong, .legal-list strong,
.legal-highlight-box strong, .consent-text strong { color: var(--text-main) !important; }
.step-text em { color: var(--text-main); font-style: normal; font-weight: 500; }

/* Small labels: the single accent, or neutral */
.section-eyebrow, .hero-pill-badge, .directory-badge, .site-nav-badge, .legal-hero-badge,
.footer-brand-title span.badge, .cap-tag, .route-seo-region {
  color: var(--accent-text) !important;
}
.hero-pill-badge, .directory-badge, .site-nav-badge, .legal-hero-badge, .footer-brand-title span.badge, .cap-tag {
  background: #eff6ff !important; border-color: #dbeafe !important; box-shadow: none !important;
}
.problem-target-user, .problem-pain-label, .solution-label, .cap-block-label, .cap-utilize-label,
.mission-badge, .pillar-title, .footer-safety-pill-title, .legal-feature-card h4, .footer-heading,
.route-transit-badge {
  color: var(--text-main) !important;
}
.route-transit-badge { background: #f1f5f9 !important; border-color: #e2e8f0 !important; }
.footer-heading { letter-spacing: 0.06em; }

/* Links and hovers use the one blue */
.site-nav-link:hover, .footer-link:hover, .legal-back-btn:hover { color: var(--accent-text) !important; }
.footer-link { color: var(--text-secondary); }

/* Neutral callout boxes instead of orange/green/red tints */
.legal-highlight-box, .legal-highlight-box.amber, .legal-highlight-box.green {
  background: #f8fafc !important; border-left-color: #1d4ed8 !important;
}
.footer-safety-pill { background: #f8fafc !important; border-color: #e2e8f0 !important; }
.problem-icon-wrap, .cap-icon, .metric-icon-box { color: var(--accent-text) !important; }

.legal-page-body a:not([class]) { color: var(--accent-text); text-underline-offset: 2px; }
