﻿/* ============================================================
   BRANCHES / LOCATE US PAGE
   ============================================================ */

/* PAGE HEADER */
.branches-page-header {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    background-image: url('/images/banner/locate-us.jpg');
    background-size: cover;
    background-position: center;
    background-color: var(--bank-maroon);
    overflow: hidden;
}
.branches-page-header::before { display: none; }
.branches-page-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}
.branches-page-header .container { position: relative; z-index: 2; }
.branches-page-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1.15;
    margin: 0;
    letter-spacing: -0.3px;
}
.branches-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(0,0,0,0.65);
    flex-wrap: wrap;
}
.branches-breadcrumb a { color: var(--bank-maroon); text-decoration: none; }
.branches-breadcrumb a:hover { color: #000; }
.branches-breadcrumb .sep { color: rgba(0,0,0,0.35); }

/* ── LOCATOR SECTION (matches home page exactly) ─────────── */
.locator-section {
    padding: 90px 0;
    position: relative;
    background: url('/images/map.jpeg') center/cover;
}
.locator-section::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.38) 0%, rgba(61,7,16,0.33) 100%);
}
.locator-left {
    position: relative;
    z-index: 2;
}
.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--bank-maroon, #5a101d), #6b0f1a);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 14px;
    font-family: 'Poppins', sans-serif;
}
.locator-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.25;
    margin-bottom: 16px;
    font-family: 'Poppins', sans-serif;
}
.locator-desc {
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
}
.locator-trust-items { list-style: none; padding: 0; margin: 0; }
.locator-trust-items li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.locator-trust-items li i { color: var(--gold, #c9a84c); font-size: 1.1rem; flex-shrink: 0; }

/* SEARCH CARD */
.locator-card {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 38px;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.5);
}
.locator-card .form-select {
    border-radius: 10px;
    border: 1.5px solid #e8e8e8;
    background-color: #fff;
    padding: 10px 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
    background-image: none !important;
}
.locator-card .form-select:focus {
    border-color: var(--bank-maroon, #5a101d);
    box-shadow: 0 0 0 3px rgba(90,16,29,0.1);
    outline: none;
}
.trust-icon {
    width: 64px; height: 64px;
    background: linear-gradient(135deg, var(--bank-maroon, #5a101d), #6b0f1a);
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.8rem;
    color: var(--gold-light, #e8c96a);
}
.locator-submit {
    background: linear-gradient(135deg, #ff8c00, #ff6b00);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    padding: 13px 28px;
    width: 100%;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.28s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    letter-spacing: 0.3px;
}
.locator-submit:hover {
    background: linear-gradient(135deg, #ff6b00, #ff8c00);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,140,0,0.35);
}
#divLocatorDetails {
    margin-top: 16px;
    background: #fff;
    border: 1px solid rgba(90,16,29,0.15);
    border-radius: 10px;
    padding: 14px;
}

/* RESULT AREA */
#branchResultCard {
    display: none;
    margin-top: 24px;
}
.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.result-header h6 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bank-maroon);
    margin: 0;
}
.result-close-btn {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: var(--page-bg);
    color: #000;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.result-close-btn:hover { background: var(--bank-maroon); color: #fff; border-color: var(--bank-maroon); }
#branchResult {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-height: 360px;
    overflow-y: auto;
    padding-right: 4px;
}
#branchResult::-webkit-scrollbar { width: 4px; }
#branchResult::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
#branchResult::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }

/* BRANCH RESULT ITEM */
.locator_box {
    background: var(--page-bg);
    border: 1.5px solid #ede5d8;
    border-left: 4px solid var(--gold);
    border-radius: 12px;
    padding: 16px 18px;
    transition: box-shadow 0.2s;
}
.locator_box:hover {
    box-shadow: 0 6px 20px rgba(61,7,16,0.1);
}
.branch-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--bank-maroon);
    margin-bottom: 6px;
}
.branch-text {
    font-size: 0.82rem;
    color: #000;
    line-height: 1.6;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.branch-text i { color: var(--gold); margin-top: 2px; flex-shrink: 0; }

/* ALL BRANCHES SECTION */
.all-branches-section {
    padding: 80px 0;
    background: var(--page-bg);
}
.branches-grid-header {
    text-align: center;
    margin-bottom: 48px;
}
.branches-grid-header .eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
}
.branches-grid-header h2 {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 800;
    color: var(--bank-maroon);
    margin-top: 8px;
    margin-bottom: 12px;
}
.branches-grid-header p { color: #000; font-size: 0.95rem; }

/* BRANCH CARD GRID */
.branch-info-card {
    border: 1.5px solid #f0ebe4;
    border-radius: 16px;
    padding: 28px;
    background: var(--page-bg);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    height: 100%;
}
.branch-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(61,7,16,0.1);
    border-color: var(--gold);
}
.branch-info-card.featured {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffbf5, #fff8ec);
}
.branch-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bank-maroon);
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}
.branch-card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bank-maroon);
    margin-bottom: 14px;
}
.branch-card-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #000;
    line-height: 1.5;
    margin-bottom: 8px;
}
.branch-card-detail i {
    color: var(--gold);
    font-size: 0.9rem;
    margin-top: 1px;
    flex-shrink: 0;
}

/* MAP SECTION */
.map-section {
    padding: 0 0 80px;
    background: var(--page-bg);
}
.map-section-header {
    text-align: center;
    margin: 35px;
}
.map-section-header h4 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bank-maroon);
    margin-bottom: 6px;
}
.map-section-header p { color: #000; font-size: 0.875rem; }
.map-embed-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(61,7,16,0.12);
    height: 420px;
    background: #f0ece6;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.map-embed-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
.map-placeholder-msg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
}
.map-placeholder-msg i { font-size: 3rem; margin-bottom: 12px; color: var(--gold); }
.map-placeholder-msg p { font-size: 0.9rem; margin: 0; }

/* RESPONSIVE */
@media (max-width: 991px) {
    .locator-intro { padding-right: 0; margin-bottom: 40px; }
    .locator-card { padding: 28px; }
}
@media (max-width: 575px) {
    .locator-card { padding: 24px 18px; }
}

