/* Leaflet Map Styles */

#business-map,
#analytics-map {
  /* TODO: Portrait orientation is more appropriate for Cumbria
   * Do also consider how this will look on mobile */
  height: 500px !important;
  width: 100% !important;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  border: 1px solid rgb(229, 231, 235);
}

/* Ensure Leaflet containers have proper height */
.leaflet-container {
  height: 100% !important;
  width: 100% !important;
}

/* Fix any potential z-index issues */
.leaflet-pane {
  z-index: auto !important;
}

/* Ensure map tiles are visible */
.leaflet-tile-pane {
  z-index: 2 !important;
}

.leaflet-overlay-pane {
  z-index: 4 !important;
}

.leaflet-marker-pane {
  z-index: 5 !important;
}

.custom-marker {
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-marker>div {
  background-color: #3b82f6;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.custom-marker>div[data-size="1"] {
  width: 12px;
  height: 12px;
}

.custom-marker>div[data-size="2"] {
  width: 14px;
  height: 14px;
}

.custom-marker>div[data-size="3"] {
  width: 16px;
  height: 16px;
}

.custom-marker>div[data-size="4"] {
  width: 18px;
  height: 18px;
}

.custom-marker>div[data-size="5"] {
  width: 20px;
  height: 20px;
}

.custom-marker>div[data-size="6"] {
  width: 22px;
  height: 22px;
}

.custom-marker>div[data-size="7"] {
  width: 24px;
  height: 24px;
}

.custom-marker>div[data-size="8"] {
  width: 26px;
  height: 26px;
}

.custom-marker>div[data-size="9"] {
  width: 28px;
  height: 28px;
}

.custom-marker>div[data-size="10"] {
  width: 30px;
  height: 30px;
}

.custom-marker>div[data-size="11"] {
  width: 32px;
  height: 32px;
}

.custom-marker>div[data-size="12"] {
  width: 34px;
  height: 34px;
}

.custom-marker>div[data-size="13"] {
  width: 36px;
  height: 36px;
}

.custom-marker>div[data-size="14"] {
  width: 38px;
  height: 38px;
}

.custom-marker>div[data-size="15"] {
  width: 40px;
  height: 40px;
}

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