/* ==========================================================================
   Social Pulse Mini App — дизайн-система
   ==========================================================================
   Палитра:
     --teal    #0E3B36  тёмный изумруд — фон, шапка, карта
     --gold    #C9A227  золото — фирменный акцент, использовать скупо
     --sand    #F3EAD6  тёплый песочный — светлые поверхности, карточки
     --ink     #1B1410  почти чёрный тёплый — текст на светлом
     --ember   #C1543D  тёплый терракот — CTA, спонсорские метки, рейтинг

   Шрифты:
     Display — Marcellus (гравированная латунная табличка, роскошь
       дубайского отеля, без клише «арабской» декоративной латиницы)
     Body    — Manrope (чистый геометричный гротеск, корректно рендерит
       кириллицу; для арабского языка — системный фолбэк на Noto Sans Arabic)

   Фирменный элемент: восьмиконечная звезда (хатам) — подлинный мотив
   исламской геометрии, не костюмная стилизация. Используется как форма
   маркера на карте, значок спонсорских мест, индикатор загрузки.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --teal: #0E3B36;
    --teal-light: #164A44;
    --teal-dim: #0A2E2A;
    --gold: #C9A227;
    --gold-soft: rgba(201, 162, 39, 0.16);
    --sand: #F3EAD6;
    --sand-dim: #EADFC5;
    --ink: #1B1410;
    --ink-soft: #5A5048;
    --ember: #C1543D;
    --white: #FFFFFF;

    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 8px 24px rgba(14, 59, 54, 0.18);

    --font-display: 'Marcellus', Georgia, serif;
    --font-body: 'Manrope', 'Noto Sans Arabic', -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    background: var(--teal);
    color: var(--ink);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overscroll-behavior: none;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 560px;
    margin: 0 auto;
    background: var(--sand);
    position: relative;
}

/* ===== Восьмиконечная звезда — фирменный элемент, переиспользуется ===== */
.star8 {
    display: inline-block;
    width: 1em;
    height: 1em;
    transform: scale(var(--icon-scale, 1));
    background: currentColor;
    clip-path: polygon(
        50% 0%, 61% 20%, 82% 12%, 79% 34%, 100% 41%, 84% 56%,
        94% 76%, 72% 74%, 68% 96%, 50% 84%, 32% 96%, 28% 74%,
        6% 76%, 16% 56%, 0% 41%, 21% 34%, 18% 12%, 39% 20%
    );
}

/* ===== Шапка ===== */
.header {
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dim) 100%);
    color: var(--sand);
    padding: 18px 20px 16px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.header::after {
    /* фоновая решётка из восьмиконечных звёзд — тихий орнамент, не кричащий */
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(var(--gold-soft) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .5;
    pointer-events: none;
}
.header-top {
    display: flex; align-items: center; justify-content: space-between;
    position: relative; z-index: 1;
}
.brand {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display);
    font-size: 22px; letter-spacing: .02em;
}
.brand .star8 { color: var(--gold); width: .8em; height: .8em; }
.tier-badge {
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 20px;
    background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold);
}
.search-bar {
    margin-top: 14px; position: relative; z-index: 1;
}
.search-bar input {
    width: 100%; border: none; border-radius: var(--radius-sm);
    padding: 12px 16px 12px 40px; font-size: 15px; font-family: var(--font-body);
    background: rgba(255,255,255,.94); color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-soft); }
.search-icon {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--ink-soft); font-size: 15px;
}

