/* Mini incident map embedded above single-post content. */
.unfall-minimap {
  position: relative;
  width: 100%;
  height: 220px;
  margin: 0 0 18px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  z-index: 0;
}

@media (max-width: 767px) {
  .unfall-minimap { height: 180px; }
}

/* Static map: no Leaflet UI chrome should be visible/clickable. */
.unfall-minimap .leaflet-control-container { display: none; }

.unfall-minimap-cta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 500;
  pointer-events: none;
  background: rgba(226, 59, 46, 0.95);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 11px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Pin styling — copied from map.css so the mini-map is self-contained. */
.unfall-minimap .incident-pin {
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  width: 26px !important;
  height: 26px !important;
  margin-left: -13px !important;
  margin-top: -13px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.unfall-minimap .incident-pin svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.unfall-minimap .incident-pin .text-glyph {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Pin colors by precision level — traffic light: green=exact ... red=vague.
   Scoped to .unfall-minimap so both the map marker and the legend pins recolor. */
.unfall-minimap .incident-pin--street { background-color: #2e9b3e; } /* genau  */
.unfall-minimap .incident-pin--city   { background-color: #f2b705; } /* mittel */
.unfall-minimap .incident-pin--region,
.unfall-minimap .incident-pin--canton { background-color: #e23b2e; } /* ungenau */

/* Compact legend, bottom-left — smaller than the full map's legend. */
.unfall-minimap-legend {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 500;
  pointer-events: none; /* clicks fall through to the map link */
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 5px;
  padding: 5px 7px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  font-size: 10px;
  line-height: 1.3;
  color: #555;
}

.unfall-minimap-legend-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 1px;
}

.unfall-minimap-legend-row {
  display: flex;
  align-items: center;
}

/* Tiny pins inside the legend (override the 26px map marker sizing). */
.unfall-minimap-legend .incident-pin {
  position: relative;
  width: 14px !important;
  height: 14px !important;
  margin: 0 5px 0 0 !important;
  border-width: 1.5px;
}

.unfall-minimap-legend .incident-pin svg {
  width: 8px;
  height: 8px;
}

@media (max-width: 767px) {
  .unfall-minimap-legend { font-size: 9px; padding: 4px 6px; }
  .unfall-minimap-legend .incident-pin { width: 12px !important; height: 12px !important; }
}
