/**
 * Bezorggebieden overzicht met prijszones heatmap.
 *
 * Prefix: .hfs- (hofman fruitmandshop)
 * Gebruikt door: checkout (delivery-areas.php) en [hfs_bezorggebieden] shortcode.
 */

/* --- Bezorggebieden Overzicht --- */

.hfs-areas-overview {
    padding: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hfs-areas-overview h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

.hfs-areas-overview__intro {
    margin: 0 0 20px 0;
    color: var(--color-fg);
    font-size: 0.95em;
    line-height: 1.5;
}

.hfs-areas-overview__note {
    margin: 15px 0 0;
    padding: 12px 15px;
    background: #e8f5e9;
    border-radius: 6px;
    font-size: 0.9em;
    color: #2e7d32;
}

.hfs-areas-overview__note strong {
    display: block;
    margin-bottom: 4px;
}

/* --- Zones Heatmap --- */

.hfs-zones-heatmap {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.hfs-zone-bar {
    flex: 1;
    padding: 15px 10px;
    text-align: center;
    min-width: 0;
}

.hfs-zone-label {
    color: #fff;
    font-weight: 600;
    font-size: 0.9em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.hfs-zones-heatmap-label {
    text-align: center;
    color: #888;
    font-size: 0.8em;
    margin: 0 0 25px 0;
}

/* --- Zones Details Grid --- */

.hfs-zones-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.hfs-zone-section {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 15px;
}

.hfs-zone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.hfs-zone-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    flex-shrink: 0;
}

.hfs-zone-price {
    font-weight: 600;
    font-size: 1.1em;
    color: #333;
}

.hfs-zone-areas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hfs-zone-area {
    background: #f5f5f5;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    color: #555;
}

.hfs-zone-area small {
    color: #888;
    font-size: 0.9em;
}

/* --- Responsive --- */

@media (max-width: 600px) {
    .hfs-zones-heatmap {
        flex-wrap: wrap;
    }

    .hfs-zone-bar {
        flex: 1 1 50%;
    }

    .hfs-zone-label {
        font-size: 0.8em;
    }

    .hfs-zones-details {
        grid-template-columns: 1fr;
    }
}
