/* ==========================================
   INFO GAS 🇲🇽 — Identidad Mexicana
   ========================================== */
:root {
    --primary: #2E7D32;
    --primary-dark: #1B5E20;
    --accent: #F9A825;
    --bg-dark: #0D1117;
    --panel-dark: #161B22;
    --text-light: #E6EDF3;
    --text-muted: #8B949E;
    --border: #30363D;
    --card-hover: #21262D;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* === HEADER === */
header {
    background: var(--primary-dark);
    border-bottom: 2px solid rgba(249, 168, 37, 0.3);
    padding: 0.6rem 1.5rem;
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin: 0;
}

.logo-icon {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.app-stats {
    background: rgba(249, 168, 37, 0.15);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(249, 168, 37, 0.3);
}

main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* === SIDEBAR === */
aside {
    width: 380px;
    background: var(--panel-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
}

.filters-panel {
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
    width: 100%;
}

label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

select,
input {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
    font-family: inherit;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-overflow: ellipsis;
}

select:focus,
input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* Sorting chips (combustible) */
.sorting-tabs {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.2rem;
    min-width: 0;
    width: 100%;
}

.tab-btn {
    flex: 1;
    min-width: 0;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 0.45rem 0.3rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.tab-btn[data-sort="magna"].active {
    background: #1B5E20;
    color: #A5D6A7;
    border-color: #2E7D32;
    box-shadow: 0 0 10px rgba(46, 125, 50, 0.3);
}

.tab-btn[data-sort="premium"].active {
    background: #7f0000;
    color: #FFCDD2;
    border-color: #b71c1c;
    box-shadow: 0 0 10px rgba(183, 28, 28, 0.3);
}

.tab-btn[data-sort="diesel"].active {
    background: #E65100;
    color: #FFE0B2;
    border-color: #F57C00;
    box-shadow: 0 0 10px rgba(245, 124, 0, 0.3);
}

/* === STATIONS LIST === */
.stations-list {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* Station card (sidebar list) */
.station-card {
    background: var(--card-hover);
    border: 1px solid var(--border);
    border-left: 3px solid var(--primary);
    border-radius: 0.6rem;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.station-card:hover {
    background: #2a2f35;
    transform: translateX(3px);
    border-left-color: var(--accent);
}

.station-card.active {
    border-left-color: var(--accent);
    background: rgba(249, 168, 37, 0.06);
}

.station-name {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
    display: block;
    color: var(--text-light);
}

.prices-grid {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.price-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.badge-magna {
    background: #1B5E20;
    color: #A5D6A7;
}

.badge-premium {
    background: #7f0000;
    color: #FFCDD2;
}

.badge-diesel {
    background: #E65100;
    color: #FFE0B2;
}

/* === MAP === */
#map {
    flex: 1;
    background: #0b0e14;
}

/* === LEAFLET OVERRIDES === */
.leaflet-popup-content-wrapper {
    background: var(--panel-dark);
    color: var(--text-light);
    border-radius: 0.8rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.leaflet-popup-tip {
    background: var(--panel-dark);
}

.popup-header {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #A5D6A7;
}

.popup-prices {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.popup-btn {
    display: block;
    background: var(--primary);
    color: white !important;
    text-align: center;
    padding: 0.6rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* === MARKER CLUSTERS === */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(46, 125, 50, 0.55) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: var(--primary) !important;
    color: white !important;
    font-weight: bold;
    border-radius: 50%;
}

/* === LEAFLET LAYERS CONTROL === */
.leaflet-control-layers {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif !important;
}

.leaflet-control-layers-expanded {
    background: var(--panel-dark) !important;
    border: 1px solid var(--border) !important;
    border-radius: 0.6rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
    min-width: 150px !important;
    padding: 10px 15px !important;
}

.leaflet-control-layers label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-bottom: 0.5rem !important;
    cursor: pointer !important;
    text-transform: none !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
    color: var(--text-light) !important;
    white-space: nowrap !important;
}

.leaflet-control-layers label:last-child {
    margin-bottom: 0 !important;
}

.leaflet-control-layers-selector {
    margin: 0 !important;
    cursor: pointer !important;
    accent-color: var(--primary) !important;
    width: auto !important;
    height: auto !important;
}

.leaflet-control-layers span {
    color: var(--text-light) !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
}

/* === LOADER === */
.loader {
    display: none;
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.toggle-list-btn {
    display: none;
}

/* === NAV TABS === */
.nav-tabs {
    display: flex;
    gap: 0.4rem;
}

.mobile-tabs {
    display: none;
}

.mobile-stats {
    text-align: center;
    display: block;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: -0.25rem !important;
    margin-bottom: -0.2rem !important;
}

.update-info {
    font-size: 0.7rem;
    color: #8B949E;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.4rem;
    border-radius: 0.4rem;
    text-align: center;
    margin-bottom: 0 !important;
    font-weight: 500;
    line-height: 1.3;
}

/* CRE Badge */
.cre-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.65rem;
    font-weight: 600;
    color: #8B949E;
    padding: 0.5rem;
    border-top: 1px solid var(--border);
    background: var(--panel-dark);
    flex-shrink: 0;
}

.cre-badge em {
    font-style: normal;
    color: #A5D6A7;
}

/* Nav tab styles */
.nav-tab {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.14);
    color: white;
}

.nav-tab.active {
    background: var(--accent);
    color: #1a1a1a;
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(249, 168, 37, 0.35);
}

/* === VIEW CONTAINERS === */
.view-container {
    display: none;
    width: 100%;
    height: 100%;
    overflow: hidden;
    flex: 1;
}

.view-container.active {
    display: flex;
}

/* === NACIONAL VIEW === */
.nacional-sidebar {
    width: 380px;
    background: var(--panel-dark);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
}

.nacional-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.price-range-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.3rem;
    border-top: 1px solid var(--border);
    padding-top: 0.6rem;
}

.fuel-range-row {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fuel-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-light);
}

.range-inputs {
    display: flex;
    gap: 0.5rem;
}

.range-inputs input {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 0.5rem;
    font-size: 0.85rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    color: var(--text-light);
    border-radius: 0.5rem;
    outline: none;
    transition: all 0.2s;
}

.range-inputs input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* === STATISTICS === */
.stats-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent);
    padding-left: 0.6rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stat-card {
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 1.2rem;
    transition: all 0.25s;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.stat-card.magna-glow {
    border-left: 4px solid #2E7D32;
}

.stat-card.magna-glow .stat-value {
    color: #A5D6A7;
}

.stat-card.magna-glow:hover {
    box-shadow: 0 0 16px rgba(46, 125, 50, 0.2);
}

.stat-card.premium-glow {
    border-left: 4px solid #b71c1c;
}

.stat-card.premium-glow .stat-value {
    color: #EF9A9A;
}

.stat-card.premium-glow:hover {
    box-shadow: 0 0 16px rgba(183, 28, 28, 0.2);
}

.stat-card.diesel-glow {
    border-left: 4px solid #F57C00;
}

.stat-card.diesel-glow .stat-value {
    color: #FFCC80;
}

.stat-card.diesel-glow:hover {
    box-shadow: 0 0 16px rgba(245, 124, 0, 0.2);
}

.stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    margin-bottom: 0.4rem;
}

.stat-value {
    font-size: 1.7rem;
    font-weight: 700;
    color: white;
}

.stat-meta {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

/* === CHEAPEST STATIONS === */
.barata-card {
    background: var(--panel-dark);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.25s;
}

.barata-card:hover {
    transform: translateY(-2px);
}

.barata-card.magna-glow {
    border-left: 4px solid #2E7D32;
}

.barata-card.magna-glow:hover {
    box-shadow: 0 0 16px rgba(46, 125, 50, 0.2);
}

.barata-card.premium-glow {
    border-left: 4px solid #b71c1c;
}

.barata-card.premium-glow:hover {
    box-shadow: 0 0 16px rgba(183, 28, 28, 0.2);
}

.barata-card.diesel-glow {
    border-left: 4px solid #F57C00;
}

.barata-card.diesel-glow:hover {
    box-shadow: 0 0 16px rgba(245, 124, 0, 0.2);
}

.barata-price {
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.3rem;
}

.barata-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.barata-location {
    font-size: 0.72rem;
    color: #A5D6A7;
    margin-bottom: 0.8rem;
}

/* === RESULTS GRID (Nacional) === */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    width: 100%;
}

.station-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s;
}

.station-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

.st-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.st-loc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.st-prices {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.st-price-badge {
    flex: 1;
    text-align: center;
    padding: 0.4rem 0.2rem;
    border-radius: 2rem;
    font-size: 0.78rem;
    font-weight: 700;
}

.st-price-badge.magna {
    background: rgba(27, 94, 32, 0.25);
    color: #A5D6A7;
    border: 1px solid rgba(46, 125, 50, 0.4);
}

.st-price-badge.premium {
    background: rgba(127, 0, 0, 0.25);
    color: #FFCDD2;
    border: 1px solid rgba(183, 28, 28, 0.4);
}

.st-price-badge.diesel {
    background: rgba(230, 81, 0, 0.2);
    color: #FFE0B2;
    border: 1px solid rgba(245, 124, 0, 0.4);
}

.st-price-badge.none {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px dashed rgba(255, 255, 255, 0.1);
}

.st-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    font-size: 0.72rem;
    color: var(--text-muted);
}

.table-maps-btn {
    background: rgba(46, 125, 50, 0.15);
    color: #A5D6A7;
    border: 1px solid rgba(46, 125, 50, 0.3);
    padding: 0.25rem 0.6rem;
    border-radius: 2rem;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-block;
    text-align: center;
}

.table-maps-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* === MOBILE MENU === */
.mobile-menu-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 0.4rem;
    padding: 0.2rem 0.5rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* === TABLET === */
@media (min-width: 769px) and (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.85rem;
    }

    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    }

    .nacional-content {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .barata-price {
        font-size: 1.4rem;
    }
}

/* === MOBILE === */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0.5rem 1rem;
        gap: 0.5rem;
        align-items: stretch;
    }

    .logo {
        justify-content: space-between;
        font-size: 1.05rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-controls {
        display: none;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }

    .header-controls.show {
        display: flex;
    }

    .nav-tabs {
        width: 100%;
        justify-content: center;
    }

    .app-stats {
        width: 100%;
        text-align: center;
    }

    .view-container {
        position: relative;
        flex-direction: column;
    }

    aside,
    .nacional-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: transparent;
        border: none;
        pointer-events: none;
        display: flex;
        flex-direction: column;
        z-index: 1000;
        box-shadow: none;
        max-height: none;
    }

    .filters-panel {
        pointer-events: auto;
        background: rgba(22, 27, 34, 0.97);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 1.5rem 1rem;
        gap: 1rem;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        box-sizing: border-box;
        height: 100vh;
        z-index: 2002;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.7);
        border: none;
        border-left: 2px solid rgba(46, 125, 50, 0.4);
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        flex-direction: column;
    }

    .mobile-tabs {
        display: flex;
        width: 100%;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .mobile-tabs .nav-tab {
        flex: 1;
    }

    .desktop-tabs,
    .desktop-only {
        display: none !important;
    }

    body.show-mobile-menu .filters-panel {
        right: 0;
    }

    .mobile-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        opacity: 0;
        transition: opacity 0.3s;
    }

    body.show-mobile-menu .mobile-overlay {
        display: block;
        opacity: 1;
    }

    body.show-mobile-menu .header-controls {
        display: flex;
    }

    body.show-mobile-menu .leaflet-top,
    body.show-mobile-menu .leaflet-bottom {
        z-index: 990 !important;
    }

    .toggle-list-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        background: rgba(22, 27, 34, 0.75);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: none;
        border-top: 1px solid rgba(46, 125, 50, 0.3);
        color: #A5D6A7;
        padding: 0.5rem;
        cursor: pointer;
        z-index: 998;
        font-size: 1.1rem;
        pointer-events: auto;
        margin-top: auto;
        transition: all 0.3s ease;
    }

    .toggle-list-btn.collapsed {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom)) !important;
    }

    .toggle-list-btn .toggle-arrow {
        transition: transform 0.3s ease;
        display: inline-block;
    }

    .toggle-list-btn.collapsed .toggle-arrow {
        transform: rotate(180deg);
    }

    #loader,
    #stations-list {
        pointer-events: auto;
        margin-top: 0;
        background: rgba(22, 27, 34, 0.5);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        max-height: 45vh;
        border-top: none;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
        width: 100%;
        position: relative;
        overflow-y: auto;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    }

    #stations-list.collapsed {
        max-height: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
        flex: none !important;
    }

    #loader {
        margin-top: auto;
        max-height: none;
    }

    #map {
        min-height: 100%;
        width: 100%;
    }

    .nacional-content {
        padding: 0.75rem;
        padding-bottom: calc(2rem + env(safe-area-inset-bottom));
        height: 100%;
        overflow-y: auto;
        gap: 1.25rem;
    }

    .input-group label {
        font-size: 0.6rem;
        margin-bottom: 0;
    }

    select,
    input {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
    }

    .sorting-tabs {
        margin-top: 0.1rem;
    }

    .tab-btn {
        padding: 0.3rem;
        font-size: 0.65rem;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .stat-card {
        padding: 0.9rem 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .stat-card .stat-label {
        margin-bottom: 0;
        min-width: 60px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
        flex: 1;
    }

    .stat-card .stat-meta {
        margin-top: 0;
        text-align: right;
        font-size: 0.7rem;
    }

    .barata-card {
        flex-direction: row;
        align-items: center;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
    }

    .barata-card>div:first-child {
        flex: 1;
        min-width: 0;
    }

    .barata-card>a.table-maps-btn {
        flex-shrink: 0;
        width: auto !important;
        white-space: nowrap;
        padding: 0.4rem 0.65rem;
        font-size: 0.7rem;
    }

    .barata-price {
        font-size: 1.2rem;
        margin-bottom: 0.1rem;
    }

    .barata-name {
        font-size: 0.78rem;
        margin-bottom: 0.1rem;
    }

    .barata-location {
        font-size: 0.68rem;
        margin-bottom: 0;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .stats-section-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .stats-section-title::before {
        content: '';
    }

    .cards-grid .station-card {
        min-width: 0;
        overflow: hidden;
        width: 100%;
        box-sizing: border-box;
    }

    .st-prices {
        flex-wrap: wrap;
    }

    .st-price-badge {
        min-width: 0;
        flex: 1 1 auto;
    }

    .cre-badge {
        display: none;
    }

    /* Custom Geolocation Button Leaflet */
    .leaflet-control.custom-geo-btn {
        background-color: var(--panel-dark);
        color: var(--text-light);
        border: 2px solid rgba(0, 0, 0, 0.2);
        background-clip: padding-box;
        border-radius: 4px;
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
    }

    .leaflet-control.custom-geo-btn:hover {
        background-color: var(--card-hover);
    }

    .leaflet-control.custom-geo-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }
}

/* Custom Geolocation Button Leaflet (desktop) */
.leaflet-control.custom-geo-btn {
    background-color: var(--panel-dark);
    color: var(--text-light);
    border: 2px solid rgba(0, 0, 0, 0.2);
    background-clip: padding-box;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);
}

