/* ===== FunderingskaartNederland.nl — Stylesheet ===== */

:root {
    --primary: #795548;
    --primary-dark: #4E342E;
    --primary-light: #A1887F;
    --accent: #1E88E5;
    --accent-dark: #1565C0;
    --danger: #C62828;
    --warn: #F57C00;
    --success: #43A047;
    --bg: #F5F7FA;
    --bg-white: #ffffff;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --border: #ddd;
    --border-light: #eee;
    --radius: 8px;
    --radius-lg: 12px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 4px 20px rgba(0,0,0,0.12);
}

* { 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(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

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(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.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);
    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: 24px; flex-wrap: wrap; row-gap: 8px; justify-content: flex-end; }
.main-nav a { color: var(--text-light); font-weight: 500; font-size: 0.95rem; }
.main-nav a:hover { color: var(--primary); }
/* keep button-styled nav links legible (override the grey nav-link colour) */
.main-nav a.btn-accent, .main-nav a.btn-accent:hover { color: #fff; }
.main-nav a.btn-primary, .main-nav a.btn-primary:hover { color: #fff; }

.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 ===== */
body.map-page {
    /* page scrolls so header, SEO content + footer below the map are reachable */
}
.main-map {
    display: block;
    width: 100%;
}
.map-flex {
    display: flex;
    height: calc(100vh - 64px);
    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 */
.funderingsrisico-popup { min-width: 220px; }
.funderingsrisico-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;
}
.funderingsrisico-popup .popup-location {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 2px;
}
.funderingsrisico-popup .popup-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}
.funderingsrisico-popup .popup-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.4;
}
.funderingsrisico-popup .popup-thumb {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 8px;
}
.funderingsrisico-popup .popup-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

/* 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);
}
.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(21,101,192,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 h3 { font-size: 1.15rem; margin: 24px 0 10px; color: var(--primary-dark); }
.page-content p { margin-bottom: 16px; line-height: 1.8; color: var(--text-light); }
.page-content ul, .page-content ol { margin: 0 0 16px 24px; line-height: 1.8; color: var(--text-light); }
.page-content ol { list-style: decimal; }
.page-content li { margin-bottom: 4px; }

/* FAQ (dl/dt/dd) binnen page-content */
.page-content dl { margin: 0 0 16px; }
.page-content dt {
    font-weight: 600;
    color: var(--text);
    background: var(--bg);
    padding: 12px 16px;
    border-radius: var(--radius) var(--radius) 0 0;
    border: 1px solid var(--border);
    border-bottom: none;
    margin-top: 12px;
}
.page-content dt:first-child { margin-top: 0; }
.page-content dd {
    margin: 0;
    padding: 14px 16px;
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-top: none;
    border-left: 3px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
    color: var(--text-light);
    line-height: 1.7;
}

/* Tabellen binnen page-content */
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.page-content th,
.page-content td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.page-content th {
    background: var(--bg);
    color: var(--primary-dark);
    font-weight: 600;
}
.page-content tr:last-child td { border-bottom: none; }
.page-content tr:hover td { background: var(--bg); }
@media (max-width: 600px) {
    .page-content table { display: block; overflow-x: auto; }
}

.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 h1 { color: #fff; font-size: 2.2rem; }
.hero-banner p { color: rgba(255,255,255,0.85); 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: var(--primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 40px 0 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 32px;
    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.7);
    font-size: 0.9rem;
    padding: 3px 0;
}
.footer-links a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.footer-bottom a:hover { color: #fff; }
.footer-legal { margin-top: 6px; font-size: 0.8rem; color: rgba(255,255,255,0.65); }

/* ===== 404 ===== */
.not-found {
    text-align: center;
    padding: 80px 20px;
}
.not-found h1 { font-size: 5rem; color: var(--primary-light); }
.not-found p { font-size: 1.2rem; color: var(--text-muted); 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; }

    .map-flex { flex-direction: column; height: calc(100vh - 64px); }
    .map-sidebar {
        width: 100%;
        min-width: 100%;
        max-height: 45%;
        order: 2;
        border-right: none;
        border-top: 1px solid var(--border);
    }
    .map-container { order: 1; min-height: 55%; flex: 1; }
    .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; }
}

/* ===== Map page intro (SEO content below map) ===== */
.map-page-intro {
    padding: 60px 0 70px;
    background: var(--bg-light, #f7f9fc);
    border-top: 1px solid var(--border);
}
.map-page-intro .container {
    max-width: 1100px;
}
.map-page-intro h2 {
    font-size: 1.9rem;
    margin-bottom: 16px;
    color: var(--text);
}
.map-page-intro h2:not(:first-child) {
    margin-top: 40px;
}
.map-page-intro p,
.map-page-intro ul,
.map-page-intro ol {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-light);
    max-width: 850px;
    margin-bottom: 16px;
}
.map-page-intro ul,
.map-page-intro ol {
    padding-left: 22px;
}
.map-page-intro li { margin-bottom: 8px; }
.map-page-intro .lead {
    font-size: 1.1rem;
    margin-bottom: 36px;
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}
.intro-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    padding: 22px 22px 24px;
    box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.04));
}
.intro-card h3 {
    font-size: 1.1rem;
    margin: 0 0 10px;
    color: var(--primary, #795548);
}
.intro-card p {
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0 0 16px;
}
.intro-card .btn { margin-top: 4px; }
.intro-sources {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius, 8px);
    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.6;
    margin: 0;
}

