/* Карта мотоциклиста (map.2kolesa.kz). Mobile first; цвета и шрифт — по брендбуку 2KOLESA Moto Hub. */
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(fonts/onest-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: Onest; font-weight: 600; font-display: swap; src: url(fonts/onest-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: Onest; font-weight: 800; font-display: swap; src: url(fonts/onest-cyrillic-800-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Onest; font-weight: 400; font-display: swap; src: url(fonts/onest-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Onest; font-weight: 600; font-display: swap; src: url(fonts/onest-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Onest; font-weight: 800; font-display: swap; src: url(fonts/onest-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }

:root {
  --plum: #320932; --white: #FCFCFC; --pink: #F3A4A1; --coral: #E94C45;
  --card: #F5ECF2; --line: #D9C7D4; --rule: #F0E4EC; --muted: #6B5468; --muted-dark: #D9CBD8;
  --green: #2F7D6D; --blue: #3B5BA9; --amber: #A3361F; --closed: #9A8796;
  --shadow: 0 4px 16px rgba(50, 9, 50, .14);
  --top-h: 0px; --panel: 400px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body { font: 400 15px/1.4 Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--plum); background: #F2EDF0; overflow: hidden; -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

.app { position: fixed; inset: 0; }
.map { position: absolute; inset: 0; z-index: 0; isolation: isolate; }   /* метки (и выбранная) остаются внутри карты — под шторкой и верхней панелью */
.map-fail { position: absolute; left: 16px; right: 16px; top: 45%; margin: 0; padding: 14px 16px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); text-align: center; color: var(--muted); }

/* Верх: поиск, намерения, фильтры */
.top { position: absolute; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); display: flex; flex-direction: column; gap: 10px; z-index: 3; pointer-events: none; }
.top > * { pointer-events: auto; }
.search { height: 52px; border-radius: 16px; background: var(--white); box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px; padding: 0 8px 0 14px; }
.search-icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-weight: 500; font-size: 16px; }
.search input::placeholder { color: var(--muted); }
.demo { flex: none; padding: 4px 8px; border-radius: 8px; background: var(--card); color: var(--muted); font-size: 12px; font-weight: 600; }
.intent-chip { flex: none; height: 36px; padding: 0 2px 0 12px; border-radius: 12px; background: var(--plum); color: var(--white); display: flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; }
.app[data-intent] .intent-chip:not([hidden]) ~ input + .demo { display: none; }
.app[data-intent]:not([data-intent=""]) .search-icon { display: none; }
.intent-chip-x { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: var(--white); display: flex; align-items: center; justify-content: center; }
.intent-chip-x .i { width: 16px; height: 16px; }

.intents { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; padding: 10px 6px; border-radius: 20px; background: var(--white); box-shadow: var(--shadow); }
.intent { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-align: center; line-height: 1.2; min-width: 0; }
.intent span { width: 44px; height: 44px; border-radius: 14px; background: var(--card); display: flex; align-items: center; justify-content: center; transition: background .15s; }
.intent:hover span { background: #EBDDE6; }
.app:not([data-intent=""]) .intents { display: none; }

.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 44px; min-width: 44px; padding: 0 11px; border: 0; border-radius: 22px; background: var(--white); box-shadow: 0 2px 8px rgba(50, 9, 50, .14); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 600; }
.cat .i { width: 20px; height: 20px; }
.cat .cat-label { display: none; }
.cat[aria-pressed="true"] { background: var(--plum); color: var(--white); padding: 0 14px 0 12px; }
.cat[aria-pressed="true"] .cat-label { display: inline; }
.cat-open { color: var(--green); }
.cat-open .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.cat-open[aria-pressed="true"] { background: var(--green); color: var(--white); }
.cat-open[aria-pressed="true"] .dot { background: var(--white); }

/* Кнопки на карте */
.fab { position: absolute; right: 16px; z-index: 2; border: 0; display: flex; align-items: center; justify-content: center; transition: bottom .25s ease; }
.fab-add { width: 56px; height: 56px; border-radius: 18px; background: var(--coral); color: var(--plum); box-shadow: 0 6px 16px rgba(233, 76, 69, .4); bottom: calc(var(--sheet-h, 200px) + 76px); }
.fab-add .i { width: 26px; height: 26px; stroke-width: 2.4; }
.fab-locate { width: 48px; height: 48px; border-radius: 50%; background: var(--white); color: var(--plum); box-shadow: 0 4px 12px rgba(50, 9, 50, .18); right: 20px; bottom: calc(var(--sheet-h, 200px) + 16px); }
.app[data-sheet="full"] .fab, .app.is-card .fab-add { opacity: 0; pointer-events: none; }
/* «+» только на главном экране: одна коралловая кнопка на экран */
.app:not([data-intent=""]) .fab-add { display: none; }

/* Маркеры */
.pin { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--white); box-shadow: 0 2px 6px rgba(50, 9, 50, .3); display: flex; align-items: center; justify-content: center; color: var(--white); background: var(--plum); cursor: pointer; padding: 0; transition: transform .15s; }
.pin .i { width: 18px; height: 18px; }
.pin.g-shop { background: var(--coral); color: var(--plum); }
.pin.g-gather { background: var(--green); }
.pin.g-road { background: var(--green); width: 30px; height: 30px; }
.pin.g-road .i { width: 16px; height: 16px; }
.pin.c-hazard { background: #F2B33D; color: var(--plum); }
.pin.is-closed { background: var(--closed); color: var(--white); }
.pin.is-active { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(233, 76, 69, .45), 0 3px 10px rgba(50, 9, 50, .35); }
.pin-ride { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 20px; border: 0; background: var(--white); box-shadow: 0 2px 6px rgba(50, 9, 50, .25); font-size: 12px; font-weight: 700; cursor: pointer; }
.pin-ride span { width: 26px; height: 26px; border-radius: 50%; background: var(--pink); display: flex; align-items: center; justify-content: center; }
.pin-ride .i { width: 16px; height: 16px; }
.pin-end { padding: 3px 8px; border-radius: 8px; background: var(--plum); color: var(--white); font-size: 12px; font-weight: 700; }
.me { width: 18px; height: 18px; border-radius: 50%; background: var(--blue); border: 3px solid var(--white); box-shadow: 0 0 0 10px rgba(59, 91, 169, .18); }

/* Шторка */
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; height: var(--sheet-h, 200px); border-radius: 24px 24px 0 0; background: var(--white); box-shadow: 0 -6px 24px rgba(50, 9, 50, .14); display: flex; flex-direction: column; transition: height .25s ease; padding-bottom: env(safe-area-inset-bottom); }
/* Полоса управления шторкой: видимые стрелки (касание) + свайп по всей полосе */
.sheet-bar { flex: none; height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; touch-action: none; cursor: grab; user-select: none; }
.sheet-btn { width: 72px; height: 36px; border: 0; border-radius: 18px; background: var(--plum); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(50, 9, 50, .22); }
.sheet-btn .i { width: 24px; height: 24px; stroke-width: 2.4; }
.sheet-btn:active { transform: scale(.94); }
.app[data-sheet="full"] .maplibregl-ctrl-bottom-left, .app[data-sheet="full"] .maplibregl-ctrl-bottom-right { display: none; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
.sheet[data-state="peek"] .sheet-body { overflow: hidden; }
.build { margin: 0; padding: 6px 16px 10px; font-size: 11px; color: var(--muted); border-top: 1px solid var(--rule); }

.head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 2px 0 10px; }
.head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.head small { color: var(--muted); font-size: 13px; }

.tiles { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.tiles::-webkit-scrollbar { display: none; }
.tile { flex: 0 0 148px; padding: 12px; border: 0; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; }
.tile b { font-size: 14px; }
.tile small { font-size: 12.5px; color: var(--muted); }

.row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; }
.row:last-child { border-bottom: 0; }
.row-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--card); display: flex; align-items: center; justify-content: center; flex: none; }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-main b { font-size: 15px; }
.row-main small { font-size: 13px; color: var(--muted); }
.open { color: var(--green); font-weight: 600; }
.closed { color: var(--muted); font-weight: 600; }
.empty { padding: 24px 0; text-align: center; color: var(--muted); }

