:root[data-theme="light"] {
    --bg: #f5f7fb;
    --glass: rgba(255,255,255,.88);
    --card: #ffffff;
    --text: #111827;
    --muted: #6b7280;
    --border: rgba(17,24,39,.12);
    --shadow: rgba(15,23,42,.18);
    --green: #22c55e;
    --yellow: #facc15;
    --red: #ef4444;
    --blue: #2563eb;
}

:root[data-theme="dark"] {
    --bg: #0b0f16;
    --glass: rgba(18,24,33,.84);
    --card: #161b22;
    --text: #f9fafb;
    --muted: #9ca3af;
    --border: rgba(255,255,255,.12);
    --shadow: rgba(0,0,0,.45);
    --green: #22c55e;
    --yellow: #fbbf24;
    --red: #f87171;
    --blue: #3b82f6;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, Arial, sans-serif;
}

#map {
    position: fixed;
    inset: 0;
}

.corner-logo {
    position: fixed;
    top: 22px;
    left: 22px;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #10b981, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 950;
    box-shadow: 0 14px 35px var(--shadow);
    user-select: none;
}

.theme-btn {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 5;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--glass);
    color: var(--text);
    font-size: 19px;
    box-shadow: 0 14px 35px var(--shadow);
    backdrop-filter: blur(18px);
}

.marker-wrap {
    position: relative;
    width: 48px;
    height: 58px;
    cursor: pointer;
}

.marker-dot {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: var(--glass);
    border: 4px solid var(--green);
    box-shadow: 0 12px 28px var(--shadow);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-size: 21px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.marker-wrap:hover .marker-dot {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 18px 40px var(--shadow);
}

.marker-wrap::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 42px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: var(--green);
    border-radius: 2px;
}

.marker-available .marker-dot { border-color: var(--green); }
.marker-available::after { background: var(--green); }

.marker-low .marker-dot { border-color: var(--yellow); }
.marker-low::after { background: var(--yellow); }

.marker-empty .marker-dot { border-color: var(--red); }
.marker-empty::after { background: var(--red); }

.marker-unknown .marker-dot { border-color: #cbd5e1; }
.marker-unknown::after { background: #cbd5e1; }

.station-popup {
    position: fixed;
    left: 50%;
    top: 36%;
    transform: translate(-50%, -50%);
    z-index: 6;
    width: min(360px, calc(100% - 44px));
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: 0 24px 65px var(--shadow);
    backdrop-filter: blur(22px);
    padding: 20px;
    animation: popupIn .18s ease both;
}

.station-popup.hidden {
    display: none;
}

.popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 12px;
    border: none;
    background: rgba(127,127,127,.14);
    color: var(--muted);
    font-size: 20px;
}

.popup-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.brand-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: #ef4444;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 950;
}

.popup-title {
    font-size: 21px;
    font-weight: 950;
}

.popup-address {
    color: var(--muted);
    margin-top: 5px;
}

.popup-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0;
    color: var(--text);
    font-size: 16px;
}

.green-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
}

.popup-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    margin: 18px 0;
}

.route-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    font-size: 16px;
    font-weight: 900;
}

.bottom-hint {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 4;
    width: min(520px, calc(100% - 72px));
    height: 86px;
    border-radius: 30px 30px 0 0;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.55);
    box-shadow: 0 -12px 38px rgba(15,23,42,.12);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(17,24,39,.45);
    font-size: 20px;
    font-weight: 800;
    pointer-events: none;
}

:root[data-theme="dark"] .bottom-hint {
    background: rgba(18,24,33,.48);
    color: rgba(249,250,251,.42);
    border-color: rgba(255,255,255,.08);
}

.hint-handle {
    position: absolute;
    top: 14px;
    width: 58px;
    height: 5px;
    border-radius: 999px;
    background: currentColor;
    opacity: .55;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.58);
    z-index: 20;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
}

.modal.hidden {
    display: none;
}

