/* provincia.css - Province page styles extending home.css base */

/* Province page layout */
.province-page {
    padding-top: 16px;
    padding-bottom: 24px;
}

/* Breadcrumb */
.breadcrumb {
    font-size: 13px;
    color: var(--color-muted);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color var(--transition-main);
}

.breadcrumb a:hover {
    color: var(--color-ink);
}

.breadcrumb span {
    color: var(--color-ink);
    font-weight: 500;
}

/* Province Header */
.prov-header {
    text-align: center;
    margin-bottom: 24px;
}

.prov-header .page-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(24px, 4vw, 32px);
    margin: 0 0 12px;
    color: var(--color-ink);
}

.prov-subtitle {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.badg-update {
    font-size: 12px;
    color: var(--color-muted);
    background: var(--color-bg-alt);
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
}

.badg-source {
    font-size: 12px;
    color: #2563eb;
    font-weight: 500;
}

/* Section Navigation (Anchor Pills) */
.section-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.section-nav a {
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    text-decoration: none;
    transition: all var(--transition-main);
}

.section-nav a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-ink);
    transform: translateY(-2px);
}

/* Two Column Layout */
.columns-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

@media (max-width: 1024px) {
    .columns-grid {
        grid-template-columns: 1fr;
    }
}

.col-main,
.col-side {
    min-width: 0;
}

/* Section Titles */
.section-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 20px;
    margin: 0 0 16px;
    color: var(--color-ink);
}

/* Province Summary Block */
.province-summary-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
}

.psb-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.psb-title h2 {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 18px;
    color: var(--color-ink);
}

.psb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 12px;
}

.psb-card {
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.psb-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
}

.i-g95 {
    background: #10b981;
}

.i-diesel {
    background: #3b82f6;
}

