/* ===================================================
   Basic Resets and Layout
=================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
}
body {
    touch-action: pan-x pan-y; /* Only allow scrolling, no zooming */
    -webkit-touch-callout: none; /* Disable callout */
    -webkit-text-size-adjust: none; /* Disable text size adjust */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight */
}
button, 
.mode-btn,
.control-btn,
.style-btn,
.menu-btn {
    touch-action: manipulation;
}


#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
    transition: bottom 0.3s ease;
}

h2, h3 {
    margin-top: 0;
}

.preferences,
.map-style,
.route-info {
    margin-top: 1rem;
}

button {
    margin-top: 1rem;
    display: block;
    cursor: pointer; /* Moved general cursor style here */
}

/* ===================================================
   General Button Styles
=================================================== */
button {
    cursor: pointer;
}

/* ===================================================
   Specific Buttons
=================================================== */

/* Find Me Button */
#find-me-btn {
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: background-color 0.3s ease;
}

#find-me-btn:hover {
    background-color: #45a049;
}

/* Control Buttons */
.control-btn {
    padding: 8px 16px;
    margin: 5px 0;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.control-btn:hover {
    background-color: #45a049;
}

/* Hamburger Button */
.hamburger-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40px;
    height: 40px;
    padding: 10px;
    background: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease;
}

.hamburger-button:hover span {
    background: #666;
}

.hamburger-button span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    margin: 4px 0;
    transition: all 0.3s ease;
}

.hamburger-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-button.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mode Buttons */
.mode-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease;
}
.mode-btn svg path,
.mode-btn svg polygon,
.mode-btn svg circle,
.mode-btn svg line,
.mode-btn svg {
    color: #666;
    stroke: #666;
    fill: #666;
    width: 24px;   /* Define explicit width */
    height: 24px;  /* Define explicit height */

}
.mode-btn:hover {
    background: #f0f0f0;
}

.mode-btn.active svg path,
.mode-btn.active svg polygon,
.mode-btn.active svg circle,
.mode-btn.active svg line {
    stroke: white;
    fill: white;
}
.mode-btn.active svg {
    stroke: white;
}

.mode-btn[data-mode="walking"].active {
    background: #FF6200;
    border-color: #FF6200;
}

.mode-btn[data-mode="cycling"].active {
    background: #4CAF50;
    border-color: #4CAF50;
}

.mode-btn[data-mode="driving"].active {
    background: #2196F3;
    border-color: #2196F3;
}

.mode-btn[data-mode="direct"].active {
    background: #9C27B0;
    border-color: #9C27B0;
}

/* Style Buttons */
.style-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.style-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.style-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.style-btn.active svg {
    stroke: white;
}

/* Menu Buttons */
.menu-btn {
    display: block;
    width: 100%;
    padding: 8px 12px;
    margin: 6px 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: #f5f5f5;
}

/* Redo, Undo, Reset Route Buttons */
#redo-btn,
#undo-btn,
#reset-route-btn-2 {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease;
}

#redo-btn:hover,
#undo-btn:hover,
#reset-route-btn-2:hover {
    background: #f5f5f5;
}

#redo-btn svg,
#undo-btn svg,
#reset-route-btn-2 svg {
    color: #666;
    width: 24px;   /* Define explicit width */
    height: 24px;  /* Define explicit height */
}

/* Search Button */
#search-button {
    background: #ffffff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

#search-button:hover {
    background: #45a049;
}

#search-button svg {
    stroke: rgb(0, 0, 0);
}

/* Notification Close Button */
#notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}

/* ===================================================
   Context Menu
=================================================== */
.context-menu {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid #ccc;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
    border-radius: 4px;
    padding: 5px 0;
    z-index: 1000;
    min-width: 180px; /* CHANGED */
    touch-action: none;
    -webkit-touch-callout: none;
    user-select: none;

}

.context-menu-item {
    padding: 12px 20px; /* CHANGED */
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    -webkit-touch-callout: none; /* NEW */
    -webkit-user-select: none; /* NEW */
    user-select: none; /* NEW */
}

