/* Scoped to /branches */
html:has(.branches-page),
body:has(.branches-page) {
    overflow-x: hidden;
}

.branches-page {
    overflow-x: hidden;
    color: #0a0933;
}

.branches-page .container-fluid {
    width: 100%;
    max-width: none;
    padding-left: clamp(12px, 3vw, 48px);
    padding-right: clamp(12px, 3vw, 48px);
}

.branches-page img {
    max-width: 100%;
    height: auto;
}

.branches-page a:focus-visible,
.branches-page button:focus-visible {
    outline: 3px solid #00B4D8;
    outline-offset: 2px;
}

.branches-page .br-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0933 0%, #023e8a 55%, #00B4D8 100%);
    color: #fff;
    padding: 3rem 0 4rem;
}

.branches-page .br-hero::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -60px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.18);
    pointer-events: none;
}

.branches-page .br-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .branches-page .br-hero-grid {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
    }
}

.branches-page .br-breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.branches-page .br-breadcrumb a {
    color: #d4af37;
}

.branches-page .br-breadcrumb .active,
.branches-page .br-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.7);
}

.branches-page .br-kicker {
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #d4af37;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.branches-page .br-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #fff;
}

.branches-page .br-hero .lead {
    max-width: 42rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 0;
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.branches-page .br-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.branches-page .br-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    background: #d4af37;
    color: #0a0933;
    border: 0;
}

.branches-page .br-btn:hover,
.branches-page .br-btn:focus {
    background: #00B4D8;
    color: #fff;
    text-decoration: none;
}

.branches-page .br-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.branches-page .br-btn-ghost:hover,
.branches-page .br-btn-ghost:focus {
    background: #fff;
    color: #0a0933;
}

.branches-page .br-btn-outline {
    background: transparent;
    color: #0a0933;
    border: 1px solid #00B4D8;
}

.branches-page .br-btn-outline:hover,
.branches-page .br-btn-outline:focus {
    background: #0a0933;
    color: #fff;
    border-color: #0a0933;
}

.branches-page .br-btn-ghost-dark {
    background: transparent;
    color: #0a0933;
    border: 1px solid rgba(10, 9, 51, 0.25);
}

.branches-page .br-btn-ghost-dark:hover,
.branches-page .br-btn-ghost-dark:focus {
    background: #0a0933;
    color: #fff;
}

.branches-page .br-btn-small {
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
}

.branches-page .br-hero-visual {
    display: none;
    justify-content: center;
}

@media (min-width: 992px) {
    .branches-page .br-hero-visual {
        display: flex;
    }
}

.branches-page .br-map-mark {
    width: min(100%, 280px);
    aspect-ratio: 1;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #d4af37;
    font-weight: 700;
}

.branches-page .br-map-mark i {
    font-size: 2.5rem;
}

.branches-page .br-map-mark span {
    color: #fff;
}

.branches-page .br-section {
    padding: 2.5rem 0 3rem;
    background: #f6f8fb;
}

.branches-page .br-section--white {
    background: #fff;
}

.branches-page .br-section h2 {
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #0a0933;
}

.branches-page .br-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.branches-page .br-intro {
    color: #445;
    max-width: 46rem;
    margin-bottom: 1.5rem;
}

.branches-page .br-empty {
    background: #f6f8fb;
    border-radius: 14px;
    padding: 1.5rem;
}

.branches-page .br-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .branches-page .br-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.branches-page .br-card {
    min-width: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(10, 9, 51, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.branches-page .br-section--white .br-card {
    background: #f6f8fb;
    box-shadow: none;
}

.branches-page .br-card-photo {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.branches-page .br-card-photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #023e8a, #00B4D8);
    color: #fff;
    font-size: 2rem;
}

.branches-page .br-card-body {
    padding: 1.35rem 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.branches-page .br-city {
    color: #023e8a;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.branches-page .br-facts {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.branches-page .br-facts li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    margin-bottom: 0.65rem;
    color: #334;
    font-size: 0.95rem;
}

.branches-page .br-fact-icon {
    width: 28px;
    flex-shrink: 0;
    color: #00B4D8;
    margin-top: 0.15rem;
}

.branches-page .br-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.branches-page .br-detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 992px) {
    .branches-page .br-detail-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: start;
    }
}

.branches-page .br-dl {
    margin: 0;
}

.branches-page .br-dl > div {
    margin-bottom: 1rem;
}

.branches-page .br-dl dt {
    font-weight: 700;
    font-size: 0.85rem;
    color: #023e8a;
    margin-bottom: 0.2rem;
}

.branches-page .br-dl dd {
    margin: 0;
    color: #334;
}

.branches-page .br-map {
    position: relative;
    width: 100%;
    padding-bottom: 62%;
    border-radius: 14px;
    overflow: hidden;
    background: #e8eef4;
}

.branches-page .br-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.branches-page .br-map-listing {
    background: #f6f8fb;
    border-radius: 14px;
    padding: 1.5rem;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.branches-page .br-actions--plain {
    margin-top: 0.5rem;
}

.branches-page .br-other {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.branches-page .br-other a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    border: 1px solid #00B4D8;
    color: #0a0933;
    font-weight: 600;
    text-decoration: none;
}

.branches-page .br-other a:hover,
.branches-page .br-other a:focus {
    background: #0a0933;
    color: #fff;
    border-color: #0a0933;
}

@media (max-width: 575.98px) {
    .branches-page .br-card-actions .br-btn {
        width: 100%;
    }
}