/* ===== Категории (горизонтальный скролл) ===== */
.categories {
    display: flex; gap: 8px; padding: 14px 20px; overflow-x: auto;
    flex-shrink: 0; background: var(--sand);
    scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.pill {
    flex-shrink: 0; padding: 8px 16px; border-radius: 20px;
    font-size: 13px; font-weight: 600; white-space: nowrap;
    background: var(--white); color: var(--ink-soft);
    border: 1px solid var(--sand-dim); cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.pill.active {
    background: var(--teal); color: var(--sand); border-color: var(--teal);
}

/* ===== Переключатель Список/Карта ===== */
.view-toggle {
    display: flex; gap: 4px; margin: 0 20px 12px; padding: 4px;
    background: var(--white); border-radius: var(--radius-sm); flex-shrink: 0;
}
.view-toggle button {
    flex: 1; border: none; background: transparent; padding: 8px; border-radius: 9px;
    font-family: var(--font-body); font-weight: 700; font-size: 13px;
    color: var(--ink-soft); cursor: pointer; transition: background .15s, color .15s;
}
.view-toggle button.active { background: var(--teal); color: var(--sand); }

/* ===== Контент ===== */
.content { flex: 1; overflow-y: auto; padding: 0 20px 90px; }

/* Отступ от шапки для вкладок, содержимое которых идёт сразу под ней.
   На «Главной» этого делать не нужно: там между шапкой и списком мест
   уже стоят блоки категорий и переключателя вида (они лежат ВНЕ
   .content и имеют собственные отступы), и общий padding-top у .content
   создал бы там лишний двойной зазор. На остальных вкладках эти блоки
   скрыты, поэтому карточка прилипала вплотную к тёмной шапке. */
.metro-wrap,
.events-wrap,
.re-wrap,
.booking-wrap,
.subscribe-wrap,
.profile-wrap { padding-top: 16px; }

.place-list { display: flex; flex-direction: column; gap: 12px; }
.place-card {
    background: var(--white); border-radius: var(--radius);
    padding: 14px; display: flex; gap: 12px; box-shadow: var(--shadow);
    position: relative; cursor: pointer;
}
.place-thumb {
    width: 64px; height: 64px; border-radius: var(--radius-sm); flex-shrink: 0;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    display: flex; align-items: center; justify-content: center;
    color: var(--gold); font-size: 22px;
}
.place-info { flex: 1; min-width: 0; }
.place-name {
    font-family: var(--font-display); font-size: 16px; color: var(--ink);
    display: flex; align-items: center; gap: 6px;
}
.place-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.place-rating {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 12.5px; font-weight: 700; color: var(--ember); margin-top: 6px;
}
.place-rating .star8 { width: .85em; height: .85em; }
.sponsored-badge {
    /* Под сердечком, а не рядом: так обе метки в одном углу и не
       конкурируют за место с названием. */
    position: absolute; top: 44px; right: 10px;
    color: var(--gold); display: flex; align-items: center; gap: 3px;
    font-size: 10px; font-weight: 700;
}
.sponsored-badge .star8 { width: 12px; height: 12px; }
.promo-badge {
    display: inline-flex; align-items: center; gap: 3px;
    color: var(--ember); font-size: 11px; font-weight: 700; margin-top: 2px;
}

/* ===== Карта ===== */
#map { height: 100%; width: 100%; border-radius: var(--radius); overflow: hidden; }
.map-wrap { height: 100%; }
.leaflet-popup-content-wrapper { border-radius: var(--radius-sm); font-family: var(--font-body); }
.map-pin {
    width: 30px; height: 30px; display: flex; align-items: center; justify-content: center;
    background: var(--teal); border: 2px solid var(--gold); border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg); box-shadow: var(--shadow);
}
.map-pin .star8 { color: var(--gold); width: 12px; height: 12px; transform: rotate(45deg); }

/* ===== Пустые/загрузка состояния ===== */
.state-block {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 60px 20px; text-align: center; color: var(--ink-soft); gap: 12px;
}
.state-block .star8 { color: var(--gold); width: 32px; height: 32px; animation: spin8 1.4s linear infinite; }
@keyframes spin8 { to { transform: rotate(360deg); } }

/* ===== Нижняя навигация ===== */
.bottom-nav {
    position: absolute; left: 0; right: 0; bottom: 0;
    background: var(--white); border-top: 1px solid var(--sand-dim);
    display: flex; padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    max-width: 560px; margin: 0 auto;
    /* z-index обязателен: у кнопки «в избранное» на карточке места задан
       z-index: 2, а у панели его не было вовсе — из-за этого сердечко
       проступало ПОВЕРХ нижнего меню при прокрутке списка. Значение 100
       выше любых элементов контента, но ниже модальных листов
       (.sheet-overlay = 1000, .filter-sheet-overlay = 1010) — они должны
       перекрывать в том числе и навигацию. */
    z-index: 100;
}
.nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 5px 2px; border: none; background: transparent; cursor: pointer;
    color: var(--ink-soft); font-family: var(--font-body); font-size: 10px; font-weight: 800;
    white-space: nowrap;
}
.nav-item.active { color: var(--teal); }
.nav-item .nav-icon { font-size: 17px; }

/* ===== Карточка деталей места (модальный лист снизу) ===== */
.sheet-overlay {
    /* Было z-index: 50 — у Leaflet собственные внутренние слои (тайлы,
       подсказки, попапы) доходят до z-index: 700, поэтому карточка места
       открывалась ПОЗАДИ карты при клике "Подробнее" на попапе маркера.
       1000 — с большим запасом выше максимума Leaflet. */
    position: fixed; inset: 0; background: rgba(14,59,54,.55);
    display: none; align-items: flex-end; justify-content: center; z-index: 1000;
}
.sheet-overlay.open { display: flex; }
.sheet {
    background: var(--sand); border-radius: 24px 24px 0 0; width: 100%; max-width: 560px;
    max-height: 82vh; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
}
.sheet-handle { width: 40px; height: 4px; background: var(--sand-dim); border-radius: 4px; margin: 0 auto 16px; }
.sheet-title { font-family: var(--font-display); font-size: 22px; margin-bottom: 6px; }
.sheet-actions { display: flex; gap: 8px; margin-top: 18px; }
.btn {
    /* var(--btn-radius, var(--radius-sm)) — отдельная переменная именно
       под кнопки, не общая --radius-sm (та используется ещё и у карточек
       мест, поисковой строки, попапов карты — переопределять её из
       настройки "скругление кнопок" задело бы их все заодно, не
       ограничившись кнопками). Фолбэк на --radius-sm сохраняет текущий
       вид, если настройка ни разу не сохранялась. */
    flex: 1; padding: 12px; border-radius: var(--btn-radius, var(--radius-sm)); border: none;
    font-family: var(--font-body); font-weight: var(--btn-font-weight, 700); font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-primary { background: var(--teal); color: var(--sand); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1px solid var(--sand-dim); }

@media (prefers-reduced-motion: reduce) {
    .state-block .star8 { animation: none; }
}

/* ===== Недвижимость (VIP) ===== */
.re-wrap { display: flex; flex-direction: column; min-height: 100%; }
.re-header { padding: 4px 4px 12px; }
.re-title {
    display: flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-size: 19px; color: var(--teal);
}
.re-title .star8 { color: var(--gold); }
.re-disclaimer { font-size: 11.5px; color: var(--ink-soft); margin-top: 4px; line-height: 1.4; }

.re-metrics { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.re-metric-pill {
    display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px;
    background: var(--white); border: 1.5px solid var(--sand-dim); cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--ink-soft); transition: all .15s;
}
.re-metric-pill.active { background: var(--teal); border-color: var(--teal); color: var(--sand); }
.re-metric-pill input { display: none; }

.re-map-wrap {
    height: 260px; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); flex-shrink: 0;
    touch-action: none;   /* см. .metro-map-wrap — тот же фикс сдвига всего экрана при свайпе по карте */
}
#reMap { height: 100%; width: 100%; }
.re-legend { font-size: 11px; color: var(--ink-soft); padding: 8px 4px; }

