:root {
  --bg-ivory: #ffffff;
  --panel: #ffffff;
  --line: #d2ba9d;
  --ink: #191713;
  --muted: #5f5a52;
  --accent: #2b4d40;
  --accent-2: #d2ba9d;
  --radius-xl: 26px;
  --radius-md: 18px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg-ivory);
  overflow-x: hidden;
}

.bg-shape {
  display: none;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1260px, calc(100% - 48px));
  margin: 34px auto;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(54, 45, 35, 0.12);
  backdrop-filter: blur(4px);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  margin: 14px 14px 0;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: clamp(168px, 17vw, 248px);
  min-width: 0;
  text-decoration: none;
  margin-left: 8px;
  position: relative;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

.menu-list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.menu-list li {
  display: flex;
  align-items: center;
}

.menu-list li + li {
  position: relative;
  margin-left: 20px;
  padding-left: 20px;
}

.menu-list li + li::before {
  content: "/";
  position: absolute;
  left: 0;
  color: var(--accent-2);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1;
}

.menu-list a {
  color: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 180ms ease;
}

.menu-list a:hover,
.menu-list a:focus-visible {
  color: var(--accent);
}

.menu-list a.is-active {
  color: var(--accent);
}

body.index-intro.intro-pre .layout-grid .card {
  opacity: 0;
  transform: translateY(-115vh);
}

body.index-intro.intro-playing .slider-card {
  animation: block-fall 780ms cubic-bezier(0.22, 0.8, 0.24, 1) 80ms both;
}

body.index-intro.intro-playing .hero-card {
  animation: block-fall 860ms cubic-bezier(0.22, 0.8, 0.24, 1) 220ms both;
}

body.index-intro.intro-playing #houseOneLink {
  animation: block-fall 920ms cubic-bezier(0.22, 0.8, 0.24, 1) 320ms both;
}

body.index-intro.intro-playing #houseTwoLink {
  animation: block-fall 980ms cubic-bezier(0.22, 0.8, 0.24, 1) 390ms both;
}

.layout-grid {
  margin: 14px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.9fr);
  grid-template-rows: minmax(280px, 1fr) auto;
}

.card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--accent-2);
  background: #f2efea;
}

.slider-card {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 36px);
  background: linear-gradient(148deg, #f0ece7 12%, #e3dfd8 96%);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.slider-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(50, 42, 34, 0.12);
}

.slider-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.slider-card[data-card-clickable="false"] {
  cursor: default;
}

.slider-card[data-card-clickable="false"]:hover {
  transform: none;
  box-shadow: none;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: pre-line;
}

#sliderTitle {
  margin: 12px 0 10px;
  max-width: 16ch;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.6rem, 3.4vw, 3rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: pre-line;
}

.slider-description {
  margin: 0;
  max-width: 50ch;
  color: #4b463f;
  font-size: clamp(0.9rem, 1.2vw, 1.02rem);
  line-height: 1.48;
  white-space: pre-line;
}

.slider-footer {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.55);
  transition: background-color 170ms ease, border-color 170ms ease;
  white-space: pre-line;
  text-align: center;
}

.cta-link:hover,
.cta-link:focus-visible {
  background: #fff;
  border-color: var(--accent);
}

.urb-action-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.cta-button {
  appearance: none;
  font: inherit;
  cursor: pointer;
}

.cta-button[hidden] {
  display: none;
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ctrl-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  background: #fff;
  font-size: 1.15rem;
  color: var(--ink);
  cursor: pointer;
}

.ctrl-toggle {
  font-size: 0.92rem;
  letter-spacing: -0.04em;
}

.ctrl-btn:hover,
.ctrl-btn:focus-visible {
  border-color: var(--accent);
}

.slider-dots {
  display: flex;
  gap: 7px;
  margin: 0;
  align-items: center;
}

.slider-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  background: transparent;
  cursor: pointer;
  transition: all 170ms ease;
}

.slider-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

.hero-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  display: block;
  text-decoration: none;
  min-height: 0;
}

.hero-card img,
.house-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, opacity 340ms ease-in-out, filter 340ms ease-in-out;
  will-change: transform, opacity, filter;
}

.hero-card:hover img,
.house-card:hover img {
  transform: scale(1.03);
}

.hero-card img.is-swapping,
.house-card img.is-swapping {
  opacity: 0.45;
  filter: blur(1px);
}

.hero-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(115deg, rgba(17, 17, 17, 0.58), rgba(29, 29, 29, 0.2));
  color: #fafafa;
}

.hero-label {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.84);
}

#heroTitle {
  margin: 4px 0;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.26rem, 2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: pre-line;
}

