/*
 * RU: Оформление страницы «Метро» (/m/{cc}/{город}/metro, пакет МТ2 плана docs/METRO-PLAN-2026-09-26.md). Перенесено из
 *     рабочего макета mockups/metro-2026-09-26 на боевые токены --k-* из kartivi.css; ни одного цветового литерала —
 *     проверка check:theme считает их во всех public/css. Цвета линий — данные перевозчика: приходят атрибутами
 *     stroke/fill и стилем style="--c: …" из public/js/metro-app.js.
 *     Все классы с префиксом mt-, чтобы не задеть общие стили сайта (.btn, .chip и т. п. в kartivi.css и app.css).
 *     Раскладка: на компьютере — панель слева, схема или карта справа (как у Яндекса); на телефоне — схема во весь
 *     экран и шторка снизу с тремя высотами (как у 2ГИС).
 * EN: The "Metro" page styling (package MT2). Ported from the working mockup onto production --k-* tokens from kartivi.css;
 *     not a single colour literal — check:theme counts them in every public/css file. Line colours are operator data: they
 *     arrive as stroke/fill attributes and style="--c: …" from public/js/metro-app.js. Every class is mt- prefixed so the
 *     site's shared styles stay untouched. Layout: desktop — a left panel and the scheme/map on the right (like Yandex);
 *     phone — the scheme full screen and a three-height bottom sheet (like 2GIS).
 */

.mt-page { margin: 0; height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto auto 1fr; overflow: hidden; background: var(--k-surface); color: var(--k-text); font-family: var(--k-font-ui); }
.mt-page button { font-family: inherit; }

/* ---------- RU: Строка раздела / EN: Section bar ---------- */
.mt-bar { display: flex; align-items: center; gap: var(--k-s-3); padding: var(--k-s-2) var(--k-s-4); border-bottom: 1px solid var(--k-border); background: var(--k-surface); min-width: 0; }
.mt-bar h1 { margin: 0; font: 700 var(--k-fs-5)/1.2 var(--k-font-brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-bar .mt-grow { flex: 1; }
.mt-city { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--k-border); background: var(--k-surface); border-radius: var(--k-r-pill); padding: 7px 12px; font: 650 var(--k-fs-3)/1 var(--k-font-ui); color: var(--k-text); cursor: pointer; white-space: nowrap; }
.mt-city:hover { border-color: var(--k-border-strong); }
.mt-link { font-size: var(--k-fs-2); color: var(--k-text-muted); text-decoration: none; white-space: nowrap; }
.mt-link:hover { color: var(--k-brand-ink); }

/* ---------- RU: Кнопки, чипы, переключатель / EN: Buttons, chips, segmented control ---------- */
.mt-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--k-s-2); min-height: var(--k-tap-min); padding: 0 var(--k-s-4); border: 1px solid var(--k-border); border-radius: var(--k-r-2); background: var(--k-surface); color: var(--k-text); font: 600 var(--k-fs-3)/1 var(--k-font-ui); cursor: pointer; text-decoration: none; }
.mt-btn:hover { border-color: var(--k-border-strong); }
.mt-btn.is-primary { background: var(--k-brand); border-color: var(--k-brand); color: var(--k-text-on-accent); }
.mt-btn.is-primary:hover { background: var(--k-brand-hover); }
.mt-btn.is-ghost { background: transparent; border-color: transparent; }
.mt-btn:disabled { opacity: 0.5; cursor: default; }
.mt-btn svg { width: 18px; height: 18px; flex: none; }
.mt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 var(--k-s-3); border: 1px solid var(--k-border); border-radius: var(--k-r-pill); background: var(--k-surface); color: var(--k-text); font: 500 var(--k-fs-2)/1 var(--k-font-ui); white-space: nowrap; cursor: pointer; }
.mt-chips { display: flex; gap: var(--k-s-2); flex-wrap: wrap; }
.mt-seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--k-surface-2); border-radius: var(--k-r-2); }
.mt-seg button { white-space: nowrap; border: 0; background: transparent; color: var(--k-text-muted); font: 600 var(--k-fs-2)/1 var(--k-font-ui); padding: 9px 12px; border-radius: var(--k-r-1); cursor: pointer; }
.mt-seg button.is-on { background: var(--k-surface); color: var(--k-text); box-shadow: var(--k-shadow-1); }
.mt-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--k-r-2); border: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-text); cursor: pointer; box-shadow: var(--k-shadow-2); }
.mt-icon svg { width: 18px; height: 18px; }
.mt-page :focus-visible { outline: 2px solid var(--k-brand); outline-offset: 2px; }

