/* ===== Geluidsoverlastkaart.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: 2fr 1fr 1fr;
    gap: 40px;
    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; }
}

/* =====================================================================
   Geluidsoverlastkaart.nl — water-blauw thema + componenten (override)
   ===================================================================== */
:root {
    --primary: #b3541e;
    --primary-dark: #8f3f12;
    --primary-light: #e08a52;
    --accent: #963018;
    --accent-dark: #6d1a1a;
    --link: #a1490f;
    --bg: #fdf8f3;
    --bg-soft: #f7ece1;
    --border: #e4d4c4;
    --border-light: #efe3d6;
    --border-strong: #c4a98d;
    --shadow: 0 2px 8px rgba(140,70,20,0.08);
    --shadow-lg: 0 6px 24px rgba(140,70,20,0.14);
}
a:hover { color: var(--primary-dark); }

/* ---- Hero + zoek ---- */
.hero-map { background: linear-gradient(135deg, #8f3f12, #b3541e 55%, #b8571f); color: #fff; padding: 36px 0 28px; }
.hero-map__intro h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.hero-sub { color: #ffffff; font-size: 1.1rem; max-width: 720px; }
.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 ===== */
.geluid-map { height: 460px; width: 100%; background: #e8eef2; }
.geluid-map--full { height: 600px; }
.geluid-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 {
    color: var(--text, #222);
    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 */
.geluid-result { max-width: 560px; margin: 14px auto 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-align: left; }
.geluid-result--big { max-width: 100%; }
.geluid-result__loading, .geluid-result__empty { color: var(--text-muted); }
.geluid-result__head { display: flex; align-items: center; gap: 12px; border-left: 5px solid; padding-left: 12px; }
.geluid-result__group { font-size: 1.3rem; font-weight: 700; display: block; }
.geluid-result__addr { color: var(--text-muted); font-size: .9rem; }
.geluid-result__type { margin-top: 10px; }
.geluid-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(--accent-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(--accent-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: #ffffff; }
.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(--accent-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: #ffffff; }

/* 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(--accent-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; }
    .geluid-map { height: 380px; }
}

/* =====================================================================
   Geluid-componenten (dB-tegels, badges, laag-switcher, rankings, CTA)
   ===================================================================== */
.db-badge { display: inline-block; color: #fff; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: 1.05rem; white-space: nowrap; }
.db-badge--sm { font-size: .85rem; padding: 2px 9px; }
.db-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }

.db-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 14px 0; }
.db-tile { background: #fff; border: 1px solid var(--border); border-left: 5px solid var(--primary); border-radius: var(--radius); padding: 10px 14px; box-shadow: var(--shadow); }
.db-tile__label { display: block; color: var(--text-light); font-size: .85rem; }
.db-tile__val { display: block; font-weight: 700; font-size: 1.2rem; }
.db-over { display: block; color: var(--accent-dark); font-size: .78rem; font-weight: 600; }

.geluid-result__head { display: flex; align-items: center; gap: 14px; border-left: 5px solid; padding-left: 12px; margin-bottom: 4px; }
.geluid-result__desc { display: block; color: var(--text-light); font-size: .9rem; }
.geluid-result__links { margin-top: 8px; }
.geluid-result__note { font-size: .85rem; margin-top: 8px; }

/* Kaart: laag-switcher */
.map-layerbox { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 10px 12px; font-size: .85rem; max-width: 190px; line-height: 1.5; }
.map-layerbox__title { display: block; margin-bottom: 4px; font-size: .85rem; }
.map-layerbox__item { display: block; cursor: pointer; }
.map-layerbox__item input { margin-right: 5px; accent-color: var(--primary); }
.map-layerbox__opacity { display: block; margin-top: 8px; color: var(--text-light); }
.map-layerbox__opacity input { width: 100%; accent-color: var(--primary); }
.popup-db { border-collapse: collapse; margin: 6px 0; width: 100%; }
.popup-db td { padding: 1px 4px 1px 0; font-size: .85rem; }
.popup-db__val { text-align: right; font-weight: 600; white-space: nowrap; }

/* Steden-grid (home) */
.steden-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 16px 0; }
.stad-card { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; color: var(--text); box-shadow: var(--shadow); transition: transform .12s ease, box-shadow .12s ease; }
.stad-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); text-decoration: none; color: var(--text); }
.stad-card__name { font-weight: 700; }
.stad-card__prov { color: var(--text-muted); font-size: .82rem; }

/* Rankings (/onderzoek, provincie) */
.rank-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin: 12px 0 20px; }
.rank-list { list-style-position: inside; padding: 0; margin: 8px 0; }
.rank-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--border-light); }
.rank-list li a { font-weight: 600; }
.rank-list li .db-badge { margin-left: auto; }
.rank-list--big li { padding: 8px 0; }
@media (max-width: 700px) { .rank-cols { grid-template-columns: 1fr; } }

/* CTA-band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, #8f3f12, #b3541e); color: #fff; border-radius: var(--radius-lg); padding: 20px 24px; margin: 8px 0 26px; }
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.25rem; }
.cta-band p { margin: 0; color: rgba(255,255,255,.92); }
.cta-band .btn { background: #fff; color: var(--primary-dark); font-weight: 700; white-space: nowrap; }
.cta-band .btn:hover { background: var(--bg-soft); text-decoration: none; }

/* FAQ (accordeon) */
.faq-list details, .faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; margin: 8px 0; }
.faq-list summary, .faq summary { cursor: pointer; font-weight: 600; }
.faq-list details p, .faq details div { margin-top: 8px; color: var(--text-light); }

/* Brede prose voor money-pages */
.prose--wide { max-width: 820px; margin: 0 auto; }
.prose--wide h2 { margin-top: 26px; }
.prose--wide ul { margin: 10px 0 10px 22px; }
.prose--wide li { margin: 5px 0; }
/* ===== 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 (blauw+underline op knop) */
.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}

/* Rapport-CTA (betaald geluidsrapport) */
.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);
}

