/* Movement Markers Styling */

/* Base marker styles - common properties */
.movement-marker {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    user-select: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    position: relative;
    cursor: pointer;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

/* Single marker sizing */
.single-marker {
    width: 24px;
    height: 24px;
    border: 2px solid white;
}

/* Cluster marker sizing */
.cluster-marker {
    width: 32px;
    height: 32px;
    border: 3px solid white;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    font-size: 13px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

/* Fan marker sizing - same as single but with animation properties */
.fan-marker {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    transition: all 0.3s ease;
    transform: scale(0);
    z-index: 1002;
}

/* Dark mode styling removed - using light theme styles for all themes */

.movement-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Single movement markers */
.single-marker {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Additional cluster marker properties */
.cluster-marker {
    transition: all 0.3s ease;
}

/* Fan marker properties handled in base .fan-marker rule above */

.cluster-marker:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Fanned out markers */
.fan-marker {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.fan-marker:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Marker icons */
.movement-marker-icon {
    z-index: 600;
}

.cluster-icon {
    z-index: 1001;
}

.fan-icon {
    z-index: 1002;
}

/* Fan out animations */
@keyframes fanOut {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes fanIn {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(0) rotate(180deg);
        opacity: 0;
    }
}

/* Bounce animation to indicate clickable markers */
@keyframes bounceAttention {
    0%, 20%, 40%, 60%, 80%, 100% {
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% {
        transform: scale(1) translateY(0);
    }
    20% {
        transform: scale(1.1) translateY(-8px);
    }
    40% {
        transform: scale(1.05) translateY(-4px);
    }
    60% {
        transform: scale(1.08) translateY(-6px);
    }
    80% {
        transform: scale(1.02) translateY(-2px);
    }
    100% {
        transform: scale(1) translateY(0);
    }
}

/* Movement popups now use character-popup styling from ui/popups.css */

/* Mixed cluster styles - for clusters containing both movement and location markers */
.movement-marker.mixed-cluster {
    position: relative;
}

.movement-marker.mixed-cluster .location-indicator {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: #ff6b24;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    border: 1px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    color: white;
    font-weight: bold;
    z-index: 10;
}

/* Fan location marker styles */
.fan-location-marker {
    transition: all 0.3s ease;
    /* Uses the same size as fan-marker from base .fan-marker rule */
}

.fan-location-marker:hover {
    transform: scale(1.15) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

/* Location proxy icon specific styling */
.location-proxy-icon {
    z-index: 1002;
}

/* Location proxy markers get same animation as movement markers */
.fan-location-marker svg {
    color: white;
}

/* Enhanced cluster marker hover for mixed clusters */
.movement-marker.mixed-cluster:hover {
    transform: scale(1.05);
}

.movement-marker.mixed-cluster:hover .location-indicator {
    background: #ff8542;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .movement-marker {
        transform: scale(1.1);
    }
    
    .movement-marker:hover {
        transform: scale(1.2);
    }
    
    .fan-marker:hover {
        transform: scale(1.25) !important;
    }
}
