/* Base map styles */
#map {
    z-index: 0;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Toggle switch states */
.toggle-switch[data-state="checked"] {
    background-color: hsl(222.2 47.4% 11.2%);
}

.toggle-switch[data-state="unchecked"] {
    background-color: hsl(214.3 31.8% 91.4%);
}

.toggle-switch[data-state="checked"] .toggle-thumb {
    transform: translateX(1.25rem);
}

.toggle-switch[data-state="unchecked"] .toggle-thumb {
    transform: translateX(0);
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 4px;
}

.leaflet-popup-content {
    margin: 16px;
}

/* Custom marker styling */
.azc-marker {
    background: transparent;
    border: none;
}

/* Capacity label tooltips */
.capacity-label {
    background: rgba(0, 0, 0, 0.75) !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 2px 6px !important;
    font-size: 11px !important;
    font-weight: bold !important;
    color: white !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
}

.capacity-label::before {
    border-top-color: rgba(0, 0, 0, 0.75) !important;
}

/* Cluster label styling */
.cluster-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cluster-label {
    background: rgba(0, 0, 0, 0.75);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 11px;
    font-weight: bold;
    color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    margin-bottom: 4px;
    white-space: nowrap;
}

.cluster-icon {
    /* Icon styling is inline */
}

.marker-cluster-custom {
    background: transparent !important;
    border: none !important;
}

/* Search results dropdown */
#search-results {
    background: white;
    z-index: 1000;
}

#search-results::-webkit-scrollbar {
    width: 8px;
}

#search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#search-results::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#search-results::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.search-result-item {
    transition: background-color 0.15s ease;
}

/* Search input focus state */
#city-search:focus {
    border-color: hsl(222.2 47.4% 11.2%);
}
