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

:root {
  --primary-black: #111111;
  --primary-yellow: #F8B133;
  --primary-red: #EF3340;
  --white: #FFFFFF;
  --bg: #F7F8FA;
  --border: #E5E7EB;
  --success: #16A34A;
  --warning: #F59E0B;
  --danger: #DC2626;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.06);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.18);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  /* Mapbox-style tile URLs */
  --map-light: https://tiles.stadiamaps.com/tiles/alidade_smooth/{z}/{x}/{y}{r}.png;
  --map-dark: https://tiles.stadiamaps.com/tiles/alidade_smooth_dark/{z}/{x}/{y}{r}.png;
  --map-voyager: https://{s}.basemaps.cartocdn.com/rastertiles/voyager/{z}/{x}/{y}{r}.png;
  --map-positron: https://{s}.basemaps.cartocdn.com/light_all/{z}/{x}/{y}{r}.png;
  --map-dark-matter: https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png;
}

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

html, body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #1a1a1a;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============================================
   REALISTIC PHONE FRAME - iPhone 15 Pro Style
   ============================================ */
.phone-frame {
  width: 100%;
  max-width: 393px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--white);
  position: relative;
  overflow: visible;
}

/* Desktop: phone frame is a contained scrollable device */
@media (min-width: 768px) {
  body {
    background: #0a0a0a;
    background-image:
      radial-gradient(ellipse at 30% 20%, rgba(248,177,51,0.06) 0%, transparent 50%),
      radial-gradient(ellipse at 70% 80%, rgba(239,51,64,0.04) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    overflow: hidden;
  }

  .phone-frame {
    height: 852px;
    min-height: auto;
    border-radius: 55px;
    position: relative;
    box-shadow:
      0 0 0 2px #2a2a2a,
      0 0 0 4px #1a1a1a,
      inset 0 0 0 1px rgba(255,255,255,0.05),
      0 40px 80px rgba(0,0,0,0.5),
      0 20px 40px rgba(0,0,0,0.3),
      0 0 120px rgba(0,0,0,0.2);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .phone-frame::-webkit-scrollbar { display: none; }

  /* Dynamic Island */
  .phone-frame::before {
    content: '';
    position: sticky;
    top: 11px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 37px;
    background: #000;
    border-radius: 20px;
    z-index: 1000;
    display: block;
    margin: 0 auto;
    pointer-events: none;
  }

  /* Camera dot inside Dynamic Island */
  .phone-frame::after {
    content: '';
    position: fixed;
    top: 22px;
    left: calc(50% + 22px);
    width: 12px;
    height: 12px;
    background: #1a1a2e;
    border-radius: 50%;
    z-index: 1001;
    border: 1.5px solid #2a2a3a;
  }

  /* Side buttons */
  .phone-frame .phone-btn-left-1,
  .phone-frame .phone-btn-left-2,
  .phone-frame .phone-btn-left-3,
  .phone-frame .phone-btn-right {
    display: block;
  }
}

/* Mobile - no frame chrome */
@media (max-width: 767px) {
  .phone-frame {
    border-radius: 0;
    min-height: 100vh;
  }
  .phone-frame .phone-btn-left-1,
  .phone-frame .phone-btn-left-2,
  .phone-frame .phone-btn-left-3,
  .phone-frame .phone-btn-right {
    display: none;
  }
}

/* Fixed-height pages - all content fits in one screen, no scroll */
.phone-frame.frame-fixed {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}
@media (min-width: 768px) {
  .phone-frame.frame-fixed { height: 852px; }
}

/* Scrollable pages - content scrolls within the frame */
.phone-frame.frame-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.phone-frame.frame-scroll::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .phone-frame.frame-scroll { height: 852px; }
}

/* Phone side buttons (visible on desktop) */
.phone-btn-left-1,
.phone-btn-left-2,
.phone-btn-left-3,
.phone-btn-right {
  display: none;
}

@media (min-width: 768px) {
  .phone-btn-left-1 {
    position: absolute;
    left: -3px;
    top: 118px;
    width: 3px;
    height: 32px;
    background: #2a2a2a;
    border-radius: 3px 0 0 3px;
    z-index: 1001;
  }
  .phone-btn-left-2 {
    position: absolute;
    left: -3px;
    top: 170px;
    width: 3px;
    height: 58px;
    background: #2a2a2a;
    border-radius: 3px 0 0 3px;
    z-index: 1001;
  }
  .phone-btn-left-3 {
    position: absolute;
    left: -3px;
    top: 236px;
    width: 3px;
    height: 58px;
    background: #2a2a2a;
    border-radius: 3px 0 0 3px;
    z-index: 1001;
  }
  .phone-btn-right {
    position: absolute;
    right: -3px;
    top: 190px;
    width: 3px;
    height: 76px;
    background: #2a2a2a;
    border-radius: 0 3px 3px 0;
    z-index: 1001;
  }
}

/* Status bar inside phone */
.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px 8px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  z-index: 999;
}

