/* Leaflet Custom Markers - AED Hotspot */

.leaflet-custom-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.marker {
    cursor: pointer;
    user-select: none;
}

.marker-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    border: 2px solid #FF6B6B;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    background-color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.marker-wrapper::before {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background-color: #FF6B6B;
    border-radius: 50%;
    top: 8px;
    left: 8px;
}

.marker-wrapper .pin {
    width: 30px;
    height: 30px;
    border: 1px solid #FF6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    transform: rotate(45deg);
    overflow: hidden;
}

.marker-wrapper .pin::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: #FF6B6B;
    border-radius: 50%;
}

.marker-wrapper .pin .image {
    width: 26px;
    height: 26px;
    border: 1px solid #FF6B6B;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    transform: rotate(-45deg);
}

.marker-wrapper .pin .image::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #FF6B6B;
}

.marker-wrapper .tag {
    position: absolute;
    top: 2px;
    right: -5px;
    width: 18px;
    height: 18px;
    background-color: #FF6B6B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 10px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    z-index: 10;
}

.marker.active .marker-wrapper {
    box-shadow: 0 0 0 3px rgba(27, 177, 94, 0.3), 0 2px 6px rgba(0,0,0,0.3);
    transform: rotate(-45deg) scale(1.1);
}

.marker.hover-state .marker-wrapper {
    box-shadow: 0 0 0 2px rgba(27, 177, 94, 0.2), 0 2px 6px rgba(0,0,0,0.3);
    transform: rotate(-45deg) scale(1.05);
}

.marker .title {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.map .show-marker-labels .marker .title {
    opacity: 1;
}

.marker:hover .title {
    opacity: 1;
}

/* Leaflet Popup styling */
.marker-popup {
    padding: 8px;
    font-size: 12px;
}

.marker-popup h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: bold;
    color: #333;
}

.marker-popup p {
    margin: 4px 0;
    font-size: 11px;
    color: #666;
}

/* Leaflet map container styling */
.map {
    width: 100%;
    height: 100%;
    position: relative;
}

.map.height-400px,
.map.height-450px {
    height: 400px !important;
}

.map.height-450px {
    height: 450px !important;
}

.map.fade-map {
    opacity: 0.3;
}

.leaflet-container {
    font-family: 'Lato', sans-serif;
}

.leaflet-popup-content-wrapper {
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.leaflet-popup-tip {
    box-shadow: none;
}

/* Marker cluster styling */
.marker-cluster {
    background-clip: padding-box;
    border-radius: 40px;
    width: 40px;
    height: 40px;
    margin-left: -20px;
    margin-top: -20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: rgba(27, 177, 94, 0.8);
    border: 2px solid white;
    color: white;
    text-shadow: 0 0 2px white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.marker-cluster:hover {
    background-color: rgba(27, 177, 94, 1);
    transform: scale(1.1);
}

.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.8);
}

.marker-cluster-medium {
    background-color: rgba(240, 211, 69, 0.8);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.8);
}

.marker-cluster-small .marker-cluster-span,
.marker-cluster-medium .marker-cluster-span,
.marker-cluster-large .marker-cluster-span {
    color: white;
}
