:root {
  --forest: #17251d;
  --forest-soft: #253b2e;
  --ivory: #f4f0e7;
  --sand: #d8c8ae;
  --gold: #b9975b;
  --ink: #17251d;
  --paper: #fbfaf6;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

.skip-link { background: var(--ivory); color: var(--ink); left: 1rem; padding: .75rem 1rem; position: fixed; top: -5rem; z-index: 30; }
.skip-link:focus { top: 1rem; }

.site-header { align-items: center; background: rgba(23, 37, 29, .96); color: var(--ivory); display: flex; justify-content: space-between; min-height: 72px; padding: 1rem clamp(1.25rem, 5vw, 5rem); position: sticky; top: 0; z-index: 20; }
.brand { font-family: var(--serif); font-size: 1.1rem; text-decoration: none; }
.brand span, .eyebrow { color: var(--gold); font-size: .7rem; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
#main-nav { display: none; gap: 1.25rem; }
#main-nav.is-open { background: var(--forest); display: grid; left: 0; padding: 1.5rem clamp(1.25rem, 5vw, 5rem) 2rem; position: absolute; right: 0; top: 72px; }
#main-nav a { text-decoration: none; }
.menu-toggle { background: transparent; border: 1px solid rgba(244, 240, 231, .5); color: var(--ivory); font-size: .8rem; letter-spacing: .08em; padding: .5rem .75rem; text-transform: uppercase; }

.hero { align-items: end; background: var(--forest); color: var(--ivory); display: grid; min-height: 76svh; overflow: hidden; position: relative; }
.hero::after { background: linear-gradient(180deg, rgba(15, 28, 20, .12), rgba(15, 28, 20, .28) 42%, rgba(15, 28, 20, .9)); content: ''; inset: 0; position: absolute; }
.hero-image { height: 76svh; inset: 0; object-fit: cover; position: absolute; width: 100%; }
.hero-content { max-width: 800px; padding: clamp(2rem, 7vw, 7rem); position: relative; z-index: 1; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.04em; line-height: 1.04; }
h1 { font-size: clamp(3.15rem, 9vw, 7.25rem); margin: .5rem 0 1.3rem; }
h2 { font-size: clamp(2.25rem, 5vw, 4.6rem); margin: .35rem 0 1.5rem; }
.hero-summary { font-size: 1rem; margin: 0 0 1.75rem; }
.hero-location { border-left: 2px solid var(--gold); font-size: .78rem; letter-spacing: .045em; margin: -1rem 0 1.75rem; padding-left: .7rem; }

.gallery-showcase { background: var(--ivory); display: grid; gap: 2rem; padding: clamp(3rem, 8vw, 7rem) clamp(1.25rem, 5vw, 5rem); }
.gallery-showcase-heading { align-self: center; max-width: 530px; }
.gallery-showcase-heading h2 { font-size: clamp(2.3rem, 4.5vw, 4.35rem); }
.button-gallery { background: var(--forest); border: 0; color: var(--ivory); cursor: pointer; }
.gallery-preview { display: grid; gap: .5rem; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, minmax(110px, 1fr)); min-height: 430px; }
.gallery-preview-image { border: 0; cursor: pointer; overflow: hidden; padding: 0; position: relative; }
.gallery-preview-image img { height: 100%; object-fit: cover; transition: transform .45s ease; width: 100%; }
.gallery-preview-image:hover img { transform: scale(1.04); }
.preview-1 { grid-row: span 2; }
.preview-4 { grid-column: span 2; }
.gallery-count { align-items: center; background: rgba(23, 37, 29, .83); color: var(--ivory); display: flex; font-size: .72rem; font-weight: 600; inset: 0; justify-content: center; letter-spacing: .12em; position: absolute; text-transform: uppercase; }

.button { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; padding: 1rem 1.25rem; text-decoration: none; text-transform: uppercase; transition: transform .2s ease, background-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ivory); color: var(--forest); }

.section { margin: 0 auto; max-width: 1240px; padding: clamp(4.5rem, 10vw, 9rem) clamp(1.25rem, 5vw, 5rem); }
.residence { display: grid; gap: 2rem; }
.residence-copy { font-size: 1.06rem; max-width: 590px; }
.residence-copy p:first-child { margin-top: 0; }
.text-button, .text-link { background: transparent; border: 0; color: var(--forest); cursor: pointer; font-weight: 600; padding: 0; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: .35rem; }

