/* RideIntel Modern Glassmorphic Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --bg-dark: #0b1120;
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: #f8fafc;
  overflow-x: hidden;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Glassmorphism utility */
.glass-panel {
  background: rgba(30, 41, 59, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(51, 65, 85, 0.7);
  border-radius: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Vehicle card selection */
.vehicle-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #334155;
}

.vehicle-card:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.08);
}

.vehicle-card.active {
  border-color: #38bdf8;
  background: rgba(2, 132, 199, 0.2);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.25);
}

/* Map container */
#map {
  height: 480px;
  width: 100%;
  border-radius: 12px;
  z-index: 10;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Animations */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

.pulse-badge {
  animation: pulseGlow 2.5s infinite ease-in-out;
}

/* Uber / Rapido Ride Search Box Styling */
.ride-input-box {
  position: relative;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ride-input-box:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
  background: rgba(15, 23, 42, 0.98);
}

.ride-input-box.pickup:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.ride-input-box.dest:focus-within {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

/* Connected route connector line */
.route-connector-line {
  position: absolute;
  left: 21px;
  top: 40px;
  bottom: 40px;
  width: 2px;
  background: dashed repeating-linear-gradient(to bottom, #64748b 0, #64748b 4px, transparent 4px, transparent 8px);
  z-index: 1;
}

/* Autocomplete suggestions dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #0f172a;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 12px;
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.8);
  max-height: 260px;
  overflow-y: auto;
  z-index: 100;
}

.autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid rgba(51, 65, 85, 0.4);
  transition: background 0.15s ease;
}

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

.autocomplete-item:hover, .autocomplete-item.active {
  background: rgba(56, 189, 248, 0.15);
}

/* Quick Landmark Chips */
.quick-chip {
  cursor: pointer;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(71, 85, 105, 0.6);
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #cbd5e1;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.quick-chip:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: #38bdf8;
  color: #38bdf8;
  transform: translateY(-1px);
}

/* GPS Button */
.gps-btn {
  transition: all 0.2s ease;
}

.gps-btn:hover {
  transform: scale(1.08);
}

.gps-btn.loading {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Custom Leaflet Map Pins (Uber/Rapido Style) */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.6);
  cursor: grab;
}

.custom-pin:active {
  cursor: grabbing;
}

.pickup-pin {
  width: 32px;
  height: 32px;
  background: #10b981;
  border: 3px solid #ffffff;
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.8);
}

.dest-pin {
  width: 32px;
  height: 32px;
  background: #ef4444;
  border: 3px solid #ffffff;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.8);
}

/* Sleek Dark Mode Map Filter (100% watermark-free, crisp street network) */
.dark-map-tiles .leaflet-tile {
  filter: brightness(0.65) invert(1) contrast(2.5) hue-rotate(200deg) saturate(0.35) brightness(0.8);
}
