/* ==========================================================
   DroneLogbook — donker instrumentthema
   Een VFR-kaart bij nacht: diep marineblauw, witte OSD-cijfers,
   magenta voor alles wat met jouw vluchten te maken heeft.
   ========================================================== */

:root {
    color-scheme: dark;

    --nacht: #0B1622;         /* bovenbalk, OSD en replay */
    --papier: #122030;        /* paginagrond */
    --vlak: #1A2B3E;          /* panelen */
    --veld: #0F1B29;          /* invoervelden en verdiepte vlakken */
    --inkt: #E6ECE8;          /* tekst en lijnen */
    --inkt-zacht: #9AABBC;    /* secundaire tekst */
    --hoogtelijn: #2E4358;    /* randen */
    --hoogtelijn-licht: #233649;
    --luchtruim: #B42A7E;     /* accent: knoppen en vlakken */
    --luchtruim-donker: #8E1F62;
    --luchtruim-licht: #F27BB8; /* accent: tekst en lijnen op donker */
    --water: #74AEE3;
    --water-licht: #1B3550;
    --gevaar: #F06A6F;
    --gevaar-donker: #FF9EA1;

    --letter: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

    --ruimte-1: 4px;
    --ruimte-2: 8px;
    --ruimte-3: 12px;
    --ruimte-4: 16px;
    --ruimte-5: 24px;
    --ruimte-6: 36px;
    --ruimte-7: 56px;

    --rond: 6px;
    --pagina-breedte: 1360px;
    --focus: 0 0 0 3px var(--papier), 0 0 0 5px var(--luchtruim);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--inkt);
    font-family: var(--letter);
    font-size: 16px;
    line-height: 1.5;
    font-variation-settings: "wdth" 100;
}

a {
    color: var(--water);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--inkt);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
    border-radius: 3px;
}

/* ---------- Typografie ---------- */

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
    font-stretch: 125%;
    font-variation-settings: "wdth" 125;
}

h1 {
    font-size: clamp(30px, 4.4vw, 46px);
    font-weight: 800;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 22px;
    font-weight: 700;
}

h3 {
    font-size: 17px;
    font-weight: 700;
}

.inleiding {
    margin: var(--ruimte-3) 0 0;
    max-width: 60ch;
    color: var(--inkt-zacht);
    font-size: 18px;
}

/* ---------- Bovenbalk ---------- */

.balk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ruimte-3) var(--ruimte-5);
    padding: var(--ruimte-4) clamp(16px, 4vw, 48px);
    background: var(--nacht);
    color: var(--inkt);
    border-bottom: 1px solid var(--hoogtelijn-licht);
}

.merk {
    display: inline-flex;
    align-items: center;
    gap: var(--ruimte-3);
    color: var(--inkt);
    text-decoration: none;
    font-weight: 800;
    font-size: 19px;
    font-variation-settings: "wdth" 125;
}

.merk:hover {
    color: #fff;
}

.merk-teken {
    width: 28px;
    height: 28px;
    color: #E07DB8;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ruimte-1);
    margin: 0;
    padding: 0;
    list-style: none;
}

.menu a {
    display: block;
    padding: var(--ruimte-2) var(--ruimte-3);
    border-radius: var(--rond);
    color: #C9D3DC;
    text-decoration: none;
    font-weight: 500;
}

.menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.menu a[aria-current="page"] {
    color: #fff;
    box-shadow: inset 0 -3px 0 #E07DB8;
    border-radius: var(--rond) var(--rond) 0 0;
}

/* ---------- Pagina-opbouw ---------- */

.pagina {
    max-width: var(--pagina-breedte);
    margin: 0 auto;
    padding: var(--ruimte-6) clamp(16px, 4vw, 48px) var(--ruimte-7);
}

.pagina-smal {
    max-width: 860px;
}

.paginakop {
    margin-bottom: var(--ruimte-6);
}

.sectie {
    margin-top: var(--ruimte-7);
}

.sectie-kop {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--ruimte-2) var(--ruimte-4);
    padding-bottom: var(--ruimte-3);
    margin-bottom: var(--ruimte-4);
    border-bottom: 2px solid var(--inkt);
}

.sectie-kop p {
    margin: 0;
    color: var(--inkt-zacht);
}

.paneel {
    background: var(--vlak);
    border: 1px solid var(--hoogtelijn);
    border-radius: 10px;
    padding: clamp(18px, 3vw, 32px);
}

/* ---------- Formulieren ---------- */

.formulier {
    display: grid;
    gap: var(--ruimte-6);
}

