/* Map marker clusters styles */
.marker-cluster {
  background-clip: padding-box;
  border-radius: 20px;
}

.marker-cluster div {
  width: 30px;
  height: 30px;
  margin-left: 5px;
  margin-top: 5px;
  text-align: center;
  border-radius: 15px;
  font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-weight: bold;
  line-height: 30px;
}

.marker-cluster-small {
  background-color: rgba(181, 226, 140, 0.9);
  border: 4px solid rgba(160, 202, 125, 0.9);
}

.marker-cluster-small div {
  background-color: rgba(110, 204, 57, 0.9);
  color: #fff;
}

.marker-cluster-medium {
  background-color: rgba(241, 211, 87, 0.9);
  border: 4px solid rgba(225, 195, 71, 0.9);
}

.marker-cluster-medium div {
  background-color: rgba(255, 193, 7, 0.9);
  color: #fff;
}

.marker-cluster-large {
  background-color: rgba(253, 156, 115, 0.9);
  border: 4px solid rgba(241, 128, 83, 0.9);
}

.marker-cluster-large div {
  background-color: rgba(241, 128, 83, 0.9);
  color: #fff;
}

/* Map popup styles */
.leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: 8px;
  /* Ensure popup is always visible */
  z-index: 1001 !important;
}

.leaflet-popup-content {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  /* Fallback styles for popup content */
  min-width: 250px;
  max-width: 400px;
}

/* Popup content fallback styles */
.leaflet-popup-tip {
  background: white;
  border: none;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
  z-index: 999 !important;
}

/* Custom map controls */
.leaflet-control-zoom {
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

.leaflet-control-zoom a {
  border: none !important;
  color: #374151 !important;
  font-weight: bold !important;
}

.leaflet-control-zoom a:hover {
  background-color: #f3f4f6 !important;
  color: #1f2937 !important;
}

/* Map container adjustments */
.leaflet-container {
  font-family: inherit;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .marker-cluster div {
    width: 25px;
    height: 25px;
    margin-left: 7px;
    margin-top: 7px;
    line-height: 25px;
    font-size: 11px;
  }

  .marker-cluster {
    border-radius: 17px;
  }

  .marker-cluster div {
    border-radius: 12px;
  }
}
