/* Leaflet popup close button fix */
.leaflet-popup-close-button {
  position: absolute !important;
  top: 28px !important;
  right: 12px !important;
  width: 24px !important;
  height: 24px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border: 1px solid #ddd !important;
  border-radius: 50% !important;
  color: #666 !important;
  font-size: 18px !important;
  line-height: 22px !important;
  text-align: center !important;
  text-decoration: none !important;
  font-weight: bold !important;
  z-index: 3000 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
  transition: all 0.2s ease !important;
}

/* Leaflet popup pane override */
.leaflet-popup-pane {
  z-index: 9999 !important;
}

/* All popup elements */
.leaflet-popup {
  z-index: 9999 !important;
}

.leaflet-popup-content-wrapper {
  z-index: 9999 !important;
}

.leaflet-popup-close-button:hover {
  background: rgba(255, 255, 255, 1) !important;
  color: #333 !important;
  border-color: #999 !important;
  transform: scale(1.1) !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .leaflet-popup-close-button {
    top: 26px !important;
    right: 10px !important;
    width: 22px !important;
    height: 22px !important;
    font-size: 16px !important;
    line-height: 20px !important;
  }
}