:root {
  --zon: #ffc93c;
  --zon-diep: #ff9f1c;
  --inkt: #1b2340;
  --schaduw: #4a5a85;
  --bg: #fffdf6;
  --lijn: #efe6cc;
  --muted: #6b6f80;
  font-family: "Outfit", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--inkt); }
#map { position: fixed; inset: 0; }
button, input { font: inherit; color: inherit; }
.muted { color: var(--muted); }

.panel {
  position: fixed; z-index: 5; background: var(--bg);
  overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 10px 40px rgba(27, 35, 64, .22);
}
.grip { border: 0; background: none; padding: 8px 0 2px; cursor: pointer; display: grid; place-items: center; flex: none; }
.grip span { width: 44px; height: 5px; border-radius: 3px; background: var(--lijn); display: block; }
@media (min-width: 760px) {
  .panel { top: 12px; left: 12px; bottom: 12px; width: 380px; border-radius: 20px; }
  .grip { display: none; }
}

.head {
  background: var(--zon); padding: 14px 16px 12px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex: none;
}
h1 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .01em; }
h1 small { font-weight: 400; opacity: .7; font-size: 15px; }
.clock { font-size: 40px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.clock .muted { white-space: nowrap; font-size: 15px; font-weight: 500; color: rgba(27, 35, 64, .7); }
.zoninfo { font-size: 14px; margin-top: 2px; }
.kompas { width: 86px; height: 86px; flex: none; }

.time { padding: 10px 16px 10px; }
#slider { width: 100%; height: 44px; accent-color: var(--zon-diep); margin: 0; }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip {
  border: 1.5px solid var(--lijn); background: #fff; border-radius: 999px; padding: 6px 12px;
  font-size: 14px; cursor: pointer; min-height: 36px; white-space: nowrap;
}
.chip.on { background: var(--inkt); border-color: var(--inkt); color: #fff; }
.chip:focus-visible, .item:focus-visible, #slider:focus-visible { outline: 3px solid var(--zon-diep); outline-offset: 2px; }
#datum { border: 1.5px solid var(--lijn); border-radius: 999px; padding: 5px 10px; font-size: 14px; background: #fff; min-height: 36px; }
.filters { padding: 8px 16px 10px; flex: none; border-bottom: 1px solid var(--lijn); }
.toggle { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-right: auto; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--inkt); }

.status { padding: 10px 16px; font-size: 14px; color: var(--muted); flex: none; }
.status:empty { display: none; }
.lijst { padding: 0 8px 8px; }
.top { position: sticky; top: 0; z-index: 2; background: var(--bg); box-shadow: 0 1px 0 var(--lijn); }
.lijst h2 { font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 8px 6px; }
.item {
  display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px 10px; align-items: center;
  width: 100%; text-align: left; border: 0; background: none; padding: 10px 8px; border-radius: 12px; cursor: pointer;
}
.item:hover, .item.sel { background: #fff4d6; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--schaduw); }
.dot.zon { background: var(--zon); box-shadow: 0 0 0 3px rgba(255, 201, 60, .35); }
.item b { font-weight: 600; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { grid-column: 2; font-size: 13px; color: var(--muted); }
.item .tijd { grid-row: 1 / span 2; grid-column: 3; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.item .tijd small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.meer { margin: 4px 8px; }
.foot { font-size: 12px; color: var(--muted); padding: 8px 16px 10px; border-top: 1px solid var(--lijn); flex: none; }
.foot a { color: inherit; }
.link { border: 0; background: none; text-decoration: underline; padding: 0; cursor: pointer; font-size: 12px; color: inherit; }

.maplibregl-popup-content { font-family: "Outfit", system-ui, sans-serif; border-radius: 12px; padding: 10px 14px; color: var(--inkt); }
.pop b { font-size: 16px; display: block; }
.pop span { font-size: 13px; color: var(--muted); display: block; }
.pop .z { color: var(--inkt); font-weight: 600; font-size: 14px; margin-top: 4px; }

@media (prefers-reduced-motion: reduce) { .panel { transition: none; } }

.weer { color: rgba(27, 35, 64, .78); }
.weerstrip { display: flex; height: 6px; gap: 1px; margin: -6px 8px 8px; border-radius: 3px; overflow: hidden; }
.weerstrip i { flex: 1; }
.weerstrip[hidden] { display: none; }
.plaats { padding: 4px 16px 8px; flex: none; display: grid; gap: 8px; }
.zoek { display: flex; gap: 6px; }
input[type=search] {
  flex: 1; width: 100%; border: 1.5px solid var(--lijn); border-radius: 999px; padding: 8px 14px; font-size: 16px; background: #fff; min-height: 40px;
}
input[type=search]:focus-visible { outline: 3px solid var(--zon-diep); outline-offset: 1px; }
.filters { display: grid; gap: 8px; }
.nest { display: contents; }
.strip { grid-column: 2 / span 2; height: 6px; border-radius: 3px; position: relative; margin-top: 4px; }
.strip i { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--inkt); border-radius: 1px; transform: translateX(-1px); }
.strip.big { height: 10px; margin: 10px 0 2px; }
.axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.acts .chip { font-size: 13px; min-height: 34px; padding: 4px 10px; }
.links { display: flex; gap: 16px; margin-top: 10px; font-size: 14px; font-weight: 600; }
.links a { color: var(--inkt); }
.let { margin: 10px 8px 0; padding: 10px 12px; border-radius: 12px; background: #eef1f8; font-size: 14px; }
.movehint {
  position: fixed; z-index: 6; top: 12px; left: 50%; transform: translateX(-50%); background: var(--inkt); color: #fff;
  padding: 8px 8px 8px 16px; border-radius: 999px; display: flex; gap: 10px; align-items: center; font-size: 15px; box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.movehint[hidden] { display: none; }
.movehint .chip { background: #fff; color: var(--inkt); border-color: #fff; }

.langbtn { margin-left: 6px; border: 1.5px solid rgba(27,35,64,.35); background: rgba(255,255,255,.5); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 9px; cursor: pointer; vertical-align: 1px; }
.sortrow { padding: 4px 16px 0; }
.sortrow .chip { font-size: 13px; min-height: 32px; padding: 4px 10px; }
.links.small { font-size: 12px; font-weight: 400; gap: 10px; flex-wrap: wrap; color: var(--muted); margin-top: 8px; }
.links.small a { color: var(--muted); }
.fb { display: inline-block; font-weight: 600; color: var(--inkt) !important; margin-right: 8px; }
.fb[hidden] { display: none; }
.toast { position: fixed; z-index: 7; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--inkt); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 15px; }
.toast[hidden] { display: none; }

@media (max-width: 759px) {
  .panel {
    left: 0; right: 0; bottom: 0; border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom); transition: height .25s ease;
  }
  .panel { height: 58vh; }
  .panel.groot { height: 88vh; }
  .panel.klein { height: 170px; }
  .grip { width: 100%; background: var(--zon); }
  .grip span { background: rgba(27, 35, 64, .25); }
  .head { padding-top: 4px; }
  .clock { font-size: 32px; }
  .kompas { width: 64px; height: 64px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .chip, #datum { flex: none; }
  .head .weer { font-size: 13px; }
}