.context-menu-item:hover {
    background-color: #f0f0f0;
}

.context-menu-divider {
    height: 1px;
    background-color: #ccc;
    margin: 5px 0;
}

/* ===================================================
   Mapbox Markers and Modes
=================================================== */
/* Mode Indicators on Markers */
.mapboxgl-marker {
    touch-action: none; /* NEW */
    -webkit-tap-highlight-color: transparent; /* NEW */
    user-select: none; /* NEW */
    z-index: 300;

}

.mapboxgl-marker::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.mapboxgl-marker.mode-walking::after {
    background-color: #FF6200;
}

.mapboxgl-marker.mode-cycling::after {
    background-color: #4CAF50;
}

.mapboxgl-marker.mode-driving::after {
    background-color: #2196F3;
}

.mapboxgl-marker.mode-direct::after {
    background-color: #9C27B0;
}

/* ===================================================
   Elevation Panel
=================================================== */
#elevation-toggle,
#geolocation-toggle,
#fit-route-toggle {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#elevation-toggle:hover,
#geolocation-toggle:hover,
#fit-route-toggle:hover {
    background: #f5f5f5;
}

#elevation-toggle svg,
#geolocation-toggle svg,
#fit-route-toggle svg {
    color: #666;
    width: 24px;
    height: 24px;
}

#elevation-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px; /* Reduced height */
    background: white;
    transition: transform 0.3s ease;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1400;
}

#elevation-panel.collapsed {
    transform: translateY(100%);
}

#elevation-content {
    height: calc(100% - 20px);
    padding: 10px;
    position: relative;
}

#elevation-chart {
    width: 100%;
    height: 100%;
    background: white;
}
.elevation-hover-line {
    position: absolute;
    top: 0;
    width: 2px;
    height: 100%;
    background: rgba(255, 98, 0, 0.5);
    pointer-events: none;
    display: none;
}

.elevation-hover-info {
    position: absolute;
    top: 10px; /* Position at top */
    transform: translateX(-50%); /* Center horizontally */
    background: white;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    pointer-events: none;
    display: none;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    z-index: 10;
}

/* Add arrow at bottom */
.elevation-hover-info::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 8px;
    background: white;
    transform: rotate(45deg);
    box-shadow: 2px 2px 2px rgba(0,0,0,0.1);
}

.elevation-hover-marker {
    width: 12px;
    height: 12px;
    background: #FF6200;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
}
.elevation-hover-popup .mapboxgl-popup-content {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 14px;
    line-height: 1.4;
}

.elevation-hover-popup .mapboxgl-popup-tip {
    border-top-color: white;
}

.elevation-active #map {
    transform: translateY(-200px);
    transition: transform 0.3s ease;
}

.elevation-active #status-display {
    bottom: 220px; /* Instead of transform, just move it up by changing bottom */
}

.elevation-active #map-style-buttons {
    transform: translate(-50%, -200px);
}

.elevation-active #top-right-controls {
    transform: none;
}

.elevation-active #bottom-left-controls {
    transform: translateY(-200px);
}
.elevation-active #bottom-right-controls {
    transform: translateY(-200px);
}

/* ===================================================
   Status Display
=================================================== */
#status-display {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1500;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 12px 20px;
    cursor: pointer;
    transition: bottom 0.3s ease, transform 0.3s ease;
}

#status-display:hover {
    transform: scale(1.02);
}

#distance-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

#distance-display .value {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

#distance-display .unit {
    font-size: 16px;
    color: #666;
}

/* ===================================================
   Route Loading Overlay
=================================================== */
.route-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
}

/* ===================================================
   Control Buttons and Panels
=================================================== */

/* Bottom Left Controls */
#bottom-left-controls {
    position: fixed;
    bottom: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 1500;
    transition: transform 0.3s ease;
}

#bottom-left-controls button {
    margin: 0; /* Reset any default margins */
}

