/* SalesTeams Custom Styles */

/* =========================================================
   Maps — Leaflet Marker Styles (Feature 2.1.2)
   ========================================================= */

/* Marker wrapper — pin + label as one unit */
.map-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

/* Pin shape — classic map pin (teardrop) */
.map-marker-pin {
    width: 22px;
    height: 22px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    position: relative;
}

.map-marker-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

/* Agent code label under pin */
.map-marker-label {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 4px;
    border-radius: 3px;
    white-space: nowrap;
    line-height: 1.2;
}

/* Green marker — active agent */
.map-marker-pin--green {
    background-color: #4caf50;
    border-color: #388e3c;
}

/* Blue marker — located/highlighted agent */
.map-marker-pin--blue {
    background-color: #2196f3;
    border-color: #1565c0;
}

/* Pulse animation for located agent marker */
@keyframes marker-pulse {
    0% {
        transform: rotate(-45deg) scale(1);
        box-shadow: 0 1px 4px rgba(33, 150, 243, 0.4);
    }
    50% {
        transform: rotate(-45deg) scale(1.25);
        box-shadow: 0 3px 12px rgba(33, 150, 243, 0.7);
    }
    100% {
        transform: rotate(-45deg) scale(1);
        box-shadow: 0 1px 4px rgba(33, 150, 243, 0.4);
    }
}

.marker-pulse {
    animation: marker-pulse 1.4s ease-in-out infinite;
}