/* ---------- RU: Основная область / EN: Main area ---------- */
.mt-main { display: grid; grid-template-columns: 392px 1fr; min-height: 0; position: relative; }
.mt-panel { display: flex; flex-direction: column; min-height: 0; background: var(--k-surface); border-right: 1px solid var(--k-border); }
.mt-stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: var(--k-surface); }
.mt-scheme, .mt-map { position: absolute; inset: 0; }
.mt-scheme[hidden], .mt-map[hidden], .mt-legend[hidden], .mt-banner[hidden], .mt-toast[hidden] { display: none; }
.mt-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }

/* ---------- RU: Поля «Откуда/Куда» / EN: From/To fields ---------- */
.mt-ab { display: grid; grid-template-columns: 1fr 44px; gap: 6px 8px; padding: var(--k-s-4) var(--k-s-4) var(--k-s-3); border-bottom: 1px solid var(--k-border); }
.mt-field { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px 0 12px; border-radius: var(--k-r-2); background: var(--k-surface-2); border: 1px solid transparent; }
.mt-field:focus-within { border-color: var(--k-brand); background: var(--k-surface); }
.mt-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--k-text); font: 500 var(--k-fs-4)/1.2 var(--k-font-ui); padding: 11px 0; }
.mt-field input::placeholder { color: var(--k-text-subtle); }
.mt-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 700 11px/1 var(--k-font-ui); color: var(--k-text-on-accent); background: var(--k-brand); }
.mt-mark.is-b { background: var(--k-danger); }
.mt-dots { display: flex; gap: 3px; }
.mt-clear { border: 0; background: transparent; color: var(--k-text-subtle); cursor: pointer; font-size: 18px; line-height: 1; padding: 4px; }
.mt-swap { grid-column: 2; grid-row: 1 / span 2; align-self: center; box-shadow: none; }
.mt-opts { grid-column: 1 / -1; display: flex; gap: var(--k-s-3); align-items: center; flex-wrap: wrap; font-size: var(--k-fs-2); color: var(--k-text-muted); }
.mt-opts label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.mt-opts input[type="time"] { border: 1px solid var(--k-border); border-radius: var(--k-r-1); background: var(--k-surface); color: var(--k-text); padding: 3px 6px; font: inherit; }

/* ---------- RU: Разделы панели / EN: Panel sections ---------- */
.mt-sec { padding: var(--k-s-4); border-bottom: 1px solid var(--k-border); }
.mt-sec:last-child { border-bottom: 0; }
.mt-sec h2 { margin: 0; font: 750 var(--k-fs-6)/1.2 var(--k-font-ui); }
.mt-sec h3 { margin: 0 0 var(--k-s-3); font: 700 var(--k-fs-2)/1.2 var(--k-font-ui); text-transform: uppercase; letter-spacing: 0.04em; color: var(--k-text-muted); }
.mt-note { font-size: var(--k-fs-2); color: var(--k-text-muted); margin: 0; }
.mt-note b { color: var(--k-text); }
.mt-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--k-r-pill); font: 600 11px/1.5 var(--k-font-ui); background: var(--k-surface-2); color: var(--k-text-muted); white-space: nowrap; }
.mt-tag.is-warn { background: var(--k-warn-soft); color: var(--k-warn); }
.mt-tag.is-ok { background: var(--k-ok-soft); color: var(--k-ok); }
.mt-tag.is-danger { background: var(--k-danger-soft); color: var(--k-danger); }
.mt-tag.is-brand { background: var(--k-brand-soft); color: var(--k-brand-ink); }
.mt-tags { display: flex; gap: var(--k-s-2); flex-wrap: wrap; margin-top: var(--k-s-2); }
.mt-row { display: flex; align-items: center; gap: var(--k-s-3); }
.mt-row .mt-grow { flex: 1; min-width: 0; }
.mt-list { list-style: none; margin: 0; padding: 0; }
.mt-item { display: flex; align-items: center; gap: var(--k-s-3); width: 100%; min-height: 44px; padding: 8px var(--k-s-2); border: 0; border-radius: var(--k-r-2); background: transparent; color: var(--k-text); text-align: left; font: 500 var(--k-fs-3)/1.3 var(--k-font-ui); cursor: pointer; }
.mt-item:hover, .mt-item.is-active { background: var(--k-surface-2); }
.mt-item .mt-sub { display: block; font-size: var(--k-fs-2); color: var(--k-text-muted); font-weight: 400; }
.mt-item .mt-right { margin-left: auto; font-size: var(--k-fs-2); color: var(--k-text-muted); white-space: nowrap; }
.mt-status { font-weight: 600; font-size: var(--k-fs-2); }
.mt-status.is-open { color: var(--k-ok); }
.mt-status.is-closed { color: var(--k-danger); }

