/* JPT-huisstijl: navy / goud / zand, Georgia-koppen (gelijk aan browser/kaart.html en de apps). */
:root { --navy: #0F2147; --navyl: #1B3A7A; --gold: #E6BE5A; --zand: #F5EFE0; --blauw: #1C6DD0; }
html, body { margin: 0; height: 100%; font: 14px "Segoe UI", system-ui, -apple-system, sans-serif; color: #1a1a1a; }
body { display: flex; flex-direction: column; }
header { display: flex; align-items: center; gap: 12px; padding: 8px 16px; background: linear-gradient(135deg, var(--navy), var(--navyl)); color: #fff; border-bottom: 3px solid var(--gold); }
header img { width: 38px; height: 38px; border-radius: 6px; border: 1.5px solid var(--gold); }
h1 { margin: 0; font: 600 18px Georgia, serif; color: var(--gold); }
header .sub { font-size: 12.5px; opacity: .85; }
header nav { margin-left: auto; display: flex; gap: 14px; }
header nav a { color: var(--gold); font-size: 13px; }
main { flex: 1; display: flex; min-height: 0; }
#paneel { width: 330px; display: flex; flex-direction: column; background: var(--zand); border-right: 1px solid #d8cfb8; overflow-y: auto; }
#kaart { flex: 1; }
.tabs { display: flex; position: sticky; top: 0; background: var(--zand); z-index: 1; }
.tab { flex: 1; padding: 10px; border: 0; border-bottom: 2px solid transparent; background: none; font: 600 14px Georgia, serif; color: var(--navy); cursor: pointer; }
.tab.actief { border-bottom-color: var(--gold); }
section { padding: 4px 14px 10px; }
h2 { font: 600 15px Georgia, serif; color: var(--navy); margin: 12px 0 6px; }
ol, ul { list-style: none; margin: 0; padding: 0; }
li.item { background: #fff; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
li.item .kop { font-weight: 600; color: var(--navy); cursor: pointer; }
li.item .info { font-size: 12.5px; color: #555; margin-top: 2px; display: flex; gap: 10px; align-items: center; }
li.item .info a { color: var(--navyl); }
#zoekveld { width: 100%; box-sizing: border-box; padding: 9px 10px; margin: 8px 0; border: 1px solid #c9bd9c; border-radius: 8px; font-size: 14px; }
#treffers li { cursor: pointer; }
footer { margin-top: auto; padding: 10px 14px; font-size: 11px; color: #666; }
@media (max-width: 720px) {
  main { flex-direction: column-reverse; }
  #paneel { width: auto; height: 42%; border-right: 0; border-top: 1px solid #d8cfb8; }
}

/* Lagen met schuifknoppen (zoals Kaartstijlen en lagen in de app) */
li.schakel label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
li.schakel .tekst { flex: 1; }
li.schakel input { position: absolute; opacity: 0; width: 1px; height: 1px; }
li.schakel .knop { flex: none; width: 40px; height: 22px; border-radius: 11px; background: #bbb; position: relative; transition: background .15s; }
li.schakel .knop::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
li.schakel input:checked + .knop { background: var(--navy); }
li.schakel input:checked + .knop::after { left: 21px; background: var(--gold); }
li.schakel input:focus-visible + .knop { outline: 2px solid var(--gold); outline-offset: 2px; }
.lagenknop { width: 36px; height: 36px; background: #fff url(lib/images/layers.png) center no-repeat; display: block; }
.bijbel .ref { color: #85601A; font-weight: 600; margin: 2px 0 4px; }
.bijbel .kjv { font-style: italic; color: #555; margin-top: 6px; font-size: 12px; }
li.schakel .info { display: block; }

/* Mijn tochten */
#tab-tochten form { display: flex; flex-direction: column; gap: 8px; }
#tab-tochten input[type=password] { padding: 9px 10px; border: 1px solid #c9bd9c; border-radius: 8px; font: 14px ui-monospace, monospace; }
#tab-tochten button { padding: 9px 12px; border: 0; border-radius: 8px; background: var(--navy); color: var(--gold); font: 600 14px Georgia, serif; cursor: pointer; }
#kluis-uit { background: #fff !important; color: var(--navy) !important; border: 1px solid #c9bd9c !important; margin-bottom: 6px; }
.uitleg { margin: 0; font-size: 13px; color: #333; } .uitleg.klein { font-size: 11.5px; color: #666; }
.onthoud { font-size: 13px; display: flex; gap: 6px; align-items: center; }
.status { font-size: 13px; color: var(--navy); margin: 6px 0; }
.notitie { font-size: 12.5px; color: #444; margin-top: 4px; white-space: pre-line; }
.tabs .tab { padding: 10px 4px; font-size: 13.5px; }
[hidden] { display: none !important; }

/* Taalkeuze en rechts-naar-links (Arabisch); de kaart zelf blijft links-naar-rechts */
.taalkeuze { display: flex; align-items: center; gap: 6px; color: var(--gold); font-size: 13px; }
.taalkeuze select { background: transparent; color: var(--gold); border: 1px solid var(--gold); border-radius: 6px; padding: 3px 6px; font: inherit; cursor: pointer; }
.taalkeuze option { color: #1a1a1a; background: #fff; }
[dir=rtl] header nav { margin-left: 0; margin-right: auto; }
[dir=rtl] #paneel { border-right: 0; border-left: 1px solid #d8cfb8; }
#kaart { direction: ltr; }
@media (max-width: 720px) { .taalkeuze .vk { display: none; } }

/* Foto's bij Mijn tochten */
.fotorij { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.fotorij img { width: 62px; height: 62px; object-fit: cover; border-radius: 6px; cursor: zoom-in; }
.fotomarker { font-size: 18px; line-height: 22px; text-align: center; filter: drop-shadow(0 1px 1px rgba(0,0,0,.5)); }
.fotopop { width: 220px; border-radius: 6px; cursor: zoom-in; display: block; }
.fotogroot { position: fixed; inset: 0; background: rgba(10,16,32,.92); z-index: 2000; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: zoom-out; padding: 16px; box-sizing: border-box; }
.fotogroot img { max-width: 100%; max-height: calc(100% - 40px); border-radius: 6px; }
.fotogroot .onderschrift { color: var(--gold); margin-top: 8px; font-size: 14px; }

/* Pelgrimspaspoort */
li.paspoort { border-left: 4px solid var(--gold); }
.stempel { margin-top: 8px; }
.stempelnaam { font-weight: 600; color: var(--navy); font-size: 13px; }
.stempel img { width: 90px; height: 90px; object-fit: cover; border-radius: 6px; margin-top: 4px; cursor: zoom-in; }