.veldgroep {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.veldgroep > legend {
    padding: 0;
    margin-bottom: var(--ruimte-4);
    font-size: 17px;
    font-weight: 700;
    font-variation-settings: "wdth" 125;
}

.velden {
    display: grid;
    gap: var(--ruimte-4) var(--ruimte-5);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.veld {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.veld-breed {
    grid-column: 1 / -1;
}

.veld label {
    font-weight: 600;
    font-size: 15px;
}

.eenheid {
    font-weight: 400;
    color: var(--inkt-zacht);
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    font: inherit;
    color: var(--inkt);
    background: var(--veld);
    border: 1px solid var(--hoogtelijn);
    border-radius: var(--rond);
    transition: border-color 0.15s;
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--inkt-zacht);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: var(--luchtruim);
    border-radius: var(--rond);
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #5F7387;
}

.hulptekst {
    margin: 0 0 var(--ruimte-4);
    max-width: 65ch;
    color: var(--inkt-zacht);
}

.formulier-acties {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ruimte-3) var(--ruimte-4);
    padding-top: var(--ruimte-5);
    border-top: 1px solid var(--hoogtelijn-licht);
}

/* ---------- Knoppen ---------- */

.knop {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ruimte-2);
    padding: 11px 20px;
    font: inherit;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    color: #fff;
    background: var(--luchtruim);
    border: 1px solid var(--luchtruim);
    border-radius: var(--rond);
    transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.knop:hover {
    color: #fff;
    background: var(--luchtruim-donker);
    border-color: var(--luchtruim-donker);
}

.knop-rustig {
    color: var(--inkt);
    background: transparent;
    border-color: var(--hoogtelijn);
}

.knop-rustig:hover {
    color: var(--inkt);
    background: var(--hoogtelijn-licht);
    border-color: var(--inkt-zacht);
}

.knop-klein {
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 600;
}

.knop-gevaar {
    color: var(--gevaar);
    background: transparent;
    border-color: transparent;
}

.knop-gevaar:hover {
    color: #fff;
    background: var(--gevaar);
    border-color: var(--gevaar);
}

.tekstlink {
    font-weight: 600;
}

/* ---------- Tabellen ---------- */

.tabel-container {
    overflow-x: auto;
    background: var(--vlak);
    border: 1px solid var(--hoogtelijn);
    border-radius: 10px;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

th,
td {
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--hoogtelijn-licht);
}

thead th {
    position: sticky;
    top: 0;
    background: #15263A;
    border-bottom: 1px solid var(--hoogtelijn);
    font-size: 14px;
    font-weight: 700;
    font-variation-settings: "wdth" 80;
    white-space: nowrap;
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: #1F3247;
}

td.getal,
th.getal {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

td.datum {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-weight: 600;
}

td.coordinaat {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    color: var(--inkt-zacht);
    font-size: 14px;
}

td.notitie {
    min-width: 180px;
    max-width: 320px;
    color: var(--inkt-zacht);
}

td.leeg-rij {
    padding: var(--ruimte-6) var(--ruimte-4);
    text-align: center;
    color: var(--inkt-zacht);
}

.acties {
    display: flex;
    gap: var(--ruimte-1);
    white-space: nowrap;
}

.actie-formulier {
    display: inline;
    margin: 0;
}

.leeg {
    color: #5F7387;
}

.visueel-verborgen {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Kaarten (Leaflet) ---------- */

.kaartvlak {
    width: 100%;
    height: 420px;
    border: 1px solid var(--hoogtelijn);
    border-radius: 10px;
    z-index: 1;
    background: var(--water-licht);
}

.kaartvlak-groot {
    height: min(70vh, 680px);
    min-height: 420px;
}

.kaart-onder {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: var(--ruimte-4);
    margin-top: var(--ruimte-4);
}

.kaart-onder .velden {
    flex: 1 1 380px;
}

.leaflet-container {
    font-family: var(--letter);
    background: var(--veld);
}

/* OpenStreetMap-tegels omzetten naar een nachtkaart (geen API-sleutel nodig) */
.leaflet-tile-pane .leaflet-tile {
    filter: invert(1) hue-rotate(185deg) brightness(0.82) contrast(0.92) saturate(0.55);
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip,
.maplibregl-popup-content {
    background: var(--vlak);
    color: var(--inkt);
    border: 1px solid var(--hoogtelijn);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.leaflet-popup-content-wrapper,
.maplibregl-popup-content {
    border-radius: 8px;
}

/* MapLibre laadt zijn eigen CSS na de onze, dus hier iets specifieker */
.maplibregl-popup .maplibregl-popup-content {
    padding: 14px 16px;
    background: var(--vlak);
    color: var(--inkt);
}

.maplibregl-popup-anchor-bottom .maplibregl-popup-tip { border-top-color: var(--vlak); }
.maplibregl-popup-anchor-top .maplibregl-popup-tip { border-bottom-color: var(--vlak); }
.maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--vlak); }
.maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--vlak); }

.leaflet-container a.leaflet-popup-close-button,
.maplibregl-popup-close-button {
    color: var(--inkt-zacht);
}

.leaflet-bar a,
.leaflet-control-attribution {
    background: var(--vlak) !important;
    color: var(--inkt) !important;
    border-color: var(--hoogtelijn) !important;
}

.leaflet-control-attribution a {
    color: var(--water) !important;
}

.popup-titel {
    margin-bottom: var(--ruimte-2);
    padding-bottom: var(--ruimte-2);
    border-bottom: 2px solid var(--luchtruim-licht);
    font-size: 16px;
    font-weight: 800;
    font-variation-settings: "wdth" 125;
    color: var(--inkt);
}

.popup-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.popup-info strong {
    font-weight: 600;
    color: var(--inkt-zacht);
}

.popup-info span {
    font-variant-numeric: tabular-nums;
}

/* ---------- Meldingen ---------- */

.melding {
    margin-top: var(--ruimte-4);
    padding: var(--ruimte-4) var(--ruimte-5);
    background: var(--vlak);
    border: 1px solid var(--hoogtelijn);
    border-left: 4px solid var(--luchtruim);
    border-radius: var(--rond);
    max-width: 75ch;
}

.melding p {
    margin: 0;
}

.melding p + p {
    margin-top: var(--ruimte-2);
}

/* ---------- Dashboard ---------- */

body {
    overflow-x: clip;
}

.dashboard .pagina {
    padding-top: 0;
}

.dashboard {
    --pagina-breedte: 1680px;
}

.held {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    max-width: 1600px;
    margin: 0 auto;
    align-items: center;
    gap: clamp(32px, 5vw, 96px);
    padding: clamp(40px, 6vw, 88px) 0;
    border-bottom: 2px solid var(--inkt);
}

.intro .held-tekst > * {
    opacity: 0;
    transform: translateY(14px);
}

.intro.gestart .held-tekst > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.intro.gestart .held-tekst > :nth-child(2) { transition-delay: 0.08s; }
.intro.gestart .held-tekst > :nth-child(3) { transition-delay: 0.16s; }
.intro.gestart .held-tekst > :nth-child(4) { transition-delay: 0.24s; }

.held h1 {
    font-size: clamp(48px, 7.4vw, 112px);
    line-height: 0.9;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.held-ondertitel {
    margin: var(--ruimte-4) 0 0;
    font-size: clamp(22px, 2.4vw, 32px);
    font-weight: 500;
    line-height: 1.15;
    font-variation-settings: "wdth" 62;
    color: var(--luchtruim-licht);
}

.held .inleiding {
    margin-top: var(--ruimte-4);
    max-width: 34ch;
    font-size: clamp(17px, 1.4vw, 20px);
    color: var(--inkt);
}

.held-acties {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ruimte-3);
    margin-top: var(--ruimte-6);
}

.held-paneel {
    position: relative;
    aspect-ratio: 10 / 7;
    overflow: hidden;
    background: var(--veld);
    border: 1px solid var(--hoogtelijn);
    border-radius: 18px;
}

.held-kaart {
    display: block;
    width: 100%;
    height: 100%;
}

.luchtruim-ring {
    animation: luchtruim 40s linear infinite;
}

@keyframes luchtruim {
    to { stroke-dashoffset: -480; }
}

.telemetrie {
    position: absolute;
    left: clamp(12px, 2vw, 24px);
    top: clamp(12px, 2vw, 24px);
    display: flex;
    margin: 0;
    background: rgba(11, 22, 34, 0.88);
    color: var(--inkt);
    border: 1px solid var(--hoogtelijn);
    border-radius: 10px;
    overflow: hidden;
}

.telemetrie div {
    padding: 10px 16px;
}

.telemetrie div + div {
    border-left: 1px solid rgba(237, 240, 234, 0.15);
}

.telemetrie dt {
    font-size: 12px;
    color: #A9B6C2;
}

.telemetrie dd {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "wdth" 90;
    white-space: nowrap;
}

.index {
    margin: var(--ruimte-5) 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    column-gap: var(--ruimte-6);
}

.index li {
    border-bottom: 1px solid var(--hoogtelijn);
}

.index a {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: var(--ruimte-1) var(--ruimte-4);
    padding: var(--ruimte-5) 0;
    color: var(--inkt);
    text-decoration: none;
}

.index-naam {
    font-size: 24px;
    font-weight: 700;
    font-variation-settings: "wdth" 125;
    line-height: 1.15;
}

.index-uitleg {
    grid-column: 1;
    color: var(--inkt-zacht);
}

.index-pijl {
    grid-row: 1 / span 2;
    grid-column: 2;
    width: 34px;
    height: 34px;
    color: var(--hoogtelijn);
    transition: color 0.15s, transform 0.15s;
}

.index a:hover .index-naam {
    color: var(--luchtruim);
}

.index a:hover .index-pijl {
    color: var(--luchtruim);
    transform: translateX(4px);
}

@media (max-width: 860px) {
    .held {
        grid-template-columns: minmax(0, 1fr);
    }

    .held-paneel {
        border-radius: 14px;
    }
}

@media (max-width: 480px) {
    .telemetrie div {
        padding: 8px 12px;
    }

    .telemetrie dd {
        font-size: 16px;
    }
}

/* ---------- Statistieken ---------- */

.totalen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin: 0;
    background: var(--vlak);
    border: 1px solid var(--hoogtelijn);
    border-radius: 10px;
    overflow: hidden;
}

