:root {
  color-scheme: light dark;
  --ground: #f5f3ee;
  --panel: #ffffff;
  --panel-2: #f3f0e9;
  --panel-3: #e9e5db;
  --ink: #15211d;
  --ink-2: #4b5a54;
  --ink-3: #6c7a73;
  --line: #e3ded3;
  --line-2: #d3cdbf;
  --accent: #0b7a72;
  --accent-ink: #ffffff;
  --accent-soft: #e0f1ee;
  --km: #f2c14e;
  --km-ink: #3a2a00;
  --good: #2f7d32;
  --good-soft: #e3f2e1;
  --warn: #9a6700;
  --warn-soft: #fbf0d4;
  --bad: #b3263e;
  --bad-soft: #fbe4e8;
  --shadow: 0 1px 2px rgba(20, 30, 25, .08), 0 6px 20px rgba(20, 30, 25, .10);
  --shadow-lg: 0 -2px 6px rgba(20, 30, 25, .06), 0 -12px 40px rgba(20, 30, 25, .14);
  --radius: 14px;
  --radius-sm: 10px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans", "Noto Sans Georgian", sans-serif;
  --text-xs: .75rem;
  --text-sm: .8438rem;
  --text-md: .9375rem;
  --text-lg: 1.0625rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --tabbar: calc(58px + env(safe-area-inset-bottom));
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #121a17;
    --panel: #18221e;
    --panel-2: #1f2a26;
    --panel-3: #283530;
    --ink: #edf1ee;
    --ink-2: #b4c0ba;
    --ink-3: #8d9a94;
    --line: #2b3833;
    --line-2: #3a4943;
    --accent: #3cc2b4;
    --accent-ink: #06201d;
    --accent-soft: #163631;
    --good: #7cc77f;
    --good-soft: #1c3320;
    --warn: #e2b04a;
    --warn-soft: #3a2f14;
    --bad: #f08396;
    --bad-soft: #3d1f25;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 6px 20px rgba(0, 0, 0, .35);
    --shadow-lg: 0 -12px 40px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--text-md)/1.45 var(--font); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
a { color: var(--accent); text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ka { font-family: "Noto Sans Georgian", var(--font); }
.num { font-variant-numeric: tabular-nums; }

.app { position: fixed; inset: 0; display: grid; grid-template-columns: 400px minmax(0, 1fr); }
.map-area { position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: var(--panel-2); }

.panel { position: relative; z-index: 1000; display: flex; flex-direction: column; min-height: 0; background: var(--panel); border-right: 1px solid var(--line); }
.sheet-grip { display: none; }
.panel-head { padding: 16px 16px 10px; display: grid; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: var(--text-lg); color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--accent); }
.search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 6px 0 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid transparent; color: var(--ink-3); transition: border-color .15s, background .15s; }
.search:focus-within { border-color: var(--accent); background: var(--panel); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; outline: none; }
.search input::placeholder { color: var(--ink-3); }
.search input::-webkit-search-cancel-button { display: none; }
.search-clear { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }

.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 6px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-size: var(--text-xs); font-weight: 600; transition: background .15s, color .15s; }
.tabs a:hover { background: var(--panel-2); }
.tabs a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }

.panel-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 24px; }
.view-pad { padding: 0 16px; }
.view-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 8px; }
.view-title h2 { font-size: var(--text-xl); font-weight: 700; letter-spacing: -.015em; }
.view-title p { color: var(--ink-3); font-size: var(--text-sm); }
.section-label { font-size: var(--text-sm); font-weight: 650; color: var(--ink-2); padding: 18px 16px 6px; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 16px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: var(--text-sm); font-weight: 550; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.chip .icon { width: 16px; height: 16px; color: var(--c); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.chip[aria-pressed="true"] .icon { color: inherit; }

.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 10px 16px; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; color: inherit; transition: background .12s; }
.row:hover { background: var(--panel-2); }
.row + .row, .list > li + li > .row { border-top: 1px solid var(--line); }
.row-title { font-weight: 600; font-size: var(--text-md); line-height: 1.3; }
.row-sub { font-size: var(--text-sm); color: var(--ink-3); margin-top: 1px; display: flex; flex-wrap: wrap; gap: 0 8px; }
.row-end { text-align: right; font-size: var(--text-sm); color: var(--ink-3); }
.row-end b { display: block; color: var(--ink); font-weight: 600; }
.pin-icon { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.pin-icon .icon { width: 18px; height: 18px; }
.pin-icon.outline { background: var(--panel); color: var(--c); box-shadow: inset 0 0 0 2px var(--c); }
.open { color: var(--good); font-weight: 600; }
.closed { color: var(--bad); font-weight: 600; }
.more-row { width: 100%; padding: 14px 16px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--accent); font-weight: 600; text-align: left; cursor: pointer; }
.empty { padding: 28px 16px; color: var(--ink-3); text-align: center; }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; }

