/* @import url("https://fonts.googleapis.com/css2?family=Siemreap&display=swap"); */

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(1px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
}

.blurred {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

.locate-link:hover {
    background-color: #f0f0f0;
    border-radius: 4px;
}

/* Map markers & clusters */
.marker-cluster-custom {
    background-color: rgba(253, 156, 115, 0.6);
    border-radius: 50%;
    text-align: center;
    transition: all 0.3s ease;
}

.marker-cluster-custom div {
    background-color: rgba(241, 128, 23, 0.6);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    margin: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    transition: all 0.3s ease;
}

.marker-cluster-custom span {
    line-height: 36px;
}

.marker-cluster {
    background-clip: padding-box;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 12px;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.leaflet-marker-icon {
    transition: transform 0.3s ease;
}

.custom-marker {
    background-color: red;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.custom-marker-icon {
    background-color: #3388ff;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-size: 12px;
    border: 2px solid white;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.individual-marker {
    stroke: white;
    stroke-width: 2;
    transition: all 0.3s ease;
}

.individual-marker:hover {
    stroke-width: 3;
    opacity: 1;
}

.active-marker {
    z-index: 1000 !important;
}

.active-marker .marker-dot {
    animation: pulse 1s infinite;
}

.current-location-marker {
    width: 18px;
    height: 18px;
    background: #4285f4;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.6);
    animation: pulse-blue 2s infinite;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.6);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}
.marker-label {
    background: transparent;
    border: none;
    box-shadow: none;
    pointer-events: none;
}

.marker-label-content {
    background: transparent;
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    white-space: nowrap;
    display: inline-block;
    position: relative;
    transform: translateY(-4px);
    transition: all 0.2s ease-in-out;
    text-shadow:
        0 0 1px #ffffff,
        0 0 2px #ffffff,
        0 0 3px #ffffff,
        0 0 4px #ffffff,
        1px 0 0 #ffffff,
        -1px 0 0 #ffffff,
        0 1px 0 #ffffff,
        0 -1px 0 #ffffff,
        2px 0 0 #ffffff,
        -2px 0 0 #ffffff,
        0 2px 0 #ffffff,
        0 -2px 0 #ffffff,
        1px 1px 0 #ffffff,
        -1px -1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        2px 2px 0 #ffffff,
        -2px -2px 0 #ffffff,
        2px -2px 0 #ffffff,
        -2px 2px 0 #ffffff;
    font-family: "Siemreap", sans-serif !important;
}

/* HR name labels */
.leaflet-tooltip.hrname-label {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    font-weight: 600;
    line-height: 1.1;
    color: #000000;
    pointer-events: none;
    white-space: nowrap;
    transform: translate(-50%, -50%);
    text-align: center;
    font-size: 14px;
    text-shadow:
        0 0 1px #ffffff,
        0 0 2px #ffffff,
        0 0 3px #ffffff,
        0 0 4px #ffffff,
        1px 0 0 #ffffff,
        -1px 0 0 #ffffff,
        0 1px 0 #ffffff,
        0 -1px 0 #ffffff,
        2px 0 0 #ffffff,
        -2px 0 0 #ffffff,
        0 2px 0 #ffffff,
        0 -2px 0 #ffffff,
        1px 1px 0 #ffffff,
        -1px -1px 0 #ffffff,
        1px -1px 0 #ffffff,
        -1px 1px 0 #ffffff,
        2px 2px 0 #ffffff,
        -2px -2px 0 #ffffff,
        2px -2px 0 #ffffff,
        -2px 2px 0 #ffffff;
    border-radius: 0;
    font-family: "Siemreap", sans-serif !important;
}

.leaflet-zoom-animated .hrname-label {
    transition: font-size 0.2s ease;
}

/* Z-index / Layout helpers */
.leaflet-draw-section {
    z-index: 1000 !important;
}

.leaflet-draw-toolbar {
    z-index: 1001 !important;
}

.leaflet-draw-actions {
    z-index: 1002 !important;
}

#map {
    z-index: 1;
}

.drawer {
    z-index: 400;
}

.sidebar-content {
    pointer-events: auto;
}

.leaflet-container {
    pointer-events: auto !important;
}

/* Pin-style marker with centered icon (inspired design) */
.custom-pin-icon {
    background: transparent !important;
    border: none !important;
}

.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #c30b82;
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* White circle inside the pin */
.marker-pin::after {
    content: "";
    width: 24px;
    height: 24px;
    margin: 3px 0 0 3px;
    background: #fff;
    position: absolute;
    border-radius: 50%;
}

/* Container for centered icon */
.pin-icon-container {
    position: absolute;
    width: 22px;
    height: 22px;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Icon image styling */
.pin-icon-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Symbol styling */
.pin-icon-symbol {
    font-size: 13px;
    font-weight: bold;
    color: #333;
    text-align: center;
    line-height: 1;
}
