/* ===== Zoeken door alles + AI-dossier (js/search.js) ===== */
.gs-wrap { position: relative; display: flex; align-items: center; width: 260px; height: 42px; margin-right: 4px;
    border-radius: 999px; border: 1px solid rgba(0,60,113,0.16); background: var(--card, #fff);
    box-shadow: 0 2px 8px rgba(0,60,113,0.06); transition: width .25s ease, box-shadow .2s ease, border-color .2s ease; }
.gs-wrap:focus-within { width: 380px; border-color: #1E88E5; box-shadow: 0 0 0 4px rgba(30,136,229,.15); }
.gs-ic { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.gs-wrap input { flex: 1; min-width: 0; height: 100%; padding: 0 34px 0 38px; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; outline: none; }
.gs-wrap input::-webkit-search-cancel-button { display: none; }
.gs-kbd { position: absolute; right: 12px; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border, #cbd5e1); color: var(--muted); font-size: .72rem; font-family: inherit; }
.gs-wrap:focus-within .gs-kbd { display: none; }
.gs-results { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 1001; max-height: 70vh; overflow: auto; padding: 6px;
    background: var(--card, #fff); border: 1px solid var(--border, #cbd5e1); border-radius: 16px; box-shadow: 0 14px 34px rgba(0,0,0,.22); animation: gsIn .14s ease-out; }
.gs-results[hidden] { display: none; }
.gs-results button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 10px;
    background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; border-left: 3px solid transparent; }
.gs-results button:hover, .gs-results button.is-active { background: rgba(30,136,229,.1); border-left-color: var(--c, #1E88E5); }
.gs-results .gs-ai { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 4px; padding: 12px 14px; color: #fff;
    background: linear-gradient(135deg, #011E41, #1E88E5 60%, #7E57C2); border-left: 0; }
.gs-results .gs-ai:hover { filter: brightness(1.1); background: linear-gradient(135deg, #011E41, #1E88E5 60%, #7E57C2); }
.gs-results .gs-ai span { font-size: .78rem; opacity: .85; }
.gs-group { padding: 8px 12px 2px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--c, var(--muted)); }
.gs-name { font-weight: 700; white-space: nowrap; }
.gs-meta { color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gs-av { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.gs-av.gs-photo { width: 38px; height: 28px; border-radius: 5px; flex: none; }
.gs-empty { padding: 12px; color: var(--muted); font-size: .88rem; }
[data-theme="dark"] .gs-wrap { border-color: rgba(91,184,232,0.28); }
@keyframes gsIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 1100px) { .gs-wrap { width: 180px; } .gs-wrap:focus-within { width: 280px; } .gs-kbd { display: none; } }

/* Dossier */
.gs-dossier { width: min(1200px, 96vw); height: min(92vh, 1100px); max-width: none; max-height: none; padding: 0; border: 0; border-radius: 24px;
    background: var(--bg); color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; }
.gs-dossier[open] { display: flex; animation: gsdIn .28s cubic-bezier(.2,.8,.2,1); }
.gs-dossier::backdrop { background: rgba(1,30,65,.6); backdrop-filter: blur(3px); }
@keyframes gsdIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.gsd-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; color: #fff;
    background: linear-gradient(120deg, #011E41, #003C71 45%, #1E88E5 85%, #7E57C2); position: relative; overflow: hidden; }
.gsd-head::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% -20%, rgba(255,255,255,.18), transparent 50%); pointer-events: none; }
.gsd-head small { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; opacity: .75; font-size: .72rem; }
.gsd-head h2 { margin: 2px 0 0; font-size: 1.6rem; }
.gsd-head .btn { position: relative; z-index: 1; background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.35); }
.gsd-body { flex: 1; overflow: auto; padding: 20px 24px 28px; display: flex; flex-direction: column; gap: 16px; }
.gsd-loading { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 50vh; color: var(--muted); font-size: 1.05rem; }
.gsd-spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(30,136,229,.2); border-top-color: #1E88E5; animation: ringSpin .8s linear infinite; }
.gsd-error { color: #D13212; }
.gsd-empty { padding: 60px; text-align: center; color: var(--muted); }
.gsd-hero, .gsd-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow-card); animation: gsdIn .35s ease-out both; }
.gsd-hero { border-left: 5px solid #1E88E5; }
.gsd-kind { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; color: #fff; background: linear-gradient(135deg, #0F9D8A, #1E88E5); margin-bottom: 10px; cursor: help; }
.gsd-summary { font-size: 1.05rem; line-height: 1.55; margin: 0 0 14px; }
.gsd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gsd-fact { padding: 10px 12px; border-radius: 12px; background: var(--card-elev, rgba(0,60,113,.05)); border-top: 3px solid #1E88E5; animation: gsdIn .4s ease-out both; }
.gsd-fact small { display: block; color: var(--muted); font-size: .74rem; }
.gsd-fact b { font-size: 1.05rem; }
.gsd-attn { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(224,122,0,.10); border: 1px solid rgba(224,122,0,.35); }
.gsd-attn ul { margin: 6px 0 0; padding-left: 20px; }
.gsd-advice { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: rgba(0,194,122,.10); border: 1px solid rgba(0,194,122,.35); }
.gsd-counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gsd-counts span { padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.gsd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.gsd-card h3 { margin: 0 0 12px; font-size: 1rem; }
#gsd-map { height: 320px; border-radius: 12px; }
.gsd-tl { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 3px solid var(--border); display: grid; gap: 10px; max-height: 320px; overflow: auto; }
.gsd-tl li { position: relative; }
.gsd-tl li::before { content: ''; position: absolute; left: -24px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: #1E88E5; border: 2px solid var(--card); }
.gsd-tl time { display: block; font-size: .75rem; font-weight: 700; color: var(--muted); }
.gsd-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.gsd-charts figure { margin: 0; padding: 10px; border-radius: 12px; background: var(--card-elev, rgba(0,60,113,.04)); height: 230px; display: flex; flex-direction: column; }
.gsd-charts figcaption { font-size: .82rem; margin-bottom: 6px; }
.gsd-charts figcaption small { color: var(--muted); }
.gsd-charts canvas { flex: 1; min-height: 0; }
.gsd-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gsd-photos figure { margin: 0; }
.gsd-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px; background: var(--card-elev, #e2e8f0); cursor: zoom-in; transition: transform .2s ease; display: block; }
.gsd-photos img:hover { transform: scale(1.03); }
.gsd-photos figcaption { font-size: .75rem; color: var(--muted); margin-top: 4px; }
.gsd-items { display: grid; gap: 12px; }
.gsd-item { padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); border-left: 4px solid var(--c); }
.gsd-item header { display: flex; gap: 10px; align-items: center; }
.gsd-item header small { display: block; color: var(--muted); font-size: .8rem; }
.gsd-ic { font-size: 1.3rem; }
.gsd-item dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px 14px; margin: 10px 0 0; }
.gsd-item dt { font-size: .72rem; color: var(--muted); text-transform: capitalize; }
.gsd-item dd { margin: 0; font-weight: 600; }
.gsd-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .84rem; }
.gsd-table th { background: var(--card-elev, #f1f5f9); color: var(--muted); font-weight: 700; text-align: left; padding: 6px 8px; }
.gsd-table td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.gsd-j { padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.gsd-j-ok { color: #00875A; background: rgba(0,135,90,.12); } .gsd-j-warn { color: #E07A00; background: rgba(224,122,0,.12); } .gsd-j-bad { color: #D13212; background: rgba(209,50,18,.12); }
@media (max-width: 700px) { .gsd-body { padding: 14px; } .gsd-head h2 { font-size: 1.25rem; } }

/* Keuze bij meerdere treffers */
.gs-go { margin-left: auto; opacity: .6; }
.gsd-hint { margin: 0; color: var(--muted); }
.gsd-choose { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.gsd-pick { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px 16px; text-align: left; cursor: pointer;
    border: 1px solid var(--border); border-top: 4px solid var(--c); border-radius: 16px; background: var(--card); color: var(--text); font: inherit;
    box-shadow: var(--shadow-card); transition: transform .15s ease, box-shadow .2s ease; animation: gsdIn .35s ease-out both; }
.gsd-pick:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0,60,113,.2); }
.gsd-pick-ic { font-size: 1.4rem; }
.gsd-pick b { font-size: 1.1rem; }
.gsd-pick small { color: var(--c); font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.gsd-pick-sub { color: var(--muted); font-size: .8rem; }
.gsd-pick-go { margin-top: 6px; font-size: .78rem; font-weight: 700; color: #1E88E5; }