.totaal {
    padding: var(--ruimte-5);
    border-right: 1px solid var(--hoogtelijn-licht);
    border-bottom: 1px solid var(--hoogtelijn-licht);
    margin: -1px -1px 0 0;
}

.totaal dt {
    color: var(--inkt-zacht);
    font-size: 14px;
    font-weight: 500;
}

.totaal dd {
    margin: var(--ruimte-2) 0 0;
    font-size: 32px;
    font-weight: 800;
    line-height: 1.05;
    font-variation-settings: "wdth" 112;
    font-variant-numeric: tabular-nums;
}

.totaal dd small {
    font-size: 16px;
    font-weight: 600;
    color: var(--inkt-zacht);
    margin-left: 2px;
}

.grafieken {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ruimte-5);
    margin-top: var(--ruimte-5);
}

.grafiek-paneel {
    min-width: 0;
}

.grafiek-paneel h2 {
    font-size: 18px;
    margin-bottom: var(--ruimte-4);
}

.grafiek-container {
    position: relative;
    height: 300px;
}

/* ---------- Foto's ---------- */

.lege-staat {
    padding: var(--ruimte-7) var(--ruimte-5);
    text-align: center;
    border: 2px dashed var(--hoogtelijn);
    border-radius: 10px;
}

.lege-staat svg {
    width: 64px;
    height: 64px;
    color: var(--hoogtelijn);
    margin-bottom: var(--ruimte-4);
}