#heroLocation {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-line;
}

.hero-action {
  align-self: flex-start;
  margin-top: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  padding: 6px 14px;
  font-weight: 700;
  font-size: 0.8rem;
}

.house-card {
  display: block;
  min-height: 0;
  aspect-ratio: 1 / 1;
  text-decoration: none;
}

#houseOneLink {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

#houseTwoLink {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

.house-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border-radius: 13px;
  background: linear-gradient(95deg, rgba(14, 14, 14, 0.7), rgba(19, 19, 19, 0.24));
  padding: 10px 12px;
  color: #fff;
}

.house-tag {
  margin: 0;
  font-size: 0.65rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  opacity: 0.88;
  white-space: pre-line;
}

.house-overlay h3 {
  margin: 6px 0 0;
  font-size: 1rem;
  line-height: 1.15;
  white-space: pre-line;
}

.urb-page .slider-card {
  cursor: default;
}

.urb-page .slider-card:hover {
  transform: none;
  box-shadow: none;
}

.urb-houses-card {
  grid-column: 1 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.3vw, 26px);
  background: linear-gradient(154deg, #efebe5 10%, #e4dfd6 96%);
}

.urb-houses-card.is-compact-selector {
  gap: 9px;
  min-height: 0;
  padding: 14px 16px;
}

.urb-selector-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.urb-selector-search {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid var(--accent-2);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  outline: 0;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.urb-selector-search:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(43, 77, 64, 0.12);
}

.urb-house-count {
  flex: 0 0 auto;
  color: #675f55;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.urb-house-types {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.urb-house-types.is-compact {
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 6px;
  max-height: 132px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(43, 77, 64, 0.44) rgba(255, 255, 255, 0.42);
}

.house-type-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  min-height: 44px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--accent-2);
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 9px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 170ms ease, background-color 170ms ease;
}

.house-type-btn.is-compact {
  display: inline-flex;
  gap: 8px;
  min-height: 36px;
  border-radius: 999px;
  padding: 7px 10px;
}

.house-type-btn:hover,
.house-type-btn:focus-visible {
  border-color: var(--accent);
  background: #fff;
}

.house-type-btn.is-active {
  border-color: var(--accent);
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(43, 77, 64, 0.18);
}

.house-type-name {
  text-align: left;
}

.house-type-btn.is-compact .house-type-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.house-type-meta {
  margin-left: auto;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #5b544b;
  white-space: nowrap;
}

.house-type-btn.is-compact .house-type-meta {
  margin-left: 0;
  align-self: start;
  color: var(--accent);
}

.house-type-extra {
  display: none;
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: #665e55;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.urb-house-empty {
  margin: 4px 0 0;
  color: #665e55;
  font-size: 0.82rem;
  font-weight: 700;
}

.urb-house-summary {
  margin: 0;
  color: #433d36;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-line;
}

.urb-facts-table {
  width: 100%;
  margin: 8px 0 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.79rem;
  display: table;
}

.urb-fact-row {
  border-bottom: 1px solid rgba(164, 151, 136, 0.32);
}

.urb-fact-row:last-child {
  border-bottom: 0;
}

.urb-fact-row th,
.urb-fact-row td {
  padding: 6px 0;
  vertical-align: top;
}

.urb-fact-row th {
  width: 34%;
  padding-right: 14px;
  text-align: left;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #73695d;
  font-weight: 700;
}

.urb-fact-row td {
  color: #211d18;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.28;
}

.urb-page #urbInfoCard {
  padding: clamp(18px, 2.4vw, 26px);
}

.urb-page #urbInfoCard #urbTitle {
  margin: 8px 0 8px;
  font-size: clamp(1.3rem, 2.4vw, 2.2rem);
  max-width: none;
}

.urb-page #urbInfoCard .slider-description {
  font-size: 0.84rem;
  line-height: 1.34;
}

.urb-page #urbInfoCard .slider-footer {
  margin-top: auto;
  padding-top: 12px;
}

.urb-page #urbInfoCard .cta-link {
  padding: 8px 14px;
  font-size: 0.81rem;
}

.urb-gallery-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
}

.urb-gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.urb-gallery-open {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
  background: transparent;
}

.urb-gallery-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 320ms ease, opacity 340ms ease-in-out, filter 340ms ease-in-out;
  will-change: transform, opacity, filter;
}

.urb-gallery-open:hover img,
.urb-gallery-open:focus-visible img {
  transform: scale(1.03);
}

.urb-gallery-card.is-plan-mode .urb-gallery-open {
  background: #f2efea;
}