.modal-card {
    width: min(520px, 100%);
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 0 18px 55px var(--shadow);
}

.modal-title {
    font-size: 23px;
    font-weight: 950;
}

.modal-subtitle {
    color: var(--muted);
    margin: 6px 0 16px;
}

.modal-actions {
    display: grid;
    gap: 10px;
}

.report-btn, .close-btn {
    padding: 15px;
    border-radius: 18px;
    border: none;
    font-size: 16px;
    font-weight: 950;
}

.close-btn {
    width: 100%;
    margin-top: 12px;
    background: rgba(127,127,127,.12);
    color: var(--text);
}

.available { color: var(--green); background: rgba(34,197,94,.16); }
.low { color: var(--yellow); background: rgba(251,191,36,.16); }
.empty { color: var(--red); background: rgba(248,113,113,.16); }

.maplibregl-ctrl-bottom-left {
    left: 22px;
    bottom: 42px;
}

.maplibregl-ctrl-group {
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 14px 35px var(--shadow) !important;
}

@keyframes popupIn {
    from {
        opacity: 0;
        transform: translate(-50%, -46%) scale(.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.fuel-filter {
    position: fixed;
    left: 50%;
    bottom: 96px;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
    padding: 8px;
    border-radius: 22px;
    background: var(--glass);
    border: 1px solid var(--border);
    box-shadow: 0 14px 35px var(--shadow);
    backdrop-filter: blur(18px);
}

.fuel-chip {
    border: none;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(127,127,127,.12);
    color: var(--text);
    font-weight: 900;
}

.fuel-chip.active {
    background: rgba(34,197,94,.18);
    color: var(--green);
}

.popup-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.update-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: rgba(34,197,94,.16);
    color: var(--green);
    font-size: 16px;
    font-weight: 900;
}

.stats-box {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.stats-box div {
    padding: 12px;
    border-radius: 16px;
    background: rgba(127,127,127,.10);
    border: 1px solid var(--border);
}

.stats-box span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.stats-box strong {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.marker-wrap:hover .marker-dot {
    transform: none !important;
    box-shadow: 0 12px 28px var(--shadow) !important;
}

.marker-dot {
    transition: none !important;
}

.fuel-select-box {
    margin-bottom: 14px;
}

.fuel-select-box.hidden {
    display: none;
}

.modal-small-title {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}

.fuel-select-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.fuel-select-btn {
    border: 1px solid var(--border);
    background: rgba(127,127,127,.10);
    color: var(--text);
    border-radius: 14px;
    padding: 11px 6px;
    font-weight: 900;
}

.fuel-select-btn.active {
    background: rgba(34,197,94,.18);
    color: var(--green);
    border-color: rgba(34,197,94,.45);
}

.bottom-hint {
    left: 22px !important;
    bottom: 22px !important;
    transform: none !important;
    width: auto !important;
    height: auto !important;
    min-width: auto !important;
    padding: 12px 16px !important;
    border-radius: 999px !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    color: rgba(17,24,39,.62) !important;
}

.bottom-hint .hint-handle {
    display: none !important;
}

.fuel-status-list {
    display: grid;
    gap: 8px;
    margin: 14px 0;
}

.fuel-status-row {
    display: grid;
    grid-template-columns: 64px 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(127,127,127,.10);
    border: 1px solid var(--border);
}

.fuel-status-row span {
    font-weight: 900;
}

.fuel-status-row strong {
    font-size: 14px;
}

.fuel-status-row em {
    font-style: normal;
    color: var(--muted);
    font-size: 13px;
}

.my-vote {
    grid-column: 1 / -1;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13px;
}

.my-vote b {
    color: var(--text);
}

.my-vote button {
    border: none;
    border-radius: 999px;
    padding: 7px 10px;
    background: rgba(239,68,68,.12);
    color: var(--red);
    font-weight: 900;
}

.marker-wrap {
    width: 32px !important;
    height: 32px !important;
}

.marker-dot {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    border-width: 3px !important;
    font-size: 18px !important;
    background: #ffffff !important;
    box-shadow: 0 6px 16px rgba(15,23,42,.22) !important;
}

.marker-wrap::after {
    display: none !important;
}

.marker-wrap {
    width: 38px !important;
    height: 38px !important;
    cursor: pointer !important;
}

.marker-dot {
    width: 38px !important;
    height: 38px !important;
    border-radius: 12px !important;
    border-width: 5px !important;
    background: #ffffff !important;
    font-size: 22px !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.38) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.marker-wrap::after {
    display: none !important;
}

.marker-available .marker-dot {
    border-color: #00C853 !important;
    color: #00C853 !important;
}

.marker-low .marker-dot {
    border-color: #FFB300 !important;
    color: #FFB300 !important;
}

.marker-empty .marker-dot {
    border-color: #F44336 !important;
    color: #F44336 !important;
}

.marker-unknown .marker-dot {
    border-color: #94A3B8 !important;
    color: #64748B !important;
}

.fuel-filter {
    max-width: calc(100% - 24px);
    overflow-x: auto;
    scrollbar-width: none;
}

.fuel-filter::-webkit-scrollbar {
    display: none;
}

.fuel-chip {
    white-space: nowrap;
}

.fuel-select-grid {
    grid-template-columns: repeat(5, 1fr) !important;
}

/* ===== Вертикальный фильтр ===== */

.fuel-filter{
    position:fixed !important;
    top:90px !important;
    right:12px !important;
    left:auto !important;

    display:flex !important;
    flex-direction:column !important;
    gap:8px !important;

    width:auto !important;
    max-width:none !important;

    background:rgba(255,255,255,.92) !important;
    backdrop-filter:blur(12px);

    padding:8px !important;
    border-radius:18px !important;

    box-shadow:0 8px 24px rgba(0,0,0,.12);

    z-index:1000;
}

.fuel-chip{
    width:54px !important;
    height:38px !important;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0 !important;

    border-radius:12px !important;

    font-size:13px !important;
    font-weight:700;
}

/* ===== Увеличиваем точки ===== */

.maplibregl-canvas{
    cursor:default;
}

/* Убираем подсказку */

.tap-hint,
.map-hint,
.start-hint,
#mapHint{
    display:none !important;
}


/* Компактный вертикальный фильтр */

.fuel-filter{
    height: fit-content !important;
    padding:8px !important;
    border-radius:18px !important;
    gap:8px !important;
}

.fuel-chip{
    width:56px !important;
    height:42px !important;
    margin:0 !important;
}


/* ===== Telegram WebApp mobile layout ===== */

html,
body,
#map {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.corner-logo {
    top: 12px !important;
    left: 12px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 14px !important;
    font-size: 17px !important;
}

/* Убираем подсказку */
.bottom-hint {
    display: none !important;
}

/* Фильтр для WebApp: компактно снизу */
.fuel-filter {
    position: fixed !important;
    left: 50% !important;
    right: auto !important;
    top: auto !important;
    bottom: 14px !important;
    transform: translateX(-50%) !important;

    width: min(390px, calc(100vw - 24px)) !important;
    height: auto !important;
    max-height: none !important;

    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;

    padding: 8px !important;
    border-radius: 22px !important;

    background: rgba(255,255,255,.92) !important;
    backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(17,24,39,.08) !important;
    box-shadow: 0 12px 34px rgba(15,23,42,.18) !important;
    z-index: 10 !important;
}

.fuel-chip {
    width: auto !important;
    height: 38px !important;
    min-width: 0 !important;

    padding: 0 10px !important;
    border-radius: 999px !important;

    font-size: 14px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
}

/* Карточка АЗС ближе к WebApp-поведению */
.station-popup {
    top: auto !important;
    bottom: 96px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;

    width: min(390px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 130px) !important;
    overflow-y: auto !important;

    border-radius: 26px !important;
    padding: 18px !important;
}

/* Модальное окно оценки */
.modal {
    padding: 10px !important;
}

.modal-card {
    width: min(390px, 100%) !important;
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
    border-radius: 26px !important;
}

.fuel-select-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.queue-grid,
.limit-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* MapLibre controls */
.maplibregl-ctrl-bottom-left {
    left: 12px !important;
    bottom: 112px !important;
}

@media (max-width: 380px) {
    .fuel-filter {
        grid-template-columns: repeat(2, 1fr) !important;
        bottom: 10px !important;
    }

    .station-popup {
        bottom: 118px !important;
    }

    .fuel-chip {
        height: 36px !important;
        font-size: 13px !important;
    }
}

/* ===== Mobile WebApp layout v1 ===== */

html,
body,
#map {
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.corner-logo,
.bottom-hint {
    display: none !important;
}

.top-search {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 10px);
    left: 12px;
    right: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 42px;
    gap: 8px;
}

.search-box {
    height: 42px;
    border-radius: 16px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    padding: 0 14px;
    color: #6b7280;
    font-weight: 800;
    font-size: 14px;
}

.filter-btn {
    height: 42px;
    border-radius: 16px;
    border: 1px solid rgba(17,24,39,.08);
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
    font-size: 18px;
}

.fuel-filter {
    position: fixed !important;
    top: calc(env(safe-area-inset-top) + 60px) !important;
    left: 12px !important;
    right: 12px !important;
    bottom: auto !important;
    transform: none !important;

    width: auto !important;
    max-width: none !important;
    height: auto !important;

    display: flex !important;
    flex-direction: row !important;
    gap: 7px !important;

    padding: 6px !important;
    border-radius: 18px !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;

    background: rgba(255,255,255,.92) !important;
    border: 1px solid rgba(17,24,39,.08) !important;
    box-shadow: 0 8px 24px rgba(15,23,42,.12) !important;
    backdrop-filter: blur(14px) !important;
    z-index: 30 !important;
}

.fuel-filter::-webkit-scrollbar {
    display: none !important;
}

.fuel-chip {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 48px !important;
    height: 34px !important;
    padding: 0 12px !important;
    border-radius: 999px !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 35;
    height: calc(64px + env(safe-area-inset-bottom));
    padding: 7px 12px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96);
    border-top: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 -8px 24px rgba(15,23,42,.10);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
}