/* Top Left Controls */
#top-left-controls {
    position: fixed;
    top: 10px;
    left: 20px;
    display: flex;
    gap: 10px;
    z-index: 1500;
    transition: transform 0.3s ease;
}

#top-left-controls button {
    margin: 0; /* Reset any default margins */
}

/* Top Right Controls */
#top-right-controls {
    position: fixed;
    top: 10px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
}

#top-right-controls button {
    margin-top: 0; /* Remove top margin */
    display: flex; /* Use flex to align contents */
    align-items: center; /* Vertically center contents */
    justify-content: center; /* Horizontally center contents */
    height: 40px; /* Ensure consistent height */
    width: 40px; /* Ensure consistent width for icons */
    padding: 0; /* Remove any default padding */
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* Search Container */
.search-container {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 300px; /* Adjust as needed */
    transition: width 0.3s ease;
    position: relative; /* Added to create a positioning context */
}

.search-container:focus-within {
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#address-search {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    font-size: 14px;
}

#search-button {
    background: #ffffff;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

#search-button:hover {
    background: #45a049;
}

#search-button svg {
    stroke: rgb(0, 0, 0);
}

/* Search Suggestions */
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2000; /* Ensure it's above other elements like the hamburger menu */
    margin-top: 1px;
}

.suggestion-item {
    padding: 12px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #eee;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

/* ===================================================
   Map Style Buttons
=================================================== */
#map-style-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 1000;
}

.style-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.style-btn:hover {
    background: #f5f5f5;
    color: #333;
}

.style-btn.active {
    background: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

.style-btn.active svg {
    stroke: white;
}

/* ===================================================
   Control Panel
=================================================== */
#control-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    width: auto;
    min-width: 200px;
    max-height: calc(100vh - 80px);
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: none;
    z-index: 2500;
    overflow: hidden; /* Changed from overflow-y: hidden */
}


#control-panel.visible {
    display: block;
}

.control-options {
    padding: 15px;
    max-height: calc(100vh - 100px); /* Adjusted to account for padding */
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Add padding to bottom for better visibility of last items */
    padding-bottom: 50px;
}
/* Add styling for scrollbar (optional but recommended) */
.control-options::-webkit-scrollbar {
    width: 8px;
}

.control-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.control-options::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.control-options::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.control-group {
    margin-bottom: 15px;
}

.control-group:last-child {
    margin-bottom: 20px; /* Add some breathing room at the bottom */
    padding-bottom: 20px;
}

.control-group h3 {
    font-size: 14px;
    margin: 0 0 8px 0;
    color: #666;
}

.control-group label {
    display: block;
    font-size: 14px;
    margin: 6px 0;
    cursor: pointer;
}

.control-group input[type="radio"] {
    margin-right: 8px;
}

/* ===================================================
   Notifications
=================================================== */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 3000;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

#notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
}

/* ===================================================
   Elevation Loading Overlay
=================================================== */
.elevation-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.elevation-loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3388ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.elevation-loading-text {
    font-size: 14px;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===================================================
   Mode Controls
=================================================== */
#mode-controls {
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1500;
    display: flex;
    gap: 10px;
    pointer-events: auto;
}

#mode-controls .mode-btn {
    margin-top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* ===================================================
   Bottom RIght Controls
=================================================== */

#bottom-right-controls {
    position: fixed;
    bottom: 80px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1500;
}

#bottom-right-controls button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    transition: background-color 0.3s ease;
    font-size: 18px;
    color: #666;
}

#bottom-right-controls button:hover {
    background: #f0f0f0;
}

#bottom-right-controls button svg {
    width: 24px;
    height: 24px;
}

/* Specific styling for zoom buttons */
#zoom-in-btn,
#zoom-out-btn {
    font-weight: bold;
}
/* ===================================================
   Marker Styles
=================================================== */
.waypoint-marker {
    width: 14px;
    height: 14px;
    background: #4A90E2;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: grab; /* CHANGED from move to grab */
    -webkit-touch-callout: none; /* NEW */
    -webkit-user-select: none; /* NEW */
    user-select: none; /* NEW */
    z-index: 300;

}