.re-analysis {
    background: var(--white); border-radius: var(--radius); padding: 16px;
    margin: 0 20px 20px; font-size: 13.5px; line-height: 1.55; color: var(--ink);
    box-shadow: var(--shadow); display: none;
}
.re-analysis.visible { display: block; }
.re-analysis-note { font-size: 11px; color: var(--ink-soft); margin-top: 10px; font-style: italic; }

/* ===== ROI-калькулятор ===== */
.roi-panel {
    background: var(--white); border-radius: var(--radius); padding: 18px;
    margin: 0 20px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
}
.roi-section-title {
    font-family: var(--font-display); font-size: 15px; color: var(--teal);
    margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--sand-dim);
}
.roi-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.roi-panel .filter-select { width: 100%; }

.roi-results {
    background: var(--sand); border-radius: var(--radius-sm); padding: 14px; margin-top: 12px;
}
.roi-results-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.roi-result-stat { background: var(--white); border-radius: 10px; padding: 10px; text-align: center; }
.roi-result-stat b { display: block; font-family: var(--font-display); font-size: 17px; color: var(--teal); }
.roi-result-stat.highlight b { color: var(--gold); }
.roi-result-stat span { font-size: 10px; color: var(--ink-soft); }

.roi-info-block { margin-top: 8px; }
.roi-cost-table { width: 100%; font-size: 12px; border-collapse: collapse; }
.roi-cost-table td { padding: 5px 0; border-bottom: 1px solid var(--sand-dim); }
.roi-cost-table td:last-child { text-align: right; color: var(--ink-soft); }

.roi-golden-visa {
    font-size: 13px; padding: 10px 12px; border-radius: 8px; background: var(--sand);
}
.roi-golden-visa.eligible { background: rgba(87, 201, 138, .15); color: #2A7A4F; font-weight: 700; }
.roi-golden-visa.not-eligible { background: rgba(193, 84, 61, .1); color: var(--ember); }

/* ===== События ===== */
.events-wrap { display: flex; flex-direction: column; min-height: 100%; }
.event-list { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }
.event-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer;
}
.event-card-photo {
    height: 140px; width: 100%; object-fit: cover; display: block;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
}
/* Шапка карточки без фотографии.
   Было: 140px сплошной заливки с одним крупным эмодзи по центру — почти
   треть экрана уходила на пустое место, и список из пяти событий не
   помещался целиком. Стало: компактная полоса 76px, в которой слева
   название категории, справа — «отрывной календарь» с числом и годом.
   Цвета прежние (teal/gold), изменились только пропорции и композиция. */
.event-card-photo-fallback {
    height: 76px; padding: 0 14px;
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    position: relative; overflow: hidden;
}
/* Тонкий узор, чтобы плоская заливка не выглядела «пустой картинкой» */
.event-card-photo-fallback::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 15% 120%, rgba(255,255,255,.10), transparent 60%);
    pointer-events: none;
}
.event-head-label {
    color: var(--sand); font-family: var(--font-display); font-size: 13px;
    letter-spacing: .04em; opacity: .92; position: relative;
}
/* Календарь: белое «поле» с золотой шапкой — узнаваемая метафора
   отрывного календаря, вместо абстрактного эмодзи. Дата — реальная, из
   самого события; год берётся из даты, а при её отсутствии — текущий,
   чтобы не показывать выдуманный «JUL 17». */
.event-date-badge {
    flex: 0 0 auto; width: 52px; border-radius: 10px; overflow: hidden;
    background: var(--white); box-shadow: 0 2px 8px rgba(0,0,0,.18);
    text-align: center; position: relative;
}
.event-date-badge .edb-top {
    background: var(--gold); color: var(--teal);
    font-size: 9.5px; font-weight: 800; letter-spacing: .08em;
    text-transform: uppercase; padding: 2px 0;
}
.event-date-badge .edb-day {
    font-family: var(--font-display); font-size: 20px; line-height: 1.15;
    color: var(--ink); padding-top: 2px;
}
.event-date-badge .edb-year {
    font-size: 9.5px; color: var(--ink-soft); padding-bottom: 4px; letter-spacing: .04em;
}
.event-card-body { padding: 12px 14px 14px; }
.event-card-title { font-family: var(--font-display); font-size: 16px; color: var(--ink); }
.event-card-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.event-cat-tag {
    display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--ember); background: rgba(193,84,61,.1);
    padding: 3px 9px; border-radius: 20px; margin-top: 8px;
}

