/* Homesites: one layout for inline floor and site plans. */
.homesites { --homesite-selector-top: 1rem; --homesite-selector-clearance: 12.5rem; padding: 6.75rem 4.8% 6.25rem; color: var(--ink); scroll-margin-top: 1.5rem; }
.homesites-top { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 2rem 4rem; margin-bottom: 3rem; }
.homesites h2 { margin: 0; font: 400 clamp(2.75rem, 5.1cqw, 4.8125rem)/1.04 var(--font-display); letter-spacing: -.04em; }
.homesites h2 span { display: block; }
.homesites-intro { max-width: 27.5rem; margin: 0 0 0.1875rem; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.homesite-selector-label { margin-bottom: 0.875rem; font-size: 0.75rem; color: var(--muted); }
.site-choices { position: sticky; top: var(--homesite-selector-top); z-index: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 2.25rem; background: var(--paper); box-shadow: 0 -1rem 0 var(--paper), 0 0.75rem 0 var(--paper); }
.site-choice { min-width: 0; padding: 1.375rem 1.5rem; text-align: left; border: 0.0625rem solid var(--line-strong); border-radius: 0; background: transparent; color: var(--ink); }
.choice-heading { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.choice-heading strong { font: 400 1.875rem/1.15 var(--font-display); letter-spacing: -.025em; }
.choice-check { display: grid; place-items: center; width: 1.3125rem; height: 1.3125rem; border: 0.0625rem solid currentColor; border-radius: 50%; font-size: 0.75rem; visibility: hidden; flex-shrink: 0; }
.choice-floors { display: block; margin-top: 0.4375rem; font-size: 0.8125rem; color: var(--muted); }
.choice-area { display: block; margin-top: 1.25rem; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.choice-area small { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.site-choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.site-choice[aria-pressed="true"] :is(.choice-floors, .choice-area small) { color: inherit; }
.site-choice[aria-pressed="true"] .choice-check { visibility: visible; }
@media (hover:hover) { .site-choice:hover { border-color: var(--ink); box-shadow: inset 0 0 0 0.0625rem var(--ink); } }
.homesite-viewer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); column-gap: 2.25rem; align-items: start; padding-top: 1.75rem; border-top: 0.0625rem solid var(--line-strong); }
.homesite-viewer button { scroll-margin-top: var(--homesite-selector-clearance); scroll-margin-bottom: 1.5rem; }
.homesite-heading { grid-column: 1 / -1; display: flex; align-items: end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: 1.625rem; }
.homesite-tag { display: block; margin-bottom: 0.5625rem; font-size: 0.75rem; line-height: 1.5; color: var(--muted); }
.homesite-name { margin: 0; font: 400 clamp(2rem, 3.3cqw, 3rem)/1.08 var(--font-display); letter-spacing: -.03em; }
.homesite-room-count { margin: 0 0 0.1875rem; color: var(--muted); font-size: 0.875rem; }
.homesite-plans { min-width: 0; border: 0.0625rem solid var(--line); background: var(--surface); }
.study-controls { display: flex; align-items: stretch; min-width: 0; gap: 0.25rem; }
.homesite-plans > .study-controls { padding: 0.5rem 0.75rem; border-bottom: 0.0625rem solid var(--line); }
.study-button { flex: 1; min-width: 0; min-height: 2.75rem; padding: 0.625rem 0.5rem; border: 0; border-bottom: 0.125rem solid transparent; background: transparent; color: var(--muted); font-size: 0.8125rem; line-height: 1.4; white-space: nowrap; }
.study-button[aria-pressed="true"] { border-bottom-color: var(--ink); color: var(--ink); }
@media (hover:hover) { .study-button:hover { color: var(--ink); background: var(--paper); } }
.homesite-image { position: relative; margin: 0; }
.plan-sheet { position: relative; display: block; width: 100%; height: clamp(30.625rem, 44cqw, 40.625rem); padding: 0; border: 0; background: #fff; color: #151515; }
#site .plan-sheet img { display: block; width: 100%; height: 100%; padding: 1.375rem; object-fit: contain; opacity: 1; transition: none; }
.image-study-label { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.8125rem 1.125rem; background: var(--surface); color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
#homesite-plan-count { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.plan-load-status { position: absolute; top: 1.25rem; left: 1.25rem; max-width: calc(100% - 2.5rem); background: #fff; color: #626262; font-size: 0.8125rem; }
.plan-load-status:empty { display: none; }
.homesite-information { min-width: 0; padding: 0; }
.homesite-summary { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.9375rem; line-height: 1.75; max-width: 44ch; }
.homesite-metrics { display: block; margin: 0; }
.homesite-metric { display: grid; grid-template-columns: minmax(5rem, .8fr) minmax(0, 1.4fr); align-items: baseline; gap: 1rem; padding: 0.8125rem 0; border-top: 0.0625rem solid var(--line); }
.homesite-metric dt { color: var(--muted); font-size: 0.75rem; line-height: 1.5; }
.homesite-metric dd { margin: 0; text-align: right; color: var(--ink); font-size: 0.875rem; line-height: 1.55; font-variant-numeric: tabular-nums; }
.homesite-metric dd small { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.homesite-metric--site { padding: 0.875rem 0 1.125rem; }
.homesite-metric--site dd { line-height: 1.2; }
.homesite-metric--site dd > span { font-size: 1.625rem; font-weight: 400; letter-spacing: -.02em; }
.homesite-metric--floor dd > span { white-space: nowrap; }
.homesites button:focus-visible { outline: 0.125rem solid var(--ink); outline-offset: 0.25rem; }

@container (max-width:62.5rem) {
  .homesite-viewer { column-gap: 1.5rem; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .homesite-summary { font-size: 0.875rem; }
  .homesite-metric { gap: 0.625rem; grid-template-columns: minmax(4.5rem, .8fr) minmax(0, 1.4fr); }
  .homesite-metric dd { font-size: 0.8125rem; }
}
@container (max-width:51.25rem) {
  .homesites { padding-top: 4.5rem; padding-bottom: 4rem; }
  .homesites-top { gap: 1.5rem; margin-bottom: 2.125rem; }
  .homesites-intro { font-size: 0.875rem; }
  .site-choice { padding: 1.125rem; }
  .choice-heading strong { font-size: 1.6875rem; }
  .homesite-viewer { grid-template-columns: 1fr; }
  .homesite-plans { margin-bottom: 1.75rem; }
  .plan-sheet { height: clamp(22.5rem, 65cqw, 35rem); }
  .homesite-information { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 0 2rem; }
  .homesite-summary { font-size: 0.9375rem; }
  .homesite-metrics { grid-column: 2; grid-row: 1; }
}
@container (max-width:37.5rem) {
  .homesites { --homesite-selector-top: 0.625rem; --homesite-selector-clearance: 10.625rem; padding-right: 6%; padding-left: 6%; }
  .homesites-top { grid-template-columns: 1fr; gap: 1.375rem; margin-bottom: 1.875rem; }
  .homesites h2 { font-size: clamp(2.5rem, 10.8cqw, 3.5rem); }
  .homesites-intro { max-width: 37ch; margin: 0; font-size: 0.875rem; line-height: 1.75; }
  .homesite-selector-label { margin-bottom: 0.75rem; }
  .site-choices { gap: 0.5rem; margin-bottom: 1.625rem; }
  .site-choice { padding: 0.875rem 0.75rem; }
  .choice-heading strong { font-size: 1.375rem; }
  .choice-check { width: 1rem; height: 1rem; font-size: 0.625rem; }
  .choice-floors { margin-top: 0.4375rem; font-size: 0.75rem; }
  .choice-area { margin-top: 1rem; font-size: 0.875rem; line-height: 1.4; }
  .choice-area small { display: block; margin-top: 0.125rem; font-size: 0.6875rem; }
  .homesite-viewer { padding-top: 1.375rem; }
  .homesite-heading { display: block; margin-bottom: 1.375rem; }
  .homesite-tag { margin-bottom: 0.4375rem; }
  .homesite-name { font-size: 2.125rem; }
  .homesite-room-count { margin: 0.625rem 0 0; font-size: 0.8125rem; }
  .homesite-plans > .study-controls { padding: 0.375rem; gap: 0; }
  .study-button { padding: 0.625rem 0.375rem; font-size: 0.75rem; }
  .plan-sheet { height: clamp(18.75rem, 83cqw, 27.5rem); }
  #site .plan-sheet img { padding: 0.75rem; }
  .image-study-label { padding: 0.75rem; font-size: 0.6875rem; }
  .homesite-information { display: block; }
  .homesite-summary { font-size: 0.875rem; margin-bottom: 1.5rem; max-width: none; }
  .homesite-metric { grid-template-columns: minmax(5.5rem, .8fr) minmax(0, 1.4fr); gap: 1rem; padding: 0.875rem 0; }
  .homesite-metric dd { font-size: 0.875rem; }
}
@media (max-width:47.5rem) and (max-height:37.5rem) {
  .site-choices { position: relative; top: auto; box-shadow: none; }
  .homesites { --homesite-selector-clearance: 1.5rem; }
}
@media print {
  .site-choices { position: static; box-shadow: none; }
  .homesite-viewer { break-inside: avoid; }
  .plan-sheet { height: 31.25rem; }
}
