html, body {
  height: 100%;
  margin: 0;
}
body {
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.topbar {
  height: clamp(5vh, 2vw + 5vh, 10vh);
  background: #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: center;
}

.topbar a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.topbar-logo {
  max-height: 70%;
  width: auto;
  height: auto;
  display: block;
}


/* Kaartsectie */
.map-wrap {
  height: 93vh;
  position: relative;
}
#map {
  width: 100%;
  height: 100%;
}

/* Footer (2%) */
.footer {
  height: 2vh;
  min-height: 36px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #2b2b2b;
  border-top: 1px solid #e2e2e2;
}

.follow-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  cursor: pointer;
  font-size: 14px;
}
.follow-toggle input {
  appearance: none;
  width: 0;
  height: 0;
  position: absolute;
  opacity: 0;
}
.toggle-fake {
  display: inline-block;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: #d1d5db;
  position: relative;
  transition: background .2s ease;
  margin-right: 4px;
}
.toggle-fake::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 2px rgba(0,0,0,.3);
  transition: transform .2s ease;
}
.follow-toggle input:checked + .toggle-fake {
  background: #4ade80;
}
.follow-toggle input:checked + .toggle-fake::after {
  transform: translateX(18px);
}

.time-square {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;   /* iets breder */
  min-height: 28px;  /* lager dan breed, beter voor hh:mm */
  background: white;
  border: 1px solid #111827;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.2;
  color: #111827;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
  text-align: center;
}
.time-square.small {
  width: 30px;
  height: 30px;
  font-size: 11px;
}

.gps-pulse {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37,99,235,.25), 0 2px 6px rgba(0,0,0,.25);
  border: 2px solid white;
}