/* Карусель фото в карточке события (нижний лист) */
.event-gallery { position: relative; margin: -20px -20px 16px; }
.event-gallery-track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.event-gallery-track::-webkit-scrollbar { display: none; }
.event-gallery-track img {
    width: 100%; flex-shrink: 0; scroll-snap-align: start; height: 220px; object-fit: cover;
}
.event-gallery-dots {
    position: absolute; bottom: 10px; left: 0; right: 0;
    display: flex; justify-content: center; gap: 5px;
}
.event-gallery-dots span {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.5);
}
.event-gallery-dots span.active { background: var(--gold); }

/* ===== Фильтры ===== */
.filter-btn {
    position: relative; border: none; background: rgba(255,255,255,.94); border-radius: 10px;
    width: 40px; height: 40px; margin-left: 8px; font-size: 16px; cursor: pointer; flex-shrink: 0;
}
.filter-badge {
    position: absolute; top: -4px; right: -4px; background: var(--ember); color: var(--white);
    font-size: 10px; font-weight: 700; border-radius: 10px; min-width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.search-bar { display: flex; align-items: center; }
.search-bar input { flex: 1; }

.filter-sheet-overlay {
    /* Тот же фикс, что и у .sheet-overlay выше — было z-index: 60,
       та же уязвимость к внутренним слоям Leaflet. */
    position: fixed; inset: 0; background: rgba(14,59,54,.55);
    display: none; align-items: flex-end; justify-content: center; z-index: 1010;
}
.filter-sheet-overlay.open { display: flex; }
.filter-sheet {
    background: var(--sand); border-radius: 24px 24px 0 0; width: 100%; max-width: 560px;
    max-height: 85vh; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
}
.filter-sheet-title { font-family: var(--font-display); font-size: 20px; margin-bottom: 16px; }
.filter-group { margin-bottom: 20px; }
.filter-label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 10px; }

.price-range { display: flex; align-items: center; gap: 8px; }
.price-range-value { font-family: var(--font-display); font-size: 13px; color: var(--gold); min-width: 40px; }
.price-range input[type="range"] {
    flex: 1; -webkit-appearance: none; height: 4px; background: var(--sand-dim); border-radius: 4px;
}
.price-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
    background: var(--teal); border: 2px solid var(--gold); cursor: pointer;
}

.rating-options { display: flex; gap: 8px; flex-wrap: wrap; }
.rating-pill {
    padding: 7px 14px; border-radius: 20px; border: 1.5px solid var(--sand-dim);
    background: var(--white); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.rating-pill.active { background: var(--teal); border-color: var(--teal); color: var(--sand); }

.filter-checkboxes { display: flex; gap: 8px; flex-wrap: wrap; max-height: 140px; overflow-y: auto; }
.filter-checkbox-pill {
    display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 20px;
    background: var(--white); border: 1.5px solid var(--sand-dim); cursor: pointer;
    font-size: 12.5px; font-weight: 600; color: var(--ink-soft);
}
.filter-checkbox-pill.active { background: var(--teal); border-color: var(--teal); color: var(--sand); }
.filter-checkbox-pill input { display: none; }

.filter-select {
    width: 100%; padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--sand-dim);
    background: var(--white); font-family: var(--font-body); font-size: 13px; color: var(--ink);
}

.filter-sheet-actions { display: flex; gap: 10px; margin-top: 8px; }

/* ===== Метро ===== */
/* min-height, не height — раньше жёсткая height:100% не давала контенту
   (например, длинному списку станций маршрута с пересадкой) вырасти за
   пределы видимой области экрана, и внешний скролл-контейнер .content
   не мог обнаружить переполнение, чтобы включить скролл. Тот же фикс
   применён к .re-wrap и .events-wrap — тот же паттерн, та же уязвимость. */
.metro-wrap { display: flex; flex-direction: column; min-height: 100%; }
.metro-picker {
    background: var(--white); border-radius: var(--radius); padding: 14px;
    box-shadow: var(--shadow); margin-bottom: 12px; flex-shrink: 0;
    /* position+z-index создают СОБСТВЕННЫЙ контекст наложения для всего
       блока. Без этого внутренние слои Leaflet-карты ниже по странице
       (у них z-index доходит до 600-700 по стандартным классам
       библиотеки — тайлы, маркеры, попапы) сравнивались бы с нашим
       выпадающим списком (z-index:50) НАПРЯМУЮ, в общем контексте всего
       документа, а не только «внутри своего блока» — и карта побеждала
       бы, перекрывая список там, где он визуально доходит до её
       области. Теперь всё внутри .metro-picker (включая список
       подсказок) гарантированно выше всей карты целиком, независимо от
       того, какой z-index у её внутренних слоёв. */
    position: relative; z-index: 5;
}
.metro-picker-row { display: flex; align-items: center; gap: 8px; }
.metro-picker-row select { flex: 1; }
.metro-arrow { color: var(--gold); font-size: 16px; flex-shrink: 0; }