.lege-staat p {
    margin: var(--ruimte-2) auto 0;
    max-width: 50ch;
    color: var(--inkt-zacht);
}

/* ---------- Kleine schermen ---------- */

@media (max-width: 820px) {
    .grafieken {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .balk {
        padding-top: var(--ruimte-3);
        padding-bottom: var(--ruimte-2);
    }

    .menu {
        width: 100%;
        gap: 0;
        margin-left: calc(-1 * var(--ruimte-2));
    }

    .menu a {
        padding: var(--ruimte-2);
        font-size: 15px;
    }

    .pagina {
        padding-top: var(--ruimte-5);
    }

    .kaartvlak {
        height: 340px;
    }

    .totaal dd {
        font-size: 26px;
    }

    .formulier-acties .knop {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

.nowrap {
    white-space: nowrap;
}

/* ==========================================================
   Vluchtlog uploaden
   ========================================================== */

.melding-fout {
    border-color: var(--gevaar);
    color: var(--gevaar-donker);
    margin-bottom: var(--ruimte-5);
}

.dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ruimte-2);
    padding: var(--ruimte-6) var(--ruimte-5);
    text-align: center;
    background: var(--veld);
    border: 2px dashed var(--hoogtelijn);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.15s, background-color 0.15s;
}

.dropzone:hover,
.dropzone-actief {
    border-color: var(--luchtruim-licht);
    background: #24172B;
}

.dropzone-gevuld {
    border-style: solid;
    border-color: var(--water);
}

.dropzone svg {
    width: 44px;
    height: 44px;
    color: var(--luchtruim-licht);
}

.dropzone-titel {
    font-size: 18px;
    font-weight: 700;
    font-variation-settings: "wdth" 115;
}

.dropzone-uitleg {
    color: var(--inkt-zacht);
}

.dropzone-bestanden {
    font-weight: 600;
    color: var(--water);
    word-break: break-word;
}

.dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone:has(input:focus-visible) {
    box-shadow: var(--focus);
}

.uitleg {
    margin-top: var(--ruimte-4);
    color: var(--inkt-zacht);
}

.uitleg summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--water);
}

.uitleg ul {
    margin: var(--ruimte-3) 0 0;
    padding-left: var(--ruimte-5);
}

.uitleg code {
    font-size: 13px;
    background: var(--hoogtelijn-licht);
    padding: 1px 5px;
    border-radius: 4px;
    word-break: break-all;
}

.bezig {
    margin: 0;
}

.knop:disabled {
    opacity: 0.6;
    cursor: progress;
}

.upload-resultaten {
    margin-bottom: var(--ruimte-5);
}

.resultaatlijst {
    list-style: none;
    margin: var(--ruimte-4) 0 0;
    padding: 0;
    display: grid;
    gap: var(--ruimte-3);
}

.resultaat {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: var(--ruimte-4);
    padding: var(--ruimte-3) var(--ruimte-4);
    background: var(--veld);
    border: 1px solid var(--hoogtelijn-licht);
    border-left: 4px solid var(--hoogtelijn);
    border-radius: var(--rond);
}

