* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; font-family: -apple-system, "Segoe UI", Roboto, sans-serif; }
body { display: flex; flex-direction: column; }

header {
  padding: 10px 14px;
  background: #1e293b;
  color: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
}
.title { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
h1 { font-size: 17px; font-weight: 650; }
.nav a {
  color: #cbd5e1; text-decoration: none; font-size: 13px; padding: 2px 8px;
  border-radius: 6px;
}
.nav a.active { background: #334155; color: #fbbf24; font-weight: 650; }
.cloud-badge {
  font-size: 12px;
  background: #334155;
  border-radius: 999px;
  padding: 2px 10px;
  color: #cbd5e1;
}
.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.controls input[type="date"] {
  border: none; border-radius: 6px; padding: 4px 6px;
  font: inherit; font-size: 13px; background: #f1f5f9;
}
#timeSlider { flex: 1; min-width: 140px; accent-color: #fbbf24; }
.time-label { font-variant-numeric: tabular-nums; font-weight: 650; min-width: 46px; }
#nowBtn {
  border: none; border-radius: 6px; padding: 4px 12px; font: inherit; font-size: 13px;
  background: #fbbf24; color: #1e293b; font-weight: 650; cursor: pointer;
}
.filter { font-size: 12px; display: flex; align-items: center; gap: 4px; color: #cbd5e1; }
.counter { font-size: 12px; color: #fbbf24; font-weight: 650; }

#map { flex: 1; }

.legend {
  position: absolute; bottom: 14px; left: 14px; z-index: 900;
  background: rgba(255,255,255,.92); border-radius: 8px; padding: 8px 12px;
  display: flex; gap: 14px; font-size: 12px; color: #1e293b;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.legend span { display: flex; align-items: center; gap: 5px; }
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1.5px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,.4); }
.dot.sun { background: #fbbf24; }
.dot.shade { background: #64748b; }
.dot.night { background: #1e293b; }

.popup h3 { font-size: 14px; margin-bottom: 2px; }
.popup .meta { color: #64748b; font-size: 12px; margin-bottom: 6px; }
.popup .status { font-weight: 650; font-size: 13px; margin-bottom: 4px; }
.popup .status.sun { color: #b45309; }
.popup .status.shade { color: #475569; }
.popup .windows { font-size: 12px; color: #334155; }

.popup .open, .open { color: #16a34a; }
.popup .closed, .closed { color: #dc2626; }

/* lijstpagina */
.list-page main { flex: 1; overflow: auto; }
.controls select {
  border: none; border-radius: 6px; padding: 4px 6px;
  font: inherit; font-size: 13px; background: #f1f5f9;
}
#listTable { width: 100%; border-collapse: collapse; font-size: 13px; }
#listTable th {
  text-align: left; padding: 8px 12px; position: sticky; top: 0;
  background: #f1f5f9; color: #475569; font-size: 12px;
}
#listTable td { padding: 7px 12px; border-top: 1px solid #e2e8f0; }
#listTable .wins { color: #64748b; font-variant-numeric: tabular-nums; }
.row-sun td:first-child { border-left: 3px solid #fbbf24; }
.row-shade td:first-child, .row-night td:first-child { border-left: 3px solid #cbd5e1; }

@media (max-width: 640px) {
  h1 { font-size: 15px; }
  .legend { bottom: 24px; }
}
