/* ============================================================
   NAHs Hub Map
   ============================================================ */

/* --- SVG map pins --- */
[id^="marker--"] {
  transition: transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center bottom; /* pin scales up from its tip */
  cursor: pointer;
}

/* Scale is driven by JS class only — no pure CSS :hover here,
   because :hover won't cross-trigger the label bubble */
[id^="marker--"].marker--hover {
  transform: scale(1.2);
}

/* --- Label bubbles (hidden by default) --- */
#layer-city-names a {
  cursor: pointer;
  opacity: 0;
  pointer-events: none; /* invisible labels must not block map clicks */
  transition: opacity 0.15s ease;
}

/* Bubble becomes visible when JS adds the class */
#layer-city-names a.label--hover {
  opacity: 1;
  pointer-events: all; /* allow hover to stay active when cursor moves onto the bubble */
}

/* --- Popup (click fallback) --- */
.map-popup {
  position: absolute;
  background: #ffffff;
  border: 2px solid #034da2;
  color: #034da2;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  pointer-events: auto;
  white-space: nowrap;
}

.map-popup a {
  display: block;
  font-size: 0.85em;
  font-weight: normal;
  color: #034da2;
  margin-top: 4px;
}