/* ==========================================================================
   Digitaal Logboek - Aansluiten
   Tokens, layout, components
   ========================================================================== */

:root {
    --bg:           #efefef;
    --surface:      #ffffff;
    --surface-soft: #f8fafc;
    --surface-mute: #f1f5f9;

    --ink:    #0f172a;
    --ink-2:  #334155;
    --muted:  #64748b;
    --line:   #e2e8f0;
    --line-2: #cbd5e1;

    --primary:      #e03529;
    --primary-dark: #ba1e18;
    --primary-soft: #ffebe6;

    --green:      #0d9488;
    --green-soft: #ecfdf5;
    --amber:      #b45309;
    --amber-soft: #fffbeb;
    --info:       #0369a1;
    --info-soft:  #eff6ff;
    --danger:     #b91c1c;
    --danger-soft:#fef2f2;

    --code-bg: #0b1220;
    --code-fg: #f4f7fb;

    --maxw:      1160px;
    --gutter:    clamp(1.25rem, 2.5vw, 2rem);
    --radius:    14px;
    --radius-sm: 8px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow:    0 4px 10px rgba(15, 23, 42, 0.05), 0 10px 25px rgba(15, 23, 42, 0.06);

    --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }

a { color: var(--primary); text-decoration: none; transition: color 150ms ease; }
a:hover { color: var(--primary-dark); }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

code, pre { font-family: var(--mono); font-size: 0.875em; }

code:not(pre code) {
    background: var(--surface-mute);
    border: 1px solid var(--line);
    padding: 0.1em 0.4em;
    border-radius: 4px;
    color: var(--ink);
    font-size: 0.82em;
}

button { font: inherit; cursor: pointer; }

input, textarea, select {
    font: inherit;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    width: 100%;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}
input:focus, textarea:focus, select:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(224, 53, 41, 0.15);
}
textarea { resize: vertical; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
    max-width: var(--maxw);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ===== Buttons ===== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.6rem 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 100ms ease, box-shadow 150ms ease;
    text-decoration: none;
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line);
    white-space: nowrap;
}
.btn:hover { border-color: var(--line-2); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(224, 53, 41, 0.20);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }

.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-mute); color: var(--ink); border-color: transparent; }

.try-icon { display: inline-block; font-size: 0.7rem; }
.try.is-loading { pointer-events: none; opacity: 0.7; }
.try.is-loading .try-icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Header ===== */

.site-header {
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: saturate(180%) blur(8px);
    background: rgba(255, 255, 255, 0.92);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    height: 100px;
}

.brand { display: flex; align-items: center; }
.brand-area { display: flex; align-items: center; gap: 0.85rem; }
.brand-divider { width: 1px; height: 30px; background: var(--line-2); flex-shrink: 0; }
.brand-context { font-size: 0.92rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
@media (max-width: 480px) {
    .brand-divider, .brand-context { display: none; }
}
.brand img { display: block; }

.header-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.875rem;
}
.header-links a { color: var(--ink-2); }
.header-links a:hover { color: var(--primary); }

@media (max-width: 720px) {
    .header-links { display: none; }
}

/* ===== Key bar ===== */

