body.map-page{
    background:
        radial-gradient(circle at top center, rgba(255,193,7,.14), transparent 28%),
        linear-gradient(180deg, #07111d 0%, #0a1626 42%, #0d1c30 100%);
    color:#fff;
}

body.map-page .map-page-container{
    max-width:none;
    width:min(96%, 1780px);
    padding-top:24px;
    padding-bottom:32px;
}

body.map-page .fuel-map-shell{
    position:relative;
    z-index:1;
}

body.map-page .fuel-map-header{
    margin-bottom:4px;
}

body.map-page .fuel-map-header h1{
    color:#fff;
    font-weight:800;
    letter-spacing:-.02em;
}

body.map-page .fuel-map-header p{
    color:rgba(255,255,255,.72);
}

body.map-page .fuel-map-toolbar,
body.map-page .fuel-map-results,
body.map-page .fuel-map-canvas-wrap,
body.map-page .map-stat-chip{
    background:rgba(10,18,30,.72);
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 50px rgba(0,0,0,.28);
    backdrop-filter:blur(16px);
}

body.map-page .results-header{
    background:rgba(255,255,255,.02);
}

body.map-page .map-station-card{
    background:rgba(255,255,255,.04);
}

body.map-page .map-empty-state,
body.map-page .map-loading-state{
    background:rgba(255,255,255,.035);
}

.map-page-container{
    width:min(100%, 1700px);
    max-width:none;
}

.fuel-map-shell{
    color:#fff;
    display:flex;
    flex-direction:column;
    gap:20px;
    padding:18px 0 28px;
}

.fuel-map-header{
    display:flex;
    justify-content:space-between;
    gap:20px;
    align-items:flex-start;
    flex-wrap:wrap;
}

.fuel-map-header h1{
    margin:0 0 8px;
    font-size:34px;
    line-height:1.1;
}

.fuel-map-header p{
    margin:0;
    color:rgba(255,255,255,.72);
    max-width:780px;
}

.fuel-map-stats{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
}

.map-stat-chip{
    min-width:140px;
    padding:12px 14px;
    border-radius:18px;
    background:rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
}

.map-stat-chip .label{
    display:block;
    font-size:12px;
    color:rgba(255,255,255,.6);
    margin-bottom:4px;
}

.map-stat-chip strong{
    font-size:18px;
}

.fuel-map-toolbar{
    display:grid;
    grid-template-columns:repeat(6, minmax(0,1fr));
    gap:14px;
    padding:16px;
    border-radius:24px;
    background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 20px 40px rgba(0,0,0,.18);
}

.map-filter-group{
    display:flex;
    flex-direction:column;
    gap:8px;
}

.map-filter-group label{
    font-size:13px;
    color:rgba(255,255,255,.7);
}

.map-filter-group input,
.map-filter-group select{
    height:48px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(10,20,35,.75);
    color:#fff;
    padding:0 14px;
    outline:none;
}

.map-filter-group-checkbox{
    justify-content:flex-end;
}

.checkbox-wrap{
    display:flex;
    align-items:center;
    gap:10px;
    min-height:48px;
}

.map-filter-actions{
    display:flex;
    gap:10px;
    align-items:flex-end;
    flex-wrap:wrap;
}

.map-btn{
    height:48px;
    padding:0 18px;
    border:none;
    border-radius:16px;
    background:rgba(255,255,255,.08);
    color:#fff;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-weight:700;
}

.map-btn-primary{
    background:linear-gradient(135deg,#ffb703,#ff8c00);
    color:#09111b;
}

.fuel-map-layout{
    display:grid;
    grid-template-columns:minmax(0,1.7fr) 390px;
    gap:18px;
    align-items:stretch;
}

.fuel-map-main{
    min-width:0;
}

.fuel-map-canvas-wrap{
    position:relative;
    border-radius:28px;
    overflow:hidden;
    border:1px solid rgba(255,255,255,.08);
    box-shadow:0 24px 60px rgba(0,0,0,.22);
    background:#081321;
}

#fuelMap{
    width:100%;
    height:100%;
    min-height:560px;
}

.map-floating-legend{
    position:absolute;
    right:16px;
    bottom:16px;
    z-index:500;
    padding:12px 14px;
    border-radius:18px;
    background:rgba(5,10,18,.82);
    border:1px solid rgba(255,255,255,.08);
    backdrop-filter:blur(10px);
    display:flex;
    flex-direction:column;
    gap:8px;
    font-size:13px;
}

.dot{
    width:10px;
    height:10px;
    border-radius:50%;
    display:inline-block;
    margin-right:8px;
}

.dot.green{ background:#1ecb75; }
.dot.orange{ background:#f59e0b; }
.dot.red{ background:#ef4444; }

.fuel-map-results{
    border-radius:28px;
    border:1px solid rgba(255,255,255,.08);
    background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
    overflow:hidden;
    min-height:560px;
    display:flex;
    flex-direction:column;
}

.results-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 18px 14px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.results-header h2{
    margin:0;
    font-size:18px;
}

.results-header span{
    background:rgba(255,255,255,.08);
    border-radius:999px;
    padding:6px 10px;
    font-size:13px;
}

.results-list{
    padding:14px;
    overflow:auto;
    display:flex;
    flex-direction:column;
    gap:12px;
}

.map-station-card{
    padding:14px;
    border-radius:20px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.06);
    transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.map-station-card:hover{
    transform:translateY(-2px);
    border-color:rgba(255,255,255,.14);
    box-shadow:0 16px 34px rgba(0,0,0,.18);
}

.map-station-top{
    display:flex;
    gap:12px;
    align-items:flex-start;
    margin-bottom:12px;
}

.map-station-logo{
    width:52px;
    height:52px;
    border-radius:16px;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    flex-shrink:0;
    font-weight:800;
}

.map-station-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:8px;
}

.map-station-meta h3{
    margin:0 0 4px;
    font-size:16px;
}

.map-station-meta p{
    margin:0;
    font-size:13px;
    color:rgba(255,255,255,.68);
}

.map-station-bottom{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
}

.map-station-price-block span{
    display:block;
    font-size:12px;
    color:rgba(255,255,255,.58);
    margin-bottom:3px;
}

.map-station-price-block strong{
    font-size:21px;
}

.map-station-confirm{
    font-size:13px;
    color:rgba(255,255,255,.72);
}

.map-station-actions{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.map-inline-btn{
    height:40px;
    padding:0 14px;
    border-radius:12px;
    border:none;
    background:rgba(255,255,255,.08);
    color:#fff;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    font-weight:700;
}

.map-inline-btn-link{
    background:rgba(255,183,3,.16);
}

.map-empty-state,
.map-loading-state{
    padding:22px;
    border-radius:18px;
    background:rgba(255,255,255,.04);
    color:rgba(255,255,255,.65);
    text-align:center;
}

.custom-price-marker{
    position:relative;
    min-width:68px;
    height:36px;
    padding:0 10px 0 12px;
    border-radius:999px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    background:rgba(15,23,42,.96);
    color:#fff;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 14px 28px rgba(0,0,0,.30);
    backdrop-filter:blur(8px);
}

.custom-price-marker .marker-price{
    font-size:14px;
    font-weight:900;
    line-height:1;
    letter-spacing:-.02em;
}

.custom-price-marker .marker-logo{
    width:20px;
    height:20px;
    min-width:20px;
    border-radius:999px;
    overflow:hidden;
    background:rgba(255,255,255,.9);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 8px rgba(0,0,0,.18);
}

.custom-price-marker .marker-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:2px;
}

.custom-price-marker .marker-logo span{
    font-size:9px;
    font-weight:800;
    color:#09111b;
}

.custom-price-marker.no-price{
    min-width:36px;
    width:36px;
    height:36px;
    padding:0;
    border-radius:50%;
    background:linear-gradient(135deg,#334155,#64748b);
}

.custom-price-marker.no-price .marker-logo-only{
    width:24px;
    height:24px;
}

.custom-price-marker .marker-tip{
    position:absolute;
    left:50%;
    bottom:-7px;
    width:12px;
    height:12px;
    background:inherit;
    transform:translateX(-50%) rotate(45deg);
    border-right:1px solid rgba(255,255,255,.14);
    border-bottom:1px solid rgba(255,255,255,.14);
}

.custom-price-marker.green{
    background:linear-gradient(135deg,#16a34a,#22c55e);
}

.custom-price-marker.orange{
    background:linear-gradient(135deg,#d97706,#f59e0b);
}

.custom-price-marker.red{
    background:linear-gradient(135deg,#dc2626,#ef4444);
}

.custom-price-marker.gray{
    background:linear-gradient(135deg,#475569,#64748b);
}

.station-drawer{
    position:fixed;
    inset:0;
    pointer-events:none;
    z-index:3000;
}

.station-drawer.active{
    pointer-events:auto;
}

.station-drawer-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.4);
    opacity:0;
    transition:.25s ease;
}

.station-drawer.active .station-drawer-backdrop{
    opacity:1;
}

.station-drawer-panel{
    position:absolute;
    top:0;
    right:0;
    width:min(460px, 100%);
    height:100%;
    background:linear-gradient(180deg,#081321,#0d1b2a);
    border-left:1px solid rgba(255,255,255,.08);
    box-shadow:-20px 0 60px rgba(0,0,0,.35);
    transform:translateX(100%);
    transition:.28s ease;
    padding:22px;
    overflow:auto;
}

.station-drawer.active .station-drawer-panel{
    transform:translateX(0);
}

.station-drawer-close{
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    margin-left:auto;
    display:block;
}

.station-drawer-content{
    margin-top:14px;
}

.drawer-station-header{
    display:flex;
    gap:14px;
    margin-bottom:18px;
}

.drawer-station-logo{
    width:66px;
    height:66px;
    border-radius:18px;
    background:rgba(255,255,255,.08);
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    font-weight:800;
    flex-shrink:0;
}

.drawer-station-logo img{
    width:100%;
    height:100%;
    object-fit:contain;
    padding:10px;
}

.drawer-station-title h3{
    margin:0 0 6px;
    font-size:24px;
}

.drawer-station-title p{
    margin:0;
    color:rgba(255,255,255,.7);
}

.drawer-prices-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin-bottom:18px;
}

.drawer-price-card{
    border-radius:18px;
    padding:14px;
    background:rgba(255,255,255,.05);
    border:1px solid rgba(255,255,255,.06);
}

.drawer-price-card .fuel-name{
    display:block;
    margin-bottom:6px;
    font-size:12px;
    color:rgba(255,255,255,.62);
}

.drawer-price-card strong{
    display:block;
    font-size:22px;
    margin-bottom:8px;
}

.drawer-price-card small{
    display:block;
    color:rgba(255,255,255,.62);
    line-height:1.45;
}

.drawer-station-actions{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
}

@media (max-width: 1180px){
    .fuel-map-toolbar{
        grid-template-columns:repeat(3, minmax(0,1fr));
    }

    .fuel-map-layout{
        grid-template-columns:1fr;
    }

    .fuel-map-results{
        min-height:auto;
        max-height:420px;
    }
}

@media (max-width: 760px){
    .fuel-map-header h1{
        font-size:28px;
    }

    .fuel-map-toolbar{
        grid-template-columns:1fr 1fr;
        padding:14px;
        border-radius:20px;
    }

    .fuel-map-canvas-wrap{
        border-radius:22px;
    }

    #fuelMap{
        min-height:440px;
    }

    .drawer-prices-grid{
        grid-template-columns:1fr;
    }

    .station-drawer-panel{
        width:100%;
    }
}

@media (max-width: 560px){
    .fuel-map-toolbar{
        grid-template-columns:1fr;
    }

    .map-filter-actions{
        flex-direction:column;
        align-items:stretch;
    }

    .map-btn{
        width:100%;
    }

    .map-floating-legend{
        left:12px;
        right:12px;
        bottom:12px;
    }
}

.map-results-more-wrap{
    display:flex;
    justify-content:center;
    padding:6px 0 2px;
}

.map-results-more-btn{
    min-width:180px;
}

.map-today-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    margin-left:8px;
    padding:2px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    background:#1f7a1f;
    color:#fff;
    line-height:1.2;
}

.map-filter-group-checkboxes{
    display:flex;
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:10px;
    min-width:190px;
}

.checkbox-wrap{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0;
    white-space:nowrap;
    font-size:14px;
    font-weight:600;
}

.checkbox-wrap input[type="checkbox"]{
    margin:0;
    flex-shrink:0;
}

.price-update{
    animation:pricePulse 1.2s ease;
}

@keyframes pricePulse{
    0%{
        transform:scale(1);
        box-shadow:0 0 0 rgba(255,193,7,0);
    }

    40%{
        transform:scale(1.25);
        box-shadow:0 0 20px rgba(255,193,7,0.9);
    }

    70%{
        transform:scale(0.95);
    }

    100%{
        transform:scale(1);
        box-shadow:0 0 0 rgba(255,193,7,0);
    }
}

.map-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:2px 8px;
    border-radius:999px;
    font-size:11px;
    font-weight:700;
    margin-left:6px;
    line-height:1.2;
}

.map-badge.green{
    background:#166534;
    color:#fff;
}

.map-badge.orange{
    background:#92400e;
    color:#fff;
}

.map-badge.red{
    background:#7f1d1d;
    color:#fff;
}

.map-badge.gray{
    background:rgba(148,163,184,.16);
    color:#cbd5e1;
}

.map-badge.best{
    background:linear-gradient(135deg,#ffb703,#ff8c00);
    color:#111;
}

.map-station-price-block strong.green{
    color:#22c55e;
}

.map-station-price-block strong.orange{
    color:#f59e0b;
}

.map-station-price-block strong.red{
    color:#ef4444;
}

.custom-price-marker:hover{
    transform:scale(1.08);
    box-shadow:0 18px 38px rgba(0,0,0,.35);
    cursor:pointer;
}

.price-date {
    cursor: help;
}

/* ===== MAP TOOLBAR LAYOUT V2 ===== */

.fuel-map-toolbar{
    display:flex;
    flex-direction:column;
    gap:16px;
    padding:18px;
    border-radius:24px;
}

.fuel-map-toolbar-grid{
    display:grid;
    grid-template-columns:1.35fr repeat(4, minmax(0,1fr));
    gap:14px;
    align-items:end;
}

.map-filter-group{
    min-width:0;
}

.map-filter-group input,
.map-filter-group select{
    width:100%;
}

.map-filter-group-city{
    grid-column:auto;
}

.fuel-map-toolbar-bottom{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px 18px;
    flex-wrap:wrap;
}

.map-filter-actions{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

.map-filter-toggles{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:10px 18px;
    flex-wrap:wrap;
    margin-left:auto;
}

.checkbox-wrap{
    display:inline-flex;
    align-items:center;
    gap:10px;
    min-height:auto;
    margin:0;
    white-space:nowrap;
    font-size:14px;
    font-weight:600;
    color:rgba(255,255,255,.86);
}

.checkbox-wrap input[type="checkbox"]{
    margin:0;
    width:18px;
    height:18px;
    flex-shrink:0;
    accent-color:#ffb703;
}

.map-btn{
    height:46px;
}

@media (max-width: 1180px){
    .fuel-map-toolbar-grid{
        grid-template-columns:repeat(3, minmax(0,1fr));
    }

    .fuel-map-toolbar-bottom{
        flex-direction:column;
        align-items:stretch;
    }

    .map-filter-toggles{
        justify-content:flex-start;
        margin-left:0;
    }
}

@media (max-width: 760px){
    .fuel-map-toolbar{
        padding:14px;
        border-radius:20px;
        gap:14px;
    }

    .fuel-map-toolbar-grid{
        grid-template-columns:1fr 1fr;
        gap:12px;
    }

    .map-filter-toggles{
        width:100%;
        flex-direction:column;
        align-items:flex-start;
        gap:10px;
    }
}

@media (max-width: 560px){
    .fuel-map-toolbar-grid{
        grid-template-columns:1fr;
    }

    .map-filter-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:10px;
        width:100%;
    }

    .map-filter-actions #mapApplyFilters{
        grid-column:1 / -1;
    }

    .map-filter-actions .map-btn{
        width:100%;
    }

    .checkbox-wrap{
        white-space:normal;
        line-height:1.35;
    }
}