/* Base styles - Mobile first */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #1a5f7a;
    --primary-dark: #0d3d4d;
    --accent: #ff6b35;
    --warning: #ffc107;
    --bg: #f5f5f5;
    --text: #333;
    --text-light: #666;
    --white: #fff;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
}

html {
    font-size: 18px; /* Groter voor leesbaarheid */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: var(--primary);
    color: var(--white);
    padding: 1rem;
    text-align: center;
}

header h1 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

header .subtitle {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Navigation */
.main-nav {
    display: flex;
    background: var(--primary-dark);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-btn {
    flex: 1;
    min-width: max-content;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--white);
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
}

.nav-btn:hover,
.nav-btn.active {
    background: var(--accent);
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Important for flex children to shrink */
}

.section {
    display: none;
    flex: 1;
    min-height: 0;
}

.section.active {
    display: flex;
    flex-direction: column;
}

/* Info and Documenten sections should be block display for scrolling */
#info.active,
#documenten.active {
    display: block;
}

/* Viewer Section */
#viewer.active {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.viewer-controls {
    padding: 0.75rem;
    background: var(--white);
    box-shadow: var(--shadow);
}

.address-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.address-search label {
    width: 100%;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.address-search input {
    flex: 1;
    min-width: 120px;
    padding: 0.6rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.address-search input:focus {
    border-color: var(--primary);
    outline: none;
}

#search-btn {
    padding: 0.6rem 1.2rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
}

#search-btn:hover {
    background: var(--primary-dark);
}

/* Map */
#map-container {
    flex: 1;
    min-height: 300px;
    position: relative;
}

#map {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e0e0e0;
}

/* Map Loading Spinner */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.map-loading.hidden {
    display: none;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e0e0e0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.map-loading p {
    margin: 0;
    color: var(--text);
    font-size: 0.9rem;
}

/* Map Error */
.map-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 1000;
    background: rgba(255,255,255,0.95);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent);
}

.map-error p {
    margin: 0 0 1rem 0;
    color: var(--text);
}

.map-error button {
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.map-error button:hover {
    background: var(--primary-dark);
}

/* Layer Panel */
.layer-panel {
    background: var(--white);
    padding: 1rem;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.1);
}

.layer-panel h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--primary);
}

.layer-group {
    margin-bottom: 1rem;
}

.layer-group h4 {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.layer-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0;
    cursor: pointer;
}

.layer-toggle input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.layer-toggle span {
    font-size: 0.95rem;
}

/* Legend under layer toggles */
.legend {
    display: none;
    list-style: none;
    margin: 0 0 0.5rem 1.75rem;
    padding: 0.25rem 0;
    font-size: 0.8rem;
    color: var(--text-light);
    border-left: 2px solid #eee;
    padding-left: 0.5rem;
}

.legend.visible {
    display: block;
}

.legend li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0;
}

.legend-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 2px;
    flex-shrink: 0;
}

/* Opbreekwerk icons */
.legend-icon.kolk-verwijderen {
    position: relative;
    background: linear-gradient(90deg, #339af0 50%, transparent 50%);
    border: 1px solid #1864ab;
    border-radius: 50%;
}

.legend-icon.kolk-verwijderen::before {
    content: 'K';
    position: absolute;
    top: -6px;
    right: -4px;
    font-size: 8px;
    font-weight: bold;
    color: #1864ab;
}

.legend-icon.kolk-verwijderen::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 50%;
    width: 1px;
    height: calc(100% - 2px);
    background: #1864ab;
}

.legend-icon.opbreken-klinkers {
    background: repeating-linear-gradient(
        45deg,
        #868e96,
        #868e96 2px,
        #dee2e6 2px,
        #dee2e6 4px
    );
    border: 1px solid #495057;
}

.legend-icon.inrit-bestaand {
    background: #adb5bd;
    border: 1px solid #495057;
}

/* Verharding icons */
.legend-icon.klinkers-bruinrood {
    background: #8b4513;
    border: 1px solid #5c2d0e;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
}

.legend-icon.klinkers-rood {
    background: #c92a2a;
    border: 1px solid #862020;
}

.legend-icon.klinkers-bruin {
    background: #a0522d;
    border: 1px solid #6b3a1f;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 3px,
        rgba(0,0,0,0.15) 3px,
        rgba(0,0,0,0.15) 4px
    );
}

.legend-icon.klinkers-bruin-kort {
    background: #a0522d;
    border: 1px solid #6b3a1f;
    width: 12px;
    background-image: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.15) 2px,
        rgba(0,0,0,0.15) 3px
    );
}

.legend-icon.noppentegels {
    position: relative;
    background: #a0522d;
    border: 1px solid #6b3a1f;
}