@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; }
}

/* ===== Affiliate advice box (Bol.com) ===== */
.aff-box {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    margin: 28px 0;
    box-shadow: var(--shadow);
}
.aff-box__head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.aff-box__tag {
    font-size: 0.66rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
    color: var(--text-muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 6px;
}
.aff-box__title { font-size: 1.05rem; color: var(--text); line-height: 1.3; }
.aff-box__intro { font-size: 0.9rem; color: var(--text-light); 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: var(--bg); border-radius: var(--radius); padding: 10px 12px;
}
.aff-item__icon { font-size: 1.5rem; flex-shrink: 0; }
.aff-item__body { flex: 1; min-width: 0; }
.aff-item__name { font-weight: 600; color: var(--text); font-size: 0.92rem; text-decoration: none; display: block; }
.aff-item__name:hover { color: var(--primary); text-decoration: underline; }
.aff-item__meta { display: flex; align-items: center; gap: 8px; margin-top: 3px; flex-wrap: wrap; }
.aff-item__badge { font-size: 0.72rem; color: var(--success); font-weight: 600; }
.aff-item__price { font-size: 0.85rem; font-weight: 700; color: var(--text); }
.aff-item__btn {
    flex-shrink: 0; background: var(--accent-dark); color: #fff; text-decoration: none;
    font-size: 0.85rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius);
    white-space: nowrap;
}
.aff-item__btn:hover { background: var(--primary-dark); color: #fff; }
.aff-box__disclosure { font-size: 0.7rem; color: var(--text-muted); margin: 12px 0 0; }

/* Compact variant for the homepage sidebar */
.aff-box--compact { margin: 0; padding: 12px 14px; box-shadow: none; }
.aff-box--compact .aff-box__title { font-size: 0.95rem; }
.aff-box--compact .aff-box__intro { font-size: 0.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: 0.85rem; }
.aff-box--compact .aff-item__btn { padding: 6px 9px; font-size: 0.78rem; }

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

/* ===== Affiliate slide-in toast ===== */
.aff-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1200;
    width: 340px;
    max-width: calc(100vw - 24px);
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    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: var(--text-muted);
}
.aff-toast__close:hover { color: var(--text); }
.aff-toast__head { display: flex; align-items: center; gap: 8px; margin: 0 18px 6px 0; }
.aff-toast__title { font-size: 1rem; color: var(--text); line-height: 1.3; }
.aff-toast__intro { font-size: 0.82rem; color: var(--text-light); margin: 0 0 10px; }

@media (max-width: 560px) {
    .aff-toast { right: 8px; left: 8px; bottom: 8px; width: auto; }
    /* Keep the toast short on mobile: one clear impulse product (the affordable hero) */
    .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; }
}
/* ===== /Affiliate ===== */
/* ===== 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}}

/* Google Auto ads: sluit de kaart-layout uit van in-page ad-invoeging (zelfde risico als pfaskaartnederland.nl) */
.adsense-auto-ads-ignore {
    google-auto-ads: ignore;
}

