/* ფონტები აპშივეა (ტესლის ბრაუზერს ქართული ფონტი არ აქვს და Google Fonts ზოგჯერ ვერ იტვირთება) — SIL OFL 1.1 */
@font-face { font-family: "Noto Sans Georgian"; src: url(fonts/noto-sans-georgian.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: block;
  unicode-range: U+0589, U+10A0-10FF, U+1C90-1CBA, U+1CBD-1CBF, U+205A, U+2D00-2D2F, U+2E31; }
@font-face { font-family: "Gza Symbols"; src: url(fonts/symbols.woff2) format("woff2"); font-display: block;
  unicode-range: U+2192, U+2194, U+2212, U+2264, U+23FA, U+2605, U+2615, U+2699, U+26A0-26A1, U+2713, U+2715, U+279C, U+2B50; }
@font-face { font-family: "Inter"; src: url(fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  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) და ღამე (body.night) */
:root {
  --glass: rgba(255, 255, 255, .86);
  --solid: #ffffff;
  --bg2: #f1f3f6;
  --bg3: #e6e9ee;
  --fg: #0f1419;
  --fg2: #5f6b7a;
  --line: rgba(15, 20, 25, .09);
  --accent: #2563eb;
  --accent2: #3b82f6;
  --accentSoft: rgba(37, 99, 235, .10);
  --ok: #109e52;
  --warn: #e98a00;
  --danger: #e5484d;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 30px rgba(16, 24, 40, .16);
  --shadowSm: 0 1px 2px rgba(16, 24, 40, .08), 0 4px 14px rgba(16, 24, 40, .12);
  --r: 22px;
  --blur: saturate(1.5) blur(18px);
  --num: "Inter", "Noto Sans Georgian", "Gza Symbols", system-ui, sans-serif;
}
body.night {
  --glass: rgba(22, 26, 32, .84);
  --solid: #171b21;
  --bg2: rgba(255, 255, 255, .07);
  --bg3: rgba(255, 255, 255, .12);
  --fg: #f1f4f7;
  --fg2: #98a3af;
  --line: rgba(255, 255, 255, .09);
  --accent: #3b82f6;
  --accent2: #60a5fa;
  --accentSoft: rgba(59, 130, 246, .16);
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #ef5350;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 12px 32px rgba(0, 0, 0, .5);
  --shadowSm: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #111418; color: var(--fg);
  font-family: "Inter", "Noto Sans Georgian", "Gza Symbols", "BPG Arial", system-ui, sans-serif; font-size: 22px;
  user-select: none; -webkit-user-select: none; touch-action: manipulation;
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1; }
#map { position: absolute; inset: 0; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
/* MapLibre რუკის შიგნით (ფანჯრები, მარკერები) Helvetica-ს აყენებს — ქართული მაშინ კვადრატებად ჩანს */
#map.maplibregl-map, .maplibregl-popup, .maplibregl-popup-content { font-family: inherit; }
input, select { font: inherit; color: var(--fg); user-select: text; -webkit-user-select: text; }

/* SVG ხატულები */
svg.ic, #sideBtns svg, .searchIc { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg .fill { fill: currentColor; stroke: none; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }

/* მინის პანელები */
.panel, #navBar, .iconBtn, .btnGroup, #speedBox, .modalBox, .maplibregl-popup-content {
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.panel { position: absolute; left: 20px; top: 20px; width: 620px; max-width: calc(100vw - 140px);
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px; z-index: 5; animation: rise .22s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.panelHead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.destName { flex: 1; font-size: 26px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lbl { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--fg2); margin: 12px 2px 8px; }
.hint { font-size: 16px; color: var(--fg2); font-weight: 400; }

/* ძებნა */
.searchRow { display: flex; gap: 10px; position: relative; align-items: center; min-width: 0; }
.searchIc { position: absolute; left: 20px; top: 50%; width: 28px; height: 28px; transform: translateY(-50%); color: var(--fg2); pointer-events: none; }
#searchInput { flex: 1; min-width: 0; width: 100%; height: 72px; border-radius: 18px; border: 2px solid transparent; background: var(--bg2);
  padding: 0 20px 0 62px; font-size: 25px; font-weight: 500; outline: none; transition: border-color .15s, background .15s; }
#searchInput::placeholder { color: var(--fg2); font-weight: 400; }
#searchInput:focus { border-color: var(--accent); background: var(--solid); }
.quickRow { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.chip { height: 56px; padding: 0 20px; border-radius: 28px; background: var(--bg2); border: 1px solid var(--line);
  font-size: 19px; font-weight: 500; white-space: nowrap; transition: background .15s, transform .1s; }
.chip.on { background: var(--accent); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(37, 99, 235, .35); }
.results { max-height: 58vh; overflow-y: auto; margin-top: 10px; -webkit-overflow-scrolling: touch; }
.res { display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 10px 12px; border-radius: 16px; transition: background .12s; }
.res + .res { margin-top: 2px; }
.res:active { background: var(--bg2); }
.res .ico { width: 52px; height: 52px; border-radius: 16px; background: var(--bg2); font-size: 26px; flex: none;
  display: flex; align-items: center; justify-content: center; }
.res .t1 { font-size: 21px; font-weight: 600; }
.res .t2 { font-size: 16px; color: var(--fg2); margin-top: 2px; }
.res .km { margin-left: auto; font-size: 16px; font-weight: 600; color: var(--fg2); flex: none; font-family: var(--num); }

/* მრგვალი ღილაკები */
.iconBtn { width: 66px; height: 66px; border-radius: 20px; background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadowSm);
  font-size: 30px; display: flex; align-items: center; justify-content: center; color: var(--fg); transition: background .15s, color .15s, transform .1s; }
.iconBtn svg { width: 28px; height: 28px; }
.iconBtn.small { width: 52px; height: 52px; border-radius: 50%; box-shadow: none; border: 0; background: var(--bg2); font-size: 20px; flex: none;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.iconBtn.small svg { width: 22px; height: 22px; }
.iconBtn.on { background: var(--accent); color: #fff; border-color: transparent; }
.iconBtn:active, .bigBtn:active, .chip:active { transform: scale(.95); }
#sideBtns { position: absolute; right: 20px; top: 20px; display: flex; flex-direction: column; gap: 12px; z-index: 6; }
.btnGroup { display: flex; flex-direction: column; border-radius: 22px; background: var(--glass); border: 1px solid var(--line);
  box-shadow: var(--shadowSm); overflow: hidden; }
.btnGroup .iconBtn { border: 0; border-radius: 0; box-shadow: none; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.btnGroup .iconBtn + .iconBtn { border-top: 1px solid var(--line); }

/* დიდი ღილაკები */
.bigBtn { height: 76px; padding: 0 26px; border-radius: 18px; background: var(--bg2); border: 1px solid var(--line);
  font-size: 23px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 10px; transition: transform .1s, filter .15s; }
.bigBtn.primary { background: linear-gradient(180deg, var(--accent2), var(--accent)); border-color: transparent; color: #fff; width: 100%; margin-top: 10px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.bigBtn.danger { background: linear-gradient(180deg, #f2665f, var(--danger)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(229, 72, 77, .3); }

/* მარშრუტის პანელი */
.stops .stop { display: flex; align-items: center; gap: 10px; font-size: 18px; padding: 6px 0; color: var(--fg2); }
.stops .stop .iconBtn.small { margin-left: auto; width: 40px; height: 40px; font-size: 16px; }
.alts { display: flex; flex-direction: column; gap: 10px; }
.alt { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-radius: 18px; border: 2px solid var(--line);
  background: var(--bg2); transition: border-color .15s, background .15s; }
.alt.sel { border-color: var(--accent); background: var(--accentSoft); }
.alt .tm { font-size: 32px; font-weight: 800; letter-spacing: -.02em; font-family: var(--num); }
.alt .ds { font-size: 18px; color: var(--fg2); font-family: var(--num); }
.alt .src { font-size: 14px; color: var(--fg2); margin-top: 4px; }
.alt .dl { margin-left: auto; font-size: 17px; font-weight: 700; padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.dl.ok { color: var(--ok); background: rgba(16, 158, 82, .12); }
.dl.warn { color: var(--warn); background: rgba(233, 138, 0, .14); }
.dl.bad { color: var(--danger); background: rgba(229, 72, 77, .13); }
#routePanel { max-height: calc(100vh - 40px); overflow-y: auto; }
#routePanel > .row.gap { margin-top: 12px; }
#startBtn { flex: 2; margin-top: 0; }

/* შემდეგი მანევრი */
#maneuverCard { position: absolute; left: 20px; top: 20px; width: 600px; max-width: calc(100vw - 140px); z-index: 5;
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); animation: rise .22s ease-out; }
.manMain { display: flex; gap: 20px; align-items: center; color: #fff; padding: 20px 24px;
  background: linear-gradient(135deg, #12855a 0%, #0b6343 100%); }
body.night .manMain { background: linear-gradient(135deg, #0f6b49 0%, #084a32 100%); }
.manIcon { width: 104px; height: 104px; flex: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .25)); }
.manIcon svg { width: 100%; height: 100%; }
.manText { min-width: 0; }
.manDist { font-family: var(--num); font-size: 56px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.manInstr { font-size: 25px; font-weight: 600; margin-top: 6px; }
.manStreet { font-size: 21px; opacity: .85; margin-top: 2px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.manNext { background: #08482f; color: rgba(255, 255, 255, .92); padding: 12px 24px; font-size: 19px; display: flex; gap: 12px; align-items: center; }
body.night .manNext { background: #06331f; }
.manNext svg { width: 30px; height: 30px; }

/* ნავიგაციის ქვედა ზოლი */
#navBar { position: absolute; left: 20px; right: 104px; bottom: 20px; z-index: 5; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 20px; display: flex; align-items: center; gap: 28px; }
.navStat .big { font-family: var(--num); font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
#navEta { color: var(--ok); }
.navStat .lbl { margin: 0; font-size: 15px; }
.navDelay { font-size: 18px; font-weight: 700; padding: 10px 14px; border-radius: 14px; background: var(--bg2); }
#alongBtn { margin-left: auto; }
#navBattBox.low .big { color: #e5484d; }
.alongChip { margin-top: 12px; width: 100%; justify-content: center; display: flex; align-items: center; gap: 8px; }
.alongChip .ic { width: 22px; height: 22px; }
#alongPanel { z-index: 6; }
.res .km .det { font-size: 14px; color: var(--accent); margin-top: 2px; text-align: right; }
.res .closed { color: #e5484d; font-weight: 600; } .res .openNow { color: var(--ok); font-weight: 600; }
.hint.pad { padding: 18px 6px; }

/* სიჩქარე */
#speedWrap { position: absolute; left: 20px; bottom: 150px; z-index: 5; display: flex; align-items: flex-end; gap: 12px; pointer-events: none; }
#speedWrap.hidden { display: none; }
#speedBox { position: relative; width: 116px; height: 116px; border-radius: 50%; flex: none; transition: background .2s, color .2s;
  background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; justify-content: center; }
#speedVal { font-family: var(--num); font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
#speedBox .lbl { margin: 2px 0 0; font-size: 14px; }
#speedBox.over { background: #e5484d; color: #fff; border-color: #e5484d; }
#speedBox.over .lbl { color: rgba(255,255,255,.85); }
/* ევროპული ლიმიტის ნიშანი */
#limitSign { width: 84px; height: 84px; border-radius: 50%; background: #fff; border: 9px solid #d7262e; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; flex: none; margin-bottom: 16px; }
#limitVal { font-family: var(--num); font-size: 34px; font-weight: 800; color: #111; letter-spacing: -.03em; }
#limitSign.hidden, #camAlert.hidden { display: none; }
/* კამერის გაფრთხილება */
#camAlert { display: flex; align-items: center; gap: 14px; padding: 10px 24px; background: #f2a900; color: #2b1d00; }
#camAlert .camIc { width: 46px; height: 46px; border-radius: 12px; background: rgba(0,0,0,.18); color: #fff; display: flex; align-items: center; justify-content: center; }
#camAlert .camIc svg { width: 30px; height: 30px; }
#camAlert > div:last-child { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.camDist { font-family: var(--num); font-size: 26px; font-weight: 800; line-height: 1.1; }
.camLbl { font-size: 17px; font-weight: 600; }
#camAlert.warn { background: #e5484d; color: #fff; animation: camPulse 1s ease-in-out infinite; }
#camAlert.warn .camIc { background: rgba(255,255,255,.22); }
@keyframes camPulse { 50% { background: #b8282d; } }
.camPin { width: 26px; height: 26px; border-radius: 8px; background: #f2a900; color: #fff; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  display: flex; align-items: center; justify-content: center; }
.camPin svg { width: 18px; height: 18px; }

#toast { position: absolute; left: 50%; bottom: 140px; transform: translateX(-50%); z-index: 20; background: rgba(17, 20, 24, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; padding: 16px 26px; border-radius: 18px;
  font-size: 20px; font-weight: 500; max-width: 80vw; text-align: center; box-shadow: var(--shadow); animation: rise .2s ease-out; }

/* პარამეტრები */
.modal { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); z-index: 30; display: flex; align-items: center; justify-content: center; }
.modalBox { width: 760px; max-width: 94vw; max-height: 92vh; overflow-y: auto; background: var(--glass); border: 1px solid var(--line);
  border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); animation: rise .2s ease-out; }
body.night .modalBox { background: var(--solid); }
.field { display: block; margin: 14px 0; font-size: 19px; font-weight: 500; }
.field input[type=text], .field select, select.sel { display: block; width: 100%; height: 62px; margin-top: 6px; border-radius: 14px;
  border: 2px solid transparent; background: var(--bg2); padding: 0 16px; font-size: 19px; outline: none; }
.field input[type=text]:focus, .field select:focus { border-color: var(--accent); }
.field.row { display: flex; align-items: center; gap: 14px; }
.field input[type=checkbox] { width: 32px; height: 32px; accent-color: var(--accent); }
.row.gap { display: flex; gap: 12px; } .row.gap .bigBtn { flex: 1; margin-top: 0; }
.credits { margin-top: 16px; font-size: 13px; color: var(--fg2); }
.legend { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; color: var(--fg2); margin-top: 14px; }
.dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-left: 6px; box-shadow: 0 0 0 2px var(--solid); }

/* მომხმარებლის მარკერი */
.me { width: 64px; height: 64px; }
.me svg { width: 100%; height: 100%; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .45)); }
.destPin { font-size: 52px; line-height: 1; transform: translateY(-20px); filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .35)); }

/* popup */
.maplibregl-popup-content { background: var(--glass); color: var(--fg); border: 1px solid var(--line); border-radius: 20px;
  padding: 18px 20px; font-size: 18px; min-width: 300px; box-shadow: var(--shadow); }
body.night .maplibregl-popup-content { background: var(--solid); }
.maplibregl-popup-tip { border-top-color: var(--solid) !important; border-bottom-color: var(--solid) !important; }
.maplibregl-popup-close-button { font-size: 30px; width: 48px; height: 48px; color: var(--fg2); border-radius: 50%; right: 4px; top: 4px; }
.maplibregl-popup-close-button:hover { background: var(--bg2); }
.pp h3 { margin: 0 44px 6px 0; font-size: 22px; font-weight: 700; }
.pp .sub { color: var(--fg2); font-size: 16px; margin-bottom: 8px; }
.pp .kw { font-family: var(--num); font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.pp .conn { font-size: 16px; margin: 3px 0; }
.pp .live { font-size: 19px; font-weight: 700; margin-top: 8px; }
.pp .btns { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pp .btns button { height: 56px; padding: 0 16px; border-radius: 14px; background: var(--bg2); border: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.pp .btns button.go { background: linear-gradient(180deg, var(--accent2), var(--accent)); border-color: transparent; color: #fff; }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* დამუხტვის დაგეგმვა */
.evPanel { margin-top: 14px; padding: 14px; border-radius: 18px; background: var(--bg2); font-size: 18px; }
.evPanel:empty { display: none; }
.evRow { display: flex; align-items: center; gap: 10px; }
.evRow span:first-child { font-weight: 600; margin-right: auto; }
.evRow .chip { height: 52px; padding: 0 16px; background: var(--solid); }
#evKm { width: 120px; height: 58px; border-radius: 14px; border: 2px solid transparent; background: var(--solid); font-size: 26px;
  text-align: center; font-weight: 800; font-family: var(--num); outline: none; }
#evKm:focus { border-color: var(--accent); }
#evKm::-webkit-outer-spin-button, #evKm::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#evKm { -moz-appearance: textfield; appearance: textfield; }
.bigBtn { white-space: nowrap; }
.evOk { margin-top: 10px; font-weight: 600; color: var(--ok); }
.evWarn { margin-top: 10px; font-weight: 700; color: var(--warn); }
.evStop { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: var(--solid); border: 1px solid var(--line); }
.evPanel .bigBtn { width: 100%; margin-top: 10px; }

/* ტელეფონი */
@media (max-width: 760px) {
  html, body { font-size: 16px; }
  .panel, #maneuverCard { left: 8px; top: 8px; width: calc(100vw - 70px); max-width: none; border-radius: 18px; }
  .panel { padding: 10px; }
  #sideBtns { right: 8px; top: 8px; gap: 6px; }
  .iconBtn { width: 46px; height: 46px; border-radius: 14px; font-size: 18px; }
  .btnGroup { border-radius: 14px; }
  .iconBtn svg { width: 21px; height: 21px; }
  .iconBtn.small { width: 42px; height: 42px; }
  .iconBtn.small svg { width: 18px; height: 18px; }
  #searchInput { height: 54px; font-size: 18px; padding: 0 12px 0 46px; border-radius: 14px; }
  .searchIc { left: 14px; width: 22px; height: 22px; }
  .chip { height: 42px; padding: 0 14px; font-size: 15px; }
  .res { min-height: 60px; gap: 10px; padding: 8px; }
  .res .ico { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
  .res .t1 { font-size: 16px; } .res .t2, .res .km { font-size: 13px; }
  .destName { font-size: 20px; }
  .lbl { font-size: 13px; }
  .bigBtn { height: 54px; font-size: 17px; padding: 0 14px; border-radius: 14px; }
  .alt { padding: 10px 12px; border-radius: 14px; gap: 10px; }
  .alt .tm { font-size: 24px; } .alt .ds, .alt .dl { font-size: 13px; } .alt .src { font-size: 12px; }
  .alt .dl { padding: 6px 8px; }
  .evPanel { font-size: 14px; padding: 10px; border-radius: 14px; }
  #evKm { width: 80px; height: 46px; font-size: 20px; }
  .evRow { flex-wrap: wrap; }
  .evRow span:first-child { flex-basis: 100%; }
  .evRow .chip { height: 42px; padding: 0 12px; flex: 1; }
  .evRow .hint { display: none; }
  .manMain { padding: 12px 14px; gap: 12px; }
  .manIcon { width: 60px; height: 60px; } .manDist { font-size: 34px; } .manInstr { font-size: 17px; margin-top: 4px; } .manStreet { font-size: 14px; }
  .manNext { padding: 8px 14px; font-size: 15px; } .manNext svg { width: 22px; height: 22px; }
  #navBar { left: 8px; right: 8px; bottom: 8px; gap: 10px 16px; padding: 10px 12px; flex-wrap: wrap; border-radius: 18px; }
  .navStat .big { font-size: 24px; } .navStat .lbl { font-size: 12px; }
  .navDelay { order: 3; flex-basis: 100%; font-size: 14px; padding: 7px 10px; border-radius: 10px; }
  #alongBtn, #overviewBtn, #stopBtn { order: 4; flex: 1 1 0; min-width: 0; height: 48px; margin-left: 0; padding: 0 8px; font-size: 15px; gap: 6px; }
  #speedWrap { left: 8px; bottom: 200px; gap: 8px; }
  #speedBox { width: 72px; height: 72px; } #speedVal { font-size: 26px; } #speedBox .lbl { font-size: 11px; }
  #limitSign { width: 56px; height: 56px; border-width: 6px; margin-bottom: 8px; } #limitVal { font-size: 22px; }
  #camAlert { padding: 7px 14px; gap: 10px; }
  #camAlert .camIc { width: 32px; height: 32px; border-radius: 9px; } #camAlert .camIc svg { width: 22px; height: 22px; }
  .camDist { font-size: 19px; } .camLbl { font-size: 13px; }
  #toast { font-size: 15px; padding: 12px 18px; bottom: 120px; }
  .maplibregl-popup-content { min-width: 0; font-size: 15px; padding: 14px 16px; }
  .pp .kw { font-size: 24px; } .pp h3 { font-size: 18px; }
  .pp .btns button { height: 44px; font-size: 14px; }
  .modalBox { padding: 14px; }
  .field { font-size: 16px; } .field input[type=text], .field select, select.sel { height: 50px; font-size: 16px; }
}

/* iPhone: ჭრილის/ზოლის უსაფრთხო ზონა აპის რეჟიმში */
@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 760px) {
    .panel, #maneuverCard { top: calc(8px + env(safe-area-inset-top)); }
    #sideBtns { top: calc(8px + env(safe-area-inset-top)); }
    #navBar { bottom: calc(8px + env(safe-area-inset-bottom)); }
  }
}

/* ტელეფონი ↔ მანქანა */
.pairBox { margin: 14px 0; padding: 16px; border-radius: 18px; background: var(--bg2); }
.pairRow { display: flex; gap: 18px; align-items: center; margin-top: 12px; }
.pairQr { width: 176px; height: 176px; flex: none; background: #fff; border-radius: 14px; padding: 6px; }
.pairQr:empty { display: none; }
.pairQr svg { width: 100%; height: 100%; display: block; }
.pairInfo { min-width: 0; }
.pairInfo .lbl { margin-top: 0; }
.pairCode { font-family: var(--num); font-size: 32px; font-weight: 800; letter-spacing: .06em; user-select: text; -webkit-user-select: text; }
@media (max-width: 760px) {
  .pairBox { padding: 12px; }
  .pairRow { gap: 12px; }
  .pairQr { width: 112px; height: 112px; }
  .pairCode { font-size: 22px; }
}
.pairBox .field input[type=text] { background: var(--solid); }
#routePanel > .row.gap { flex-wrap: wrap; }
@media (max-width: 760px) {
  #routePanel > .row.gap #startBtn { flex: 1 1 100%; }
  #routePanel > .row.gap #carBtn, #routePanel > .row.gap #shareBtn { flex: 1 1 0; min-width: 0; }
}

/* Google სატელიტის ლოგო და საავტორო წარწერა */
#gAttr { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 4;
  display: flex; align-items: center; gap: 8px; pointer-events: none; max-width: 70vw; }
#gAttr img { height: 22px; width: auto; flex: none; }
#gAttrText { font-size: 11px; color: #fff; text-shadow: 0 0 3px rgba(0,0,0,.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#gAttr.onLight #gAttrText { color: #3c4043; text-shadow: 0 0 3px #fff, 0 0 2px #fff; }

/* Tesla-ს ბრაუზერი (ნახევარი ეკრანი, ~850–1200px) და დაბალი ეკრანები: კომპაქტური განლაგება */
@media (min-width: 761px) and (max-width: 1280px), (min-width: 761px) and (max-height: 860px) {
  html, body { font-size: 19px; }
  .panel { left: 12px; top: 12px; width: 480px; max-width: calc(100vw - 84px); padding: 14px; }
  #maneuverCard { left: 12px; top: 12px; width: 470px; max-width: calc(100vw - 84px); }
  #sideBtns { right: 12px; top: 12px; gap: 6px; }
  .iconBtn { width: 46px; height: 46px; border-radius: 14px; }
  .btnGroup { border-radius: 14px; }
  .iconBtn svg { width: 20px; height: 20px; }
  .iconBtn.small { width: 40px; height: 40px; } .iconBtn.small svg { width: 18px; height: 18px; }
  #searchInput { height: 62px; font-size: 21px; padding-left: 56px; }
  .searchIc { left: 18px; width: 24px; height: 24px; }
  .chip { height: 50px; font-size: 17px; padding: 0 16px; }
  .res { min-height: 66px; } .res .t1 { font-size: 19px; } .res .t2, .res .km { font-size: 15px; }
  .res .ico { width: 46px; height: 46px; font-size: 22px; }
  .destName { font-size: 23px; }
  .bigBtn { height: 62px; font-size: 19px; padding: 0 18px; }
  .alt .tm { font-size: 28px; } .alt .ds { font-size: 16px; } .alt .dl { font-size: 15px; }
  .manMain { padding: 12px 16px; gap: 14px; }
  .manIcon { width: 62px; height: 62px; } .manDist { font-size: 38px; } .manInstr { font-size: 19px; margin-top: 3px; } .manStreet { font-size: 15px; }
  .manNext { padding: 7px 16px; font-size: 15px; } .manNext svg { width: 22px; height: 22px; }
  #navBar { left: 12px; right: 70px; bottom: 12px; padding: 8px 12px; gap: 8px 14px; flex-wrap: wrap; border-radius: 18px; }
  .navStat .big { font-size: 26px; } .navStat .lbl { font-size: 12px; }
  .navDelay { font-size: 14px; padding: 6px 9px; }
  #alongBtn, #overviewBtn, #stopBtn { width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 14px; font-size: 17px; }
  #overviewBtn .t, #alongBtn .t, #stopBtn .t { display: none; }
  #navBar .dw { display: none; }
  #speedWrap { left: 12px; gap: 8px; }
  #speedBox { width: 74px; height: 74px; } #speedVal { font-size: 28px; } #speedBox .lbl { font-size: 11px; }
  #limitSign { width: 56px; height: 56px; border-width: 6px; margin-bottom: 9px; } #limitVal { font-size: 23px; }
  #camAlert { padding: 7px 16px; } #camAlert .camIc { width: 34px; height: 34px; } #camAlert .camIc svg { width: 22px; height: 22px; }
  .camDist { font-size: 20px; } .camLbl { font-size: 14px; }
  #toast { font-size: 18px; }
}

.diag { white-space: pre-line; margin-top: 14px; font-size: 13px; line-height: 1.5; }

/* მანქანის რეჟიმი: ბუნდოვანი ფონი (backdrop-filter) რუკის ყოველ კადრზე თავიდან ითვლება და ტესლაში ლაგს იწვევს — ვცვლით გაუმჭვირვალე ფონით */
body.lite { --blur: none; --glass: rgba(255, 255, 255, .97); --shadow: 0 2px 10px rgba(16, 24, 40, .18); --shadowSm: 0 1px 6px rgba(16, 24, 40, .16); }
body.lite.night { --glass: rgba(22, 26, 32, .97); --shadow: 0 2px 10px rgba(0, 0, 0, .5); --shadowSm: 0 1px 6px rgba(0, 0, 0, .45); }
body.lite *, body.lite *::before, body.lite *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
body.lite #toast { background: rgba(17, 20, 24, .95); }
body.lite .iconBtn, body.lite .bigBtn, body.lite .chip, body.lite #speedBox { transition: none; }
