.locations-page {
    width: min(100%, 1100px);
    min-width: 0;
    margin-inline: auto;
}

body[data-client-authenticated="true"] .locations-page {
    width: min(1100px, calc(100% - 400px));
    margin-right: 400px;
}

.locations-heading {
    margin-bottom: clamp(24px, 4vw, 38px);
}

.locations-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #a47c39;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.locations-heading h1,
.locations-list-heading h2 {
    color: #302a24;
    line-height: 1.12;
}

.locations-heading h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 52px);
}

.locations-heading p {
    max-width: 620px;
    margin: 0;
    color: #746d65;
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.55;
}

.locations-map-card {
    overflow: hidden;
    border: 1px solid rgba(164, 124, 57, .16);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(70, 54, 31, .1);
}

.locations-map-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 20px clamp(18px, 3vw, 30px);
}

.locations-map-toolbar > div {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.locations-map-label {
    color: #8c8175;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.locations-map-toolbar strong {
    color: #332d27;
    font-size: clamp(16px, 2vw, 20px);
}

.locations-route-link,
.location-card-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #805f29;
    font-weight: 800;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.locations-route-link {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 12px;
    background: #f4ecdf;
}

.locations-route-link:hover {
    color: #5f431d;
    background: #eadbc3;
    transform: translateY(-1px);
}

.locations-map-frame {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 430px;
    aspect-ratio: 16 / 8;
    background: #ece8e1;
}

.locations-map-fallback {
    display: grid;
    width: 100%;
    min-height: inherit;
    place-items: center;
    align-content: center;
    gap: 8px;
    color: #746d65;
    text-align: center;
}

.locations-map-fallback span {
    color: #a47c39;
    font-size: 42px;
}

.locations-map-fallback p {
    margin: 0;
}

.locations-map-frame.is-ready .locations-map-fallback {
    display: none;
}

.locations-map-frame > ymaps,
.locations-map-frame .ymaps-2-1-79-map {
    width: 100%;
    height: 100%;
    min-height: inherit;
}

.locations-list-section {
    margin-top: clamp(42px, 7vw, 70px);
}

.locations-list-heading {
    margin-bottom: 22px;
}

.locations-list-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 38px);
}

.locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 430px), 1fr));
    gap: 24px;
}

.location-card {
    display: grid;
    grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(164, 124, 57, .15);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(70, 54, 31, .08);
    scroll-margin-top: 28px;
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.location-card:focus {
    outline: none;
}

.location-card.is-map-target {
    border-color: #b98d48;
    box-shadow: 0 18px 48px rgba(125, 88, 33, .2), 0 0 0 4px rgba(201, 169, 110, .22);
    transform: translateY(-3px);
}

.location-card-image {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 300px;
    overflow: hidden;
    background: #ded7ce;
}

.location-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.location-card:hover .location-card-image img {
    transform: scale(1.025);
}

.location-card-city {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #453a30;
    font-size: 13px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.location-card-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: clamp(22px, 4vw, 34px);
}

.location-card-content h3 {
    margin: 0 0 18px;
    color: #302a24;
    font-size: clamp(24px, 3vw, 31px);
}

.location-card-address {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    color: #54493f;
    font-style: normal;
    font-weight: 800;
    line-height: 1.45;
}

.location-card-address svg {
    flex: 0 0 21px;
    width: 21px;
    height: 21px;
    fill: none;
    stroke: #a47c39;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.location-card-content p {
    margin: 0 0 24px;
    color: #756d64;
    line-height: 1.65;
}

.location-card-link {
    margin-top: auto;
}

.location-card-link:hover {
    color: #5f431d;
}

.locations-empty {
    padding: clamp(34px, 6vw, 58px) 24px;
    border: 1px dashed rgba(164, 124, 57, .32);
    border-radius: 20px;
    background: rgba(255, 255, 255, .7);
    color: #756d64;
    text-align: center;
}

.locations-empty > span {
    color: #a47c39;
    font-size: 44px;
}

.locations-empty h3 {
    margin: 9px 0 7px;
    color: #3f372f;
    font-size: 22px;
}

.locations-empty p {
    margin: 0;
}

@media (max-width: 1100px) {
    body[data-client-authenticated="true"] .locations-page {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 680px) {
    .locations-map-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .locations-route-link {
        width: 100%;
    }

    .locations-map-frame {
        min-height: 360px;
        aspect-ratio: auto;
    }

    .location-card {
        grid-template-columns: 1fr;
    }

    .location-card-image {
        min-height: 250px;
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 420px) {
    .locations-map-card,
    .location-card {
        border-radius: 17px;
    }

    .locations-map-frame {
        min-height: 315px;
    }
}