.resultaat-ok { border-left-color: #6E7F3A; }
.resultaat-dubbel { border-left-color: #C08A2E; }
.resultaat-fout { border-left-color: var(--gevaar); }

.resultaat-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.resultaat-ok .resultaat-label { color: #B5C977; }
.resultaat-dubbel .resultaat-label { color: #E8B04B; }
.resultaat-fout .resultaat-label { color: var(--gevaar); }

.resultaat-tekst {
    min-width: 0;
    word-break: break-word;
}

.popup-link {
    display: inline-block;
    margin-top: var(--ruimte-3);
    font-weight: 700;
}

/* ==========================================================
   Vluchtdetail
   ========================================================== */

.detail-kop {
    align-items: end;
}

.bovenregel {
    margin: 0 0 var(--ruimte-2);
    font-size: 14px;
    color: var(--inkt-zacht);
}

.replay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: var(--ruimte-4);
    align-items: stretch;
}

.replay-kaart {
    position: relative;
    min-width: 0;
}

.replay .kaartvlak {
    height: 100%;
    min-height: 520px;
}

.hoogte-legenda {
    position: absolute;
    right: 12px;
    bottom: 26px;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: var(--ruimte-2);
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(248, 249, 245, 0.92);
    border: 1px solid var(--hoogtelijn);
    border-radius: 999px;
}

.hoogte-balk {
    width: 80px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, #3C7CB8, #A3216F);
}

.live {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-content: start;
    gap: 1px;
    margin: 0;
    background: #2C3D50;
    border-radius: 10px;
    overflow: hidden;
    color: var(--papier);
}

.live div {
    padding: 10px 14px;
    background: var(--inkt);
}

.live-breed {
    grid-column: 1 / -1;
}

.live dt {
    font-size: 12px;
    color: #A9B6C2;
}

.live dd {
    margin: 2px 0 0;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "wdth" 90;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-opname {
    color: #F27BB8;
}

.live-opname::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    border-radius: 50%;
    background: #F2545B;
    vertical-align: 1px;
}

.speler {
    display: flex;
    align-items: center;
    gap: var(--ruimte-3);
    margin-top: var(--ruimte-4);
    padding: var(--ruimte-3) var(--ruimte-4);
    background: var(--vlak);
    border: 1px solid var(--hoogtelijn);
    border-radius: 10px;
}

.speler .knop {
    min-width: 100px;
}

.speler-snelheid {
    width: auto;
    padding: 9px 10px;
}

.tijdlijn {
    flex: 1;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    accent-color: var(--luchtruim);
}

.speler-tijd {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.kaart-icoon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.icoon-home { background: #6E7F3A; }
.icoon-eind { background: var(--inkt); }
.icoon-foto {
    background: #C08A2E;
    width: 16px !important;
    height: 16px !important;
    margin: -8px 0 0 -8px !important;
}

.kaart-drone svg {
    transition: transform 0.1s linear;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.paneel-kop {
    font-size: 18px;
    margin-bottom: var(--ruimte-4);
}

.stapel {
    display: grid;
    gap: var(--ruimte-5);
    align-content: start;
    min-width: 0;
}

.gebeurtenissen {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 560px;
    overflow-y: auto;
}

.gebeurtenis {
    display: grid;
    grid-template-columns: 48px 12px 1fr;
    align-items: center;
    gap: var(--ruimte-3);
    width: 100%;
    padding: 9px 6px;
    font: inherit;
    text-align: left;
    color: var(--inkt);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--hoogtelijn-licht);
    cursor: pointer;
}

.gebeurtenis:hover {
    background: var(--hoogtelijn-licht);
}

.gebeurtenis-tijd {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--inkt-zacht);
}

.gebeurtenis-stip {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--hoogtelijn);
}

.gebeurtenis-opstijgen .gebeurtenis-stip,
.gebeurtenis-landen .gebeurtenis-stip { background: #6E7F3A; }
.gebeurtenis-foto .gebeurtenis-stip { background: #C08A2E; }
.gebeurtenis-video .gebeurtenis-stip { background: var(--luchtruim); }
.gebeurtenis-modus .gebeurtenis-stip { background: var(--water); }
.gebeurtenis-rth .gebeurtenis-stip,
.gebeurtenis-batterij .gebeurtenis-stip,
.gebeurtenis-waarschuwing .gebeurtenis-stip { background: var(--gevaar); }

.gebeurtenis-waarschuwing {
    color: var(--gevaar-donker);
    font-weight: 600;
}

.modi {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--ruimte-3);
}

.modus-regel {
    display: flex;
    justify-content: space-between;
    gap: var(--ruimte-3);
    font-weight: 600;
}

.modus-regel span:last-child {
    font-variant-numeric: tabular-nums;
    color: var(--inkt-zacht);
}

.modus-balk {
    height: 8px;
    margin-top: 4px;
    background: var(--hoogtelijn-licht);
    border-radius: 4px;
    overflow: hidden;
}

.modus-balk span {
    display: block;
    height: 100%;
    background: var(--water);
    border-radius: 4px;
}

.gegevens {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px var(--ruimte-5);
    margin: 0;
}

.gegevens dt {
    color: var(--inkt-zacht);
}

.gegevens dd {
    margin: 0;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

.gegevens dd small {
    font-size: inherit;
}

.cellen-kop {
    margin: var(--ruimte-5) 0 var(--ruimte-3);
    font-size: 15px;
}

.cellen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(42px, 1fr));
    gap: var(--ruimte-2);
}

.cel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.cel-balk {
    width: 26px;
    height: 70px;
    border: 2px solid var(--inkt);
    border-radius: 4px;
    padding: 2px;
    display: flex;
    align-items: flex-end;
}

.cel-balk span {
    display: block;
    width: 100%;
    background: #6E7F3A;
    border-radius: 2px;
}

.cel-waarde {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.cel-naam {
    color: var(--inkt-zacht);
}

.galerij {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--ruimte-3);
}

.galerij img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--hoogtelijn);
}

.notitie-groot {
    margin: 0;
    max-width: 70ch;
    white-space: pre-line;
}

.downloads {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ruimte-3);
}

@media (max-width: 960px) {
    .replay {
        grid-template-columns: 1fr;
    }

    .replay .kaartvlak {
        min-height: 400px;
    }

    .live {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    }
}

@media (max-width: 600px) {
    .speler {
        flex-wrap: wrap;
    }

    .tijdlijn {
        flex-basis: 100%;
        order: 3;
    }

    .resultaat {
        grid-template-columns: 1fr;
        gap: var(--ruimte-2);
    }
}

/* ==========================================================
   3D-replay met FPV-OSD
   ========================================================== */

[hidden] {
    display: none !important;
}

body.met-replay .pagina {
    padding-top: var(--ruimte-5);
}

.detail-balk {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--ruimte-3);
    margin-bottom: var(--ruimte-4);
}

.detail-balk .bovenregel {
    margin: 0;
}

.r3d {
    --osd-schaduw: 0 0 2px rgba(5, 12, 20, 0.95), 0 1px 4px rgba(5, 12, 20, 0.7);
    --osd-rood: #F2545B;
    --osd-geel: #E8B04B;
    background: var(--nacht);
    color: #EDF0EA;
}

.r3d-scherm {
    position: relative;
    height: clamp(520px, 76vh, 920px);
    overflow: hidden;
    background: #24364A;
}

