.service-locations {
    --locations-accent: var(--theme-color, #fe0000);
    --locations-dark: var(--title-color, #02000f);
    --locations-ease: cubic-bezier(0.23, 1, 0.32, 1);
    background:
        radial-gradient(circle at 50% 0, rgba(254, 0, 0, 0.1), transparent 32rem),
        var(--locations-dark);
    overflow: hidden;
    padding: 96px 0;
}

.service-locations__heading {
    margin: 0 auto 38px;
    max-width: 1120px;
}

.service-locations__heading .sec-title {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
}

.service-locations__heading .text {
    margin: 18px auto 0;
    max-width: 680px;
    opacity: 0.72;
}

.service-locations__showcase {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
    height: clamp(520px, 55vw, 680px);
    isolation: isolate;
    left: 50%;
    margin: 0;
    max-width: none;
    overflow: hidden;
    position: relative;
    transform: translateX(-50%);
    width: min(1460px, calc(100vw - 48px));
}

.service-locations__images,
.service-locations__image,
.service-locations__shade {
    inset: 0;
    position: absolute;
}

.service-locations__image {
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 260ms var(--locations-ease), transform 280ms var(--locations-ease);
    width: 100%;
}

.service-locations__image.is-active {
    opacity: 1;
    transform: scale(1);
}

.service-locations__shade {
    background:
        linear-gradient(180deg, rgba(2, 0, 15, 0.04) 20%, rgba(2, 0, 15, 0.84) 100%),
        linear-gradient(90deg, rgba(2, 0, 15, 0.28), transparent 50%, rgba(2, 0, 15, 0.18));
    pointer-events: none;
}

.service-locations__captions {
    bottom: 225px;
    left: 50px;
    max-width: min(620px, 70%);
    pointer-events: none;
    position: absolute;
    right: 50px;
    z-index: 2;
}

.service-locations__caption {
    opacity: 0;
    position: absolute;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 220ms var(--locations-ease);
    visibility: hidden;
}

.service-locations__caption.is-active {
    opacity: 1;
    position: relative;
    transform: translateY(0);
    visibility: visible;
}

.service-locations__caption-label {
    align-items: center;
    color: #fff;
    display: flex;
    font-size: 0.75rem;
    font-weight: 700;
    gap: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.service-locations__caption-label::before {
    background: var(--locations-accent);
    content: "";
    height: 2px;
    width: 30px;
}

.service-locations__caption-title {
    color: #fff;
    font-size: clamp(2.5rem, 5vw, 4.8rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 0.96;
    margin: 14px 0 12px;
    text-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.service-locations__caption p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    max-width: 490px;
}

.service-locations__panels {
    bottom: 28px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    left: 28px;
    position: absolute;
    right: 28px;
    z-index: 2;
}

.service-locations__panel {
    align-items: center;
    appearance: none;
    background: rgba(8, 7, 16, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    display: grid;
    gap: 16px;
    grid-template-columns: auto 1fr auto;
    min-height: 150px;
    overflow: hidden;
    padding: 22px;
    position: relative;
    text-align: left;
    text-decoration: none;
    transition: background-color 180ms ease, border-color 180ms ease, transform 140ms var(--locations-ease);
}

@supports (backdrop-filter: blur(12px)) {
    .service-locations__panel {
        backdrop-filter: blur(12px);
    }
}

.service-locations__panel::before {
    background: var(--locations-accent);
    bottom: 0;
    content: "";
    left: 0;
    position: absolute;
    top: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 180ms var(--locations-ease);
    width: 4px;
}

.service-locations__panel:hover,
.service-locations__panel.is-active {
    background: rgba(16, 13, 25, 0.88);
    border-color: rgba(255, 255, 255, 0.32);
    color: #fff;
}

.service-locations__panel.is-active::before {
    transform: scaleY(1);
}

.service-locations__panel:active {
    transform: scale(0.98);
}

.service-locations__panel:focus-visible {
    border-color: #fff;
    box-shadow: 0 0 0 3px var(--locations-accent);
    outline: 0;
}

.service-locations__number {
    align-self: start;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding-top: 4px;
}

.service-locations__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.service-locations__eyebrow {
    color: var(--locations-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    line-height: 1.2;
    text-transform: uppercase;
}

.service-locations__state {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.08;
    margin-top: 9px;
    text-wrap: balance;
}

.service-locations__action {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 14px;
}

.service-locations__arrow {
    align-items: center;
    align-self: end;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    height: 38px;
    justify-content: center;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms var(--locations-ease);
    width: 38px;
}

.service-locations__arrow svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 17px;
}

.service-locations__panel.is-active .service-locations__arrow {
    background: var(--locations-accent);
    border-color: var(--locations-accent);
}

@media (hover: hover) and (pointer: fine) {
    .service-locations__panel:hover .service-locations__arrow {
        background: var(--locations-accent);
        border-color: var(--locations-accent);
        transform: translateX(3px);
    }
}

@media (max-width: 991px) {
    .service-locations__showcase {
        height: 700px;
    }

    .service-locations__panels {
        grid-template-columns: 1fr;
    }

    .service-locations__captions {
        bottom: 405px;
        left: 32px;
        max-width: 80%;
        right: 32px;
    }

    .service-locations__panel {
        min-height: 112px;
        padding: 18px 20px;
    }

    .service-locations__action {
        margin-top: 8px;
    }
}

@media (max-width: 575px) {
    .service-locations {
        padding: 64px 0;
    }

    .service-locations__heading {
        margin-bottom: 26px;
    }

    .service-locations__showcase {
        border-radius: 4px;
        height: 680px;
        width: calc(100vw - 24px);
    }

    .service-locations__captions {
        bottom: 360px;
        left: 24px;
        max-width: calc(100% - 48px);
        right: 24px;
    }

    .service-locations__caption-title {
        font-size: clamp(2.15rem, 11vw, 3.2rem);
        margin: 10px 0 8px;
    }

    .service-locations__caption p {
        display: none;
    }

    .service-locations__panels {
        bottom: 12px;
        gap: 8px;
        left: 12px;
        right: 12px;
    }

    .service-locations__panel {
        border-radius: 4px;
        gap: 12px;
        grid-template-columns: auto 1fr auto;
        min-height: 104px;
        padding: 15px;
    }

    .service-locations__state {
        font-size: 1.3rem;
        margin-top: 6px;
    }

    .service-locations__action {
        display: none;
    }

    .service-locations__arrow {
        align-self: center;
        height: 34px;
        width: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .service-locations__image,
    .service-locations__panel,
    .service-locations__panel::before,
    .service-locations__arrow,
    .service-locations__caption {
        transform: none;
        transition-duration: 0.01ms;
    }
}
