/**
 * Frontend стили карты MySuperTour v3.0
 * Liquid Glass, светлая тема. Акценты: сиреневый #9952E0, жёлтый #fbd603.
 * Типы: тур (сиреневый), квартира (бирюзовый), билет (жёлтый).
 * Author: Telegram @l1ghtsun
 */

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

:root {
    --pad-x: clamp(16px, 2vw, 40px);
}

/* ==============================================
   СБРОС СТИЛЕЙ ЦЕНЫ WC/xStore (глобально внутри карты)
   Перебивает тему жёстко, чтобы цена везде была единообразной.
   ============================================== */
.mst-premium-map-container .woocommerce-Price-amount,
.mst-premium-map-container .woocommerce-Price-amount bdi,
.mst-premium-map-container .woocommerce-Price-currencySymbol,
.mst-price-pill .woocommerce-Price-amount,
.mst-price-pill .woocommerce-Price-amount bdi,
.mst-price-pill .woocommerce-Price-currencySymbol,
.mst-map-list-price .woocommerce-Price-amount,
.mst-map-list-price .woocommerce-Price-amount bdi,
.mst-map-list-price .woocommerce-Price-currencySymbol,
.mst-map-card-price .woocommerce-Price-amount,
.mst-map-card-price .woocommerce-Price-amount bdi,
.mst-map-card-price .woocommerce-Price-currencySymbol {
    font-family: inherit !important;
    font-weight: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline !important;
    line-height: inherit !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    float: none !important;
    position: static !important;
}
.mst-premium-map-container del,
.mst-price-pill del,
.mst-map-list-price del,
.mst-map-card-price del {
    text-decoration: line-through !important;
    color: #a1a1aa !important;
    font-weight: 400 !important;
    margin-right: 6px !important;
    opacity: 1 !important;
}
.mst-premium-map-container ins,
.mst-price-pill ins,
.mst-map-list-price ins,
.mst-map-card-price ins {
    text-decoration: none !important;
    font-weight: inherit !important;
    background: none !important;
}

/* ==============================================
   КОНТЕЙНЕР КАРТЫ
   ============================================== */

.mst-map-container {
    margin: 40px 0;
    position: relative;
}

.mst-premium-map-container {
    position: relative;
    width: 100%;
    height: calc(100vh - clamp(24px, 3vw, 48px));
    min-height: 600px;
    border-radius: 24px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 1px 0 rgba(255,255,255,0.9) inset;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
}

/* ==============================================
   ВЕРХНЯЯ ПАНЕЛЬ: города + переключатель режимов
   ============================================== */

.mst-map-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px var(--pad-x);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    z-index: 20;
}

.mst-map-cities {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex: 1;
    scrollbar-width: none;
    padding: 2px 0;
}
.mst-map-cities::-webkit-scrollbar { display: none; }