.legend-icon.noppentegels::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #868e96;
}

.legend-icon.noppentegels::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 2px;
    background: #868e96;
}

.legend-icon.leiboom {
    background: #90ee90;
    border: 1px solid #2f9e44;
    border-radius: 0;
    width: 20px;
    height: 4px;
    margin: 6px 0;
}

.legend-icon.sierplantsoen {
    background: #8fbc8f;
    border: 1px solid #2f9e44;
    border-radius: 3px;
}

.legend-icon.trottoirband {
    position: relative;
    width: 20px;
    height: 6px;
    background: transparent;
    border-top: 2px solid #74c0fc;
    border-bottom: 2px solid #74c0fc;
    border-left: none;
    border-right: none;
    margin: 5px 0;
}

.legend-icon.grasbetonblokken {
    background: repeating-linear-gradient(
        0deg,
        #adb5bd,
        #adb5bd 3px,
        #51cf66 3px,
        #51cf66 5px
    );
    border: 1px solid #495057;
}

/* Bodemonderzoek legenda icons */
/* Boorpunt 0-4m: vierkant met zwarte omtrek, witte vulling, zwart gevulde cirkel */
.legend-icon.boorpunt-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    border-radius: 0;
    position: relative;
}

.legend-icon.boorpunt-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: black;
    border-radius: 50%;
}

/* Boorpunt 0-1,5m: vierkant met zwarte omtrek, witte vulling, witte cirkel met zwarte omtrek */
.legend-icon.boorpunt-ondiep-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    border-radius: 0;
    position: relative;
}

.legend-icon.boorpunt-ondiep-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border: 1px solid black;
    border-radius: 50%;
}

/* Boorpunt 21okt25: vierkant met zwarte omtrek, witte vulling, rode cirkel */
.legend-icon.boorpunt-aanvullend-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    border-radius: 0;
    position: relative;
}

.legend-icon.boorpunt-aanvullend-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #E74C3C;
    border-radius: 50%;
}

/* Peilbuis: vierkant met zwarte omtrek, witte vulling, blauwe cirkel */
.legend-icon.peilbuis-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    border-radius: 0;
    position: relative;
}

.legend-icon.peilbuis-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #3498DB;
    border-radius: 50%;
}

/* Verontreiniging marker in legenda */
.legend-icon.verontreiniging-marker-icon {
    width: 18px;
    height: 18px;
    background: rgba(220, 53, 69, 0.3);
    border: 2px solid #dc3545;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legend-icon.verontreiniging-marker-icon::after {
    content: '⚠';
    font-size: 10px;
    color: #dc3545;
}

/* Verontreiniging marker op kaart */
.verontreiniging-icon {
    background: transparent;
}

.verontreiniging-marker {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #dc3545;
    text-shadow: 0 0 3px white, 0 0 3px white;
}

/* Verontreiniging popup styling */
.verontreiniging-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    border: 2px solid #dc3545;
}

.verontreiniging-popup .leaflet-popup-content {
    margin: 0;
    min-width: 280px;
    max-width: 320px;
}

.verontreiniging-popup-content {
    padding: 12px;
}

.verontreiniging-popup-content h4 {
    margin: 0 0 10px 0;
    color: #dc3545;
    font-size: 1rem;
    border-bottom: 2px solid #dc3545;
    padding-bottom: 6px;
}

.verontreiniging-popup-content p {
    margin: 6px 0;
    font-size: 0.85rem;
}

.verontreiniging-popup-content ul {
    margin: 4px 0 8px 0;
    padding-left: 20px;
    font-size: 0.85rem;
}

.verontreiniging-popup-content ul li {
    margin: 2px 0;
    color: #c0392b;
    font-weight: 500;
}

.verontreiniging-beschrijving {
    background: #fff3cd;
    padding: 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 8px;
}

.verontreiniging-bron {
    color: #666;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

/* Bodem popup styling */
.bodem-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
}

.bodem-popup .leaflet-popup-content {
    margin: 0;
    min-width: 320px;
    max-width: 380px;
}

.bodem-popup-content {
    padding: 12px;
}

.bodem-popup-content h4 {
    margin: 0 0 10px 0;
    color: var(--primary);
    font-size: 1rem;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 6px;
}

.bodem-popup-content h5 {
    margin: 12px 0 8px 0;
    font-size: 0.85rem;
    color: var(--text);
}

.bodem-info p {
    margin: 4px 0;
    font-size: 0.85rem;
}

.bodem-info .verontreiniging-sterk {
    color: #c0392b;
    font-weight: 600;
}

.bodem-info .verontreiniging-licht {
    color: #e67e22;
}