.metro-map-wrap {
    /* Была flex:1 — требует ТОЧНОЙ (не "минимум") высоты у родителя, чтобы
       вычислить, сколько места "занять". После фикса скролла родитель
       (.metro-wrap) получил min-height вместо height — точная высота
       пропала, и flex:1 переставал получать откуда расти, карта либо не
       рендерилась вообще, либо схлопывалась. Фиксированная высота в vh
       не зависит от каскада flex-родителей вообще — тот же надёжный
       паттерн, что уже работает у карты недвижимости (.re-map-wrap). */
    height: 45vh; min-height: 260px; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); margin-bottom: 12px; position: relative; flex-shrink: 0;
    /* touch-action: none — без него палец на карте одновременно двигает
       и саму карту (Leaflet), и весь экран Mini App: Telegram WebApp
       трактует свайп как жест прокрутки/закрытия приложения, потому что
       браузер не знает, что это разные жесты, пока элемент явно не
       заявит, что берёт управление тачем на себя. Ставится на обёртку,
       а не на сам #metroMap/#busMap/#ferryMap, потому что Leaflet сам
       переопределяет touch-action на внутренних слоях при инициализации —
       обёртка гарантирует эффект даже до того, как карта создана. */
    touch-action: none;
}
#metroMapLoading { height: 100%; padding: 16px; background: var(--white); }
#metroMap { height: 100%; width: 100%; }
/* #busMap использует ту же .metro-map-wrap (450px), поэтому наследует
   height:100% от неё. Без ЭТОЙ строки #busMap получал бы height:100%
   от родителя, у которого точной высоты не было бы, — то есть 0px,
   и карта оставалась бы пустым прямоугольником. Ровно это было на
   скриншоте. */
#busMap { height: 100%; width: 100%; }
/* #ferryMap — та же обёртка .metro-map-wrap, что и у автобусов и метро,
   но правило для НЕГО отсутствовало вовсе при добавлении парома. Без
   height:100% пустой <div> получает height:auto — то есть 0px, и
   Leaflet, инициализированный в контейнере нулевой высоты, физически
   не может ничего нарисовать. Именно поэтому карта автобусов работала,
   а у парома было пустое пространство того же цвета, что и фон
   страницы, — контейнер существовал, но был схлопнут в линию. */
#ferryMap { height: 100%; width: 100%; }

.metro-station-dot {
    width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--white);
    box-shadow: 0 0 0 1px rgba(0,0,0,.15);
}
.metro-route-info {
    background: var(--white); border-radius: var(--radius); padding: 16px;
    box-shadow: var(--shadow); font-size: 13.5px; display: none;
}
.metro-route-info.visible { display: block; }
.metro-route-stats {
    display: flex; gap: 16px; margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid var(--sand-dim);
}
.metro-route-stat { text-align: center; flex: 1; }
.metro-route-stat b { display: block; font-family: var(--font-display); font-size: 18px; color: var(--teal); }
.metro-route-stat span { font-size: 10.5px; color: var(--ink-soft); }
.metro-route-path { display: flex; flex-direction: column; gap: 4px; max-height: 160px; overflow-y: auto; }
.metro-route-path-item { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.metro-line-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ===== Подписка ===== */
.subscribe-wrap { display: flex; flex-direction: column; gap: 16px; padding-bottom: 10px; }

.sub-hero {
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dim) 100%);
    border-radius: var(--radius); padding: 24px 20px; text-align: center; color: var(--sand);
}
.sub-hero .star8 { color: var(--gold); width: 28px; height: 28px; margin-bottom: 8px; }
.sub-hero-title { font-size: 12px; opacity: .8; letter-spacing: .04em; text-transform: uppercase; }
.sub-hero-tier { font-family: var(--font-display); font-size: 28px; color: var(--gold); margin-top: 4px; }

