/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* Custom Leaflet Popup Styles */
.leaflet-popup-pane {
  z-index: 1100 !important;
}

.leaflet-popup {
  z-index: 1100 !important;
}

.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.15), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  position: relative;
  z-index: 1100;
}

.leaflet-popup-content {
  margin: 0;
  width: auto !important;
}

.leaflet-popup-tip-container {
  z-index: 1100 !important;
}

.leaflet-popup-tip {
  box-shadow: 0 3px 14px rgba(0,0,0,0.15);
  z-index: 1100;
}

.custom-popup .leaflet-popup-close-button {
  top: 8px;
  right: 8px;
  font-size: 24px;
  color: white;
  font-weight: 300;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  padding: 4px 8px;
}

.custom-popup .leaflet-popup-close-button:hover {
  color: rgba(255, 255, 255, 0.8);
  background-color: transparent;
}

/* Ensure links in popups have white text on colored backgrounds */
.leaflet-popup a {
  color: inherit;
  text-decoration: none;
}

/* Hide Leaflet attribution */
.leaflet-control-attribution {
  display: none !important;
}
