/* Markers - custom markers and user location styles */

.custom-marker {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Crimson Pro', serif;
    font-weight: 600;
    font-size: 1.1rem;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.marker-visited {
    background: var(--success);
}

.marker-current {
    background: var(--accent);
}

/* User Location Marker */
.user-location {
    background: #4285f4;
    border: 4px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(66, 133, 244, 0.4);
    position: relative;
}

.user-location-icon {
    overflow: visible !important;
}

.user-direction-arrow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 46px;
    height: 46px;
    transform-origin: 50% 50%;
    transform: translate(-50%, -50%) rotate(var(--user-heading, 0deg));
    transition: transform 0.2s ease, opacity 0.2s ease;
    opacity: 0;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
}

.user-direction-arrow svg {
    width: 100%;
    height: 100%;
    fill: #4285f4;
    display: block;
}

.user-location.has-heading .user-direction-arrow {
    opacity: 1;
}

.user-location::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

/* Accuracy Circle */
.leaflet-control-locate-location-circle {
    stroke: #4285f4;
    fill: rgba(66, 133, 244, 0.15);
}
