body {
    margin: 0;
    padding: 0;
}

/* Top bar styling */
#top-bar {
    background-color: #F75139; 
    height: 60px; 
    display: flex;
    align-items: center;
    padding: 0 20px; 
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
}

/* Logo styling */
#top-bar .logo {
    height: 40px;
    width: auto; 
    margin-right: 50px; 
}

/* Text styling */
#top-bar .top-bar-text {
    font-family: 'Inter', sans-serif; 
    font-size: 24px; 
    color: white; 
}

#map {
    height: calc(100vh - 60px);
    width: 100vw;
}



.info.legend img {
    max-width: 100%;
}
.legend-title {
    color: black;
    font-weight: bold;
    font-size: 14px;
    text-shadow: 0px 0px 1px white;
}

/* Slider container */
.slider-container {
    position: absolute;
    top: 190px;  
    right: 12px;
    z-index: 1000;
    background: #FFBB5E; 
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    width: 200px;
    color:#000000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    text-align: center;
}
.slider-container.collapsed {
    display: none;
}

#opacity-slider {
    width: 180px;
}

#date {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.5); 
    color: white;
    padding: 6px 10px;
    font-size:11px;
    border-radius: 4px;
    pointer-events: none; 
    z-index:10000;
}
/* Layer control styling */
.leaflet-control-layers-expanded {
    color: #000000;
    background-color: #FFBB5E;
}

.leaflet-container {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    cursor: default;
}

/* Popup on click styling */
.leaflet-popup-content-wrapper {
    background-color: #FFBB5E;  
    color: #000000;           
    font-size: 14px;             
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-tip {
    background-color: #FFBB5E 
}

/* Style the close button */     
.leaflet-container a.leaflet-popup-close-button{
    color: #f0f0f0;          
    font-size: 16px;
} 
.leaflet-container a.leaflet-popup-close-button:hover{
    color: #F75139;          
    font-size: 20px;
}

.hidden {
    display: none !important;
}
/* Hide layer control panel when collapsed */
.leaflet-control-layers.collapsed {
    display: none;
}

/* Style for the wrapper div holding the button */
.layer-toggle-wrapper {
    position: absolute;
    z-index: 1000; /* Ensure it stays on top of the map */
}

/* Style for the toggle button */
.layer-toggle-button {
    background: #FFBB5E;
    border:none;
    cursor: pointer;
    font-size: 21px;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border-radius: 6px;

}

.layer-toggle-button:hover {
    background: #F75139;
    color: white;
}

.leaflet-control-custom.locate-btn {
    background-color: white;
    background-image: url('https://cdn-icons-png.flaticon.com/512/684/684908.png');
    background-size: 20px 20px;
    background-repeat: no-repeat;
    background-position: center;
    width: 30px;
    height: 30px;
    cursor: pointer;
    border: none;
    filter:grayscale(100%);
    pointer-events: auto;
    touch-action: manipulation;
}

.leaflet-control-custom.locate-btn:hover,
.leaflet-control-custom.locate-btn:focus {
    background-color: #aaa;
    outline: 2px solid #aaa;
}


