/* ===== Rioleringskaart.nl — Stylesheet ===== */

:root {
    /* Brand — aardetinten (bodem/grond) */
    --primary: #8A5A2B;          /* CTA backgrounds — warm aarde-bruin */
    --primary-dark: #6B4423;     /* headings, dark accents (AA on white) */
    --primary-light: #B8895A;    /* highlights on dark bg */
    --accent: #3E5C3A;           /* mosgroen accent */
    --accent-dark: #2C4429;
    --link: #7A4A1E;             /* body-text links — AA on white/cream */
    --danger: #B71C1C;
    --success: #2C5E1A;
    /* Surfaces */
    --bg: #FBF6EE;               /* page background — warm zand-creme */
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --bg-soft: #F3EADD;          /* slightly deeper for grouping */
    /* Text — all AA-compliant */
    --text: #1a1a2e;             /* primary text */
    --text-light: #404656;       /* secondary text */
    --text-muted: #5b6472;       /* tertiary / meta */
    /* Borders */
    --border: #ddd2c2;
    --border-light: #ece4d7;
    --border-strong: #b9a98f;
    /* Geometry */
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(74,53,23,0.08);
    --shadow-lg: 0 6px 24px rgba(74,53,23,0.14);
    --shadow-inset: inset 0 -1px 0 rgba(0,0,0,0.04);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 2px; }

/* Keyboard accessibility */
*:focus-visible {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
    border-radius: 4px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: none;
}

img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c1121f; color: #fff; }
.btn-outline { background: transparent; border: 2px solid var(--link); color: var(--link); }
.btn-outline:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary, .btn-accent, .btn-danger { box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.btn-primary:hover, .btn-accent:hover, .btn-danger:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,0.12); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.1rem; }

/* ===== Header ===== */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 1px 0 rgba(0,0,0,0.03), 0 4px 16px -10px rgba(91,72,15,0.18);
    position: sticky;
    top: 0;
    z-index: 1100;
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--text);
}
.logo:hover { color: var(--primary); }
.logo-icon { font-size: 1.6rem; }
.logo-text { letter-spacing: -0.5px; }

.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.main-nav a:not(.btn):hover { color: var(--primary-dark); text-decoration: none; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.2s;
}

/* ===== Flash Messages ===== */
.flash {
    padding: 12px 20px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 500;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }
.flash-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

/* ===== Main Content ===== */
.main-content {
    min-height: calc(100vh - 64px - 200px);
    padding: 40px 0;
}
.main-content .container { max-width: 800px; }

/* ===== MAP PAGE ===== */
/* On map page, the body scrolls so the SEO content & footer below the map are reachable */
body.map-page {
    /* keep default: scroll allowed */
}
.main-map {
    display: block;
    width: 100%;
}
.map-flex {
    display: flex;
    height: calc(100vh - 64px); /* viewport minus sticky header */
    width: 100%;
}

/* Sidebar */
.map-sidebar {
    width: 340px;
    min-width: 340px;
    background: var(--bg-white);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
}
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-header .logo { margin-bottom: 4px; }
.sidebar-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}
.sidebar-actions {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-actions .btn { justify-content: center; width: 100%; }

.sidebar-section {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}
.sidebar-section h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

/* Filters */
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-item input[type="checkbox"] { accent-color: var(--primary); }
.filter-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.date-filters {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}
.date-filters input {
    flex: 1;
    min-width: 0;
    padding: 6px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    max-width: 50%;
}

/* Recent sightings in sidebar */
.recent-list { display: flex; flex-direction: column; gap: 8px; }
.recent-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    transition: background 0.15s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
}
.recent-item:hover { background: var(--bg); color: var(--text); }
.recent-icon { font-size: 1.3rem; line-height: 1; }
.recent-info { flex: 1; }
.recent-info strong { font-size: 0.85rem; display: block; }
.recent-info span { font-size: 0.75rem; color: var(--text-muted); }

/* Map container */
.map-container {
    flex: 1;
    position: relative;
}
#map { width: 100%; height: 100%; }

/* Custom Leaflet popup */
.hornet-popup { min-width: 220px; }
.hornet-popup .popup-category {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    margin-bottom: 6px;
}
.hornet-popup .popup-location {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.hornet-popup .popup-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.hornet-popup .popup-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
}
.hornet-popup .popup-thumb {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.hornet-popup .popup-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--link);
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Sidebar stats */
.sidebar-stats {
    display: flex;
    gap: 12px;
}
.sidebar-stat {
    flex: 1;
    text-align: center;
    padding: 8px;
    background: var(--bg);
    border-radius: var(--radius);
}
.sidebar-stat strong {
    display: block;
    font-size: 1.3rem;
    color: var(--primary-dark);
}
.sidebar-stat span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Sidebar close button */
.sidebar-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    padding: 0 4px;
    line-height: 1;
}
.sidebar-close:hover { color: var(--text); }

/* Sidebar toggle button (visible when sidebar is collapsed) */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 80px;
    left: 12px;
    z-index: 1000;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    line-height: 1;
}
.sidebar-toggle:hover { background: var(--primary-dark); }

/* Sidebar collapsed state (desktop + mobile) */
.map-sidebar.collapsed {
    display: none;
}
.map-sidebar {
    transition: margin-left 0.2s;
}

/* ===== FORMS ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group .hint {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-white);
    transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(245,127,23,0.1);
}
textarea { min-height: 100px; resize: vertical; }

.form-errors {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
}
.form-errors ul { margin: 6px 0 0 20px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Map picker in form */
#location-map {
    width: 100%;
    height: 300px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-top: 8px;
}
.location-search {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.location-search input { flex: 1; }

.file-upload {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s;
    position: relative;
}
.file-upload:hover { border-color: var(--primary); }
.file-upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-upload-label { color: var(--text-muted); font-size: 0.9rem; }
.file-upload-preview {
    max-width: 200px;
    margin-top: 12px;
    border-radius: var(--radius);
    display: none;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* ===== SIGHTING DETAIL ===== */
.sighting-detail { max-width: 700px; margin: 0 auto; }
.sighting-detail .detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}
.detail-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}
.detail-meta { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }
.sighting-photo {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}
.sighting-info {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow);
    margin-bottom: 24px;
}
.sighting-info dt { font-weight: 600; color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.sighting-info dd { margin-bottom: 16px; font-size: 1rem; }
.sighting-info dd:last-child { margin-bottom: 0; }
#detail-map { width: 100%; height: 250px; border-radius: var(--radius); margin-bottom: 24px; }
.detail-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-approved { background: #d4edda; color: #155724; }

/* ===== ADMIN ===== */
.admin-wrap { max-width: 1100px; margin: 0 auto; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-card .stat-number { font-size: 2rem; font-weight: 700; color: var(--primary); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--text-muted); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.admin-table th {
    background: var(--primary-dark);
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 600;
}
.admin-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    vertical-align: top;
}
.admin-table tr:hover td { background: var(--bg); }
.admin-table .actions { display: flex; gap: 6px; }

.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 20px;
}
.pagination a, .pagination span {
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 0.9rem;
    border: 1px solid var(--border);
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Login form */
.login-box {
    max-width: 400px;
    margin: 80px auto;
    background: var(--bg-white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.login-box h1 { text-align: center; margin-bottom: 24px; }

/* ===== STATIC PAGES ===== */
.page-content h1 { font-size: 2rem; margin-bottom: 8px; color: var(--primary-dark); }
.page-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--primary-dark); }
.page-content p { margin-bottom: 16px; line-height: 1.8; color: var(--text-light); }
.page-content ul { margin: 0 0 16px 24px; line-height: 1.8; color: var(--text-light); }

.hero-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}
.hero-banner {
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-banner::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 110%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}
.hero-banner > * { position: relative; z-index: 1; }
.hero-banner h1 { color: #fff; font-size: 2.2rem; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.hero-banner p { color: rgba(255,255,255,0.95); font-size: 1.1rem; margin-top: 8px; }

/* ===== SIGHTING LIST ===== */
.sighting-list { display: flex; flex-direction: column; gap: 8px; }
.sighting-list-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s;
}
.sighting-list-item:hover { box-shadow: var(--shadow-lg); color: var(--text); }
.list-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}
.list-content { flex: 1; }
.list-content strong { font-size: 1rem; display: block; margin-bottom: 2px; }
.list-meta { font-size: 0.8rem; color: var(--text-muted); }
.list-desc { font-size: 0.85rem; color: var(--text-light); margin-top: 6px; line-height: 1.5; }

