/* FRUCTAAN RADAR NL - STYLESHEET
   Gekoppeld aan index.php
*/

:root {
    --gevaar: #ef4444;
    --waarschuwing: #f59e0b;
    --veilig: #10b981;
    --donker: #0f172a;
    --licht-grijs: #f1f5f9;
}

body {
    background-color: var(--licht-grijs);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
}

/* --- HERO / HEADER SECTIE --- */
.hero {
    position: relative;
    /* Zorg dat de bestandsnaam exact klopt (kleine letters) */
    background-image: url('headerradar.jpg');
    background-size: cover;
    background-position: center 30%; /* Iets meer focus op de bovenkant van de foto */
    background-repeat: no-repeat;
    color: white;
    padding: 200px 0;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Donkere overlay voor leesbaarheid tekst op de foto */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.4));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.5rem;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* --- KAART EN CONTAINERS --- */
#map {
    width: 100%;
    height: 600px;
    border-radius: 20px;
    background: #e5e7eb; /* Fallback kleur */
}

.advice-card, .info-section {
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    background: white;
    padding: 30px;
    height: auto; /* Verander dit van 100% naar auto */
}

/* Zorg dat de disclaimer niet aan de footer plakt */
footer {
    clear: both;
}

.info-section {
    margin-top: 30px;
}

/* --- PROVINCIE LIJST --- */
#provincie-lijst {
    margin-top: 15px;
}

.prov-item {
    border: none;
    margin-bottom: 8px;
    border-radius: 12px !important;
    color: white;
    font-weight: 600;
    padding: 12px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease-in-out;
}

.prov-item:hover {
    transform: translateX(5px);
    filter: brightness(1.05);
}

.bg-veilig { background-color: var(--veilig); }
.bg-waarschuwing { background-color: var(--waarschuwing); color: #000; }
.bg-gevaar { background-color: var(--gevaar); }

/* --- LOADER --- */
#loader {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- RESPONSIVENESS (Mobiel) --- */
@media (max-width: 768px) {
    .hero { padding: 60px 0; }
    .hero h1 { font-size: 1.8rem; }
    #map { height: 400px; }
}

.advice-card {
    position: sticky;
    top: 20px; /* De zijbalk blijft nu "plakken" als je naar beneden scrollt */
    height: fit-content;
}