:root { --blauw:#2b2d5c; --oranje:#f0a020; --creme:#fbf5e9; --groen:#3f7d6e; --rood:#a8434b; --tekst:#222; }
* { box-sizing: border-box; }
html, body { margin:0; height:100%; }
body { font-family: Montserrat, "Segoe UI", Verdana, Arial, sans-serif; background: var(--creme); color: var(--tekst); display:flex; flex-direction:column; overflow:hidden; }
.kop { background: var(--blauw); color:#fff; display:flex; align-items:center; gap:16px; padding:8px 16px; flex-wrap:wrap; }
.wapen img { height:46px; width:auto; background:#fff; border-radius:5px; padding:2px; display:block; }
.titel h1 { font-size:20px; margin:0; color:#fff; line-height:1.2; }
.titel span { font-size:12px; color:#cfd0e8; }
.zoekvak { position:relative; flex:1 1 260px; max-width:440px; margin-left:auto; }
#zoek { width:100%; padding:9px 12px; border:0; border-radius:5px; font-size:16px; }
#zoeklijst { position:absolute; z-index:20; top:100%; left:0; right:0; margin:4px 0 0; padding:0; list-style:none; background:#fff; color:var(--tekst); border-radius:5px; box-shadow:0 8px 24px rgba(0,0,0,.25); max-height:60vh; overflow:auto; }
#zoeklijst li { padding:8px 12px; cursor:pointer; border-bottom:1px solid #eee; }
#zoeklijst li:hover, #zoeklijst li.actief { background: #fdf0d6; }
#zoeklijst li.leeg { color:#777; cursor:default; }
.jaren { color:#777; font-size:.88em; white-space:nowrap; }
.talen a { color:#fff; text-decoration:none; font-weight:700; font-size:13px; padding:4px 6px; border-radius:3px; cursor:pointer; }
.talen a.actief, .talen a:hover { background: var(--oranje); }
main { flex:1; display:flex; min-height:0; position:relative; }
#kaart { flex:1; position:relative; min-width:0; }
#viewport { width:100%; height:100%; display:block; cursor:grab; touch-action:none; }
#viewport:active { cursor:grabbing; }
#laden { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:18px; color:var(--blauw); }
#laden[hidden] { display:none; }
.bediening { position:absolute; top:10px; left:10px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; background:rgba(255,255,255,.92); padding:6px 10px; border-radius:6px; box-shadow:0 2px 8px rgba(43,45,92,.15); font-size:13px; }
.bediening select { font-size:13px; padding:2px; }
.zoomknoppen button { width:30px; height:30px; border:0; border-radius:4px; background:var(--blauw); color:#fff; font-size:17px; cursor:pointer; margin-left:2px; }
.zoomknoppen button:hover { background:var(--oranje); }
.tip { position:absolute; bottom:8px; left:10px; max-width:calc(100% - 20px); margin:0; font-size:12px; color:#555; background:rgba(255,255,255,.9); padding:4px 8px; border-radius:4px; pointer-events:none; }
#details { width:340px; flex:0 0 340px; background:#fff; border-left:4px solid var(--oranje); overflow:auto; padding:18px 20px 24px; position:relative; display:none; }
body.details-open #details { display:block; }
#details-sluit { position:absolute; top:8px; right:10px; border:0; background:none; font-size:26px; cursor:pointer; color:#888; }
#details h2 { color:var(--blauw); margin:0 28px 2px 0; font-size:21px; }
.levensjaren { margin:0 0 12px; color:#666; }
#details dl { display:grid; grid-template-columns:auto 1fr; gap:4px 10px; margin:0 0 14px; font-size:14px; }
#details dt { font-weight:700; color:var(--blauw); }
#details dd { margin:0; }
#details h3 { font-size:14px; text-transform:uppercase; letter-spacing:.04em; color:var(--groen); margin:16px 0 6px; }
#details ul { list-style:none; margin:0; padding:0; font-size:14px; }
#details li { padding:4px 0; border-bottom:1px solid #f1ece0; }
#details a { color:#b06f00; text-decoration:none; font-weight:600; }
#details a:hover { text-decoration:underline; }
.knop { display:inline-block; background:var(--blauw); color:#fff !important; border:0; border-radius:5px; padding:8px 14px; font-size:14px; font-weight:700; cursor:pointer; text-decoration:none !important; margin-top:6px; font-family:inherit; }
.knop:hover { background:var(--oranje); }
.knop-licht { background:var(--groen); margin-top:18px; }
.klein { font-size:12px; color:#777; }
/* boom */
#boom .detailed text { font-family: Montserrat, "Segoe UI", Verdana, Arial, sans-serif; }
#boom .detailed rect.bysex.male { fill:#dde6f7; }
#boom .detailed rect.bysex.female { fill:#fbe3df; }
#boom .detailed rect.bysex { fill:#eee; }
#boom .detailed rect.family { fill:#fff8e8; }
#boom .detailed rect { stroke:#2b2d5c; }
#boom .link { stroke:#2b2d5c; stroke-width:1.4px; }
#boom g.indi { cursor:pointer; }
#boom g.indi:hover rect.border, #boom g.indi:hover rect.background { stroke:var(--oranje); stroke-width:3px; }
#boom g.indi.focus rect.border, #boom g.indi.focus rect.background { stroke:var(--oranje); stroke-width:4px; }
/* ingebed in een WordPress-pagina */
body.embedded .wapen, body.embedded .talen { display:none; }
@media (max-width: 800px) {
  .kop { gap:8px 12px; padding:8px 12px; }
  .wapen img { height:36px; }
  .titel h1 { font-size:17px; }
  .zoekvak { flex-basis:100%; max-width:none; order:5; }
  #details { position:absolute; left:0; right:0; bottom:0; width:auto; max-height:55%; border-left:0; border-top:4px solid var(--oranje); box-shadow:0 -6px 20px rgba(0,0,0,.2); z-index:10; }
  .tip { display:none; }
}
#details .jaren { white-space:normal; }

.wissel { color:#fff; text-decoration:none; font-size:13px; font-weight:700; border:1px solid rgba(255,255,255,.55); border-radius:5px; padding:7px 12px; white-space:nowrap; }
.wissel:hover { background:var(--oranje); border-color:var(--oranje); }
body.embedded .wissel { display:none; }
@media (max-width: 800px) { .wissel { font-size:12px; padding:5px 8px; } }
