.location-page {
    --location-blue: #24417c;
    --location-ink: #1a2d5a;
    --location-cyan: #00adef;
    color: #3d4b5c;
}

.location-page a:focus-visible {
    outline: 3px solid var(--location-cyan);
    outline-offset: 3px;
}

.location-hero {
    min-height: calc(100vh - 95px);
    padding: 38px 24px 80px;
    background:
        radial-gradient(ellipse at 82% 18%, rgba(0, 173, 239, .13), transparent 34%),
        linear-gradient(135deg, #f7fafd 0%, #edf4fb 100%);
}

.location-hero__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.location-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 54px;
    color: #71819a;
    font-size: 13px;
}

.location-breadcrumb a {
    color: var(--location-blue);
    text-decoration: none;
}

.location-breadcrumb a:hover {
    text-decoration: underline;
}

.location-hero__content {
    min-width: 0;
}

.location-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr);
    align-items: center;
    gap: clamp(32px, 5vw, 64px);
}

.location-hero__image {
    margin: 0;
}

.location-hero__image img {
    display: block;
    width: 100%;
    max-height: 430px;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 20px 48px rgba(36, 65, 124, .16);
}

.location-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--location-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.location-eyebrow::before {
    width: 22px;
    height: 2px;
    background: var(--location-cyan);
    content: "";
}

.location-hero h1 {
    max-width: 720px;
    margin: 0 0 18px;
    color: var(--location-ink);
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.12;
}

.location-hero h1 span {
    color: var(--location-blue);
}

.location-hero__summary {
    max-width: 650px;
    margin: 0;
    color: #465a7b;
    font-size: 18px;
    line-height: 1.75;
}

.location-search {
    display: flex;
    max-width: 600px;
    min-height: 56px;
    align-items: stretch;
    overflow: hidden;
    margin-top: 24px;
    border: 1.5px solid var(--location-blue);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 14px rgba(36, 65, 124, .1);
}

.location-search select {
    flex: 1;
    min-width: 0;
    padding: 14px 16px;
    border: 0;
    outline: none;
    appearance: none;
    background: #fff;
    color: var(--location-blue);
    cursor: pointer;
    font: inherit;
    font-size: 14px;
}

.location-search select:focus-visible {
    outline: 3px solid var(--location-cyan);
    outline-offset: -3px;
}

.location-button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border: 1px solid var(--location-blue);
    border-radius: 0;
    background: var(--location-blue);
    color: #fff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background .2s;
    white-space: nowrap;
}

.location-button:hover {
    background: #1a3060;
}

.location-button svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.location-list {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.location-list__label {
    margin-right: 4px;
    color: #465a7b;
    font-size: 14px;
    font-weight: 700;
}

.location-list a {
    padding: 8px 15px;
    border: 1px solid #d8e5f5;
    border-radius: 50px;
    background: #fff;
    color: #3a5080;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, background .2s, color .2s;
}

.location-list a:hover {
    border-color: var(--location-blue);
    background: #e8f0fb;
    color: var(--location-blue);
}

.location-directory {
    padding: 76px 24px 88px;
    background: #fff;
}

.location-directory__inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.location-directory__heading {
    max-width: 760px;
    margin: 0 auto 38px;
    text-align: center;
}

.location-directory__heading .location-eyebrow {
    justify-content: center;
}

.location-directory__heading h2 {
    margin: 0 0 12px;
    color: var(--location-ink);
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.2;
}

.location-directory__heading p {
    margin: 0;
    color: #52627a;
    font-size: 16px;
    line-height: 1.7;
}

.location-directory__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.location-card {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid #e2eaf4;
    border-radius: 12px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(36, 65, 124, .045);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}

.location-card:hover {
    transform: translateY(-2px);
    border-color: #b7c8e1;
    box-shadow: 0 10px 24px rgba(36, 65, 124, .1);
}

.location-card__name {
    margin: 0;
    color: var(--location-ink);
    font-size: 18px;
    font-weight: 700;
}

.location-card__description {
    margin: 6px 0 0;
    color: #52627a;
    font-size: 14px;
    line-height: 1.55;
}

.location-card__action {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
    color: var(--location-blue);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 560px) {
    .location-hero {
        min-height: calc(100vh - 80px);
        padding: 30px 18px 56px;
    }

    .location-breadcrumb {
        margin-bottom: 42px;
    }

    .location-hero__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .location-hero__image {
        max-width: 100%;
    }

    .location-hero__image img {
        max-height: 320px;
    }

    .location-hero__summary {
        font-size: 16px;
    }

    .location-search {
        align-items: stretch;
        flex-direction: column;
    }

    .location-search select {
        min-height: 52px;
        border-bottom: 1px solid #e0eaf8;
    }

    .location-search .location-button {
        width: 100%;
    }

    .location-list {
        align-items: flex-start;
        margin-top: 38px;
    }

    .location-list__label {
        width: 100%;
        margin-bottom: 2px;
    }

    .location-directory {
        padding: 56px 18px 64px;
    }

    .location-directory__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .location-card {
        min-height: auto;
        align-items: center;
        text-align: center;
    }

    .location-card__action {
        justify-content: center;
    }
}

@media (min-width: 561px) and (max-width: 800px) {
    .location-hero__grid {
        grid-template-columns: 1fr;
    }

    .location-hero__image {
        max-width: 600px;
    }
}

@media (min-width: 561px) and (max-width: 900px) {
    .location-directory__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .location-list a {
        transition: none;
    }

    .location-button {
        transition: none;
    }

    .location-card {
        transition: none;
    }
}
