/* Highway-style Mile Marker CSS */
.mile-marker-label {
    background: linear-gradient(135deg, #2e7d32 0%, #388e3c 50%, #2e7d32 100%);
    border: 3px solid white;
    border-radius: 3px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(46, 125, 50, 0.8);
    
    /* Size and spacing */
    width: 17px;
    height: 50px;
    min-width: 17px;
    max-width: 20px;
    min-height: 22px;
    line-height: 12px;
    
    /* Text styling */
    color: white;
    font-family: 'Arial Black', 'Helvetica', sans-serif;
    font-size: 14px;
    font-weight: 900;
    text-align: center;
    text-shadow: 
        1px 1px 2px rgba(0, 0, 0, 0.8),
        -1px -1px 1px rgba(255, 255, 255, 0.1);
    
    /* Vertical centering */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Positioning */
    position: relative;
    z-index: 1000;
    
    /* Pointer and interaction */
    cursor: pointer;
    pointer-events: all;
    
    /* Smooth transitions */
    transition: all 0.2s ease;
}

/* Hover effect */
.mile-marker-label:hover {
    transform: scale(1.1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.3),
        0 0 0 2px rgba(46, 125, 50, 1),
        0 0 12px rgba(46, 125, 50, 0.6);
}

/* For larger mile numbers (3+ digits), adjust font size */
.mile-marker-label[data-mile*="00"] {
    font-size: 12px;
}

/* Alternative rectangular style for areas with very high mile numbers */
.mile-marker-label.rectangular {
    width: 17px;
    max-width: 20px;
    height: 32px;
    border-radius: 6px;
    font-size: 12px;
}

/* Night mode / dark theme variant */
.mile-marker-label.dark-theme {
    background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #1b5e20 100%);
    border-color: #e8f5e8;
}

/* Compact version for high zoom levels */
.mile-marker-label.compact {
    width: 17px;
    max-width: 20px;
    height: 32px;
    font-size: 11px;
    border-width: 2px;
}

/* Pulse animation for new markers */
@keyframes markerPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 0 16px rgba(46, 125, 50, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }
}

.mile-marker-label.pulse {
    animation: markerPulse 2s ease-in-out;
}