#bando-location-list .list-group-item.active {
    color: var(--theme-color2);
    background-color: var(--theme-bg-light);
    border-color: var(--theme-color2);
    border-radius: 7px;
    
}
.flex-shrink-0{
    background: white;
    border-radius: 10px;
}
.custom-search-button{
    cursor: pointer;
    background-color: var(--theme-color2);
    color: white;
    z-index: 1;
}
/* Custom scrollbar */
.bando-custom-scrollbar::-webkit-scrollbar { width: 6px; }
.bando-custom-scrollbar::-webkit-scrollbar-track { background: #f1f1f1; }
.bando-custom-scrollbar::-webkit-scrollbar-thumb { background: #adb5bd; border-radius: 3px; }
.bando-custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #495057; }

#map-container {
     min-height: 500px;
     width: 100%;
     z-index: 0;
     height: 100% ;
   
}

/* --- Custom Popup Styles for Leaflet --- */
.bando-custom-popup .leaflet-popup-content-wrapper { border-radius: 8px; padding: 1px; }
.bando-custom-popup .leaflet-popup-content { margin: 0 !important; width: 250px !important; }
.bando-custom-popup-content { padding: 12px; text-align: center; }
.bando-custom-popup-content .popup-logo { width: 100%; height: 150px; object-fit: contain; margin: 0 auto 10px auto; border: 1px solid #eee; border-radius: 8px; padding: 5px; background-color: white; }
.bando-custom-popup-content .popup-title {text-align: left; font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #212529; }
.bando-custom-popup-content .popup-address {text-align: left; font-size: 0.8rem; color: #6c757d; margin-bottom: 12px; text-align: left; }
.bando-custom-popup-content .popup-link { text-align: left; display: block; font-size: 0.8rem; color: var(--bs-primary); text-decoration: none; margin-bottom: 10px; }
.bando-custom-popup-content .popup-link:hover { text-decoration: underline; }

/* --- Map Control Buttons Style --- */
.bando-map-control-btn {
    background-color: white;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}
.bando-map-control-btn:hover {
    background-color: #f8f9fa;
}

/* --- Custom Styles for Routing Panel --- */
.bando-routing-container .leaflet-routing-container {

    /* position: absolute; */
    top: 5px;
    right: 50px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: max-height 0.3s ease-in-out, opacity 0.3s, visibility 0.3s;
}
.bando-routing-container .leaflet-routing-alternatives-container {
    /* padding: 0.25rem; */
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}
.bando-routing-container .leaflet-routing-container.is-collapsed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.bando-routing-container .leaflet-routing-container h2 {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}
.bando-routing-container .leaflet-routing-container h3 {
    font-size: 0.875rem;
    font-weight: 400;
    color: #6c757d;
    margin: 0;
}
.bando-routing-container .leaflet-routing-instructions {
    padding: 0;
    flex-grow: 1;
    overflow-y: auto;
    font-size: 0.875rem;
}
.bando-routing-container .leaflet-routing-alt table {
    width: 100%;
    border-collapse: collapse;
}
.bando-routing-container .leaflet-routing-instruction td {
    padding: 0.75rem 0.5rem;
    vertical-align: middle;
    border-bottom: 1px solid #f1f1f1;
}
.bando-routing-container .leaflet-routing-instruction:last-child td {
    border-bottom: none;
}
.bando-routing-container .leaflet-routing-instruction-icon {
    width: 2.5rem;
    text-align: center;
}
.bando-routing-container .leaflet-routing-instruction td:first-child {
    width: 2.5rem;
}
.bando-routing-container .leaflet-routing-instruction td:last-child {
    width: 5rem;
    text-align: right;
    white-space: nowrap;
}
.bando-routing-container .leaflet-routing-instruction td:nth-child(2) {
    overflow-wrap: break-word;
    word-wrap: break-word;
}
#bando-sidebar{
    min-height: 500px;
}

@media (max-width: 767.98px) {

    #map-container{
        max-height: 100% !important;
        margin-top: 10px;
    }
   
    #bando-main-content{
        padding: 0 !important;
    }

    .bando-app-wrapper:not(.mobile-map-view) #bando-sidebar {
        padding: 0 !important;
        
    }

    .bando-app-wrapper.mobile-map-view #bando-main-content {
        height: 100%; 
        flex: 1 1 auto; 
        padding: 0 !important;      
    }

    #bando-mobile-back-btn {
        display: none; 
    }

    .bando-app-wrapper.mobile-map-view #bando-mobile-back-btn {
        display: flex; 
    }
    .bando-routing-container .leaflet-routing-container {
        max-width: 250px !important;
    }

}
.address-old{
    font-size: 11px;
    color: #a95124c2;
}