#agf-location-map {
    border-radius: 8px;
    border: 2px solid #031A40;
    z-index: 0;
    position: relative;
}

/* Blue transparent overlay - injected via JS as a real DOM element */
.agf-map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 26, 64, 0.12);
    z-index: 9999;
    pointer-events: none;
    border-radius: 6px;
}

/* The divIcon container - Leaflet controls its transform, don't touch it */
.agf-pin-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

/* Animate the SVG inside the marker, not the marker div itself */
.agf-pin-icon svg {
    opacity: 0;
    transform-origin: center bottom;
    animation: agfPinDrop 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.agf-pin-icon.agf-wobble svg {
    animation: agfPinDrop 0.7s cubic-bezier(0.23, 1, 0.32, 1) forwards,
               agfPinWobble 0.6s ease-in-out 0.7s forwards;
}

/* Pin drop-in animation */
@keyframes agfPinDrop {
    0% {
        transform: translateY(-300px) scale(0.6);
        opacity: 0;
    }
    50% {
        transform: translateY(0) scale(1.05);
        opacity: 1;
    }
    60% {
        transform: translateY(-12px) scale(0.98);
    }
    70% {
        transform: translateY(0) scale(1.02);
    }
    80% {
        transform: translateY(-5px) scale(0.99);
    }
    90% {
        transform: translateY(0) scale(1.01);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Wobble after landing */
@keyframes agfPinWobble {
    0% { transform: rotate(0deg); }
    15% { transform: rotate(12deg); }
    30% { transform: rotate(-10deg); }
    45% { transform: rotate(6deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(2deg); }
    100% { transform: rotate(0deg); }
}

/* Hover bounce on the SVG */
.agf-pin-icon:hover svg {
    animation: agfPinHoverBounce 0.4s ease infinite alternate;
    opacity: 1;
}

@keyframes agfPinHoverBounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-6px) scale(1.1); }
}

.leaflet-tooltip.agf-tooltip {
    background: #031A40;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    white-space: nowrap;
}

.leaflet-tooltip.agf-tooltip::before {
    border-top-color: #031A40;
}
