body:has(.property-page) { background: #faf9f5; }
.property-page { width: min(1440px, calc(100% - 72px)); padding-block: 1.5rem 4rem; }
.property-return { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.property-return .button { margin-left: auto; }
.property-title { margin-block: 1.65rem 2rem; }
.property-title h1 { font-size: clamp(2.65rem, 5.7vw, 5.25rem); overflow-wrap: anywhere; }
.property-location { color: var(--muted); font-size: 1.1rem; margin: .75rem 0 0; }
.property-gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: .65rem; height: clamp(260px, 37vw, 550px); margin-bottom: 2.5rem; }
.property-gallery[data-photo-count="1"] { grid-template-columns: 1fr; }
.property-gallery:is([data-photo-count="2"], [data-photo-count="3"]) { grid-template-columns: 1.5fr 1fr; }
.property-gallery[data-photo-count="2"] .property-photo-button:nth-child(2) { grid-row: span 2; }
.property-photo-button { min-height: 0; padding: 0; border: 0; overflow: hidden; background: var(--line); }
.property-photo-button:first-child { grid-row: span 2; }
.property-photo-button img { width: 100%; height: 100%; }
.property-gallery[data-photo-count="1"] img { object-position: center 55%; }
.property-gallery-open { position: absolute; bottom: 1rem; right: 1rem; background: var(--ivory); color: var(--navy); }
.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 340px); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.property-section { padding: 0 0 1.65rem; margin: 0 0 1.65rem; border-bottom: 1px solid var(--line); }
.property-section h2, .property-summary h2 { font-size: clamp(1.55rem, 2.6vw, 2.25rem); }
.property-summary { position: sticky; top: 1.5rem; background: white; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); }
.property-price { margin: 0 0 1rem; font: clamp(2.35rem, 4.4vw, 3.7rem)/1.1 var(--serif); }
.property-summary p:not(.eyebrow, .property-price) { color: var(--muted); }
.property-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; margin: 1rem 0 0; }
.property-facts dt { color: var(--muted); font-size: .875rem; }
.property-facts dd { margin: 0; font-size: 1.1rem; font-weight: 650; }
.property-remarks p { max-width: 70ch; white-space: pre-line; }
.property-attribution ul { margin: .5rem 0 0; padding-inline-start: 1.25rem; color: var(--muted); }
.property-photo-dialog { width: min(1000px, calc(100% - 24px)); }
.property-photo-dialog > img { width: 100%; height: min(70vh, 680px); object-fit: contain; background: #142331; }
.property-photo-controls, .property-photo-index { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .75rem; padding: .75rem; }
.property-photo-index a { padding: .15rem .45rem; }
.property-photo-index a[aria-current="true"] { color: #fff; background: var(--navy); }
@media (max-width: 780px) {
  .property-page { width: calc(100% - 36px); }
  .property-layout { grid-template-columns: 1fr; }
  .property-summary { position: static; grid-row: 1; }
  .property-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .property-gallery { height: auto; display: block; }
  .property-photo-button:first-child { display: block; width: 100%; aspect-ratio: 1.4; }
  .property-photo-button:not(:first-child) { display: none; }
}
:root { --muted:#53676d; --line:#d7dfdc; --navy:#284650; --ivory:#fff; --serif:Georgia,serif; }
* { box-sizing:border-box; }
[hidden] { display:none!important; }
body { margin:0; color:#294248; font:1rem/1.6 system-ui,sans-serif; }
.property-page { margin-inline:auto; }
a { color:inherit; text-underline-offset:.2em; }
button { cursor:pointer; font:inherit; }
.button { display:inline-flex; align-items:center; padding:.65rem 1.1rem; border:1px solid var(--line); background:var(--navy); color:#fff; text-decoration:none; }
.property-gallery .property-gallery-open { background:#fff; color:var(--navy); }
h1,h2 { font:400 2rem/1.1 var(--serif); margin:0; }
.eyebrow { text-transform:uppercase; font-size:.875rem; letter-spacing:.08em; }
.property-photo-dialog { padding:0; border:1px solid var(--line); }
.property-photo-dialog::backdrop { background:#112024dc; }
.dialog-close { position:absolute; top:.5rem; right:.5rem; min-width:2.75rem; min-height:2.75rem; background:#fff; border:0; }