/* ---------- RU: Значок линии / EN: Line badge ---------- */
.mt-badge { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; font: 750 12px/1 var(--k-font-ui); flex: none; background: var(--c); color: var(--ink); }
.mt-badge.is-square { border-radius: 6px; }
.mt-badge.is-sm { min-width: 20px; height: 20px; font-size: 11px; padding: 0 5px; }
.mt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); }
.mt-chain { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.mt-chain .mt-arrow { color: var(--k-text-subtle); font-size: 12px; }

/* ---------- RU: Варианты маршрута / EN: Route options ---------- */
.mt-opt { display: block; width: 100%; text-align: left; padding: 12px var(--k-s-4) 12px calc(var(--k-s-4) + 3px); border: 0; border-bottom: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-text); cursor: pointer; position: relative; font: inherit; }
.mt-opt:hover { background: var(--k-surface-2); }
.mt-opt.is-on { background: var(--k-brand-soft); }
.mt-opt.is-on::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k-brand); }
.mt-opt .mt-t { font: 750 var(--k-fs-6)/1.1 var(--k-font-ui); }
.mt-opt .mt-meta { display: flex; justify-content: space-between; align-items: center; gap: var(--k-s-2); margin-bottom: 8px; }
.mt-warn { display: flex; gap: 8px; align-items: flex-start; margin: 0 var(--k-s-4) var(--k-s-3); padding: 8px 10px; border-radius: var(--k-r-2); background: var(--k-warn-soft); color: var(--k-warn); font-size: var(--k-fs-2); }

/* ---------- RU: Лента маршрута / EN: Route timeline ---------- */
.mt-tl { list-style: none; margin: 0; padding: var(--k-s-3) var(--k-s-4) var(--k-s-4); }
.mt-tl > li { position: relative; display: grid; grid-template-columns: 52px 22px 1fr; gap: 0 8px; }
.mt-tl .mt-time { font: 600 var(--k-fs-2)/1.4 var(--k-font-ui); color: var(--k-text-muted); text-align: right; padding-top: 2px; font-variant-numeric: tabular-nums; }
.mt-tl .mt-rail { position: relative; display: flex; justify-content: center; }
.mt-tl .mt-rail::before { content: ""; position: absolute; top: 0; bottom: 0; width: 5px; border-radius: 3px; background: var(--c, var(--k-border)); }
.mt-tl li.is-walk .mt-rail::before { width: 0; border-left: 3px dotted var(--k-text-subtle); background: none; }
.mt-tl li.is-first .mt-rail::before { top: 9px; }
.mt-tl li.is-last .mt-rail::before { bottom: calc(100% - 12px); }
.mt-tl .mt-node { position: relative; z-index: 1; width: 16px; height: 16px; margin-top: 2px; border-radius: 50%; background: var(--k-surface); border: 4px solid var(--c, var(--k-text-subtle)); }
.mt-tl .mt-tbody { padding: 0 0 var(--k-s-4); min-width: 0; }
.mt-tl .mt-name { font: 700 var(--k-fs-4)/1.3 var(--k-font-ui); }
.mt-tl .mt-line { display: flex; gap: 8px; align-items: center; margin-top: 6px; font-size: var(--k-fs-2); }
.mt-tl .mt-dir { font-size: var(--k-fs-2); color: var(--k-text-muted); margin-top: 2px; }
.mt-tl summary { margin-top: 8px; display: inline-block; background: var(--k-surface-2); color: var(--k-text); border-radius: var(--k-r-2); padding: 7px 10px; font: 600 var(--k-fs-2)/1 var(--k-font-ui); cursor: pointer; list-style: none; }
.mt-tl summary::-webkit-details-marker { display: none; }
.mt-tl .mt-stops { list-style: none; margin: 8px 0 0; padding: 0; font-size: var(--k-fs-2); color: var(--k-text-muted); }
.mt-tl .mt-stops li { padding: 3px 0; }