/* ===== BLOG ===== */
.blog-list { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.blog-card {
    display: block;
    padding: 20px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s;
}
.blog-card:hover { box-shadow: var(--shadow-lg); color: var(--text); }
.blog-card h2 { font-size: 1.2rem; margin-bottom: 4px; color: var(--primary-dark); }
.blog-date { font-size: 0.8rem; color: var(--text-muted); }
.blog-card p { font-size: 0.9rem; color: var(--text-light); margin-top: 8px; line-height: 1.5; }

/* Table of contents */
.toc {
    background: var(--bg);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 16px 20px 16px 24px;
    margin-bottom: 28px;
}
.toc strong { font-size: 0.9rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.toc ol { margin: 8px 0 0 20px; padding: 0; }
.toc li { font-size: 0.9rem; margin-bottom: 4px; line-height: 1.5; }
.toc a { color: var(--primary); text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.blog-article { max-width: 750px; margin: 0 auto; }
.blog-content { line-height: 1.9; color: var(--text-light); }
.blog-content h2 { font-size: 1.4rem; color: var(--primary-dark); margin: 32px 0 12px; }
.blog-content h3 { font-size: 1.15rem; color: var(--primary-dark); margin: 24px 0 8px; }
.blog-content p { margin-bottom: 16px; }
.blog-content ul, .blog-content ol { margin: 0 0 16px 24px; }
.blog-content li { margin-bottom: 6px; }
.blog-content a { color: var(--primary); text-decoration: underline; }
.blog-content blockquote {
    border-left: 4px solid var(--primary-light);
    padding: 12px 20px;
    margin: 16px 0;
    background: var(--bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #2a1f0c;
    color: rgba(255,255,255,0.92);
    padding: 48px 0 24px;
    border-top: 4px solid var(--primary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 30px;
}
.footer-about .logo-icon,
.footer-about .logo-text { color: #fff; }
.footer-about p { font-size: 0.9rem; margin-top: 8px; line-height: 1.6; }
.footer-links h4 { color: #fff; margin-bottom: 12px; font-size: 0.95rem; }
.footer-links a {
    display: block;
    color: rgba(255,255,255,0.88);
    font-size: 0.9rem;
    padding: 3px 0;
}
.footer-links a:hover { color: var(--primary-light); text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}

/* ===== 404 ===== */
.not-found {
    text-align: center;
    padding: 80px 20px;
}
.not-found h1 { font-size: 5rem; color: var(--primary-dark); margin-bottom: 4px; }
.not-found p { font-size: 1.2rem; color: var(--text-light); margin: 16px 0 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    .main-nav.open { display: flex; }

    /* Mobile map layout: fixed heights instead of flex:1, so iOS Safari URL-bar
       resizing can't collapse the map to 0px. */
    .map-flex { flex-direction: column; height: auto; }
    .map-container {
        order: 1;
        flex: 0 0 55vh;
        height: 55vh;
        min-height: 320px;
    }
    .map-sidebar {
        width: 100%;
        min-width: 100%;
        order: 3;
        flex: 0 0 auto;
        max-height: none;
        border-right: none;
        border-top: 1px solid var(--border);
    }
    .sidebar-toggle { display: block; }
    .map-sidebar.collapsed { display: none; }

    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    .admin-table { font-size: 0.8rem; }
    .admin-table th, .admin-table td { padding: 8px 10px; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero-banner { padding: 40px 16px; }
    .hero-banner h1 { font-size: 1.6rem; }
}

/* ===== Bundesland / Hotspot cards ===== */
.bundesland-grid a,
.hotspot-grid a {
    border: 1px solid var(--border) !important;
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
    box-shadow: 0 1px 2px rgba(91,72,15,0.06);
}
.bundesland-grid a:hover,
.hotspot-grid a:hover {
    transform: translateY(-2px);
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-lg);
    text-decoration: none !important;
}

/* ===== Page content links readability ===== */
.page-content a:not(.btn):not(.blog-card):not(.bundesland-card):not(.hotspot-card):not(.sighting-list-item),
.sighting-info a:not(.btn) { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.page-content a:not(.btn):hover { color: var(--primary-dark); }

/* ===== Article body links ===== */
.blog-content a:not(.btn) { color: var(--link); }
.blog-content a:not(.btn):hover { color: var(--primary-dark); }

/* ===== TOC links ===== */
.toc a { color: var(--link); }
.toc a:hover { color: var(--primary-dark); }

/* ===== Sighting list items ===== */
.sighting-list li a:not(.btn) { color: var(--link); }
.sighting-list li a:not(.btn):hover { color: var(--primary-dark); }

/* Card-block links should NOT carry inline link styling */
.blog-card, .bundesland-grid a, .hotspot-grid a, .sighting-list-item, .recent-item {
    text-decoration: none !important;
    color: var(--text) !important;
}
.blog-card h2 { color: var(--primary-dark); }
.blog-card:hover h2 { color: var(--link); }
.blog-card .blog-date { color: var(--text-muted) !important; text-decoration: none !important; }

/* ===== Subtle section headings ===== */
.sidebar-section h3 { color: var(--text-light); font-weight: 700; }

/* ===== Detail meta improvements ===== */
.detail-meta { color: var(--text-light); }
.detail-status { letter-spacing: 0.2px; }
.status-pending { background: #fff3cd; color: #6b4f00; border: 1px solid #f0d878; }
.status-approved { background: #d4edda; color: #0f4419; border: 1px solid #a3d3b1; }

/* ===== Mobile scroll affordance between map and SEO =====
   Mobile-first: visible by default, hidden on desktop via min-width query. */
.mobile-scroll-hint {
    display: flex;
    order: 2;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.08);
}
.mobile-scroll-hint:hover,
.mobile-scroll-hint:focus { background: var(--primary-dark); color: #fff; }
.mobile-scroll-hint::after { content: "↓"; font-size: 1.1rem; }
@media (min-width: 769px) {
    .mobile-scroll-hint { display: none; }
}

/* ===== Map page intro (SEO content under the map) ===== */
.map-page-intro {
    padding: 60px 0 70px;
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
}
.map-page-intro .container { max-width: 1100px; }
.map-page-intro h2 {
    font-size: 1.9rem;
    margin-bottom: 14px;
    color: var(--primary-dark);
}
.map-page-intro .lead {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-light);
    max-width: 800px;
    margin-bottom: 36px;
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}
.intro-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow);
}
.intro-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--primary-dark);
}
.intro-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    color: var(--text-light);
    margin: 0 0 16px;
}
.intro-card .btn { margin-top: 4px; }
.intro-sources {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}
.intro-sources h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--text);
}
.intro-sources p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-light);
    margin: 0;
}
.intro-sources a { color: var(--link); }
.intro-sources a:hover { color: var(--primary-dark); }

@media (max-width: 800px) {
    .intro-grid { grid-template-columns: 1fr; }
    .map-page-intro { padding: 40px 0 50px; }
    .map-page-intro h2 { font-size: 1.5rem; }
}

/* Sidebar header tightened (logo now lives in main site header) */
body.map-page .sidebar-header { padding: 14px 20px 12px; position: relative; }
body.map-page .sidebar-header > strong { line-height: 1.2; }
body.map-page .sidebar-close {
    position: absolute; top: 12px; right: 12px;
    font-size: 0.8rem; color: var(--text-muted);
    background: none; border: none; cursor: pointer; padding: 4px;
}
body.map-page .sidebar-close:hover { color: var(--text); }

