﻿.branches-section {
    gap: 30px;
    background-color: #ffffff;
    border-radius: 20px;
    border: 1px solid #C7ACA1;
    padding: 30px;
}

.map-column img {
    border-radius: 8px;
    width: 100%;
    height: auto;
}

.branch-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .branch-card img {
        width: 120px;
        height: 100px;
        object-fit: cover;
    }

.branch-info h5 {
    font-weight: 700;
    margin-bottom: 5px;
}

.branch-address {
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
}

.branch-buttons .btn-card {
    background-color: #6c63ff;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 14px;
}

    .branch-buttons .btn-card:hover {
        background-color: #5751d9;
    }
.info-button {
    background: #EBEBEB;
    padding: 8px 24px;
    color: #000;
    border: none;
    border-radius: 30px;
    margin-top: 15px;
}

.branches-filters {
    max-width: 100%;
}

.branch-select {
    width: 90px; 
    max-width: 90px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.branch-dropdown::after {
    display: none;
}


.branch-dropdown {
    position: relative;
    width: 280px; 
    padding: 8px 12px;
    text-align: right;
}


    .branch-dropdown::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 10px; 
        transform: translateY(-50%) rotate(-45deg);
        width: 8px;
        height: 8px;
        border-left: 2px solid #CE877C;
        border-bottom: 2px solid #CE877C;
        pointer-events: none;
    }


.dropdown-menu {
    min-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(0,0,0,.08);
    font-size: 13px;
}

.dropdown-item {
    padding: 8px 12px;
}

    .dropdown-item:active {
        background-color: #FAF9F7;
        color: #000;
    }


@media (min-width: 768px) {
    .branches-section {
        flex-direction: row-reverse; 
    }


}


.branches-section .filters .form-select {
    max-width: 200px; 
}


.branch-card {
    background-color: #ffffff;
    border-radius: 15px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}


    .branch-card .branch-image img {
        width: 120px; 
        height: auto;
        object-fit: cover;
        border-radius: 10px;
    }

@media (max-width: 768px) {
    .mainMenu-open #header #mainMenu {
        min-width: 350px;
        position: relative;
        right: 151px !important;
        background: #fff;
        max-height: 500px !important;
    }

    .msh_navbar_menu {
        padding-right: 52px !important;
    }

    .msh_navbar_menu {
        width: 126% !important;
        position: absolute;
        right: -32px;
    }

    #header #mainMenu:not(.menu-overlay) nav > ul > li.mega-menu-item .mega-menu-content .row {
        flex-direction: column;
        position: relative;
        right: -94% !important;
    }
    .branches-section {
        flex-direction: column;
    }

    .branch-card {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .branch-image {
        margin-left: 0;
        margin-bottom: 10px;
    }

    .filters {
        flex-direction: column;
        gap: 10px;
    }
    .branches-filters {
        flex-direction: column;
    }

    .branch-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

        .branch-card .branch-image img {
            width: 100%;
            max-width: 100%;
            height: auto;
        }

    .branch-info {
        text-align: center;
    }

    .branch-buttons {
        justify-content: center;
    }

    .info-button {
        background: #EBEBEB;
        padding: 8px 19px;
        color: #000;
        border: none;
        border-radius: 30px;
        margin-top: 15px;
    }
}
