/* Public property presentation. The page shell and homepage hero remain in site.css. */
.property-card {
    min-width: 0;
    isolation: isolate;
}

.property-card .property-image {
    min-height: 210px;
}

.property-card .property-body {
    min-width: 0;
}

.property-card .property-location {
    overflow-wrap: anywhere;
}

.property-card .property-identifiers,
.property-page .property-identifiers {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    color: var(--copper);
    font-size: 10px;
    letter-spacing: .08em;
    line-height: 1.45;
    margin: 0 0 11px;
    text-transform: uppercase;
}

.property-card .property-identifiers span,
.property-page .property-identifiers span {
    white-space: nowrap;
}

.property-card .property-body h3 {
    overflow-wrap: anywhere;
}

.property-card .property-facts {
    min-height: 42px;
    align-items: flex-start;
}

.property-card .property-bottom .icon-link {
    width: 34px;
    height: 34px;
    font-size: 19px;
}

.property-page {
    padding-top: 28px;
    padding-bottom: 86px;
    font-size: 16px;
}

.property-page .breadcrumbs {
    align-items: baseline;
    gap: 9px;
    margin: 0 0 30px;
    padding-top: 0;
}

.property-page .property-header {
    display: block;
    padding-bottom: 27px;
}

.property-page .property-header .eyebrow {
    margin-bottom: 13px;
}

.property-page .property-header h1 {
    max-width: 900px;
    margin-bottom: 14px;
}

.property-page .property-header .property-identifiers {
    margin-bottom: 14px;
}

.property-page .detail-price {
    display: block;
    color: var(--ink);
    font: 400 clamp(25px, 3vw, 34px)/1.1 var(--serif);
}

.property-page .property-gallery {
    display: grid;
    grid-auto-rows: minmax(150px, 190px);
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: 8px;
    background: transparent;
}

.property-page .gallery-photo {
    min-width: 0;
    min-height: 0;
    max-height: none;
    padding: 0;
    border: 0;
    overflow: hidden;
    background: var(--sand);
}

.property-page .gallery-photo:first-child {
    grid-row: span 2;
    max-height: none;
}

.property-page .gallery-photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform .35s ease;
}

.property-page .gallery-photo:hover img {
    transform: scale(1.02);
}

.property-page .gallery-photo:only-child {
    grid-column: 1 / -1;
    grid-row: auto;
}

.property-page .gallery-photo:only-child img {
    max-height: 560px;
}

.property-page .gallery-all {
    margin-top: 13px;
    font-size: 12px;
}

.property-page .detail-layout {
    align-items: start;
    gap: clamp(35px, 6vw, 78px);
    margin: 52px 0 0;
}

.property-page .detail-layout article > p {
    max-width: 780px;
    font-size: 16px;
    line-height: 1.85;
}

.property-page .detail-layout article > h2,
.property-page .unit-layouts h2 {
    margin-top: 41px;
    margin-bottom: 18px;
}

.property-page .detail-layout article > h2:first-of-type {
    margin-top: 0;
}

.property-page .detail-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 35px;
    padding: 22px 0;
}

.property-page .detail-facts dt {
    font-size: 11px;
    line-height: 1.45;
}

.property-page .detail-facts dd {
    margin-top: 6px;
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.property-page .feature-list {
    gap: 9px;
    margin-bottom: 35px;
}

.property-page .detail-enquiry {
    width: 100%;
    max-width: 350px;
    padding: 28px;
    border: 1px solid #ddd7ce;
    background: #ebe7df;
}

.property-page .detail-enquiry h2 {
    margin-bottom: 14px;
    font-size: 32px;
}

.property-page .detail-enquiry p {
    font-size: 14px;
    line-height: 1.7;
}

.property-page .detail-enquiry .button {
    width: 100%;
    min-height: 52px;
    margin: 5px 0 18px;
    font-size: 12px;
}

.property-page .detail-enquiry > .text-link {
    display: inline-flex;
    font-size: 11px;
}

.property-page .detail-enquiry .small-text {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.property-page .unit-layouts {
    margin-top: 48px;
    padding-top: 7px;
    border-top: 1px solid var(--line);
}

.property-page .unit-layouts h2 {
    margin-top: 28px;
    font-size: 31px;
}

.property-page .unit-note {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.7;
}

.property-page .unit-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.property-page .unit-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.property-page .unit-table th,
.property-page .unit-table td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--line);
}

.property-page .unit-table thead th {
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.property-page .unit-table tbody tr:last-child th,
.property-page .unit-table tbody tr:last-child td {
    border-bottom: 0;
}

.property-page .unit-table tbody th {
    font-weight: 600;
}

.property-page .unit-status {
    display: inline-block;
    padding: 4px 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
}

.property-page .unit-status-available {
    border-color: #9bad98;
    color: var(--forest);
}

.property-page .unit-status-reserved {
    border-color: #c6a97f;
    color: #765431;
}

.property-page .unit-status-sold {
    border-color: #c7c6c0;
    color: #6c6a64;
}

.property-page .unit-status-unknown {
    color: var(--muted);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#photo-viewer.property-photo-viewer[open] {
    display: grid;
}

#photo-viewer.property-photo-viewer {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    width: min(1120px, calc(100% - 36px));
    max-width: 1120px;
    height: calc(100vh - 24px);
    max-height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
    min-height: 0;
    padding: 16px;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    background: #111820;
}

#photo-viewer.property-photo-viewer::backdrop {
    background: rgb(0 0 0 / 76%);
}

#photo-viewer.property-photo-viewer > [aria-label="Close photo"] {
    display: block;
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #66727c;
    background: transparent;
    color: #fff;
    font-size: 12px;
}

#photo-viewer.property-photo-viewer img {
    grid-column: 1 / -1;
    grid-row: 2;
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-height: none;
    margin: 0 auto;
    object-fit: contain;
}

.property-photo-viewer .viewer-controls {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 0;
    color: #fff;
    font-size: 13px;
}

.property-photo-viewer .viewer-controls button {
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid #66727c;
    background: transparent;
    color: #fff;
    font-size: 12px;
}

@media (max-width: 800px) {
    .property-page .detail-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .property-page .detail-enquiry {
        position: static;
        max-width: none;
    }
}

@media (max-width: 700px) {
    .property-card .property-image {
        min-height: 0;
    }

    .property-page {
        padding-top: 23px;
        padding-bottom: 55px;
    }

    .property-page .property-header h1 {
        font-size: 39px;
    }

    .property-page .property-gallery {
        grid-auto-rows: minmax(120px, 145px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-page .gallery-photo:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .property-page .gallery-photo:first-child img {
        min-height: 245px;
    }

    .property-page .detail-layout {
        margin-top: 35px;
    }

    .property-page .detail-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .property-page .detail-layout article > p {
        font-size: 16px;
    }

    .property-page .unit-layouts {
        margin-top: 38px;
    }

    .property-page .unit-table {
        min-width: 760px;
    }

    #photo-viewer.property-photo-viewer {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        padding: max(10px, env(safe-area-inset-top)) 0 max(10px, env(safe-area-inset-bottom));
        gap: 8px;
    }

    #photo-viewer.property-photo-viewer > [aria-label="Close photo"] {
        margin-right: max(10px, env(safe-area-inset-right));
    }

    .property-photo-viewer .viewer-controls {
        margin-left: max(10px, env(safe-area-inset-left));
        gap: 9px;
        font-size: 12px;
    }

    .property-photo-viewer .viewer-controls button {
        padding: 8px 10px;
    }
}
