.city-district-guide {
    margin-block: clamp(12px, 2vw, 30px) clamp(36px, 6vw, 80px);
    scroll-margin-top: 12px;
}

.city-district-guide-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
}

.city-district-guide-area[hidden] {
    display: none;
}

.city-district-guide-card > .city-window-photo {
    min-height: 340px;
}

.city-district-guide-card > .city-window-photo > img {
    position: absolute;
    inset: 0;
    height: 100%;
}

.city-district-guide-card > .city-window-photo > figcaption {
    inset: auto 0 0;
    padding: 28px 20px 14px;
    background: linear-gradient(transparent, rgb(0 0 0 / 78%));
    color: #fff;
    font-size: 12px;
}

.city-district-guide-copy {
    align-self: center;
    padding: clamp(22px, 3.2vw, 48px);
    min-width: 0;
}

.city-district-guide-copy .eyebrow {
    margin: 0 0 10px;
}

.city-district-guide-copy h2 {
    margin: 0 0 20px;
    font: 500 clamp(29px, 3vw, 48px)/1.12 var(--serif);
    overflow-wrap: anywhere;
}

.city-district-guide .city-district-facts > div {
    padding: 12px 0 12px 50px;
    min-height: 60px;
}

.city-district-guide .city-district-facts > div:last-child {
    padding-bottom: 0;
}

.city-district-guide .city-district-facts dt {
    font-size: 13px;
    color: var(--ink);
}

.city-district-guide .city-district-facts > div dt > i {
    top: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--paper);
    color: var(--wine);
    font-size: 20px;
}

.city-district-guide .city-district-facts dd,
.city-district-guide .city-window-story p {
    font-size: 15px;
    line-height: 1.62;
}

.city-district-offers {
    margin-top: clamp(34px, 4.3vw, 64px);
}

.city-district-offers-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
}

.city-district-offers-header h3 {
    margin: 0;
    font: 500 clamp(25px, 2.6vw, 38px)/1.18 var(--serif);
}

.city-district-offers-header .button {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 999px;
    /* Leave room for the fixed contact controls when the page gutter is narrow. */
    margin-inline-end: max(0px, calc(84px - (100vw - 100%) / 2));
}

.city-district-offers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 26px);
}

.city-district-offer {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    background: var(--white);
    text-decoration: none;
}

.city-district-offer:hover {
    border-color: var(--wine);
}

.city-district-offer:focus-visible {
    outline: 2px solid var(--wine);
    outline-offset: 3px;
}

.city-district-offer-media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--soft);
}

.city-district-offer-media img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.city-district-offer-placeholder {
    display: grid;
    place-content: center;
    gap: 8px;
    height: 100%;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.city-district-offer-placeholder i {
    font-size: 25px;
}

.city-district-offer-status {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--white);
    color: var(--ink);
    font-size: 11px;
    font-weight: 650;
}

.city-district-offer-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    padding: clamp(14px, 1.6vw, 22px);
}

.city-district-offer-copy h4 {
    margin: 0;
    font: 650 clamp(16px, 1.5vw, 21px)/1.35 var(--ui);
    overflow-wrap: anywhere;
}

.city-district-offer-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.city-district-offer-price {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
    padding-top: 10px;
}

.city-district-offer-price i {
    flex: none;
    color: var(--wine);
    font-size: 18px;
}

@media (max-width: 850px) {
    .city-district-guide-card {
        grid-template-columns: minmax(0, 1fr);
        border-radius: 16px;
    }

    .city-district-guide-card > .city-window-photo {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .city-district-guide-copy {
        padding: clamp(17px, 5vw, 28px);
    }

    .city-district-offers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1199px) {
    .city-district-guide-copy {
        padding-inline-end: 48px;
    }
}

@media (max-width: 540px) {
    .city-district-offers-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .city-district-offer-copy {
        padding-inline-end: 48px;
    }
}