.facts { background: var(--forest); color: var(--ivory); display: grid; grid-template-columns: repeat(2, 1fr); padding: 2rem clamp(1.25rem, 5vw, 5rem); }
.facts div { border-top: 1px solid rgba(244, 240, 231, .28); padding: 1rem 0; }
.facts span { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.facts strong { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }

.condominium { background: var(--ivory); max-width: none; padding-left: clamp(1.25rem, 12vw, 13rem); padding-right: clamp(1.25rem, 12vw, 13rem); }
.condominium > p { font-size: 1.08rem; max-width: 720px; }

.offers { background: var(--forest-soft); color: var(--ivory); max-width: none; }
.offers > * { margin-left: auto; margin-right: auto; max-width: 1240px; }
.offer-grid { display: grid; gap: 1rem; }
.offer-grid article { border: 1px solid rgba(244, 240, 231, .35); display: grid; gap: .9rem; padding: 1.7rem; }
.offer-grid span { color: var(--sand); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.offer-grid strong { font-family: var(--serif); font-size: 2.25rem; font-weight: 500; line-height: 1.1; }
.offer-grid a { color: var(--ivory); font-weight: 600; text-underline-offset: .3rem; }
.cost-note { color: rgba(244, 240, 231, .7); font-size: .86rem; }

.broker { text-align: center; }
.broker > p:not(.eyebrow) { margin-left: auto; margin-right: auto; max-width: 650px; }
.phone-link { display: block; font-family: var(--serif); font-size: 1.65rem; margin-top: 1.25rem; text-decoration: none; }
.site-footer { background: var(--forest); color: var(--ivory); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding: 1.5rem clamp(1.25rem, 5vw, 5rem); }
.site-footer a { color: var(--sand); }

dialog { background: var(--paper); border: 0; box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, .35); max-width: min(1180px, 96vw); padding: clamp(1rem, 3vw, 2rem); width: 100%; }
dialog::backdrop { background: rgba(10, 18, 13, .78); }
.dialog-close { background: transparent; border: 0; cursor: pointer; float: right; font-size: 2rem; line-height: 1; }
.gallery-dialog-header { max-width: 600px; }
.gallery-viewer { background: var(--forest); clear: both; margin-top: 1.5rem; position: relative; }
.gallery-stage { aspect-ratio: 16 / 10; height: auto; object-fit: contain; width: 100%; }
.gallery-arrow { background: rgba(244, 240, 231, .92); border: 0; color: var(--forest); cursor: pointer; font-size: 1.5rem; height: 2.75rem; position: absolute; top: calc(50% - 1.375rem); width: 2.75rem; }
.gallery-prev { left: .75rem; }
.gallery-next { right: .75rem; }
.gallery-position { background: rgba(23, 37, 29, .78); bottom: .75rem; color: var(--ivory); font-size: .72rem; font-weight: 600; letter-spacing: .12em; margin: 0; padding: .45rem .65rem; position: absolute; right: .75rem; }
.gallery-tag { background: rgba(23, 37, 29, .85); bottom: .75rem; color: var(--ivory); font-size: .68rem; font-weight: 600; left: .75rem; letter-spacing: .11em; padding: .45rem .65rem; position: absolute; text-transform: uppercase; }
.gallery-caption { font-family: var(--serif); font-size: 1rem; margin: .65rem 0 0; }
.gallery-thumbnails { display: grid; gap: .45rem; grid-template-columns: repeat(5, 1fr); margin-top: .75rem; max-height: 185px; overflow-y: auto; padding-right: .25rem; }
.gallery-thumbnails button { background: transparent; border: 2px solid transparent; cursor: pointer; padding: 0; }
.gallery-thumbnails button.is-active { border-color: var(--gold); }
.gallery-thumbnails img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

.location-fab { align-items: center; background: var(--ivory); border: 1px solid rgba(185, 151, 91, .7); border-radius: 999px; bottom: 1.25rem; box-shadow: 0 .75rem 2.2rem rgba(8, 20, 12, .28); color: var(--forest); cursor: pointer; display: flex; font-size: .71rem; font-weight: 600; gap: .55rem; letter-spacing: .1em; padding: .75rem 1rem .75rem .75rem; position: fixed; right: 1.25rem; text-transform: uppercase; transition: transform .2s ease, background-color .2s ease; z-index: 25; }
.location-fab:hover { background: var(--forest); color: var(--ivory); transform: translateY(-2px); }
.location-fab-icon { align-items: center; background: var(--forest); border-radius: 50%; color: var(--ivory); display: inline-flex; font-size: 1.25rem; height: 2rem; justify-content: center; line-height: 1; width: 2rem; }
.location-fab:hover .location-fab-icon { background: var(--gold); color: var(--forest); }
#location-drawer { border: 0; height: 100dvh; inset: 0 0 0 auto; margin: 0; max-height: none; max-width: 520px; overflow: hidden; padding: 0; width: min(100%, 520px); }
#location-drawer::backdrop { background: rgba(10, 18, 13, .66); backdrop-filter: blur(4px); }
.location-drawer-content { background: var(--paper); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
.location-drawer-header { align-items: flex-start; border-bottom: 1px solid rgba(23, 37, 29, .12); display: flex; justify-content: space-between; padding: 1.55rem 1.5rem 1.25rem; }
.location-drawer-header h2 { font-size: clamp(1.9rem, 4vw, 2.65rem); margin: .3rem 0 0; }
.location-drawer-close { background: transparent; border: 0; color: var(--forest); cursor: pointer; font-size: 2rem; line-height: .8; padding: .2rem; }
.location-drawer-scroll { overflow-y: auto; padding: 1.35rem 1.5rem 1.6rem; }
.location-drawer-intro { font-family: var(--serif); font-size: 1.2rem; line-height: 1.35; margin: 0 0 1.25rem; }
.location-image-grid { display: grid; gap: .45rem; grid-template-columns: 1.22fr .78fr; margin-bottom: 1.35rem; }
.location-image { margin: 0; overflow: hidden; }
.location-image img { height: 100%; min-height: 104px; object-fit: cover; width: 100%; }
.location-image-1 { grid-row: span 2; }
.location-image-1 img { min-height: 218px; }
.static-location-map { background: var(--forest); min-height: 220px; overflow: hidden; padding: .5rem; position: relative; }
.static-location-map::after { background: radial-gradient(circle at 76% 28%, rgba(185, 151, 91, .22), transparent 32%); content: ''; inset: 0; position: absolute; }
.static-location-map svg { height: 220px; position: relative; width: 100%; z-index: 1; }
.static-location-map > span { bottom: .65rem; color: rgba(244, 240, 231, .72); font-size: .62rem; left: .85rem; letter-spacing: .08em; position: absolute; text-transform: uppercase; z-index: 2; }
.location-highlights { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.25rem 0; }
.location-highlights span { border: 1px solid rgba(23, 37, 29, .2); font-size: .68rem; font-weight: 600; letter-spacing: .08em; padding: .55rem .65rem; text-transform: uppercase; }
.location-detail { font-size: .92rem; margin-bottom: .8rem; }
.location-official-link { color: var(--forest); font-size: .82rem; font-weight: 600; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: .35rem; }
.location-drawer-cta { background: var(--paper); border-top: 1px solid rgba(23, 37, 29, .12); bottom: 0; padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom)); position: sticky; }
.button-location { background: var(--forest); color: var(--ivory); text-align: center; width: 100%; }