.r3d .r3d-kaart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.r3d-fout {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-content: center;
    gap: var(--ruimte-2);
    padding: var(--ruimte-5);
    text-align: center;
    max-width: 52ch;
    margin: auto;
}

.r3d-fout p {
    margin: 0;
}

/* ---------- OSD-laag ---------- */

.osd {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    color: #fff;
    text-shadow: var(--osd-schaduw);
    font-variant-numeric: tabular-nums;
}

.osd-titel {
    position: absolute;
    top: 22px;
    left: clamp(16px, 3vw, 36px);
    max-width: 34%;
}

.osd-titel h1 {
    font-size: clamp(30px, 4.2vw, 58px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.01em;
    font-variation-settings: "wdth" 125;
    color: #fff;
}

.osd-titel p {
    margin: var(--ruimte-2) 0 0;
    font-size: 15px;
    font-weight: 500;
}

/* Kompasband */

.osd-kompas {
    position: absolute;
    top: 20px;
    left: 50%;
    width: min(440px, 40vw);
    transform: translateX(-50%);
}

.kompas-venster {
    position: relative;
    height: 40px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.kompas-band {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    will-change: transform;
}

.kompas-band i {
    position: absolute;
    bottom: 0;
    width: 1.5px;
    height: 7px;
    background: #fff;
    box-shadow: var(--osd-schaduw);
}

.kompas-band i.lang {
    height: 13px;
}

.kompas-band span {
    position: absolute;
    top: 2px;
    transform: translateX(-50%);
    font-size: 13px;
    font-weight: 600;
    font-variation-settings: "wdth" 75;
}

.kompas-band span.windstreek {
    font-size: 16px;
    font-weight: 800;
    color: var(--luchtruim-licht, #F27BB8);
}

.kompas-waarde {
    position: relative;
    width: max-content;
    margin: 6px auto 0;
    padding: 1px 9px;
    font-size: 19px;
    font-weight: 700;
    font-variation-settings: "wdth" 72;
    border: 1.5px solid #fff;
    border-radius: 3px;
    background: rgba(27, 42, 58, 0.55);
    box-shadow: var(--osd-schaduw);
}

.kompas-waarde::before {
    content: "";
    position: absolute;
    top: -7px;
    left: 50%;
    border: 5px solid transparent;
    border-bottom-color: #fff;
    transform: translateX(-50%);
}

.osd-status {
    position: absolute;
    top: 104px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--ruimte-4);
    white-space: nowrap;
    font-size: 15px;
    font-weight: 700;
    font-variation-settings: "wdth" 85;
}

.osd-modus {
    --modus: #fff;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.osd-modus::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--modus);
    box-shadow: 0 0 0 1.5px #fff;
}

.osd-rec {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
}

.osd-rec::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--osd-rood);
    animation: rec-knipper 1.2s steps(2, start) infinite;
}

@keyframes rec-knipper {
    to { visibility: hidden; }
}

/* Snelheids- en hoogtebanden */

.osd-tape {
    position: absolute;
    top: 50%;
    width: 86px;
    height: 300px;
    transform: translateY(-46%);
}

.osd-tape-links { left: clamp(16px, 3vw, 36px); }
.osd-tape-rechts { right: clamp(16px, 3vw, 36px); }

.tape-venster {
    position: absolute;
    inset: 0;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
    mask-image: linear-gradient(transparent, #000 20%, #000 80%, transparent);
}

.tape-band {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    will-change: transform;
}

.tape-band i {
    position: absolute;
    height: 1.5px;
    width: 9px;
    background: #fff;
    box-shadow: var(--osd-schaduw);
}

.tape-band i.lang {
    width: 17px;
}

.tape-band span {
    position: absolute;
    transform: translateY(-50%);
    font-size: 13px;
    font-weight: 600;
    font-variation-settings: "wdth" 75;
}

.osd-tape-links .tape-band i { right: 0; }
.osd-tape-links .tape-band span { right: 24px; }
.osd-tape-rechts .tape-band i { left: 0; }
.osd-tape-rechts .tape-band span { left: 24px; }

.tape-waarde {
    position: absolute;
    top: 50%;
    display: flex;
    align-items: baseline;
    gap: 3px;
    padding: 3px 10px;
    background: rgba(27, 42, 58, 0.82);
    border: 1.5px solid #fff;
    transform: translateY(-50%);
    box-shadow: var(--osd-schaduw);
}

.osd-tape-links .tape-waarde {
    right: 22px;
    border-radius: 3px 0 0 3px;
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%);
    padding-right: 16px;
}

.osd-tape-rechts .tape-waarde {
    left: 22px;
    border-radius: 0 3px 3px 0;
    clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
    padding-left: 16px;
}

.tape-waarde b {
    font-size: 28px;
    line-height: 1;
    font-weight: 700;
    font-variation-settings: "wdth" 68;
}

.tape-waarde small,
.osd-groot small {
    font-size: 12px;
    font-weight: 600;
}

.tape-vario {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 22px;
    font-size: 14px;
    font-weight: 700;
    font-variation-settings: "wdth" 80;
    white-space: nowrap;
}

/* Hoekclusters */

.osd-hoek {
    position: absolute;
    bottom: 26px;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 6px 20px;
    margin: 0;
}

.osd-batterij { left: clamp(16px, 3vw, 36px); }
.osd-home { right: clamp(64px, 6vw, 84px); text-align: right; }
.osd-home .osd-groot dd { justify-content: flex-end; }

