.branch-locator-page {
    background-image: url(../images/press-release-bg.png);
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #cecece;
    min-height: 60vh;
    padding: 2.8vw 0 4vw;
    position: relative;
}

.branch-locator-wrap {
    max-width: 96%;
    margin: 0 auto;
}

.branch-eyebrow {
    margin-bottom: 0.75vw;
}

.branch-title {
    margin-bottom: 2vw;
}

.branch-top-filters {
    width: 100%;
    align-items: stretch;
    display: flex;
    flex-wrap: nowrap;
    gap: 0.8vw;
    margin-bottom: 1.5vw;
    justify-content: space-between;
    position: relative;
    z-index: 5;
}

.branch-dropdown {
    flex: 1 1 0;
    min-width: 0;
    position: relative;
}

.branch-dropdown.is-open {
    z-index: 50;
}

.branch-tab-dropdown {
    flex: 0 1 15vw;
}

.branch-state-dropdown {
    flex: 1.2 1 22vw;
}

.branch-office-dropdown {
    flex: 1 1 18vw;
}

.branch-tab-dropdown .branch-dropdown-trigger {
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
}

.branch-tab-dropdown .branch-dropdown-trigger::after {
    display: none;
}

.branch-tab-dropdown.active .branch-dropdown-trigger {
    background: #b83445;
    border-color: #b83445;
    color: #ffffff;
}

.branch-tab-dropdown.active .branch-dropdown-trigger .dropdown-value {
    color: #ffffff;
}

.branch-tab-dropdown:not(.active) .branch-dropdown-trigger {
    background-color: #e7e9eb;
    border-color: #ffffff;
    color: #1a2b3c;
}

