/* ===== Energielabelkaart.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.7fr 1fr 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; }
}

/* =====================================================================
   Energielabelkaart.nl — energie-groen thema + componenten (override)
   ===================================================================== */
:root {
    --primary: #1f9d55;
    --primary-dark: #156b3a;
    --primary-light: #57c187;
    --accent: #156b3a;
    --link: #167045;
    --bg: #f5fbf7;
    --bg-soft: #e6f5ec;
    --border: #cce7d6;
    --border-light: #ddf0e4;
    --border-strong: #a3d3b6;
    --shadow: 0 2px 8px rgba(31,157,85,0.08);
    --shadow-lg: 0 6px 24px rgba(31,157,85,0.14);
}
a:hover { color: var(--primary-dark); }

/* ---- Hero + zoek ---- */
.hero-map { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding: 36px 0 28px; }
.hero-map__intro h1 { color: #fff; font-size: 2rem; margin-bottom: 8px; }
.hero-sub { color: rgba(255,255,255,0.92); 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 ===== */
.kad-map { height: 460px; width: 100%; background: #e8eef2; }
.kad-map--full { height: 600px; }
.kad-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); color: var(--text); font-weight: 500; }
.address-search__results li:last-child { border-bottom: 0; }
.address-search__results li:hover { background: var(--bg-soft); color: var(--primary-dark); }

/* 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; padding-bottom: 48px; }
.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; }
    .kad-map { height: 380px; }
}

/* ===================================================================
   PREMIUM POLISH (2026-06-22) — luxere typografie, hero, feature-cards,
   ruimere secties. Laatste blok = wint in de cascade.
   =================================================================== */
:root{
    --gold:#b5894e; --gold-dark:#916b39;
    --ink:#15241b;
    --radius:10px; --radius-lg:16px;
    --shadow:0 2px 12px rgba(31,93,51,.07);
    --shadow-lg:0 16px 44px -14px rgba(31,93,51,.26);
}
body{font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:var(--ink);}
h1,h2,h3,h4,.logo-text{font-family:'Fraunces','Source Serif 4',Georgia,serif;letter-spacing:-.015em;}
h1{font-weight:600;} h2{font-weight:600;}

/* ---- Hero ---- */
.hero-map{
    background:radial-gradient(130% 150% at 12% -10%, #3d935b 0%, var(--primary) 42%, var(--primary-dark) 100%);
    position:relative; padding:58px 0 48px; overflow:hidden;
}
.hero-map::after{
    content:'';position:absolute;inset:0;pointer-events:none;opacity:.45;
    background-image:linear-gradient(transparent 96%,rgba(255,255,255,.07) 96%),linear-gradient(90deg,transparent 96%,rgba(255,255,255,.07) 96%);
    background-size:36px 36px;
}
.hero-map__intro{position:relative;z-index:1;}
.hero-map__intro h1{font-size:2.7rem;line-height:1.08;margin-bottom:14px;}
.hero-sub{font-size:1.1rem;max-width:640px;color:rgba(255,255,255,.93);}
.address-search{max-width:600px;}
.address-search input{height:60px;border-radius:32px;border:0;box-shadow:0 14px 34px -10px rgba(0,0,0,.34);padding:0 28px;font-size:1.05rem;}
.address-search input:focus{box-shadow:0 0 0 4px rgba(255,255,255,.35),0 14px 34px -10px rgba(0,0,0,.34);}

/* ---- Ruimere secties ---- */
.section{padding:40px 0;}
.section--split{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start;}
.section p{max-width:65ch;}
.section h2,.section--split h2{position:relative;padding-bottom:12px;margin-bottom:18px;font-size:1.55rem;}
.section h2::after,.section--split h2::after{content:'';position:absolute;left:0;bottom:0;width:48px;height:3px;border-radius:2px;background:var(--gold);}

/* ---- Feature-lijst "Hoe werkt de kadastrale kaart" als kaart ---- */
.status-explainer{list-style:none;margin:20px 0 0;padding:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow);overflow:hidden;}
.status-explainer li{display:block;padding:16px 22px 16px 54px;border-bottom:1px solid var(--border-light);position:relative;}
.status-explainer li:last-child{border-bottom:0;}
.status-explainer li::before{content:'';position:absolute;left:22px;top:20px;width:14px;height:14px;border-radius:50%;background:var(--primary);box-shadow:0 0 0 4px rgba(46,125,70,.15);}
.status-explainer li strong{display:block;font-family:'Fraunces',serif;color:var(--primary-dark);font-size:1rem;margin-bottom:2px;}
.status-explainer li span{color:var(--text-light);font-size:.95rem;}

/* ---- Quick-links als kaarten + meer lucht ---- */
.quick-links{display:grid;gap:14px;margin-top:26px;}
.quick-link{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 22px;background:#fff;border:1px solid var(--border);border-left:4px solid var(--primary);border-radius:var(--radius);box-shadow:var(--shadow);font-weight:600;color:var(--ink);transition:transform .18s,box-shadow .18s,border-color .18s;}
.quick-link::after{content:'\2192';color:var(--primary);font-weight:700;transition:transform .18s;}
.quick-link:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-left-color:var(--gold);color:var(--primary-dark);text-decoration:none;}
.quick-link:hover::after{transform:translateX(5px);}

/* ---- Kaarten hover-lift ---- */
.gemeente-chip,.prov-card,.blog-card{transition:transform .18s,box-shadow .18s,border-color .18s;}
.gemeente-chip:hover,.prov-card:hover,.blog-card:hover{transform:translateY(-2px);box-shadow:var(--shadow-lg);border-color:var(--primary-light);}
.prov-card{border-radius:var(--radius-lg);}

/* ---- Knoppen ronder ---- */
.btn{border-radius:28px;}

/* ---- Laatste artikelen ruimer ---- */
.recent-blog{list-style:none;padding:0;display:grid;gap:10px;margin-top:14px;}
.recent-blog li a{display:block;padding:12px 16px;background:#fff;border:1px solid var(--border-light);border-radius:var(--radius);box-shadow:var(--shadow);font-weight:500;}
.recent-blog li a:hover{border-color:var(--primary-light);text-decoration:none;}

/* ---- Map-legenda subtiel ---- */
.map-legend{display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between;padding:14px 18px;background:#fff;border:1px solid var(--border-light);border-radius:var(--radius);box-shadow:var(--shadow);margin:18px 0;}

@media (max-width:760px){
    .section--split{grid-template-columns:1fr;gap:32px;}
    .hero-map__intro h1{font-size:2.1rem;}
}

/* ===== Energielabel-specifieke componenten ===== */

/* Data-tabel (label-detail) */
.data-table { width:100%; border-collapse:collapse; margin:18px 0; background:#fff; box-shadow:var(--shadow); border-radius:var(--radius); overflow:hidden; }
.data-table th, .data-table td { padding:11px 14px; text-align:left; border-bottom:1px solid var(--border-light); vertical-align:top; }
.data-table th { background:var(--bg-soft); font-weight:600; width:42%; color:var(--text); }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom:0; }

/* Energielabel-badge (gekleurd vlak, donkere tekst voor contrast) */
.label-badge { display:inline-flex; align-items:center; justify-content:center; min-width:30px; padding:3px 10px; border-radius:6px; font-weight:800; color:#10271a; font-family:'Inter',sans-serif; letter-spacing:.02em; text-shadow:0 1px 0 rgba(255,255,255,.35); }
.label-badge--lg { font-size:1.6rem; min-width:54px; padding:8px 16px; border-radius:9px; }
.label-badge--xl { font-size:3rem; min-width:96px; padding:16px 24px; border-radius:14px; box-shadow:var(--shadow-lg); }

/* Label-schaal A..G onder de zoekbalk (hero) */
.label-scale { display:flex; gap:5px; margin-top:18px; flex-wrap:wrap; }
.label-scale__item { display:inline-flex; align-items:center; justify-content:center; width:34px; height:30px; border-radius:5px; font-weight:800; color:#10271a; font-size:.9rem; box-shadow:0 2px 6px rgba(0,0,0,.18); }

/* Inline label-resultaat (onder de zoekbalk) */
.label-result { max-width:600px; margin:16px auto 0; text-align:left; }
.hero-map .label-result, .hero-map__intro .label-result { margin-left:0; }
.label-result__loading, .label-result__empty { background:#fff; border-radius:var(--radius); box-shadow:var(--shadow); padding:14px 18px; color:var(--text-muted); }
.label-result__card { display:flex; gap:16px; align-items:center; background:#fff; border-radius:var(--radius-lg); box-shadow:var(--shadow-lg); padding:18px 20px; }
.label-result__badge { flex:none; }
.label-result__body { display:flex; flex-direction:column; gap:4px; }
.label-result__addr { font-weight:700; color:var(--text); font-size:1.05rem; }
.label-result__meta { color:var(--text-muted); font-size:.9rem; }
.label-result__body .btn { margin-top:8px; align-self:flex-start; }
.label-result__none { display:flex; flex-direction:column; gap:8px; align-items:flex-start; background:#fff; border:1px solid var(--border); border-left:4px solid var(--gold); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:18px 20px; }
.label-result__none strong { font-size:1.1rem; color:var(--primary-dark); }
.label-result__none .btn { margin-top:4px; }

/* Label-hero op de detailpagina */
.label-hero { display:flex; gap:22px; align-items:center; flex-wrap:wrap; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:22px 24px; margin:4px 0 22px; }
.label-hero__addr { font-size:1.15rem; margin-bottom:2px; }

/* CTA-box (geen label / aanvraag) */
.cta-box { background:linear-gradient(135deg, var(--bg-soft), #fff); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:24px 26px; margin:4px 0 22px; }
.cta-box h2 { margin-top:0; }

/* Map-popup label-badge inline */
.map-popup .label-badge { font-size:.95rem; }

@media (max-width:760px){
    .label-badge--xl { font-size:2.2rem; min-width:72px; padding:12px 18px; }
    .label-hero { gap:14px; padding:18px; }
}

/* ===== Homepage pro-slag ===== */
.hero-trust { margin-top:14px; color:rgba(255,255,255,.9); font-size:.92rem; font-weight:500; }

/* Stat-strip (trust) */
.stat-strip { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin:26px 0 8px; }
.stat-tile { background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:18px 16px; text-align:center; }
.stat-tile__icon { font-size:1.7rem; display:block; margin-bottom:6px; }
.stat-tile strong { display:block; font-family:'Fraunces',serif; color:var(--primary-dark); font-size:1.05rem; }
.stat-tile span:not(.stat-tile__icon) { display:block; color:var(--text-muted); font-size:.85rem; margin-top:2px; }

/* Stappen */
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px; }
.step { display:flex; gap:14px; align-items:flex-start; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow); padding:20px; }
.step__num { flex:none; width:38px; height:38px; border-radius:50%; background:var(--primary); color:#fff; font-weight:700; font-size:1.15rem; display:flex; align-items:center; justify-content:center; }
.step strong { display:block; color:var(--primary-dark); font-family:'Fraunces',serif; margin-bottom:4px; }
.step p { color:var(--text-light); font-size:.93rem; margin:0; }

/* Quick-links als 2/3-koloms grid */
.quick-links--grid { grid-template-columns:repeat(3,1fr); }

/* Stedengrid */
.city-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:12px; margin-top:8px; }
.city-card { display:flex; flex-direction:column; align-items:center; gap:6px; background:#fff; border:1px solid var(--border); border-radius:var(--radius); box-shadow:var(--shadow); padding:16px 10px; text-decoration:none; color:var(--text); transition:transform .15s,box-shadow .15s,border-color .15s; }
.city-card:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); border-color:var(--primary-light); text-decoration:none; color:var(--primary-dark); }
.city-card__icon { font-size:1.4rem; }
.city-card__name { font-weight:600; font-size:.95rem; }

/* Blog-cards op de homepage (met hero) */
.blog-cards-home { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-top:8px; }
.bch-card { display:flex; flex-direction:column; background:#fff; border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:var(--shadow); overflow:hidden; text-decoration:none; color:var(--text); transition:transform .15s,box-shadow .15s; }
.bch-card:hover { transform:translateY(-3px); box-shadow:var(--shadow-lg); text-decoration:none; }
.bch-card__img { display:block; height:160px; background-size:cover; background-position:center; background-color:var(--bg-soft); }
.bch-card__body { padding:16px 18px; display:flex; flex-direction:column; gap:6px; }
.bch-card__title { font-family:'Fraunces',serif; font-weight:600; color:var(--primary-dark); font-size:1.05rem; line-height:1.25; }
.bch-card__excerpt { color:var(--text-light); font-size:.9rem; }
.bch-card__meta { color:var(--text-muted); font-size:.8rem; margin-top:2px; }

@media (max-width:860px){
    .stat-strip { grid-template-columns:repeat(2,1fr); }
    .steps { grid-template-columns:1fr; }
    .quick-links--grid { grid-template-columns:1fr; }
    .city-grid { grid-template-columns:repeat(3,1fr); }
    .blog-cards-home { grid-template-columns:1fr; }
}
@media (max-width:480px){
    .city-grid { grid-template-columns:repeat(2,1fr); }
}

/* ===== Label-legenda op de kaartpagina ===== */
.label-legend { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; background:#fff; border:1px solid var(--border-light); border-radius:var(--radius); box-shadow:var(--shadow); padding:14px 18px; margin:18px 0 0; }
.label-legend__title { font-weight:700; color:var(--primary-dark); font-family:'Fraunces',serif; }
.label-legend__scale { display:flex; gap:4px; flex-wrap:wrap; }
.label-legend__chip { display:inline-flex; align-items:center; justify-content:center; min-width:30px; height:26px; padding:0 6px; border-radius:5px; font-weight:800; font-size:.8rem; color:#10271a; }
.label-legend__ends { color:var(--text-muted); font-size:.88rem; }
@media (max-width:600px){ .label-legend__ends { width:100%; } }

/* Betaald energielabel-rapport CTA */
.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,
.report-cta-submit.btn-accent {
    background: var(--accent-dark);
    box-shadow: var(--shadow);
}
.report-cta .btn-accent:hover,
.report-cta-submit.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; }
}

/* Compacte teaser-variant, direct bij het resultaat (boven de kaart) */
.report-cta--mini {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 16px 0 24px 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; }
}

/* Inline bestelformulier-variant (2026-08-25, zelfde patroon als funderingskaartnederland.nl). */
.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%; }
.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; }
.adsense-auto-ads-ignore { google-auto-ads: ignore; }
