
/* Interactieve plattegrond */

.map-wrap {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 10px;
  overflow: hidden;
}

.map-image {
  position: relative;
  width: 100%;
  line-height: 0;
}

.map-image .plat {
  display: block;
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 14px;
}

#mapHotspots {
  position: absolute;
  inset: 0;
}

/* Klikbare locaties */

.map-hotspot {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px;

  background: rgba(255, 253, 248, .76);
  border: 2px solid rgba(138, 117, 86, .75);
  border-radius: 9px;

  color: #33251a;
  font: 600 clamp(9px, 1.15vw, 14px)/1.1 'DM Sans', sans-serif;

  cursor: pointer;
  line-height: 1.1;
  backdrop-filter: blur(2px);

  transition:
    background .15s,
    border-color .15s,
    transform .15s;

  overflow: hidden;
}

.map-hotspot span {
  font-size: clamp(12px, 1.5vw, 20px);
}

.map-hotspot b {
  font-weight: 700;
  text-align: center;
}

.map-hotspot:hover,
.map-hotspot:focus-visible {
  background: rgba(255, 214, 105, .95);
  border-color: var(--co);
  transform: scale(1.03);
  z-index: 2;
}

/* Uitleg onder de plattegrond */

.map-help {
  font-size: 14px;
  color: var(--mute);
  margin: 10px 0 14px;
}

/* Legenda */

.map-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-key-item {
  font: inherit;
  font-size: 14px;
  padding: 7px 12px;

  border: 1px solid var(--line);
  border-radius: 99px;

  background: var(--bg);
  color: var(--ink);

  cursor: pointer;
}

.map-key-item:hover {
  background: var(--p);
  border-color: var(--pd);
}

/* Actieve navigatielink */

.side nav a[aria-current="page"] {
  background: var(--p);
  border-color: var(--pd);
}

/* Mobiele weergave */

@media (max-width: 600px) {

  .map-wrap {
    padding: 5px;
    border-radius: 14px;
  }

  .map-hotspot {
    border-width: 1px;
    border-radius: 5px;
    padding: 1px;
    gap: 0;
  }

  .map-hotspot span {
    font-size: 11px;
  }

  .map-hotspot b {
    font-size: 7px;
    letter-spacing: -.2px;
  }

  .map-key {
    gap: 6px;
  }

  .map-key-item {
    font-size: 12px;
    padding: 6px 9px;
  }

}