.key-bar {
    background: #0f172a;
    color: #e2e8f0;
    position: sticky;
    top: 100px;
    z-index: 25;
    border-bottom: 1px solid #1e293b;
}
.key-bar-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    flex-wrap: wrap;
}
.key-bar-left { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.key-status { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: #cbd5e1; }
.key-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #64748b;
    transition: background-color 200ms ease, box-shadow 200ms ease;
}
.key-status[data-state="active"] .key-dot {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.env-pill {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: rgba(224, 53, 41, 0.12);
    border: 1px solid rgba(224, 53, 41, 0.3);
    color: #fca5a5;
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em;
    padding: 0.25rem 0.5rem; border-radius: 9999px;
}
.env-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.key-bar-right { display: flex; align-items: center; gap: 0.5rem; flex: 1; min-width: 280px; }
.key-bar-right input {
    background: #1e293b; color: #f1f5f9; border: 1px solid #334155;
    padding: 0.5rem 0.75rem; font-size: 0.875rem; flex: 1;
}
.key-bar-right input::placeholder { color: #64748b; }
.key-bar-right input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(224, 53, 41, 0.2); }
.key-bar-right .btn-ghost { color: #cbd5e1; padding: 0.5rem 0.85rem; font-size: 0.85rem; }
.key-bar-right .btn-ghost:hover { background: #1e293b; color: #fff; }
.key-bar-note { font-size: 0.78rem; color: #94a3b8; padding-bottom: 0.6rem; }
.key-bar-note a { color: #fca5a5; text-decoration: underline; text-underline-offset: 2px; }
.key-bar-note a:hover { color: #fff; }

/* ===== Hero ===== */

.hero {
    position: relative;
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; max-width: 820px; }

.back-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 1rem;
}
.back-link:hover { color: var(--primary); }

.eyebrow {
    color: var(--primary);
    font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1.25rem; }
.lead {
    color: var(--ink-2);
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    max-width: 62ch; margin-bottom: 2rem;
}
.hero-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== Role picker (landing) ===== */

.roles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 720px;
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.role-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.role-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 13px;
    background: var(--surface-mute);
    color: var(--muted);
}
.role-icon svg { width: 30px; height: 30px; }

.role-body { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.role-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.role-name { font-weight: 700; font-size: 1.12rem; color: var(--ink); }
.role-desc { color: var(--ink-2); font-size: 0.92rem; }

.role-badge {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.55rem;
    border-radius: 9999px;
    background: var(--surface-mute);
    color: var(--muted);
}
.role-badge--ready { background: var(--green-soft); color: var(--green); }

.role-cta { font-weight: 600; font-size: 0.9rem; color: var(--primary); margin-top: 0.2rem; }
.role-cta--muted { color: var(--muted); }

.role-card--active { cursor: pointer; }
.role-card--active:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(224, 53, 41, 0.4);
}
.role-card--active .role-icon { background: var(--primary-soft); color: var(--primary-dark); }

.role-card--soon { opacity: 0.72; }
.role-card--soon .role-name { color: var(--ink-2); }

@media (max-width: 520px) {
    .role-card { flex-direction: column; gap: 0.9rem; }
}

/* ===== Layout (sidebar + main) ===== */

.layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
    align-items: flex-start;
}
@media (max-width: 960px) {
    .layout { grid-template-columns: 1fr; }
}

/* ===== TOC ===== */

.toc {
    position: sticky;
    top: 200px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding-right: 0.5rem;
}
@media (max-width: 960px) {
    .toc {
        position: relative; top: auto;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: 1rem 1.25rem; margin-bottom: 1rem;
    }
}
.toc-title {
    font-size: 0.72rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--muted); margin-bottom: 0.75rem;
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 0.15rem; }
.toc-list a {
    display: flex; align-items: center; gap: 0.65rem;
    padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
    color: var(--ink-2); font-size: 0.9rem; font-weight: 500;
    transition: background-color 150ms ease, color 150ms ease;
}
.toc-list a:hover { background: var(--surface-mute); color: var(--ink); }
.toc-list a.is-active { background: var(--primary-soft); color: var(--primary-dark); }
.toc-list a.is-active .toc-num { background: var(--primary); color: #fff; border-color: var(--primary); }
.toc-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 6px;
    background: var(--surface); border: 1px solid var(--line);
    font-size: 0.72rem; font-weight: 600; color: var(--muted);
    flex-shrink: 0;
    transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

/* ===== Steps ===== */

.steps { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 4.5rem); }

.step {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    scroll-margin-top: 210px;
    box-shadow: var(--shadow-sm);
    opacity: 0; transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease, box-shadow 200ms ease;
}
.step.is-in { opacity: 1; transform: translateY(0); }
.step:hover { box-shadow: var(--shadow); }

.step-head { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff; font-weight: 700; font-size: 1.25rem; flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(224, 53, 41, 0.25);
}
.step-eyebrow {
    color: var(--muted); font-size: 0.75rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.25rem;
}
.step h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.step-body { display: flex; flex-direction: column; gap: 1.25rem; color: var(--ink-2); }
.step-body h3 { color: var(--ink); font-size: 1.05rem; margin-top: 0.5rem; }

/* ===== Wel/Niet ===== */

.welniet { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .welniet { grid-template-columns: 1fr; } }
.welniet-card { padding: 1.25rem 1.4rem; border-radius: var(--radius); border: 1px solid; }
.welniet-card ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; }
.welniet-card li { color: var(--ink-2); font-size: 0.93rem; }
.welniet-label {
    font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em;
    text-transform: uppercase; margin-bottom: 0.75rem;
}
.welniet-yes { background: var(--green-soft); border-color: rgba(13, 148, 136, 0.25); }
.welniet-yes .welniet-label { color: var(--green); }
.welniet-yes li::marker { color: var(--green); }
.welniet-no { background: var(--primary-soft); border-color: rgba(224, 53, 41, 0.25); }
.welniet-no .welniet-label { color: var(--primary-dark); }
.welniet-no li::marker { color: var(--primary); }

/* ===== Callouts ===== */

.callout {
    padding: 1rem 1.2rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid;
    background: var(--surface-soft);
    font-size: 0.93rem;
}
.callout p { color: var(--ink-2); }
.callout strong { color: var(--ink); }
.callout-info { border-left-color: var(--info); background: var(--info-soft); }
.callout-warn { border-left-color: var(--amber); background: var(--amber-soft); }

.callout-danger {
    border-left-width: 4px;
    border-left-color: var(--danger);
    background: var(--danger-soft);
    border-top: 1px solid rgba(185, 28, 28, 0.15);
    border-right: 1px solid rgba(185, 28, 28, 0.15);
    border-bottom: 1px solid rgba(185, 28, 28, 0.15);
}
.callout-danger strong { color: var(--danger); letter-spacing: 0.02em; }

/* ===== Code block ===== */

.code-block {
    position: relative;
    background: var(--code-bg);
    border-radius: var(--radius-sm);
    padding: 1rem 1.2rem;
    overflow-x: auto;
}
.code-block pre { margin: 0; }
.code-block code {
    color: var(--code-fg); background: none; border: none; padding: 0;
    font-size: 0.85rem; line-height: 1.55; white-space: pre;
    font-weight: 500;
}
.code-copy {
    position: absolute; top: 0.5rem; right: 0.5rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px; font-size: 0.72rem;
    transition: background-color 150ms ease, color 150ms ease;
}
.code-copy:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.code-copy.copied { background: rgba(34, 197, 94, 0.20); color: #86efac; border-color: rgba(34, 197, 94, 0.35); }

/* ===== Response panel ===== */

.response-panel {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    animation: panel-in 280ms ease;
}
@keyframes panel-in {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.response-meta {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    font-size: 0.82rem; color: var(--muted);
    font-family: var(--mono);
}
.response-meta .status {
    font-weight: 700; padding: 0.15rem 0.55rem;
    border-radius: 4px; font-size: 0.75rem;
}
.response-meta .status.ok   { background: rgba(13, 148, 136, 0.15); color: var(--green); }
.response-meta .status.err  { background: rgba(224, 53, 41, 0.15);  color: var(--primary-dark); }
.response-meta .status.warn { background: rgba(180, 83, 9, 0.15);   color: var(--amber); }
.response-body {
    padding: 1rem 1.2rem;
    margin: 0;
    background: var(--code-bg);
    max-height: 22rem;
    overflow: auto;
}
.response-body code {
    color: var(--code-fg); background: none; border: 0; padding: 0;
    font-size: 0.83rem; white-space: pre;
    font-weight: 500;
}

/* ===== Tabs ===== */

.tabs { display: flex; flex-direction: column; gap: 1rem; }
.tab-list {
    display: flex; gap: 0.25rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.5rem; flex-wrap: wrap;
}
.tab {
    background: none; border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.65rem 1rem; margin-bottom: -1px;
    font-size: 0.9rem; font-weight: 500; color: var(--muted);
    transition: color 150ms ease, border-color 150ms ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--primary-dark); border-bottom-color: var(--primary); }
.tab-panel { display: flex; flex-direction: column; gap: 0.9rem; padding: 0.5rem 0; }

/* ===== Fields ===== */

.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field > span { font-size: 0.82rem; font-weight: 500; color: var(--ink-2); }
.field > span small { color: var(--muted); font-weight: 400; margin-left: 0.4em; }
.field-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

/* ===== Codes table ===== */

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}
table.codes { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.codes th, table.codes td {
    text-align: left; padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--line);
}
table.codes th {
    background: var(--surface-mute); font-weight: 600;
    color: var(--ink); font-size: 0.85rem;
}
table.codes tbody tr:last-child td { border-bottom: 0; }
table.codes td:first-child { width: 5em; }
table.codes code { font-weight: 600; }

/* ===== Checklist ===== */

.checklist { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.checklist li { position: relative; padding-left: 1.8rem; color: var(--ink-2); }
.checklist li::before {
    content: "";
    position: absolute; left: 0.2rem; top: 0.4em;
    width: 1rem; height: 1rem;
    border: 2px solid var(--line-2); border-radius: 4px;
    background: var(--surface);
}

/* ===== Footer ===== */

.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: clamp(2rem, 4vw, 3rem) 0;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--ink-2);
}
.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}
.footer-title {
    font-weight: 700; color: var(--ink);
    margin-bottom: 0.75rem; font-size: 0.85rem;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.footer-col a { color: var(--ink-2); }
.footer-col a:hover { color: var(--primary); }

/* ==========================================================================
   Testinstallatie picker (NL-kaart)
   ========================================================================== */

.picker { padding: clamp(1.5rem, 4vw, 2.5rem) 0 0; }

.picker-head { max-width: 720px; margin-bottom: 1.5rem; }
.picker-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.6rem; }
.picker-intro { color: var(--ink-2); font-size: 0.97rem; }

