.property-page {
    background: #eef3f6;
}

.property-page .property-detail {
    padding: 34px 0 74px;
    background:
        linear-gradient(180deg, #f8fafb 0, #eef3f6 480px);
}

.property-gallery {
    overflow: hidden;
    background: #dce6eb;
    border: 1px solid rgba(17, 47, 69, .1);
    border-radius: 6px;
    box-shadow: 0 18px 48px rgba(17, 47, 69, .1);
    outline: none;
}

.gallery-main {
    overflow: hidden;
}

.gallery-main img {
    height: clamp(420px, 62vh, 680px);
    transition: opacity 120ms ease;
}

.gallery-prev,
.gallery-next {
    top: calc((100% - 94px) / 2);
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .75);
    border-radius: 50%;
    background: rgba(12, 38, 55, .88);
    color: #fff;
    box-shadow: 0 7px 22px rgba(8, 28, 41, .32);
}

.gallery-prev {
    left: 14px;
}

.gallery-next {
    right: 14px;
}

.gallery-prev svg,
.gallery-next svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.gallery-prev:hover,
.gallery-next:hover,
.gallery-prev:focus-visible,
.gallery-next:focus-visible {
    border-color: #fff;
    background: var(--accent);
    color: #fff;
    transform: scale(1.05);
}

.gallery-thumbs {
    margin: 0;
    padding: 10px;
    background: #fff;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    touch-action: pan-x;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.gallery-thumbs button {
    overflow: hidden;
    scroll-snap-align: center;
    border-radius: 4px;
    opacity: .68;
    transition: opacity 120ms ease, border-color 120ms ease;
}

.gallery-thumbs button:hover,
.gallery-thumbs button.active {
    opacity: 1;
}

.gallery-count {
    bottom: 88px;
    border-radius: 4px;
    font-weight: 750;
}

.property-layout {
    align-items: start;
    margin-top: 26px;
}

.property-layout > article,
.property-layout > aside {
    min-width: 0;
    border-radius: 7px;
    box-shadow: 0 10px 30px rgba(17, 47, 69, .06);
}

.property-layout > article {
    padding: clamp(24px, 4vw, 42px);
}

.property-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 28px;
}

.property-heading h1 {
    max-width: 680px;
    margin: 5px 0 7px;
    font-size: calc(clamp(32px, 4vw, 48px) * var(--rs-heading-scale, 1));
}

.property-heading .eyebrow {
    margin: 0;
}

.property-heading-actions {
    flex: 0 0 auto;
    display: grid;
    justify-items: end;
    gap: 10px;
}

.property-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.property-action-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(17, 45, 67, .2);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 2px 8px rgba(17, 45, 67, .12);
}

.property-action-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.property-action-icon:hover,
.property-action-icon:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.property-action-icon[aria-pressed="true"] {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.property-favorite[aria-pressed="true"] .icon-heart {
    fill: currentColor;
}

.property-heading-actions .property-price {
    margin: 0;
    color: var(--ink);
    font-size: calc(clamp(28px, 3vw, 39px) * var(--rs-heading-scale, 1));
    line-height: 1;
    white-space: nowrap;
}

.property-location {
    margin: 0;
    font-size: calc(17px * var(--rs-text-scale, 1));
}

.property-seo-summary {
    position: relative;
    z-index: 2;
    grid-column: 1 / -1;
    clear: both;
    width: 100%;
    margin-top: 24px;
    padding: clamp(22px, 3vw, 34px);
    border: 1px solid var(--line);
    border-left: 4px solid var(--property-accent);
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(17, 47, 69, .06);
}
.property-seo-summary .eyebrow {
    margin: 0 0 5px;
}
.property-seo-summary h2 {
    margin: 0 0 10px;
    color: var(--property-primary);
    font-size: calc(clamp(22px, 2.4vw, 30px) * var(--rs-heading-scale, 1));
    overflow-wrap: anywhere;
}
.property-seo-summary p {
    max-width: 900px;
    margin: 0;
    color: var(--ink);
    line-height: 1.65;
}
.property-seo-summary .property-mls-number {
    margin: -3px 0 10px;
    color: #526c7e;
    font-size: calc(14px * var(--rs-text-scale, 1));
    font-weight: 700;
    letter-spacing: .02em;
}
.property-seo-summary strong {
    display: block;
    margin-top: 12px;
    color: var(--accent-ink);
    font-size: calc(21px * var(--rs-text-scale, 1));
}

.property-inquiry {
    align-self: start;
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 10px 28px rgba(17, 47, 69, .08);
}

.property-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 30px 0 6px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f8fafb;
}

.property-facts span {
    display: grid;
    gap: 2px;
    min-width: 0;
    padding: 15px 17px;
    color: var(--muted);
    font-size: calc(12px * var(--rs-text-scale, 1));
    text-transform: uppercase;
}

.property-facts span + span {
    border-left: 1px solid var(--line);
}

