/* Loaded after leaflet.css — dark popups and controls on black-themed site */
.leaflet-container .leaflet-popup-content-wrapper {
  background: #000000 !important;
  color: #ffffff !important;
  border: 1px solid #2a2a2a;
}

.leaflet-container .leaflet-popup-content {
  margin: 0 !important;
  color: #ffffff !important;
}

.leaflet-container .leaflet-popup-tip {
  background: #000000 !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #ffffff !important;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #e2b49f !important;
}

.leaflet-container .map-popup,
.leaflet-container .map-popup-title,
.leaflet-container .map-popup-desc {
  color: #ffffff !important;
}

/* Give popups a stable width so they don't shrink to a narrow strip when the
   caption contains line breaks (white-space: pre-wrap shrink-to-fit issue). */
.leaflet-container .map-popup {
  width: 280px;
  max-width: 74vw;
  box-sizing: border-box;
}

.leaflet-container .map-popup-desc {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.leaflet-container .map-popup-more {
  color: #e2b49f !important;
}
