/* =====================================================
   BRANCH LOCATOR
===================================================== */

.branch-locator {
    width: 100%;

    background: #f7f5f5;

    padding: 60px 0 80px;
}


/* When embedded inside a tab pane (About Us > Footprints),
   blend into the surrounding page. */

.footprints-locator {
    background: transparent;

    padding: 0;
}


/* =====================================================
   LEFT COLUMN
===================================================== */

.branch-list-column {
    background: #f5f6f4;
}


.branch-list-wrapper {
    height: 100%;

    padding: 10px 30px 0 0;
}


/* =====================================================
   HEADING
===================================================== */

.branch-heading h2 {
    margin: 0 0 12px;

    font-size: 40px;
    line-height: 1.1;
    font-weight: 800;

    color: #080808;

    letter-spacing: -1px;
}


.branch-heading p {
    margin: 0;

    font-size: 17px;
    line-height: 1.5;

    color: #8a8585;
}


/* =====================================================
   FILTERS
===================================================== */

.branch-filters {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin: 22px 0;
}


.branch-filter {
    border: 1px solid #e6e1e1;

    background: #fff;

    color: #6d6767;

    border-radius: 30px;

    padding: 9px 20px;

    font-size: 15px;
    font-weight: 500;

    line-height: 1.2;

    cursor: pointer;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}


.branch-filter:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}


.branch-filter.active {
    background: #111;

    border-color: #111;

    color: #fff;
}


/* =====================================================
   BRANCH LIST
===================================================== */

.branch-list {
    height: 560px;

    overflow-y: auto;

    padding-right: 14px;

    scrollbar-width: thin;

    scrollbar-color: #cfcaca transparent;
}


/* Chrome / Edge / Safari */

.branch-list::-webkit-scrollbar {
    width: 7px;
}


.branch-list::-webkit-scrollbar-track {
    background: #f0eded;

    border-radius: 10px;
}


.branch-list::-webkit-scrollbar-thumb {
    background: #cfcaca;

    border-radius: 10px;
}


/* =====================================================
   BRANCH CARD
===================================================== */

.branch-card {
    background: #fff;

    border: 1px solid #f0ebeb;

    border-radius: 12px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);

    padding: 22px 24px;

    margin-bottom: 16px;

    cursor: pointer;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}


.branch-card:hover {
    border-color: #e3c8c8;

    box-shadow: 0 6px 18px rgba(0, 0, 0, .07);

    transform: translateY(-1px);
}


.branch-card.active {
    border-color: var(--brand-red);

    box-shadow: 0 0 0 1px var(--brand-red);
}


.branch-card h3 {
    margin: 0 0 8px;

    font-size: 17px;

    line-height: 1.3;

    font-weight: 700;

    color: #141010;
}


.branch-card p {
    margin: 0;

    font-size: 15px;

    line-height: 1.55;

    color: #6d6767;
}


/* =====================================================
   MAP
===================================================== */

.branch-map-column {
    display: flex;
}


#branchMap {
    width: 100%;

    flex: 1;

    min-height: 560px;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}


/* =====================================================
   LEAFLET CONTROLS
===================================================== */

.leaflet-control-zoom {
    border: none !important;

    box-shadow: 0 2px 8px rgba(0,0,0,.15) !important;
}


.leaflet-control-zoom a {
    width: 40px !important;

    height: 40px !important;

    line-height: 40px !important;

    font-size: 24px !important;

    color: #111 !important;

    background: #fff !important;
}


/* =====================================================
   CUSTOM MARKERS (fav.png image)
===================================================== */

.branch-marker-img {
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35));

    transition: transform .15s ease;
}

.branch-marker-img:hover {
    transform: scale(1.12);
}

.branch-marker-img.selected {
    filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0)) drop-shadow(0 0 8px var(--brand-red));

    transform: scale(1.2);
}


/* =====================================================
   POPUP
===================================================== */

.leaflet-popup-content-wrapper {
    border-radius: 13px;

    box-shadow: 0 5px 25px rgba(0,0,0,.18);
}


.leaflet-popup-content {
    margin: 18px 25px 18px 18px;

    min-width: 320px;
}


.branch-popup h3 {
    margin: 0 0 3px;

    font-size: 21px;

    line-height: 1.25;

    font-weight: 700;

    color: #333;
}


.branch-popup p {
    margin: 0;

    font-size: 17px;

    line-height: 1.4;

    color: #333;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1199.98px) {

    .branch-list-wrapper {
        padding-left: 30px;

        padding-right: 20px;
    }


    .branch-heading h2 {
        font-size: 31px;
    }


    .branch-heading p {
        font-size: 15px;
    }


    .branch-filter {
        padding: 6px 12px;

        font-size: 14px;
    }


    .branch-card {
        padding: 16px;
    }


    .branch-card h3 {
        font-size: 16px;
    }


    .branch-card p {
        font-size: 15px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 991.98px) {

    .branch-list-wrapper {
        padding: 35px 20px 25px;
    }


    .branch-heading h2 {
        font-size: 32px;
    }


    .branch-heading p {
        font-size: 16px;
    }


    /*
       On mobile the branch list becomes
       a horizontal scrolling area.
    */

    .branch-list {
        height: auto;

        max-height: 420px;

        padding-right: 10px;
    }


    .branch-map-column {
        min-height: 460px;

        margin-top: 24px;
    }


    #branchMap {
        height: 460px;

        min-height: 460px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 575.98px) {

    .branch-list-wrapper {
        padding: 30px 15px 20px;
    }


    .branch-heading h2 {
        font-size: 28px;
    }


    .branch-heading p {
        font-size: 15px;
    }


    .branch-filters {
        gap: 7px;

        margin: 18px 0;
    }


    .branch-filter {
        padding: 7px 12px;

        font-size: 13px;
    }


    .branch-list {
        max-height: 360px;
    }


    .branch-card {
        border-radius: 12px;

        padding: 17px;
    }


    .branch-card h3 {
        font-size: 16px;
    }


    .branch-card p {
        font-size: 15px;
    }


    #branchMap {
        height: 420px;

        min-height: 420px;
    }


    .leaflet-popup-content {
        min-width: 230px;

        margin: 15px 20px 15px 15px;
    }


    .branch-popup h3 {
        font-size: 17px;
    }


    .branch-popup p {
        font-size: 14px;
    }

}