.detail-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 12px 0 8px; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--panel-2); }
.detail-head h2 { font-size: var(--text-2xl); font-weight: 700; letter-spacing: -.02em; line-height: 1.15; padding-top: 6px; }
.detail-head .ka { color: var(--ink-3); font-size: var(--text-sm); margin-top: 2px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; padding: 8px 16px 0 56px; font-size: var(--text-sm); color: var(--ink-2); }
.actions { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 6px; scrollbar-width: none; }
.actions::-webkit-scrollbar { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--accent); font-size: var(--text-sm); font-weight: 650; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .15s, transform .1s; }
.btn:hover { background: var(--panel-2); }
.btn:active { transform: scale(.97); }
.btn .icon { width: 18px; height: 18px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }

.facts { display: grid; gap: 0; margin: 10px 16px 0; border-top: 1px solid var(--line); }
.fact { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: var(--text-md); }
.fact .icon { color: var(--ink-3); margin-top: 1px; }
.fact small { display: block; color: var(--ink-3); font-size: var(--text-sm); }
.prose { padding: 12px 16px 0; color: var(--ink-2); }
.note { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--warn-soft); color: var(--ink); font-size: var(--text-sm); display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.note .icon { color: var(--warn); width: 18px; height: 18px; margin-top: 1px; }
.note.info { background: var(--accent-soft); }
.note.info .icon { color: var(--accent); }
.note.bad { background: var(--bad-soft); }
.note.bad .icon { color: var(--bad); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 999px; background: var(--panel-2); margin: 4px 16px 6px; }
.seg button { height: 34px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; cursor: pointer; white-space: nowrap; padding: 0 10px; }
.seg button[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg.scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.seg.scroll button { flex: none; }

.forecast { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 6px 16px 4px; }
.fday { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 10px 9px; display: grid; gap: 4px; background: var(--panel); text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.fday[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fday-name { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: var(--text-sm); }
.fday-name .icon { color: var(--ink-2); }
.fday-temp { font-size: var(--text-xl); font-weight: 650; letter-spacing: -.01em; }
.fday-temp span { color: var(--ink-3); font-size: var(--text-sm); font-weight: 500; }
.fday-rain { font-size: var(--text-xs); color: var(--ink-3); }
.verdict { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 999px; font-size: var(--text-xs); font-weight: 650; justify-self: start; }
.verdict::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.verdict.good { background: var(--good-soft); color: var(--good); }
.verdict.mixed { background: var(--warn-soft); color: var(--warn); }
.verdict.wet { background: var(--bad-soft); color: var(--bad); }
.skeleton { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--panel-2), var(--panel-3), var(--panel-2)); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.stamp { font-size: var(--text-xs); color: var(--ink-3); padding: 2px 16px 0; }

.day { margin: 12px 16px 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.day-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.day-head h3 { font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; }
.day-head p { font-size: var(--text-sm); color: var(--ink-3); }
.day-when { font-size: var(--text-xs); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; }
.day-body { padding: 4px 0; }
.day .note { margin: 8px 14px; }
.day-foot { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 14px 14px; }
.stop-row { display: grid; grid-template-columns: 56px 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; padding: 8px 14px 8px 10px; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; text-decoration: none; }
.stop-row:hover { background: var(--panel-2); }
.stop-row .km { font-size: var(--text-xs); font-weight: 700; color: var(--km-ink); background: var(--km); border-radius: 999px; padding: 2px 6px; justify-self: start; white-space: nowrap; }
.stop-row .km:empty { visibility: hidden; }
.stop-row .pin-icon { width: 28px; height: 28px; }
.stop-row .pin-icon .icon { width: 15px; height: 15px; }
.stop-row b { font-weight: 600; display: block; }
.stop-row small { color: var(--ink-3); font-size: var(--text-sm); }
.stop-row .icon.chev { color: var(--ink-3); width: 16px; }
.optional { font-size: var(--text-xs); color: var(--ink-3); font-weight: 600; margin-left: 4px; }

.hike-row .trace { width: 40px; height: 40px; border-radius: 10px; background: var(--panel-2); display: grid; place-items: center; }
.hike-row .trace svg { width: 32px; height: 32px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 999px; font-size: var(--text-xs); font-weight: 650; }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 12px 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.stats div { padding: 10px 10px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font-size: var(--text-lg); font-weight: 700; letter-spacing: -.01em; }
.stats span { font-size: var(--text-xs); color: var(--ink-3); }
.next-stop { margin: 12px 16px 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.next-stop small { display: block; opacity: .85; font-size: var(--text-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.next-stop b { font-size: var(--text-lg); }
.next-stop .num { font-size: var(--text-lg); font-weight: 700; }

.profile { margin: 12px 16px 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 10px 4px; }
.profile-head { display: flex; justify-content: space-between; font-size: var(--text-sm); color: var(--ink-3); padding: 0 2px 4px; }
.profile-head b { color: var(--ink); font-weight: 650; }
.profile svg { display: block; width: 100%; height: auto; touch-action: pan-y; cursor: crosshair; }
.profile .axis text { font-size: 10px; fill: var(--ink-3); font-family: var(--font); }
.profile .grid line { stroke: var(--line); }

.timeline { list-style: none; margin: 8px 0 0; padding: 0 16px; }
.timeline li { display: grid; grid-template-columns: 46px 20px minmax(0, 1fr); gap: 6px; }
.timeline time { font-size: var(--text-sm); color: var(--ink-3); padding-top: 1px; font-variant-numeric: tabular-nums; }
.timeline .rail { position: relative; }
.timeline .rail::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.timeline li:first-child .rail::before { top: 9px; }
.timeline li:last-child .rail::before { bottom: auto; height: 9px; }
.timeline .rail i { position: absolute; left: 4px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--ink-3); }
.timeline .swim .rail i { background: #0784b5; border-color: #0784b5; }
.timeline .cave .rail i { background: #cf3f58; border-color: #cf3f58; }
.timeline .climb .rail i { border-color: #c2531b; }
.timeline .check .rail i { border-color: var(--warn); border-radius: 3px; transform: rotate(45deg); }
.timeline .tl-body { padding-bottom: 14px; }
.timeline b { font-weight: 600; }
.timeline p { font-size: var(--text-sm); color: var(--ink-3); }

.check-list { list-style: none; margin: 0; padding: 0; }
.check-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: start; gap: 6px; padding: 6px 12px 6px 6px; border-top: 1px solid var(--line); }
.check-list li:first-child .check-row { border-top: 0; }
.check-box { position: relative; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.check-box input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.check-box span { width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--line-2); display: grid; place-items: center; transition: background .12s, border-color .12s; }
.check-box span .icon { width: 16px; height: 16px; stroke-width: 3; color: var(--accent-ink); opacity: 0; }
.check-box input:checked + span { background: var(--accent); border-color: var(--accent); }
.check-box input:checked + span .icon { opacity: 1; }
.check-box input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check-text { padding-top: 10px; min-width: 0; }
.check-text b { font-weight: 600; }
.check-text small { display: block; color: var(--ink-3); font-size: var(--text-sm); }
.is-done .check-text b { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-2); }
.qty { font-size: var(--text-xs); font-weight: 650; color: var(--ink-2); background: var(--panel-2); border-radius: 999px; padding: 2px 7px; margin-left: 6px; white-space: nowrap; }
.need-btn { margin-top: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2); font-size: var(--text-xs); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.need-btn[aria-pressed="true"] { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.need-btn .icon { width: 14px; height: 14px; }
.offers { margin-top: 8px; display: grid; gap: 6px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--panel-2); font-size: var(--text-sm); color: var(--ink); text-decoration: none; }
.offer small { display: block; color: var(--ink-3); }
.offer b { font-variant-numeric: tabular-nums; }
.group-label { font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; padding: 16px 16px 4px; }
.card { margin: 10px 16px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: var(--text-md); font-weight: 700; }
.card-head span { font-size: var(--text-sm); color: var(--ink-3); }
.card-body { padding: 4px 14px 12px; }
.card ul.plain { list-style: none; margin: 0; padding: 0; }
.card ul.plain li { padding: 9px 0; border-top: 1px solid var(--line); font-size: var(--text-md); display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.card ul.plain li:first-child { border-top: 0; }
.card ul.plain .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.shop-total { display: flex; justify-content: space-between; padding: 10px 0 0; font-weight: 700; border-top: 1px solid var(--line); margin-top: 6px; }
.progress { height: 6px; border-radius: 999px; background: var(--panel-3); overflow: hidden; margin: 2px 14px 12px; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .25s var(--ease); }

.weather-pill { position: absolute; z-index: 600; top: calc(12px + env(safe-area-inset-top)); left: 12px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border: 0; border-radius: 999px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); font-size: var(--text-sm); font-weight: 650; cursor: pointer; }
.weather-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.map-controls { position: absolute; z-index: 600; top: calc(12px + env(safe-area-inset-top)); right: 12px; display: grid; gap: 8px; justify-items: end; }
.map-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--panel); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.map-btn[aria-pressed="true"] { color: var(--accent); }
.layer-menu { order: 2; display: grid; gap: 2px; padding: 4px; border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.layer-menu button { height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.layer-menu button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
#layer-btn { order: 1; }
#locate-btn { order: 3; }

.leaflet-container { font-family: var(--font); }
.leaflet-control-attribution { font-size: 10px; }
.mk { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); transition: transform .18s var(--ease), opacity .18s; }
.mk .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.mk.outline { background: #fff; color: var(--c); border-color: var(--c); }
.mk.base { border-radius: 10px; background: #15211d; }
.mk.is-on { transform: scale(1.3); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 30%, transparent), 0 3px 10px rgba(0, 0, 0, .4); }
.mk.is-dim { opacity: .35; }
.hike-pin { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 750; color: #fff; background: var(--c); border: 2.5px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.km-label { background: var(--km) !important; color: var(--km-ink) !important; border: 1.5px solid #fff !important; border-radius: 999px !important; padding: 1px 7px !important; font: 700 11px/1.4 var(--font) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .3) !important; }
.km-label::before { display: none; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 1px 4px rgba(0, 0, 0, .3); }
.scrub-dot { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #c2531b; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.map-tip { background: var(--panel) !important; color: var(--ink) !important; border: 0 !important; border-radius: 8px !important; box-shadow: var(--shadow) !important; font: 600 12px var(--font) !important; padding: 4px 8px !important; }

.driver { width: min(560px, calc(100vw - 32px)); border: 0; border-radius: 20px; padding: 28px 24px 22px; background: var(--panel); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: center; }
.driver::backdrop { background: rgba(10, 16, 14, .55); }
.driver-close { position: absolute; top: 8px; right: 8px; }
.driver-ka { font-family: "Noto Sans Georgian", var(--font); font-size: clamp(2rem, 9vw, 3.25rem); font-weight: 700; line-height: 1.15; margin-top: 12px; }
.driver-en { font-size: var(--text-lg); color: var(--ink-2); margin-top: 8px; }
.driver-coords { font-size: var(--text-sm); color: var(--ink-3); margin-top: 6px; font-variant-numeric: tabular-nums; }
.driver-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

.toast { position: fixed; z-index: 3000; left: 50%; bottom: calc(var(--tabbar) + 20px); transform: translate(-50%, 20px); padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--panel); font-size: var(--text-sm); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 901px) { .toast { left: calc(200px + 50vw); bottom: 24px; } }

@media (max-width: 900px) {
  .app { display: block; }
  .map-area { position: fixed; inset: 0; }
  .panel { position: fixed; left: 0; right: 0; bottom: var(--tabbar); height: var(--sheet-h, 42svh); border-right: 0; border-radius: 18px 18px 0 0; box-shadow: var(--shadow-lg); transition: height .28s var(--ease); }
  .panel.is-dragging { transition: none; }
  .sheet-grip { display: grid; place-items: center; height: 22px; flex: none; cursor: grab; touch-action: none; }
  .sheet-grip span { width: 40px; height: 5px; border-radius: 999px; background: var(--line-2); }
  .panel-head { padding: 0 12px 8px; touch-action: none; }
  .brand { display: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100; height: var(--tabbar); padding: 6px 8px env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line); border-bottom: 0; gap: 2px; }
  .tabs a { padding: 6px 2px 4px; font-size: 11px; }
  .tabs a[aria-current="page"] { background: transparent; }
  .tabs a[aria-current="page"] .icon { background: var(--accent-soft); border-radius: 999px; width: 52px; height: 28px; padding: 4px 16px; box-sizing: border-box; }
  .map-controls, .weather-pill { top: calc(10px + env(safe-area-inset-top)); }
  .toast { bottom: calc(var(--tabbar) + var(--sheet-h, 42svh) + 12px); }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: 0s !important; animation-duration: 0s !important; } }
