/* Werkplaats Profiel – AHN-verkenningskaart. Alleen presentatie; geen wijzigingen in profielberekening. */
.ahn-relief-canvas {
  position: absolute;
  pointer-events: none;
  image-rendering: auto;
  transition: opacity .12s ease;
}
.ahn-map-control {
  font: 12px/1.4 'DM Sans', system-ui, sans-serif;
  position: relative;
  width: 48px;
  height: 36px;
  pointer-events: auto;
}
.ahn-map-control button, .ahn-map-control input { font: inherit; }
.ahn-map-trigger {
  min-width: 48px;
  height: 36px;
  border: 1px solid rgba(15,23,42,.16);
  border-radius: 9px;
  background: rgba(255,255,255,.97);
  box-shadow: 0 3px 12px rgba(15,23,42,.14);
  color: #334155;
  font-weight: 750 !important;
  letter-spacing: .04em;
  cursor: pointer;
}
.ahn-map-trigger.is-active {
  background: #fff2e5;
  border-color: #c98652;
  color: #a45120;
}
.ahn-map-trigger.is-loading::after {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  margin-left: 5px;
  vertical-align: middle;
  border-radius: 50%;
  background: #e0894e;
}
.ahn-map-panel {
  width: min(302px, calc(100vw - 35px));
  max-height: min(620px, calc(100vh - 132px));
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 7px;
  padding: 13px;
  border: 1px solid rgba(15,23,42,.13);
  border-radius: 12px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 34px rgba(15,23,42,.17);
  color: #334155;
}
.ahn-map-heading {
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px; margin-bottom: 12px; font-size: 13px;
}
.ahn-map-close {
  width: 25px; height: 25px;
  border: 0; background: #f1f5f9; color: #475569; border-radius: 7px;
  font-size: 19px !important; cursor: pointer;
}
.ahn-map-switch {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; cursor: pointer; padding: 5px 0;
}
.ahn-map-switch input, .ahn-map-radios input { accent-color: #c56a32; }
.ahn-map-field { display: grid; gap: 7px; margin: 10px 0 13px; }
.ahn-map-label { display: block; font-weight: 750; font-size: 11px; color: #475569; }
.ahn-map-sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.ahn-map-sources button {
  min-height: 32px; padding: 0 3px;
  border: 1px solid #e2e8f0;
  background: #fff; color: #334155; border-radius: 7px;
  cursor: pointer; font-weight: 700;
}
.ahn-map-sources button.active {
  border-color: #c56a32; background: #fff1e6; color: #9c4e1e;
}
.ahn-map-palettes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ahn-map-palette {
  display: grid; gap: 4px;
  min-width: 0; padding: 4px;
  border: 1px solid #e2e8f0; border-radius: 8px;
  background: #fff; color: #475569; font-size: 10px !important;
  cursor: pointer; text-align: center;
}
.ahn-map-palette.active { border: 2px solid #c56a32; padding: 3px; color: #92400e; font-weight: 700; }
.ahn-map-swatch { display: block; width: 100%; height: 21px; border-radius: 5px; }
.ahn-map-radios { display: grid; gap: 6px; font-size: 11px; }
.ahn-map-radios label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.ahn-map-slider { width: 100%; accent-color: #c56a32; }
.ahn-map-opacity { float: right; font-weight: 500; font-variant-numeric: tabular-nums; }
.ahn-map-legend { margin-top: 10px; }
.ahn-map-gradient { height: 12px; border-radius: 5px; border: 1px solid rgba(15,23,42,.13); }
.ahn-map-legend-note { margin-top: 5px; color: #64748b; font-size: 10px; }
.ahn-map-legend-labels {
  display: flex; justify-content: space-between;
  font: 10px 'JetBrains Mono', ui-monospace, monospace;
  margin-top: 5px; color: #475569;
}
.ahn-map-status {
  margin: 9px 0 0;
  min-height: 13px;
  font-size: 10px; color: #64748b;
  overflow-wrap: anywhere;
}
.ahn-map-control button:focus-visible,
.ahn-map-control input:focus-visible {
  outline: 2px solid #c56a32;
  outline-offset: 2px;
}
@media (max-width: 730px) {
  .ahn-map-panel { max-height: min(470px, calc(100vh - 128px)); }
}

/* Passieve hoogtemeting op het al geladen raster: nooit muisinteractie blokkeren. */
.ahn-map-height-tooltip {
  position: absolute;
  z-index: 720;
  pointer-events: none;
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 7px;
  border: 1px solid rgba(15,23,42,.18);
  background: rgba(255,255,255,.97);
  box-shadow: 0 3px 14px rgba(15,23,42,.16);
  color: #1f2937;
  font: 700 11px/1.25 'DM Sans',system-ui,sans-serif;
  font-variant-numeric: tabular-nums;
}

/* Laadstatus in het kaartbeeld, ook zichtbaar als het AHN-paneel gesloten is. */
.ahn-map-notice {
  position: absolute;
  z-index: 710;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(360px, 80%);
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(15,23,42,.13);
  background: rgba(255,255,255,.94);
  box-shadow: 0 3px 12px rgba(15,23,42,.13);
  color: #475569;
  font: 600 11px/1.3 'DM Sans',system-ui,sans-serif;
  text-align: center;
  pointer-events: none;
}
