.hnrp-map {
  margin-bottom: 38px;
  padding: 20px;
  border: 1px solid #2a5278;
  border-radius: 22px;
  color: #eaf6ff;
  background: linear-gradient(140deg, #132f50, #08182c 75%);
}
.hnrp-map-header, .hnrp-map-toolbar, .hnrp-map-zoom {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hnrp-map-header {
  justify-content: space-between;
  flex-wrap: wrap;
  padding-bottom: 16px;
}
.hnrp-map-header h2, .hnrp-map-details h3 {
  margin: 0;
  color: #f4faff;
  font-family: "Inter", system-ui, sans-serif;
  letter-spacing: -.035em;
}
.hnrp-map-header h2 { font-size: clamp(22px, 3.6vw, 32px); }
.hnrp-map-toolbar { flex-wrap: wrap; gap: 8px; }
.hnrp-map-zoom { gap: 3px; }
.hnrp-map-toolbar button, .hnrp-map-toolbar select {
  min-height: 38px;
  border: 1px solid #3a6590;
  border-radius: 8px;
  background: #102a45;
  color: #eff8ff;
  padding: 5px 10px;
  font: 650 13px/1.3 system-ui, sans-serif;
}
.hnrp-map-toolbar button { min-width: 38px; }
.hnrp-map-toolbar button:disabled { opacity: .45; }
.hnrp-map-area {
  position: relative;
  isolation: isolate;
}
.hnrp-map-viewport {
  width: 100%;
  max-height: min(70vh, 670px);
  overflow: auto;
  border: 1px solid #2c5b83;
  border-radius: 12px;
  background: #112c35;
  scrollbar-color: #497b9d #0a2332;
}
.hnrp-map-viewport.is-dragging { cursor: grabbing; }
.hnrp-map-stage {
  position: relative;
  min-width: 920px;
  width: 100%;
  aspect-ratio: 1720 / 978;
}
.hnrp-map-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  user-select: none;
  -webkit-user-drag: none;
}
.hnrp-map-point, .hnrp-map-tag, .hnrp-map-legend span {
  --marker-accent: #a9c8e0;
  --marker-fill: #17304c;
  background: var(--marker-fill);
  color: #f6fbff;
  border: 1px solid var(--marker-accent);
}
.hnrp-map-point[data-status="frei"], .hnrp-map-tag[data-status="frei"], .hnrp-map-legend span[data-status="frei"] {
  --marker-accent: #61e3ad;
  --marker-fill: #104238;
}
.hnrp-map-point[data-status="reserviert"], .hnrp-map-tag[data-status="reserviert"], .hnrp-map-legend span[data-status="reserviert"] {
  --marker-accent: #ffdc8b;
  --marker-fill: #513c18;
}
.hnrp-map-point:is([data-status="belegt"], [data-status="vermietet"], [data-status="verkauft"]),
.hnrp-map-tag:is([data-status="belegt"], [data-status="vermietet"], [data-status="verkauft"]),
.hnrp-map-legend span[data-status="verkauft"] {
  --marker-accent: #ffadab;
  --marker-fill: #592a40;
}
.hnrp-map-point {
  position: absolute;
  translate: -50% -50%;
  width: clamp(16px, 1.6vw, 23px);
  height: clamp(16px, 1.6vw, 23px);
  padding: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 10px/1 system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px #071322a6, 0 2px 6px #020c15bf;
  touch-action: manipulation;
}
.hnrp-map-point:is(:hover, .is-active) {
  z-index: 1;
  scale: 1.14;
  outline: 2px solid #ecf8ff;
  outline-offset: 1px;
}
.hnrp-map :focus-visible { outline: 2px solid #a2e6ff; outline-offset: 3px; }
.hnrp-map-details {
  --map-arrow-x: 50%;
  position: absolute;
  z-index: 4;
  width: min(285px, calc(100% - 16px));
  padding: 14px;
  border: 1px solid #305475;
  border-radius: 12px;
  background: #0c2239;
  box-shadow: 0 10px 32px #040b17c9;
  border-color: #5597c3;
}
.hnrp-map-details[hidden] { display: none; }
.hnrp-map-details::before {
  position: absolute;
  left: var(--map-arrow-x);
  width: 11px;
  height: 11px;
  content: "";
  background: inherit;
  border: solid #5597c3;
  rotate: 45deg;
  translate: -50%;
}
.hnrp-map-details[data-placement="above"]::before {
  bottom: -6px;
  border-width: 0 1px 1px 0;
}
.hnrp-map-details[data-placement="below"]::before {
  top: -6px;
  border-width: 1px 0 0 1px;
}
.hnrp-map-details h3 { padding-right: 22px; }
.hnrp-map-details [data-map-body] { max-height: 170px; overflow: auto; }
.hnrp-map-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 1px solid #305475;
  border-radius: 7px;
  color: #d9efff;
  background: #153451;
  line-height: 1;
}
.hnrp-map-close[hidden] { display: none; }
.hnrp-map-details [data-map-number] {
  margin: 0 0 6px;
  color: #8bd5ff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hnrp-map-details h3 { font-size: 20px; overflow-wrap: anywhere; }
.hnrp-map-details [data-map-body] { margin: 12px 0; }
.hnrp-map-tag { display: inline-block; border-radius: 20px; padding: 2px 8px; font-size: 11px; }
.hnrp-map-fields { display: grid; grid-template-columns: auto 1fr; gap: 5px 10px; margin: 12px 0 0; }
.hnrp-map-fields dt { color: #9ebdd6; font-size: 12px; }
.hnrp-map-fields dd { margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.hnrp-map-message, .hnrp-map-description, .hnrp-map-sync {
  font-size: 13px;
  color: #c2d9ec;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.hnrp-map-details a {
  display: inline-block;
  color: #91d7ff;
  font: 650 12px/1.4 system-ui, sans-serif;
}
.hnrp-map-details a:hover { text-decoration: underline; }
.hnrp-map-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}
.hnrp-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  list-style: none;
  color: #c2d9ec;
  font-size: 12px;
  margin: 0;
  padding: 0;
}
.hnrp-map-legend li { display: flex; align-items: center; gap: 5px; }
.hnrp-map-legend span { width: 9px; height: 9px; border-radius: 50%; }
.hnrp-map-sync { margin: 0; }
.hnrp-map-sync:empty { display: none; }
@media (max-width: 900px) {
  .hnrp-map { padding: 12px; }
  .hnrp-map-point { width: 17px; height: 17px; }
}