.urb-gallery-card.is-plan-mode .urb-gallery-open img {
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.urb-gallery-card.is-plan-mode .urb-gallery-open:hover img,
.urb-gallery-card.is-plan-mode .urb-gallery-open:focus-visible img {
  transform: scale(1.03);
}

.urb-model-view {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #f2eee7 0%, #e5ded3 100%);
}

.urb-model-view[hidden] {
  display: none;
}

.urb-model-canvas {
  width: 100%;
  height: 100%;
}

.urb-model-canvas canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  cursor: grab;
  touch-action: none;
}

.urb-model-canvas canvas:active {
  cursor: grabbing;
}

.urb-model-status {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  min-width: 220px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.72);
  color: rgba(255, 255, 255, 0.95);
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.3;
}

.urb-model-status.is-error {
  background: rgba(78, 28, 28, 0.86);
}

.urb-gallery-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(110deg, rgba(17, 17, 17, 0.62), rgba(30, 30, 30, 0.2));
  color: #fff;
}

.urb-gallery-caption {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.9);
  white-space: pre-line;
}

.urb-gallery-hint {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.76);
}

.urb-gallery-footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.urb-gallery-modes {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.urb-gallery-mode {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(18, 18, 18, 0.22);
  color: #fff;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 170ms ease, border-color 170ms ease, color 170ms ease;
}

.urb-gallery-mode:hover,
.urb-gallery-mode:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.56);
}

.urb-gallery-mode.is-active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.96);
  color: #1f1c18;
}

.urb-gallery-photo-controls[hidden] {
  display: none;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 220ms ease;
}

.gallery-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.76);
}

.gallery-modal-dialog {
  position: absolute;
  inset: 30px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.gallery-modal-figure {
  position: relative;
  width: min(1120px, calc(100vw - 68px));
  max-height: calc(100vh - 92px);
  pointer-events: none;
  margin: 0;
}

.gallery-modal.is-open .gallery-modal-figure {
  pointer-events: auto;
}

.gallery-modal-image {
  width: 100%;
  max-height: calc(100vh - 156px);
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 20, 20, 0.92);
}

.facilities-modal-figure {
  width: min(1380px, calc(100vw - 68px));
}