/* Compacte teaser-variant, direct bij het AJAX-resultaat (boven de kaart) */
.report-cta--mini {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 16px 0 20px 0;
    padding: 14px 18px;
    background: var(--bg-white);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius);
    box-shadow: none;
}
.report-cta--mini .report-cta__badge {
    position: static;
    box-shadow: none;
    flex-shrink: 0;
}
.report-cta--mini .report-cta__mini-text {
    flex: 1 1 220px;
    font-size: 0.92rem;
    color: var(--text-light);
}
.report-cta--mini .btn-accent {
    flex-shrink: 0;
    padding: 8px 16px;
    font-size: 0.9rem;
    background: var(--accent-dark);
    box-shadow: none;
}
.report-cta--mini .btn-accent:hover { background: var(--accent); }
@media (max-width: 480px) {
    .report-cta--mini { padding: 12px 14px; }
    .report-cta--mini .report-cta__mini-text { font-size: 0.86rem; }
}

/* Mobiel-fix: badge + tekst in .geluid-result__head knelden samen op smalle schermen
   (zelfde bug als op overstromingsrisicokaartnederland.nl) — stapel op mobiel. */
@media (max-width: 560px) {
    .geluid-result__head {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Inline bestelformulier-variant (2026-08-25). */
.report-cta--jump { padding: 18px 24px; text-align: center; }
.report-cta--jump .btn { width: 100%; }
.report-cta--inline .report-cta__form { margin-top: 18px; }
.report-cta--inline .form-group input[type="text"],
.report-cta--inline .form-group input[type="email"] { max-width: 100%; }
.adsense-auto-ads-ignore { google-auto-ads: ignore; }
.report-cta.adsense-auto-ads-ignore .adsbygoogle,
.report-cta.adsense-auto-ads-ignore .google-auto-placed,
.report-cta.adsense-auto-ads-ignore ins[id^="aswift"] { display: none !important; }

/* Voorbeeldrapport-link en teller in de CTA (05-09-2026) */
.report-cta__bewijs { margin: 0 0 16px 0; padding: 10px 14px; background: #E8F5E9; border-radius: 6px; font-size: 0.9rem; color: #1B5E20; }
.report-cta__bewijs a { color: #1B5E20; font-weight: 600; }

/* F-18 tabellen in artikelen en gidsen (11-09-2026): de content komt uit de databank zonder opmaak */
.blog-content table, .prose table { width: 100%; border-collapse: collapse; margin: 22px 0; background: #fff; border: 1px solid var(--border-light, var(--border, #e3e3e3)); border-radius: 8px; box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.06)); font-size: 0.95rem; line-height: 1.45; }
.blog-content th,  .blog-content td, .prose th,  .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border-light, var(--border, #e3e3e3)); }
.blog-content th, .prose th { background: var(--bg-soft, var(--bg-light, #f4f4f4)); color: var(--primary-dark, inherit); font-weight: 700; }
.blog-content tbody tr:nth-child(even) td, .prose tbody tr:nth-child(even) td { background: rgba(0,0,0,0.02); }
.blog-content tbody tr:last-child td, .prose tbody tr:last-child td { border-bottom: 0; }
.blog-content td:first-child, .prose td:first-child { font-weight: 600; }
@media (max-width: 640px) {
    .blog-content table, .prose table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; font-size: 0.9rem; }
    .blog-content th,  .blog-content td, .prose th,  .prose td { padding: 8px 10px; }
}

/* Homepage (11-09-2026): mini-CTA in de hero, uitgelijnd op het resultaatvak */
.hero-map #report-cta-mini-slot .report-cta--mini { max-width: 560px; margin: 12px auto 0; text-align: left; }

/* V-23 (19-09-2026): geldanker in het bestelblok */
.report-cta__anker { margin: 0 0 14px 0; padding: 10px 14px; background: #FFF8E1; border-left: 3px solid #F9A825; border-radius: 6px; font-size: 0.92rem; line-height: 1.5; }

/* V-23 (19-09-2026): kop op smalle schermen niet naast de badge persen (badge staat boven het blok) */
@media (max-width: 600px) { .report-cta h2 { padding-right: 0; } }
