/* File: style_v6.css */

/* --- Standard Body and Map Styles --- */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

#map {
    height: 100vh;
    width: 100%;
}

/* --- Leaflet Popup Styling (Optional Customization) --- */
.leaflet-popup-content-wrapper {
    border-radius: 6px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.leaflet-popup-content h4 {
    margin: 0 0 5px;
    padding-bottom: 5px;
    border-bottom: 1px solid #ddd;
    font-size: 14px;
    color: #333;
}

.leaflet-popup-content p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #555;
}

/* --- New Pure CSS Marker with Unicode Arrow (Final Simplified Fix) --- */

/* This targets the marker container created by Leaflet, ensuring high specificity. */
.leaflet-marker-icon.bus-marker-icon-arrow {
    /* Base square properties */
    background-color: #007bff !important; /* Blue square color - FORCED */
    border: 1px solid #0056b3;
    border-radius: 3px;
    opacity: 0.9;
    
    /* FIX: Forced size to match script.js iconSize: [20, 20] and ensure visibility */
    width: 20px !important; 
    height: 20px !important; 
    
    /* Ensure no default Leaflet image is interfering */
    background-image: none !important;
    
    /* CRITICAL FIX: Ensure marker renders above map tiles */
    z-index: 9999 !important; 
    
    /* Crucial for RotatedMarker plugin */
    transform-origin: 50% 50%; 
    position: relative; 

    /* Center and style the Unicode arrow text inside the 20x20 box */
    line-height: 20px; 
    text-align: center;
    font-size: 14px; /* Size of the arrow */
    color: red; /* Color of the arrow */
    font-weight: bold;
}


/* --- Upright Bus Number Label FIX (Position) --- */

.bus-number-label {
    background-color: transparent !important; 
    border: none !important;                 
    box-shadow: none !important;             
    
    font-weight: bold;
    font-size: 10px;
    color: black;
    text-align: center;
    
    /* Adjusted transform to position text correctly above the marker */
    transform: translate(-50%, -120%); 
    white-space: nowrap;
}

/* --- Z-Index Override for Map Panes --- */
/* This ensures the entire marker layer is stacked above the base map layer */
.leaflet-pane.leaflet-marker-pane {
    z-index: 700 !important;
}

/* --- Attribution Cleanup FIX --- */

.leaflet-control-attribution a[href^="http://www.hotosm.org/"] {
    display: none !important;
}