@media (min-width: 760px) {
  .menu-toggle { display: none; }
  #main-nav { display: flex; }
  .residence { grid-template-columns: 1.1fr .9fr; }
  .gallery-showcase { display: block; padding: 3.5rem clamp(2rem, 5vw, 5rem); }
  .gallery-showcase-heading { margin-bottom: 1.75rem; max-width: 760px; }
  .gallery-showcase-heading h2 { font-size: clamp(2rem, 2.6vw, 2.85rem); margin-bottom: .8rem; }
  .gallery-showcase-heading p:not(.eyebrow) { font-size: .94rem; margin-bottom: 1.25rem; max-width: 600px; }
  .gallery-preview { grid-template-columns: repeat(5, 1fr); grid-template-rows: 220px; min-height: 0; }
  .gallery-preview-image, .preview-1, .preview-4 { grid-column: auto; grid-row: auto; }
  dialog { max-height: 90vh; overflow: hidden; padding: 1.25rem; }
  .gallery-dialog-header { align-items: center; display: flex; gap: 1rem; justify-content: space-between; max-width: none; padding-right: 2.5rem; }
  .gallery-dialog-header .eyebrow { margin: 0; white-space: nowrap; }
  .gallery-dialog-header h2 { font-size: clamp(1.45rem, 2.1vw, 2.25rem); margin: 0; }
  .gallery-viewer { height: min(55vh, 560px); margin-top: .75rem; }
  .gallery-stage { aspect-ratio: auto; height: 100%; }
  .gallery-thumbnails { display: flex; max-height: 88px; overflow-x: auto; overflow-y: hidden; padding-bottom: .25rem; }
  .gallery-thumbnails button { flex: 0 0 110px; }
  .gallery-caption { font-size: 1.05rem; margin-top: .5rem; }
  .facts { gap: 1.5rem; grid-template-columns: repeat(5, 1fr); }
  .offer-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-thumbnails { grid-template-columns: repeat(8, 1fr); }
}

@media (max-width: 759px) {
  #location-drawer { margin: 0; max-width: none; width: calc(100% - .7rem); }
  .location-fab { bottom: 1rem; right: 1rem; }
  .location-fab > span:last-child { display: none; }
  .location-fab { border-radius: 50%; height: 3.35rem; justify-content: center; padding: .35rem; width: 3.35rem; }
  .location-fab-icon { height: 2.35rem; width: 2.35rem; }
  .location-drawer-header { padding: 1.3rem 1.2rem 1rem; }
  .location-drawer-scroll { padding: 1.1rem 1.2rem 1.35rem; }
  .location-drawer-cta { padding-left: 1.2rem; padding-right: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
