.residence-body,
.estate-footer,
.estate-lightbox {
  --estate-ink: #181818;
  --estate-muted: #575757;
  --estate-surface: #fff;
  --estate-line: #dedede;
  --estate-action: #202020;
  color: var(--estate-ink);
}
.residence-body { background: var(--estate-surface); font-size: 1rem; }
.estate-wrap { width: min(calc(100% - 104px), 1280px); margin-inline: auto; }
section.estate-section { padding-block: clamp(66px, 8vw, 124px); scroll-margin-top: 65px; }
.estate-kicker {
  margin: 0 0 17px;
  color: #565656;
  font-size: .79rem;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.estate-title { font-size: clamp(2.85rem, 6vw, 6rem); letter-spacing: -.063em; line-height: .98; }
.estate-link {
  display: inline-block;
  width: fit-content;
  padding-block: 4px;
  font-size: .9rem;
  font-weight: 630;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: #949494;
}
.estate-link:hover { text-decoration-thickness: 2px; }
.estate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 46px;
  padding: 10px 21px;
  color: #fff;
  border: 1px solid var(--estate-action);
  border-radius: 5px;
  background: var(--estate-action);
  font-size: .875rem;
  font-weight: 640;
  line-height: 1.3;
  white-space: nowrap;
}
.estate-button:hover { background: #3c3c3c; }
.estate-button-small { min-height: 38px; padding: 8px 15px; }
.estate-button-outline { color: inherit; border-color: #a2a2a2; background: transparent; }
.estate-button-outline:hover { background: #efefef; }

.residence-nav {
  position: sticky;
  z-index: 3;
  top: 0;
  color: var(--estate-action);
  background: var(--estate-surface);
  border-bottom: 1px solid var(--estate-line);
}
.residence-nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 64px;
  gap: 14px;
}
.residence-nav-name {
  width: fit-content;
  font: 400 1.25rem/1.1 var(--heading);
  letter-spacing: -.045em;
  white-space: nowrap;
}
.residence-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 42px);
  padding-block: 7px;
  font-size: .875rem;
  font-weight: 550;
  white-space: nowrap;
}
.residence-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.residence-nav .estate-button { justify-self: end; }

.estate-specification-heading { font-family: var(--body); letter-spacing: .13em; }
.estate-specifications .estate-kicker { margin-bottom: 12px; }
.estate-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.52fr);
  margin: 0;
  border-block: 1px solid var(--estate-line);
}
.estate-facts > div { display: flex; flex-direction: column-reverse; gap: 10px; padding: 22px clamp(10px, 2vw, 26px); }
.estate-facts > div:first-child { padding-left: 0; }
.estate-facts > div + div { border-left: 1px solid var(--estate-line); }
.estate-facts dt { color: var(--estate-muted); font-size: .875rem; }
.estate-facts dd {
  margin: 0;
  color: #202020;
  font: 400 clamp(2.15rem, 4.1vw, 4rem)/1 var(--heading);
  letter-spacing: -.065em;
}
.estate-facts dd span { font-size: .47em; letter-spacing: -.035em; white-space: nowrap; }
.estate-facts dd.estate-fact-text { font-size: clamp(1.62rem, 3.1vw, 2.9rem); }

.residence-gallery { border-top: 1px solid var(--estate-line); }
.estate-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .64fr);
  align-items: end;
  gap: clamp(24px, 4vw, 62px);
  margin-bottom: clamp(27px, 3.6vw, 50px);
}
.estate-section-heading > p { max-width: 34ch; margin: 0 0 4px; color: var(--estate-muted); line-height: 1.7; }
.estate-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4.2vw, 55px) clamp(14px, 2.2vw, 31px);
}
.estate-photo { min-width: 0; margin: 0; }
.estate-photo-wide { grid-column: 1 / -1; }
.estate-photo-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: clamp(10px, 1.7vw, 22px);
  background: #292929;
  color: #fff;
}
.estate-photo-button:focus-visible { outline-color: var(--estate-action); }
.estate-photo-button img { display: block; width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; object-position: center 60%; transition: transform .45s ease; }
.estate-photo-wide img { aspect-ratio: 1.8; object-position: center 58%; }
.estate-photo-button:hover img { transform: scale(1.025); }
.estate-photo-expand {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  background: #fff;
  color: #202020;
  border-radius: 50%;
  font-size: 1.45rem;
  line-height: 1;
}
.estate-photo figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 16px;
  padding-top: 15px;
}
.estate-photo h3 { font-size: clamp(1.65rem, 2.65vw, 2.5rem); }
.estate-photo figcaption > span { color: #575757; font-size: .83rem; }

.estate-price-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: clamp(34px, 8vw, 118px); align-items: center; }
.estate-detail-image { margin: 0; }
.estate-detail-image img { display: block; width: 100%; height: auto; aspect-ratio: 1.19; object-fit: cover; border-radius: clamp(10px, 1.7vw, 22px); }
.estate-detail-image figcaption { margin-top: 10px; color: var(--estate-muted); font-size: .82rem; }
.estate-price-list { margin: clamp(19px, 3.3vw, 41px) 0 25px; }
.estate-price-list > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--estate-line); }
.estate-price-list > div:first-child { border-top: 1px solid var(--estate-line); }
.estate-price-list dt { color: var(--estate-muted); }
.estate-price-list dd { margin: 0; color: var(--estate-action); font-weight: 650; text-align: right; }