@media (min-width: 768px) {
  .status-bar {
    padding-top: 54px;
  }
}

.status-bar .time { font-weight: 700; letter-spacing: 0.5px; }
.status-bar .icons { display: flex; gap: 5px; align-items: center; }
.status-bar .icons .material-symbols-rounded { font-size: 16px; }

/* ============================================
   SMOOTH PAGE TRANSITIONS
   ============================================ */
.page-transition-enter {
  animation: pageSlideIn 0.4s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.page-transition-exit {
  animation: pageSlideOut 0.3s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes pageSlideIn {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pageSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-40px);
    opacity: 0;
  }
}

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

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

@keyframes pageSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes pageSlideDown {
  from { transform: translateY(0); }
  to { transform: translateY(100%); }
}

/* Smooth link transitions */
a, button {
  transition: all 0.2s ease;
}

/* ============================================
   MAPBOX-STYLE MAP TILES
   ============================================ */
.leaflet-tile-pane {
  filter: saturate(1.1) contrast(1.02);
}

/* Hide default Leaflet controls */
.leaflet-control-zoom { display: none !important; }
.leaflet-control-attribution { display: none !important; }

/* Beautiful map markers */
.pickup-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-black);
  border: 4px solid var(--primary-yellow);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 4px rgba(248,177,51,0.15);
  animation: markerPulse 2s infinite;
}

.destination-marker {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary-red);
  border: 4px solid var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 4px rgba(239,51,64,0.15);
}

@keyframes markerPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 4px rgba(248,177,51,0.15); }
  50% { box-shadow: 0 2px 12px rgba(0,0,0,0.3), 0 0 0 8px rgba(248,177,51,0.08); }
}

.driver-marker {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
  border: 3px solid var(--white);
}

.searching-ripple {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary-yellow);
  animation: searchingPulse 1.5s infinite;
}

@keyframes searchingPulse { 0% { transform: scale(0.8); opacity: 0.6; } 100% { transform: scale(3); opacity: 0; } }

/* ============================================
   COMPONENTS
   ============================================ */

