.hc-locations {
    --locations-ink: var(--color-slate-charcoal-brand);
    --locations-steel: var(--color-midnight-steel);
    --locations-line: var(--color-neutral-300);
    --locations-paper: var(--color-slate-charcoal);
    color: var(--locations-ink);
    background: var(--locations-paper);
}

.hc-locations [hidden] {
    display: none !important;
}

.hc-locations__wrap {
    width: min(1220px, 100% - clamp(36px, 8vw, 100px));
    margin-inline: auto;
}

.hc-locations__hero {
    color: var(--locations-ink);
    background: #bfeff4;
}

.hc-locations__hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(36px, 6vw, 90px);
    padding-block: clamp(36px, 5vw, 76px);
}

.hc-locations .hc-locations__intro h1 {
    max-width: 12ch;
    margin: 0 0 .28em;
    color: inherit;
    font-size: clamp(2.75rem, 5.45vw, 5.1rem);
    line-height: .99;
    letter-spacing: -.045em;
}

.hc-locations__intro > p {
    margin: 0;
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    line-height: 1.5;
}

.hc-locations__photo {
    position: relative;
    isolation: isolate;
    margin: 0 9px 9px 0;
    aspect-ratio: 1.37;
}

.hc-locations__photo::after {
    position: absolute;
    z-index: -1;
    inset: 9px -9px -9px 9px;
    border: 1px solid var(--color-serene-blue);
    border-radius: 14px 14px 90px 14px;
    content: '';
}

.hc-locations__photo img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 14px 14px 90px 14px;
    object-fit: cover;
    object-position: 50% 51%;
}

.hc-locations__search {
    position: relative;
    max-width: 470px;
    margin: 28px 0 16px;
}

.hc-locations__search label {
    margin: 0 0 8px;
    font-size: .95rem;
    font-weight: 700;
}

.hc-locations__search-box {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 0 12px 0 17px;
    box-shadow: inset 0 0 0 1px var(--locations-steel);
    border-radius: 10px;
    color: var(--locations-steel);
    background: #fff;
}

.hc-locations__search-box:focus-within {
    outline: 3px solid var(--locations-ink);
    outline-offset: 4px;
}

.hc-locations .hc-locations__search-box input {
    flex: 1;
    min-width: 0;
    min-height: 58px;
    padding: 0 10px;
    border: 0;
    outline: 0;
    color: var(--locations-ink);
    background: transparent;
    box-shadow: none;
    font: inherit;
}

.hc-locations__search-box input::-webkit-search-cancel-button {
    appearance: none;
}

.hc-locations__search-box button {
    min-height: 44px;
    padding: 0 7px;
    border: 0;
    color: var(--locations-steel);
    background: transparent;
    font-size: .9rem;
    text-decoration: underline;
    cursor: pointer;
}

.hc-locations__status {
    position: absolute;
    top: 100%;
    margin: 5px 0 0;
    font-size: .88rem;
}

.hc-locations__body {
    padding-block: clamp(28px, 5vw, 62px) clamp(55px, 8vw, 100px);
}

.hc-locations .hc-locations__body h2 {
    margin: 0 0 18px;
    color: var(--locations-ink);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}

.hc-locations .hc-locations__states,
.hc-locations .hc-locations__places {
    display: grid;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hc-locations .hc-locations__states {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.hc-locations__states a {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    height: 100%;
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--locations-line);
    border-radius: 12px;
    color: var(--locations-ink);
    background: #fff;
    line-height: 1.25;
    text-decoration: none;
}

.hc-locations__states a:hover,
.hc-locations__places a:hover {
    border-color: var(--color-serene-blue);
    color: var(--locations-steel);
    background: var(--color-serene-10);
}

.hc-locations__states strong,
.hc-locations__count {
    display: block;
}

.hc-locations__count {
    margin-top: 4px;
    color: var(--locations-steel);
    font-size: .88rem;
}

.hc-locations__abbreviation {
    display: grid;
    width: 53px;
    height: 47px;
    place-items: center;
    border-radius: 8px;
    color: var(--locations-steel);
    background: var(--color-serene-10);
    font-size: .86rem;
    font-weight: 800;
    letter-spacing: .045em;
}

.hc-locations__arrow {
    color: var(--locations-steel);
    font-size: 1.18rem;
}

.hc-locations__browse + .hc-locations__directory {
    margin-top: clamp(40px, 5vw, 68px);
}

.hc-locations__browse[hidden] + .hc-locations__directory {
    margin-top: 0;
}

.hc-locations__groups {
    display: grid;
    gap: 18px;
}

.hc-locations__group {
    margin-inline: 0;
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid var(--locations-line);
    border-radius: 14px;
    background: #fff;
    scroll-margin-top: 110px;
}

.hc-locations__group:target {
    border-color: var(--color-serene-blue);
}

.hc-locations__group-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 7px 20px;
    margin-bottom: 15px;
}

.hc-locations .hc-locations__group-heading h3 {
    margin: 0;
    color: var(--locations-ink);
    font-size: clamp(1.22rem, 2.15vw, 1.65rem);
    line-height: 1.2;
}

.hc-locations__group-heading a {
    padding-block: 5px;
    color: var(--locations-steel);
    font-size: .94rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hc-locations .hc-locations__places {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.hc-locations__places a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    height: 100%;
    min-height: 48px;
    padding: 8px 11px;
    border: 1px solid var(--locations-line);
    border-radius: 7px;
    color: var(--locations-steel);
    background: var(--locations-paper);
    font-size: .94rem;
    line-height: 1.25;
    text-decoration: none;
}

.hc-locations :is(a, button):focus-visible {
    outline: 3px solid var(--locations-ink);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .hc-locations .hc-locations__states,
    .hc-locations .hc-locations__places {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 690px) {
    .hc-locations__hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .hc-locations__photo {
        aspect-ratio: 1.8;
    }

    .hc-locations__photo,
    .hc-locations__photo::after,
    .hc-locations__photo img {
        border-bottom-right-radius: 48px;
    }

    .hc-locations__photo img {
        object-position: 50% 42%;
    }
}

@media (max-width: 540px) {
    .hc-locations .hc-locations__states,
    .hc-locations .hc-locations__places {
        grid-template-columns: minmax(0, 1fr);
    }

    .hc-locations__states a {
        min-height: 67px;
        padding: 9px 12px;
    }

    .hc-locations__abbreviation {
        height: 41px;
    }
}

.hc-locations__states a:not(:has(.hc-locations__abbreviation)) {
    grid-template-columns: minmax(0, 1fr) auto;
}