.residence-showing { background: #f8f8f8; }
.estate-showing-layout { display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.12fr); align-items: start; gap: clamp(30px, 7vw, 105px); }
.estate-showing-copy { padding-block: 14px; }
.estate-showing-copy > p:not(.estate-kicker) { margin: 24px 0 21px; max-width: 33ch; color: #575757; }
.estate-showing-form { min-width: 0; padding: clamp(18px, 3.1vw, 42px); border: 1px solid var(--estate-line); border-radius: 6px; background: #fff; color: var(--estate-ink); }
.estate-showing-form h3 { margin-bottom: 26px; font-size: clamp(2rem, 3vw, 3.25rem); }
.estate-showing-form fieldset { margin-bottom: 21px; }
.estate-showing-form .slot { min-height: 42px; padding-inline: 10px; font-size: .875rem; border-color: #ccc; border-radius: 5px; }
.estate-showing-form .slot:has(input:checked) { background: var(--estate-action); border-color: var(--estate-action); }
.estate-showing-form .fields > label { font-size: .875rem; }
.estate-showing-form .fields input { border-color: #bdbdbd; border-radius: 4px; }
.estate-form-note { margin: 12px 0 0; color: var(--estate-muted); font-size: .82rem; }

.estate-footer { padding: clamp(37px, 5.4vw, 70px) 0 clamp(68px, 8vw, 98px); background: var(--estate-surface); color: var(--estate-ink); border-top: 1px solid var(--estate-line); }
.estate-footer-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; }
.estate-footer-main nav { display: flex; gap: clamp(13px, 2.1vw, 34px); flex-wrap: wrap; font-size: .875rem; }
.estate-footer-main nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.estate-footer-main > .estate-link { justify-self: end; }
.estate-footer-note { padding-top: 17px; border-top: 1px solid #dedede; color: #575757; font-size: .83rem; margin: 28px 0 0; }

.estate-lightbox {
  width: min(1160px, calc(100% - 32px));
  max-height: 94dvh;
  padding: 0;
  overflow: auto;
  border: 1px solid #535353;
  border-radius: 8px;
  background: #232323;
  color: #f9f9f9;
}
.estate-lightbox::backdrop { background: #121212e0; }
.estate-lightbox img { display: block; width: 100%; max-height: calc(94dvh - 125px); object-fit: contain; background: #141414; }
.estate-lightbox-toolbar,
.estate-lightbox-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px clamp(12px, 2vw, 24px); }
.estate-lightbox-toolbar h2 { font-size: clamp(1.35rem, 2.5vw, 2rem); }
.estate-lightbox-controls > span { color: #dedede; font-size: .875rem; }
.estate-lightbox-button { min-height: 39px; border: 1px solid #888; border-radius: 4px; padding-inline: 13px; background: transparent; color: #f7f7f7; font-size: .875rem; }
.estate-lightbox-button:hover { background: #484848; }

#open-guide { background: #222; border-color: #737373; }
#open-guide:hover,
#guide-form button:hover { background: #404040; }
.guide-head, #guide-form button { background: #222; }

@media (max-width: 900px) {
  .estate-wrap { width: calc(100% - 56px); }
  .residence-nav-inner { grid-template-columns: minmax(0, 1fr) auto; }
  .residence-nav-name { display: none; }
  .estate-price-layout { gap: 40px; }
  .estate-showing-layout { gap: 36px; }
}
@media (max-width: 680px) {
  .estate-wrap { width: calc(100% - 36px); }
  section.estate-section { padding-block: 58px; scroll-margin-top: 54px; }
  .residence-nav-inner { min-height: 53px; gap: 8px; }
  .residence-nav-links { min-width: 0; overflow-x: auto; gap: 15px; scrollbar-width: none; font-size: .82rem; padding-left: 2px; }
  .residence-nav-links::-webkit-scrollbar { display: none; }
  .estate-button-small { padding-inline: 9px; }
  .estate-section-heading, .estate-price-layout, .estate-showing-layout { grid-template-columns: minmax(0, 1fr); gap: 23px; }
  .estate-section-heading > p { max-width: 49ch; }
  .estate-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .estate-facts > div { padding: 14px 12px; gap: 7px; }
  .estate-facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .estate-facts > div:nth-child(n+3) { border-top: 1px solid var(--estate-line); }
  .estate-facts > div:last-child { grid-column: 1 / -1; }
  .estate-gallery-grid { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .estate-photo-wide img { aspect-ratio: 1.39; }
  .estate-photo-button img { aspect-ratio: 1.45; }
  .estate-photo-expand { top: 10px; right: 10px; width: 34px; height: 34px; }
  .estate-price-copy { grid-row: 1; }
  .estate-showing-copy { padding: 0; }
  .estate-footer-main { grid-template-columns: minmax(0, 1fr) auto; }
  .estate-footer-main nav { grid-row: 2; grid-column: 1/-1; }
  #open-guide { right: 12px; bottom: max(12px,env(safe-area-inset-bottom)); min-height: 38px; padding: 7px 10px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .estate-photo-button img { transition: none; }
}