.property-facts b {
    overflow: hidden;
    color: var(--ink);
    font-size: calc(17px * var(--rs-text-scale, 1));
    text-overflow: ellipsis;
    text-transform: none;
}

.property-section {
    padding: 30px 0;
}

.property-section h2 {
    font-size: calc(24px * var(--rs-heading-scale, 1));
}

.property-description p {
    max-width: 72ch;
    color: #354f60;
    font-size: calc(17px * var(--rs-text-scale, 1));
    line-height: 1.75;
}

.property-section dl {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--line);
}

.property-section dl div {
    padding: 15px 17px;
}

.property-inquiry h2 {
    margin-bottom: 18px;
    font-size: calc(24px * var(--rs-heading-scale, 1));
}

.property-inquiry::before {
    display: block;
    width: 44px;
    height: 4px;
    margin-bottom: 18px;
    border-radius: 4px;
    background: var(--accent);
    content: "";
}

.property-inquiry .lead-form,
.property-inquiry .lead-form label,
.property-inquiry .lead-form input,
.property-inquiry .lead-form textarea,
.property-inquiry .lead-form button {
    min-width: 0;
    max-width: 100%;
}

.property-inquiry .lead-form textarea {
    resize: vertical;
}

.property-inquiry .lead-form .check {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
}

.property-inquiry .lead-form .check input {
    width: 16px;
    height: 16px;
    margin: 4px 0 0;
}

.listing-attribution {
    color: var(--muted);
    font-size: calc(13px * var(--rs-text-scale, 1));
    line-height: 1.45;
}

.listing-attribution p {
    margin: 0;
}

.listing-attribution small {
    display: block;
    margin-top: 5px;
}

.property-page .idx-disclaimer {
    border-radius: 6px;
    background: rgba(255, 255, 255, .78);
}

.property-page .similar-listings {
    border-top: 1px solid var(--line);
    background: #fff;
}

.property-page .similar-listings h2 {
    font-size: calc(clamp(30px, 4vw, 42px) * var(--rs-heading-scale, 1));
}

.property-page .similar-listings .listing-card {
    overflow: hidden;
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(17, 47, 69, .07);
}

body.map-overlay-document .property-detail {
    padding: 18px 0 36px;
}

body.map-overlay-document .property-detail > .wrap {
    width: min(1080px, calc(100% - 28px));
}

body.map-overlay-document .gallery-main img {
    height: clamp(310px, 48vh, 500px);
}

body.map-overlay-document .property-gallery {
    margin-bottom: 16px;
    box-shadow: 0 10px 28px rgba(17, 47, 69, .09);
}

body.map-overlay-document .property-layout {
    gap: 18px;
    margin-top: 16px;
}

body.map-overlay-document .property-layout > article,
body.map-overlay-document .property-layout > aside {
    padding: 22px;
}

body.map-overlay-document .property-heading {
    gap: 18px;
}

body.map-overlay-document .property-heading h1 {
    max-width: 560px;
    font-size: calc(clamp(25px, 3vw, 34px) * var(--rs-heading-scale, 1));
    line-height: 1.1;
}

body.map-overlay-document .property-heading-actions .property-price {
    font-size: calc(clamp(24px, 2.5vw, 31px) * var(--rs-heading-scale, 1));
}

body.map-overlay-document .property-location {
    font-size: calc(15px * var(--rs-text-scale, 1));
}

body.map-overlay-document .property-facts {
    margin-top: 20px;
}

body.map-overlay-document .property-facts span {
    padding: 12px 14px;
}

body.map-overlay-document .property-section {
    padding: 22px 0;
}

body.map-overlay-document .property-section h2,
body.map-overlay-document .property-inquiry h2 {
    font-size: calc(20px * var(--rs-heading-scale, 1));
}

body.map-overlay-document .property-description p {
    font-size: calc(15px * var(--rs-text-scale, 1));
    line-height: 1.65;
}

@media (min-width: 901px) {
    .property-inquiry {
        position: sticky;
        top: 96px;
    }
}

@media (max-width: 900px) {
    .property-heading {
        display: grid;
    }

    .property-heading-actions {
        justify-items: start;
    }

    .property-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-facts span:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .property-facts span:nth-child(4) {
        border-top: 1px solid var(--line);
    }
}

@media (max-width: 560px) {
    .property-detail {
        padding-top: 28px;
    }

    .property-detail .wrap {
        width: min(100% - 24px, 1160px);
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
        font-size: calc(28px * var(--rs-text-scale, 1));
    }

    .gallery-count {
        bottom: 76px;
    }

    .gallery-main img {
        height: 330px;
    }

    .property-layout > article,
    .property-layout > aside {
        padding: 20px;
    }

    .property-heading h1 {
        font-size: calc(32px * var(--rs-heading-scale, 1));
    }

    .property-facts span {
        padding: 13px;
    }
}