/* ---------- RU: Карточка станции / EN: Station card ---------- */
.mt-head { display: flex; gap: var(--k-s-3); align-items: flex-start; }
.mt-head .mt-badges { display: flex; flex-direction: column; gap: 4px; padding-top: 3px; }
.mt-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--k-s-2); margin-top: var(--k-s-4); }
.mt-act { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--k-r-2); border: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-text); font: 600 12px/1.1 var(--k-font-ui); cursor: pointer; }
.mt-act:hover { border-color: var(--k-border-strong); }
.mt-act.is-primary { background: var(--k-brand); border-color: var(--k-brand); color: var(--k-text-on-accent); }
.mt-act svg { width: 20px; height: 20px; }
.mt-exits { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.mt-exit { display: grid; place-items: center; height: 36px; border-radius: var(--k-r-1); background: var(--k-surface-2); font: 700 var(--k-fs-2)/1 var(--k-font-ui); border: 0; color: var(--k-text); cursor: pointer; }
.mt-exit.is-in { box-shadow: inset 0 -3px 0 var(--k-ok); }
.mt-exit.is-out { box-shadow: inset 0 -3px 0 var(--k-danger); }
.mt-exit-list { list-style: none; margin: var(--k-s-3) 0 0; padding: 0; font-size: var(--k-fs-2); color: var(--k-text-muted); }
.mt-exit-list li { padding: 3px 0; }
.mt-exit-list b { color: var(--k-text); }
.mt-linelist { list-style: none; margin: 0; padding: 0; }
.mt-linelist li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; min-height: 30px; position: relative; }
.mt-linelist li::before { content: ""; position: absolute; left: 8px; top: 0; bottom: 0; width: 6px; background: var(--c); }
.mt-linelist li:first-child::before { top: 50%; }
.mt-linelist li:last-child::before { bottom: 50%; }
.mt-linelist .mt-d { position: relative; z-index: 1; width: 12px; height: 12px; margin-left: 5px; border-radius: 50%; background: var(--k-surface); border: 3px solid var(--c); }
.mt-linelist li.is-cur .mt-d { width: 16px; height: 16px; margin-left: 3px; border-width: 4px; }
.mt-linelist li.is-cur .mt-n { font-weight: 750; }
.mt-linelist .mt-n { border: 0; background: transparent; color: var(--k-text); text-align: left; padding: 4px 0; font: 500 var(--k-fs-3)/1.2 var(--k-font-ui); cursor: pointer; }
.mt-linelist .mt-n:hover { color: var(--k-brand-ink); }
.mt-linelist .mt-x { display: flex; gap: 3px; }
.mt-firm { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; width: 100%; text-align: left; padding: 9px 8px; border: 0; border-radius: var(--k-r-2); background: transparent; color: var(--k-text); cursor: pointer; font: inherit; }
.mt-firm:hover { background: var(--k-surface-2); }
.mt-firm b { font-weight: 650; }
.mt-firm small { color: var(--k-text-muted); font-size: var(--k-fs-2); }
.mt-skeleton { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--k-surface-2), var(--k-surface-3), var(--k-surface-2)); background-size: 200% 100%; animation: mt-sk 1.2s linear infinite; margin: 10px 8px; }
@keyframes mt-sk { to { background-position: -200% 0; } }

