/* ===== Breadcrumb ===== */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }

/* ===== Discipline dots ===== */
.discipline-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.discipline-brandweer { background: var(--brandweer); }
.discipline-ambulance { background: var(--ambulance); }
.discipline-politie { background: var(--politie); }
.discipline-lifeliner { background: var(--lifeliner); }
.discipline-knrm { background: var(--knrm); }
.discipline-reddingsbrigade { background: var(--reddingsbrigade); }
.discipline-meldkamer, .discipline-veiligheidsregio { background: var(--meldkamer); }
.discipline- { background: var(--text-muted); }

/* ===== Unified Incident Card (ic-*) ===== */

/* Base card */
.ic {
    display: block; background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    border-left: 4px solid var(--border); margin-bottom: 10px; padding: 14px 16px;
    transition: border-color .15s, box-shadow .15s; text-decoration: none; color: inherit;
    overflow: hidden;
}
.ic:hover { border-color: var(--border2); box-shadow: 0 2px 8px rgba(0,0,0,.06); text-decoration: none; }
a.ic, a.ic:hover, a.ic * { text-decoration: none; }
.ic.ic-active { border-color: rgba(39,174,96,.3); }
.ic.ic-active:hover { border-color: rgba(39,174,96,.5); }

/* Border colors */
.ic.ic-bw   { border-left-color: var(--brandweer); }
.ic.ic-amb  { border-left-color: var(--ambulance); }
.ic.ic-pol  { border-left-color: var(--politie); }
.ic.ic-life { border-left-color: var(--lifeliner); }
.ic.ic-knrm { border-left-color: var(--knrm); }
.ic.ic-vr   { border-left-color: var(--meldkamer); }
.ic.ic-grip { border-left-color: var(--grip, #e74c3c); }
.ic.ic-over { border-left-color: var(--text-muted); }

/* Shared row */
.ic-row { display: flex; align-items: center; gap: 8px; }

/* Badges */
.ic-badges { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.ic-disc {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 5px;
    font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ic-disc-bw   { background: var(--brandweer); }
.ic-disc-amb  { background: var(--ambulance); }
.ic-disc-pol  { background: var(--politie); }
.ic-disc-life { background: var(--lifeliner); }
.ic-disc-knrm { background: var(--knrm); }
.ic-disc-vr   { background: var(--meldkamer); }
.ic-disc-over { background: var(--text-muted); }
.ic-prio {
    display: inline-flex; align-items: center; justify-content: center;
    height: 22px; padding: 0 6px; border-radius: 5px;
    font-size: 10px; font-weight: 700; flex-shrink: 0; white-space: nowrap;
}
.ic-prio-bw   { background: rgba(231,76,60,.15); color: var(--brandweer); }
.ic-prio-amb  { background: rgba(243,156,18,.15); color: var(--ambulance); }
.ic-prio-pol  { background: rgba(52,152,219,.15); color: var(--politie); }
.ic-prio-life { background: rgba(155,89,182,.15); color: var(--lifeliner); }
.ic-prio-knrm { background: rgba(26,188,156,.15); color: var(--knrm); }
.ic-prio-vr   { background: rgba(39,174,96,.15); color: var(--meldkamer); }
.ic-prio-over { background: rgba(139,143,163,.15); color: var(--text-muted); }
.ic-prio-grip { background: rgba(231,76,60,.2); color: var(--grip, #e74c3c); font-weight: 800; }
.ic-status { font-size: 10px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: rgba(139,143,163,.12); color: var(--text-muted); }
.ic-status-active { background: rgba(39,174,96,.12); color: #27ae60; }
.ic-live { width: 6px; height: 6px; border-radius: 50%; background: var(--success, #27ae60); animation: ic-pulse 2s infinite; flex-shrink: 0; }
@keyframes ic-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Time */
.ic-time { font-size: 11px; color: var(--text-muted); flex-shrink: 0; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; margin-left: auto; }
.ic-updated { display: block; font-size: 10px; color: var(--success, #27ae60); }

/* Title */
.ic-title { font-size: 15px; font-weight: 600; margin: 6px 0 4px; line-height: 1.3; }
.ic-body-text { font-size: 13px; color: var(--text-muted); line-height: 1.4; margin-bottom: 4px; }

/* Location */
.ic-location { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.ic-location svg { flex-shrink: 0; opacity: .6; }

/* Footer: vehicles + meta */
.ic-footer { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ic-vehicles { display: flex; flex-wrap: wrap; gap: 4px; }
.ic-vehicle {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 11px; padding: 1px 6px; border-radius: 4px;
    border: 1px solid; text-decoration: none; color: var(--text);
    background: transparent; transition: background .15s; line-height: 1.4;
}
.ic-vehicle:hover { background: rgba(128,128,128,.08); text-decoration: none; }
.ic-vehicle-more { font-size: 11px; color: var(--text-muted); padding: 2px 4px; }
.ic-footer-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.ic-fmeta { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-muted); }
.ic-fmeta svg { opacity: .6; }
.ic-fmeta-photo { color: #3498db; }
.ic-fmeta-photo svg { opacity: 1; stroke: #3498db; }
.ic-fmeta-link { color: #9b59b6; }
.ic-fmeta-link svg { opacity: 1; stroke: #9b59b6; }
.ic-fmeta-extra { font-weight: 600; color: var(--text-heading, var(--text)); }


/* ===== Pagination ===== */
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }

/* ===== Incident status dot in header ===== */

/* ===== Stats block ===== */
.stats-block { padding: 16px 0; }
.stats-block-total { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.stats-block-num { font-size: 28px; font-weight: 700; color: var(--text); }
.stats-block-lbl { font-size: 13px; color: var(--text-muted); }
.stats-block-bars { display: flex; flex-direction: column; gap: 6px; }
.stats-bar-row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.stats-bar-label { width: 80px; color: var(--text-muted); flex-shrink: 0; }
.stats-bar-track { flex: 1; height: 6px; background: var(--bg-alt, var(--border)); border-radius: 3px; overflow: hidden; }
.stats-bar-fill { height: 100%; border-radius: 3px; transition: width .3s; }
.stats-bar-val { width: 50px; text-align: right; color: var(--text); font-weight: 500; }
.stats-block-meta { margin-top: 10px; font-size: 12px; color: var(--text-muted); }

/* ===== Filter bar ===== */
.seo-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.seo-filter-pill {
    font-size: 12px; padding: 4px 12px; border-radius: 20px;
    border: 1px solid var(--border); background: transparent;
    color: var(--text-muted); text-decoration: none; transition: all .15s;
}
.seo-filter-pill:hover { border-color: var(--text-muted); color: var(--text); }
.seo-filter-pill.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.seo-filter-pill.disc-brandweer.active { background: var(--brandweer); border-color: var(--brandweer); color: #fff; }
.seo-filter-pill.disc-ambulance.active { background: var(--ambulance); border-color: var(--ambulance); color: #fff; }
.seo-filter-pill.disc-politie.active { background: var(--politie); border-color: var(--politie); color: #fff; }
.seo-filter-pill.disc-knrm.active { background: var(--knrm); border-color: var(--knrm); color: #fff; }
.seo-filter-pill.disc-lifeliner.active { background: var(--lifeliner); border-color: var(--lifeliner); color: #fff; }

/* ===== Search page ===== */
.search-advanced { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.search-select { padding: 6px 10px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--text); }
.search-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
/* Map popup (shared) */
.seo-popup-wrap .leaflet-popup-content-wrapper { border-radius: 10px; padding: 0; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.seo-popup-wrap .leaflet-popup-content { margin: 0; }
.seo-popup { padding: 12px 14px; font-family: system-ui, -apple-system, sans-serif; min-width: 200px; max-width: 300px; }
.seo-popup-header { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; flex-wrap: wrap; }
.seo-popup-time { font-size: 10px; color: var(--text-muted, #8b8fa3); margin-left: auto; font-variant-numeric: tabular-nums; }
.seo-popup-title { font-size: 14px; font-weight: 600; line-height: 1.3; margin-bottom: 3px; }
.seo-popup-title a { color: inherit; text-decoration: none; }
.seo-popup-title a:hover { text-decoration: underline; }
.seo-popup-body { font-size: 12px; color: var(--text-muted, #8b8fa3); line-height: 1.4; margin-bottom: 4px; }
.seo-popup-loc { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-muted, #8b8fa3); margin-bottom: 6px; }
.seo-popup-loc svg { flex-shrink: 0; opacity: .5; }
.seo-popup-vehicles { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 6px; }
.seo-popup-vpill { font-size: 10px; padding: 1px 5px; border: 1px solid; border-radius: 3px; color: inherit; }
.seo-popup-meta { font-size: 10px; color: var(--text-muted, #8b8fa3); margin-bottom: 6px; }
.seo-popup-link { display: inline-block; font-size: 11px; font-weight: 500; color: #3498db; text-decoration: none; }
.seo-popup-link:hover { text-decoration: underline; }

/* Vehicle links in timeline */
.inc-tl-vehicle {
    color: inherit; text-decoration: underline; text-decoration-color: var(--border2, rgba(0,0,0,.2));
    text-underline-offset: 2px; cursor: pointer; font-weight: 600;
    transition: text-decoration-color .15s;
}
.inc-tl-vehicle:hover { text-decoration-color: var(--highlight, #3498db); color: var(--highlight, #3498db); }

/* Incident escalation bar */
.inc-esc-bar {
    display: flex; align-items: center; gap: 3px;
    margin: 8px 0 4px; padding: 6px 0;
}
.inc-esc-seg {
    width: 100%; height: 6px; border-radius: 3px;
    background: var(--border); transition: background .2s;
}
.inc-esc-seg.seg-low { background: #f39c12; }
.inc-esc-seg.seg-mid { background: #e74c3c; }
.inc-esc-seg.seg-high { background: #922b21; }
.inc-esc-label {
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    white-space: nowrap; margin-left: 8px;
}

/* RDW data grid */
.rdw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0; }
.rdw-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.rdw-item:last-child { border-bottom: none; }
.rdw-label { display: block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); margin-bottom: 2px; }
.rdw-value { display: block; font-size: 14px; font-weight: 600; color: var(--text); }
.rdw-value.text-danger { color: #e74c3c; }
.rdw-value.text-warning { color: #f39c12; }

.search-map-container { height: 350px; border-radius: 8px; margin-bottom: 16px; position: relative; z-index: 0; }
.gem-map-card { position: relative; z-index: 0; }

/* Universal search */
.usearch-wrap { position: relative; margin-bottom: 24px; }
.usearch-form { margin: 0; }
.usearch-input-wrap {
    position: relative; display: flex; align-items: center;
    background: var(--bg); border: 1.5px solid var(--border); border-radius: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.usearch-input-wrap:focus-within { border-color: var(--highlight, #3498db); box-shadow: 0 0 0 3px rgba(52,152,219,.15); }
.usearch-icon { position: absolute; left: 14px; color: var(--text-muted); pointer-events: none; }
.usearch-input {
    flex: 1; padding: 12px 40px 12px 42px; font-size: 15px;
    border: none; background: transparent; color: var(--text); outline: none; min-width: 0;
}
.usearch-input::placeholder { color: var(--text-muted); }
.usearch-clear {
    position: absolute; right: 10px; width: 28px; height: 28px;
    border: none; background: var(--border); color: var(--text-muted); border-radius: 50%;
    font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background .15s;
}
.usearch-clear:hover { background: var(--text-muted); color: var(--bg); }

.usearch-results {
    position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 10000;
    background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.18); max-height: 70vh; overflow-y: auto;
}

.usearch-group { border-bottom: 1px solid var(--border); }
.usearch-group:last-of-type { border-bottom: none; }
.usearch-group-header {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px; color: var(--text-muted);
    background: rgba(128,128,128,.04);
}
.usearch-group-header svg { opacity: .6; }

.usearch-item {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; text-decoration: none; color: inherit;
    transition: background .1s; cursor: pointer;
}
.usearch-item:hover { background: rgba(128,128,128,.08); text-decoration: none; }
.usearch-item-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.usearch-item-label { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usearch-item-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }
.usearch-item-arrow { color: var(--text-muted); opacity: .4; flex-shrink: 0; }

.usearch-all {
    padding: 10px 14px; text-align: center;
    border-top: 1px solid var(--border); font-size: 13px;
}
.usearch-all a { color: var(--highlight, #3498db); text-decoration: none; font-weight: 500; }
.usearch-all a:hover { text-decoration: underline; }

.usearch-empty { padding: 20px 14px; text-align: center; font-size: 13px; color: var(--text-muted); }

/* Quick results (gemeentes, voertuigen, kazernes, capcodes) */
.usearch-quick-results { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.usearch-qr-group { flex: 1; min-width: 200px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.usearch-qr-header { display: flex; align-items: center; gap: 5px; padding: 8px 12px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); background: rgba(128,128,128,.04); }
.usearch-qr-header svg { opacity: .5; }
.usearch-qr-items { display: flex; flex-direction: column; }
.usearch-qr-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; text-decoration: none; color: inherit; transition: background .1s; border-top: 1px solid var(--border); font-size: 13px; }
.usearch-qr-item:first-child { border-top: none; }
.usearch-qr-item:hover { background: rgba(128,128,128,.06); text-decoration: none; }
.usearch-qr-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.usearch-qr-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; flex-shrink: 0; }

/* Full results page incident list */
.usearch-incident-list { display: flex; flex-direction: column; gap: 0; margin-bottom: 16px; }
.merge-row .ic { flex: 1; }
.merge-bar {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
    background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
    padding: 12px 20px; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.15); z-index: 100; font-size: 14px; font-weight: 500;
}

/* Hint categories */
.usearch-hint { margin-top: 16px; }
.usearch-hint-categories { display: flex; flex-wrap: wrap; gap: 10px; }
.usearch-hint-cat {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 16px; border-radius: 8px;
    background: var(--bg); border: 1px solid var(--border);
    font-size: 13px; font-weight: 500; color: var(--text-muted);
}
.usearch-hint-icon { display: flex; align-items: center; opacity: .6; }

/* ===== Statistieken page ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-card { padding: 16px; }
.stats-card h3 { margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.chart-container { position: relative; height: 250px; }
.stats-table { width: 100%; font-size: 13px; }
.stats-table th { text-align: left; padding: 6px 8px; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); }
.stats-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.stats-table tr:last-child td { border-bottom: none; }
.stats-table .count-col { text-align: right; font-weight: 600; }

/* ===== Photo gallery ===== */
.photo-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px; margin-bottom: 12px;
}
.photo-gallery-thumb {
    aspect-ratio: 1; border-radius: 8px; overflow: hidden; cursor: pointer;
    position: relative; background: var(--bg-alt, var(--border));
}
.photo-gallery-thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .2s;
}
.photo-gallery-thumb:hover img { transform: scale(1.05); }
.photo-gallery-thumb .photo-caption-badge {
    position: absolute; bottom: 4px; left: 4px; right: 4px;
    font-size: 11px; color: #fff; background: rgba(0,0,0,.6);
    padding: 2px 6px; border-radius: 4px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}

/* Link cards in gallery */
.photo-gallery-link {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    aspect-ratio: 1; border-radius: 8px; overflow: hidden;
    background: var(--bg-alt, var(--border)); text-decoration: none;
    color: var(--text); border: 1px solid var(--border); padding: 12px;
    transition: background .2s, border-color .2s; gap: 6px;
}
.photo-gallery-link:hover { background: var(--bg-hover, rgba(255,255,255,.05)); border-color: var(--accent, #4a9eff); }
.photo-gallery-link-icon { font-size: 28px; line-height: 1; }
.photo-gallery-link-text {
    font-size: 12px; font-weight: 500; text-align: center;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden; line-height: 1.3; word-break: break-word;
}
.photo-gallery-link-domain {
    font-size: 10px; color: var(--text-muted); opacity: .7;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
}

/* Media submit buttons + popovers */
.media-btn-row {
    display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap;
}
.media-popover-wrap { position: relative; }
.media-trigger-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg); color: var(--text); font-size: 13px; font-weight: 500;
    cursor: pointer; transition: all .15s;
}
.media-trigger-btn:hover { border-color: var(--primary, #3182ce); color: var(--primary, #3182ce); }
.media-trigger-btn.active { border-color: var(--primary, #3182ce); background: var(--bg-alt, rgba(49,130,206,.08)); color: var(--primary, #3182ce); }
.media-trigger-btn svg { flex-shrink: 0; }

.media-popover {
    position: absolute; top: calc(100% + 8px); left: 0; z-index: 100;
    min-width: 280px; background: var(--card-bg, var(--bg)); border: 1px solid var(--border);
    border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.media-popover-arrow {
    position: absolute; top: -6px; left: 20px;
    width: 12px; height: 12px; background: var(--card-bg, var(--bg));
    border-left: 1px solid var(--border); border-top: 1px solid var(--border);
    transform: rotate(45deg);
}
.media-popover-body {
    padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.media-popover-body form {
    display: flex; flex-direction: column; gap: 10px;
}
.media-popover-body input[type="text"],
.media-popover-body input[type="url"] {
    padding: 8px 12px; font-size: 13px; border: 1px solid var(--border);
    border-radius: 6px; background: var(--bg); color: var(--text); width: 100%; box-sizing: border-box;
}
.media-popover-body input[type="text"]:focus,
.media-popover-body input[type="url"]:focus { outline: none; border-color: var(--primary, #3182ce); }
.media-popover-body button[type="submit"] {
    padding: 8px 16px; border-radius: 6px; border: none;
    background: var(--primary, #3182ce); color: #fff; font-size: 13px;
    font-weight: 500; cursor: pointer; transition: opacity .15s;
}
.media-popover-body button[type="submit"]:hover { opacity: .9; }
.media-popover-body button[type="submit"]:disabled { opacity: .5; cursor: not-allowed; }

.media-file-label {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    border: 1px dashed var(--border); border-radius: 6px; cursor: pointer;
    transition: border-color .15s;
}
.media-file-label:hover { border-color: var(--primary, #3182ce); }
.media-file-label input[type="file"] { position: absolute; width: 0; height: 0; opacity: 0; }
.media-file-text { font-size: 13px; color: var(--text-muted); }

.media-popover-status { font-size: 12px; min-height: 16px; }
.media-popover-status.success { color: #27ae60; }
.media-popover-status.error { color: #e74c3c; }

@media (max-width: 400px) {
    .media-popover { left: -40px; min-width: 240px; }
    .media-popover-arrow { left: 60px; }
}

/* ===== Lightbox ===== */
.seo-lb-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.92); display: none;
    justify-content: center; align-items: center;
}
.seo-lb-overlay.open { display: flex; }
.seo-lb-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 32px; color: #fff; cursor: pointer;
    opacity: .7; transition: opacity .15s; z-index: 2; line-height: 1;
    background: none; border: none;
}
.seo-lb-close:hover { opacity: 1; }
.seo-lb-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    font-size: 42px; color: #fff; cursor: pointer;
    opacity: .6; transition: opacity .15s; z-index: 2;
    padding: 10px; user-select: none; line-height: 1;
    background: none; border: none;
}
.seo-lb-nav:hover { opacity: 1; }
.seo-lb-prev { left: 10px; }
.seo-lb-next { right: 10px; }
.seo-lb-content {
    display: flex; flex-direction: column; align-items: center;
    max-width: 90vw; max-height: 90vh;
}
.seo-lb-img {
    max-width: 90vw; max-height: 80vh; object-fit: contain;
    border-radius: 4px; transition: opacity .2s;
}
.seo-lb-caption {
    color: #fff; font-size: 13px; margin-top: 8px;
    text-align: center; max-width: 600px;
}
.seo-lb-counter {
    color: rgba(255,255,255,.5); font-size: 12px; margin-top: 4px;
}

/* ===== Gemeente page ===== */
.gem-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.gem-header h1 { margin: 0; }
.gem-live-badge {
    display: flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 500; color: #27ae60;
    padding: 6px 14px; border-radius: 20px;
    background: rgba(39, 174, 96, 0.1); border: 1px solid rgba(39, 174, 96, 0.25);
    white-space: nowrap;
}
.gem-live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: #27ae60;
    animation: gem-pulse 2s ease-in-out infinite;
}
@keyframes gem-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.gem-map-card { padding: 0 !important; overflow: hidden; margin-bottom: 20px; }
.gem-map { height: 400px; border-radius: 8px; }

/* Gemeente feed */
.gem-feed { display: flex; flex-direction: column; gap: 0; }

/* Heli markers (reuse from app) */
.heli-marker { background: none !important; border: none !important; }
.heli-dot {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3), 0 0 12px currentColor;
    position: relative;
}
.heli-icon { display: flex; align-items: center; justify-content: center; }
.heli-label {
    position: absolute; left: 50%; transform: translateX(-50%);
    top: 32px; white-space: nowrap;
    font-size: 11px; font-weight: 600; color: var(--text, #fff);
    text-shadow: 0 1px 3px rgba(0,0,0,.8);
    pointer-events: none;
}

/* ===== Incident detail page ===== */
.inc-header {
    padding: 16px 20px; margin-bottom: 20px; border-radius: 10px;
    background: var(--bg); border: 1px solid var(--border);
}
.inc-header-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.inc-header-badges { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.inc-disc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.inc-header-time { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.inc-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; line-height: 1.3; }
.inc-body-text { font-size: 14px; color: var(--text-muted); margin: 0 0 8px; }
.inc-header-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); }
.inc-meta-loc, .inc-meta-dur, .inc-meta-region { display: flex; align-items: center; gap: 4px; }
.inc-meta-loc svg { flex-shrink: 0; opacity: 0.6; }

/* Two-column grid */
.inc-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.inc-col-main { display: flex; flex-direction: column; gap: 16px; }
.inc-col-side { display: flex; flex-direction: column; gap: 16px; }

/* Map */
.inc-map { height: 280px; border-radius: 8px; }

/* Timeline */
.inc-timeline { position: relative; padding-left: 24px; }
.inc-timeline::before {
    content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px;
    width: 2px; background: var(--border);
}
.inc-tl-item { position: relative; padding-bottom: 16px; }
.inc-tl-item:last-child { padding-bottom: 0; }
.inc-tl-dot {
    position: absolute; left: -24px; top: 4px;
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--bg); box-shadow: 0 0 0 1px var(--border);
    z-index: 1;
}
.inc-tl-first .inc-tl-dot { width: 14px; height: 14px; left: -25px; top: 3px; }
.inc-tl-content { }
.inc-tl-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.inc-tl-meta time { font-size: 12px; font-weight: 600; color: var(--text); font-family: 'SF Mono','Menlo','Consolas',monospace; }
.inc-tl-disc { font-size: 11px; font-weight: 600; }
.inc-tl-prio { font-size: 10px; font-weight: 600; color: var(--text-muted); }
.inc-tl-station { font-size: 11px; font-weight: 600; color: var(--text-muted); margin-left: 4px; }
.inc-tl-body { font-size: 13px; line-height: 1.5; color: var(--text); word-break: break-word; }
.inc-tl-units {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    display: none;
}
.show-capcodes .inc-tl-units { display: block; }
.inc-tl-cc-toggle { background: var(--bg-card, #fff); border: 1px solid var(--border, #ddd); border-radius: 6px; padding: 2px 8px; font-size: 11px; color: var(--text-muted, #666); cursor: pointer; line-height: 1.4; }
.inc-tl-cc-toggle.on { background: var(--primary, #3182ce); color: #fff; border-color: var(--primary, #3182ce); }

/* Timeline events (escalation, closure) */
.inc-tl-event { position: relative; padding: 8px 0; }
.inc-tl-event .inc-tl-dot { left: -24px; top: 14px; width: 10px; height: 10px; }
.inc-tl-event-label { font-size: 12px; font-weight: 600; color: var(--text-muted); font-style: italic; }

/* Escalation banner */
.inc-tl-esc-banner {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 600;
    letter-spacing: .02em;
}
.inc-tl-esc-banner svg { flex-shrink: 0; }
.inc-tl-esc-up .inc-tl-dot { background: #e74c3c; }
.inc-tl-esc-up .inc-tl-esc-banner {
    background: rgba(231, 76, 60, .1); color: #e74c3c; border: 1px solid rgba(231, 76, 60, .25);
}
.inc-tl-esc-grip .inc-tl-dot { background: #8e44ad; }
.inc-tl-esc-grip .inc-tl-esc-banner {
    background: rgba(142, 68, 173, .1); color: #8e44ad; border: 1px solid rgba(142, 68, 173, .25);
}
.inc-tl-esc-down .inc-tl-dot { background: #27ae60; }
.inc-tl-esc-down .inc-tl-esc-banner {
    background: rgba(39, 174, 96, .1); color: #27ae60; border: 1px solid rgba(39, 174, 96, .25);
}
.inc-tl-esc-down .inc-tl-esc-banner svg { transform: rotate(180deg); }

/* Live status pill */
.inc-live-pill {
    font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px;
    display: inline-flex; align-items: center; gap: 4px;
}
.inc-live-pill::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; display: inline-block;
}
.inc-live-on { color: #27ae60; }
.inc-live-on::before { background: #27ae60; animation: gem-pulse 2s ease-in-out infinite; }
.inc-live-conn { color: var(--text-muted); }
.inc-live-conn::before { background: #f39c12; }
.inc-live-off { color: var(--text-muted); }
.inc-live-off::before { background: #aaa; }

/* New item animation */
@keyframes seo-flash-in {
    0% { background: rgba(52, 152, 219, .15); }
    100% { background: transparent; }
}
.inc-tl-new { animation: seo-flash-in 2s ease-out; }

/* Vehicle cards */
.inc-vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.inc-vehicle-card {
    display: block; padding: 10px 12px; border-radius: 8px;
    border: 1px solid var(--border); text-decoration: none; color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.inc-vehicle-card:hover { border-color: var(--border2, var(--border)); box-shadow: 0 2px 6px rgba(0,0,0,.06); text-decoration: none; }
.inc-vehicle-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.inc-vehicle-id { font-size: 13px; font-weight: 600; font-family: 'SF Mono','Menlo','Consolas',monospace; }
.inc-vehicle-disc { font-size: 10px; font-weight: 600; }
.inc-vehicle-name { font-size: 12px; font-weight: 500; margin-bottom: 2px; }
.inc-vehicle-meta { font-size: 11px; color: var(--text-muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* Capcodes */
.inc-capcodes { display: flex; flex-direction: column; gap: 4px; }
.inc-capcode { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; border-bottom: 1px solid var(--border); }
.inc-capcode:last-child { border-bottom: none; }
.inc-capcode code { font-size: 12px; color: var(--text-muted); min-width: 60px; }

/* Station items */
.inc-station-item { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.inc-station-item:last-child { border-bottom: none; }
.inc-station-item a { color: var(--text); text-decoration: none; font-weight: 500; }
.inc-station-item a:hover { text-decoration: underline; }

/* Related incidents (compact list) */
.inc-related-list { display: flex; flex-direction: column; }
.inc-related-item {
    display: flex; align-items: center; gap: 8px; padding: 6px 8px;
    border-bottom: 1px solid var(--border); text-decoration: none; color: inherit;
    font-size: 13px; transition: background .1s;
}
.inc-related-item:last-child { border-bottom: none; }
.inc-related-item:hover { background: var(--bg-alt, rgba(0,0,0,.04)); text-decoration: none; }
.inc-related-badges { display: flex; gap: 2px; flex-shrink: 0; }
.inc-related-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 4px; font-size: 11px;
    font-weight: 700; color: #fff; line-height: 1;
}
.inc-related-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.inc-related-meta { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.inc-related-time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }

/* Quick stats */
.inc-quick-stats { }
.inc-qs-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.inc-qs-row:last-child { border-bottom: none; }
.inc-qs-row span { color: var(--text-muted); }
.inc-qs-row strong { color: var(--text); }

/* Mobile */
@media (max-width: 800px) {
    .inc-grid { grid-template-columns: 1fr; }
    .inc-col-side { order: -1; }
    .inc-map { height: 220px; }
    .inc-title { font-size: 18px; }
}

@media (max-width: 600px) {
    .gem-map { height: 280px; }
    .gem-header { flex-direction: column; gap: 8px; }
    .ic { padding: 10px 12px; }
    .ic-footer { flex-direction: column; }
    .ic-footer-meta { margin-left: 0; }
    .ic-meta { padding-left: 0; }
    .ic-city { display: none; }
    .inc-header { padding: 12px 14px; }
    .inc-vehicles { grid-template-columns: 1fr; }
}