.picker-grid {
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: var(--shadow-sm);
    align-items: start;
}
@media (max-width: 760px) {
    .picker-grid { grid-template-columns: 1fr; }
}

/* --- map --- */
.picker-map { display: flex; justify-content: center; }
.map-stage {
    position: relative;
    width: 100%;
    max-width: 320px;
}
.nl-map { display: block; width: 100%; height: auto; }

.map-pin {
    position: absolute;
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    background: none;
    border: 0;
    cursor: pointer;
    transform: translate(-50%, -50%);
    z-index: 1;
}
.map-pin-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid #fff;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.35);
    transition: transform 150ms ease, box-shadow 150ms ease;
}
.map-pin-label {
    position: absolute;
    top: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink-2);
    background: rgba(255, 255, 255, 0.88);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    pointer-events: none;
    transition: color 150ms ease;
}
.map-pin:hover { z-index: 3; }
.map-pin:hover .map-pin-dot { transform: scale(1.25); }
.map-pin:focus-visible { outline: none; }
.map-pin:focus-visible .map-pin-dot {
    transform: scale(1.25);
    box-shadow: 0 0 0 4px rgba(224, 53, 41, 0.30);
}
.map-pin.is-active { z-index: 2; }
.map-pin.is-active .map-pin-dot {
    transform: scale(1.45);
    box-shadow: 0 0 0 5px rgba(224, 53, 41, 0.22), 0 1px 4px rgba(15, 23, 42, 0.35);
}
.map-pin.is-active .map-pin-label {
    color: var(--primary-dark);
    background: #fff;
}

