/* ===== luchtkwaliteitkaart.nl — thema-overrides + componenten ===== */

:root {
    --primary: #0b7285;
    --primary-dark: #095c6b;
    --primary-light: #3b8ea5;
    --accent: #f59f00;
    --accent-dark: #e67700;
}

a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
[name="theme-color"] { }

/* ===== Kaart ===== */
/* Override pollenpegel split-screen layout: onze kaartpagina's scrollen normaal
   (kaartblok bovenaan, content eronder), dus geen flex/vaste viewport-hoogte. */
.main-map { display: block; height: auto; width: 100%; }
.map-shell { position: relative; }
#map { width: 100%; height: 540px; border-radius: var(--radius-lg); box-shadow: var(--shadow); z-index: 1; }
body.map-page #map { height: 62vh; min-height: 420px; border-radius: 0; }

.map-controls {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
    background: var(--bg-white); border: 1px solid var(--border-light);
    border-radius: var(--radius); padding: 10px 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.map-controls fieldset { border: none; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.map-controls legend { font-weight: 700; font-size: .85rem; color: var(--text-light); padding: 0 6px 0 0; float: left; }
.map-controls label { font-size: .9rem; display: inline-flex; align-items: center; gap: 4px; cursor: pointer;
    padding: 4px 10px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border-light); }
.map-controls input { accent-color: var(--primary); }

.map-legend {
    background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: 8px;
    box-shadow: var(--shadow); font-size: .8rem; line-height: 1.5;
}
.map-legend span { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }

/* ===== AQI-badge ===== */
.aqi-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 30px;
    font-weight: 700; color: #1a1a2e; }
.aqi-badge .num { font-size: 1.3rem; }
.aqi-hero { display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
    background: var(--bg-white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); margin-bottom: 20px; }
.aqi-hero .big { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
    font-size: 2.2rem; font-weight: 800; color: #1a1a2e; flex-shrink: 0; }
.aqi-hero h1 { font-size: 1.5rem; margin-bottom: 4px; }

/* ===== Forecast-grid ===== */
.forecast-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0; }
.forecast-day { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 14px; text-align: center; box-shadow: var(--shadow); }
.forecast-day .date { font-size: .8rem; color: var(--text-muted); text-transform: capitalize; }
.forecast-day .dot { width: 30px; height: 30px; border-radius: 50%; margin: 8px auto; }
.forecast-day .lab { font-size: .82rem; font-weight: 600; }

/* ===== Stof-tegels ===== */
.stof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 18px 0; }
.stof-tile { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 14px; box-shadow: var(--shadow); }
.stof-tile .v { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.stof-tile .u { font-size: .8rem; color: var(--text-muted); }
.stof-tile .n { font-size: .85rem; font-weight: 600; }

/* ===== Ranking-lijsten ===== */
.rank-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.rank-list { list-style: none; }
.rank-list li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border-light); }
.rank-list .swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.rank-list .nm { flex: 1; }
.rank-list .val { font-weight: 700; }

/* ===== Tabellen / cards / chips ===== */
.data-table { width: 100%; border-collapse: collapse; margin: 16px 0; background: var(--bg-white);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th, .data-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); }
.data-table th { background: var(--primary); color: #fff; font-size: .9rem; }
.data-table tr:last-child td { border-bottom: none; }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: 20px;
    padding: 6px 14px; font-size: .9rem; box-shadow: var(--shadow); }
.chip:hover { border-color: var(--primary); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 18px 0; }
.tile-card { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 16px; box-shadow: var(--shadow); display: block; }
.tile-card:hover { box-shadow: var(--shadow-lg); }
.tile-card h3 { font-size: 1.05rem; margin-bottom: 4px; }