.leaflet-control.custom-geo-btn:hover {
    background-color: var(--card-hover);
}

.leaflet-control.custom-geo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* === PULSING DOT === */
.pulsing-dot {
    width: 100%;
    height: 100%;
    background-color: #F9A825;
    border-radius: 50%;
    border: 2px solid #ffffff;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.5);
    position: relative;
}

.pulsing-dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: #F9A825;
    border-radius: 50%;
    animation: pulse-radar 1.5s infinite ease-out;
    z-index: -1;
}

@keyframes pulse-radar {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(3.5);
        opacity: 0;
    }
}

/* === SEO INFO SECTION === */
.seo-info-section {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.seo-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.seo-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.seo-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.seo-faq-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: 0.6rem;
}

.seo-faq-question {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.seo-faq-answer {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-muted);
}

/* === ANUNCIOS Y MONETIZACIÓN === */
.ad-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--panel-dark);
    border: 1px dashed var(--border);
    border-radius: 0.6rem;
    padding: 0.8rem;
    margin: 1rem 0;
    position: relative;
    text-align: center;
    min-height: 100px;
    box-sizing: border-box;
}

.ad-container::before {
    content: 'PUBLICIDAD';
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: bold;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    display: block;
}

.sidebar-ad {
    margin: 0.8rem;
    max-width: calc(100% - 1.6rem);
}

.nacional-sidebar .sidebar-ad {
    min-height: 200px;
    width: 100%;
}

.horizontal-ad {
    margin: 1.5rem 0;
    width: 100%;
}

