:root{--navy:#14163a;--gold:#f5c518;--green:#35e07a}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
[hidden]{display:none!important}
html,body{height:100%;overflow:hidden;background:#0b0d24;color:#111;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
button{font:inherit;border:0;cursor:pointer}
#map{position:fixed;inset:0}

#top{position:fixed;z-index:5;left:12px;right:12px;top:calc(env(safe-area-inset-top) + 10px)}
#sform{display:flex;background:#fff;border-radius:16px;box-shadow:0 4px 18px #0004;overflow:hidden}
#q{flex:1;min-width:0;border:0;outline:0;padding:14px 16px;font-size:16px}
#sform button{background:var(--navy);color:#fff;padding:0 18px;font-size:18px}
#results{list-style:none;margin-top:8px;background:#fff;border-radius:16px;box-shadow:0 4px 18px #0004;max-height:50vh;overflow:auto}
#results li{padding:12px 16px;border-bottom:1px solid #eee;font-size:14px;line-height:1.3}
#results li:last-child{border:0}
#results li:active{background:#eef}

#banner{position:fixed;z-index:6;left:12px;right:12px;top:calc(env(safe-area-inset-top) + 10px);background:var(--navy);color:#fff;border-radius:22px;padding:14px 16px;display:flex;gap:14px;align-items:center;box-shadow:0 6px 22px #0006}
#arrow{font-size:46px;line-height:1;color:var(--gold);width:58px;text-align:center}
#bdist{font-size:30px;font-weight:800}
#bname{font-size:15px;opacity:.85;margin-top:2px}

#side{position:fixed;z-index:5;right:12px;top:calc(env(safe-area-inset-top) + 76px);display:flex;flex-direction:column;align-items:flex-end;gap:10px}
body.nav #side{top:calc(env(safe-area-inset-top) + 112px)}
.sbtn{width:46px;height:46px;border-radius:50%;background:#fff;box-shadow:0 3px 12px #0004;font-size:20px}
#pill{background:var(--gold);color:#241c00;font-weight:700;font-size:12px;padding:7px 12px;border-radius:999px;box-shadow:0 3px 12px #0004}

#speed{position:fixed;z-index:5;left:12px;bottom:calc(env(safe-area-inset-bottom) + 104px);display:flex;gap:8px;align-items:flex-end}
#limit{width:56px;height:56px;border-radius:50%;background:#fff;border:6px solid #e53935;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:20px;box-shadow:0 3px 12px #0004}
#spd{background:var(--navy);color:#fff;border-radius:16px;padding:8px 12px;text-align:center;min-width:68px;box-shadow:0 3px 12px #0004}
#spd b{display:block;font-size:26px;line-height:1.1}
#spd.over{background:#c62828}
small{font-size:11px;opacity:.8}

#panel,#bar{position:fixed;z-index:6;left:0;right:0;bottom:0;background:#fff;border-radius:24px 24px 0 0;padding:18px 18px calc(env(safe-area-inset-bottom) + 18px);box-shadow:0 -6px 24px #0004}
#pname{font-weight:700;font-size:17px;line-height:1.25}
#pinfo{margin:6px 0 14px;color:#444}
.row{display:flex;gap:10px}
.btn{padding:14px 18px;border-radius:14px;font-weight:700;font-size:16px}
.pri{background:var(--green);color:#06210f;flex:1}
.sec{background:#eceef8;color:var(--navy)}
#bar{display:flex;align-items:center;justify-content:space-between}
#eta{font-size:26px;margin-right:10px}
.stop{background:#e53935;color:#fff}

#modal{position:fixed;inset:0;z-index:20;background:#000a;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:#fff;width:100%;max-width:520px;border-radius:24px 24px 0 0;padding:22px 20px calc(env(safe-area-inset-bottom) + 22px)}
.sheet h2{font-size:22px;margin-bottom:6px}
.sheet p{color:#444;margin-bottom:14px;line-height:1.4}
.plan{display:flex;justify-content:space-between;align-items:center;width:100%;padding:16px;margin-bottom:10px;border-radius:14px;background:var(--navy);color:#fff;font-size:16px}
.plan em{font-style:normal;background:var(--gold);color:#241c00;border-radius:8px;padding:2px 7px;font-size:12px;margin-left:6px}
.lang{display:block;width:100%;text-align:left;padding:14px;margin-bottom:8px;border-radius:12px;background:#eceef8;font-size:16px}
.lang.on{background:var(--navy);color:#fff}
#toast{position:fixed;z-index:30;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom) + 160px);background:#000d;color:#fff;padding:10px 16px;border-radius:12px;font-size:14px;max-width:86vw;text-align:center}

.dot{width:18px;height:18px;border-radius:50%;background:#2979ff;border:3px solid #fff;box-shadow:0 0 0 6px #2979ff33}
.car{width:30px;height:60px}
.car svg{width:100%;height:100%;filter:drop-shadow(0 4px 4px #0006)}