.sub-plan-card {
    background: var(--white); border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); position: relative; border: 2px solid transparent;
}
.sub-plan-vip { border-color: var(--gold); background: linear-gradient(160deg, #FFFDF7 0%, var(--sand) 100%); }
.sub-plan-free { background: var(--sand-dim); border-color: var(--ink-soft); opacity: .92; }
.sub-plan-free .sub-plan-name { color: var(--ink-soft); }

.sub-current-badge {
    position: absolute; top: -11px; right: 14px;
    background: var(--teal); color: var(--sand); font-size: 10.5px; font-weight: 800;
    padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.sub-current-badge-vip { background: var(--teal); }
.sub-vip-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    background: var(--gold); color: var(--teal); font-size: 11px; font-weight: 800;
    padding: 4px 14px; border-radius: 20px; display: flex; align-items: center; gap: 5px;
    white-space: nowrap;
}
.sub-vip-badge .star8 { width: 11px; height: 11px; }

.sub-plan-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.sub-plan-name { font-family: var(--font-display); font-size: 20px; color: var(--ink); }
.sub-plan-price { font-family: var(--font-display); font-size: 20px; color: var(--gold); display: flex; align-items: center; gap: 4px; }
.sub-plan-price .star8 { width: 16px; height: 16px; }
.sub-plan-period { font-size: 12px; color: var(--ink-soft); font-family: var(--font-body); margin-left: 2px; }

.sub-plan-features { list-style: none; margin-bottom: 18px; }
.sub-plan-features li {
    font-size: 14.5px; font-weight: 600; color: var(--ink); padding: 7px 0 7px 22px; position: relative;
}
.sub-plan-features li::before {
    content: '✓'; position: absolute; left: 0; color: var(--gold); font-weight: 800;
}

.sub-plan-availability { margin: 12px 0 16px; }
.sub-plan-availability-label {
    display: flex; justify-content: space-between; font-size: 11.5px;
    color: var(--ink-soft); margin-bottom: 5px; font-weight: 600;
}
.sub-plan-availability-bar {
    /* rgba, не sand-dim напрямую — карточка Free сама использует sand-dim
       как фон (.sub-plan-free ниже), сплошной sand-dim здесь слился бы
       с ним и стал невидимым именно на этой карточке. Полупрозрачный
       ink-soft читается поверх любого фона карточек (белый / sand-dim /
       светлый градиент VIP). */
    height: 6px; border-radius: 4px; background: rgba(90, 80, 72, 0.16); overflow: hidden;
}
.sub-plan-availability-fill {
    height: 100%; border-radius: 4px; background: var(--gold);
}

.sub-buy-btn { width: 100%; }
.sub-disclaimer { font-size: 11.5px; color: var(--ink-soft); text-align: center; line-height: 1.5; padding: 0 8px; }

/* ===== Реклама: баннеры и выделенные места ===== */
.banner-carousel {
    display: flex; gap: 10px; overflow-x: auto; padding: 14px 20px 0;
    scroll-snap-type: x mandatory; scrollbar-width: none;
}
.banner-carousel::-webkit-scrollbar { display: none; }
.banner-slide {
    flex: 0 0 88%; scroll-snap-align: start; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer; position: relative; height: 120px;
}
.banner-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner-ad-tag {
    position: absolute; top: 8px; right: 8px; background: rgba(14,59,54,.75); color: var(--sand);
    font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    padding: 3px 8px; border-radius: 20px;
}

.featured-carousel {
    /* Было: горизонтальный скролл нескольких карточек разом. Теперь —
       один блок на весь экран, автоматически сменяется по времени,
       заданному индивидуально для каждого места в админке (поле "Время
       отображения в карусели"). */
    padding: 12px 20px 4px; position: relative;
}
.featured-card {
    background: var(--white); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); cursor: pointer; border: 1.5px solid var(--gold);
    display: flex; align-items: center; gap: 14px; padding: 12px;
    animation: featured-fade-in .4s ease;
}
@keyframes featured-fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.featured-card-thumb {
    width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--teal-light), var(--teal)); color: var(--gold); font-size: 26px;
}
.featured-card-body { flex: 1; min-width: 0; }
.featured-card-name { font-size: 15px; font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.featured-card-badge { display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--gold); font-weight: 700; margin-top: 4px; }
.featured-card-badge .star8 { width: 12px; height: 12px; }
.featured-dots { display: flex; justify-content: center; gap: 5px; margin-top: 8px; }
.featured-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--sand-dim); transition: background .2s; }
.featured-dot.active { background: var(--gold); }

/* ===== Профиль ===== */
.profile-wrap { display: flex; flex-direction: column; gap: 16px; padding-bottom: 10px; }

.profile-hero {
    background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dim) 100%);
    border-radius: var(--radius); padding: 26px 20px; text-align: center; color: var(--sand);
}
.profile-avatar {
    width: 56px; height: 56px; border-radius: 50%; background: var(--gold-soft);
    border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center;
    font-size: 26px; margin: 0 auto 10px;
}
.profile-name { font-family: var(--font-display); font-size: 18px; }
.profile-tier-badge {
    display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 800;
    letter-spacing: .06em; padding: 4px 12px; border-radius: 20px;
    background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold);
}
.profile-expires { font-size: 12.5px; font-weight: 700; color: var(--sand); opacity: .85; margin-top: 6px; }

.profile-section {
    background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.profile-section-title { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin-bottom: 8px; }
.profile-note { font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.5; margin-bottom: 12px; }

.lang-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.lang-pill {
    padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--sand-dim);
    background: var(--sand); font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
    text-align: center;
}
.lang-pill.active { background: var(--teal); border-color: var(--teal); color: var(--sand); }

.fav-empty { font-size: 14.5px; font-weight: 600; color: var(--ink-soft); text-align: center; padding: 20px 0; }
.fav-item {
    display: flex; align-items: center; gap: 10px; padding: 10px 0;
    border-bottom: 1px solid var(--sand-dim); cursor: pointer;
}
.fav-item:last-child { border-bottom: none; }
.fav-item-thumb {
    width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--teal-light), var(--teal));
    display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 16px;
}
.fav-item-name { font-size: 13.5px; font-weight: 600; color: var(--ink); flex: 1; }
.fav-item-remove { border: none; background: transparent; color: var(--ember); font-size: 16px; cursor: pointer; padding: 4px; }

/* Кнопка "в избранное" на нижнем листе карточки места */
.fav-toggle-btn {
    border: 1.5px solid var(--sand-dim); background: var(--white); border-radius: var(--radius-sm);
    width: 46px; flex-shrink: 0; font-size: 18px; cursor: pointer; color: var(--ink-soft);
}
.fav-toggle-btn.active { color: var(--ember); border-color: var(--ember); background: rgba(193,84,61,.08); }

