:root { --blue:#1747E6; --ink:#0E1525; --muted:#5B6478; --line:#E3E7EE; --bg:#F3F5F9; --green:#0F9F6E; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: var(--ink); background: var(--bg); }
#map { position: fixed; inset: 0; z-index: 0; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.top { position: fixed; top: calc(env(safe-area-inset-top) + 14px); left: 16px; right: 16px; z-index: 500; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.brand { pointer-events: auto; background: #fff; padding: 10px 16px; border-radius: 16px; font-weight: 800; font-size: 18px; box-shadow: 0 6px 20px rgba(14,21,37,.14); }
.brand span { color: var(--blue); }
.round { pointer-events: auto; width: 46px; height: 46px; border-radius: 16px; border: 0; background: #fff; box-shadow: 0 6px 20px rgba(14,21,37,.14); display: grid; place-items: center; cursor: pointer; color: var(--ink); }

.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 500; background: #fff; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 40px rgba(14,21,37,.12); padding: 10px 16px calc(env(safe-area-inset-bottom) + 16px); max-height: 72vh; overflow: auto; max-width: 560px; margin: 0 auto; }
.grab { width: 40px; height: 5px; border-radius: 3px; background: #D7DCE5; margin: 0 auto 12px; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--bg); padding: 4px; border-radius: 14px; margin-bottom: 10px; }
.mode { height: 40px; border: 0; border-radius: 11px; background: transparent; font-weight: 800; font-size: 14px; color: var(--muted); cursor: pointer; }
.mode[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(14,21,37,.10); }
.route { position: relative; background: var(--bg); border-radius: 18px; padding: 4px 14px; }
.field { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.field + .field { border-top: 1px solid var(--line); }
.col { display: flex; flex-direction: column; min-width: 0; }
.grow { flex: 1; }
.col label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.value { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col input { border: 0; background: transparent; outline: none; font-size: 15px; font-weight: 700; padding: 2px 0; width: 100%; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.pick { background: var(--green); }
.dot.drop { background: var(--ink); border-radius: 2px; }
.results { list-style: none; margin: 0 0 8px; padding: 0; background: #fff; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; }
.results li { padding: 11px 12px; font-size: 13px; font-weight: 600; cursor: pointer; border-top: 1px solid var(--line); }
.results li:first-child { border-top: 0; }
.results li:hover, .results li:focus { background: #F5F8FF; outline: none; }
.results small { display: block; color: var(--muted); font-weight: 500; }
.hint { font-size: 12px; color: var(--muted); font-weight: 600; margin: 10px 4px; }

.trip { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); margin: 4px 4px 10px; }
.rides { display: flex; flex-direction: column; gap: 8px; }
.ride { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; text-align: left; width: 100%; }
.ride[aria-pressed="true"] { border-color: var(--blue); background: #F5F8FF; }
.ride .name { flex: 1; display: flex; flex-direction: column; }
.ride .name b { font-size: 15px; }
.ride .name span { font-size: 12px; color: var(--muted); font-weight: 600; }
.ride .price { font-size: 16px; font-weight: 800; }
.note-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 12px 4px 6px; }
.note { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--line); padding: 0 12px; font-size: 14px; font-weight: 600; }
.book { margin-top: 12px; width: 100%; height: 56px; border: 0; border-radius: 18px; background: var(--blue); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; box-shadow: 0 10px 24px rgba(23,71,230,.3); }

.toast { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 900; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 13px; font-weight: 700; max-width: 90vw; }
.pin { width: 22px; height: 22px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.3); }
.pin.pick { background: var(--green); }
.pin.drop { background: var(--ink); border-radius: 6px; }
.leaflet-control-attribution { font-size: 10px; }
