/* ==========================================
   BRANCHES PAGE
========================================== */

.branches-page-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;

    padding: 0;

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    color: var(--maya-white);
    text-align: right;
}

.branches-page-hero-content {
    width: min(620px, 90%);
    margin-right: 10%;
    margin-left: auto;
}

.branches-page-eyebrow {
    margin-bottom: 14px;
    color: var(--maya-yellow);
    font-size: 1.25rem;
    font-weight: 900;
}

.branches-page-hero h1 {
    margin: 0 0 22px;
    color: var(--maya-white);
    font-size: clamp(3.5rem, 7vw, 6.5rem);
    font-weight: 900;
}

.branches-page-hero-content > p:last-child {
    max-width: 650px;
    margin:0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.15rem;
    text-align:right;
}


/* BRANCHES LIST */

.branches-page-section {
    padding: var(--space-xl) 0;
    background: var(--maya-surface);
}

.branches-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.branch-page-card {
    overflow: hidden;
    background: var(--maya-white);
    border: 1px solid var(--maya-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal);
}

.branch-page-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}


/* BRANCH IMAGE */

.branch-page-image {
    position: relative;
    min-height: 320px;
    overflow: hidden;
    background: var(--maya-yellow-soft);
}

.branch-page-image img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.branch-page-card:hover .branch-page-image img {
    transform: scale(1.04);
}

.branch-page-image:empty {
    min-height: 220px;
}


/* STATUS */

.branch-page-status {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--maya-white);
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
}

.branch-page-status::before {
    content: "";
    width: 8px;
    height: 8px;
    background: currentColor;
    border-radius: 50%;
}

.branch-page-status.is-open {
    background: var(--maya-green);
}

.branch-page-status.is-closed {
    background: var(--maya-text-muted);
}


/* BRANCH CONTENT */

.branch-page-content {
    padding: 34px;
    text-align: right;
}

.branch-page-content h2 {
    margin: 0 0 18px;
    color: var(--maya-black);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 900;
}

.branch-page-address {
    margin: 0 0 22px;
    color: var(--maya-text-muted);
    font-size: 1.05rem;
    line-height: 2;
}

.branch-page-hours {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    margin-bottom: 26px;
    background: var(--maya-yellow-soft);
    border-radius: var(--radius-sm);
}

.branch-page-hours strong {
    color: var(--maya-black);
    font-weight: 900;
}

.branch-page-hours span {
    color: var(--maya-text-muted);
    font-weight: 700;
}

.branch-page-content .btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 100%;
    box-sizing: border-box;

    margin: 0;
}
.branch-page-phone {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 18px;
    padding: 14px 18px;

    background: var(--maya-red-soft);
    border-radius: var(--radius-sm);
}

.branch-page-phone strong {
    color: var(--maya-black);
    font-weight: 900;
}

.branch-page-phone a {
    color: var(--maya-red);
    font-weight: 800;
    direction: ltr;
}



/* EMPTY STATE */

.branches-page-empty {
    padding: 36px;
    color: var(--maya-text-muted);
    background: var(--maya-white);
    border: 1px dashed var(--maya-border);
    border-radius: var(--radius-md);
    text-align: center;
}

/* ==========================================
   MOBILE BRANCHES
========================================== */

@media (max-width: 991px) {

    .branches-page-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .branch-page-image img {
        height: 240px;
    }

    .branch-page-image {
        min-height: 240px;
    }

}