/* Wspólne style mapy okolicy: legenda, znaczniki i dymki. Kolory i kroje biorą się ze zmiennych strony. */
.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.4rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.map-legend li { display: flex; align-items: center; gap: 0.6em; }
.map-legend .map-venue, .map-legend .map-car-park, .map-legend .map-bay { flex: none; }
.map-legend .map-venue { width: 14px; height: 14px; cursor: default; }
.map-legend .map-car-park { width: 20px; height: 20px; font-size: 0.72rem; letter-spacing: 0; cursor: default; }
.map-bay { width: 8px; height: 8px; border-radius: 50%; background: rgba(141, 46, 86, 0.55); }

.map-venue {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--plum);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 1.5px var(--plum), 0 2px 6px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  cursor: pointer;
}
.map-car-park {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--plum);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}
.map-venue-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35em 0.8em;
  border-radius: 999px;
  background: var(--plum);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.map-venue-label.above { bottom: calc(100% + 9px); }
.map-venue-label.below { top: calc(100% + 9px); }

.map-osm .maplibregl-popup-content {
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: var(--ivory);
  color: var(--plum);
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.6;
  text-align: left;
}
.map-osm .maplibregl-popup-content a { color: var(--plum); text-underline-offset: 0.25em; }
.map-osm .maplibregl-popup-anchor-bottom .maplibregl-popup-tip,
.map-osm .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip,
.map-osm .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--ivory); }
.map-osm .maplibregl-popup-anchor-top .maplibregl-popup-tip,
.map-osm .maplibregl-popup-anchor-top-left .maplibregl-popup-tip,
.map-osm .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--ivory); }
.map-osm .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--ivory); }
.map-osm .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--ivory); }