.psb-label {
    font-size: 12px;
    color: var(--color-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.psb-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-ink);
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.psb-trend {
    font-size: 12px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.t-up {
    color: #dc2626;
    background: #fef2f2;
}

.t-down {
    color: #16a34a;
    background: #f0fdf4;
}

.t-same {
    color: #64748b;
    background: #f1f5f9;
}

.t-none {
    color: #cbd5e1;
}

.psb-sub {
    font-size: 12px;
    color: var(--color-muted);
    margin-top: 2px;
}

.psb-footer-text {
    font-size: 12px;
    color: var(--color-muted);
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    padding-top: 10px;
}

.badg-n {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
}

.badg-plus {
    background: #dcfce7;
    color: #15803d;
}

.badg-minus {
    background: #fee2e2;
    color: #b91c1c;
}

/* Price Chart Section */
.chart-section {
    margin-bottom: 24px;
}

.chart-container {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.chart-canvas-wrapper {
    height: 280px;
    position: relative;
}

/* Map Section */
.core-map-section {
    margin-bottom: 16px;
}


.hero-map-container {
    height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.hero-map-container #map {
    height: 100%;
    width: 100%;
}

/* Redesigned Leaflet Popup Styles (Sync from mapa.php) */
.leaflet-popup-content-wrapper, 
.leaflet-popup-content-wrapper * {
    box-sizing: border-box;
}

div.leaflet-popup-content-wrapper {
    border-radius: 24px !important;
    padding: 0 !important;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: #f7efea !important; /* Specific warm background from image */
}

div.leaflet-popup-content {
    margin: 0 !important;
    width: 200px !important; /* Ultra-compact width */
    font-family: "Inter", system-ui, sans-serif !important;
}

.popup-container {
    padding: 10px;
}

.popup-brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #dee5f3;
    border-radius: 99px;
    font-size: 9px;
    font-weight: 700;
    color: #436edb;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.popup-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
    margin-bottom: 4px;
    display: block;
    letter-spacing: -0.01em;
}

.popup-address-row {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #4b5563;
    font-size: 11px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.popup-price-card {
    background: #fffcf9;
    border-radius: 12px;
    padding: 10px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.popup-price-label {
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 1px;
}

.popup-price-value {
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    display: flex;
    align-items: baseline;
    gap: 3px;
}

.popup-price-value .unit {
    font-size: 12px;
    font-weight: 700;
    color: currentColor;
    opacity: 0.8;
}

.popup-actions {
    display: flex;
    gap: 6px;
}

.btn-popup-ir, .btn-popup-ficha {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-popup-ir {
    background: white;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}

.btn-popup-ir:hover {
    background: #f8fafc;
    transform: translateY(-2px);
}

.btn-popup-ficha {
    background: #111827;
    color: white;
}

.btn-popup-ficha:hover {
    background: #0f172a;
    transform: translateY(-2px);
}

.leaflet-popup-tip-container {
    display: none;
}

.leaflet-container a.leaflet-popup-close-button {
    top: 10px !important;
    right: 10px !important;
    padding: 6px !important;
    width: 28px !important;
    height: 28px !important;
    background: rgba(0, 0, 0, 0.05) !important;
    border-radius: 50% !important;
    color: #1e293b !important;
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
}

/* Custom Colored Dot Markers (Sync from mapa.php) */
.custom-dot-marker {
    background: none !important;
    border: none !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

.dot-main {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.4);
    box-sizing: border-box !important;
}

.dot-main.top-highlight {
    width: 26px;
    height: 26px;
    border: 4px solid white;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.4), 0 3px 8px rgba(0,0,0,0.4);
    animation: markerPulse 2s infinite;
}

@keyframes markerPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(234, 179, 8, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(234, 179, 8, 0); }
}

/* Neighbors Comparison */
.neighbors-section {
    margin-bottom: 24px;
}

.neighbors-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.neighbors-table th {
    text-align: left;
    padding: 10px 12px;
    background: var(--color-bg-alt);
    border-bottom: 2px solid var(--color-border);
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    font-size: 11px;
}

.neighbors-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.neighbors-table tr:hover {
    background: var(--color-bg-alt);
}

.neighbors-table .prov-link {
    font-weight: 600;
    color: var(--color-ink);
    text-decoration: none;
}

.neighbors-table .prov-link:hover {
    color: var(--color-accent-strong);
}

.diff-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.diff-cheaper {
    background: #dcfce7;
    color: #15803d;
}

.diff-same {
    background: #f1f5f9;
    color: #64748b;
}

.diff-expensive {
    background: #fee2e2;
    color: #b91c1c;
}

/* Top 3 Section Redesign */
.top3-section.v2 {
    margin: 40px 0;
    padding: 0 5px;
}

.top3-header {
    margin-bottom: 24px;
}

.top3-header .section-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a202c;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.top3-header .section-subtitle {
    font-size: 1rem;
    color: #718096;
    margin: 0;
}

.fuel-tabs-container-v2 {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 8px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.fuel-tabs-container-v2::-webkit-scrollbar {
    display: none;
}

.btn-fuel-tab-v2 {
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #4a5568;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.btn-fuel-tab-v2:hover {
    border-color: #cbd5e0;
    background: #f8fafc;
}

.btn-fuel-tab-v2.active {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.top3-list-v2 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-top3-premium {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-top3-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.card-top3-premium .card-left {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1.5;
}

.rank-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.rank-1 { background: #f6ad55; color: #fff; } /* Gold-ish */
.rank-2 { background: #a0aec0; color: #fff; } /* Silver-ish */
.rank-3 { background: #d69e2e; color: #fff; } /* Bronze-ish */

.station-name {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a202c;
    letter-spacing: -0.01em;
}

.location-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #a0aec0;
}

.card-top3-premium .card-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: #cbd5e0;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: #059669;
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.price-value .unit {
    font-size: 1.1rem;
    font-weight: 700;
    color: #059669;
}

.card-top3-premium .card-right {
    flex: 0.8;
    display: flex;
    justify-content: flex-end;
}

.btn-ver-mas {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-ver-mas:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .card-top3-premium {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        gap: 20px;
    }
    
    .card-top3-premium .card-center {
        justify-content: flex-start;
        width: 100%;
        padding-left: 62px;
    }
    
    .card-top3-premium .card-right {
        width: 100%;
        justify-content: flex-end;
    }
}

.card-v2 .price-big {
    font-size: 1.1rem;
    font-weight: 700;
    color: #16a34a;
}

/* Card V2 layout components - COMPACT */
.card-v2-left {
    flex: 2;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.card-v2-center {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px dashed var(--color-border);
    border-right: 1px dashed var(--color-border);
    padding: 0 12px;
}

.card-v2-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 120px;
}

.cv2-logo {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
}

.cv2-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-logo-fallback {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-muted);
}

.cv2-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cv2-header {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.cv2-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-ink);
    margin: 0;
}

.cv2-locality {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-weight: 500;
}

.cv2-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin: 2px 0;
}

.badge-pill {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-lowcost {
    background: #dcfce7;
    color: #15803d;
}

.badge-24h {
    background: #dbeafe;
    color: #1d4ed8;
}

.badge-public {
    background: var(--color-bg-alt);
    color: var(--color-muted);
    border: 1px solid var(--color-border);
}

.cv2-address {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin: 0;
}

.cv2-schedule {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Price bars */
.prices-bars-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.price-bar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pb-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-muted);
    width: 24px;
    flex-shrink: 0;
}

.pb-track {
    flex: 1;
    height: 6px;
    background: var(--color-bg-alt);
    border-radius: 999px;
    overflow: hidden;
}

.pb-fill {
    height: 100%;
    border-radius: 999px;
}

.pb-val {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-ink);
    min-width: 70px;
    text-align: right;
}

.pb-updated {
    font-size: 10px;
    color: var(--color-muted);
    text-align: right;
    margin-top: 4px;
}

/* Right side elements */
.cv2-rank-badge {
    background: #fbbf24;
    color: #78350f;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: auto;
}

.cv2-distance {
    font-size: 0.9rem;
    color: #3b82f6;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cv2-link-details {
    font-size: 0.9rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.cv2-link-details:hover {
    text-decoration: underline;
}

.btn-cv2-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    font-size: 13px;
}

/* Responsive card-v2 */
@media (max-width: 768px) {
    .card-v2 {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }

    .card-v2-center {
        border: none;
        padding: 0;
        border-top: 1px dashed var(--color-border);
        border-bottom: 1px dashed var(--color-border);
        padding: 1rem 0;
    }

    .card-v2-right {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        margin-top: 0.5rem;
    }

    .cv2-rank-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        margin: 0;
    }
}

/* List Section */
.list-section {
    margin-bottom: 24px;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Province Stats Block (Sidebar) */
.province-stats-block {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-soft);
}

.pst-header {
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 12px;
}

.pst-header h3 {
    margin: 0 0 4px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 16px;
    color: var(--color-ink);
}

.pst-cols {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pst-col-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 10px;
    color: var(--color-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.title-cheap {
    color: #16a34a;
}

.title-exp {
    color: #dc2626;
}

.pst-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pst-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.06);
    font-size: 13px;
}

.pst-item:last-child {
    border-bottom: none;
}

.pst-loc {
    color: var(--color-ink);
    font-weight: 500;
}

.pst-loc small {
    font-weight: 400;
    color: var(--color-muted);
}

.pst-val {
    font-weight: 700;
    font-family: monospace;
    font-size: 13px;
}

.val-cheap {
    color: #16a34a;
}

.val-exp {
    color: #dc2626;
}

.highlight-col {
    background: var(--color-bg-alt);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.pst-insight p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-ink);
    margin: 0;
}

.pst-insight strong {
    color: #2563eb;
}

/* CTA Block */
.prov-cta-block {
    background: linear-gradient(135deg, var(--color-ink) 0%, #0f172a 100%);
    color: #fff;
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    text-align: center;
}

.prov-cta-block h4 {
    font-size: 16px;
    margin: 0 0 8px;
    color: #fff;
}

.prov-cta-block p {
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 16px;
}

.btn-cta-1,
.btn-cta-2 {
    display: block;
    width: 100%;
    border: none;
    padding: 10px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 8px;
    transition: transform var(--transition-main);
}

.btn-cta-1 {
    background: var(--color-accent-strong);
    color: var(--color-ink);
}

.btn-cta-2 {
    background: #fff;
    color: var(--color-ink);
}

.btn-cta-1:hover,
.btn-cta-2:hover {
    transform: translateY(-2px);
}

/* SEO Text Block */
.prov-seo-text {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
}

.prov-seo-text h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 16px;
    color: var(--color-ink);
    margin: 0 0 12px;
}

.prov-seo-text h4 {
    font-size: 14px;
    color: var(--color-ink);
    margin: 16px 0 8px;
    font-weight: 600;
}

.prov-seo-text p {
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.7;
    margin: 0 0 12px;
}

/* Nearby Provinces */
.nearby-provinces {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.nearby-provinces h4 {
    font-size: 13px;
    color: var(--color-muted);
    margin: 0 0 10px;
    font-weight: 600;
}

.nearby-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.nearby-pill {
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    font-size: 12px;
    color: var(--color-muted);
    text-decoration: none;
    transition: all var(--transition-main);
}

.nearby-pill:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-ink);
    transform: translateY(-2px);
}

/* FAQ Section */
.faq-section {
    margin-bottom: 24px;
}

.faq-list-prov {
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item-prov {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-item-prov:last-child {
    border-bottom: none;
}

.faq-question-prov {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ink);
}

.faq-question-prov:hover {
    background: var(--color-bg-alt);
}

.faq-icon-prov {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--color-muted);
    flex-shrink: 0;
    transition: transform var(--transition-main), background var(--transition-main);
}

.faq-answer-prov {
    padding: 0 16px 14px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.6;
    display: none;
}

.faq-item-prov.open .faq-answer-prov {
    display: block;
}

.faq-item-prov.open .faq-icon-prov {
    transform: rotate(90deg);
    background: var(--color-accent);
    color: var(--color-ink);
}

/* Top 3 Cards Specific Styling */
.fuel-tabs-container {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.btn-fuel-tab {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.btn-fuel-tab:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-fuel-tab.active {
    background: var(--color-accent-strong);
    color: white;
    border-color: var(--color-accent-strong);
}

.card-top3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding: 12px !important;
    min-height: auto !important;
    justify-content: space-between;
}

.card-top3 h4 {
    font-size: 13px !important;
    margin-bottom: 2px !important;
}

.card-top3 .address {
    font-size: 11px;
    color: var(--color-muted);
    margin: 4px 0 10px 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-top3 .price-big {
    font-size: 1.25rem;
    font-weight: 800;
    color: #16a34a;
    line-height: 1;
}

.btn-link-view {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-accent-strong);
    background: rgba(244, 162, 97, 0.1);
    padding: 4px 10px;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-link-view:hover {
    background: var(--color-accent-strong);
    color: white;
}


/* Locality Filters */
.locality-filter-container {
    margin-bottom: 24px;
    padding: 24px 16px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
}

.loc-filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 8px;
}

.loc-filter-grid::-webkit-scrollbar {
    width: 6px;
}

.loc-filter-grid::-webkit-scrollbar-track {
    background: transparent;
}

.loc-filter-grid::-webkit-scrollbar-thumb {
    background-color: var(--color-border);
    border-radius: 99px;
}

.btn-loc-filter {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 11px;
    color: var(--color-ink);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-family: 'Inter', sans-serif;
    text-transform: capitalize;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-loc-filter:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-loc-filter.active {
    background: var(--color-accent-strong);
    border-color: var(--color-accent-strong);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

/* Modern Pagination Styles */
.modern-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.pagination-info .font-bold {
    font-weight: 600;
    color: var(--color-ink);
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    background: var(--color-bg-alt);
    color: var(--color-ink);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.page-btn:hover:not(.disabled) {
    background: var(--color-surface);
    border-color: var(--color-accent);
    color: var(--color-accent-strong);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-btn.active {
    background: var(--color-accent-strong);
    border-color: var(--color-accent-strong);
    color: white;
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--color-bg-alt);
}

.page-dots {
    color: var(--color-muted);
    padding: 0 4px;
}

.pagination-ipp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--color-muted);
}

.ipp-select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-ink);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.ipp-select:focus {
    border-color: var(--color-accent);
}

@media (max-width: 768px) {
    .modern-pagination {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .pagination-info,
    .pagination-pages,
    .pagination-ipp {
        width: 100%;
        justify-content: center;
    }
}

/* List Sort Controls */
.list-sort-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

.sort-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sort-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.chip-sort,
.chip-fuel-filter {
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    color: var(--color-ink);
}

.chip-sort:hover,
.chip-fuel-filter:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.chip-sort.chip-active,
.chip-fuel-filter.chip-active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

@media (max-width: 640px) {
    .list-sort-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .sort-group {
        width: 100%;
    }
}

/* Highlighted prices for G95 and Diesel */
.pcl-main {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    padding: 4px 8px;
    margin: 2px -8px;
    border-radius: 6px;
}

.pcl-main .pcl-name {
    font-weight: 700;
    color: #15803d;
}

.pcl-main .pcl-val {
    font-weight: 800;
    color: #166534;
    font-size: 1.05em;
}