/* ---------- RU: Города / EN: Cities ---------- */
.mt-cities { display: grid; grid-template-columns: 1fr 1fr; gap: var(--k-s-2); }
.mt-cityc { display: grid; gap: 6px; text-align: left; padding: 12px; border-radius: var(--k-r-3); border: 1px solid var(--k-border); background: var(--k-surface); color: var(--k-text); text-decoration: none; }
.mt-cityc:hover { border-color: var(--k-border-strong); }
.mt-cityc.is-on { border-color: var(--k-brand); background: var(--k-brand-soft); }
.mt-cityc b { font-size: var(--k-fs-4); }
.mt-cityc small { color: var(--k-text-muted); font-size: 12px; }
.mt-strip { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.mt-strip i { flex: 1; background: var(--c); }

/* ---------- RU: В пути / EN: On the way ---------- */
.mt-trip { margin: var(--k-s-4); padding: var(--k-s-4); border-radius: var(--k-r-3); background: var(--k-brand-soft); }
.mt-trip .mt-big { font: 750 var(--k-fs-6)/1.25 var(--k-font-ui); margin: 6px 0; }
.mt-steps { list-style: none; margin: 0; padding: 0 var(--k-s-4); }
.mt-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 8px 0; color: var(--k-text-muted); font-size: var(--k-fs-3); }
.mt-steps li.is-done { opacity: 0.55; text-decoration: line-through; }
.mt-steps li.is-cur { color: var(--k-text); font-weight: 650; }
.mt-steps .mt-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--k-surface-2); font: 700 12px/1 var(--k-font-ui); }
.mt-steps li.is-cur .mt-n { background: var(--k-brand); color: var(--k-text-on-accent); }

/* ---------- RU: Поверх схемы / EN: Over the scheme ---------- */
.mt-ctl { position: absolute; right: 14px; bottom: 44px; display: grid; gap: 6px; z-index: 5; }
.mt-top { position: absolute; left: 14px; right: 70px; top: 12px; display: flex; gap: var(--k-s-2); flex-wrap: wrap; z-index: 5; pointer-events: none; }
.mt-top > * { pointer-events: auto; }
.mt-banner { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--k-r-2); background: var(--k-surface); box-shadow: var(--k-shadow-2); font-size: var(--k-fs-2); border: 1px solid var(--k-warn); }
.mt-attr { position: absolute; right: 8px; bottom: 6px; z-index: 5; font-size: 11px; color: var(--k-text-muted); background: var(--k-surface); padding: 2px 6px; border-radius: 4px; opacity: 0.85; }
.mt-attr a { color: inherit; }
.mt-legend { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: flex; gap: 4px; flex-wrap: wrap; max-width: min(640px, calc(100% - 90px)); }
.mt-legend button { border: 0; padding: 0; background: transparent; cursor: pointer; }
.mt-toast { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 20; padding: 8px 12px; border-radius: var(--k-r-2); background: var(--k-surface); box-shadow: var(--k-shadow-2); border: 1px solid var(--k-border); font-size: var(--k-fs-2); }

