/* Schetskaart van voor de zondvloed: papier en inkt, geen bestaand landschap. */
#kaart-voor-vloed {
    --kvv-papier: #f5efe0; --kvv-inkt: #2e2a20; --kvv-rivier: #2a7d7d;
    --kvv-land: rgba(203, 164, 73, 0.14); --kvv-lijn: #8a7a55;
    position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4;
    display: flex; background: var(--kvv-papier); color: var(--kvv-inkt);
}
#kaart-voor-vloed[hidden] { display: none; }
:root[data-theme="donker"] #kaart-voor-vloed {
    --kvv-papier: #18222b; --kvv-inkt: #e8e2d2; --kvv-rivier: #7fc0c0;
    --kvv-land: rgba(203, 164, 73, 0.12); --kvv-lijn: #a59a7c;
}
.kvv-actief #kaart-hoofdstukinfo, .kvv-actief .kaart-schaalinfo { display: none; }
.kvv-vlak { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; padding: 10px; overflow: hidden; }
.kvv-vlak.is-ingezoomd { cursor: grab; touch-action: none; }
.kvv-tekening { display: block; width: 100%; height: 100%; transform-origin: 0 0; }
.kvv-zoom { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; padding: 0; border: 1px solid var(--kvv-lijn); border-radius: 4px; background: var(--kvv-papier); color: var(--kvv-inkt); font: 600 18px/1 sans-serif; cursor: pointer; }
.kvv-zoom + .kvv-zoom { top: 42px; }
.kvv-item { cursor: pointer; outline: none; transition: opacity .15s; }
.heeft-keuze .kvv-item:not(.is-actief):not(.is-gekozen) { opacity: .38; }
.kvv-land, .kvv-hof, .kvv-rivier, .kvv-berg, .kvv-stad, .kvv-zwaard { filter: url(#kvv-hand); }
.kvv-land { fill: var(--kvv-land); stroke: var(--kvv-lijn); stroke-width: 1.5; stroke-dasharray: 7 6; }
.kvv-land-eden { fill: rgba(106, 142, 74, 0.13); }
.kvv-hof { fill: rgba(106, 142, 74, 0.3); stroke: var(--kvv-lijn); stroke-width: 1.8; }
.kvv-rivier { fill: none; stroke: var(--kvv-rivier); stroke-width: 3.5; stroke-linecap: round; }
.kvv-rivier-raak { fill: none; stroke: transparent; stroke-width: 22; }
.kvv-berg, .kvv-stad { fill: var(--kvv-land); stroke: var(--kvv-inkt); stroke-width: 1.6; }
.kvv-zwaard { fill: none; stroke: #b4552d; stroke-width: 3; stroke-linecap: round; }
.kvv-naam { fill: var(--kvv-inkt); font: italic 20px 'EB Garamond', Georgia, serif; text-anchor: middle; }
.kvv-naam-groot { font-size: 27px; font-weight: 600; }
.kvv-naam-klein { font-size: 15px; }
.kvv-naam-rivier { fill: var(--kvv-rivier); font-weight: 600; }
.kvv-item:hover .kvv-rivier, .kvv-item:focus-visible .kvv-rivier, .kvv-item.is-gekozen .kvv-rivier { stroke-width: 5.5; }
.kvv-item:hover .kvv-land, .kvv-item:focus-visible .kvv-land, .kvv-item.is-gekozen .kvv-land { stroke-width: 2.6; stroke: var(--kvv-inkt); }
.kvv-item.is-gekozen .kvv-naam, .kvv-item:focus-visible .kvv-naam { font-weight: 700; }
.kvv-noord circle { fill: none; stroke: var(--kvv-lijn); stroke-width: 1.3; }
.kvv-noord path { fill: var(--kvv-inkt); }
.kvv-noord text { fill: var(--kvv-inkt); font: 700 13px 'Fira Sans', sans-serif; text-anchor: middle; }
.kvv-paneel {
    flex: 0 0 290px; box-sizing: border-box; overflow-y: auto; padding: 18px 18px 22px;
    border-left: 1px solid var(--kvv-lijn); font: 14px/1.5 'Fira Sans', sans-serif;
}
.kvv-paneel h2 { margin: 0 0 8px; font: 600 21px/1.25 'EB Garamond', Georgia, serif; }
.kvv-melding { margin: 0 0 10px; font-weight: 500; }
.kvv-voorbehoud { margin: 0 0 14px; font-size: 13px; opacity: .78; }
.kvv-uitleg { margin: 0 0 14px; padding: 10px 12px; border: 1px solid var(--kvv-lijn); border-radius: 8px; }
.kvv-uitleg p { margin: 3px 0 6px; }
.kvv-uitleg a { color: var(--kvv-rivier); }
.kvv-lijst { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.kvv-keuze {
    padding: 4px 10px; border: 1px solid var(--kvv-lijn); border-radius: 999px; background: transparent;
    color: inherit; font: 13px 'Fira Sans', sans-serif; cursor: pointer;
}
.kvv-keuze.is-actief { background: var(--kvv-land); font-weight: 600; }
.kvv-keuze.is-gekozen { border-color: var(--kvv-inkt); box-shadow: inset 0 0 0 1px var(--kvv-inkt); }

/* Ingesloten in de parafrase: alleen de schets, met de uitleg eronder. */
#kaart-voor-vloed.is-ingesloten { flex-direction: column; }
.is-ingesloten .kvv-paneel { flex: 0 0 auto; max-height: 38%; padding: 8px 12px; border-left: 0; border-top: 1px solid var(--kvv-lijn); font-size: 13px; }
.is-ingesloten .kvv-paneel h2, .is-ingesloten .kvv-lijst { display: none; }
.is-ingesloten .kvv-melding { display: none; }
.is-ingesloten .kvv-voorbehoud { margin-bottom: 4px; font-size: 12px; }
@media (max-width: 760px) {
    #kaart-voor-vloed { flex-direction: column; }
    .kvv-paneel { flex: 0 0 auto; max-height: 44%; border-left: 0; border-top: 1px solid var(--kvv-lijn); padding: 10px 14px; }
}
/* Op de telefoon staat de hele schets op 390 pixels: grotere namen, zodat ze leesbaar blijven. */
@media (max-width: 560px) {
    .kvv-naam { font-size: 32px; }
    .kvv-naam-groot { font-size: 40px; }
    .kvv-naam-klein { font-size: 25px; }
    [data-kvv="berg-oosten"] .kvv-naam { text-anchor: end; transform: translateX(58px); }
}
@media (pointer: coarse) {
    .kvv-zoom { width: 40px; height: 40px; top: auto; bottom: 54px; }
    .kvv-zoom + .kvv-zoom { top: auto; bottom: 8px; }
    .kvv-keuze { min-height: 38px; }
}
