/* .leaflet-bar a.custom-home {
    background-image: url('data:image/png;base64,...');  Add your icon image as base64 or give the URL
    background-color: rgba(255,255,255,0.8);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 26px;
    height: 26px;
}
   .leaflet-bar a.custom-locate {
    background-image: url('data:image/png;base64,...');  /* Add your icon image as base64 or give the URL */
    /* background-color: rgba(255,255,255,0.8);
    background-position: 50% 50%;
    background-repeat: no-repeat;
    width: 26px;
    height: 26px;
} */ 


#controls{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    float: left;
    overflow: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1004;
    padding: 10px 20px 40px 20px;
    background: #f9f9f9;
    border-radius: 30px;
    margin: 20px;
    -webkit-box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.75);
    -moz-box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.75);
    box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.75);
    transition: max-height 0.3s ease-in-out;
    overflow: hidden;
    max-height: 600px; /* or any initial max-height */
}
#controls.collapsed {
    max-height: 0;
}
#toggle-controls {
    display: block;
    padding: 5px 10px;
    color: green;
    margin-bottom: 10px;
    text-decoration: none;
    text-align: center;
    border-bottom: 1px solid;
    border-radius: 0;
    font-weight: 500;
    transition: all .2s ease-in-out;
}
#toggle-controls:hover i.fas{
    transform: scale(1.3);
}
#toggle-controls i.fas {
    transition: all .2s ease-in-out;
}
#controls input[type="radio"] {
    display: none;  /* Скрива радио бутоните */
}

.icon-all, .icon-past, .icon-current, .icon-future {
    width: 100px;
    height: 66px;
    display: inline-block;
}

.icon-all {
    background: url('https://www.zalesi.bg/wp-content/uploads/2023/09/tree-charity.png') no-repeat;
    height: 85px;
    background-size: cover;
}

.icon-past {
    background: url('https://www.zalesi.bg/wp-content/uploads/2023/09/priklucheni-proekti-zalesi.png') no-repeat;
}

.icon-current {
    background: url('https://www.zalesi.bg/wp-content/uploads/2023/09/zapochnati-proekti-zalesi.png') no-repeat;
}

.icon-future {
    background: url('https://www.zalesi.bg/wp-content/uploads/2023/09/budeshti-proekti-zalesi.png') no-repeat;
}

#controls label {
    cursor: pointer;
    display: flex;
    align-items: center;
    margin-bottom: 10px;

}
#controls label .icon{
    transition: all .2s ease-in-out;
}
#controls label:hover .icon{
    transform: scale(1.1); 
}
#map-detail-info{
    padding: 10px 20px;
    display: block;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    text-align: center;
    margin: 10px 20px;
    border: none;
    border-radius: 30px;
    opacity: 0;
}
#map-detail-info.active{
    opacity: 1;
}

#map-detail-info img{
    border-radius: 30px;
    width: 550px;
    margin-bottom: 20px;
}
#controls .header-filter{
    font-size: 16px;
}
.leaflet-marker-icon:hover {
    box-shadow: 0px 0px 0px 2px green;
    border-radius: 50%;
}
.popup-content{
    text-align: center;
}
.leaflet-popup-content .popup-content img{
    border-radius: 6px !important;
}
.leaflet-popup-content p {
	margin: 14px 0;
	}
.leaflet-popup-content .see-more-link{
    background: green;
    color: white;
    padding: 6px 16px;
    text-transform: uppercase;
    border-radius: 30px;
}

/* responsive */
@media all and (max-width: 1024px) {
    #controls{
        position: unset;
        display: flex;
        flex-flow: wrap;
        justify-content: space-around;
        align-items: baseline;
        float: none;
    }
    #toggle-controls{
        width: 100%;
    }
    #controls label{
        display:unset;
        text-align-last: center;
        margin: 4px;
    }
    #controls .header-filter{
        display: block;
    }
  }

  @media all and (max-width: 768px){
    #controls{
        margin: 20px 0px;
        box-shadow: 0px 0px 18px 0px rgba(0,0,0,0.4);
    }
    .leaflet-popup-content{
        margin: 10px;
        width: 210px;
    }
    .leaflet-popup-content .popup-content h3{
        font-size: 16px;
    }
    #map-detail-info{
        padding:10px;
        margin: 0;
        border-radius: 0;
    }
    #map-detail-info h2{
        font-size: 20px;
    }
    #map-detail-info p{
        font-size: 16px;
    }
  }