.facilities-modal-content {
  display: grid;
  grid-template-columns: clamp(230px, 22vw, 292px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.facilities-interest-panel {
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  border-radius: 16px;
  border: 1px solid rgba(210, 186, 157, 0.72);
  background: rgba(255, 255, 255, 0.98);
  color: var(--ink);
  padding: 16px 18px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.facilities-panel-kicker {
  margin: 0;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.facilities-panel-title {
  margin: 5px 0 12px;
  color: var(--ink);
  font-family: "Archivo Black", sans-serif;
  font-size: 0.98rem;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.facilities-interest-list {
  display: grid;
  gap: 0;
}

.facilities-interest-item {
  display: grid;
  gap: 6px;
  padding: 9px 0;
  border-top: 1px solid rgba(210, 186, 157, 0.58);
}

.facilities-interest-copy h3 {
  margin: 0;
  color: #211d18;
  font-size: 0.8rem;
  line-height: 1.22;
}

.facilities-interest-copy p {
  margin: 3px 0 0;
  color: #696157;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1.25;
}

.facilities-interest-times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.facilities-interest-times span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  background: rgba(43, 77, 64, 0.09);
  color: var(--accent);
  padding: 4px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1;
}

.facilities-image-panel {
  min-width: 0;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.98);
  padding: 10px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.facilities-modal-image {
  display: block;
  max-height: calc(100vh - 142px);
  border: 0;
  background: #fff;
  object-fit: contain;
}

.facilities-image-panel .gallery-modal-caption {
  margin: 8px 4px 2px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
}

.gallery-modal-caption {
  margin: 10px 0 0;
  text-align: center;
  color: rgba(255, 255, 255, 0.93);
  font-size: 0.9rem;
  line-height: 1.4;
}

.gallery-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(19, 19, 19, 0.55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(19, 19, 19, 0.55);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.gallery-modal-arrow.prev {
  left: 12px;
}

.gallery-modal-arrow.next {
  right: 12px;
}

.gallery-modal-close:hover,
.gallery-modal-close:focus-visible,
.gallery-modal-arrow:hover,
.gallery-modal-arrow:focus-visible {
  background: rgba(32, 32, 32, 0.76);
}

.simple-main {
  margin: 14px;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.simple-card {
  width: min(920px, 100%);
  border-radius: 20px;
  border: 1px solid var(--accent-2);
  background: #f2efea;
  padding: clamp(20px, 3vw, 36px);
}

.simple-card h1 {
  margin: 0 0 12px;
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
}

.simple-card p {
  margin: 0 0 12px;
  color: #403a33;
}

.simple-card a {
  color: var(--accent);
  font-weight: 700;
}

.contact-card {
  display: grid;
  gap: 10px;
  width: min(860px, 100%);
  padding: clamp(16px, 2.2vw, 24px);
}

.contact-lead {
  max-width: 58ch;
  font-size: 0.92rem;
  line-height: 1.4;
}

.contact-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.contact-field {
  display: grid;
  gap: 6px;
}

.contact-field-full {
  grid-column: 1 / -1;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #6c6358;
  font-weight: 700;
}

.contact-input,
.contact-message {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--accent-2);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px 18px;
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
}

.contact-input {
  min-height: 48px;
  padding: 12px 16px;
}

.contact-message {
  min-height: 132px;
  resize: vertical;
  padding: 12px 16px;
}

.contact-input:focus-visible,
.contact-message:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-actions .cta-link {
  display: flex;
  width: 136px;
  min-width: 136px;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 54px;
  padding: 0;
  line-height: 1;
}

.contact-actions .cta-link > span {
  display: block;
  transform: translateY(-1px);
}

.contact-secondary {
  background: transparent;
}

.contact-meta {
  font-size: 0.84rem;
  color: #5f584f;
}

body.home-page .simple-main {
  margin: 10px 14px 14px;
  min-height: 0;
}

@media (max-width: 1020px) {
  .topbar {
    border-radius: 22px;
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-list {
    gap: 16px;
    flex-wrap: wrap;
  }

  .menu-list li + li {
    margin-left: 0;
    padding-left: 0;
  }

  .menu-list li + li::before {
    content: none;
  }

  .layout-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(250px, 1fr) auto auto;
  }

  .hero-card {
    grid-column: auto;
    grid-row: auto;
    min-height: 480px;
  }

  .urb-house-types {
    grid-template-columns: 1fr;
  }

  .urb-house-types.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: 128px;
  }

  .urb-page #urbInfoCard #urbTitle {
    font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  }

  .contact-fields {
    grid-template-columns: 1fr;
  }

  .contact-field-full {
    grid-column: auto;
  }

  .contact-card {
    width: min(760px, 100%);
  }
}

@media (max-width: 680px) {
  .brand {
    width: clamp(148px, 48vw, 190px);
    min-width: 0;
    margin-left: 6px;
  }

  .page-shell {
    width: calc(100% - 24px);
    margin: 12px auto 18px;
  }

  .menu-list {
    gap: 10px 14px;
  }

  .menu-list a {
    font-size: 0.82rem;
  }

  .layout-grid {
    margin: 10px;
    gap: 8px;
  }

  .slider-card {
    min-height: 290px;
  }

  .hero-card {
    min-height: 340px;
  }

  .house-card {
    min-height: 150px;
  }

  .contact-card {
    padding: 14px;
  }

  .contact-lead {
    font-size: 0.84rem;
    line-height: 1.34;
  }

  .contact-input {
    min-height: 44px;
    padding: 10px 14px;
  }

  .contact-message {
    min-height: 104px;
    padding: 10px 14px;
  }

  .contact-actions .cta-link {
    width: 120px;
    min-width: 120px;
    height: 48px;
    font-size: 0.8rem;
    padding: 0;
  }

  .contact-meta {
    font-size: 0.78rem;
  }

  .urb-gallery-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .urb-gallery-photo-controls {
    width: 100%;
    justify-content: space-between;
  }

  .urb-gallery-modes {
    gap: 6px;
  }

  .urb-gallery-mode {
    padding: 7px 12px;
    font-size: 0.74rem;
  }

  .urb-page #urbInfoCard {
    padding: 14px;
  }

  .urb-page #urbInfoCard #urbTitle {
    margin: 6px 0;
    font-size: clamp(1.1rem, 4vw, 1.45rem);
  }

  .urb-page #urbInfoCard .slider-description {
    font-size: 0.77rem;
    line-height: 1.28;
  }

  .urb-house-summary {
    font-size: 0.78rem;
    line-height: 1.28;
  }

  .urb-selector-toolbar {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .urb-house-count {
    align-self: flex-start;
  }

  .house-type-btn.is-compact {
    min-height: 36px;
  }

  .urb-fact-row th,
  .urb-fact-row td {
    padding: 4px 0;
  }

  .urb-fact-row th {
    width: 38%;
    font-size: 0.6rem;
    padding-right: 10px;
  }

  .urb-fact-row td {
    font-size: 0.72rem;
    line-height: 1.22;
  }

  .urb-page #urbInfoCard .cta-link {
    padding: 7px 12px;
    font-size: 0.77rem;
  }

  .gallery-modal-dialog {
    inset: 14px;
  }

  .gallery-modal-figure {
    width: calc(100vw - 30px);
    max-height: calc(100vh - 34px);
  }

  .gallery-modal-image {
    max-height: calc(100vh - 104px);
  }

  .facilities-modal-content {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .facilities-interest-panel {
    max-height: 210px;
    padding: 12px 14px;
  }

  .facilities-panel-title {
    font-size: 0.9rem;
  }

  .facilities-interest-item {
    gap: 5px;
    padding: 7px 0;
  }

  .facilities-image-panel {
    padding: 8px;
  }

  .facilities-modal-image {
    max-height: 48vh;
  }

  .gallery-modal-arrow {
    width: 40px;
    height: 40px;
  }

  .gallery-modal-arrow.prev {
    left: 8px;
  }

  .gallery-modal-arrow.next {
    right: 8px;
  }
}

@keyframes block-fall {
  from {
    opacity: 0;
    transform: translateY(-115vh);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Shared page-swap animation */
body.page-swap-exit [data-swap-card],
body.page-swap-enter [data-swap-card] {
  will-change: transform, opacity;
}

body.page-swap-exit [data-swap-card] {
  pointer-events: none;
}

body.page-swap-exit [data-swap-dir="left"] {
  animation: swap-out-left 420ms cubic-bezier(0.35, 0, 0.6, 1) both;
}

body.page-swap-exit [data-swap-dir="right"] {
  animation: swap-out-right 420ms cubic-bezier(0.35, 0, 0.6, 1) both;
}

body.page-swap-exit [data-swap-dir="down"] {
  animation: swap-out-down 420ms cubic-bezier(0.35, 0, 0.6, 1) both;
}

body.page-swap-enter [data-swap-dir="left"] {
  animation: swap-in-left 620ms cubic-bezier(0.2, 0.8, 0.24, 1) both;
}

body.page-swap-enter [data-swap-dir="right"] {
  animation: swap-in-right 620ms cubic-bezier(0.2, 0.8, 0.24, 1) both;
}

body.page-swap-enter [data-swap-dir="down"] {
  animation: swap-in-up 620ms cubic-bezier(0.2, 0.8, 0.24, 1) both;
}

@keyframes swap-out-left {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(-22vw, 0, 0);
  }
}

@keyframes swap-out-right {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(22vw, 0, 0);
  }
}

@keyframes swap-out-down {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }

  to {
    opacity: 0;
    transform: translate3d(0, 26vh, 0);
  }
}

