

#map {
    flex-grow: 1;
    height: 70vh !important;
    width: calc(100vw - 178px) !important;
    border-radius: 8px;
    overflow: hidden;
    padding-right: 350px;
}

#sidebar {
    width: 350px;
    background-color: white;
    border-left: 1px solid #dee2e6;
    overflow-y: auto;
    padding: 15px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    box-shadow: -2px 0 5px rgba(0,0,0,0.1);
    position: absolute;
    right: 160px;
    top: 0px;
    height: calc(70vh - 100px);
    margin: 50px 0px;
}

.list-header {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #343a40;
}

#location-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.location-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #F4F1EA;
    transition: background-color 0.2s ease;
}

.location-item:hover, .location-item.active {
    background-color: #F4F1EA;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.location-item-info {
    flex-grow: 1;
    font-size: 0.95em;
    color: #495057;
}

.location-item-distance {
    font-size: 0.85em;
    color: #6c757d;
    margin-left: 10px;
}

#location-details {
    border-top: 1px solid #dee2e6;
    margin-top: 15px;
    padding-top: 15px;
    background: #F4F1EA;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

#location-details h3 {
    margin-top: 0;
    color: #212529;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
#location-details p {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
}


section.branches {
    position: relative;
    margin: 60px 0px;
}

.branch-detaisl {
    display: flex;
    gap: 10px;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
}

@media (max-width: 768px) {

    #map {
        height: 50vh !important;
        min-height: 300px;
        width: 100% !important;
    }
    #sidebar {
        width: 100%;
        height: auto;
        border-left: none;
        border-top: 1px solid #dee2e6;
        position: relative;
        right:0px;
    }
}