/* === LAYOUT === */
.grondplan {
  width: 100%;
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding: 1rem;
  box-sizing: border-box;
}

/* Links — kaart */
.map-wrapper {
  width: 55%;
  position: relative;
  aspect-ratio: 1300/1000;
  overflow: visible;
  line-height: 0;
}

.map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* pad styling */
.map-overlay path {
  fill: rgba(255,255,255,0);
  stroke: rgba(0,0,0,0);
  stroke-width: 1;
  transition: fill .18s ease, stroke .18s ease;
}

.map-overlay path.clickable {
  pointer-events: auto;  /* alleen deze reageren op hover/click */
  cursor: pointer;
}

.map-overlay path.hover {
  fill: rgba(0,0,0,0.2);
  stroke: rgba(0,0,0,0.8);
}

.map-overlay path:focus:not(:focus-visible) {
  outline: none;
}

/* Tooltip laag */
.tooltip-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tooltip {
  position: absolute;
  transform: translate(-50%, -120%);
  padding: 6px 10px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(12px, 1.4vw, 18px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .12s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
  line-height: 1.2;
  text-align: center; /* <<< FIX voor meerdere regels */
}

.tooltip.visible {
  opacity: 1;
}

.info-panel {
  width: 40%;
  box-sizing: border-box;
}

.info-item {
  display: none;
  opacity: 0;
  transition: opacity .18s ease;
}

.info-item.active {
  display: block;
  opacity: 1;
}

/* small responsive */
@media (max-width: 900px) {
  .grondplan { flex-direction: column; }
  .map-wrapper, .info-panel { width: 100%; }
  .map-wrapper { aspect-ratio: 1300/800; }
}