.waypoint-marker:active {
    cursor: grabbing;
}
/* ===================================================
   Responsive Adjustments
=================================================== */
@media (max-width: 768px) {
    /* Hide non-essential buttons */
    #map-style-buttons,
    #reset-route-btn-2,
    #redo-btn {
        display: none;
    }

    /* Reduce text sizes */
    button, input, .mode-btn {
        font-size: 12px;
    }
    
    #distance-display .value {
        font-size: 18px;
    }
    
    #distance-display .unit {
        font-size: 14px;
    }

    /* Reorganize top controls */
    #top-right-controls {
        position: fixed;
        top: 10px;
        left: 10px;
        right: 10px;
        display: flex;
        gap: 8px;
        z-index: 1500;
    }

    .search-container {
        flex: 1;
        width: auto;
        max-width: none;
    }

    #menu-toggle {
        flex-shrink: 0;
    }

    /* Adjust mode controls */
    #mode-controls {
        top: 60px;
        padding: 0 10px;
        z-index: 500;

    }

    .mode-btn {
        padding: 6px 12px;
    }

    /* Adjust other buttons */
    #bottom-left-controls button,
    #top-left-controls button {
        width: 36px;
        height: 36px;
    }

    /* Make search suggestions full width */
    #search-suggestions {
        left: 0;
        right: 0;
        width: auto;
    }

    /* Adjust distance display */
    #status-display {
        padding: 8px 16px;
    }

    /* Ensure other controls don't overlap */
    #top-left-controls {
        top: 60px; /* Move below search bar */
    }
    .waypoint-marker {
        width: 14px;
        height: 14px;
        background: #4A90E2;
        border-radius: 50%;
        border: 2px solid white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    .context-menu {
        padding: 8px 0;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        min-width: 200px; /* Slightly wider on mobile */

    }

    .context-menu-item {
        padding: 14px 20px;
        font-size: 16px;
    }
    
    button,
    .mode-btn,
    .style-btn {
        min-height: 44px;
        min-width: 44px;
    }
    .mile-marker {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    #control-panel {
        max-height: 80vh; /* Increased from 70vh */
        top: auto; /* Remove top positioning */
        bottom: 0; /* Position from bottom */
        /* left: 0; */
        /* right: 0; */
        /* width: 100%; */
        border-radius: 12px 12px 0 0; /* Round only top corners */
        margin: 0; /* Remove any margins */
    }

    .control-options {
        max-height: 75vh; /* Slightly less than panel to ensure visibility */
        overflow-y: scroll; /* Force scrolling */
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
        padding-bottom: 0px; /* Extra padding at bottom for better scroll access */
    }

    /* Add visual indicator for scrolling */
    .control-group:last-child::after {
        content: '';
        display: block;
        height: 40px; /* Extra space after last item */
    }
    .menu-btn {
        padding: 12px 16px; /* Bigger touch targets */
        margin: 8px 0; /* More space between buttons */
        min-height: 44px; /* Minimum touch target size */
    }

    .control-group {
        margin-bottom: 20px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee; /* Visual separation */
    }


}

/* ===================================================
   Additional Transitions and Overrides
=================================================== */
#map,
/* #map-style-buttons, */
#status-display,
#elevation-toggle,
#geolocation-toggle,
#fit-route-toggle {
    transition: transform 0.3s ease;
    transform: translateY(0);
}

/* ===================================================
   Hide Default Mapbox Controls
=================================================== */
.mapboxgl-ctrl-geolocate {
    display: none;
}

.mapboxgl-control-container .mapboxgl-ctrl-top-right {
    display: none;
}

/* ===================================================
   Touch Interaction Enhancements
=================================================== */
.mode-btn:active,
.style-btn:active,
#elevation-toggle:active,
#geolocation-toggle:active,
#fit-route-toggle:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}
/* ===================================================
   Mile Markers
=================================================== */

.mile-marker {
    background: white;
    border: 2px solid #333;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none; /* Prevent interfering with map interaction */
    z-index: 200;

}