.hero {
    background-image: url("/img/Location_Banner.jpg");
}

.ServiceLocationItem {
    border: 1px solid black;
    padding: 10px;
    margin-bottom: 10px;
    background-color: aliceblue;
}

.location-directory__intro {
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.location-directory {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.location-directory__link {
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    padding: 12px 14px;
    text-decoration: none;
    color: #212529;
    font-weight: 600;
    background: #fff;
    transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.location-directory__link:hover {
    color: #bf1e2e;
    border-color: rgba(191, 30, 46, 0.35);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}
@media (min-width: 800px) {
    .left-title {
        margin-right: 90px;
    }
}
@media (min-width: 800px) {
    .left-selectors {
        margin-right: 90px;
    }
}

.location-container {
    height: 100%;
    line-height: 1.4;
    /*border: 1px solid black;
    border-radius: 15px;*/
}

.location-header {
    color: white;
    justify-self: center;
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3.75rem);
}

.marquee {
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    background: black;
    color: white;
    padding: 8px 0px 8px 0;
    font-size: larger;
}

    .marquee span {
        display: inline-block;
        padding-left: 100%;
        animation: marquee 20s linear infinite;
    }

@keyframes marquee {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-100%, 0);
    }
}

.padding-left-bar-locations {
    margin: 25px 0 25px 0;
    padding: 30px 40px;
    display: grid;
}

.left-title {
    text-align: right;
}
    .left-title h2 {
        font-size: 54px;
        font-family: var(--font-family-body);
        font-weight: bold;
        max-width: 330px;
        margin: 0 0 10px auto;
    }

.location-section-right {
    width: 60%;
}
.location-section-left {
    width: 40%;
}
.main-location-container {
    padding-right: 15px;
    padding-left: 15px;
    margin-right: 7%;
    margin-left: 7%;
}

.right-icons {
    align-self: center;
}

    .right-icons .icons li:hover {
        filter: invert(91%) sepia(10%) saturate(8%) hue-rotate(314deg) brightness(106%) contrast(98%)
    }

    .right-icons .icons li.active {
        filter: invert(15%) sepia(93%) saturate(3733%) hue-rotate(345deg) brightness(70%) contrast(89%);
    }

    .right-icons .icons {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-gap: 30px;
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

.titles {
    text-align: right;
}

.location-state-header {
    font-size: clamp(2rem, 4.4vw, 3.75rem);
    padding: 25px 0 5px 15px;
}

.location-flex {
    width: 50%;
    padding: 15px;
}

.location-header-background {
    position: relative;
    margin-bottom: 20px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    background-color: transparent;
    overflow: hidden;
    width: 100%;
    min-height: clamp(170px, 24vw, 230px);
    padding: clamp(1rem, 3vw, 2rem);
    border: 0;
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.location-header-background::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.15)
    );
    pointer-events: none;
    z-index: 1;
}

.location-header-background > * {
    position: relative;
    z-index: 2;
}

.location-header-toggle {
    position: relative;
    z-index: 2;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.location-header-toggle::before,
.location-header-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 2px;
    background: var(--main-color);
    transform: translate(-50%, -50%);
}

.location-header-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.2s ease;
}

.location-container.is-open .location-header-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.location-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding: 48px 24px;
    overflow: hidden;
    background-image: url('/img/Location_Banner.jpg');
    background-size: cover;
    background-position: center;
}

.location-sections {
    display: none;
    gap: 0.85rem;
}

.location-container.is-open .location-sections {
    display: grid;
}

.location-section-holder {
    padding-bottom: 25px;
    max-height: fit-content;
    flex-wrap: wrap;
    background-color: whitesmoke;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 0;
    display: flex;
    animation-name: locationSlidingAnimation;
    animation-duration: 1s;
    overflow: clip;
}

@keyframes locationSlidingAnimation {
    0% {
        height: 0%;
    }

    100% {
        height: 100%;
    }
}

@media (hover: hover) and (pointer: fine) and (min-width: 992px) {
    .location-container:hover .location-sections,
    .location-container:focus-within .location-sections {
        display: grid;
    }
}

    .location-section {
        /*display: flex;*/
        width: 50%;
        grid-column: 2;
        margin-bottom: 10px;
    }
    .location-section div p {
        margin-bottom:10px;
    }

.location-details {
    padding-left: 10px;
    font-size: 24px;
    overflow-wrap: anywhere;
}

.location-icon {
    width: 40px;
    height: 40px;
}

@media (max-width: 991.98px) {
    .main-location-container {
        margin-right: 0;
        margin-left: 0;
    }

    .location-flex {
        width: 100%;
    }

    .location-section-left,
    .location-section-right {
        width: 100%;
    }

    .location-section-right {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }
}

@media (max-width: 767.98px) {
    .main-location-container {
        padding-right: 0;
        padding-left: 0;
    }

    .location-state-header {
        padding-left: 0;
    }

    .location-flex {
        padding: 0 0 1rem;
    }

    .location-header-background {
        min-height: 150px;
        border-radius: 12px;
    }

    .location-header-toggle {
        width: 42px;
        height: 42px;
    }

    .location-section-holder {
        border-radius: 12px;
    }

    .location-details {
        padding-left: 0;
        font-size: 1rem;
    }
}