@keyframes swap-in-left {
  from {
    opacity: 0;
    transform: translate3d(-22vw, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes swap-in-right {
  from {
    opacity: 0;
    transform: translate3d(22vw, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes swap-in-up {
  from {
    opacity: 0;
    transform: translate3d(0, 26vh, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-swap-exit [data-swap-card],
  body.page-swap-enter [data-swap-card] {
    animation: none;
  }
}

/* Homepage frame: fixed 16:9 and no scroll */
body.home-page {
  min-height: 100dvh;
  height: 100dvh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

body.home-page .page-shell {
  width: min(100vw, calc(100dvh * 16 / 9));
  height: min(100dvh, calc(100vw * 9 / 16));
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

body.home-page .layout-grid {
  margin: 10px 14px 14px;
  min-height: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.9fr);
  grid-template-rows: minmax(0, 1fr) auto;
}

body.home-page .hero-card {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  min-height: 0;
}

body.home-page .slider-card {
  grid-column: 1 / 3;
  grid-row: 1 / 2;
}

body.home-page .slider-card,
body.home-page .house-card {
  min-height: 0;
}

body.home-page .house-card {
  aspect-ratio: 1 / 1;
}

body.home-page #houseOneLink {
  grid-column: 1 / 2;
  grid-row: 2 / 3;
}

body.home-page #houseTwoLink {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
}

@media (max-width: 1020px) {
  body.home-page .layout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(0, 1.9fr);
    grid-template-rows: minmax(0, 1fr) auto;
  }

  body.home-page .hero-card {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
    min-height: 0;
  }
}

@media (max-width: 680px) {
  body.home-page .slider-card {
    padding: 16px;
  }

  body.home-page #sliderTitle {
    font-size: clamp(1.1rem, 3.6vw, 1.5rem);
  }

  body.home-page .slider-description {
    font-size: 0.78rem;
    line-height: 1.35;
  }
}