.fav-toggle-btn-card {
    /* Сердечко всегда в правом верхнем углу — привычное место, и оно не
       разрывает текст. Раньше стояло right: 50px, чтобы разойтись с
       бейджем «реклама», но из-за этого на ОБЫЧНЫХ карточках (а их
       большинство) кнопка оказывалась посреди названия. Теперь наоборот:
       угол занимает сердечко, а бейдж уходит под него (см. ниже). */
    position: absolute; top: 8px; right: 8px; z-index: 2;
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: rgba(255,255,255,.9); box-shadow: var(--shadow);
    font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.fav-toggle-btn-card.active { background: rgba(193,84,61,.12); }

/* Место под сердечко в правом верхнем углу. Без этого отступа длинное
   название заезжало ПОД кнопку и читалось обрезанным — именно это и было
   видно на карточках аптек. Отступ на всём блоке текста, а не только на
   названии: адрес бывает не короче. */
.place-info { padding-right: 38px; }

/* ===== Бронирование (честный макет, без источника данных) ===== */
.booking-wrap { display: flex; flex-direction: column; gap: 14px; padding-bottom: 10px; }

.booking-notice {
    background: var(--gold-soft); border: 1.5px solid var(--gold); border-radius: var(--radius);
    padding: 16px; text-align: center;
}
.booking-notice .star8 { color: var(--gold); width: 22px; height: 22px; margin-bottom: 6px; }
.booking-notice-title { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.booking-notice-text { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin-top: 6px; }

.booking-tabs { display: flex; gap: 8px; }
.booking-tab {
    flex: 1; padding: 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--sand-dim);
    background: var(--white); font-size: 13px; font-weight: 700; color: var(--ink-soft); cursor: pointer;
}
.booking-tab.active { background: var(--teal); border-color: var(--teal); color: var(--sand); }

.booking-form {
    background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; gap: 12px;
}
.booking-form input:disabled { opacity: .5; cursor: not-allowed; background: var(--sand-dim); }

.booking-result { font-size: 13px; color: var(--ink-soft); text-align: center; padding: 4px 12px; }

/* ===== Карточки маршрута метро =====
   Вертикальная лента: слева «рельс» цвета линии с кружками станций,
   справа содержимое. Цвет берётся из данных линии, поэтому монорельс,
   трамвай и метро различимы без подписи. */
.route-summary {
    padding: 16px 4px 12px; border-bottom: 1px solid var(--sand-dim); margin-bottom: 14px;
}
.route-summary-time { font-family: var(--font-display); font-size: 26px; color: var(--teal); line-height: 1.1; }
.route-summary-meta { font-size: 12.5px; color: var(--ink-soft); margin-top: 3px; }
.route-summary-lines { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.route-line-chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    background: var(--sand-dim); color: var(--ink);
}
.route-line-chip i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.route-seg { display: flex; gap: 14px; }
/* Полоса линии тянется на всю высоту участка, включая раскрытый список
   промежуточных станций — иначе линия обрывалась, и станции повисали
   отдельно от маршрута. */
.route-seg-rail { position: relative; width: 16px; flex: 0 0 16px; }
.route-seg-rail::before {
    content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 4px;
    border-radius: 2px; background: var(--rail-color, var(--teal));
}
.route-seg-rail.is-transfer::before {
    /* Пеший переход — пунктиром: сразу видно, что это не поездка */
    background: repeating-linear-gradient(to bottom,
        var(--ink-soft) 0 4px, transparent 4px 9px);
    width: 2px; left: 7px;
}
.route-dot {
    position: absolute; left: 1px; width: 14px; height: 14px; border-radius: 50%;
    background: var(--white); border: 3.5px solid var(--rail-color, var(--teal));
    box-sizing: border-box;
}
.route-dot.top { top: 3px; }
.route-dot.bottom { bottom: 3px; }

.route-seg-body { flex: 1; min-width: 0; padding-bottom: 18px; }
.route-station-name { font-family: var(--font-display); font-size: 17px; color: var(--ink); line-height: 1.25; }
/* Название линии и интервал — в одну строку: вместе они читаются как
   «чем и как часто», а по отдельности занимали две строки на каждом
   участке и растягивали маршрут. */
.route-line-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.route-line-name { font-size: 13px; font-weight: 800; }
.route-seg-note { font-size: 12px; color: var(--ink-soft); }
.route-seg-duration { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.route-seg-duration b { color: var(--ink); font-family: var(--font-display); font-size: 15px; }

.route-mid-toggle {
    margin-top: 8px; font-size: 11.5px; font-weight: 700; color: var(--teal);
    background: var(--sand-dim); border: none; border-radius: 999px;
    padding: 5px 13px; cursor: pointer; font-family: var(--font-body);
}
.route-mid-list { margin-top: 8px; display: none; }
.route-mid-list.open { display: block; }
.route-mid-item {
    font-size: 13px; padding: 5px 0 5px 2px;
    display: flex; align-items: center; gap: 10px;
    color: var(--rail-color, var(--ink-soft));
}
/* Кружок промежуточной станции — меньше конечных, но того же цвета:
   видно, что это та же линия, и что остановка проходная. */
.route-mid-item::before {
    content: ''; width: 8px; height: 8px; border-radius: 50%;
    background: var(--white); border: 2.5px solid var(--rail-color, var(--ink-soft));
    flex: 0 0 8px; box-sizing: border-box;
}
.route-transfer-label { font-size: 12.5px; color: var(--ember); font-weight: 700; }

/* ===== AI-ассистент (видеоаватар) ===== */
.avatar-wrap { padding-top: 16px; }
.avatar-stage {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    padding: 20px 16px; background: var(--white); border-radius: var(--radius);
    box-shadow: var(--shadow);
}
/* Круглая рамка: и фото-заглушка, и живое видео обрезаются одинаково,
   поэтому подмена одного другим не «дёргает» вёрстку. */
.avatar-frame {
    position: relative; width: 180px; height: 180px; border-radius: 50%;
    overflow: hidden; background: var(--teal);
    border: 3px solid var(--gold); box-shadow: var(--shadow);
}
.avatar-frame video,
.avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center;
    justify-content: center; font-size: 64px;
}
.avatar-status { font-size: 13px; color: var(--ink-soft); text-align: center; }
.avatar-status.live { color: var(--teal); font-weight: 700; }
.avatar-status.live::before {
    content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: #2ecc71; margin-right: 6px; animation: avatarPulse 1.6s infinite;
}
@keyframes avatarPulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.avatar-log { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.avatar-msg {
    max-width: 85%; padding: 9px 13px; border-radius: 14px;
    font-size: 13.5px; line-height: 1.45; white-space: pre-wrap;
}
.avatar-msg.user { align-self: flex-end; background: var(--teal); color: var(--sand); }
.avatar-msg.bot { align-self: flex-start; background: var(--white); box-shadow: var(--shadow); }

/* Блок-кнопка в профиле (вход в AI-ассистента) */
.profile-section-action { text-align: center; }
.profile-section-action .btn { width: 100%; }

/* Ссылки внутри описаний мест и событий */
.inline-link { color: var(--teal); text-decoration: underline; word-break: break-word; }

/* ===== Подбор недвижимости ===== */
.prop-panel { padding-bottom: 10px; }
.prop-list { padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.prop-list-head { font-size: 12px; color: var(--ink-soft); padding: 4px 0 2px; }
.prop-card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 12px 14px; cursor: pointer; transition: transform .12s ease;
}
.prop-card:active { transform: scale(.985); }
.prop-card-title { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.prop-card-price { color: var(--gold); font-weight: 800; font-size: 14px; margin-top: 3px; }
.prop-card-meta { font-size: 12px; color: var(--ink-soft); margin-top: 4px; }
.prop-map-wrap { margin: 12px 20px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); touch-action: none; }
#propMap { height: 220px; }

/* ===== Кнопки действий в разделе недвижимости =====
   Были две кнопки во всю ширину экрана, одна под другой — вместе они
   занимали половину видимой области, хотя это лишь точки входа, а не
   основное содержимое. Теперь ряд из двух компактных кнопок: занимают
   одну строку вместо двух блоков. Цвета не менялись. */
.re-actions {
    display: flex; gap: 10px; margin: 12px 20px;
}
.re-action-btn {
    flex: 1; min-width: 0;
    padding: 10px 12px; font-size: 13px; line-height: 1.25;
    /* Длинные подписи вроде «Подбор недвижимости» переносим по словам,
       а не обрезаем: обрезанная кнопка выглядит сломанной. */
    white-space: normal; word-break: break-word;
}

/* ===== Переключатель Метро/Автобусы ===== */
.transit-mode-switch {
    display: flex; gap: 8px; margin: 0 0 14px;
}
.transit-mode-btn {
    flex: 1; padding: 10px 12px; border-radius: 999px; border: none;
    background: var(--sand-dim); color: var(--ink-soft);
    font-family: var(--font-body); font-weight: 700; font-size: 13.5px;
    cursor: pointer;
}
.transit-mode-btn.active { background: var(--teal); color: var(--sand); }

/* ===== Отслеживание пути по автобусному маршруту ===== */
.bus-track-panel {
    margin-top: 14px; padding: 14px 16px; background: var(--white);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.bus-track-header { font-family: var(--font-display); font-size: 15px; margin-bottom: 8px; }
.bus-track-bar {
    height: 8px; border-radius: 999px; background: var(--sand-dim); overflow: hidden;
}
.bus-track-fill {
    height: 100%; background: var(--gold); border-radius: 999px;
    width: 0%; transition: width .4s ease;
}
.bus-track-status { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }

/* Подсказки при вводе названия автобусной остановки */
.bus-stop-suggest {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 50;
    background: var(--white); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); max-height: 220px; overflow-y: auto;
    margin-top: 4px;
}
.bus-stop-option {
    padding: 9px 12px; font-size: 13px; cursor: pointer; color: var(--ink);
}
.bus-stop-option:hover, .bus-stop-option:active { background: var(--sand-dim); }

/* ===== Список остановок автобусного маршрута (по примеру Яндекс.Карт) ===== */
.bus-stops-scroll {
    max-height: 340px; overflow-y: auto; padding: 4px 4px 4px 2px;
}
.bus-stop-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 6px; cursor: pointer; border-radius: var(--radius-sm);
}
.bus-stop-row:active { background: var(--sand-dim); }
.bus-stop-dot {
    width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px;
    background: var(--gold); position: relative;
}
/* Первая и последняя остановки крупнее и другого цвета — начало и
   конец пути должны быть заметны на первый взгляд, без чтения текста. */
.bus-stop-dot.first { width: 14px; height: 14px; background: var(--teal); }
.bus-stop-dot.last { width: 14px; height: 14px; background: var(--ember); }
.bus-stop-row-name { font-size: 13.5px; color: var(--ink); }

/* Строка «ничего не найдено» в подсказках остановки — не кликабельна,
   в отличие от обычных вариантов. */
.bus-stop-option.bus-stop-empty {
    color: var(--ink-soft); cursor: default; font-style: italic;
}