/* ---------- RU: Схема SVG / EN: SVG scheme ---------- */
.scheme { width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; background: var(--k-surface); user-select: none; }
.scheme:active { cursor: grabbing; }
.ln-base { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.k-mcc .ln-base { stroke-width: 8; }
.k-mcc .ln-inner { fill: none; stroke: var(--k-surface); stroke-width: 2.6; }
.k-mcd .ln-base { stroke-width: 5; }
.k-mcd .ln-inner { fill: none; stroke: var(--k-surface); stroke-width: 1.6; stroke-dasharray: 5 5; }
.k-light .ln-base { stroke-width: 5; }
.xf-o { stroke: var(--k-text-muted); stroke-width: 9; stroke-linecap: round; fill: none; }
.xf-i { stroke: var(--k-surface); stroke-width: 5.5; stroke-linecap: round; fill: none; }
.xf.out .xf-o { stroke-width: 1.2; stroke-dasharray: 2 3; opacity: 0.55; }
.xf.out .xf-i { display: none; }
.st { fill: var(--k-surface); stroke-width: 2.4; }
.st.hub { stroke-width: 2.6; }
.st.hover, .st.sel { stroke-width: 3.4; r: 7; }
.st.sel { fill: var(--k-rating); }
.hit { fill: transparent; cursor: pointer; }
.lb { font-family: var(--k-font-ui); font-weight: 500; fill: var(--k-text); stroke: var(--k-surface); paint-order: stroke; stroke-linejoin: round; pointer-events: none; }
.lb.strong { font-weight: 700; }
.badge rect { stroke: var(--k-surface); stroke-width: 1.5; }
.badge text { font: 750 11px/1 var(--k-font-ui); }
.badge { cursor: pointer; }
.scheme.has-route .l-lines, .scheme.has-route .l-xfer, .scheme.has-route .l-st, .scheme.has-route .l-badges { opacity: 0.16; }
.scheme.has-route .lb:not(.on-route) { opacity: 0.35; }
.scheme.has-line:not(.has-route) .ln:not(.on), .scheme.has-line:not(.has-route) .badge:not(.on), .scheme.has-line:not(.has-route) .st:not(.on), .scheme.has-line:not(.has-route) .l-xfer { opacity: 0.14; }
.scheme.has-line:not(.has-route) .lb:not(.on-line) { opacity: 0.3; }
.rt-casing { fill: none; stroke: var(--k-surface); stroke-width: 13; stroke-linecap: round; stroke-linejoin: round; }
.rt-line { fill: none; stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.rt-st { fill: var(--k-surface); stroke-width: 2.6; }
.rt-walk { fill: none; stroke: var(--k-text); stroke-width: 2.6; stroke-dasharray: 2 5; stroke-linecap: round; }
.pin-k, .badge-k { transform: scale(var(--k, 1)); }
.pin path { stroke: var(--k-surface); stroke-width: 2; }
.pin-a path { fill: var(--k-brand); }
.pin-b path { fill: var(--k-danger); }
.pin text { font: 800 12px/1 var(--k-font-ui); fill: var(--k-text-on-accent); }

/* ---------- RU: Метки на карте MapLibre / EN: MapLibre map marks ---------- */
.mt-pin svg path { stroke: var(--k-surface); stroke-width: 2; }
.mt-pin.is-a svg path { fill: var(--k-brand); }
.mt-pin.is-b svg path { fill: var(--k-danger); }
.mt-pin.is-pt svg path { fill: var(--k-rating); }
.mt-pin svg text { font: 800 12px/1 var(--k-font-ui); fill: var(--k-text-on-accent); }

/* ---------- RU: Телефон / EN: Phone ---------- */
.mt-grip { display: none; }
.mt-phonebar { display: none; }
@media (max-width: 699px) {
  .mt-page { grid-template-rows: auto 1fr; }
  .mt-bar { display: none; }
  .mt-main { grid-template-columns: 1fr; }
  .mt-stage { position: absolute; inset: 0; }
  .mt-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; height: var(--sheet-h, 46%); border-right: 0; border-radius: var(--k-r-4) var(--k-r-4) 0 0; box-shadow: var(--k-shadow-3); transition: height 220ms ease; }
  .mt-main[data-sheet="peek"] { --sheet-h: 164px; }
  .mt-main[data-sheet="half"] { --sheet-h: 52%; }
  .mt-main[data-sheet="full"] { --sheet-h: calc(100% - 64px); }
  .mt-grip { display: block; width: 100%; height: 22px; border: 0; background: transparent; cursor: pointer; position: relative; flex: none; }
  .mt-grip::after { content: ""; position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--k-border-strong); }
  .mt-ab { padding-top: 2px; }
  .mt-phonebar { display: flex; position: absolute; left: 12px; right: 12px; top: 12px; z-index: 6; gap: 8px; align-items: center; }
  .mt-phonebar .mt-city, .mt-phonebar .mt-seg { box-shadow: var(--k-shadow-2); }
  .mt-phonebar .mt-seg { margin-left: auto; }
  .mt-top { top: 62px; }
  .mt-ctl { bottom: calc(var(--sheet-h, 46%) + 12px); }
  .mt-legend { display: none; }
  /* RU: Лицензию на телефоне не прячем (ODbL): слева над шторкой, кнопки масштаба справа. EN: Keep the licence on phones. */
  .mt-attr { right: auto; left: 8px; bottom: calc(var(--sheet-h, 46%) + 6px); }
}
@media (prefers-reduced-motion: reduce) {
  .mt-panel { transition: none; }
  .mt-skeleton { animation: none; }
}
