.leaflet-pin {
    position: absolute;
    cursor: pointer;
    z-index: 100;
    /* Animation pulse */
    animation: pulse-pin 2s infinite;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.0); /* Transparent initially */
    transition: all 0.3s ease;
    display: block; /* Ensure it is block for sizing */
    touch-action: pan-y;
    -webkit-user-drag: none;
    user-select: none;
}

@media (hover: hover) {
    .leaflet-pin:hover {
        animation: none;
        background: rgba(255, 255, 255, 0.1);
        transform: scale(1.06);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
}

.pin-label {
    position: absolute;
    top: -24px;
    left: -8px;
    background: #007bff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 101;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    opacity: 0.9;
    font-family: "Roboto", sans-serif;
    font-weight: 500;
}

.pin-label i {
    margin-right: 3px;
}

.leaflet-pin-image {
    width: 100%;
    height: 100%;
    object-fit: fill; /* Fill the area */
    display: block;
    border-radius: 4px;
}

@keyframes pulse-pin {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0);
        transform: scale(1);
    }
}