.osd-groot {
    grid-column: 1 / -1;
}

.osd-hoek dt {
    font-size: 12px;
    font-weight: 500;
    opacity: 0.85;
}

.osd-hoek dd {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    font-variation-settings: "wdth" 78;
    white-space: nowrap;
}

.osd-groot dd {
    display: flex;
    align-items: center;
    gap: 8px;
}

.osd-groot dd b {
    font-size: 38px;
    line-height: 1;
    font-weight: 700;
    font-variation-settings: "wdth" 66;
}

.accu {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 16px;
    padding: 2px;
    border: 2px solid #fff;
    border-radius: 3px;
    box-shadow: var(--osd-schaduw);
}

.accu::after {
    content: "";
    position: absolute;
    top: 3px;
    right: -5px;
    width: 3px;
    height: 6px;
    border-radius: 0 2px 2px 0;
    background: #fff;
}

.accu-vulling {
    display: block;
    height: 100%;
    width: 0;
    background: #fff;
    border-radius: 1px;
}

.accu-vulling[data-niveau="midden"] { background: var(--osd-geel); }
.accu-vulling[data-niveau="laag"] { background: var(--osd-rood); }

.home-pijl {
    width: 24px;
    height: 24px;
    fill: #fff;
    filter: drop-shadow(0 0 2px rgba(5, 12, 20, 0.9));
}