/* Карточка */
.card-top { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.card-top h2 { flex: 1; margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--card); display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.checked { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
.checked .i { width: 16px; height: 16px; color: var(--green); }
.actions { display: flex; gap: 10px; margin-bottom: 16px; }
.btn-main { flex: 1; height: 54px; border: 0; border-radius: 16px; background: var(--coral); color: var(--plum); display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 700; text-decoration: none; }
.btn-main[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-sq { width: 54px; height: 54px; border: 0; border-radius: 16px; background: var(--card); display: flex; align-items: center; justify-content: center; flex: none; text-decoration: none; }
.label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { height: 34px; padding: 0 12px; border-radius: 17px; background: var(--card); display: inline-flex; align-items: center; font-size: 13.5px; font-weight: 600; }
.nav-links { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--muted); }
.nav-links a { padding: 9px 12px; border-radius: 10px; background: var(--card); color: var(--plum); font-weight: 600; text-decoration: none; }
.note { margin: 0 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--card); font-size: 13px; color: var(--muted); }

/* Маршруты и поездки */
.r-card { width: 100%; padding: 14px; margin-bottom: 10px; border: 2px solid transparent; border-radius: 18px; background: var(--card); display: flex; flex-direction: column; gap: 10px; text-align: left; }
.r-card.is-active { border-color: var(--plum); background: var(--white); }
.r-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.r-title b { font-size: 16px; font-weight: 800; }
.r-title small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.surface { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: #C9B49A; }
.surface span { background: var(--plum); }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 4px; }
.facts .i { width: 16px; height: 16px; }
.date { width: 56px; flex: none; padding: 6px 0; border-radius: 12px; background: var(--plum); color: var(--white); display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: 13px; text-align: center; }
.go { height: 44px; padding: 0 22px; border: 0; border-radius: 14px; background: var(--coral); color: var(--plum); font-weight: 700; flex: none; }

/* Добавить */
.add-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; margin-bottom: 16px; }
.add-grid button { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.add-grid span { width: 56px; height: 56px; border-radius: 18px; background: var(--card); display: flex; align-items: center; justify-content: center; }
.add-grid .hot span { background: var(--pink); }

.toast { position: fixed; left: 50%; bottom: calc(var(--sheet-h, 200px) + 24px); transform: translateX(-50%); z-index: 9; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 14px; background: var(--plum); color: var(--white); font-size: 14px; box-shadow: var(--shadow); }

.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: var(--sheet-h, 200px); }

