@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/golos-text-cyrillic-ext-400-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/golos-text-cyrillic-400-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:400;src:url(../fonts/golos-text-latin-400-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/golos-text-cyrillic-ext-500-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/golos-text-cyrillic-500-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:500;src:url(../fonts/golos-text-latin-500-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/golos-text-cyrillic-ext-600-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/golos-text-cyrillic-600-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:600;src:url(../fonts/golos-text-latin-600-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/golos-text-cyrillic-ext-700-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/golos-text-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Golos Text";font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/golos-text-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Unbounded";font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/unbounded-cyrillic-ext-700-normal.woff2) format("woff2");unicode-range:U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}
@font-face{font-family:"Unbounded";font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/unbounded-cyrillic-700-normal.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";font-style:normal;font-display:swap;font-weight:700;src:url(../fonts/unbounded-latin-700-normal.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#eef1ee; --surface:#ffffff; --surface-2:#f4f6f4; --ink:#17212b; --muted:#5a6770; --faint:#8a969c;
  --line:#e1e6e3; --accent:#0f7b6c; --accent-soft:#e2f1ee; --accent-ink:#ffffff; --gold:#b97c0c; --gold-soft:#fbf1dc;
  --warn:#9a5b00; --warn-soft:#fff4e0; --shadow:0 10px 30px rgba(20,35,40,.14),0 2px 6px rgba(20,35,40,.08);
  --c-sight:#d9480f; --c-shop:#7b3fbf; --c-hospital:#d62839; --c-fun:#1c7ed6; --c-water:#0b9fae; --c-airport:#46525c; --c-embassy:#0f7b6c; --c-metro:#17212b;
  --font:"Golos Text",-apple-system,"Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Arial,sans-serif;
  --font-zh:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",sans-serif;
  --display:"Unbounded","Golos Text",sans-serif;
  --panel-w:400px;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    color-scheme:dark;
    --bg:#0e1416; --surface:#151c1f; --surface-2:#1b2427; --ink:#e7eeec; --muted:#9aa8a5; --faint:#6f7d7a;
    --line:#26312f; --accent:#39bda4; --accent-soft:#16312c; --accent-ink:#06201b; --gold:#e3aa3d; --gold-soft:#33280f;
    --warn:#f0b35a; --warn-soft:#33260f; --shadow:0 10px 30px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.3);
    --c-airport:#8c99a3; --c-metro:#e7eeec;
  }
}
:root[data-theme="dark"]{
  color-scheme:dark;
  --bg:#0e1416; --surface:#151c1f; --surface-2:#1b2427; --ink:#e7eeec; --muted:#9aa8a5; --faint:#6f7d7a;
  --line:#26312f; --accent:#39bda4; --accent-soft:#16312c; --accent-ink:#06201b; --gold:#e3aa3d; --gold-soft:#33280f;
  --warn:#f0b35a; --warn-soft:#33260f; --shadow:0 10px 30px rgba(0,0,0,.45),0 2px 6px rgba(0,0,0,.3);
  --c-airport:#8c99a3; --c-metro:#e7eeec;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0}
body{background:var(--bg);color:var(--ink);font:15px/1.45 var(--font);-webkit-font-smoothing:antialiased;overflow:hidden}
button{font:inherit;color:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.zh{font-family:var(--font-zh)}

#app{position:fixed;inset:0}
#map{position:absolute;inset:0;background:var(--bg)}

/* ---------- panel (desktop: left card) */
.panel{position:absolute;z-index:5;top:12px;left:12px;bottom:12px;width:var(--panel-w);max-width:calc(100% - 24px);
  background:var(--surface);border-radius:18px;box-shadow:var(--shadow);display:flex;flex-direction:column;overflow:hidden}
.grab{display:none}
.brand{display:flex;align-items:center;gap:12px;padding:16px 18px 10px}
.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--accent);color:var(--accent-ink);display:grid;place-items:center;flex:none}
.brand-mark svg{width:22px;height:22px}
.brand-mark svg path{fill:var(--accent-ink)}
.brand-mark svg circle{fill:var(--accent)}
.brand h1{font:700 15px/1.15 var(--display);letter-spacing:-.01em;margin:0;text-wrap:balance}
.brand p{margin:2px 0 0;font-size:12.5px;color:var(--muted)}

.cities{display:flex;gap:6px;padding:4px 16px 10px;overflow-x:auto;scrollbar-width:none}
.cities::-webkit-scrollbar{display:none}
.city{flex:none;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:7px 13px;font-weight:600;font-size:14px;white-space:nowrap}
.city[aria-pressed="true"]{background:var(--ink);color:var(--surface);border-color:var(--ink)}
.city small{font-weight:500;opacity:.6;margin-left:5px;font-size:12px}