.bodem-info .grondwater-info {
    font-style: italic;
    color: var(--text-light);
    font-size: 0.8rem;
}

/* Visueel bodemprofiel */
.bodem-lagen {
    position: relative;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.bodem-laag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.bodem-laag:last-of-type {
    border-bottom: none;
}

.laag-diepte {
    font-weight: 600;
    font-size: 0.75rem;
    color: rgba(0,0,0,0.7);
}

.laag-naam {
    font-weight: 500;
}

.grondwater-lijn {
    background: linear-gradient(90deg, #3498db 0%, #3498db 50%, transparent 50%);
    background-size: 8px 2px;
    background-repeat: repeat-x;
    background-position: 0 center;
    padding: 4px 10px;
    font-size: 0.75rem;
    color: #2980b9;
    font-weight: 500;
}

.bodem-bron {
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-light);
    font-style: italic;
}

/* Boorpunt marker styling (kaart) */
/* Boorpunt 0-4m: vierkant met zwarte omtrek, witte vulling, zwart gevulde cirkel */
.boorpunt-icon {
    background: transparent !important;
    border: none !important;
}

.boorpunt-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    position: relative;
}

.boorpunt-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: black;
    border-radius: 50%;
}

/* Boorpunt 0-1,5m: vierkant met zwarte omtrek, witte vulling, witte cirkel met zwarte omtrek */
.boorpunt-ondiep-icon {
    background: transparent !important;
    border: none !important;
}

.boorpunt-ondiep-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    position: relative;
}

.boorpunt-ondiep-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border: 1px solid black;
    border-radius: 50%;
}

/* Boorpunt 21okt25 (aanvullend): vierkant met zwarte omtrek, witte vulling, rode cirkel */
.boorpunt-aanvullend-icon {
    background: transparent !important;
    border: none !important;
}

.boorpunt-aanvullend-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    position: relative;
}

.boorpunt-aanvullend-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #E74C3C;
    border-radius: 50%;
}

/* Peilbuis marker styling (kaart) */
/* Peilbuis: vierkant met zwarte omtrek, witte vulling, blauwe cirkel */
.peilbuis-icon {
    background: transparent !important;
    border: none !important;
}

.peilbuis-marker {
    width: 14px;
    height: 14px;
    background: white;
    border: 2px solid black;
    position: relative;
}

.peilbuis-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: #3498DB;
    border-radius: 50%;
}

/* Boorpunt labels */
.boorpunt-label {
    background: transparent !important;
    border: none !important;
}

.boorpunt-nr {
    display: inline-block;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    font-family: monospace;
    white-space: nowrap;
}

/* Specifieke bodemprofielen uit boorstaten */
.bodem-lagen.specifiek {
    display: flex;
    flex-direction: column;
    min-height: 200px;
    max-height: 350px;
    overflow-y: auto;
}

.bodem-laag.specifiek {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4px 8px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.bodem-laag.specifiek:last-child {
    border-bottom: none;
}

.bodem-laag.specifiek .laag-diepte {
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.bodem-laag.specifiek .laag-naam {
    font-size: 0.65rem;
    font-weight: 400;
    line-height: 1.2;
    word-wrap: break-word;
    white-space: normal;
}

.geen-profiel {
    font-style: italic;
    color: var(--text-light);
    padding: 10px;
}

/* Riolering icons */
.legend-icon.straatkolk {
    position: relative;
    width: 24px;
    height: 8px;
    background: linear-gradient(90deg,
        #000 0%, #000 50%,
        transparent 50%, transparent 100%);
    border: 1px solid #000;
    border-radius: 0;
}

.legend-icon.straatkolk::before {
    content: 'SK';
    position: absolute;
    top: -10px;
    left: 0;
    font-size: 7px;
    font-weight: bold;
    color: #000;
}

.legend-icon.straatkolk::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg,
        transparent 0%, transparent 50%,
        #000 50%, #000 100%);
}

.legend-icon.huisaansluiting-dwa {
    position: relative;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
}

.legend-icon.huisaansluiting-dwa::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #e64980;
    border-radius: 50%;
}

.legend-icon.huisaansluiting-dwa::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 16px;
    height: 0;
    border-top: 2px dashed #e64980;
}

.legend-icon.huisaansluiting-rwa {
    position: relative;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
}

.legend-icon.huisaansluiting-rwa::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #339af0;
    border-radius: 50%;
}

.legend-icon.huisaansluiting-rwa::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 16px;
    height: 0;
    border-top: 2px dashed #339af0;
}