/* Широкий экран: шторка становится левой панелью, логика та же */
@media (min-width: 900px) {
  .map { left: var(--panel); }
  .map-fail { left: calc(var(--panel) + 24px); right: 24px; }
  .top { left: 0; right: auto; top: 0; width: var(--panel); padding: 16px 20px 12px; background: var(--white); border-bottom: 1px solid var(--rule); }
  .search, .intents { box-shadow: none; border: 1px solid var(--line); }
  .cat { box-shadow: none; background: var(--card); }
  .sheet { left: 0; right: auto; top: var(--top-h); bottom: 0; width: var(--panel); height: auto !important; border-radius: 0; box-shadow: 4px 0 24px rgba(50, 9, 50, .08); }
  .sheet-bar { display: none; }
  .sheet-body { overflow-y: auto !important; padding-top: 12px; }
  .fab-add { bottom: 92px; right: 24px; }
  .fab-locate { bottom: 32px; right: 28px; }
  .toast { left: calc(var(--panel) + (100% - var(--panel)) / 2); bottom: 32px; }
  .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: 0; }
  .app[data-sheet="full"] .fab { opacity: 1; pointer-events: auto; }
}

/* Настоящие точки: маркер с подписью, отметка в списке, адрес и описание в карточке (07.11) */
.pin.pin-real { width: auto; height: 36px; padding: 0 12px 0 3px; border-radius: 20px; gap: 6px; font: 700 12.5px Onest, system-ui, sans-serif; white-space: nowrap; z-index: 2; }
.pin.pin-real span { width: 28px; height: 28px; border-radius: 50%; background: var(--pink); color: var(--plum); display: flex; align-items: center; justify-content: center; }
.pin.pin-real.g-shop span { background: var(--white); }
.pin.pin-real.is-closed { background: var(--plum); color: var(--white); }
.pin.pin-real.g-shop.is-closed { background: var(--coral); color: var(--plum); }
.pin.pin-real.is-closed span { background: #D9CBD8; }
.pin.pin-real.is-active { transform: scale(1.12); }
.real-mark { display: inline-flex; vertical-align: -3px; color: var(--green); }
.real-mark .i { width: 16px; height: 16px; }
.addr { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 12px; font-size: 14px; }
.addr .i { width: 18px; height: 18px; color: var(--muted); margin-top: 1px; }
.about { margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.note.warn { background: #FFF4DE; color: #6B4A00; }

/* Выбор навигатора: окно снизу поверх карты, один тап — и мы в навигаторе */
.chooser { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; }
.chooser-back { position: absolute; inset: 0; background: rgba(50, 9, 50, .45); }
.chooser-box { position: relative; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border-radius: 24px 24px 0 0; background: var(--white); padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 32px rgba(50, 9, 50, .25); }
.chooser-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.chooser-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.chooser-list { display: flex; flex-direction: column; gap: 8px; }
.nav-app { width: 100%; min-height: 60px; padding: 8px 12px; border: 0; border-radius: 16px; background: var(--card); display: flex; align-items: center; gap: 12px; text-align: left; text-decoration: none; color: var(--plum); }
.nav-app:active { transform: scale(.98); }
.nav-mark { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font: 800 18px Onest, system-ui, sans-serif; flex: none; }
.nav-yandex { background: #FFDB4D; color: #1A1A1A; }
.nav-2gis { background: #2FAA4E; color: #FFFFFF; }
.nav-google { background: #FFFFFF; color: #3B5BA9; border: 1px solid var(--line); }
.nav-gpx { background: var(--plum); color: var(--white); }
.nav-text { display: flex; flex-direction: column; gap: 2px; }
.nav-text b { font-size: 16px; }
.nav-text small { font-size: 12.5px; color: var(--muted); }
.chooser-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.chooser-note:empty { display: none; }
@media (min-width: 900px) {
  .chooser { align-items: center; }
  .chooser-box { border-radius: 20px; }
}

/* Подписи маркеров: при отдалении маркер — значок, при приближении — значок с названием. У всех точек одинаково, 2KOLESA тоже (09.11) */
.pin.pin-real { padding: 0 3px; }
.pin.pin-real .pin-label { display: none; font-weight: 700; }
.app.zoom-near .pin.pin-real { padding: 0 12px 0 3px; }
.app.zoom-near .pin.pin-real .pin-label { display: inline; }

/* Выбранная точка всегда поверх соседних (например, два магазина в одном здании) */
.maplibregl-marker:has(.is-active), .pin.is-active { z-index: 5; }

/* ---------- Фото и видео мест и маршрутов (08.11) ---------- */
/* Лента: первое медиа крупно, остальные меньше; листается пальцем; без рамок и подписей — только картинка */
.m-strip { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px; }
.m-strip::-webkit-scrollbar { display: none; }
.m-tile, .m-add { position: relative; flex: 0 0 auto; width: 112px; height: 140px; border: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--card); scroll-snap-align: start; }
.m-strip:not(.is-small) .m-tile:first-child { width: min(58vw, 224px); }
.m-strip.is-one .m-tile:first-child { width: 100%; height: 172px; }
.m-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-noposter { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.m-dur { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 2px; padding: 3px 8px 3px 4px; border-radius: 10px; background: rgba(20, 4, 20, .62); color: #fff; font-size: 12px; font-weight: 700; }
.m-dur .i { width: 14px; height: 14px; fill: #fff; stroke: none; }
.m-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; background: #FFF4DE; color: #6B4A00; font-size: 11.5px; font-weight: 700; }
.m-tile .m-badge { position: absolute; left: 6px; top: 6px; }
.m-tile.is-pending img { opacity: .8; }
.m-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed var(--line); background: var(--white); color: var(--plum); font-size: 13px; font-weight: 700; cursor: pointer; text-align: center; padding: 8px; }
.m-add small { color: var(--muted); font-weight: 600; font-size: 12px; }
.m-add.is-full { cursor: default; }
.m-strip.is-small { margin-bottom: 4px; }
.m-strip.is-small .m-tile, .m-strip.is-small .m-add { width: 92px; height: 116px; border-radius: 12px; }
.m-strip.is-small .m-add span { font-size: 12px; }
.r-thumb { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }

/* Просмотр на весь экран: свайп, видео без звука по кругу, звук — по кнопке */
.viewer { position: fixed; inset: 0; z-index: 30; background: #0E030E; color: #fff; display: flex; flex-direction: column; }
body.v-open .toast { bottom: 28px; z-index: 31; }
.v-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; background: linear-gradient(rgba(0,0,0,.5), transparent); pointer-events: none; }
.v-top > * { pointer-events: auto; }
.v-count { font-weight: 700; font-size: 15px; }
.v-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; }
.v-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.v-track::-webkit-scrollbar { display: none; }
.v-slide { position: relative; flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.v-slide img, .v-slide video { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.v-sound { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: flex; align-items: center; justify-content: center; opacity: .75; }
.v-sound.is-on { background: var(--coral); color: var(--plum); opacity: 1; }
.v-arrow { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; display: none; align-items: center; justify-content: center; z-index: 2; }
.v-prev { left: 16px; }
.v-next { right: 16px; transform: scaleX(-1); }
@media (hover: hover) and (min-width: 700px) { .v-arrow { display: flex; } .v-arrow[hidden] { display: none !important; } }
.v-bottom { padding: 10px 16px calc(14px + env(safe-area-inset-bottom)); }
.v-bottom:empty { display: none; }
.v-stop { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-weight: 700; color: var(--pink); }
.v-stop .i { width: 18px; height: 18px; }
.v-cap { margin: 0; font-size: 14.5px; line-height: 1.4; }
.v-edit { display: flex; flex-direction: column; gap: 8px; }
.v-edit input, .v-edit select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 16px; }
.v-edit select option { color: var(--plum); }
.v-edit-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chip { height: 40px; padding: 0 14px; border: 0; border-radius: 12px; background: rgba(255,255,255,.14); color: inherit; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; text-decoration: none; }
.v-chip .i { width: 18px; height: 18px; }
.v-chip.is-ok { background: var(--green); color: #fff; }
.v-chip.is-del { background: rgba(233, 76, 69, .9); color: var(--plum); }
.sheet .v-chip { background: var(--card); color: var(--plum); }
.sheet .v-chip.is-ok { background: var(--green); color: #fff; }
.sheet .v-chip.is-del { background: #FBE3E1; color: var(--amber); }

/* Остановки маршрута */
.stops { list-style: none; margin: 0 0 14px; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; border-left: 2px dashed var(--line); }
.stop { position: relative; padding: 0 0 12px; }
.stop-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px 0; border: 0; background: none; text-align: left; }
.stop-num { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex: none; }
.stop-ic { width: 36px; height: 36px; border-radius: 12px; background: var(--card); display: flex; align-items: center; justify-content: center; flex: none; }
.stop-ic .i { width: 20px; height: 20px; }
.stop-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stop-main b { font-size: 15px; }
.stop-main small { font-size: 12.5px; color: var(--muted); }
.stop-note { margin: 0 0 6px 38px; font-size: 13.5px; color: var(--muted); }
.stop .m-strip { margin-left: 22px; }
.k-start .stop-num, .k-finish .stop-num { background: var(--coral); color: var(--plum); }
.k-sleep .stop-ic { background: #E3E9F7; }
.k-food .stop-ic { background: #FBE7D8; }
.k-sight .stop-ic, .k-view .stop-ic { background: #E1F0EC; }
.k-fuel .stop-ic { background: #E1F0EC; color: var(--green); }
.pin-stop { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font: 800 13px Onest, system-ui, sans-serif; box-shadow: 0 2px 6px rgba(50, 9, 50, .3); cursor: pointer; padding: 0; }
.pin-stop.k-start, .pin-stop.k-finish { background: var(--coral); color: var(--plum); }
.pin-stop.is-active { transform: scale(1.2); box-shadow: 0 0 0 4px rgba(233, 76, 69, .45); }

/* Конструктор маршрута */
.stops.is-edit .stop { padding-bottom: 4px; }
.stops.is-edit .stop.is-open { padding-bottom: 12px; }
.stop-head > .i { color: var(--muted); }
.stop-form { margin-left: 38px; display: flex; flex-direction: column; gap: 8px; }
.kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.kind { height: 38px; padding: 0 10px; border: 0; border-radius: 19px; background: var(--card); display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; }
.kind .i { width: 17px; height: 17px; }
.kind.is-on { background: var(--plum); color: #fff; }
.form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input:not([type=radio]), .form select, .form textarea, .stop-form input, .stop-form textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--plum); font: inherit; font-size: 16px; }
.form textarea, .stop-form textarea { resize: vertical; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { flex-direction: row; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { height: 40px; padding: 0 14px; border-radius: 20px; background: var(--card); color: var(--plum); display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--plum); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--coral); }
.btn-main:disabled { opacity: .5; cursor: not-allowed; }
.b-save { width: 100%; flex: none; margin-bottom: 10px; }
.hint { display: flex; align-items: center; gap: 8px; color: var(--plum); background: #FFF0EF; }
.hint .i { width: 18px; height: 18px; color: var(--coral); }
.app.is-build .map { cursor: crosshair; }
.app.is-build .fab-locate { opacity: 1; pointer-events: auto; }

/* «+»: кто вошёл, кнопки команды, ссылки */
.who { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 12px; border-radius: 14px; background: var(--card); }
.who > span { flex: 1; display: flex; flex-direction: column; }
.who small { color: var(--muted); font-size: 12.5px; }
.big-btn { width: 100%; min-height: 54px; margin-bottom: 10px; padding: 0 16px; border: 0; border-radius: 16px; background: var(--coral); color: var(--plum); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; text-decoration: none; text-align: left; }
.big-btn.is-light { background: var(--card); }
.link-btn { border: 0; background: none; padding: 8px 6px; color: var(--plum); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; flex: none; }
.link-btn.is-ok { color: var(--green); }
.team-login { display: flex; align-items: center; gap: 6px; margin: 6px auto 0; color: var(--muted); font-weight: 600; }
.team-login .i { width: 16px; height: 16px; }
.link-row { display: flex; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.link-row > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.link-row small { color: var(--muted); font-size: 12.5px; }
.made { padding: 12px; margin-bottom: 14px; border-radius: 14px; background: #E1F0EC; }
.made p { margin: 0 0 8px; font-size: 14px; }
.made code { display: block; margin-bottom: 10px; padding: 8px 10px; border-radius: 10px; background: #fff; font-size: 12.5px; word-break: break-all; }
.up-toast { display: flex; flex-direction: column; gap: 6px; min-width: 220px; }
.up-toast i { display: block; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); overflow: hidden; }
.up-toast b { display: block; height: 100%; width: 0; background: var(--coral); transition: width .2s; }
.m-add-chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0 0 4px 38px; padding: 0 12px; border: 1.5px dashed var(--line); border-radius: 18px; color: var(--plum); font-size: 13px; font-weight: 600; cursor: pointer; }
.m-add-chip .i { width: 17px; height: 17px; }
.card-top + .m-strip + .meta + .actions + .facts, .actions + .facts { margin-bottom: 14px; }
.unoff { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 7px; border-radius: 8px; background: #FDF1D8; color: #7A5A12; font-size: 11px; font-weight: 600; }
/* Шесть кнопок: на узких телефонах ряд листается пальцем, кнопки не сжимаются */
@media (max-width: 400px) {
  .intents { gap: 2px; padding: 10px 4px; }
  .intent { font-size: 10px; letter-spacing: -.1px; }
  .intent span { width: 40px; height: 40px; }
}
@media (max-width: 360px) {
  .intents { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 58px; overflow-x: auto; scrollbar-width: none; }
  .intents::-webkit-scrollbar { display: none; }
}
.pin.g-learn { background: var(--plum); }
/* Свёрнутая шторка — одна строка «что найдено» и стрелка; раскрывается только по нажатию */
.sheet-sum { display: none; flex: 1; min-width: 0; border: 0; background: none; padding: 0; text-align: left; font: inherit; font-size: 15px; font-weight: 700; color: var(--plum); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-sum.is-empty { font-weight: 500; color: var(--muted, #7d6a7d); cursor: default; }
.sheet[data-state="peek"] .sheet-bar { justify-content: space-between; padding: 0 12px 0 20px; height: 56px; }
.sheet[data-state="peek"] .sheet-sum { display: block; }
.sheet[data-state="peek"] .sheet-btn { width: 56px; }
.v-credit { margin: 4px 0 0; font-size: 11px; color: rgba(255, 255, 255, .6); }