/* --- installation list --- */
.picker-side { display: flex; flex-direction: column; gap: 0.85rem; }
.inst-list { display: flex; flex-direction: column; gap: 0.4rem; }

.inst-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    width: 100%;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    transition: border-color 140ms ease, background-color 140ms ease, transform 80ms ease;
}
.inst-row:hover { border-color: var(--line-2); background: var(--surface-soft); }
.inst-row:active { transform: translateY(1px); }
.inst-row:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.inst-row.is-active { border-color: var(--primary); background: var(--primary-soft); }

.inst-row-l1 { display: flex; align-items: center; gap: 0.5rem; }
.inst-row-l2 { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
.inst-city { font-weight: 600; color: var(--ink); font-size: 0.9rem; }

.inst-badge {
    font-size: 0.66rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.04em;
    padding: 0.16rem 0.42rem; border-radius: 4px;
    flex-shrink: 0;
}
.inst-badge--lift    { background: var(--info-soft);  color: var(--info); }
.inst-badge--roltrap { background: var(--amber-soft); color: var(--amber); }
.inst-manu { font-size: 0.78rem; color: var(--ink-2); white-space: nowrap; }
.inst-id {
    font-size: 0.72rem !important;
    background: var(--surface-mute);
    color: var(--ink-2);
    white-space: nowrap;
}

.picker-selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--green-soft);
    border: 1px solid rgba(13, 148, 136, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.95rem;
    font-size: 0.88rem;
    animation: panel-in 240ms ease;
}
.picker-selected-text { color: var(--ink-2); }
.picker-selected-link { font-weight: 600; white-space: nowrap; }