.legend-icon.riool-dwa {
    position: relative;
    width: 24px;
    height: 8px;
    background: transparent;
    border-top: 2px solid #e64980;
    border-bottom: 2px solid #e64980;
    border-left: none;
    border-right: none;
    margin: 4px 0;
}

.legend-icon.riool-dwa::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px dashed #e64980;
}

.legend-icon.riool-rwa {
    position: relative;
    width: 24px;
    height: 8px;
    background: transparent;
    border-top: 2px solid #339af0;
    border-bottom: 2px solid #339af0;
    border-left: none;
    border-right: none;
    margin: 4px 0;
}

.legend-icon.riool-rwa::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    border-top: 1px dashed #339af0;
}

/* Info Section */
#info {
    padding: 1rem;
    overflow-y: auto;
}

/* Color scheme for categories */
:root {
    /* Project - blauw/groen (gemeente) */
    --project-primary: #1a6b5c;
    --project-light: #e8f5f2;
    --project-border: #2d9a85;

    /* Bestek - warm geel/amber */
    --bestek-primary: #b8860b;
    --bestek-light: #fef9e7;
    --bestek-border: #d4a012;

    /* Vragen - gedempd rood/koraal */
    --vragen-primary: #c0392b;
    --vragen-light: #fdf2f2;
    --vragen-border: #e74c3c;

    /* Beleid - donkergroen */
    --beleid-primary: #1e5631;
    --beleid-light: #e8f5e9;
    --beleid-border: #2e7d32;

    /* Actueel beleid - blauw */
    --actueel-primary: #1565c0;
    --actueel-light: #e3f2fd;
    --actueel-border: #1976d2;

    /* Feiten category - oranje */
    --feiten-primary: #e65100;
    --feiten-light: #fff3e0;
    --feiten-border: #fb8c00;

    /* Historie category - sepia/bruin */
    --historie-primary: #6d4c41;
    --historie-light: #efebe9;
    --historie-border: #8d6e63;
}

/* Info Index */
/* Glossary / Woordenlijst */
.glossary {
    background: var(--white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-left: 4px solid var(--primary);
}

.glossary summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
    padding: 0.25rem 0;
}

.glossary summary:hover {
    color: var(--primary-dark);
}

