/* =========================
   BRANCH LOCATOR WRAPPER
========================= */

.bbl-locator {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    font-family: inherit;
}

/* =========================
   STATS
========================= */

.bbl-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.bbl-stat {
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.bbl-stat h3 {
    margin: 0;
    font-size: 34px;
    color: #005153;
}

.bbl-stat p {
    margin: 8px 0 0;
    color: #666;
}

/* =========================
   HEADER
========================= */

.bbl-header {
    margin-bottom: 25px;
}

.bbl-main-title {
    margin: 0;
    font-size: 42px;
    font-weight: 700;
    color: #184f6b;
}

.bbl-sub-title {
    margin-top: 8px;
    color: #666;
    font-size: 16px;
}

/* =========================
   FILTERS
========================= */

.bbl-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    background: #fff;
    padding: 20px;
    border-radius: 16px;

    box-shadow: 0 4px 20px rgba(0,0,0,.05);

    margin-bottom: 25px;
}

.bbl-filters input,
.bbl-filters select {
    flex: 1;
    min-width: 220px;

    height: 52px;

    border: 1px solid #dce3eb;
    border-radius: 10px;

    padding: 0 15px;
    background: #fff;
    font-size: 15px;
}

.bbl-filters input:focus,
.bbl-filters select:focus {
    outline: none;
    border-color: #005153;
    box-shadow: 0 0 0 3px rgba(0,81,83,.15);
}

/* =========================
   BUTTONS
========================= */

.bbl-btn,
#bbl-search-btn,
#bbl-near-me {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;

    border: 0;
    border-radius: 10px;

    background: #005153;
    color: #fff !important;

    padding: 0 20px;

    text-decoration: none;
    font-weight: 600;

    cursor: pointer;

    transition: all .3s ease;
}

.bbl-btn:hover,
#bbl-search-btn:hover,
#bbl-near-me:hover {
    background: #006f72;
    transform: translateY(-2px);
    color: #fff !important;
}

/* =========================
   MAP
========================= */

#bbl-map {
    width: 100%;
    height: 650px;

    border-radius: 20px;
    overflow: hidden;

    margin-bottom: 25px;

    box-shadow: 0 10px 35px rgba(0,0,0,.08);
}

/* =========================
   NEARBY SEARCH
========================= */

.bbl-nearby-search {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.bbl-nearby-search select {
    flex: 1;
    min-width: 220px;

    height: 52px;

    border: 1px solid #dce3eb;
    border-radius: 10px;

    padding: 0 15px;
}

/* =========================
   BRANCH GRID
========================= */

#bbl-results {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(340px,1fr));
    gap: 25px;
}

/* =========================
   CARD
========================= */

.bbl-card {
    position: relative;

    background: #fff;
    border-radius: 18px;

    padding: 25px;

    overflow: hidden;

    box-shadow: 0 8px 25px rgba(0,0,0,.06);

    transition: all .3s ease;
}

.bbl-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.bbl-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        #005153,
        #0bcbce
    );
}

.bbl-card h3 {
    margin: 0 0 20px;

    color: #184f6b;

    font-size: 24px;
    font-weight: 700;
}

/* =========================
   CARD META
========================= */

.bbl-meta {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 14px;

    color: #444;
    line-height: 1.5;
}

.bbl-meta i {
    font-size: 18px;
    color: #005153;
    width: 20px;
    text-align: center;
}

.bbl-meta span {
    flex: 1;
}

/* =========================
   ATM BADGE
========================= */

.bbl-atm-badge {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    background: #e8f7ee;

    color: #15803d;

    border-radius: 50px;

    padding: 8px 14px;

    font-size: 14px;
    font-weight: 600;
}

/* =========================
   PAGINATION
========================= */

#bbl-pagination {
    margin-top: 40px;
    text-align: center;
}

#bbl-pagination .bbl-page {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    margin: 0 5px;

    border: 1px solid #dce3eb !important;
    border-radius: 8px !important;

    background: #fff !important;
    color: #333 !important;

    cursor: pointer;

    font-size: 14px;
    font-weight: 600;

    transition: all 0.3s ease;
}

#bbl-pagination .bbl-page:hover {
    background: #005153 !important;
    color: #fff !important;
    border-color: #005153 !important;
}

#bbl-pagination .bbl-page.active {
    background: #005153 !important;
    color: #fff !important;
    border-color: #005153 !important;
}

/* =========================
   MODAL
========================= */

#bbl-modal {
    display: none;

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.7);

    z-index: 99999;
}

.bbl-modal-content {
    background: #fff;

    width: 650px !important;
    max-width: 90% !important;

    margin: 50px auto;

    padding: 30px;

    border-radius: 20px;

    position: relative;
}

/*.bbl-close {*/
/*    position: absolute;*/
/*    right: 20px;*/
/*    top: 15px;*/

/*    font-size: 30px;*/
/*    cursor: pointer;*/
/*}*/
#bbl-modal .bbl-close {
    position: absolute !important;

    top: 20px !important;
    right: 20px !important;

    width: 40px !important;
    height: 40px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    background: #005153 !important;
    color: #fff !important;

    font-size: 24px !important;
    font-weight: 700 !important;
    line-height: 40px !important;
    text-align: center !important;

    cursor: pointer !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-shadow: 0 4px 12px rgba(0,0,0,.15) !important;

    z-index: 999999 !important;

    transition: all .2s ease;
}

#bbl-modal .bbl-close:hover {
    background: #003f40 !important;

    transform: scale(1.05);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .bbl-stats {
        grid-template-columns: 1fr;
    }

    .bbl-filters {
        flex-direction: column;
    }

    .bbl-filters input,
    .bbl-filters select,
    #bbl-search-btn {
        width: 100%;
    }

    #bbl-map {
        height: 450px;
    }

    #bbl-results {
        grid-template-columns: 1fr;
    }
}
.bbl-btn,
button.bbl-btn,
a.bbl-btn,
.bbl-view-branch {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    height: 50px !important;
    min-height: 50px !important;

    padding: 0 24px !important;

    border: 0 !important;
    border-radius: 12px !important;

    background: #005153 !important;
    color: #fff !important;

    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1 !important;

    text-decoration: none !important;

    box-sizing: border-box;
    cursor: pointer;
}

.bbl-btn:hover,
.bbl-view-branch:hover {
    background: #006f72 !important;
    color: #fff !important;
}



/* ===================================
   MODAL IMPROVEMENTS
=================================== */

.bbl-modal-content {

    width: 1100px !important;

    max-width: 95%;

    border-radius: 20px;

    padding: 40px;

    overflow: hidden;
}

.bbl-popup-grid {

    display: grid;

    grid-template-columns: 1fr 450px;

    gap: 40px;

    align-items: start;
}

.bbl-popup-details h2 {

    font-size: 42px;

    margin-bottom: 25px;

    color: #1f3b4d;
}

.bbl-popup-details p {

    margin-bottom: 18px;

    line-height: 1.7;

    font-size: 18px;
}

#bbl-branch-map {

    width: 100%;

    height: 400px;

    border-radius: 16px;

    overflow: hidden;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.bbl-close {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    background: #005153;

    color: #fff;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 24px;

    top: 20px;

    right: 20px;
}

@media (max-width: 900px) {

    .bbl-popup-grid {

        grid-template-columns: 1fr;
    }

    #bbl-branch-map {

        height: 300px;
    }

    .bbl-popup-details h2 {

        font-size: 32px;
    }
}
