@font-face {
    font-family: 'ap-listing-display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/playfair-listings-latin.woff2') format('woff2');
}

.ap-listing-grid {
    max-width: 1600px;
    margin-inline: auto;
    gap: clamp(30px, 4vw, 65px);
}

.ap-card {
    container-type: inline-size;
    padding: 20px;
    color: #26549a;
    background: #fff;
    font-variation-settings: 'wght' 400;
}

.ap-card .ap-card-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1.46;
    object-fit: cover;
}

.ap-card .ap-card-body {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 40fr);
    gap: 5%;
    padding: 14px 0 10px;
}

.ap-card-copy > * {
    margin: 0;
}

.ap-card .ap-eyebrow {
    font-family: 'ap-listing-display', Georgia, serif;
    font-size: clamp(17px, 3.5cqw, 26px) !important;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    margin-bottom: 10px;
}

.ap-card .ap-eyebrow::after {
    width: 13cqw;
    margin-left: 2cqw;
}

.ap-card h2 {
    max-width: none;
    font-family: 'ap-listing-display', Georgia, serif;
    font-size: clamp(30px, 8.2cqw, 60px);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.025em;
    margin-bottom: 14px;
}

.ap-card .ap-card-copy > p:not(.ap-eyebrow) {
    display: flex;
    align-items: center;
    gap: .2em;
    font-family: 'fraunces', Georgia, serif;
    font-size: clamp(17px, 4.2cqw, 31px);
    line-height: 1.2;
    white-space: nowrap;
}

.ap-card .ap-card-copy > p:not(.ap-eyebrow)::before {
    content: '';
    flex: 0 0 1.15em;
    height: 1.5em;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 42'%3E%3Cpath d='M16 40S2 25 2 16a14 14 0 0 1 28 0c0 9-14 24-14 24Z' fill='none' stroke='black' stroke-width='2.3'/%3E%3Ccircle cx='16' cy='16' r='4.5' fill='none' stroke='black' stroke-width='2.3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.ap-card .ap-card-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: clamp(12px, 2cqw, 18px);
}

/* Match the crop used for the supplied size/floor artwork. */
.ap-card .ap-card-highlights {
    position: relative;
    width: 100%;
    aspect-ratio: 1437 / 633;
    overflow: hidden;
    margin: 0;
}

.ap-card .ap-card-highlights img {
    position: absolute;
    width: 144.19%;
    max-width: none;
    height: auto;
    left: -22.06%;
    top: -11.22%;
}

.ap-card .wp-block-buttons {
    margin: 0;
}

.ap-card .wp-block-button,
.ap-card .wp-block-button__link {
    width: 100%;
}

.ap-card .wp-block-button__link {
    min-height: clamp(54px, 11.8cqw, 82px);
    padding: 12px 10px;
    font-size: clamp(18px, 3.6cqw, 27px);
}

@media (max-width: 1000px) {
    .ap-listing-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }
}

@container (max-width: 430px) {
    .ap-card .ap-card-body {
        display: block;
        padding-top: 18px;
    }

    .ap-card .ap-card-copy {
        text-align: center;
    }

    .ap-card h2 {
        font-size: clamp(32px, 10cqw, 43px);
    }

    .ap-card .ap-card-copy > p:not(.ap-eyebrow) {
        justify-content: center;
        font-size: clamp(18px, 5cqw, 22px);
    }

    .ap-card .ap-card-actions {
        align-items: center;
        gap: 16px;
        margin-top: 20px;
    }

    .ap-card .ap-card-highlights {
        max-width: 240px;
    }

    .ap-card .wp-block-buttons {
        width: 100%;
    }
}
