/* ========================================
   FOOTER: Regional Branches Contacts
   ======================================== */

.footer-branches {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 2.5rem;
    margin-bottom: 2rem;
}

.footer-branches__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-branches__title {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}

/* ── Search input ── */
.footer-branches__search {
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.4rem;
    padding: 0.5rem 0.85rem 0.5rem 2.2rem;
    color: #fff;
    font-size: 0.82rem;
    width: 240px;
    transition: border-color 0.25s, background 0.25s;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 0.7rem center;
    background-size: 14px;
}

.footer-branches__search::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.footer-branches__search:focus {
    outline: none;
    border-color: rgba(255, 214, 0, 0.5);
    background-color: rgba(255, 255, 255, 0.1);
}

/* ── Tab buttons ── */
.footer-branches__tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1rem;
    border-radius: 0.4rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    flex-wrap: wrap;
}

.footer-branches__tab {
    flex: 1;
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    text-align: center;
    white-space: nowrap;
    min-width: 0;
}

.footer-branches__tab:not(:last-child) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-branches__tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-branches__tab--active {
    background: rgba(255, 214, 0, 0.12);
    color: #FFD600;
    font-weight: 600;
}

/* ── Table ── */
.footer-branches__panel {
    display: none;
}

.footer-branches__panel--active {
    display: block;
}

.footer-branches__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.footer-branches__table thead th {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    white-space: nowrap;
}

.footer-branches__table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s;
}

.footer-branches__table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.footer-branches__table tbody td {
    padding: 0.55rem 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    vertical-align: top;
}

.footer-branches__table tbody td:first-child {
    color: #fff;
    font-weight: 500;
}

.footer-branches__table tbody td a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-branches__table tbody td a:hover {
    color: #93bbfd;
    text-decoration: underline;
}

/* ── No results ── */
.footer-branches__no-results {
    display: none;
    padding: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .footer-branches__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-branches__search {
        width: 100%;
    }

    .footer-branches__tabs {
        flex-wrap: wrap;
    }

    .footer-branches__tab {
        flex: none;
        width: 50%;
    }

    .footer-branches__tab:nth-child(odd):not(:last-child) {
        border-right: 1px solid rgba(255, 255, 255, 0.12);
    }

    .footer-branches__tab:nth-child(even) {
        border-right: none;
    }

    .footer-branches__table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .footer-branches__table {
        min-width: 580px;
    }
}

@media (max-width: 480px) {
    .footer-branches__tab {
        width: 100%;
        border-right: none !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-branches__tab:last-child {
        border-bottom: none;
    }
}