.btn-primary {
  background: var(--primary-black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 32px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-yellow {
  background: var(--primary-yellow);
  color: var(--primary-black);
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 32px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-yellow:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-yellow:active { transform: translateY(0) scale(0.98); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 14px 28px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-outline:hover { border-color: var(--primary-black); }

.btn-red {
  background: var(--primary-red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  padding: 16px 32px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.input-field {
  width: 100%;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--white);
  transition: all 0.25s ease;
  outline: none;
}
.input-field:focus { border-color: var(--primary-black); box-shadow: 0 0 0 3px rgba(17,17,17,0.06); }
.input-field::placeholder { color: #9CA3AF; }

.input-group { position: relative; }
.input-group .input-field { padding-left: 48px; }
.input-group .input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.card {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  padding: 20px;
  transition: all 0.2s ease;
}
.card:hover { box-shadow: var(--shadow-lg); }

.card-flat {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 20px;
}

/* Bottom Sheet */
.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 393px;
  background: var(--white);
  border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.12);
  z-index: 100;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
}
.bottom-sheet.open { transform: translateX(-50%) translateY(0); }
.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #D1D5DB;
  border-radius: 2px;
  margin: 12px auto 8px;
}

/* Bottom Navigation */
.bottom-nav {
  position: sticky;
  bottom: 0;
  width: 100%;
  max-width: 393px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 8px 0;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  z-index: 50;
  flex-shrink: 0;
}

/* Desktop: nav stays sticky inside scrolling phone frame */
@media (min-width: 768px) {
  .bottom-nav {
    max-width: none;
    border-radius: 0;
  }
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  border: none;
  background: none;
}
.bottom-nav-item.active { color: var(--primary-black); }
.bottom-nav-item .material-symbols-rounded { font-size: 24px; }

/* Avatar */
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.avatar-sm { width: 36px; height: 36px; }
.avatar-lg { width: 64px; height: 64px; }
.avatar-xl { width: 80px; height: 80px; }

/* Badge */
.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; }
.badge-yellow { background: #FEF3C7; color: #92400E; }
.badge-green { background: #D1FAE5; color: #065F46; }
.badge-red { background: #FEE2E2; color: #991B1B; }
.badge-blue { background: #DBEAFE; color: #1E40AF; }

.divider { height: 1px; background: var(--border); margin: 16px 0; }

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #F3F4F6 25%, #E5E7EB 50%, #F3F4F6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } }
@keyframes ripple { 0% { transform: scale(0.8); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bounceIn { 0% { transform: scale(0.3); opacity: 0; } 50% { transform: scale(1.05); } 70% { transform: scale(0.9); } 100% { transform: scale(1); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInLeft { from { transform: translateX(-100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes mapMarkerBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes carMove { 0% { transform: translate(0, 0) rotate(var(--car-rotation, 0deg)); } 25% { transform: translate(5px, -3px) rotate(var(--car-rotation, 0deg)); } 50% { transform: translate(0, -6px) rotate(var(--car-rotation, 0deg)); } 75% { transform: translate(-5px, -3px) rotate(var(--car-rotation, 0deg)); } 100% { transform: translate(0, 0) rotate(var(--car-rotation, 0deg)); } }

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-slide-up { animation: slideUp 0.5s ease forwards; }
.animate-slide-down { animation: slideDown 0.4s ease forwards; }
.animate-pulse { animation: pulse 2s infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-bounce-in { animation: bounceIn 0.6s ease forwards; }
.animate-spin { animation: spin 1s linear infinite; }

.page { display: none; min-height: 100vh; background: var(--white); }
.page.active { display: block; animation: fadeIn 0.3s ease; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: var(--radius-full); font-size: 13px; font-weight: 500; background: var(--bg); color: var(--text-primary); }

.map-container { width: 100%; height: 100%; position: relative; }
#map { width: 100%; height: 100%; z-index: 1; }

.toggle-switch {
  width: 52px;
  height: 30px;
  border-radius: 15px;
  background: #D1D5DB;
  position: relative;
  cursor: pointer;
  transition: background 0.3s;
}
.toggle-switch.active { background: var(--success); }
.toggle-switch::after {
  content: '';
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  position: absolute;
  top: 2px;
  left: 2px;
  transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-switch.active::after { transform: translateX(22px); }

.star-rating { display: flex; gap: 4px; }
.star { color: #D1D5DB; font-size: 24px; cursor: pointer; transition: color 0.2s, transform 0.2s; }
.star.filled { color: var(--primary-yellow); }
.star:hover { transform: scale(1.15); }

.progress-bar { width: 100%; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--primary-black); border-radius: 2px; transition: width 0.5s ease; }

.page-content { padding-bottom: 100px; }

.glass-effect {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.list-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--bg); margin: 0 -20px; padding: 14px 20px; border-radius: var(--radius-md); }

.fab {
  position: fixed;
  bottom: 90px;
  right: calc(50% - 176px);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-black);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
  transition: all 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}
.fab:hover { transform: scale(1.05); box-shadow: var(--shadow-2xl); }

@media (max-width: 767px) { .fab { right: 20px; } }

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
  text-align: center;
}
.empty-state .material-symbols-rounded { font-size: 64px; color: #D1D5DB; margin-bottom: 16px; }
.empty-state h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.ride-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.ride-option:hover { border-color: var(--primary-black); }
.ride-option.selected { border-color: var(--primary-black); background: #F9FAFB; }

.payment-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 10px;
}
.payment-option.selected { border-color: var(--primary-black); background: #F9FAFB; }

.tab-bar {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-full);
  padding: 4px;
  gap: 4px;
}
.tab-item {
  flex: 1;
  padding: 10px;
  text-align: center;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-secondary);
  border: none;
  background: none;
}
.tab-item.active {
  background: var(--white);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.onboarding-slide {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 32px;
  text-align: center;
}

.OTP-input {
  width: 52px;
  height: 60px;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Manrope', sans-serif;
  outline: none;
  transition: all 0.25s ease;
}
.OTP-input:focus { border-color: var(--primary-black); box-shadow: 0 0 0 3px rgba(17,17,17,0.06); }

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item .material-symbols-rounded { color: var(--text-secondary); margin-top: 2px; }

.trip-step {
  display: flex;
  gap: 14px;
  position: relative;
}
.trip-step::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: -14px;
  width: 2px;
  background: var(--border);
}
.trip-step:last-child::before { display: none; }
.trip-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trip-dot.pickup { background: var(--primary-black); color: var(--white); }
.trip-dot.destination { background: var(--primary-red); color: var(--white); }

.ride-type-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  min-width: 80px;
}
.ride-type-pill.selected { border-color: var(--primary-black); background: #F9FAFB; }
.ride-type-pill img { height: 40px; object-fit: contain; }
.ride-type-pill span { font-size: 12px; font-weight: 600; }

.slide-in { animation: slideInRight 0.3s ease; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-content {
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: 32px;
  max-width: 360px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-overlay.open .modal-content { transform: scale(1); }

.nairobi-gradient {
  background: linear-gradient(135deg, var(--primary-black) 0%, #1a1a2e 100%);
}

.trip-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s;
  cursor: pointer;
}
.trip-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

/* Cancel button style */
.cancel-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border: 1.5px solid var(--primary-red);
  border-radius: var(--radius-xl);
  background: transparent;
  color: var(--primary-red);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.cancel-btn:hover {
  background: #FEF2F2;
}

/* Map route polyline styling */
.leaflet-overlay-pane path {
  stroke-linecap: round;
  stroke-linejoin: round;
}