.nav-item {
    border: none;
    background: transparent;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-size: 18px;
    font-weight: 900;
}

.nav-item span {
    font-size: 11px;
}

.nav-item.active {
    color: #16a34a;
}

.station-popup {
    top: auto !important;
    bottom: calc(76px + env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(390px, calc(100vw - 20px)) !important;
    max-height: calc(100vh - 165px) !important;
    overflow-y: auto !important;
    border-radius: 26px !important;
}

.maplibregl-ctrl-bottom-left {
    left: 12px !important;
    bottom: calc(82px + env(safe-area-inset-bottom)) !important;
}

.modal-card {
    width: min(390px, 100%) !important;
    max-height: calc(100vh - 24px) !important;
    overflow-y: auto !important;
}

@media (max-width: 380px) {
    .fuel-chip {
        min-width: 44px !important;
        height: 32px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
    }

    .search-box {
        font-size: 13px;
    }
}

.top-search,
.search-box,
.filter-btn {
    display: none !important;
}

.fuel-filter {
    top: calc(env(safe-area-inset-top) + 10px) !important;
    left: 10px !important;
    right: 10px !important;
    padding: 6px !important;
    border-radius: 18px !important;
    justify-content: flex-start !important;
}

.fuel-chip {
    height: 32px !important;
    min-width: 46px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
}

.status-legend {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 58px);
    left: 10px;
    right: 10px;
    z-index: 30;

    display: flex;
    justify-content: space-between;
    gap: 6px;

    padding: 7px 9px;
    border-radius: 16px;

    background: rgba(255,255,255,.92);
    border: 1px solid rgba(17,24,39,.08);
    box-shadow: 0 8px 24px rgba(15,23,42,.10);
    backdrop-filter: blur(14px);

    color: #374151;
    font-size: 12px;
    font-weight: 900;
}