/* ==========================================================================
   Disclosure (uitklap testinstallaties)
   ========================================================================== */

.disclose {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface-soft);
    overflow: hidden;
}
.disclose-trigger {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1.1rem;
    background: none;
    border: 0;
    cursor: pointer;
    transition: background-color 140ms ease;
}
.disclose-trigger:hover { background: var(--surface-mute); }
.disclose-trigger:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.disclose-label { flex: 1; display: flex; flex-direction: column; gap: 0.12rem; min-width: 0; }
.disclose-title { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.disclose-sub { font-size: 0.82rem; color: var(--muted); }
.disclose-chev {
    display: flex;
    color: var(--muted);
    flex-shrink: 0;
    transition: transform 280ms ease;
}
.disclose.is-open .disclose-chev { transform: rotate(180deg); }
.disclose.is-open .disclose-trigger { background: var(--surface-mute); }

.disclose-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 300ms ease;
}
.disclose.is-open .disclose-panel { grid-template-rows: 1fr; }
.disclose-inner { overflow: hidden; }
.disclose-content {
    padding: 1rem 1.1rem 1.25rem;
    border-top: 1px solid var(--line);
}
.disclose-content .picker-intro { margin-bottom: 1rem; font-size: 0.9rem; }

/* picker-grid binnen de disclosure: geen dubbele kaart-styling */
.disclose .picker-grid {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}


/* ==========================================================================
   Keuringstype-tags + accent-disclosure + notitie
   ========================================================================== */

.ktag {
    display: inline-block;
    font-weight: 600;
    font-size: 0.85em;
    padding: 0.05em 0.5em;
    border-radius: 4px;
    white-space: nowrap;
    background: #ffffff;
    color: var(--green);
    border: 1px solid rgba(13, 148, 136, 0.35);
}

.disclose--accent {
    border: 1.5px solid rgba(224, 53, 41, 0.38);
    background: var(--primary-soft);
}
.disclose--accent .disclose-trigger { gap: 0.9rem; }
.disclose--accent .disclose-trigger:hover { background: rgba(224, 53, 41, 0.10); }
.disclose--accent.is-open .disclose-trigger { background: rgba(224, 53, 41, 0.08); }
.disclose--accent .disclose-title { font-size: 1.06rem; }
.disclose--accent .disclose-sub { color: var(--primary-dark); opacity: 0.85; }
.disclose--accent .disclose-content { border-top-color: rgba(224, 53, 41, 0.2); background: var(--surface); }

.disclose-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(224, 53, 41, 0.28);
}
.disclose-icon svg { width: 22px; height: 22px; }

.picker-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--muted);
    font-style: italic;
}
