@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;600;700;900&display=swap');

:root {
  color-scheme: dark;
  --bg: #141124;
  --card: #211c37;
  --panel: #19162d;
  --text: #fcfaff;
  --muted: #aaa4bb;
  --line: rgba(255,255,255,.1);
  --coral: #ff5d60;
  --yellow: #ffd06d;
  --green: #85e8ac;
  font-family: 'DM Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background:
    radial-gradient(circle at 5% 5%, rgba(255,93,96,.14), transparent 30rem),
    radial-gradient(circle at 94% 95%, rgba(104,83,190,.22), transparent 34rem),
    var(--bg);
  color: var(--text);
}
button, input { font: inherit; }
button { min-height: 44px; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: wait; opacity: .55; }
.shell {
  min-height: 100vh;
  max-width: 1500px;
  margin: auto;
  padding:
    max(16px, env(safe-area-inset-top))
    max(clamp(16px,3vw,34px), env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    max(clamp(16px,3vw,34px), env(safe-area-inset-left));
}
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 44px; height: 44px; place-items: center; rotate: 3deg; border-radius: 15px; background: var(--coral); box-shadow: 0 9px 24px rgba(255,93,96,.3); }
.brand-mark svg { width: 22px; fill: currentColor; }
.brand strong { display: block; font-size: 24px; font-weight: 900; letter-spacing: -.07em; line-height: 1; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.service { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 14px; }
.service i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 13px var(--green); }
.app-grid { display: grid; min-height: calc(100vh - 96px); grid-template-columns: minmax(340px,430px) 1fr; gap: 16px; }
.booking-card, .map-panel { border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: 0 28px 60px rgba(0,0,0,.2); }
.booking-card { padding: clamp(20px,2.4vw,28px); background: var(--card); overflow: visible; z-index: 500; }
.intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 24px; }
.eyebrow { margin: 0 0 7px; color: var(--coral); font-size: 14px; font-weight: 900; }
h1 { margin: 0; font-size: clamp(34px,4vw,48px); font-weight: 900; line-height: .96; letter-spacing: -.065em; }
.fare-stamp { display: grid; width: 68px; height: 68px; flex: 0 0 68px; place-content: center; rotate: 7deg; border: 2px solid var(--yellow); border-radius: 50%; color: var(--yellow); font-size: 18px; font-weight: 900; line-height: .9; text-align: center; box-shadow: inset 0 0 0 4px var(--card), inset 0 0 0 5px rgba(255,208,109,.35); }
.fare-stamp span { display: block; font-size: 10px; letter-spacing: .04em; }
.journey-fields { position: relative; display: grid; gap: 10px; }
.journey-fields::before { position: absolute; z-index: -1; top: 38px; bottom: 38px; left: 30px; width: 1px; background: linear-gradient(var(--coral),var(--yellow)); content: ''; }
.journey-row { display: flex; min-height: 70px; align-items: center; gap: 12px; padding: 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 16px; background: rgba(255,255,255,.035); }
.destination-row { align-items: flex-start; }
.pin { display: grid; z-index: 1; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 12px; color: #fff; font-weight: 900; box-shadow: 0 0 0 5px var(--card); }
.pickup-pin { background: var(--coral); }
.destination-pin { margin-top: 2px; background: var(--yellow); color: #1d1932; }
.field-copy { min-width: 0; flex: 1; }
.field-copy strong { display: block; overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.label { display: block; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.small-button, .icon-button { border: 0; color: #fff; font-weight: 800; }
.small-button { padding: 10px 12px; border-radius: 12px; background: #35304e; }
.destination-field { min-width: 0; }
.search-box { display: flex; gap: 7px; margin-top: 5px; }
input { width: 100%; height: 44px; min-width: 0; padding: 0 12px; border: 1px solid rgba(255,255,255,.11); border-radius: 12px; outline: none; background: rgba(0,0,0,.16); color: #fff; font-size: 16px; }
input:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(255,93,96,.15); }
input::placeholder { color: #77718a; }
.icon-button { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; border-radius: 12px; background: var(--coral); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.results { position: absolute; z-index: 1000; right: 0; left: 0; margin-top: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #2a2543; box-shadow: 0 18px 42px rgba(0,0,0,.35); }
.result { display: block; width: 100%; padding: 11px 13px; border: 0; border-bottom: 1px solid rgba(255,255,255,.07); background: none; color: #fff; font-size: 14px; line-height: 1.3; text-align: left; }
.result:hover, .result:focus { background: rgba(255,255,255,.08); outline: none; }
.status { min-height: 21px; margin: 14px 2px; color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.stat { display: grid; min-height: 88px; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.08); border-radius: 15px; background: rgba(255,255,255,.04); line-height: 1.08; }
.stat > span { margin-bottom: 2px; color: var(--muted); }
.stat strong { font-size: 18px; }
.stat small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.stat.price { border-color: rgba(255,208,109,.3); background: rgba(255,208,109,.09); }
.stat.price > span, .stat.price strong { color: var(--yellow); }
.rider-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 13px; }
.rider-fields input { margin-top: 5px; }
.primary-button { display: flex; width: 100%; height: 55px; align-items: center; gap: 9px; margin-top: 13px; padding: 0 18px; border: 0; border-radius: 16px; background: var(--coral); color: #fff; font-size: 16px; font-weight: 900; box-shadow: 0 12px 28px rgba(255,93,96,.25); }
.primary-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.primary-button b { margin-left: auto; font-size: 20px; }
.fine-print { margin: 9px 8px 0; color: var(--muted); font-size: 11px; line-height: 1.45; text-align: center; }
.empty-tip { display: grid; gap: 6px; padding: 15px; border: 1px dashed rgba(255,255,255,.12); border-radius: 15px; background: rgba(0,0,0,.1); color: var(--muted); font-size: 13px; line-height: 1.4; }
.empty-tip strong { color: #fff; font-size: 14px; }
.map-panel { position: relative; min-height: 620px; background: var(--panel); }
#map { position: absolute; inset: 0; background: var(--panel); }
.leaflet-tile-pane { filter: saturate(.45) hue-rotate(205deg) brightness(.48) contrast(1.18); }
.leaflet-control-zoom a { border-color: var(--line)!important; background: #211c37!important; color: #fff!important; }
.leaflet-control-attribution { display: none; }
.map-callout { position: absolute; z-index: 450; top: 50%; left: 50%; display: grid; min-width: 260px; translate: -50% -50%; place-items: center; padding: 24px 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(23,20,41,.9); box-shadow: 0 24px 55px rgba(0,0,0,.32); text-align: center; backdrop-filter: blur(14px); }
.brand-mark.large { width: 48px; height: 48px; margin-bottom: 11px; }
.map-callout strong { font-size: 22px; font-weight: 900; letter-spacing: -.03em; }
.map-callout small { margin-top: 4px; color: var(--muted); }
.map-credit { position: absolute; z-index: 450; bottom: 13px; left: 13px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; background: rgba(23,20,41,.86); color: rgba(255,255,255,.6); font-size: 10px; backdrop-filter: blur(8px); }
.cluba-marker { display: grid!important; width: 32px!important; height: 32px!important; place-items: center; border: 7px solid #1d1932; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.pickup-marker { background: var(--green); }
.destination-marker { background: var(--yellow); }
.leaflet-interactive { stroke-dasharray: 12 7; animation: route-dash 1.1s linear infinite; }
@keyframes route-dash { to { stroke-dashoffset: -38; } }

@media (max-width: 900px) {
  .app-grid { grid-template-columns: 1fr; }
  .map-panel { order: -1; min-height: 40vh; }
  .booking-card { margin-top: -44px; border-radius: 28px 28px 0 0; }
}
@media (max-width: 520px) {
  .shell {
    padding:
      max(12px, env(safe-area-inset-top))
      max(10px, env(safe-area-inset-right))
      max(16px, env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-left));
  }
  .service { display: none; }
  .booking-card { padding: 18px 15px; }
  h1 { font-size: 34px; }
  .fare-stamp { width: 60px; height: 60px; flex-basis: 60px; font-size: 16px; }
  .journey-row { gap: 8px; padding: 9px; }
  .rider-fields { grid-template-columns: 1fr; }
  .map-panel { min-height: 45vh; }
}
@media (prefers-reduced-motion: reduce) { .leaflet-interactive { animation: none; } }