.balkjes {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.balkjes i {
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.balkjes i:nth-child(1) { height: 30%; }
.balkjes i:nth-child(2) { height: 45%; }
.balkjes i:nth-child(3) { height: 62%; }
.balkjes i:nth-child(4) { height: 80%; }
.balkjes i:nth-child(5) { height: 100%; }
.balkjes i.aan { background: #fff; }
.balkjes[data-niveau="laag"] i.aan { background: var(--osd-rood); }

/* Kaartbediening */

.r3d-bediening {
    position: absolute;
    top: 20px;
    right: clamp(16px, 3vw, 36px);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--ruimte-2);
}

.schakelaar {
    display: inline-flex;
    padding: 3px;
    background: rgba(27, 42, 58, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
}

.schakelaar button {
    padding: 7px 12px;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    color: #C9D3DC;
    background: none;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.schakelaar button:hover {
    color: #fff;
}

.schakelaar button[aria-pressed="true"] {
    color: var(--nacht);
    background: #EDF0EA;
}

.schakelaar button:focus-visible {
    box-shadow: 0 0 0 2px var(--nacht), 0 0 0 4px #F27BB8;
}

.r3d .maplibregl-ctrl-bottom-right {
    bottom: 18px;
    right: 8px;
}

.r3d .maplibregl-ctrl-group,
.vk .maplibregl-ctrl-group {
    background: rgba(27, 42, 58, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.r3d .maplibregl-ctrl-group button + button,
.vk .maplibregl-ctrl-group button + button {
    border-top-color: rgba(255, 255, 255, 0.16);
}

.r3d .maplibregl-ctrl-group button .maplibregl-ctrl-icon,
.vk .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
    filter: invert(1);
}

.r3d .maplibregl-ctrl-attrib,
.vk .maplibregl-ctrl-attrib {
    font-size: 11px;
}

.kaart-home {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #6E7F3A;
    border: 2px solid #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

/* ---------- Tijdlijn ---------- */

.strip {
    display: flex;
    align-items: center;
    gap: var(--ruimte-3);
    padding: var(--ruimte-3) clamp(16px, 3vw, 36px) var(--ruimte-2);
}

.strip-knop {
    flex: none;
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    padding: 0;
    color: #fff;
    background: var(--luchtruim);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.15s;
}

.strip-knop:hover {
    background: var(--luchtruim-donker);
}

.strip-knop:focus-visible {
    box-shadow: 0 0 0 2px var(--nacht), 0 0 0 4px #F27BB8;
}

.strip-knop svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.strip-knop .ikoon-pauze,
.strip-knop.speelt .ikoon-play {
    display: none;
}

.strip-knop.speelt .ikoon-pauze {
    display: inline;
}

.strip-snelheid {
    flex: none;
    width: auto;
    padding: 8px 10px;
    color: #EDF0EA;
    background: #1A2B3E;
    border-color: #3A4D62;
}

.strip-snelheid:hover {
    border-color: #6B7E92;
}

.strip-baan {
    position: relative;
    flex: 1;
    min-width: 0;
    height: 66px;
    border-radius: 6px;
    background: #1A2B3E;
    overflow: hidden;
}

.strip-baan:has(.strip-schuif:focus-visible) {
    box-shadow: 0 0 0 2px var(--nacht), 0 0 0 4px #F27BB8;
}

.strip-profiel {
    position: absolute;
    inset: 0 0 6px;
    width: 100%;
    height: calc(100% - 6px);
}

.strip-vlak {
    fill: rgba(242, 123, 184, 0.28);
    stroke: #F27BB8;
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
}

.strip-video {
    fill: rgba(163, 33, 111, 0.42);
}

.strip-foto {
    stroke: #E8B04B;
    stroke-width: 2;
}

.strip-gespeeld {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 0;
    background: rgba(237, 240, 234, 0.1);
    border-right: 2px solid #fff;
    pointer-events: none;
}

.strip-modi {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 6px;
}

.strip-modi span {
    position: absolute;
    top: 0;
    bottom: 0;
}

.strip-schuif {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}

.strip-tijd {
    flex: none;
    font-size: 15px;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "wdth" 85;
    color: #A9B6C2;
}

.strip-tijd b {
    color: #EDF0EA;
    font-size: 18px;
}

.strip-legenda {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 0;
    padding: 0 clamp(16px, 3vw, 36px) var(--ruimte-3) calc(clamp(16px, 3vw, 36px) + 50px + 12px + 72px);
    list-style: none;
    font-size: 13px;
    color: #A9B6C2;
}

.strip-legenda i {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: -1px;
}

.strip-legenda i.leg-video { background: rgba(163, 33, 111, 0.75); }
.strip-legenda i.leg-foto { width: 3px; background: #E8B04B; }

@media (max-width: 860px) {
    .osd-titel {
        max-width: 55%;
    }

    .osd-kompas {
        top: auto;
        bottom: 150px;
        width: min(320px, 70vw);
    }

    .osd-status {
        top: auto;
        bottom: 118px;
    }

    .osd-tape {
        width: 66px;
        height: 200px;
    }

    .tape-waarde b {
        font-size: 22px;
    }

    .osd-hoek div:not(.osd-groot) {
        display: none;
    }

    .osd-groot dd b {
        font-size: 30px;
    }

    .strip-legenda {
        padding-left: clamp(16px, 3vw, 36px);
    }
}

@media (max-width: 520px) {
    .r3d-scherm {
        height: 78vh;
    }

    .osd-titel {
        max-width: none;
        right: 16px;
    }

    .osd-titel h1 {
        font-size: 30px;
    }

    .osd-titel p {
        font-size: 13px;
    }

    .r3d .r3d-bediening {
        top: 104px;
        left: 16px;
        right: auto;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .schakelaar button {
        padding: 6px 10px;
        font-size: 13px;
    }

    .osd-tape-rechts {
        transform: translateY(-30%);
    }

    .strip {
        flex-wrap: wrap;
    }

    .strip-baan {
        flex-basis: 100%;
        order: 3;
    }

    .strip-tijd {
        margin-left: auto;
    }

    .osd-tape-links {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .osd-rec::before {
        animation: none;
    }
}

/* ==========================================================
   Vluchtkaart (alle vluchten, 3D en donker)
   ========================================================== */

body.met-vluchtkaart .pagina {
    display: none;
}

.vk {
    position: relative;
    height: calc(100vh - 66px);
    min-height: 560px;
    background: var(--nacht);
    overflow: hidden;
}

.vk .vk-kaart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.vk-paneel {
    position: absolute;
    top: 20px;
    left: clamp(16px, 3vw, 36px);
    bottom: 20px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    width: min(340px, 34vw);
    padding: var(--ruimte-5) var(--ruimte-4) var(--ruimte-3);
    background: rgba(11, 22, 34, 0.9);
    border: 1px solid var(--hoogtelijn);
    border-radius: 12px;
}

.vk-paneel h1 {
    font-size: clamp(30px, 3vw, 42px);
    padding: 0 var(--ruimte-2);
}

.vk-teller {
    margin: var(--ruimte-2) 0 var(--ruimte-4);
    padding: 0 var(--ruimte-2) var(--ruimte-4);
    color: var(--inkt-zacht);
    border-bottom: 1px solid var(--hoogtelijn-licht);
}

.vk-teller b {
    color: var(--inkt);
    font-variant-numeric: tabular-nums;
}

.vk-lijst {
    flex: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-y: auto;
}

.vk-vlucht {
    display: grid;
    gap: 2px;
    width: 100%;
    padding: 10px var(--ruimte-2) 10px calc(var(--ruimte-2) + 3px);
    font: inherit;
    text-align: left;
    color: var(--inkt);
    background: none;
    border: 0;
    border-left: 3px solid transparent;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
}

.vk-vlucht:hover {
    background: rgba(255, 255, 255, 0.05);
}

.vk-vlucht[aria-current="true"] {
    background: rgba(242, 123, 184, 0.1);
    border-left-color: var(--luchtruim-licht);
}

.vk-vlucht:focus-visible {
    box-shadow: inset 0 0 0 2px var(--luchtruim-licht);
}

.vk-datum {
    font-size: 13px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "wdth" 80;
    color: var(--luchtruim-licht);
}

.vk-naam {
    font-weight: 600;
}

.vk-cijfers {
    display: flex;
    flex-wrap: wrap;
    gap: 0 var(--ruimte-3);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    font-variation-settings: "wdth" 85;
    color: var(--inkt-zacht);
}

.vk-leeg {
    margin: 0;
    padding: 0 var(--ruimte-2);
    color: var(--inkt-zacht);
}

.vk .maplibregl-ctrl-bottom-right {
    bottom: 18px;
    right: 8px;
}

.popup-notitie {
    margin: var(--ruimte-2) 0 0;
    font-size: 13px;
    color: var(--inkt-zacht);
}

@media (max-width: 860px) {
    .vk {
        height: calc(100vh - 110px);
    }

    .vk-paneel {
        top: auto;
        left: 12px;
        right: 12px;
        bottom: 12px;
        width: auto;
        max-height: 42%;
        padding-top: var(--ruimte-4);
    }

    .vk-paneel h1 {
        font-size: 26px;
    }

    .vk .maplibregl-ctrl-bottom-right {
        bottom: auto;
        top: 70px;
    }
}
