/* Leaflet Map Styles */
.custom-map-marker .marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #10b981;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.custom-map-marker .marker-pin::after {
    content: '';
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: white;
    position: absolute;
    border-radius: 50%;
}

.custom-map-marker i {
    position: absolute;
    width: 22px;
    font-size: 14px;
    left: 0;
    right: 0;
    margin: 10px auto;
    text-align: center;
    transform: rotate(45deg);
    z-index: 1;
    color: #10b981;
}

.map-popup {
    padding: 0.5rem;
}

.map-popup h3 {
    margin: 0 0 0.25rem 0;
    font-size: 1rem;
}

.leaflet-popup-content-wrapper {
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.1);
}

/* Dark mode support for map */
.dark .leaflet-container {
    background: #1f2937;
}

.dark .leaflet-popup-content-wrapper {
    background: #374151;
    color: white;
}

.dark .leaflet-popup-tip {
    background: #374151;
}

.dark .map-popup h3 {
    color: white;
}

.dark .map-popup p {
    color: #d1d5db;
}

/* Marker cluster styles */
.marker-cluster-small {
    background-color: rgba(16, 185, 129, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(16, 185, 129, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(251, 191, 36, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(251, 191, 36, 0.8);
}

.marker-cluster-large {
    background-color: rgba(239, 68, 68, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(239, 68, 68, 0.8);
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 50%;
}

.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: 5px;
    margin-top: 5px;
    text-align: center;
    border-radius: 50%;
    font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
    font-weight: bold;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-cluster span {
    line-height: 30px;
}