.status-legend div {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(15,23,42,.18);
}

.legend-green { background: #00C853; }
.legend-yellow { background: #FFB300; }
.legend-red { background: #F44336; }
.legend-gray { background: #94A3B8; }

.station-popup {
    max-height: calc(100vh - 180px) !important;
}

/* ===== WebApp compact controls v2 ===== */

/* Фильтр топлива сверху, ниже выреза Telegram/iPhone */
.fuel-filter {
    top: calc(env(safe-area-inset-top) + 42px) !important;
    left: 12px !important;
    right: 12px !important;

    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;

    padding: 6px !important;
    border-radius: 18px !important;

    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.14) !important;
}

.fuel-chip {
    height: 30px !important;
    min-width: 44px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
    border-radius: 999px !important;
}

/* Расшифровка цветов снизу */
.status-legend {
    top: auto !important;
    bottom: calc(72px + env(safe-area-inset-bottom)) !important;
    left: 12px !important;
    right: 12px !important;

    display: flex !important;
    justify-content: space-between !important;

    padding: 7px 10px !important;
    border-radius: 18px !important;

    font-size: 11px !important;
    box-shadow: 0 8px 22px rgba(15,23,42,.14) !important;
}

.legend-dot {
    width: 10px !important;
    height: 10px !important;
}

/* Карточку чуть выше нижней расшифровки */
.station-popup {
    bottom: calc(126px + env(safe-area-inset-bottom)) !important;
}

/* Контролы карты не перекрывают легенду */
.maplibregl-ctrl-bottom-left {
    bottom: calc(132px + env(safe-area-inset-bottom)) !important;
}

/* ===== Нижний фильтр + расшифровка ===== */

.fuel-filter {
    position: fixed !important;
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(48px + env(safe-area-inset-bottom)) !important;
    transform: none !important;

    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;

    width: auto !important;
    max-width: none !important;
    height: auto !important;

    padding: 7px !important;
    border-radius: 20px !important;

    background: rgba(255,255,255,.95) !important;
    border: 1px solid rgba(17,24,39,.08) !important;
    box-shadow: 0 10px 28px rgba(15,23,42,.16) !important;
    backdrop-filter: blur(14px) !important;

    overflow-x: auto !important;
    scrollbar-width: none !important;
    z-index: 35 !important;
}

.fuel-filter::-webkit-scrollbar {
    display: none !important;
}

.fuel-chip {
    flex: 1 0 auto !important;
    min-width: 44px !important;
    height: 32px !important;
    padding: 0 10px !important;

    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    white-space: nowrap !important;
}

/* Расшифровка цветов под фильтром */
.status-legend {
    position: fixed !important;
    top: auto !important;
    left: 12px !important;
    right: 12px !important;
    bottom: calc(14px + env(safe-area-inset-bottom)) !important;

    z-index: 35 !important;

    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;

    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;

    color: #374151 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
}

.status-legend div {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    white-space: nowrap !important;
}

.legend-dot {
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 1px 5px rgba(15,23,42,.25) !important;
}

/* Карточка открывается выше фильтра */
.station-popup {
    bottom: calc(104px + env(safe-area-inset-bottom)) !important;
    max-height: calc(100vh - 145px) !important;
}

/* Кнопки масштаба выше нижнего блока */
.maplibregl-ctrl-bottom-left {
    bottom: calc(112px + env(safe-area-inset-bottom)) !important;
}

/* Убираем нижнюю навигацию, пока не сделаем вкладки */
.bottom-nav {
    display: none !important;
}