.mst-map-city-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    color: #1d1d1f;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mst-map-city-chip:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #9952E0;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(153, 82, 224, 0.18);
}
.mst-map-city-chip.active {
    background: #9952E0;
    color: #fff;
    border-color: #9952E0;
    box-shadow: 0 4px 16px rgba(153,82,224,0.35);
}
.mst-map-city-chip.active .mst-map-city-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}
.mst-map-city-count {
    background: rgba(153, 82, 224, 0.10);
    color: #9952E0;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}

/* Кнопка геолокации — акцент жёлтый */
.mst-map-geoloc { border-color: rgba(251, 214, 3, 0.4); }
.mst-map-geoloc svg { color: #d4a900; }
.mst-map-geoloc:hover { border-color: #fbd603; box-shadow: 0 4px 14px rgba(251, 214, 3, 0.3); }
.mst-map-geoloc.loading svg { animation: mst-spin 1s linear infinite; }
@keyframes mst-spin { to { transform: rotate(360deg); } }

/* Сегментный переключатель Карта/Список */
.mst-map-mode-switch {
    display: flex;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 100px;
    padding: 4px;
    flex-shrink: 0;
}
.mst-map-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 100px;
    color: #6e6e73;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mst-map-mode-btn.active {
    background: #fff;
    color: #1d1d1f;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.mst-map-mode-btn:not(.active):hover { color: #1d1d1f; }

/* ==============================================
   ПРИВЕТСТВИЕ (до выбора города)
   ============================================== */

.mst-map-welcome {
    grid-area: 2 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    z-index: 15;
    background: #f5f5f7;
    transition: opacity 0.4s ease;
}
.mst-map-welcome.hidden { opacity: 0; pointer-events: none; }
.mst-map-welcome-icon {
    color: #9952E0;
    opacity: 0.5;
    margin-bottom: 20px;
}
.mst-map-welcome-title {
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}
.mst-map-welcome-text {
    font-size: 15px;
    color: #6e6e73;
    max-width: 440px;
    line-height: 1.6;
}

/* ==============================================
   ЗОНА КАРТЫ + СПИСОК (переключаются)
   ============================================== */

.mst-map-wrapper {
    grid-area: 2 / 1;
    position: relative;
    z-index: 1;
}
.mst-premium-map-container.mode-list .mst-map-wrapper { z-index: 0; }

#mst-google-map,
.mst-google-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.mst-map-list-pane {
    grid-area: 2 / 1;
    z-index: 10;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mst-premium-map-container.mode-list .mst-map-list-pane { visibility: visible; opacity: 1; }

.mst-map-list-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px var(--pad-x);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}
.mst-map-list-count {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    width: 100%;
}

/* Фильтр типов */
.mst-map-type-filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
    margin-bottom: 4px;
}
.mst-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.mst-type-btn:hover {
    border-color: #9952E0;
    color: #1d1d1f;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(153, 82, 224, 0.15);
}
.mst-type-btn.active { color: #fff; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.mst-type-btn.active[data-type="all"] { background: #1d1d1f; border-color: #1d1d1f; }
.mst-type-btn.active[data-type="tour"] { background: #9952E0; border-color: #9952E0; box-shadow: 0 4px 16px rgba(153,82,224,0.35); }
.mst-type-btn.active[data-type="apartment"] { background: #14b8a6; border-color: #14b8a6; box-shadow: 0 4px 16px rgba(20, 184, 166, 0.35); }
.mst-type-btn.active[data-type="ticket"] { background: #d4a900; border-color: #fbd603; box-shadow: 0 4px 16px rgba(251, 214, 3, 0.35); }
.mst-type-btn.active[data-type="transfer"] { background: #f97316; border-color: #f97316; box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35); }
.mst-type-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.mst-type-dot.tour { background: #9952E0; }
.mst-type-dot.apartment { background: #14b8a6; }
.mst-type-dot.ticket { background: #fbd603; }
.mst-type-dot.transfer { background: #f97316; }
.mst-type-btn.active .mst-type-dot { background: #fff; }

.mst-map-price-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    border-radius: 100px;
}
.mst-map-price-filter input {
    width: 90px;
    padding: 10px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.mst-map-price-filter input::placeholder { color: #a1a1aa; font-weight: 400; }
.mst-map-price-filter input:focus {
    border-color: #9952E0;
    box-shadow: 0 0 0 3px rgba(153,82,224,0.12);
}
.mst-map-price-filter span { color: #6e6e73; font-size: 14px; font-weight: 600; }
.mst-price-filter-label { color: #1d1d1f; font-size: 14px; font-weight: 700; }

.mst-map-list {
    flex: 1;
    overflow-y: auto;
    padding: 14px var(--pad-x);
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Секция города в списке */
.mst-map-city-section { }
.mst-map-city-section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px 10px;
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.96) 70%, transparent);
    backdrop-filter: blur(8px);
    z-index: 5;
}
.mst-map-city-section-name {
    font-size: 17px;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.01em;
}
.mst-map-city-section-count {
    font-size: 12px;
    font-weight: 600;
    color: #9952E0;
    background: rgba(153,82,224,0.12);
    padding: 3px 10px;
    border-radius: 100px;
}
.mst-map-city-section-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 12px;
}

/* Подзаголовок типа внутри города (Экскурсии / Квартиры / Билеты / Трансфер) */
.mst-map-type-section { margin-top: 6px; }
.mst-map-type-section:first-child { margin-top: 0; }
.mst-map-type-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 4px 6px;
    margin-left: 4px;
}
.mst-map-type-section-header .mst-map-type-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mst-map-type-section-name {
    font-size: 14px;
    font-weight: 600;
    color: #6e6e73;
}
.mst-map-type-section-count {
    font-size: 11px;
    font-weight: 600;
    color: #a1a1aa;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 100px;
}

/* Карточка тура (richer) */
.mst-map-list-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.04);
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mst-map-list-item:hover {
    background: #fff;
    border-color: #9952E0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mst-map-list-item.active {
    border-color: #9952E0;
    box-shadow: 0 0 0 2px rgba(153,82,224,0.12);
}
.mst-map-list-thumb {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(153,82,224,0.12), rgba(251, 214, 3, 0.15));
    position: relative;
}
.mst-type-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.mst-type-badge.tour { background: #9952E0; }
.mst-type-badge.apartment { background: #14b8a6; }
.mst-type-badge.ticket { background: #d4a900; }
.mst-type-badge.transfer { background: #f97316; }

.mst-map-list-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.mst-map-list-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mst-map-list-desc {
    font-size: 12px;
    color: #6e6e73;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mst-map-list-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}
.mst-meta-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    font-weight: 600;
    color: #1d1d1f;
}
.mst-meta-rating .star { color: #fbd603; font-size: 13px; }
.mst-meta-rating .reviews { color: #a1a1aa; font-weight: 400; }
.mst-meta-tag {
    font-size: 11px;
    color: #6e6e73;
    background: rgba(0, 0, 0, 0.04);
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}
.mst-map-list-price {
    font-size: 14px;
    font-weight: 700;
    color: #1d1d1f;
    flex-shrink: 0;
    align-self: flex-start;
    white-space: nowrap;
}

/* ==============================================
   МАРКЕРЫ-ПИЛЮЛИ (цена на карте)
   ============================================== */

.mst-price-marker { background: transparent; border: none; }
.mst-price-pill {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    color: #1d1d1f;
    font-weight: 700;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    transform: translate(-50%, -100%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.mst-price-pill .pill-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mst-price-pill .pill-dot.tour { background: #9952E0; }
.mst-price-pill .pill-dot.apartment { background: #14b8a6; }
.mst-price-pill .pill-dot.ticket { background: #fbd603; }
.mst-price-pill .pill-dot.transfer { background: #f97316; }
.mst-price-pill:hover {
    transform: translate(-50%, -105%) scale(1.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    z-index: 1000 !important;
}
.mst-price-pill.active {
    background: #9952E0;
    color: #fff;
    transform: translate(-50%, -105%) scale(1.1);
    box-shadow: 0 6px 20px rgba(153,82,224,0.35);
    z-index: 1001 !important;
}
.mst-price-pill.active .pill-dot { background: #fff; }

/* Маркер пользователя (геолокация) */
.mst-user-marker { background: transparent; border: none; }
.mst-user-pulse {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fbd603;
    border: 3px solid #fff;
    box-shadow: 0 0 0 4px rgba(251, 214, 3, 0.3);
    position: relative;
}
.mst-user-pulse::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid #fbd603;
    animation: mst-pulse 1.8s ease-out infinite;
}
@keyframes mst-pulse {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Точка «откуда» для маршрута */
.mst-route-from-marker { background: transparent; border: none; }
.mst-route-from-dot {
    width: 16px;
    height: 16px;
    border-radius: 50% 50% 50% 0;
    background: #14b8a6;
    border: 3px solid #fff;
    transform: rotate(-45deg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ==============================================
   КЛАСТЕРЫ (MST-style кружки)
   ============================================== */

.mst-cluster-custom {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}
.mst-cluster-custom > div {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #9952E0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(153, 82, 224, 0.2);
    border: 2px solid rgba(153, 82, 224, 0.3);
    line-height: 1;
}

/* ==============================================
   ИНФО ГЕОЛОКАЦИИ (адрес + ближайший город)
   ============================================== */

.mst-map-geoloc-info {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    z-index: 25;
    max-width: 90%;
    opacity: 0;
    pointer-events: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mst-map-geoloc-info.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.mst-geoloc-info-inner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 12px 18px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 100px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    font-size: 13px;
}
.mst-geoloc-info-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d1d1f;
}
.mst-geoloc-info-label { color: #6e6e73; font-weight: 500; }
.mst-geoloc-city-btn {
    border: none;
    background: #9952E0;
    color: #fff;
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: filter 0.2s;
}
.mst-geoloc-city-btn:hover { filter: brightness(1.1); }
.mst-geoloc-close {
    border: none;
    background: rgba(0, 0, 0, 0.06);
    color: #6e6e73;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    transition: background 0.2s;
}
.mst-geoloc-close:hover { background: rgba(0, 0, 0, 0.12); }

/* ==============================================
   BOTTOM SHEET — быстрая карточка тура + маршрут
   ============================================== */

.mst-map-bottom-sheet {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translate(-50%, 150%);
    width: calc(100% - 48px);
    max-width: 380px;
    z-index: 30;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}
.mst-map-bottom-sheet.visible {
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.mst-map-bottom-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mst-map-bottom-card:hover { transform: translateY(-3px); }
.mst-map-card-img-wrapper {
    width: 100%;
    height: 160px;
    position: relative;
    overflow: hidden;
}
.mst-map-card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.mst-map-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(153,82,224,0.12), rgba(251, 214, 3, 0.15));
}
.mst-card-type-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(8px);
}
.mst-card-type-badge.tour { background: #9952E0; }
.mst-card-type-badge.apartment { background: #14b8a6; }
.mst-card-type-badge.ticket { background: #d4a900; }
.mst-card-type-badge.transfer { background: #f97316; }
.mst-map-card-content { padding: 14px 18px 16px; }
.mst-map-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}
.mst-map-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1d1d1f;
    line-height: 1.3;
    flex: 1;
}
.mst-map-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #1d1d1f;
    flex-shrink: 0;
}
.mst-map-card-rating .star { color: #fbd603; }
.mst-map-card-desc {
    margin: 6px 0 8px;
    font-size: 13px;
    color: #6e6e73;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.mst-map-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.mst-map-card-city {
    margin: 0;
    color: #6e6e73;
    font-size: 13px;
}
.mst-map-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.mst-map-card-price {
    font-size: 15px !important;
    color: #1d1d1f !important;
    flex: 1;
    line-height: 1.2 !important;
}
.mst-map-card-price strong,
.mst-map-card-price .woocommerce-Price-amount,
.mst-map-card-price bdi {
    font-weight: 800 !important;
    color: #9952E0 !important;
    font-size: 17px !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    display: inline !important;
}
.mst-map-card-price del,
.mst-map-card-price .woocommerce-Price-amount del {
    color: #a1a1aa !important;
    text-decoration: line-through !important;
    font-weight: 400 !important;
    font-size: 13px !important;
    margin-right: 6px !important;
}
.mst-map-card-price ins,
.mst-map-card-price .woocommerce-Price-amount ins {
    text-decoration: none !important;
}
.mst-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1px solid #9952E0;
    border-radius: 100px;
    background: rgba(153,82,224,0.12);
    color: #9952E0;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.mst-route-btn:hover {
    background: #9952E0;
    color: #fff;
}
.mst-route-btn svg { width: 14px; height: 14px; }

/* Меню выбора источника маршрута */
.mst-route-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 8px;
    background: #ffffff;
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    padding: 6px;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}
.mst-route-menu.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}
.mst-route-menu-title {
    font-size: 11px;
    font-weight: 700;
    color: #a1a1aa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 10px 4px;
}
.mst-route-option {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border: none;
    background: transparent;
    border-radius: 10px;
    color: #1d1d1f;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}
.mst-route-option:hover { background: rgba(153, 82, 224, 0.08); }
.mst-route-option svg { width: 16px; height: 16px; color: #9952E0; flex-shrink: 0; }
.mst-route-option .opt-desc { font-size: 11px; color: #a1a1aa; font-weight: 400; }

/* ==============================================
   Leaflet UI: мягчим стандартные элементы
   ============================================== */

.leaflet-popup { display: none !important; }
.leaflet-control-zoom a {
    border-radius: 10px !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    color: #1d1d1f !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
}
.leaflet-control-zoom a:hover {
    background: #fff !important;
    color: #9952E0 !important;
}
.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    border-radius: 8px 0 0 0;
    font-size: 10px !important;
}

.mst-map-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #a1a1aa;
    font-size: 15px;
}

/* ==============================================
   RESPONSIVE — мобильный
   ============================================== */

@media (max-width: 768px) {
    .mst-premium-map-container {
        border-radius: 0;
        height: 100vh;
        height: 100svh;
        min-height: 0;
    }
    .mst-map-topbar {
        flex-wrap: wrap;
        padding: 10px 12px;
        gap: 8px;
    }
    .mst-map-cities { order: 2; width: 100%; }
    .mst-map-mode-switch { order: 1; }
    .mst-map-mode-btn span { display: none; }
    .mst-map-city-section-items { grid-template-columns: 1fr; }
    .mst-map-bottom-sheet { max-width: calc(100% - 24px); bottom: 16px; }
    .mst-map-list-header { padding: 10px 12px; }
    .mst-map-list { padding: 10px 12px; }
}

/* ==============================================
   КНОПКА «В ПОИСКЕ» в bottom-sheet
   ============================================== */
.mst-search-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.8);
    color: #1d1d1f;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.mst-search-link:hover {
    background: #fff;
    border-color: #1d1d1f;
    transform: translateY(-1px);
}
.mst-search-link svg { width: 14px; height: 14px; }