/* ===== Content / hero ===== */
.page-hero { background: linear-gradient(135deg, #0b7285, #1098ad); color: #fff; padding: 40px 0; margin-bottom: 26px; }
.page-hero h1 { color: #fff; font-size: 1.9rem; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.92); max-width: 720px; }
.prose { max-width: 760px; }
.prose h2 { margin: 26px 0 10px; font-size: 1.4rem; }
.prose h3 { margin: 20px 0 8px; font-size: 1.15rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.section { padding-top: 8px; padding-bottom: 26px; } /* sides via .container (20px) behouden */
.muted { color: var(--text-muted); font-size: .88rem; }

/* ===== Tabellen binnen artikel-content (.prose) ===== */
.prose table {
    width: 100%; border-collapse: collapse; margin: 20px 0; background: var(--bg-white);
    border: 1px solid var(--border-light); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); font-size: 0.95rem;
}
.prose th, .prose td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border-light); vertical-align: top; }
.prose thead th { background: var(--primary); color: #fff; font-weight: 600; }
.prose tbody tr:nth-child(even) { background: #f6fafb; }
.prose tbody tr:hover { background: #eef7f9; }
.prose tbody tr:last-child td { border-bottom: none; }
.prose table caption { caption-side: top; font-size: 0.85rem; color: var(--text-muted); padding-bottom: 6px; text-align: left; }

/* ===== Blockquote binnen content ===== */
.prose blockquote {
    margin: 18px 0; padding: 12px 18px; border-left: 4px solid var(--primary);
    background: #f1f8fa; border-radius: 0 var(--radius) var(--radius) 0; color: var(--text);
    font-style: italic;
}
.prose blockquote p:last-child { margin-bottom: 0; }

.faq-item { background: var(--bg-white); border: 1px solid var(--border-light); border-radius: var(--radius);
    padding: 14px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq-item h3 { font-size: 1.02rem; margin-bottom: 6px; }

.postcode-box { background: var(--bg-white); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow); max-width: 620px; }
.postcode-box input[type=text] { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: 1rem; }
#pc-result { margin-top: 18px; }

/* ===== Footer: 1 rij, meerdere kolommen ===== */
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 24px; }
.footer-top { margin-bottom: 24px; }
.footer-bottom { color: rgba(255,255,255,0.75); }
.footer-bottom a { color: #8fdfeb; text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }

/* ===== Laatste artikelen: 4 per rij ===== */
.posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 18px 0; }

/* ===== Cookie-consent: nette vaste balk onderaan ===== */
.cookie-consent {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: #0a2630; color: #fff; box-shadow: 0 -2px 14px rgba(0,0,0,.25);
}
.cookie-consent[hidden] { display: none; }
.cookie-consent-inner {
    max-width: 1100px; margin: 0 auto; padding: 14px 20px;
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between;
}
.cookie-consent-inner p { margin: 0; font-size: .9rem; flex: 1 1 360px; }
.cookie-consent-inner a { color: #8fdfeb; text-decoration: underline; }
.cookie-consent-buttons { display: flex; gap: 10px; }
.btn-cookie { padding: 9px 18px; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: .9rem; }
.btn-cookie-accept { background: var(--primary-light); color: #06323b; }
.btn-cookie-accept:hover { background: #fff; }
.btn-cookie-decline { background: transparent; color: #cfe9ee; border: 1px solid rgba(255,255,255,.4); }

@media (max-width: 980px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
    .rank-cols { grid-template-columns: 1fr; }
    body.map-page #map { height: 52vh; }
    .footer-cols { grid-template-columns: 1fr 1fr; gap: 16px; }
    .posts-grid { grid-template-columns: 1fr; }
}

/* ===== Mobiel: geen horizontale overflow + brede tabellen scrollen intern ===== */
html { overflow-x: hidden; }
@media (max-width: 760px) {
    .data-table, .prose table {
        display: block; width: 100%; max-width: 100%;
        overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap;
    }
    .aqi-hero .big { width: 72px; height: 72px; font-size: 1.7rem; }
    .page-hero { padding: 28px 0; }
}

/* ===== Mobiele navigatie: dropdowns altijd uitgevouwen, links uitgelijnd (touch-vriendelijk) ===== */
@media (max-width: 768px) {
    .main-nav { gap: 2px; align-items: stretch; max-height: 80vh; overflow-y: auto; }
    .main-nav > a { padding: 12px 6px; border-bottom: 1px solid var(--border-light); }
    .nav-dropdown { width: 100%; text-align: left; position: static; }
    .nav-dropdown-link { width: 100%; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--border-light); text-align: left; justify-content: flex-start; }
    .nav-dropdown-chevron { display: none; }
    /* menu niet meer absoluut/verborgen, maar gewoon in de flow en zichtbaar */
    .nav-dropdown-menu {
        position: static; transform: none; opacity: 1; visibility: visible;
        min-width: 0; width: 100%; border: none; box-shadow: none; border-radius: 0;
        padding: 0 0 6px 12px; background: transparent;
    }
    .nav-dropdown::after { display: none; }
    .nav-dropdown-item { justify-content: flex-start; padding: 8px 6px; font-size: 0.9rem; }
    .nav-dropdown-all { font-weight: 600; }
}

/* ==========================================================================
   Betaald luchtkwaliteitsrapport: adres-instap + inline bestelformulier
   Eigen petrolkleur, bewust los van de groene sitehuisstijl zodat het blok
   opvalt. De sitebrede .btn-accent (#F9A825 met witte tekst) haalt maar
   1,97:1 contrast, dus die wordt hier NIET gebruikt maar gescoped overschreven.
   ========================================================================== */
.lk-report-cta {
    --lk-petrol: #10485c;
    --lk-petrol-mid: #155e75;
    background: #f4f8fb;
    border: 1px solid #cfe0ec;
    border-left: 4px solid var(--lk-petrol-mid);
    border-radius: var(--radius-lg, 12px);
    padding: 22px 22px 18px;
    margin: 28px 0;
}
.lk-report-cta__badge {
    display: inline-block;
    background: var(--lk-petrol);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 8px;
}
.lk-report-cta h2 { font-size: 1.3rem; color: var(--lk-petrol); margin: 0 0 6px; }
.lk-report-cta__intro { color: #33444e; margin: 0 0 10px; }
.lk-report-cta__list { margin: 0 0 14px; padding-left: 20px; color: #33444e; }
.lk-report-cta__list li { margin-bottom: 4px; }
.lk-report-cta__trust { font-size: .82rem; color: #4a5c68; margin: 12px 0 0; }

.lk-adres__form label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--lk-petrol); }
.lk-adres__inputwrap { position: relative; }
.lk-adres__form input[type="text"] {
    width: 100%;
    padding: 11px 12px;
    font-size: 1rem;
    border: 1px solid #b9cedb;
    border-radius: var(--radius, 8px);
    background: #fff;
    color: #1a1a2e;
}
.lk-adres__form input[type="text"]:focus {
    outline: 2px solid var(--lk-petrol-mid);
    outline-offset: 1px;
    border-color: var(--lk-petrol-mid);
}
.lk-adres__hint { font-size: .82rem; color: #4a5c68; margin: 5px 0 0; }

.lk-adres__suggesties {
    position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 2px);
    margin: 0; padding: 4px; list-style: none;
    background: #fff; border: 1px solid #b9cedb; border-radius: var(--radius, 8px);
    box-shadow: 0 6px 20px rgba(16,72,92,.16); max-height: 260px; overflow-y: auto;
}
.lk-adres__suggestie { padding: 8px 10px; cursor: pointer; border-radius: 5px; color: #1a1a2e; }
.lk-adres__suggestie:hover, .lk-adres__suggestie.is-actief { background: #e8f2f7; }

.lk-adres__status { margin-top: 10px; font-size: .9rem; }
.lk-adres__status.is-bezig { color: #4a5c68; }
.lk-adres__status.is-fout { color: #b3261e; font-weight: 600; }

.lk-adres__resultaat { margin-top: 14px; }
.lk-adres__adreslabel { font-weight: 700; color: var(--lk-petrol); margin: 0 0 8px; }
.lk-adres__tegels { display: flex; flex-wrap: wrap; gap: 10px; }
.lk-adres__tegel {
    flex: 1 1 150px; background: #fff; border: 1px solid #d6e3ec;
    border-radius: var(--radius, 8px); padding: 10px 12px;
}
.lk-adres__stof { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .02em; color: #5c7180; }
.lk-adres__waarde { display: block; font-size: 1.5rem; font-weight: 700; color: var(--lk-petrol); line-height: 1.25; }
.lk-adres__waarde small { font-size: .8rem; font-weight: 400; color: #5c7180; }
.lk-adres__oordeel { display: block; font-size: .8rem; font-weight: 700; }
.lk-adres__jaar, .lk-adres__geendata { font-size: .84rem; color: #4a5c68; margin: 9px 0 0; }

.lk-adres__bestel { margin-top: 16px; border-top: 1px solid #cfe0ec; padding-top: 14px; }
.lk-adres__laden, .lk-adres__fout { font-size: .9rem; color: #4a5c68; margin: 0; }
.lk-adres__fout { color: #b3261e; }
.lk-form-group { margin-bottom: 10px; }
.lk-form-group > label { display: block; font-weight: 600; margin-bottom: 4px; color: var(--lk-petrol); }
.lk-form-group input[type="email"] {
    width: 100%; padding: 11px 12px; font-size: 1rem;
    border: 1px solid #b9cedb; border-radius: var(--radius, 8px); background: #fff; color: #1a1a2e;
}
.lk-req { color: #b3261e; }
.lk-form-check > label {
    display: flex; align-items: flex-start; gap: 8px;
    font-weight: 400; font-size: .85rem; line-height: 1.45; color: #33444e;
}
.lk-form-check input[type="checkbox"] { margin-top: 3px; flex: none; width: 17px; height: 17px; }
.lk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* Eigen knop: 7,27:1 op wit, ruim boven WCAG AA. */
.lk-adres__knop, .lk-report-cta .btn-accent {
    background: var(--lk-petrol-mid) !important;
    color: #fff !important;
    width: 100%;
    border: none;
    padding: 13px 18px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius, 8px);
    cursor: pointer;
}
.lk-adres__knop:hover, .lk-report-cta .btn-accent:hover { background: var(--lk-petrol) !important; color: #fff !important; }

@media (max-width: 560px) {
    .lk-report-cta { padding: 16px 14px 14px; }
    .lk-adres__tegel { flex: 1 1 100%; }
}

/* === mapajakoscipowietrza.pl — aanvullende componenten === */
.map-shell-sm #map, .map-shell-sm { height: 360px; }
#map { height: 460px; border-radius: 10px; }

.breadcrumb { font-size:.9rem; color:#5b6770; margin:0 0 1rem; }
.breadcrumb a { color:#0b7285; text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }

.narrow { max-width: 820px; }

.legend { display:flex; flex-wrap:wrap; gap:.4rem 1rem; margin:1rem 0; font-size:.85rem; }
.legend-item { display:inline-flex; align-items:center; gap:.35rem; }

.aqi-dot { display:inline-block; width:14px; height:14px; border-radius:50%; border:1px solid rgba(0,0,0,.2); flex:0 0 auto; }

.aqi-hero { display:flex; gap:1rem; align-items:center; border:2px solid #ccc; border-radius:12px; padding:1rem 1.2rem; margin:1rem 0 1.5rem; background:#fff; }
.aqi-hero-badge { color:#fff; font-weight:700; padding:.5rem .9rem; border-radius:8px; white-space:nowrap; text-shadow:0 1px 2px rgba(0,0,0,.3); }
.aqi-hero-text p { margin:.2rem 0; }

.station-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; margin:1rem 0 1.5rem; }
.station-card { border:1px solid #e3e8ec; border-radius:10px; padding:.9rem 1rem; background:#fff; }
.station-head { display:flex; justify-content:space-between; align-items:center; gap:.5rem; }
.station-head a { font-weight:600; color:#0b3d4d; text-decoration:none; }
.station-head a:hover { color:#0b7285; }
.station-label { font-size:.85rem; color:#5b6770; margin:.3rem 0 .5rem; }
.station-card .vals { width:100%; font-size:.85rem; border-collapse:collapse; }
.station-card .vals td { padding:.15rem 0; }
.station-card .vals td:last-child { text-align:right; font-variant-numeric:tabular-nums; }

.chip-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:.8rem 0 1.5rem; }
.chip-row-lg .chip { font-size:.95rem; }

.link-list { list-style:none; padding:0; margin:.5rem 0 1.5rem; columns:2; }
.link-list li { display:flex; align-items:center; gap:.5rem; margin:.3rem 0; break-inside:avoid; }
.link-list a { color:#0b3d4d; text-decoration:none; }
.link-list a:hover { color:#0b7285; }

.faq details { border-bottom:1px solid #e3e8ec; padding:.6rem 0; }
.faq summary { font-weight:600; cursor:pointer; }
.faq details p { margin:.5rem 0 0; color:#3a474f; }

/* Leaflet popup */
.map-popup { min-width:180px; }
.popup-idx { display:inline-block; color:#fff; font-weight:600; font-size:.8rem; padding:.15rem .5rem; border-radius:6px; margin:.3rem 0; text-shadow:0 1px 2px rgba(0,0,0,.3); }
.popup-vals { width:100%; font-size:.85rem; border-collapse:collapse; margin:.3rem 0; }
.popup-vals td { padding:.1rem 0; }
.popup-vals td:last-child { text-align:right; }
.popup-link { display:inline-block; margin-top:.3rem; color:#0b7285; font-weight:600; text-decoration:none; }

/* Zgoda cookie */
.consent-bar { position:fixed; left:0; right:0; bottom:0; z-index:9999; background:#0b3d4d; color:#fff; padding:1rem 1.2rem; display:flex; flex-wrap:wrap; gap:.8rem 1.5rem; align-items:center; justify-content:center; box-shadow:0 -2px 12px rgba(0,0,0,.25); }
.consent-bar p { margin:0; max-width:640px; font-size:.9rem; }
.consent-bar a { color:#8fd6e6; }
.consent-actions { display:flex; gap:.6rem; }
.btn-ghost { background:transparent; border:1px solid rgba(255,255,255,.5); color:#fff; }

/* Kaartbescherming tegen AdSense auto ads (map-flex uit elkaar duwen) */
.adsense-auto-ads-ignore .google-auto-placed,
.adsense-auto-ads-ignore ins[id^=aswift],
.adsense-auto-ads-ignore ins.adsbygoogle { display:none !important; }

@media (max-width:640px){ .link-list { columns:1; } .aqi-hero { flex-direction:column; align-items:flex-start; } }

.swatch { display:inline-block; width:14px; height:14px; border-radius:3px; flex-shrink:0; border:1px solid rgba(0,0,0,.15); vertical-align:middle; }
.rank-list li { display:flex; align-items:center; gap:.5rem; }
.rank-list .nm { flex:1; }
.rank-list .val { color:#5b6770; font-size:.85rem; }
