﻿/* Layout: stacked by default, 50/50 on md+ */
.locations-banner {
    display: flex;
    flex-direction: column; /* stack by default */
    justify-content: flex-start; /* normal flow on mobile */
    align-items: stretch; /* children fill width on mobile */
    align-self: stretch;
    padding: 32px 0; /* merged duplicate padding rule */
}

    .locations-banner .state-menu,
    .locations-banner .map-wrapper {
        width: 100%;
        flex: 0 0 100%; /* full width on mobile */
    }

/* md and up: side-by-side 50/50 */
@media (min-width: 768px) {
    .locations-banner {
        flex-direction: row; /* side-by-side on md+ */
        justify-content: space-between;
        align-items: center;
    }

        .locations-banner .state-menu {
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            flex: 0 0 50%;
            width: 50%;
        }

            .locations-banner .state-menu > * {
                max-width: 480px;
            }

        .locations-banner .map-wrapper {
            flex: 0 0 50%;
            width: 50%;
        }
}

/* ----- existing styles kept as-is below ----- */

.grey-background {
    background-color: #F9F9F9;
}

.locations-banner .state-menu .state-select {
    appearance: none; /* Most browsers */
    -webkit-appearance: none; /* Safari/Chrome */
    -moz-appearance: none; /* Firefox */
    background-image: url('../images/icons/offices-arrow-down.svg'); /* your custom arrow */
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 17.5px 9px;
    margin-top: 10px;
    border-radius: 27px;
    display: flex;
    height: 54px;
    justify-content: center;
    padding-left: 15px;
    gap: 10px;
    align-self: stretch;
    max-width: 415px;
}

.locations-banner .map-wrapper svg {
    width: 100%;
    height: 100%;
    display: block;
}

.t-office-locations {
    padding: 40px 0px;
}

#map_access {
    display: none;
}

.state-page-header {
    text-align: center;
    margin-bottom: 3px;
}

.state-office-list {
    display: grid;
    /* never more than 3 columns, but still responsive */
    grid-template-columns: repeat( auto-fit, minmax(250px, 1fr) );
    gap: 1rem;
    padding: 1rem;
    max-width: 1200px;
    margin: 0 auto; /* center on wide screens */
}


.state-page-grid-wrapper {
    display: block;
}

    .state-page-grid-wrapper .container::before {
        display: none !important;
        content: none !important;
    }

    .state-page-grid-wrapper .container::after {
        display: none !important;
        content: none !important;
    }

.state-office-detail > * {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