/* ===== Smoother focus + skip link ===== */
.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--accent); color: #fff;
    padding: 10px 16px; border-radius: var(--radius);
    z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ===== Cookie consent banner ===== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: #1f2937; color: #f9fafb;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
    z-index: 9999; padding: 16px 20px;
    animation: cookieSlideUp 280ms ease-out;
}
@keyframes cookieSlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.cookie-banner__inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; flex-wrap: wrap; gap: 20px;
    align-items: center; justify-content: space-between;
}
.cookie-banner__text { flex: 1 1 420px; font-size: 0.92rem; line-height: 1.45; }
.cookie-banner__text a { color: #93c5fd; text-decoration: underline; }
.cookie-banner__buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__btn {
    border: 0; border-radius: 6px; padding: 10px 18px;
    font-size: 0.9rem; font-weight: 600; cursor: pointer;
    transition: background 140ms ease;
}
.cookie-banner__btn--primary { background: var(--accent, #16a34a); color: #fff; }
.cookie-banner__btn--primary:hover { filter: brightness(0.92); }
.cookie-banner__btn--secondary { background: #4b5563; color: #fff; }
.cookie-banner__btn--secondary:hover { background: #374151; }

/* ===== Blog dropdown in main nav ===== */
.main-nav .has-dropdown { position: relative; }
.main-nav .dropdown-menu {
    position: absolute; top: 100%; left: 0;
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: var(--radius, 6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 6px 0;
    display: none;
    z-index: 500;
}
.main-nav .has-dropdown:hover > .dropdown-menu,
.main-nav .has-dropdown:focus-within > .dropdown-menu,
.main-nav .has-dropdown.open > .dropdown-menu { display: block; }
.main-nav .dropdown-menu a {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px;
    padding: 8px 14px;
    font-size: 0.92rem;
    color: var(--text, #1f2937);
    white-space: nowrap;
}
.main-nav .dropdown-menu a:hover { background: #f3f4f6; }
.main-nav .dropdown-menu .count {
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 0.78rem;
    font-weight: 600;
}
.main-nav .dropdown-menu .dropdown-divider {
    height: 1px; background: var(--border, #e5e7eb); margin: 6px 0;
}
.main-nav .has-dropdown > a::after {
    content: " \25BE";
    font-size: 0.75em;
    opacity: 0.7;
}


/* ===== Blog: category pills ===== */
.category-pills {
    margin: 20px 0 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.category-pills .pill,
.page-content a.pill {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border, #d7ccc8);
    background: #fff;
    color: var(--text, #3e2723) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none !important;
    transition: all 0.15s;
    line-height: 1.2;
}
.category-pills .pill:hover {
    border-color: var(--accent, #f57c00);
    background: #fff3e0;
    color: var(--accent-dark, #bf360c) !important;
}
.category-pills .pill-active {
    background: var(--accent, #f57c00);
    color: #fff !important;
    border-color: var(--accent, #f57c00);
    font-weight: 600;
}
.category-pills .pill-active:hover {
    background: var(--accent-dark, #bf360c);
    color: #fff !important;
}

/* ===== Blog list: image-left cards ===== */
.blog-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}
.blog-card {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    text-decoration: none !important;
    color: var(--text, #1f2937) !important;
    transition: box-shadow 0.18s, transform 0.18s;
}
.blog-card:hover {
    box-shadow: 0 8px 22px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}
.blog-card__image {
    width: 100%;
    height: 100%;
    min-height: 170px;
    object-fit: cover;
    display: block;
    background: #e3f2fd;
}
.blog-card__body {
    padding: 18px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.blog-card h2 {
    font-size: 1.15rem;
    margin: 0 0 6px;
    color: var(--text, #1f2937);
    line-height: 1.3;
}
.blog-card:hover h2 {
    color: var(--accent, #f57c00);
}
.blog-card .blog-date {
    font-size: 0.78rem;
    color: var(--text-muted, #888);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 8px;
}
.blog-card p {
    font-size: 0.92rem;
    color: var(--text-muted, #555);
    margin: 0;
    line-height: 1.5;
}
.blog-card:not(:has(.blog-card__image)) {
    grid-template-columns: 1fr;
}
.blog-card:not(:has(.blog-card__image)) .blog-card__body {
    padding: 22px 26px;
}
@media (max-width: 640px) {
    .blog-card { grid-template-columns: 1fr; }
    .blog-card__image { aspect-ratio: 16/9; min-height: 0; height: auto; }
    .blog-card__body { padding: 16px 20px; }
}

/* =====================================================================
   Rioleringskaart.nl — indigo/staalblauw thema + componenten (override)
   ===================================================================== */
:root {
    --primary: #2471a3;
    --primary-dark: #1a5276;
    --primary-light: #7fb3d5;
    --link: #1f6391;
    --bg: #F4FAFE;
    --bg-soft: #E8F4FB;
    --border: #cfe0ea;
    --border-light: #e1edf5;
    --border-strong: #aac6d8;
    --shadow: 0 2px 8px rgba(2,119,189,0.08);
    --shadow-lg: 0 6px 24px rgba(2,119,189,0.14);
}
a:hover { color: var(--primary-dark); }

/* ---- Hero + zoek ---- */
.hero-map { background: linear-gradient(135deg, #1a5276, #2980b9); color: #fff; padding: 36px 0 28px; }
.hero-map__intro h1, .hero-map h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.hero-map .hero-sub { color: #ffffff; font-size: 1.1rem; max-width: 720px; text-shadow: 0 1px 2px rgba(0,0,0,0.18); }
.country-search { position: relative; max-width: 520px; margin-top: 18px; }
.country-search input { width: 100%; padding: 13px 16px; border-radius: 999px; border: none; font-size: 1rem; box-shadow: var(--shadow-lg); }
.country-search__results { position: absolute; z-index: 600; left: 0; right: 0; margin-top: 6px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); list-style: none; overflow: hidden; }
.country-search__results li a { display: flex; align-items: center; gap: 10px; padding: 10px 16px; color: var(--text); }
.country-search__results li a:hover { background: var(--bg-soft); text-decoration: none; }
.country-search__results .muted { margin-left: auto; font-size: .85rem; }

/* ---- Wereldkaart ---- */
.world-map { width: 100%; height: 520px; background: #cfe8f3; }
@media (max-width: 700px) { .world-map { height: 380px; } }
.map-info { background: rgba(255,255,255,.95); padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4; max-width: 220px; }
.leaflet-container { font: inherit; }

/* ---- Legenda + status ---- */
.map-legend { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; padding: 16px 0; margin: 8px 0; border-bottom: 1px solid var(--border-light); }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .95rem; }
.status-dot { width: 13px; height: 13px; border-radius: 50%; display: inline-block; flex: none; }
.status-badge { display: inline-block; color: #fff; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }

/* ---- Country grid + cards ---- */
.section { margin: 36px 0; }
.section--split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .section--split { grid-template-columns: 1fr; } }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.country-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 14px 16px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s; }
.country-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; }
.country-card__flag { font-size: 1.8rem; line-height: 1; }
.country-card__name { font-weight: 600; color: var(--text); }
.country-card--continent { align-items: center; text-align: center; justify-content: center; min-height: 84px; }

/* ---- Quick links ---- */
.quick-links { display: flex; flex-direction: column; gap: 10px; }
.quick-link { background: #fff; border: 1px solid var(--border-light); border-left: 4px solid var(--primary); border-radius: 8px; padding: 12px 16px; font-weight: 600; box-shadow: var(--shadow); }
.quick-link--safe { border-left-color: #2E7D32; }
.quick-link--unsafe { border-left-color: #C62828; }
.status-explainer { list-style: none; margin: 12px 0; }
.status-explainer li { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.recent-blog { margin: 10px 0 10px 20px; }

/* ---- Country page ---- */
.breadcrumbs { font-size: .9rem; color: var(--text-muted); margin-bottom: 14px; }
.country-header h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.country-flag { font-size: 2.2rem; }
.status-banner { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 14px 0; padding: 14px 18px; border-radius: 10px; background: var(--status-color); color: #fff; }
.status-banner__label { font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.status-banner__heading { font-size: 1.05rem; opacity: .95; }
.answer-box { background: var(--bg-soft); border-left: 4px solid var(--primary); padding: 14px 18px; border-radius: 8px; font-size: 1.1rem; margin-bottom: 20px; }
.country-hero { margin: 0 0 20px; }
.country-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 12px; margin: 18px 0; }
.country-facts > div { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; padding: 10px 14px; }
.country-facts span { display: block; font-size: .8rem; color: var(--text-muted); }
.country-facts strong { font-size: 1.05rem; }
.jmp-bar { position: relative; background: #e6eef3; border-radius: 999px; height: 26px; overflow: hidden; margin: 14px 0 24px; }
.jmp-bar__fill { height: 100%; border-radius: 999px; }
.jmp-bar__text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; color: #15303d; }
.country-content h2 { font-size: 1.4rem; margin: 30px 0 12px; color: var(--primary-dark); }
.country-content ul { margin: 0 0 16px 24px; }
.toc { background: var(--bg-soft); border: 1px solid var(--border-light); border-radius: 10px; padding: 14px 18px; margin: 20px 0; }
.toc ol { margin: 8px 0 0 20px; }

/* ---- FAQ ---- */
.faq { margin: 28px 0; }
.faq h2 { color: var(--primary-dark); }
.faq-item { background: #fff; border: 1px solid var(--border-light); border-radius: 8px; margin-bottom: 10px; padding: 4px 16px; }
.faq-item summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.faq-answer { padding-bottom: 12px; color: var(--text-light); }

/* ---- Tabel ---- */
.country-table { width: 100%; border-collapse: collapse; margin: 18px 0; background: #fff; box-shadow: var(--shadow); border-radius: 8px; overflow: hidden; }
.country-table th, .country-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--border-light); }
.country-table th { background: var(--bg-soft); font-size: .9rem; }
.country-table th.num, .country-table td.num { text-align: right; }
.country-table tbody tr:hover { background: var(--bg-soft); }
.flag-sm { font-size: 1.2rem; }

/* ---- Filter pills ---- */
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.filter-pills .pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: .9rem; }
.filter-pills .pill-active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---- Admin ---- */
.admin-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.admin-stats .stat { background: #fff; border: 1px solid var(--border-light); border-top: 3px solid var(--c, var(--primary)); border-radius: 8px; padding: 12px 18px; min-width: 90px; text-align: center; }
.admin-stats .stat span { display: block; font-size: 1.6rem; font-weight: 700; color: var(--c, var(--primary-dark)); }
.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.admin-filter input, .admin-filter select { padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px; }
.muted { color: var(--text-muted); }

/* ===== Bodemkaart-specifieke componenten ===== */
.bodem-map { height: 460px; width: 100%; background: #e8eef2; }
.bodem-map--full { height: 600px; }
.bodem-map--embed { height: 340px; border-radius: var(--radius); margin: 0 0 20px; box-shadow: var(--shadow); }
.map-opacity { background: #fff; padding: 6px 8px; border-radius: 6px; box-shadow: var(--shadow); font-size: .78rem; }
.map-opacity input { width: 90px; display: block; }
.map-popup { font-size: .9rem; }
.map-popup .soil-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: middle; }

/* Adres-zoeker */
.address-search { position: relative; max-width: 560px; margin: 16px auto 0; }
.address-search--inline, .address-search--big { margin-left: 0; }
.address-search--big { max-width: 100%; }
.address-search input {
    width: 100%; padding: 14px 18px; font-size: 1.05rem; border: 2px solid var(--border-strong);
    border-radius: 999px; background: #fff; box-shadow: var(--shadow);
}
.address-search input:focus { outline: none; border-color: var(--primary); }
.address-search__results {
    position: absolute; z-index: 600; left: 0; right: 0; top: calc(100% + 6px);
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg);
    list-style: none; overflow: hidden;
}
.address-search__results li { padding: 11px 16px; cursor: pointer; border-bottom: 1px solid var(--border-light); }
.address-search__results li:last-child { border-bottom: 0; }
.address-search__results li:hover { background: var(--bg-soft); }

/* Grondsoort-resultaat */
.soil-result { max-width: 560px; margin: 14px auto 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-align: left; }
.soil-result--big { max-width: 100%; }
.soil-result__loading, .soil-result__empty { color: var(--text-muted); }
.soil-result__head { display: flex; align-items: center; gap: 12px; border-left: 5px solid; padding-left: 12px; }
.soil-result__group { font-size: 1.3rem; font-weight: 700; display: block; }
.soil-result__addr { color: var(--text-muted); font-size: .9rem; }
.soil-result__type { margin-top: 10px; }
.soil-result__note { margin-top: 10px; color: var(--text-light); font-size: .92rem; }
.soil-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 4px; }
.btn-soil { background: var(--primary); color: #fff; }
.btn-soil:hover { background: var(--primary-dark); color: #fff; }

/* Grondsoort-tegels */
.soil-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.soil-grid--wide { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.soil-card {
    display: block; background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--soil-color, var(--primary));
    border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); color: var(--text); text-decoration: none;
    transition: transform .12s, box-shadow .12s;
}
.soil-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); }
.soil-card__swatch { display: inline-block; width: 22px; height: 22px; border-radius: 5px; vertical-align: middle; }
.soil-card__name { font-weight: 700; font-size: 1.1rem; margin-left: 6px; }
.soil-card__desc { display: block; color: var(--text-light); font-size: .92rem; margin-top: 8px; }
.soil-card__where { display: block; color: var(--text-muted); font-size: .82rem; margin-top: 8px; }

/* Grondsoort-hero */
.soil-hero { background: linear-gradient(135deg, var(--soil-color, var(--primary)) 0%, rgba(0,0,0,.35) 220%); color: #fff; padding: 40px 0 28px; }
.soil-hero .breadcrumb, .soil-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.soil-hero__head { display: flex; align-items: center; gap: 14px; }
.soil-hero__swatch { width: 34px; height: 34px; border-radius: 7px; border: 2px solid rgba(255,255,255,.7); }
.soil-hero h1 { color: #fff; margin: 6px 0; }
.soil-hero .hero-sub { color: rgba(255,255,255,.92); }
.soil-hero__where { color: rgba(255,255,255,.9); margin-top: 6px; }

/* Legenda */
.map-legend { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; padding: 14px 0; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; }
.legend-source { color: var(--text-muted); font-size: .82rem; margin-left: auto; }
.status-dot { display: inline-block; width: 13px; height: 13px; border-radius: 50%; flex: none; }

/* Content layout met sidebar */
.content-layout { display: grid; grid-template-columns: 1fr 300px; gap: 36px; padding-top: 28px; }
.content-layout .sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.sidebar-box h3 { font-size: 1rem; margin-bottom: 10px; color: var(--primary-dark); }
.sidebar-soils, .sidebar-gemeenten { list-style: none; }
.sidebar-soils li, .sidebar-gemeenten li { padding: 4px 0; }
.sidebar-gemeenten { columns: 2; font-size: .9rem; }

/* Breakdown-balk */
.breakdown { margin: 8px 0 24px; }
.breakdown-bar { display: flex; height: 26px; border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-inset); border: 1px solid var(--border); }
.breakdown-seg { height: 100%; }
.breakdown-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.breakdown-legend li { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; }

/* Gemeente-chips + grid */
.gemeente-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.gemeente-chip { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 9px 12px; text-decoration: none; color: var(--text); }
.gemeente-chip:hover { border-color: var(--primary); text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.gemeente-chip__name { font-weight: 600; flex: 1; }
.gemeente-chip__soil { color: var(--text-muted); font-size: .8rem; }
.gemeente-prov { margin: 28px 0; }
.gemeente-prov h2 { border-bottom: 2px solid var(--border); padding-bottom: 6px; }
.gemeente-hero { background: linear-gradient(135deg, var(--soil-color, var(--primary)) 0%, rgba(0,0,0,.4) 240%); color: #fff; padding: 36px 0 26px; }
.gemeente-hero h1 { color: #fff; }
.gemeente-hero .hero-sub, .gemeente-hero .breadcrumb, .gemeente-hero .breadcrumb a { color: rgba(255,255,255,.9); }

/* Provincie-kaarten */
.prov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 16px; }
.prov-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--soil-color, var(--primary)); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.prov-card:hover { transform: translateY(-2px); text-decoration: none; color: var(--text); box-shadow: var(--shadow-lg); }
.prov-card__name { font-weight: 700; font-size: 1.15rem; }
.prov-card__soil { color: var(--text-muted); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }
.prov-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; }
.prov-links a { font-size: .9rem; }

/* Feeder-CTA (funderingskaart) */
.feeder-cta { background: var(--bg-soft); border: 1px solid var(--border-strong); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0; }
.feeder-cta .btn { background: var(--accent); color: #fff; margin-top: 8px; }
.feeder-cta .btn:hover { background: var(--accent-dark); color: #fff; }

/* FAQ */
.faq { margin-top: 28px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.faq details[open] summary { border-bottom: 1px solid var(--border-light); margin-bottom: 8px; }
.faq details > div { padding-bottom: 12px; }

/* Gids-kaarten */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 14px; }
.guide-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-decoration: none; color: var(--text); box-shadow: var(--shadow); }
.guide-card:hover { transform: translateY(-2px); text-decoration: none; color: var(--text); box-shadow: var(--shadow-lg); }
.guide-card h3 { color: var(--primary-dark); font-size: 1.1rem; margin-bottom: 6px; }
.guide-card p { color: var(--text-light); font-size: .9rem; }

/* Lookup-pagina layout */
.lookup-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; padding-top: 22px; }
.aside-soils { list-style: none; margin-top: 10px; }
.aside-soils li { padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.aside-soils li a { display: inline-flex; align-items: center; gap: 8px; }

/* Filterbar + diversen */
.filterbar input { width: 100%; max-width: 420px; padding: 11px 16px; border: 2px solid var(--border-strong); border-radius: 999px; }
.page-head { padding: 28px 0 8px; }
.article-hero { width: 100%; border-radius: var(--radius); margin: 12px 0 20px; }
.prose h2 { color: var(--primary-dark); margin: 28px 0 12px; }
.prose h3 { color: var(--primary-dark); margin: 20px 0 8px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; }

/* Admin */
.admin-wrap { padding-top: 24px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.admin-nav a { margin-left: 14px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 20px 0; }
.admin-stats .stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.admin-stats .stat-num { font-size: 1.8rem; font-weight: 700; color: var(--primary); display: block; }
.admin-stats .stat-label { color: var(--text-muted); font-size: .85rem; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--border-light); }

@media (max-width: 860px) {
    .content-layout, .lookup-layout { grid-template-columns: 1fr; }
    .bodem-map { height: 380px; }
}

/* ===================== Netcongestie-componenten ===================== */
.leaflet-map { width:100%; border-radius:12px; overflow:hidden; box-shadow:0 2px 14px rgba(0,0,0,.08); }
.map-section, .map-fullbleed { margin:1.5rem 0; }
.map-controls { display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; margin:.8rem 0; }
.map-toggle { display:inline-flex; border:1px solid #d7dce3; border-radius:999px; overflow:hidden; }
.map-toggle button { border:0; background:#fff; padding:.5rem 1rem; cursor:pointer; font-size:.9rem; color:#445; }
.map-toggle button.active { background:#1f6feb; color:#fff; }
.map-legend { display:flex; flex-wrap:wrap; gap:.6rem 1rem; font-size:.82rem; color:#445; }
.map-legend.inline { margin:.6rem 0 1rem; }
.legend-item { display:inline-flex; align-items:center; gap:.35rem; }
.legend-item i { width:14px; height:14px; border-radius:3px; display:inline-block; }
.map-note { font-size:.8rem; color:#778; margin:.3rem 0 0; }

.status-badge { display:inline-block; padding:.25rem .6rem; border-radius:999px; color:#fff; font-size:.85rem; font-weight:600; }
.status-overview { display:flex; flex-wrap:wrap; gap:1.2rem; margin:1rem 0 1.4rem; }
.status-block { background:#f6f8fa; border:1px solid #e7ebf0; border-radius:10px; padding:.8rem 1rem; min-width:210px; }
.status-cap { display:block; font-size:.78rem; text-transform:uppercase; letter-spacing:.04em; color:#778; margin-bottom:.4rem; }
.status-meta { display:block; margin-top:.4rem; font-size:.85rem; color:#556; }

.stat-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1rem; }
.stat-card { background:#fff; border:1px solid #e7ebf0; border-radius:10px; padding:1rem; text-align:center; }
.stat-card strong { display:block; font-size:1.5rem; color:#1f2a37; }
.stat-card span { font-size:.82rem; color:#667; }
.stat-card.stat-red strong { color:#E14B3B; } .stat-card.stat-orange strong { color:#F09A3E; }

.tile-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:.8rem; }
.region-tile { display:flex; flex-direction:column; gap:.25rem; background:#fff; border:1px solid #e7ebf0; border-radius:10px; padding:.8rem .9rem; text-decoration:none; color:#223; transition:box-shadow .15s; }
.region-tile:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); }
.region-tile.lg { padding:1rem; }
.tile-dot { width:14px; height:14px; border-radius:50%; display:inline-block; }
.tile-name { font-weight:600; }
.tile-sub { font-size:.8rem; color:#667; }

.chip-row { display:flex; flex-wrap:wrap; gap:.5rem; margin:.6rem 0 1.4rem; }
.chip { display:inline-flex; align-items:center; gap:.4rem; background:#fff; border:1px solid #dde3ea; border-radius:999px; padding:.35rem .8rem; font-size:.88rem; text-decoration:none; color:#334; }
.chip:hover { border-color:#1f6feb; color:#1f6feb; }
.dot { width:11px; height:11px; border-radius:50%; display:inline-block; }

.table-wrap { overflow-x:auto; margin:1rem 0 1.4rem; }
.vg-table { width:100%; border-collapse:collapse; font-size:.9rem; }
.vg-table th, .vg-table td { text-align:left; padding:.55rem .6rem; border-bottom:1px solid #eceff3; }
.vg-table th { background:#f6f8fa; color:#556; font-weight:600; }
.vg-table td .dot { margin-right:.4rem; }

.breadcrumb { font-size:.85rem; color:#778; margin:.4rem 0 1rem; }
.breadcrumb a { color:#1f6feb; text-decoration:none; }
.faq details { background:#f6f8fa; border:1px solid #e7ebf0; border-radius:8px; padding:.7rem 1rem; margin-bottom:.6rem; }
.faq summary { font-weight:600; cursor:pointer; }
.faq details div { margin-top:.5rem; color:#445; }

.address-search { position:relative; max-width:560px; margin:1rem 0; }
.address-search.big { max-width:680px; }
.address-search input { width:100%; padding:.85rem 1rem; border:1px solid #cdd5df; border-radius:10px; font-size:1rem; }
.suggestions { position:absolute; z-index:1000; left:0; right:0; background:#fff; border:1px solid #dde3ea; border-radius:0 0 10px 10px; box-shadow:0 6px 18px rgba(0,0,0,.12); }
.suggestion { padding:.6rem 1rem; cursor:pointer; }
.suggestion:hover { background:#f1f5fb; }
.lookup-result { max-width:680px; margin:.6rem 0 1.4rem; }
.lookup-card { background:#fff; border:1px solid #e7ebf0; border-radius:12px; padding:1.1rem 1.2rem; }
.lookup-row { display:flex; align-items:center; justify-content:space-between; padding:.4rem 0; border-bottom:1px solid #f0f2f5; }
.lookup-cap { color:#556; }
.lookup-addr { font-weight:600; margin:0 0 .6rem; }
.lookup-meta { font-size:.9rem; color:#556; margin:.5rem 0 0; }
.lookup-loading, .lookup-empty { padding:.9rem 1.1rem; background:#f6f8fa; border-radius:10px; color:#556; }
.filter-input { width:100%; max-width:420px; padding:.6rem .9rem; border:1px solid #cdd5df; border-radius:8px; margin:.6rem 0 1rem; }

.card-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:1rem; }
.card { display:flex; flex-direction:column; gap:.4rem; background:#fff; border:1px solid #e7ebf0; border-radius:10px; padding:1rem; text-decoration:none; color:#223; }
.card:hover { box-shadow:0 3px 12px rgba(0,0,0,.1); }
.card-title { font-weight:600; } .card-date { font-size:.8rem; color:#778; }
.center { text-align:center; } .lead { color:#556; font-size:1.05rem; max-width:760px; }
.region-cta { margin:1.6rem 0; }
.info-box { background:#f6f8fa; border:1px solid #e7ebf0; border-radius:12px; padding:1.1rem 1.3rem; margin:1.4rem 0; }
.hero-map { padding:2rem 0 1rem; } .hero-sub { color:#556; font-size:1.05rem; max-width:720px; }

/* Responsive tabellen in blog/gids-content (mobiel horizontaal scrollen i.p.v. paginabreedte) */
.blog-content table, .prose table { width:100%; border-collapse:collapse; font-size:.92rem; margin:1rem 0; }
.blog-content th, .blog-content td, .prose th, .prose td { border:1px solid #e7ebf0; padding:.5rem .6rem; text-align:left; vertical-align:top; }
.blog-content thead th, .prose thead th { background:#f6f8fa; }
.blog-content img, .prose img { max-width:100%; height:auto; }
.blog-content, .prose { overflow-wrap:break-word; }

/* ===== kaart-site additions ===== */
.lead{font-size:1.12rem;color:#33414f;max-width:70ch;margin:0 0 1.2rem}
.two-col{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:2rem}
@media(max-width:880px){.two-col{grid-template-columns:1fr}}
.sidebar .side-box{background:#f4f7fa;border:1px solid #e2e9f0;border-radius:10px;padding:1rem 1.1rem;margin-bottom:1rem}
.side-box h3{margin:0 0 .5rem;font-size:1rem}
.link-list{list-style:none;padding:0;margin:0}
.link-list li{margin:.25rem 0}
.card-meta{display:block;color:#5a6b7b;font-size:.9rem;margin-top:.2rem}
.card-desc{display:block;color:#46566a;font-size:.86rem;margin-top:.4rem}
.chip-row{display:flex;flex-wrap:wrap;gap:.5rem;margin:.4rem 0 1.4rem}
.pill{display:inline-block;background:#eef3f8;border:1px solid #d8e2ec;border-radius:999px;padding:.35rem .8rem;color:#0e3a5f;text-decoration:none;font-size:.92rem;cursor:pointer}
.pill:hover,.pill.active{background:#0e3a5f;color:#fff;border-color:#0e3a5f}
.rank-list{list-style:none;counter-reset:r;padding:0;margin:.5rem 0 1rem}
.rank-list li{counter-increment:r;display:flex;justify-content:space-between;gap:.5rem;padding:.35rem 0;border-bottom:1px solid #eef2f6}
.rank-list li::before{content:counter(r) ".";color:#9aa7b4;margin-right:.4rem}
.rank-list li span{color:#5a6b7b;font-variant-numeric:tabular-nums}
.step-list{list-style:none;counter-reset:s;padding:0;margin:.5rem 0 1rem}
.step-list li{counter-increment:s;display:flex;gap:.7rem;padding:.5rem 0;border-bottom:1px solid #eef2f6}
.step-list li::before{content:counter(s);flex:0 0 auto;width:1.6rem;height:1.6rem;line-height:1.6rem;text-align:center;border-radius:50%;background:var(--zk-teal);color:#fff;font-weight:700;font-size:.85rem}
.rank-cols{column-count:2;column-gap:2rem}
@media(max-width:600px){.rank-cols{column-count:1}}
.az-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:.25rem .9rem}
.az-grid a{padding:.2rem 0;text-decoration:none;color:#15405f;font-size:.92rem}
.az-grid a small{color:#9aa7b4}
.data-table{width:100%;border-collapse:collapse;margin:.5rem 0 1.4rem;font-size:.95rem}
.data-table th,.data-table td{text-align:left;padding:.5rem .6rem;border-bottom:1px solid #e8eef3}
.data-table th{background:#0e3a5f;color:#fff;font-weight:600}
.data-table tr:nth-child(even) td{background:#f7fafc}
.near-list{list-style:none;padding:0;margin:.4rem 0}
.near-list li{padding:.3rem 0;border-bottom:1px solid #eef2f6}
.near-dist{display:inline-block;min-width:60px;color:#0e3a5f;font-weight:600;font-variant-numeric:tabular-nums}
.lookup-note{font-size:.82rem;color:#6b7886;margin-top:.6rem}

/* map */
#map{width:100%;height:520px;border-radius:10px;z-index:1}
.map-shell{position:relative;max-width:1100px;margin:1.5rem auto;padding:0 1rem}
.map-embed{max-width:1100px;margin:0 auto 1.5rem;padding:0 1rem;position:relative}
.map-embed #map{height:460px}
.map-toolbar{display:flex;justify-content:flex-end;margin-bottom:.5rem}
.map-toggle{display:inline-flex;border:1px solid #d8e2ec;border-radius:8px;overflow:hidden}
.map-toggle button{background:#fff;border:0;padding:.45rem .8rem;cursor:pointer;font-size:.88rem;color:#0e3a5f}
.map-toggle button.active{background:#0e3a5f;color:#fff}
.map-hint{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:rgba(255,255,255,.92);padding:.5rem .9rem;border-radius:8px;font-size:.9rem;box-shadow:0 2px 8px rgba(0,0,0,.15);z-index:2}
.map-legend{background:#fff;border:1px solid #e2e9f0;border-radius:8px;padding:.6rem .8rem;font-size:.84rem;margin-top:.6rem;display:inline-block}
.legend-row{display:flex;align-items:center;gap:.5rem;margin:.2rem 0}
.legend-swatch{width:16px;height:16px;border-radius:3px;display:inline-block}
.filter-pills{display:flex;flex-wrap:wrap;gap:.4rem;margin:.3rem 0 1rem}

/* hero search */
.hero-search{position:relative;display:flex;flex-wrap:wrap;gap:.6rem;align-items:center;margin:1rem 0}
.hero-search input[type=text]{flex:1;min-width:240px;padding:.7rem .9rem;border:1px solid #c8d4df;border-radius:8px;font-size:1rem}
.radius-pick{font-size:.9rem;color:#33414f;display:flex;align-items:center;gap:.4rem}
.radius-pick select{padding:.45rem;border-radius:6px;border:1px solid #c8d4df}
.suggestions{position:absolute;top:100%;left:0;right:0;background:#fff;border:1px solid #d8e2ec;border-radius:0 0 8px 8px;z-index:1000;max-height:260px;overflow:auto;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.suggestion{padding:.55rem .9rem;cursor:pointer}
.suggestion:hover{background:#eef3f8}
.lookup-card{background:#f4f7fa;border:1px solid #e2e9f0;border-radius:10px;padding:1rem}
.lookup-loading,.lookup-empty{padding:.8rem;color:#5a6b7b}

/* full-page map layout (/kaart, /op-adres) */
.map-fullpage{display:grid;grid-template-columns:380px minmax(0,1fr);gap:0;min-height:calc(100vh - 64px)}
.map-side{padding:1.4rem 1.4rem 2rem;overflow:auto}
.map-main{position:relative}
.map-main #map{height:100%;min-height:480px;border-radius:0}
.map-side h1{font-size:1.5rem}
.map-side h3{margin:1rem 0 .4rem;font-size:.95rem}
@media(max-width:880px){.map-fullpage{grid-template-columns:1fr}.map-main #map{height:60vh}}
.hero-map{background:linear-gradient(180deg,#0e3a5f,#12506f);color:#fff;padding:2rem 0 0}
.hero-map .hero-banner{max-width:900px;margin:0 auto;padding:0 1rem}
.hero-map h1{color:#fff}
.hero-map .hero-sub{color:#dce8f0}
.hero-map .hero-search input[type=text]{background:#fff}
.hero-map .lookup-result{max-width:900px;margin:0 auto;padding:0 1rem}
.section--alt{background:#f4f7fa}

/* responsive tables (mobiel): horizontaal scrollen i.p.v. overflow */
@media (max-width: 760px) {
  .data-table, .prose table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table thead, .prose table thead { white-space: nowrap; }
}

/* ============================================================
   DESIGN POLISH v3 (zmk3) — premium layer, overrides earlier
   ============================================================ */
:root{
  --zk-navy:#123a56; --zk-navy2:#16425f; --zk-ink:#172733; --zk-muted:#5a6b7b;
  --zk-teal:#2471a3; --zk-teal-l:#5dade2; --zk-amber:#d95f02;
  --zk-line:#e4ebf1; --zk-bg:#ffffff; --zk-alt:#f5f8fb;
  --zk-shadow:0 1px 2px rgba(14,58,95,.05), 0 6px 20px rgba(14,58,95,.06);
  --zk-shadow-h:0 6px 14px rgba(14,58,95,.10), 0 14px 34px rgba(14,58,95,.12);
}
body{ font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif; color:var(--zk-ink); background:var(--zk-bg); }
h1,h2,h3,h4,.logo-text,.stat-num,.hero-banner h1,.map-side h1{ font-family:'Outfit','Inter',sans-serif; letter-spacing:-.02em; }
h1{ font-weight:800; } h2{ font-weight:700; } h3{ font-weight:600; }

/* logo */
.logo{ display:inline-flex; align-items:center; gap:.55rem; font-weight:700; }
.logo-icon{ width:30px; height:30px; flex:0 0 auto; display:inline-block; }
.logo-text{ font-size:1.18rem; letter-spacing:-.5px; }
.site-header{ box-shadow:0 1px 0 var(--zk-line), 0 2px 14px rgba(14,58,95,.04); }

/* content links accent (scoped, nav/footer/buttons untouched) */
.main-content a:not(.btn):not(.pill):not(.card):not(.logo),
.prose a, .lead a, .faq-answer a, .data-table a, .rank-list a, .link-list a, .az-grid a{
  color:var(--zk-teal); text-decoration:none;
}
.main-content a:not(.btn):not(.pill):not(.card):hover,
.prose a:hover, .lead a:hover, .data-table a:hover{ color:#1a5276; text-decoration:underline; text-underline-offset:2px; }

/* section rhythm + headings */
.section{ margin:0; padding:56px 0; }
.section--alt{ background:var(--zk-alt); }
.section > .container > h2, .section > .container > .two-col h2, .section .container > h2{ position:relative; }
.section h2{ font-size:1.55rem; margin:0 0 1.1rem; padding-bottom:.5rem; }
.section h2::after{ content:""; display:block; width:48px; height:3px; border-radius:3px; margin-top:.55rem; background:linear-gradient(90deg,var(--zk-teal),var(--zk-teal-l)); }
.lead{ font-size:1.16rem; line-height:1.7; color:#34424f; }

/* subpage hero accent */
.breadcrumbs{ font-size:.85rem; color:var(--zk-muted); margin-bottom:.8rem; }
.breadcrumbs a{ color:var(--zk-teal); }
.section > .container > h1{ font-size:2rem; line-height:1.15; margin:0 0 .7rem; border-left:4px solid var(--zk-teal-l); padding-left:.75rem; }

/* STAT cards -> premium cijferband */
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1rem; margin:1.6rem 0 .6rem; }
.stat-card{ background:#fff; border:1px solid var(--zk-line); border-radius:14px; padding:1.3rem 1.1rem; text-align:left; box-shadow:var(--zk-shadow); position:relative; overflow:hidden; }
.stat-card::before{ content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:linear-gradient(180deg,var(--zk-teal),var(--zk-teal-l)); }
.stat-card .stat-num{ display:block; font-size:2.1rem; font-weight:800; color:var(--zk-navy); line-height:1.05; font-variant-numeric:tabular-nums; }
.stat-card .stat-label{ display:block; font-size:.82rem; color:var(--zk-muted); margin-top:.25rem; text-transform:uppercase; letter-spacing:.04em; }
@media(max-width:760px){ .stat-grid{ grid-template-columns:repeat(2,1fr); } }

/* cards: shadow + hover lift + accent */
.card-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1.1rem; }
.card{ display:block; background:#fff; border:1px solid var(--zk-line); border-radius:14px; padding:1.15rem 1.2rem; box-shadow:var(--zk-shadow); transition:transform .15s ease, box-shadow .15s ease, border-color .15s ease; text-decoration:none; color:var(--zk-ink); }
.card:hover{ transform:translateY(-3px); box-shadow:var(--zk-shadow-h); border-color:#cfe0ea; text-decoration:none; }
.card .card-title{ font-family:'Outfit',sans-serif; font-weight:600; font-size:1.05rem; color:var(--zk-navy); display:block; }
.card .card-title::after{ content:" \2192"; color:var(--zk-teal-l); opacity:0; transition:opacity .15s; }
.card:hover .card-title::after{ opacity:1; }

/* pills */
.pill{ border-radius:999px; border:1px solid #d4e2ec; background:#fff; box-shadow:var(--zk-shadow); }
.pill:hover,.pill.active{ background:var(--zk-navy); border-color:var(--zk-navy); color:#fff; }

/* rank list */
.rank-list li{ padding:.5rem 0; }
.rank-list li::before{ color:var(--zk-teal); font-weight:700; }
.rank-list li a{ font-weight:500; }

/* tables */
.data-table{ border:1px solid var(--zk-line); border-radius:12px; overflow:hidden; box-shadow:var(--zk-shadow); }
.data-table th{ background:var(--zk-navy); font-family:'Outfit',sans-serif; font-weight:600; letter-spacing:.01em; }
.data-table td:nth-child(n+2), .data-table th:nth-child(n+2){ text-align:right; font-variant-numeric:tabular-nums; }
.data-table td:first-child, .data-table th:first-child{ text-align:left; }
.data-table tr:hover td{ background:#eef5f9; }

/* sidebar boxes */
.side-box{ border-radius:14px; box-shadow:var(--zk-shadow); border-color:var(--zk-line); }
.side-box h3{ color:var(--zk-navy); }

/* buttons */
.btn{ border-radius:10px; font-weight:600; font-family:'Outfit',sans-serif; }
.btn-primary{ background:var(--zk-navy); } .btn-primary:hover{ background:#0a2c49; }
.btn-outline{ border:2px solid var(--zk-teal); color:var(--zk-teal); }
.btn-outline:hover{ background:var(--zk-teal); border-color:var(--zk-teal); color:#fff; }

/* hero refinements */
.hero-map{ background:linear-gradient(135deg,#0c3252 0%,#0e3a5f 45%,#11607a 100%); padding:3rem 0 0; }
.hero-banner h1{ font-size:2.5rem; line-height:1.08; }
.hero-sub{ font-size:1.14rem; max-width:60ch; }
.hero-search input[type=text]{ border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,.12); border:none; }
.hero-search .btn,.hero-search button{ border-radius:10px; }

/* map legend as overlay on embedded maps */
.map-shell, .map-embed{ position:relative; }
.map-shell #map-legend, .map-embed #map-legend{
  position:absolute; right:14px; bottom:14px; z-index:600; margin:0;
  background:rgba(255,255,255,.95); box-shadow:var(--zk-shadow-h); border-radius:10px; font-size:.8rem;
}
@media(max-width:600px){ .map-shell #map-legend, .map-embed #map-legend{ left:14px; right:auto; bottom:14px; } }
.legend-swatch{ border:1px solid rgba(0,0,0,.1); }
.map-toggle{ border-radius:10px; box-shadow:var(--zk-shadow); }
.map-toggle button.active{ background:var(--zk-navy); }
#map{ border-radius:14px; box-shadow:var(--zk-shadow); }

/* footer */
.site-footer{ background:#0b2742; }
.site-footer .logo-icon{ width:28px; height:28px; }
.site-footer h4{ font-family:'Outfit',sans-serif; }

/* az-grid */
.az-grid a{ border-radius:8px; padding:.3rem .5rem; transition:background .12s; }
.az-grid a:hover{ background:var(--zk-alt); text-decoration:none; }

/* ---- polish v4: map-hint leesbaar + hero ademruimte ---- */
.map-hint{
  z-index:1200 !important;            /* boven Leaflet-markers/panes */
  background:rgba(255,255,255,.97); color:var(--zk-ink);
  font-weight:600; font-size:.92rem; padding:.6rem 1.1rem;
  border-radius:999px; box-shadow:0 4px 16px rgba(14,58,95,.22);
  pointer-events:none; max-width:84%; text-align:center; white-space:normal;
}
.hero-map{ padding:4.5rem 0 1rem; }
.hero-map .hero-banner{ padding:.4rem 1rem 1.4rem; }
.hero-banner h1{ margin:0 0 .8rem; }
.hero-map .hero-sub{ margin-bottom:1.2rem; }
@media(max-width:760px){ .hero-map{ padding:2.6rem 0 1rem; } .hero-banner h1{ font-size:1.9rem; } }
/* ===== Bol.com affiliate box + toast (self-contained, theme-agnostic) — 2026-06-11 ===== */
.aff-box{
    background:#fff;border:1px solid #e5e7eb;border-left:4px solid #1f2937;border-radius:12px;
    padding:16px 18px;margin:28px 0;box-shadow:0 1px 3px rgba(0,0,0,.06);
}
.aff-box__head{display:flex;align-items:center;gap:8px;margin-bottom:6px;}
.aff-box__tag{
    font-size:.66rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;
    color:#6b7280;border:1px solid #e5e7eb;border-radius:4px;padding:1px 6px;
}
.aff-box__title{font-size:1.05rem;color:#111827;line-height:1.3;}
.aff-box__intro{font-size:.9rem;color:#4b5563;margin:4px 0 12px;}
.aff-box__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px;}
.aff-item{display:flex;align-items:center;gap:12px;background:#f9fafb;border-radius:10px;padding:10px 12px;}
.aff-item__icon{font-size:1.5rem;flex-shrink:0;line-height:1;}
.aff-item__body{flex:1;min-width:0;}
.aff-item__name{font-weight:600;color:#111827;font-size:.92rem;text-decoration:none;display:block;}
.aff-item__name:hover{color:#1f2937;text-decoration:underline;}
.aff-item__meta{display:flex;align-items:center;gap:8px;margin-top:3px;flex-wrap:wrap;}
.aff-item__badge{font-size:.72rem;color:#15803d;font-weight:600;}
.aff-item__price{font-size:.85rem;font-weight:700;color:#111827;}
.aff-item__btn{
    flex-shrink:0;background:#1f2937;color:#fff;text-decoration:none;font-size:.85rem;font-weight:600;
    padding:8px 12px;border-radius:8px;white-space:nowrap;
}
.aff-item__btn:hover{background:#111827;color:#fff;}
.aff-box__disclosure{font-size:.7rem;color:#9ca3af;margin:12px 0 0;}

.aff-box--compact{margin:0;padding:12px 14px;box-shadow:none;}
.aff-box--compact .aff-box__title{font-size:.95rem;}
.aff-box--compact .aff-box__intro{font-size:.82rem;margin-bottom:10px;}
.aff-box--compact .aff-item{padding:8px 10px;gap:9px;}
.aff-box--compact .aff-item__icon{font-size:1.25rem;}
.aff-box--compact .aff-item__name{font-size:.85rem;}
.aff-box--compact .aff-item__btn{padding:6px 9px;font-size:.78rem;}

@media (max-width:480px){
    .aff-item{flex-wrap:wrap;}
    .aff-item__btn{width:100%;text-align:center;}
}

/* ===== Slide-in toast ===== */
.aff-toast{
    position:fixed;right:18px;bottom:18px;z-index:1200;width:340px;max-width:calc(100vw - 24px);
    background:#fff;border:1px solid #e5e7eb;border-left:4px solid #1f2937;border-radius:12px;
    box-shadow:0 10px 30px rgba(0,0,0,.18);padding:16px 16px 12px;
    transform:translateY(140%);opacity:0;transition:transform .35s cubic-bezier(.16,.84,.44,1),opacity .35s ease;
}
.aff-toast--visible{transform:translateY(0);opacity:1;}
.aff-toast__close{
    position:absolute;top:6px;right:8px;border:none;background:none;cursor:pointer;
    font-size:1.4rem;line-height:1;color:#9ca3af;
}
.aff-toast__close:hover{color:#111827;}
.aff-toast__head{display:flex;align-items:center;gap:8px;margin:0 18px 6px 0;}
.aff-toast__title{font-size:1rem;color:#111827;line-height:1.3;}
.aff-toast__intro{font-size:.82rem;color:#4b5563;margin:0 0 10px;}

@media (max-width:560px){
    .aff-toast{right:8px;left:8px;bottom:8px;width:auto;}
    .aff-toast .aff-box__list .aff-item:nth-of-type(n+2){display:none;}
    .aff-toast__intro{margin-bottom:8px;}
}
@media (prefers-reduced-motion:reduce){
    .aff-toast{transition:opacity .2s ease;transform:none;}
}

/* ===== Bol affiliate Tier1 v2 (productfoto + sterren + voorraad + CTA) — override ===== */
.aff-box__list{display:flex;flex-direction:column;gap:10px}
.aff-item{display:flex;align-items:flex-start;gap:13px;background:#f6f7f9;border:1px solid #eef0f2;border-radius:10px;padding:12px}
.aff-item__thumb{flex-shrink:0;width:72px;height:72px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #ececec;border-radius:8px;overflow:hidden;text-decoration:none}
.aff-item__thumb img{width:100%;height:100%;object-fit:contain;display:block}
.aff-item__icon{font-size:1.9rem}
.aff-item__body{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.aff-item__name{font-weight:600;color:#1a1a2e;font-size:.92rem;text-decoration:none;line-height:1.33;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.aff-item__rating{display:flex;align-items:center;gap:5px}
.aff-stars{color:#f5a623;font-size:.82rem;letter-spacing:1px;line-height:1}
.aff-rcount{font-size:.72rem;color:#888}
.aff-item__priceline{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap}
.aff-item__price{font-size:1.05rem;font-weight:800;color:#1a1a2e}
.aff-item__stock{font-size:.74rem;color:#1f8a4c;font-weight:600;white-space:nowrap}
.aff-item__badge{display:none}
.aff-item__btn{display:inline-block;margin-top:3px;background:#e76f2a;color:#fff;text-decoration:none;font-size:.85rem;font-weight:700;padding:9px 15px;border-radius:8px;white-space:nowrap;box-shadow:0 2px 6px rgba(231,111,42,.3)}
.aff-item__btn:hover{background:#cf5d1d;color:#fff}
.aff-box--compact .aff-item{padding:10px}
.aff-box--compact .aff-item__thumb{width:56px;height:56px}
.aff-toast .aff-item__btn{display:block;width:100%;text-align:center}
@media(max-width:560px){.aff-toast{left:10px;right:10px;bottom:10px;width:auto;max-width:none}.aff-toast .aff-box__list .aff-item:nth-of-type(n+2){display:none}}
/* aff-bulletproof: weersta site-brede `.page-content a:not(.btn)` link-overrides + uitlijning */
.aff-box a.aff-item__btn{background:#e76f2a !important;color:#fff !important;text-decoration:none !important}
.aff-box a.aff-item__btn:hover{background:#cf5d1d !important;color:#fff !important;text-decoration:none !important}
.aff-box a.aff-item__name{color:#1a1a2e !important;text-decoration:none !important}
.aff-box a.aff-item__name:hover{text-decoration:underline !important}
.aff-box a.aff-item__thumb{text-decoration:none !important}


/* ===== grondwaterstandkaart additions ===== */
.droogte-banner{ margin:0; padding:10px 16px; background:#fdf3e7; border:1px solid #f0d9bd; border-radius:10px; font-size:.98rem; color:#5a3d1e; }
.droogte-banner strong{ color:#b3541e; }
.droogte-banner a{ margin-left:.5rem; white-space:nowrap; }
.chart-wrap{ background:#fff; border:1px solid var(--zk-line); border-radius:14px; padding:18px; box-shadow:var(--zk-shadow); margin:1rem 0 1.6rem; overflow-x:auto; }
.chart-wrap canvas{ max-width:100%; }
.table-wrap{ overflow-x:auto; margin:0 0 1.4rem; }
.map-shell--inline{ height:420px; border-radius:14px; overflow:hidden; border:1px solid var(--zk-line); }
.map-shell--inline #map{ height:420px; }
@media (max-width:700px){ .map-shell--inline, .map-shell--inline #map{ height:320px; } }
#map, .map-shell, .leaflet-container{ overflow:hidden; max-width:100%; }
.two-col > div{ min-width:0; }
/* Dropdown-suggesties: expliciet donkere tekst (erven anders wit uit hero) */
.suggestions{ color:#1a1a2e; text-shadow:none; }
.suggestion{ color:#1a1a2e; font-size:.97rem; text-align:left; }
.suggestion:hover, .suggestion:focus{ background:#e8f2fa; color:#123a56; }
/* Lookup-resultaat: donkere tekst (erft anders wit uit hero) */
.lookup-result, .lookup-card, .lookup-loading, .lookup-empty{ color:#1a1a2e; text-shadow:none; }
.lookup-card .lookup-addr{ color:#123a56; font-weight:700; }
.lookup-card .lookup-meta, .lookup-card .near-list, .lookup-card .lookup-note{ color:#33404d; }
.lookup-card .near-dist{ color:#1a5276; font-weight:600; }

/* ===== WCAG-AA contrastfixes (audit 2026-07-03) ===== */
.status-badge{ color:#fff !important; }
.site-footer a{ color:#8fc3e8; }
.site-footer a:hover{ color:#a9d2ef; }
.breadcrumbs, .breadcrumb{ color:#4c5b68; }
.card-date{ color:#5b6472; }
.leaflet-container a{ color:#1a5276 !important; }
.aff-stars{ color:#8a5300 !important; }
.aff-rcount{ color:#5f6b76 !important; }
.aff-item__stock{ color:#157a3f !important; }
.aff-item__btn{ background:#b03a05 !important; color:#fff !important; }
.aff-item__btn:hover{ background:#992f02 !important; }
.aff-box__disclosure{ color:#5f6b76 !important; }
.aff-box a.aff-item__btn, .aff-toast a.aff-item__btn, a.aff-item__btn{ background:#b03a05 !important; color:#fff !important; box-shadow:0 2px 6px rgba(176,58,5,.3) !important; }
.aff-box a.aff-item__btn:hover, .aff-toast a.aff-item__btn:hover, a.aff-item__btn:hover{ background:#992f02 !important; }
h1, h2, h3, .card-title{ overflow-wrap:break-word; }

/* Grondwaterstand-rapport CTA (betaald rapport, 2026-08-18) */
.report-cta {
    position: relative;
    margin: 28px 0;
    padding: 28px;
    background: var(--bg-white);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.report-cta__badge {
    position: absolute;
    top: -14px;
    right: 24px;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}
.report-cta h2 { margin: 0 0 6px 0; font-size: 1.3rem; padding-right: 90px; }
.report-cta__intro { margin: 0 0 14px 0; color: var(--text-light); }
.report-cta__list { list-style: none; margin: 0 0 20px 0; padding: 0; display: grid; gap: 8px; }
.report-cta__list li { padding-left: 26px; position: relative; }
.report-cta__list li::before { content: "\2713"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.report-cta .btn-accent { background: var(--accent-dark); box-shadow: var(--shadow); }
.report-cta .btn-accent:hover { background: var(--accent); }
.report-cta__trust { margin: 12px 0 0 0; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 480px) {
    .report-cta { padding: 22px 18px; }
    .report-cta__badge { position: static; display: inline-block; margin-bottom: 10px; }
    .report-cta h2 { padding-right: 0; }
}

/* ============================================================
   Rioleringskaart.nl — indigo/staalblauw thema (final override,
   bewust NIET teal/cyaan zoals zwemwaterkwaliteitkaart/grondwaterstandkaart).
   Overschrijft alle eerdere :root-blokken (fork-erfenis), zowel de oude
   --primary/--accent-namen als de latere --zk-*-namen.
   ============================================================ */
:root {
    --primary: #38466b;
    --primary-dark: #232d47;
    --primary-light: #5f6f99;
    --accent: #a95c19;
    --accent-dark: #8a4b08;
    --link: #38466b;

    --zk-navy: #232d47;
    --zk-navy2: #2c3a5c;
    --zk-teal: #38466b;
    --zk-teal-l: #5f6f99;
    --zk-amber: #a95c19;
}
a { color: var(--zk-teal); }
a:hover { color: var(--zk-navy); }

.hero-map { background: linear-gradient(135deg, #1a2138 0%, #232d47 45%, #38466b 100%) !important; }
.site-footer { background: #182238 !important; border-top: 4px solid var(--accent); }
.data-table th { background: var(--zk-navy) !important; }
.btn-accent { background: var(--accent-dark) !important; }
.btn-accent:hover { background: var(--accent) !important; }
.report-cta { border-color: var(--accent) !important; }
.report-cta__badge { background: var(--accent-dark) !important; }
.report-cta .btn-accent { background: var(--accent-dark) !important; }
.report-cta .btn-accent:hover { background: var(--accent) !important; }
.pill.active, .pill:hover { background: var(--zk-navy) !important; border-color: var(--zk-navy) !important; }
.card .card-title { color: var(--zk-navy) !important; }
.card .card-title::after { color: var(--zk-teal-l) !important; }
.stat-card::before { background: linear-gradient(180deg, var(--zk-teal), var(--zk-teal-l)) !important; }
.section h2::after { background: linear-gradient(90deg, var(--zk-teal), var(--zk-teal-l)) !important; }
.breadcrumbs a, .rank-list li::before { color: var(--zk-teal) !important; }
.suggestion:hover, .suggestion:focus { color: var(--zk-navy) !important; }
.lookup-card .lookup-addr { color: var(--zk-navy) !important; }
.lookup-card .near-dist { color: var(--zk-teal) !important; }
.site-footer a { color: #a9b6d6 !important; }
.site-footer a:hover { color: #c6d0e8 !important; }
.stelsel-result { border-left: 4px solid var(--zk-teal); padding: 14px 16px; margin: 10px 0; background: #f4f6fa; border-radius: 6px; }
.stelsel-result--geen { border-left-color: #8a8a8a; }

/* Mobiel dropdown-submenu (Thema's): inline i.p.v. absoluut-zwevend, anders
   overlapt het de rest van de gestapelde mobiele nav en veroorzaakt het
   horizontale overflow. Staat hier laatste in de cascade om de eerdere,
   niet-media-query .main-nav .dropdown-menu { position:absolute } te winnen. */
@media (max-width: 768px) {
    .main-nav .dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border, #e5e7eb);
        border-radius: 0;
        margin-top: 8px;
        padding: 4px 0 4px 16px;
    }
    .main-nav .has-dropdown.open > a { font-weight: 700; }
}