/* ===== Persoonlijke funderingscheck CTA (betaalde-test) ===== */
.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);
    /* Geen overflow:hidden hier (meer) -- dat knipte de €19,95-badge af, die
       met opzet half boven de bovenrand van de box uitsteekt (top:-14px), en
       zelfs "overflow-x: hidden" alleen forceert browsers om overflow-y naar
       "auto" te zetten (CSS Overflow-spec: 1 as hidden + 1 as visible ->
       de visible-as wordt auto), wat dezelfde clipping alsnog veroorzaakte.
       Niet meer nodig: de eigenlijke oorzaak (een Auto Ads-advertentie die
       breder is dan de box) wordt al hieronder met display:none geneutraliseerd,
       dus er is niets meer om tegen te beschermen. */
}
.report-cta__badge {
    position: absolute;
    top: -14px;
    right: 24px;
    /* accent-dark i.p.v. accent: op deze tekstgrootte geeft --accent maar ~3,7:1
       contrast met wit (onder AA 4,5:1) */
    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: "✓";
    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; }
}
/* De "google-auto-ads: ignore"-declaratie hierboven (adsense-auto-ads-ignore)
   bleek in de praktijk niet betrouwbaar -- Google's Auto Ads plaatste alsnog
   een advertentie-iframe midden in deze box (live gemeld, mobiel), die
   bovendien breder is dan de box en zo de hele kaart liet overlopen buiten
   de rand. In plaats van te blijven vertrouwen op Google's ongedocumenteerde
   plaatsingsgedrag: elke advertentie die hier toch belandt hard verbergen. */
.report-cta .adsbygoogle,
.report-cta .google-auto-placed,
.report-cta ins[id^="aswift"],
.verkoopkern .adsbygoogle,
.verkoopkern .google-auto-placed,
.verkoopkern 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; }

/* Experiment (2026-08-22): inline bestelformulier-variant. De "jump"-versie
   is de 2e keer dat report-cta.php op dezelfde pagina wordt geladen -- daar
   staat geen 2e volledig formulier, alleen een korte link naar het eerste. */
.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%;
}

/* V-18 (14-09-2026): vraag-kop, bewijs, geldanker, adresveld eerst; e-mail/vinkje/knop
   klappen open bij het typen; korte springblokken met tekst; sticky balk op mobiel. */
.report-cta__anker {
    margin: 0 0 16px 0;
    padding: 10px 14px;
    border-left: 4px solid var(--accent-dark);
    background: #FFF8E1;
    font-size: 0.92rem;
    line-height: 1.5;
}
.report-cta--inline .report-cta__form { margin-top: 12px; }
.report-cta__rest { margin-top: 0; }
.report-cta__rest.is-dicht { display: none; }
.report-cta__listkop {
    margin: 18px 0 8px 0;
    font-weight: 700;
    font-size: 0.95rem;
}
.report-cta--inline .report-cta__list { margin-bottom: 12px; font-size: 0.93rem; }
.report-cta--inline .report-cta__bewijs { margin: 0 0 10px 0; }
.report-cta--jump { text-align: left; }
.report-cta__jumptekst { margin: 0 0 12px 0; font-size: 0.95rem; line-height: 1.5; }
.report-cta--jump .btn { font-size: 1rem; padding-left: 16px; padding-right: 16px; }
.report-sticky {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 900;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)) 12px;
    background: rgba(255,255,255,0.97);
    border-top: 1px solid var(--border, #e3e3e3);
    box-shadow: 0 -4px 14px rgba(0,0,0,0.10);
}
.report-sticky a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-decoration: none;
    color: var(--text, #222);
    font-size: 0.9rem;
}
.report-sticky__knop {
    flex: 0 0 auto;
    background: var(--accent-dark);
    color: #fff;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 6px;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .report-sticky:not([hidden]) { display: block; }
}

/* 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; }
}

/* NHG-nieuwsblok (27-10-2026): toetskader funderingsrisico per 1 januari 2027 */
.nieuws-blok {
    background: #FFF8F2;
    border: 1px solid #E8D5C8;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 20px 0;
}
.nieuws-blok p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.55; }
.nieuws-blok p:last-child { margin-bottom: 0; }
.nieuws-blok .nieuws-blok__kop {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 1.02rem;
    margin-bottom: 6px;
}
.nieuws-blok .nieuws-blok__bron { font-size: 0.88rem; color: var(--text-light); }
.nieuws-blok--compact { margin: 12px 14px; padding: 10px 12px; }
.nieuws-blok--compact p { font-size: 0.85rem; line-height: 1.45; }
.nieuws-blok--compact .nieuws-blok__kop { font-size: 0.9rem; margin-bottom: 4px; }
.map-page-intro .nieuws-blok { margin-top: 0; }