.glossary-content {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.glossary dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.glossary dt {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.glossary dd {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f0f0;
}

.glossary dd:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-index {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.info-index h2 {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.info-index ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.info-index li {
    margin: 0;
}

.info-index a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.info-index a.index-project {
    background: var(--project-light);
    color: var(--project-primary);
    border: 1px solid var(--project-border);
}

.info-index a.index-project:hover {
    background: var(--project-primary);
    color: white;
}

.info-index a.index-bestek {
    background: var(--bestek-light);
    color: var(--bestek-primary);
    border: 1px solid var(--bestek-border);
}

.info-index a.index-bestek:hover {
    background: var(--bestek-primary);
    color: white;
}

.info-index a.index-vragen {
    background: var(--vragen-light);
    color: var(--vragen-primary);
    border: 1px solid var(--vragen-border);
}

.info-index a.index-vragen:hover {
    background: var(--vragen-primary);
    color: white;
}

.info-index a.index-beleid {
    background: var(--beleid-light);
    color: var(--beleid-primary);
    border: 1px solid var(--beleid-border);
}

.info-index a.index-beleid:hover {
    background: var(--beleid-primary);
    color: white;
}

.info-index a.index-actueel {
    background: var(--actueel-light);
    color: var(--actueel-primary);
    border: 1px solid var(--actueel-border);
}

.info-index a.index-actueel:hover {
    background: var(--actueel-primary);
    color: white;
}

.info-index a.index-feiten {
    background: var(--feiten-light);
    color: var(--feiten-primary);
    border: 1px solid var(--feiten-border);
}

.info-index a.index-feiten:hover {
    background: var(--feiten-primary);
    color: white;
}

.info-index a.index-historie {
    background: var(--historie-light);
    color: var(--historie-primary);
    border: 1px solid var(--historie-border);
}

.info-index a.index-historie:hover {
    background: var(--historie-primary);
    color: white;
}

/* Info Categories */
.info-category {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    border-radius: 12px;
}

.category-title {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Project category - blauw/groen */
.category-project {
    background: linear-gradient(135deg, var(--project-light) 0%, #f0faf8 100%);
    border: 1px solid rgba(45, 154, 133, 0.2);
}

.category-project .category-title {
    color: var(--project-primary);
    border-bottom: 2px solid var(--project-border);
}

.category-project .info-card {
    border-left: 3px solid var(--project-border);
}

.category-project .info-card h3 {
    color: var(--project-primary);
}

.category-project .doc-link a {
    color: var(--project-primary);
}

/* Bestek category - warm geel */
.category-bestek {
    background: linear-gradient(135deg, var(--bestek-light) 0%, #fffdf5 100%);
    border: 1px solid rgba(212, 160, 18, 0.2);
}

.category-bestek .category-title {
    color: var(--bestek-primary);
    border-bottom: 2px solid var(--bestek-border);
}

.category-bestek .info-card {
    border-left: 3px solid var(--bestek-border);
}

.category-bestek .info-card h3 {
    color: var(--bestek-primary);
}

.category-bestek .doc-link a {
    color: var(--bestek-primary);
}

.category-bestek .info-card.warning {
    border-left: 4px solid #e67e22;
    background: linear-gradient(135deg, #fff5eb 0%, #fffaf5 100%);
}

.category-bestek .info-card.warning h3 {
    color: #d35400;
}

/* Vragen category - gedempd rood met urgentie */
.category-vragen {
    background: linear-gradient(135deg, var(--vragen-light) 0%, #fff8f8 100%);
    border: 2px solid var(--vragen-border);
    position: relative;
}

.category-vragen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--vragen-primary), var(--vragen-border));
    border-radius: 10px 10px 0 0;
}

.category-vragen .category-title {
    color: var(--vragen-primary);
    border-bottom: 2px solid var(--vragen-border);
    font-size: 1.4rem;
}

.category-vragen .info-card {
    border-left: 4px solid var(--vragen-border);
    background: white;
}

.category-vragen .info-card h3 {
    color: var(--vragen-primary);
    font-size: 1.1rem;
}

.category-vragen .doc-link a {
    color: var(--vragen-primary);
}

.category-vragen a {
    color: var(--vragen-primary);
    font-weight: 500;
}

.category-vragen a:hover {
    text-decoration: underline;
}

/* Beleid category - donkergroen */
.category-beleid {
    background: linear-gradient(135deg, var(--beleid-light) 0%, #f1f8e9 100%);
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.category-beleid .category-title {
    color: var(--beleid-primary);
    border-bottom: 2px solid var(--beleid-border);
}

.category-beleid .info-card {
    border-left: 3px solid var(--beleid-border);
}

.category-beleid .info-card h3 {
    color: var(--beleid-primary);
}

.category-beleid .doc-link a {
    color: var(--beleid-primary);
}

.category-beleid .doc-subcategory h3 {
    color: var(--beleid-primary);
    border-bottom-color: var(--beleid-border);
}

/* Actueel beleid category - blauw */
.category-actueel {
    background: linear-gradient(135deg, var(--actueel-light) 0%, #e8f4fc 100%);
    border: 1px solid rgba(25, 118, 210, 0.2);
}

.category-actueel .category-title {
    color: var(--actueel-primary);
    border-bottom: 2px solid var(--actueel-border);
}

.category-actueel .info-card {
    border-left: 3px solid var(--actueel-border);
}

.category-actueel .info-card h3 {
    color: var(--actueel-primary);
}

.category-actueel .doc-link a {
    color: var(--actueel-primary);
}

.category-actueel .doc-subcategory h3 {
    color: var(--actueel-primary);
    border-bottom-color: var(--actueel-border);
}

/* Feiten category - oranje */
.category-feiten {
    background: linear-gradient(135deg, var(--feiten-light) 0%, #fffaf0 100%);
    border: 2px solid var(--feiten-border);
}

.category-feiten .category-title {
    color: var(--feiten-primary);
    border-bottom: 2px solid var(--feiten-border);
}

.category-feiten .info-card {
    border-left: 3px solid var(--feiten-border);
}

.category-feiten .info-card h3 {
    color: var(--feiten-primary);
}

.category-feiten .doc-link a {
    color: var(--feiten-primary);
}

.category-feiten .bron-box {
    background: rgba(230, 81, 0, 0.08);
    border: 1px solid rgba(230, 81, 0, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.category-feiten .bron-box strong {
    color: var(--feiten-primary);
}

/* Historie category - sepia styling */
.category-historie {
    background: linear-gradient(135deg, var(--historie-light) 0%, #f5f0eb 100%);
    border: 2px solid var(--historie-border);
}

.category-historie .category-title {
    color: var(--historie-primary);
    border-bottom: 2px solid var(--historie-border);
}

.category-historie .info-card {
    border-left: 3px solid var(--historie-border);
}

.category-historie .info-card h3 {
    color: var(--historie-primary);
}

.category-historie .doc-link a {
    color: var(--historie-primary);
}

.category-historie .bron-box {
    background: rgba(109, 76, 65, 0.08);
    border: 1px solid rgba(109, 76, 65, 0.2);
    border-radius: 6px;
    padding: 0.75rem;
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.category-historie .bron-box strong {
    color: var(--historie-primary);
}

/* Historische foto's in feiten-tegels */
.historic-photo {
    margin: 0 0 1rem 0;
    text-align: center;
}

.historic-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.historic-photo figcaption {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
}

.historic-photo figcaption em {
    font-size: 0.8rem;
    color: #888;
}

/* Advies vs Uitvoering blok in risico-kaarten */
.advies-vs-uitvoering {
    background: rgba(192, 57, 43, 0.08);
    border: 1px solid rgba(192, 57, 43, 0.2);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    margin: 0.75rem 0;
    font-size: 0.9rem;
}

.advies-vs-uitvoering p {
    margin-bottom: 0.5rem;
}

.advies-vs-uitvoering p:last-child {
    margin-bottom: 0;
}

.advies-vs-uitvoering ul {
    margin: 0.5rem 0 0.75rem 1.25rem;
}

.advies-vs-uitvoering ul:last-child {
    margin-bottom: 0;
}

/* Warning card - prominente weergave voor belangrijke risico's */
.info-card.warning-card {
    border-left: 5px solid var(--vragen-border);
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.15);
}

.info-card.warning-card h3 {
    font-size: 1.15rem;
}

.info-card.warning-card h4 {
    font-size: 1rem;
    color: var(--vragen-primary);
    margin: 1rem 0 0.5rem 0;
}

/* Category link (onderaan categorie) */
.category-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.category-link a {
    color: var(--project-primary);
    font-weight: 500;
    text-decoration: none;
}

.category-link a:hover {
    text-decoration: underline;
}

/* Base info-card styling */
.info-card {
    background: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s ease;
}

.info-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card:last-child {
    margin-bottom: 0;
}

/* Tabellen in info-cards - volledig responsief */
.info-card .table-wrapper {
    margin: 0.75rem 0;
}

.info-card table,
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.9rem;
    table-layout: fixed;
}

.info-card .table-wrapper table {
    margin: 0;
}

.info-card th,
.info-card td,
.info-table th,
.info-table td {
    padding: 0.5rem;
    text-align: left;
    border: 1px solid #ddd;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.info-card th,
.info-table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Mobiel: tabellen als gestapelde kaarten */
@media (max-width: 600px) {
    .info-card table,
    .info-table {
        font-size: 0.85rem;
    }

    .info-card th,
    .info-card td,
    .info-table th,
    .info-table td {
        padding: 0.4rem 0.3rem;
        font-size: 0.8rem;
    }

    /* Verberg tabel headers, toon als gestapelde rijen */
    .info-card .table-wrapper table,
    .info-card table.stack-mobile {
        table-layout: auto;
    }

    .info-card .table-wrapper table thead,
    .info-card table.stack-mobile thead {
        display: none;
    }

    .info-card .table-wrapper table tr,
    .info-card table.stack-mobile tr {
        display: block;
        margin-bottom: 0.75rem;
        border: 1px solid #ddd;
        border-radius: 6px;
        background: #fafafa;
    }

    .info-card .table-wrapper table td,
    .info-card table.stack-mobile td {
        display: block;
        text-align: left;
        border: none;
        border-bottom: 1px solid #eee;
        padding: 0.5rem;
        position: relative;
        padding-left: 45%;
    }

    .info-card .table-wrapper table td:last-child,
    .info-card table.stack-mobile td:last-child {
        border-bottom: none;
    }

    .info-card .table-wrapper table td::before,
    .info-card table.stack-mobile td::before {
        content: attr(data-label);
        position: absolute;
        left: 0.5rem;
        width: 40%;
        font-weight: 600;
        color: var(--text);
        font-size: 0.75rem;
    }
}

.info-card h2 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.info-card h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.info-card p {
    margin-bottom: 0.75rem;
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card ul {
    margin-left: 1.25rem;
}

.info-card li {
    margin-bottom: 0.5rem;
}

.info-card li:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.doc-link {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-top: 0.75rem;
}

.doc-link a {
    color: var(--primary);
    text-decoration: underline;
}

.doc-link a:hover {
    color: var(--accent);
}

/* Documenten Section */
#documenten {
    padding: 1rem;
    overflow-y: auto;
}

#documenten h2 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

#documenten > p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

.doc-category {
    margin-bottom: 1.5rem;
}

.doc-category h3 {
    font-size: 1rem;
    color: var(--primary);
    margin-bottom: 0.25rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--primary);
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.doc-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--white);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.doc-icon {
    font-size: 1.5rem;
}

/* Document subcategories (Advies/Uitvoering) */
.doc-subcategory {
    margin-bottom: 1.5rem;
}

.doc-subcategory h3 {
    font-size: 1.1rem;
    color: var(--bestek-primary);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid var(--bestek-border);
}

.doc-subcategory h4 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.doc-subcategory .category-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* Documenten categorie met project-styling */
#docs-communicatie .doc-subcategory h3 {
    color: var(--project-primary);
    border-bottom-color: var(--project-border);
}

.doc-name {
    font-weight: 500;
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
}

footer a {
    color: var(--accent);
}

footer .disclaimer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.75rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

footer .disclaimer p {
    margin: 0;
    line-height: 1.5;
}

/* Tablet and up */
@media (min-width: 768px) {
    html {
        font-size: 16px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .nav-btn {
        padding: 1rem 1.5rem;
    }

    #viewer.active {
        display: grid;
        grid-template-columns: 1fr 250px;
        grid-template-rows: auto 1fr;
    }

    .viewer-controls {
        grid-column: 1 / -1;
    }

    #map-container {
        min-height: 500px;
    }

    .layer-panel {
        box-shadow: -2px 0 4px rgba(0,0,0,0.1);
        overflow-y: auto;
    }

    #info.active, #documenten.active {
        max-width: 800px;
        margin: 0 auto;
        padding: 2rem;
    }

    .doc-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop */
@media (min-width: 1024px) {
    header {
        padding: 1.5rem;
    }

    header h1 {
        font-size: 2rem;
    }

    #viewer.active {
        grid-template-columns: 1fr 300px;
    }

    #map-container {
        min-height: 600px;
    }
}

/* Leaflet overrides for accessibility */
.leaflet-control-zoom a {
    font-size: 22px !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
}

.leaflet-control-attribution {
    font-size: 10px;
}

/* Address marker styling */
.address-marker {
    background: transparent;
}

.marker-pin {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 3px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin: 0 auto;
}

.marker-label {
    background: var(--primary);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    margin-top: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ============================================
   SAMENVATTING PAGINA - B1 niveau
   ============================================ */

.samenvatting-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1rem;
}

.samenvatting-container h2 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary);
    padding-bottom: 0.5rem;
}

.samenvatting-container .intro-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.samenvatting-section {
    background: var(--white);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow);
}

.samenvatting-section h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

.samenvatting-section p {
    margin-bottom: 1rem;
}

.samenvatting-section p:last-child {
    margin-bottom: 0;
}

.disclaimer-section {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.simple-list {
    list-style: disc;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.simple-list li {
    margin-bottom: 0.5rem;
}

/* Zorgen sectie */
.zorgen-section {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
}

.zorg-item {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.zorg-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.zorg-item h4 {
    color: #e65100;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.zorg-item p {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

/* Vragen sectie */
.vragen-section {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
}

.vragen-lijst {
    padding-left: 1.25rem;
    counter-reset: none;
}

.vragen-lijst li {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: rgba(255,255,255,0.7);
    border-radius: 6px;
    line-height: 1.7;
}

.vragen-lijst li:last-child {
    margin-bottom: 0;
}

.vragen-lijst strong {
    color: #1565c0;
}

.vragen-lijst .sub-vragen {
    margin-top: 0.5rem;
    margin-bottom: 0;
    padding-left: 1.25rem;
    list-style-type: disc;
}

.vragen-lijst .sub-vragen li {
    margin-bottom: 0.25rem;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

/* Contact sectie */
.contact-section {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
}

.contact-section a {
    color: #2e7d32;
    text-decoration: none;
    font-weight: 500;
}

.contact-section a:hover {
    text-decoration: underline;
}

/* Meer info sectie */
.meer-info {
    background: #f5f5f5;
    border-left: 4px solid #9e9e9e;
}

/* Responsive */
@media (min-width: 768px) {
    .samenvatting-container {
        padding: 2rem;
    }

    .samenvatting-container h2 {
        font-size: 1.8rem;
    }

    .samenvatting-section {
        padding: 1.5rem;
    }

    .samenvatting-section h3 {
        font-size: 1.3rem;
    }
}

/* ========================================
   BESTEK VERKENNER PAGINA
   ======================================== */

/* Container */
.bestek-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 1rem;
}

.bestek-container .intro-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1.5rem;
}

/* Info box */
.bestek-info-box {
    background: #e3f2fd;
    border-left: 4px solid #1976d2;
    padding: 1rem 1.25rem;
    border-radius: 0 8px 8px 0;
    margin-bottom: 2rem;
}

.bestek-info-box p {
    margin: 0;
    line-height: 1.6;
    font-size: 0.95rem;
}

.bestek-info-box a {
    color: #1565c0;
}

/* Section titles */
.bestek-section-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e0e0e0;
}

/* Grid voor thema-tegels */
.bestek-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Thema tegels */
.bestek-card {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    transition: box-shadow 0.2s, transform 0.2s;
}

.bestek-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.bestek-card h4 {
    color: var(--bestek-primary);
    font-size: 1.15rem;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bestek-border);
}

.bestek-card p {
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.bestek-card-full {
    background: linear-gradient(135deg, var(--bestek-light) 0%, #fffaf0 100%);
    border: 2px solid var(--bestek-border);
}

/* Links in tegels */
.bestek-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bestek-links li {
    margin-bottom: 0.5rem;
}

.bestek-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: var(--bestek-primary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s;
}

.bestek-links a:hover {
    background: var(--bestek-light);
    text-decoration: underline;
}

/* Woordenlijst */
.bestek-glossary {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
    margin-bottom: 2rem;
}

.bestek-glossary > p {
    margin-bottom: 1rem;
    color: #555;
}

.glossary-list {
    margin: 0;
    padding: 0;
}

.glossary-list dt {
    font-weight: 600;
    color: var(--primary);
    margin-top: 1rem;
    font-size: 1rem;
}

.glossary-list dt:first-child {
    margin-top: 0;
}

.glossary-list dd {
    margin: 0.25rem 0 0 0;
    padding-left: 1rem;
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    border-left: 2px solid #e0e0e0;
}

/* Bijlagen lijst */
.bestek-bijlagen {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #e0e0e0;
}

.bijlagen-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bijlagen-list li {
    margin-bottom: 0.5rem;
}

.bijlagen-list a {
    display: block;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.bijlagen-list a:hover {
    background: #e8f4fd;
    color: var(--primary);
}

/* Bestek Verkenner knop op Documenten tab */
.bestek-verkenner-link {
    margin-bottom: 1.5rem;
}

.bestek-verkenner-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--bestek-light) 0%, #fffaf0 100%);
    border: 2px solid var(--bestek-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--bestek-primary);
    transition: box-shadow 0.2s, transform 0.2s;
}

.bestek-verkenner-btn:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.bestek-verkenner-btn .btn-icon {
    font-size: 2rem;
}

.bestek-verkenner-btn .btn-text strong {
    font-size: 1.1rem;
    display: block;
}

.bestek-verkenner-btn .btn-text small {
    color: #666;
    font-size: 0.9rem;
}

/* Bestek Aandachtspunt (alert) tegel */
.bestek-alert {
    margin-bottom: 2rem;
}

.bestek-card-alert {
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 2px solid #f0ad4e;
    border-left: 6px solid #e67e22;
}

.bestek-card-alert h4 {
    color: #856404;
}

.bestek-card-alert h4::before {
    content: "\26A0\FE0F ";
}

.bestek-analysis {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.bestek-analysis h5 {
    font-size: 0.95rem;
    color: #5a4a00;
    margin: 1rem 0 0.5rem 0;
    font-weight: 600;
}

.bestek-analysis h5:first-child {
    margin-top: 0;
}

.bestek-card-alert .bestek-links {
    margin-bottom: 0;
}

.bestek-card-alert .bestek-links li {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.bestek-quote {
    display: block;
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    padding-left: 1rem;
    border-left: 2px solid #ddd;
    margin-top: 0.25rem;
}

.bestek-missing {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bestek-missing li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #666;
    font-size: 0.95rem;
}

.bestek-missing li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: #c0392b;
    font-weight: bold;
}

.bestek-conclusion {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.6);
    border-radius: 6px;
    font-size: 0.95rem;
    color: #5a4a00;
    font-weight: 500;
}

/* Bestek Info tegel (blauw/informatief) */
.bestek-card-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: 2px solid #64b5f6;
    border-left: 6px solid #1976d2;
}

.bestek-card-info h4 {
    color: #0d47a1;
}

.bestek-card-info h4::before {
    content: "\2139\FE0F ";
}

.bestek-card-info .bestek-analysis h5 {
    color: #0d47a1;
}

.bestek-card-info .bestek-conclusion {
    color: #0d47a1;
}

/* Meerdere alert cards onder elkaar */
.bestek-alert .bestek-card {
    margin-bottom: 1.5rem;
}

.bestek-alert .bestek-card:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .bestek-grid {
        grid-template-columns: 1fr;
    }

    .bestek-card {
        padding: 1rem;
    }

    .bestek-verkenner-btn {
        padding: 0.75rem 1rem;
    }

    .bestek-verkenner-btn .btn-icon {
        font-size: 1.5rem;
    }

    .bestek-quote {
        font-size: 0.8rem;
    }
}