.search{position:relative;margin:0 16px 10px}
.search svg{position:absolute;left:12px;top:50%;width:18px;height:18px;transform:translateY(-50%);fill:none;stroke:var(--faint);stroke-width:2;stroke-linecap:round}
.search input{width:100%;border:1px solid var(--line);background:var(--surface-2);border-radius:12px;padding:10px 36px 10px 38px;font:inherit;color:var(--ink);outline:none}
.search input:focus{border-color:var(--accent);background:var(--surface)}
.search input::-webkit-search-cancel-button{display:none}
.qclear{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;font-size:20px;line-height:1;color:var(--muted);width:28px;height:28px;border-radius:8px}

.chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 16px 10px}
.chip{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 10px 5px 7px;font-size:13px;font-weight:500;color:var(--muted)}
.chip .dot{width:18px;height:18px;border-radius:50%;display:grid;place-items:center;background:var(--faint)}
.chip .dot svg{width:12px;height:12px;fill:none;stroke:#fff;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.chip .n{font-variant-numeric:tabular-nums;color:var(--faint);font-size:12px}
.chip[aria-pressed="true"]{color:var(--ink);border-color:color-mix(in srgb,var(--cc) 45%,var(--line));background:color-mix(in srgb,var(--cc) 10%,var(--surface))}
.chip[aria-pressed="true"] .dot{background:var(--cc)}
.chip[aria-pressed="false"] .dot{background:var(--line)}
.chip.star{--cc:var(--gold)}
.chip.star .dot svg{fill:#fff;stroke:none}

.tabs{display:flex;gap:2px;padding:0 12px;border-bottom:1px solid var(--line)}
.tabs button{border:0;background:none;padding:10px 8px 9px;font-weight:600;font-size:13.5px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.tabs button[aria-selected="true"]{color:var(--ink);border-color:var(--accent)}

.body{flex:1;overflow-y:auto;overscroll-behavior:contain}
.view{padding:6px 0 18px}
.sect{padding:12px 18px 4px;font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--faint);display:flex;justify-content:space-between}
.item{display:flex;gap:12px;align-items:flex-start;width:100%;text-align:left;border:0;background:none;padding:9px 18px}
.item:hover{background:var(--surface-2)}
.ico{flex:none;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--cc,var(--faint));margin-top:1px}
.ico svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.item .t{min-width:0;flex:1}
.item .n{font-weight:600;font-size:14.5px;line-height:1.3;display:block}
.item .s{display:block;font-size:12.5px;color:var(--muted);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.badge-star{display:inline-flex;align-items:center;gap:3px;font-size:11px;font-weight:700;color:var(--gold);background:var(--gold-soft);border-radius:6px;padding:1px 6px;margin-left:6px;vertical-align:1px}
.more{display:block;margin:10px 18px;width:calc(100% - 36px);border:1px dashed var(--line);background:none;border-radius:10px;padding:9px;color:var(--muted);font-weight:600}
.empty{padding:26px 22px;color:var(--muted);font-size:14px}

.lineitem{display:flex;gap:12px;align-items:center;width:100%;text-align:left;border:0;background:none;padding:9px 18px}
.lineitem:hover{background:var(--surface-2)}
.lineitem .bar{flex:none;width:34px;height:22px;border-radius:6px;display:grid;place-items:center;color:#fff;font-weight:700;font-size:12px;font-variant-numeric:tabular-nums;text-shadow:0 1px 1px rgba(0,0,0,.25)}
.lineitem .n{font-weight:600;font-size:14.5px;display:block}
.lineitem .s{font-size:12.5px;color:var(--muted)}
.linechips{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.lc{display:inline-block;border-radius:5px;padding:1px 6px;color:#fff;font-size:11.5px;font-weight:700;text-shadow:0 1px 1px rgba(0,0,0,.25)}

.info{padding:8px 18px 20px}
.info h3{font-size:14px;margin:18px 0 6px}
.info h3:first-child{margin-top:8px}
.info p{margin:0 0 10px;color:var(--ink);font-size:14px;max-width:65ch;white-space:pre-line}

/* ---------- detail */
.detail{position:absolute;inset:0;background:var(--surface);z-index:3;display:flex;flex-direction:column}
.detail[hidden]{display:none}
.dhead{display:flex;align-items:center;gap:8px;padding:12px 12px 8px}
.back{border:0;background:var(--surface-2);border-radius:10px;height:36px;padding:0 12px 0 8px;display:inline-flex;align-items:center;gap:4px;font-weight:600;font-size:14px}
.back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.dscroll{overflow-y:auto;flex:1;padding:4px 20px 28px;overscroll-behavior:contain}
.dcat{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--muted);margin:4px 0 8px}
.dcat .ico{width:24px;height:24px}
.dcat .ico svg{width:13px;height:13px}
.dname{font-size:22px;line-height:1.2;margin:0;font-weight:700;letter-spacing:-.01em;text-wrap:balance}
.dzh{margin:6px 0 0;font-size:17px;font-family:var(--font-zh);color:var(--ink)}
.dpy{margin:1px 0 0;font-size:13px;color:var(--muted)}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 6px}
.btn{display:inline-flex;align-items:center;gap:8px;border:0;border-radius:12px;padding:11px 15px;font-weight:600;font-size:14.5px;background:var(--accent);color:var(--accent-ink)}
.btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.btn.ghost{background:var(--surface-2);color:var(--ink)}
.facts{margin:14px 0 0;display:grid;gap:0}
.fact{padding:12px 0;border-top:1px solid var(--line)}
.fact h4{margin:0 0 4px;font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--faint)}
.fact p{margin:0;font-size:14.5px;white-space:pre-line}
.fact.warn{background:var(--warn-soft);border-top:0;border-radius:12px;padding:11px 13px;margin:10px 0 4px}
.fact.warn h4{color:var(--warn)}
.checked{margin-top:16px;font-size:12.5px;color:var(--muted);display:flex;flex-wrap:wrap;gap:4px 10px;align-items:center}
.conf{display:inline-block;border-radius:6px;padding:1px 7px;font-weight:600;font-size:11.5px}
.conf.high{background:var(--accent-soft);color:var(--accent)}
.conf.medium{background:var(--gold-soft);color:var(--gold)}
.conf.low{background:var(--warn-soft);color:var(--warn)}
.srcs{margin-top:8px;font-size:12px;color:var(--faint);word-break:break-all}
.srcs a{color:var(--faint)}
.note{margin-top:14px;font-size:13px;color:var(--muted);background:var(--surface-2);border-radius:12px;padding:10px 12px}

/* ---------- driver */
.driver{position:fixed;inset:0;z-index:50;background:#fff;color:#111;display:grid;place-items:center;padding:24px 16px calc(24px + env(safe-area-inset-bottom,0px))}
.driver[hidden]{display:none}
.driver-inner{max-width:900px;width:100%;text-align:center}
.driver-ask{font-family:var(--font-zh);font-size:clamp(20px,5vw,30px);margin:0;color:#444}
.driver-ask-mn{margin:4px 0 26px;font-size:13px;color:#777}
.driver-name{font-family:var(--font-zh);font-size:clamp(40px,12vw,96px);line-height:1.1;font-weight:700;margin:0;word-break:break-all}
.driver-addr{font-family:var(--font-zh);font-size:clamp(20px,5.2vw,34px);line-height:1.35;margin:22px 0 0;word-break:break-all}
.driver-mn{margin:22px 0 0;font-size:15px;color:#666}
.driver-close{margin-top:34px;border:0;background:#111;color:#fff;border-radius:14px;padding:13px 30px;font-weight:600;font-size:16px}

.toast{position:absolute;z-index:20;left:50%;bottom:24px;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:10px 16px;border-radius:12px;font-size:14px;box-shadow:var(--shadow);max-width:calc(100% - 32px)}

/* map chrome */
.maplibregl-ctrl-group{border-radius:12px!important;box-shadow:var(--shadow)!important;background:var(--surface)!important}
.maplibregl-ctrl-group button+button{border-top-color:var(--line)!important}
:root[data-theme="dark"] .maplibregl-ctrl-icon{filter:invert(1)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .maplibregl-ctrl-icon{filter:invert(1)}}
.maplibregl-ctrl-attrib{font-size:11px}
.maplibregl-popup-content{background:var(--surface);color:var(--ink);border-radius:10px;padding:7px 11px;font:600 13px/1.3 var(--font);box-shadow:var(--shadow)}
.maplibregl-popup-tip{display:none}

/* ---------- mobile: bottom sheet */
@media (max-width:760px){
  .panel{top:auto;left:0;right:0;bottom:0;width:100%;max-width:none;border-radius:18px 18px 0 0;height:calc(100% - 64px - env(safe-area-inset-top,0px));
    transform:translateY(calc(100% - var(--peek)));transition:transform .28s cubic-bezier(.2,.8,.2,1);--peek:236px;padding-bottom:env(safe-area-inset-bottom,0px)}
  .panel[data-state="half"]{transform:translateY(45%)}
  .panel[data-state="full"]{transform:none}
  .grab{display:block;border:0;background:none;padding:8px 0 2px;width:100%}
  .grab span{display:block;margin:0 auto;width:40px;height:5px;border-radius:3px;background:var(--line)}
  .brand{display:none}
  .cities{padding-top:6px}
  .chips{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:none}
  .toast{bottom:auto;top:calc(12px + env(safe-area-inset-top,0px))}
  .maplibregl-ctrl-top-right{top:env(safe-area-inset-top,0px)}
}
@media (prefers-reduced-motion:reduce){.panel{transition:none}}
