.map-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overscroll-behavior: contain;
  transition: opacity 0.25s ease;
}

.map-popup-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.map-popup {
  position: relative;
  width: min(100%, 420px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 30px 24px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.map-popup h2 {
  margin: 0 0 8px;
  font: 400 28px/1.2 "DM Serif Display", Georgia, serif;
}

.map-popup p {
  margin: 0 0 20px;
  color: #595959;
  font-size: 14px;
}

.map-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.map-option {
  display: block;
  padding: 14px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

.map-option.primary {
  background: var(--site-sage);
  color: #fff;
}

.map-option.secondary {
  background: var(--site-tan);
  color: #3f3f3f;
}

.map-popup-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 760px) {
  .map-popup {
    width: min(100%, 92vw);
    padding: 26px 18px 20px;
    border-radius: 18px;
  }
}
