/* Kleuren, lettertypen en reset staan in style.css; hier alleen wat de kaartpagina extra nodig heeft. */
:root {
  --oranje: #f2a96b;
}
body {
  font-family: var(--sans);
  color: var(--inkt);
  line-height: 1.6;
  background: linear-gradient(180deg, #edf1ea, #e6ecdf);
  -webkit-font-smoothing: antialiased;
}
.wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 28px;
}
h1 {
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(2.1rem, 5vw, 4rem);
  max-width: 17ch;
}
em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0;
  color: var(--roest);
}
.sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--gras);
  margin: 18px 0 34px;
}
.kaart {
  position: relative;
  width: min(100%, calc(82vh * 0.743));
  margin: 0 auto;
  border: 3px solid var(--inkt);
  border-radius: 28px;
  overflow: hidden;
  background: #cfe0df;
  box-shadow: 8px 8px 0 var(--inkt);
}
svg.wereld {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 78/105;
}
.zee {
  fill: #cfe0df;
}
.raster {
  stroke: #fff;
  stroke-opacity: 0.6;
  fill: none;
  vector-effect: non-scaling-stroke;
  stroke-width: 1;
}
.land {
  fill: #8fb07a;
  stroke: var(--gras);
  stroke-width: 0.8;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.grens {
  fill: none;
  stroke: #edf1ea;
  stroke-opacity: 0.75;
  stroke-width: 0.6;
  vector-effect: non-scaling-stroke;
}
.lijn {
  fill: none;
  stroke: var(--inkt);
  stroke-width: 1.6;
  stroke-dasharray: 2 5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.spoor-halo,
.spoor path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.spoor-halo {
  stroke: #fff;
  stroke-opacity: 0.55;
  stroke-width: 6.5;
}
.spoor path {
  stroke: var(--oranje);
  stroke-width: 3.2;
}
.ring {
  fill: var(--roest);
  opacity: 0.35;
  transform-box: fill-box;
  transform-origin: center;
  animation: puls 2.4s ease-out infinite;
}
@keyframes puls {
  from {
    transform: scale(0.6);
    opacity: 0.55;
  }
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}
.punt {
  fill: var(--roest);
  stroke: var(--inkt);
  vector-effect: non-scaling-stroke;
  stroke-width: 2.5;
}
.hoeve {
  fill: var(--zon);
  stroke: var(--inkt);
  vector-effect: non-scaling-stroke;
  stroke-width: 2.5;
}
.etiket {
  font-weight: 800;
  font-family: var(--sans);
  fill: var(--inkt);
  paint-order: stroke;
  stroke: #edf1ea;
  stroke-linejoin: round;
}
.zoom {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  border: 3px solid var(--inkt);
  border-radius: 50px;
  overflow: hidden;
  background: var(--zon);
}
.zoom button {
  border: none;
  background: transparent;
  color: var(--inkt);
  font: 700 0.85rem var(--sans);
  padding: 8px 14px;
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s;
}
.zoom button + button {
  border-left: 3px solid var(--inkt);
}
.zoom button:hover {
  background: #f0c894;
}
.zoom button[aria-pressed="true"] {
  background: var(--inkt);
  color: #fff;
}
.zoom button:focus-visible {
  outline: 3px solid var(--inkt);
  outline-offset: -6px;
}
.info {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}
.info div {
  background: var(--inkt);
  color: #fff;
  border-radius: 22px;
  padding: 22px;
}
.info div:nth-child(2) {
  background: var(--gras);
}
.info div:nth-child(3) {
  background: var(--sloot);
}
.info b {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.info span {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 4px;
}
.feiten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.feiten div {
  border: 2px solid var(--inkt);
  border-radius: 18px;
  padding: 14px 18px;
  background: #fff;
}
.feiten dt {
  font: 700 0.8rem var(--sans);
  color: var(--roest);
}
.feiten dd {
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}
.context {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.35;
  color: var(--gras);
  margin-top: 26px;
  max-width: 62ch;
}
.status {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #34443a;
}
.terug {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--roest);
  font-weight: 700;
  text-decoration: none;
}
.terug:hover {
  text-decoration: underline;
}
.legenda[hidden] {
  display: none;
}
.verborgen {
  display: none;
}
.legenda {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.85rem;
  color: #34443a;
}
.legenda i {
  display: inline-block;
  width: 34px;
  height: 0;
  border-top: 4px solid var(--oranje);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.7);
}
.bron {
  margin-top: 26px;
  font-size: 0.85rem;
  color: #34443a;
}
.bron a,
.feiten dd a {
  color: var(--roest);
  font-weight: 600;
}
.voet {
  margin-top: 34px;
  font-size: 0.85rem;
}
.voet a {
  color: var(--roest);
  font-weight: 600;
}
@media (max-width: 860px) {
  .info {
    grid-template-columns: 1fr 1fr;
  }
  .info div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .info {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding: 44px 20px;
  }
  .zoom button {
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ring {
    animation: none;
  }
}

.verbinding {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--inkt);
  color: #fff;
  border-radius: 50px;
  padding: 7px 14px 7px 12px;
  font: 700 0.75rem var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.verbinding i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b4b4ac;
  flex-shrink: 0;
}
.verbinding[data-s="laden"] i {
  background: var(--zon);
  animation: v-knip 1s ease-in-out infinite alternate;
}
.verbinding[data-s="live"] i {
  background: #4ade80;
  animation: v-live 1.8s ease-out infinite;
}
.verbinding[data-s="offline"] i {
  background: #f0685b;
}
@keyframes v-knip {
  from {
    opacity: 0.25;
  }
  to {
    opacity: 1;
  }
}
@keyframes v-live {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.75);
  }
  100% {
    box-shadow: 0 0 0 9px rgba(74, 222, 128, 0);
  }
}
@media (max-width: 560px) {
  .verbinding {
    left: 10px;
    bottom: 10px;
    font-size: 0.68rem;
    padding: 6px 11px 6px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .verbinding i {
    animation: none !important;
  }
}

/* route afspelen */
.speelt .spoor {
  opacity: 0.3;
}
.speel-halo,
.speel-pad {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.speel-halo {
  stroke: #fff;
  stroke-opacity: 0.7;
  stroke-width: 8;
}
.speel-pad {
  stroke: var(--roest);
  stroke-width: 4;
}
.speel-ring {
  fill: none;
  stroke: var(--roest);
  stroke-width: 2;
  opacity: 0.55;
  vector-effect: non-scaling-stroke;
}
.speel-punt {
  fill: #fff;
  stroke: var(--roest);
  stroke-width: 3.5;
  vector-effect: non-scaling-stroke;
}
.speelbalk {
  display: flex;
  align-items: center;
  gap: 18px 22px;
  flex-wrap: wrap;
  margin-top: 24px;
  border: 3px solid var(--inkt);
  border-radius: 22px;
  background: var(--zon);
  padding: 14px 20px;
  box-shadow: 6px 6px 0 var(--inkt);
}
.speelbalk[hidden] {
  display: none;
}
.speel-knop {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  background: var(--inkt);
  color: #fff;
  font: 700 0.95rem var(--sans);
  padding: 11px 20px;
  border-radius: 50px;
  transition:
    background 0.25s,
    transform 0.25s;
}
.speel-knop:hover {
  background: var(--roest);
  transform: translateY(-2px);
}
.speel-icoon {
  display: inline-block;
  width: 1em;
  text-align: center;
  font-size: 0.8rem;
}
.speel-slider {
  flex: 1 1 220px;
  min-width: 160px;
  height: 28px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  --p: 100%;
}
.speel-slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--inkt) var(--p), rgba(22, 33, 26, 0.25) var(--p));
}
.speel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -8px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--inkt);
}
.speel-slider::-moz-range-track {
  height: 8px;
  border-radius: 8px;
  background: rgba(22, 33, 26, 0.25);
}
.speel-slider::-moz-range-progress {
  height: 8px;
  border-radius: 8px;
  background: var(--inkt);
}
.speel-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--inkt);
}
.speel-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
  flex: 1 1 260px;
}
.speel-info b {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.speel-info span {
  font-size: 0.88rem;
}
.speel-info span:empty::before {
  content: "\00a0";
}
@media (max-width: 560px) {
  .speelbalk {
    padding: 12px 14px;
    gap: 14px;
  }
  .speel-info b {
    font-size: 1.3rem;
  }
}