.branch-switch-btn {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e4e8eb;
    border-radius: 2.2vw;
    color: #1a2b3c;
    flex: 0 1 16.5vw;
    display: inline-flex;
    justify-content: center;
    min-height: 3.2vw;
    min-width: 0;
    padding: 0.5vw 1.8vw;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.service-center-btn {
    background-color: #e7e9eb;
    border-color: #ffffff;
}

.branch-switch-btn.active {
    background: #b83445;
    border-color: #b83445;
    color: #ffffff;
}

.branch-filter-dropdowns {
    align-items: stretch;
    display: flex;
    flex: 1 1 auto;
    gap: 0.8vw;
    min-width: 0;
}

.branch-dropdown-trigger {
    align-items: center;
    background: #ffffff;
    border: 1px solid #e4e8eb;
    border-radius: 2.2vw;
    box-shadow: none;
    color: #1a2b3c;
    display: inline-flex;
    justify-content: space-between;
    min-height: 3.2vw;
    min-width: 18vw;
    padding: 0.5vw 1.6vw;
    width: 100%;
}

.branch-dropdown-menu {
    background: #ffffff;
    border: 1px solid #e4e8eb;
    border-radius: 1vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    display: none;
    left: 0;
    list-style: none;
    margin: 0.4vw 0 0;
    max-height: 18vw;
    overflow-y: auto;
    padding: 0.4vw;
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 20;
}

.branch-dropdown.is-open .branch-dropdown-menu {
    display: block;
}

.branch-dropdown-menu button {
    background: transparent;
    border: 0;
    border-radius: 0.6vw;
    color: #1a2b3c;
    display: block;
    padding: 0.55vw 0.8vw;
    text-align: left;
    width: 100%;
}

.branch-dropdown-menu button:hover {
    background: #f2f4f5;
    color: #b83445;
}

.branch-dropdown-text {
    align-items: center;
    display: inline-flex;
    gap: 0.35vw;
    min-width: 0;
}

.branch-state-dropdown .branch-dropdown-trigger,
.branch-office-dropdown .branch-dropdown-trigger {
    gap: 0.8vw;
    min-width: 0;
}

.branch-state-dropdown .branch-dropdown-text,
.branch-office-dropdown .branch-dropdown-text {
    align-items: center;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 0.35vw;
    min-width: 0;
    white-space: nowrap;
}

.branch-state-dropdown .dropdown-label,
.branch-office-dropdown .dropdown-label,
.branch-state-dropdown .dropdown-colon,
.branch-office-dropdown .dropdown-colon {
    flex-shrink: 0;
    white-space: nowrap;
}

.branch-state-dropdown .dropdown-value,
.branch-office-dropdown .dropdown-value {
    flex-shrink: 0;
    white-space: nowrap;
}

.branch-dropdown-trigger::after {
    border: solid #1a2b3c;
    border-width: 0 0.12vw 0.12vw 0;
    content: "";
    flex-shrink: 0;
    height: 0.55vw;
    margin-left: 1.2vw;
    transform: rotate(45deg) translateY(-0.12vw);
    width: 0.55vw;
}

.branch-dropdown.is-open .branch-dropdown-trigger::after {
    transform: rotate(225deg) translate(-0.12vw, -0.12vw);
}

.branch-content-row {
    align-items: stretch;
    display: flex;
    gap: 1.2vw;
    margin-top: 3vw;
}

.branch-list-card,
.branch-map-card {
    background: #ffffff;
    border-radius: 0.5vw;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.branch-list-card {
    flex: 0 0 32%;
    max-width: 32%;
    padding: 1.2vw 1.1vw;
}

.branch-map-card {
    flex: 1;
    min-width: 0;
    padding: 1.1vw;
    position: relative;
}

.branch-search-bar {
    align-items: center;
    background: #e7e9eb;
    border-radius: 2vw;
    display: flex;
    gap: 0.6vw;
    justify-content: space-between;
    padding: 0.7vw 0.9vw;
}

.branch-locator-page.is-service-center-active .branch-search-bar {
    display: none;
}

.branch-locator-page.is-service-center-active .branch-list-scroll-wrap {
    margin-top: 0;
}

.branch-search-text {
    flex: 1;
    min-width: 0;
}

.branch-state-name {
    white-space: nowrap;
}

.branch-search-placeholder {
    color: #5e6a76;
}

.branch-refresh-icon {
    display: inline-flex;
    flex-shrink: 0;
    line-height: 0;
}

.branch-list-scroll-wrap {
    margin-top: 0.9vw;
    position: relative;
}

.branch-location-list {
    list-style: none;
    margin: 0;
    max-height: 28vw;
    overflow-y: scroll;
    padding: 0 1.6vw 0 0;
    scrollbar-width: none;
}

.branch-location-list::-webkit-scrollbar {
    display: none;
}

.branch-scrollbar-track {
    background: #ecedef;
    border-radius: 10px;
    bottom: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 10px;
    z-index: 1;
}

.branch-scrollbar-thumb {
    background: #adb2ba;
    border-radius: 10px;
    display: block;
    min-height: 40px;
    position: absolute;
    top: 0;
    width: 100%;
}

.branch-location-list li {
    align-items: center;
    border-bottom: 1px solid #707070;
    display: flex;
    gap: 0.65vw;
    padding: 0.6vw 0.4vw;
}

.branch-name {
    text-transform: uppercase;
}

.branch-location-list li.active .branch-name {
    color: #b83445;
}

.branch-map-frame {
    border-radius: 0.8vw;
    height: 70vw;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.branch-map-iframe {
    border: 0;
    display: block;
    height: 100%;
    width: 100%;
}

.branch-map-info {
    background: #ffffff;
    border-radius: 0.5vw;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    left: 50%;
    max-width: 30vw;
    padding: 1vw 1.2vw;
    position: absolute;
    top: 62%;
    transform: translateX(-50%);
}

@media screen and (max-width: 991px) {
    .branch-locator-page {
        padding: 32px 0 48px;
    }

    .branch-locator-wrap {
        max-width: 90%;
        margin-bottom: 3vw;
    }

    .branch-eyebrow {
        margin-bottom: 8px;
    }

    .branch-title {
        margin-bottom: 20px;
    }

    .branch-top-filters {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 16px;
    }

    .branch-filter-dropdowns {
        display: contents;
    }

    .branch-switch-btn,
    .branch-dropdown-trigger {
        border-radius: 22px;
        min-height: 48px;
        min-width: 0;
        padding: 0 18px;
        width: 100%;
    }

    .branch-dropdown {
        min-width: 0;
        width: 100%;
    }

    .branch-dropdown-menu {
        border-radius: 12px;
        margin-top: 6px;
        max-height: 240px;
        padding: 6px;
    }

    .branch-dropdown-menu button {
        border-radius: 8px;
        padding: 10px 12px;
    }

    .branch-dropdown-trigger::after {
        border-width: 0 2px 2px 0;
        height: 8px;
        margin-left: auto;
        width: 8px;
    }

    .branch-content-row {
        flex-direction: column;
        gap: 16px;
        margin-top: 24px;
    }

    .branch-list-card,
    .branch-map-card {
        border-radius: 12px;
        flex: none;
        max-width: 100%;
        width: 100%;
    }

    .branch-list-card {
        padding: 14px;
    }

    .branch-map-card {
        padding: 14px;
    }

    .branch-search-bar {
        border-radius: 10px;
        padding: 10px 12px;
    }

    .branch-list-scroll-wrap {
        margin-top: 14px;
    }

    .branch-location-list {
        max-height: 320px;
        padding-right: 14px;
    }

    .branch-scrollbar-track {
        width: 10px;
    }

    .branch-location-list li {
        gap: 8px;
        padding: 13px 4px;
    }

    .branch-map-frame {
        border-radius: 10px;
        height: 70vw;
    }

    .branch-map-info {
        border-radius: 10px;
        left: 24px;
        max-width: calc(100% - 48px);
        padding: 14px;
        top: auto;
        bottom: 28px;
        transform: none;
    }
}

@media screen and (min-width: 992px) {
    .branch-list-card {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .branch-map-card {
        flex: 0 0 68%;
        max-width: 68%;
    }

    .branch-map-frame {
        height: 32vw;
    }

    .branch-location-list {
        max-height: 28vw;
    }

    .branch-map-info {
        bottom: auto;
        left: 50%;
        max-width: 30vw;
        top: 62%;
        transform: translateX(-50%);
    }
}

@media screen and (max-width: 540px) {
    .branch-top-filters {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(1, 1fr);
        margin-bottom: 16px;
    }

    .branch-locator-wrap {
        max-width: 100%;
        margin-bottom: 3vw;
    }
}
