@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&family=Jost:wght@300;400;500&display=swap');

/* ========================================================================
   ESTATE — warm, dark, editorial property presentation
   ======================================================================== */

/* Shared --tpl-* contract from _base.css. */
html[data-template="estate"] {
  --tpl-surface: #211b16;
  --tpl-status-available-bg: transparent;
  --tpl-status-available-fg: #a8cf93;
  --tpl-status-reserved-bg: transparent;
  --tpl-status-reserved-fg: #efc561;
  --tpl-status-sold-bg: transparent;
  --tpl-status-sold-fg: #a89e96;
  --tpl-table-head-bg: #2a211a;
  --tpl-table-head-fg: #efe9e0;
  --tpl-hero-ink: #efe9e0;
  --tpl-hero-sub: #d0aa5b;
  --tpl-hero-title: #fffaf2;
  --tpl-hero-tag: rgba(239, 233, 224, 0.78);
  --tpl-hero-rule: rgba(239, 233, 224, 0.45);
  --tpl-hero-dot: #d0aa5b;
  --tpl-danger: #f3a6a0;
  --tpl-label-bg: #b48d40;
  --tpl-label-fg: #1b1612;
  --tpl-cta-bg: #2a211a;
  --tpl-cta-ink: #fffaf2;
  --tpl-cta-button-bg: #d0aa5b;
  --tpl-cta-button-ink: #1b1612;
  --tpl-cta-button-border: #d0aa5b;
  --tpl-cta-button-hover-bg: transparent;
  --tpl-cta-button-hover-ink: #efe9e0;
}

/* Override inline branding at body scope; --color-accent stays config-owned. */
html[data-template="estate"] body {
  --color-primary: #efe9e0;
  --color-primary-rgb: 239, 233, 224;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;
  --color-text: #efe9e0;
  --color-text-muted: #a99d90;
  --color-text-light: #7e7369;
  --color-bg: #14110e;
  --color-bg-alt: #1c1814;
  --color-border: rgba(239, 233, 224, 0.15);
  --color-status-available: #a8cf93;
  --color-status-reserved: #efc561;
  --color-status-sold: #a89e96;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 7rem;
  --space-2xl: 9rem;
  --container-max: 1200px;
  --nav-height: 88px;
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --radius-full: 9999px;
  --shadow-sm: none;
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.22);
  --shadow-lg: 0 22px 58px rgba(0, 0, 0, 0.3);
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.65;
}

html[data-template="estate"] #main {
  counter-reset: estate-section;
  background: var(--color-bg);
}

html[data-template="estate"] .section {
  padding: 7.5rem 0;
  background: var(--color-bg);
}

html[data-template="estate"] .section > .container,
html[data-template="estate"] .site-footer .footer-content {
  max-width: var(--container-max);
}

html[data-template="estate"] h1,
html[data-template="estate"] h2,
html[data-template="estate"] h3,
html[data-template="estate"] h4,
html[data-template="estate"] h5,
html[data-template="estate"] h6 {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 400;
}

html[data-template="estate"] a {
  color: var(--color-accent);
}

html[data-template="estate"] a:hover {
  color: #f0cc78;
}

/* ---- Navigation ------------------------------------------------------- */

html[data-template="estate"] .site-nav {
  position: absolute;
  height: 88px;
  border-bottom: 1px solid rgba(239, 233, 224, 0.14);
  background: transparent;
  box-shadow: none;
}

html[data-template="estate"] .site-nav.nav-scrolled {
  background: rgba(20, 17, 14, 0.96);
  border-bottom-color: rgba(239, 233, 224, 0.14);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-template="estate"] .nav-inner {
  max-width: var(--container-max);
  padding: 0 2.5rem;
}

html[data-template="estate"] .nav-brand {
  color: #fffaf2;
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}

html[data-template="estate"] .nav-scrolled .nav-brand {
  color: #fffaf2;
}

html[data-template="estate"] .nav-menu {
  gap: 2.5rem;
}

html[data-template="estate"] .nav-menu a,
html[data-template="estate"] .nav-scrolled .nav-menu a {
  color: rgba(239, 233, 224, 0.74);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  padding: 0.5rem 0;
}

html[data-template="estate"] .nav-menu a:hover,
html[data-template="estate"] .nav-menu a.nav-active,
html[data-template="estate"] .nav-scrolled .nav-menu a.nav-active {
  color: var(--color-accent);
}

html[data-template="estate"] .nav-menu a::after {
  height: 1px;
  background: var(--color-accent);
}

html[data-template="estate"] .nav-hamburger span,
html[data-template="estate"] .nav-scrolled .nav-hamburger span {
  background: #efe9e0;
}

/* ---- Hero ------------------------------------------------------------- */

html[data-template="estate"] .section-hero {
  height: min(720px, 100vh);
  min-height: 620px;
  align-items: flex-end;
  justify-content: initial;
  padding: 0;
  background: #211a14;
}

html[data-template="estate"] .hero-bg-image {
  filter: saturate(0.72) contrast(1.05) brightness(0.86);
  background-size: cover;
  background-position: center;
}

html[data-template="estate"] .hero-overlay {
  background: linear-gradient(105deg, rgba(20, 17, 14, 0.92) 0%, rgba(20, 17, 14, 0.62) 42%, rgba(20, 17, 14, 0.24) 100%);
}

html[data-template="estate"] .hero-content.container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 max(2.5rem, calc((100vw - var(--container-max)) / 2 + 2.5rem)) 5.5rem !important;
  box-sizing: border-box;
  text-align: left;
}

html[data-template="estate"] .hero-subtitle {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.35rem;
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

html[data-template="estate"] .hero-subtitle::before {
  width: 3.5rem;
  height: 1px;
  background: var(--color-accent);
  content: '';
}

html[data-template="estate"] .hero-title {
  max-width: 12ch;
  margin: 0 0 1.5rem;
  color: var(--tpl-hero-title);
  font-size: 92px;
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 0.98;
}

html[data-template="estate"] .hero-tagline {
  max-width: 46ch;
  margin: 0 0 2.25rem;
  color: var(--tpl-hero-tag);
  font-size: 1.18rem;
  font-weight: 300;
  line-height: 1.6;
}

html[data-template="estate"] .hero-cta,
html[data-template="estate"] .hero-cta.btn {
  display: inline-flex;
  padding: 1rem 2.65rem;
  border: 1px solid var(--color-accent);
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

html[data-template="estate"] .hero-cta:hover,
html[data-template="estate"] .hero-cta.btn:hover {
  background: var(--color-accent);
  color: #1b1612;
  filter: none;
}

html[data-template="estate"] .hero-scroll-indicator {
  bottom: 2rem;
}

html[data-template="estate"] .hero-scroll-indicator span {
  border-width: 1px;
  border-radius: 12px;
}

html[data-template="estate"] .hero-scroll-indicator span::after {
  border-radius: 0;
}

/* ---- Shared section heading and containers --------------------------- */

html[data-template="estate"] .section-headline {
  counter-increment: estate-section;
  margin: 0 0 2.8rem;
  color: #fff;
  font-size: 54px;
  font-weight: 300;
  letter-spacing: -0.01em;
  line-height: 1.06;
  text-align: left;
}

html[data-template="estate"] .section-headline::before {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
  content: counter(estate-section, decimal-leading-zero);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  line-height: 1;
  text-transform: uppercase;
}

html[data-template="estate"] .section-headline::after {
  display: none;
}

html[data-template="estate"] .section > .container {
  padding-right: 2.5rem;
  padding-left: 2.5rem;
}

html[data-template="estate"] .reveal.revealed {
  transform: none !important;
}

/* ---- Text-image ------------------------------------------------------- */

html[data-template="estate"] .section-text-image {
  padding: 0;
  background: var(--color-bg);
}

html[data-template="estate"] .section-text-image > .container {
  position: relative;
  max-width: none;
  padding: 0;
}

html[data-template="estate"] .section-text-image .section-headline {
  position: absolute;
  z-index: 1;
  top: 7rem;
  left: calc(50% + 4rem);
  width: min(42vw, 34rem);
  margin: 0;
}

html[data-template="estate"] .text-image-row {
  display: grid;
  grid-template-columns: minmax(0, 44.5vw) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}

html[data-template="estate"] .text-image-row.layout-text-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 44.5vw);
}

html[data-template="estate"] .text-image-images {
  display: flex;
  min-height: 620px;
  gap: 0.5rem;
  overflow: hidden;
}

html[data-template="estate"] .text-image-images picture,
html[data-template="estate"] .text-image-images > img,
html[data-template="estate"] .text-image-images picture img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 620px;
  flex: 1;
  border-radius: 0;
  object-fit: cover;
  filter: saturate(0.72) contrast(1.03);
}

html[data-template="estate"] .text-image-text {
  align-self: stretch;
  padding: 17rem 8vw 6rem 6vw;
}

html[data-template="estate"] .text-image-row.layout-text-left .text-image-images {
  order: 1;
}

html[data-template="estate"] .text-image-row.layout-text-left .text-image-text {
  order: 2;
}

html[data-template="estate"] .text-image-row.layout-text-right .text-image-text {
  order: 1;
  padding-right: 6vw;
  padding-left: 8vw;
}

html[data-template="estate"] .text-image-row.layout-text-right .text-image-images {
  order: 2;
}

html[data-template="estate"] .text-image-text p {
  max-width: 48ch;
  margin: 0 0 1.25rem;
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.9;
}

html[data-template="estate"] .text-image-row.layout-text-center {
  grid-template-columns: 1fr;
  text-align: center;
}

html[data-template="estate"] .text-image-row.layout-text-center .text-image-text {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
}

html[data-template="estate"] .text-image-row.layout-text-center .text-image-images {
  min-height: 30rem;
}

/* ---- Location --------------------------------------------------------- */

html[data-template="estate"] .location-row,
html[data-template="estate"] .profile-row,
html[data-template="estate"] .contact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem;
  align-items: start;
}

html[data-template="estate"] .location-map iframe,
html[data-template="estate"] .location-map-img {
  width: 100%;
  min-height: 26rem;
  border: 0;
  border-radius: 0;
  filter: saturate(0.55) sepia(0.2);
  object-fit: cover;
}

html[data-template="estate"] .location-map-link {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--color-accent);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-template="estate"] .location-desc,
html[data-template="estate"] .financing-subtitle,
html[data-template="estate"] .profile-desc {
  max-width: 55ch;
  margin: 0 0 2rem;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.85;
}

html[data-template="estate"] .distances-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

html[data-template="estate"] .distance-card {
  padding: 1.25rem;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

html[data-template="estate"] .distance-card:hover {
  box-shadow: none;
}

html[data-template="estate"] .distance-place {
  margin-bottom: 0.3rem;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

html[data-template="estate"] .distance-value {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 400;
}

html[data-template="estate"] .distance-time {
  color: var(--color-text-light);
  font-size: 0.75rem;
}

html[data-template="estate"] .location-highlights {
  display: grid;
  gap: 0.7rem;
}

html[data-template="estate"] .highlight-item {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

html[data-template="estate"] .highlight-item svg {
  color: var(--color-accent);
}

/* ---- Benefits and stats ---------------------------------------------- */

html[data-template="estate"] .benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

html[data-template="estate"] .benefit-card {
  padding: 2rem 1.5rem;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

html[data-template="estate"] .benefit-card:hover {
  box-shadow: none;
}

html[data-template="estate"] .benefit-icon {
  width: auto;
  height: auto;
  justify-content: flex-start;
  margin: 0 0 1.25rem;
  border-radius: 0;
  background: transparent;
  color: var(--color-accent);
}

html[data-template="estate"] .benefit-icon svg {
  width: 2rem;
  height: 2rem;
}

html[data-template="estate"] .benefit-title {
  margin-bottom: 0.5rem;
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: 400;
}

html[data-template="estate"] .benefit-desc,
html[data-template="estate"] .feature-card p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

html[data-template="estate"] .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 2.5rem;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

html[data-template="estate"] .stat-card,
html[data-template="estate"] .stat-card.stat-card-wide {
  grid-column: auto;
  padding: 2.1rem 1.5rem;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
}

html[data-template="estate"] .stat-value {
  margin-bottom: 0.5rem;
  color: var(--color-accent);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 300;
}

html[data-template="estate"] .stat-label {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
}

html[data-template="estate"] .stats-extras {
  max-width: 36rem;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
}

html[data-template="estate"] .extras-row {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--color-border);
}

html[data-template="estate"] .extras-label {
  color: var(--color-text-muted);
}

/* ---- Units ------------------------------------------------------------ */

html[data-template="estate"] .section-units {
  padding-top: 8.5rem;
  background: var(--color-bg-alt);
}

html[data-template="estate"] .section-units .section-headline {
  margin-bottom: 3.25rem;
}

html[data-template="estate"] .section-units > .container {
  max-width: 1280px;
}

html[data-template="estate"] .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: flex-start;
  margin: -0.25rem 0 2.25rem;
}

html[data-template="estate"] .filter-select {
  appearance: none;
  min-width: 9.5rem;
  padding: 0.65rem 2.1rem 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-text-muted) 50%), linear-gradient(135deg, var(--color-text-muted) 50%, transparent 50%);
  background-position: calc(100% - 0.95rem) 50%, calc(100% - 0.65rem) 50%;
  background-repeat: no-repeat;
  background-size: 0.3rem 0.3rem, 0.3rem 0.3rem;
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

html[data-template="estate"] .filter-select:focus {
  border-color: var(--color-accent);
}

html[data-template="estate"] .units-table-wrap {
  display: none !important;
  overflow-x: auto;
  box-shadow: none;
}

html[data-template="estate"] .units-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-template="estate"] .units-table thead {
  background: var(--tpl-table-head-bg);
  color: var(--tpl-table-head-fg);
}

html[data-template="estate"] .units-table th {
  padding: 0 0 18px;
  border-bottom: 1px solid rgba(239, 233, 224, 0.28);
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-align: left;
  text-transform: uppercase;
}

html[data-template="estate"] .units-table td {
  padding: 26px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 300;
  text-align: left;
}

/* The table renderer emits bare td cells (the label/price classes only
   exist in the card branch). Keep the first data column and the cell just
   before the status column faithful to the estate table hierarchy without
   assuming a fixed number of schema columns. */
html[data-template="estate"] .units-table tbody td:first-child {
  color: #fffaf2;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
}

html[data-template="estate"] .units-table tbody td:has(+ td > .status-badge) {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  white-space: nowrap;
}

html[data-template="estate"] .units-table tbody tr:hover {
  background: rgba(239, 233, 224, 0.04);
}

html[data-template="estate"] .units-table .unit-card-label,
html[data-template="estate"] .unit-card-label {
  color: #fffaf2;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
}

html[data-template="estate"] .units-table .unit-card-price,
html[data-template="estate"] .unit-card-price {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 400;
  white-space: nowrap;
}

html[data-template="estate"] .units-table .status-badge,
html[data-template="estate"] .unit-card .status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0;
  border-radius: 0;
  background: transparent !important;
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

html[data-template="estate"] .status-badge::before {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: currentColor;
  content: '';
}

html[data-template="estate"] .status-badge.status-available {
  color: var(--tpl-status-available-fg);
}

html[data-template="estate"] .status-badge.status-reserved {
  color: var(--tpl-status-reserved-fg);
}

html[data-template="estate"] .status-badge.status-sold {
  color: var(--tpl-status-sold-fg);
}

html[data-template="estate"] .unit-row.status-sold,
html[data-template="estate"] .unit-card.status-sold {
  opacity: 0.55;
}

html[data-template="estate"] .units-empty {
  padding: 2rem !important;
  color: var(--color-text-muted);
}

html[data-template="estate"] .units-cards-wrap {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0;
}

html[data-template="estate"] .unit-card {
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-template="estate"] .unit-card:hover {
  box-shadow: none;
}

html[data-template="estate"] .unit-card-header,
html[data-template="estate"] .unit-card-footer {
  border-color: var(--color-border);
}

html[data-template="estate"] .unit-card-body,
html[data-template="estate"] .unit-card-header,
html[data-template="estate"] .unit-card-footer {
  padding: 1rem 1.1rem;
}

html[data-template="estate"] .unit-card-details {
  gap: 0.5rem;
}

html[data-template="estate"] .unit-card-details > div {
  text-align: left;
}

html[data-template="estate"] .unit-card-details small {
  color: var(--color-text-light);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-template="estate"] .unit-card-details span {
  color: var(--color-text);
  font-size: 0.84rem;
  font-weight: 300;
}

@media (min-width: 769px) {
  html[data-template="estate"] .units-table-wrap {
    display: block !important;
  }

  html[data-template="estate"] .units-cards-wrap {
    display: none !important;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  html[data-template="estate"] .units-cards-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Floor plans and standards --------------------------------------- */

html[data-template="estate"] .section-floor-plans,
html[data-template="estate"] .section-standards {
  background: var(--color-bg);
}

html[data-template="estate"] .section-floor-plans {
  text-align: left;
}

html[data-template="estate"] .tabs {
  justify-content: flex-start;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
}

html[data-template="estate"] .tab-btn {
  padding: 0.7rem 1.1rem;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-template="estate"] .tab-btn:hover,
html[data-template="estate"] .tab-btn.active {
  border-bottom-color: var(--color-accent);
  background: transparent;
  color: var(--color-accent);
}

html[data-template="estate"] .floor-plan-display {
  margin: 2rem 0;
  padding: 2rem;
  border: 1px solid var(--color-border);
  background: #1b1713;
}

html[data-template="estate"] .floor-plan-img {
  max-height: 34rem;
  border: 0;
  border-radius: 0;
  filter: sepia(0.08);
}

html[data-template="estate"] .floor-plan-download {
  display: inline-flex;
}

html[data-template="estate"] .standards-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--color-border);
  background: var(--color-border);
}

html[data-template="estate"] .standard-item {
  padding: 1.7rem;
  border: 0;
  border-radius: 0;
  background: var(--color-bg-alt);
}

html[data-template="estate"] .standard-item h4 {
  margin-bottom: 0.55rem;
  color: var(--color-text);
  font-size: 1.4rem;
  font-weight: 400;
}

html[data-template="estate"] .standard-item p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

html[data-template="estate"] .standard-images {
  gap: 0.65rem;
}

html[data-template="estate"] .standard-images picture,
html[data-template="estate"] .standard-images img {
  display: block;
  max-height: 12rem;
  border-radius: 0;
  object-fit: cover;
}

/* ---- Timeline --------------------------------------------------------- */

html[data-template="estate"] .timeline-track {
  gap: 0;
  padding: 2rem 0;
}

html[data-template="estate"] .timeline-track::before {
  top: calc(2rem + 0.7rem);
  height: 1px;
  background: var(--color-border);
}

html[data-template="estate"] .timeline-dot {
  width: 1.15rem;
  height: 1.15rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
}

html[data-template="estate"] .timeline-done .timeline-dot,
html[data-template="estate"] .timeline-active .timeline-dot {
  border-color: var(--color-accent);
  background: var(--color-accent);
  box-shadow: none;
}

html[data-template="estate"] .timeline-pending .timeline-dot {
  border-color: var(--color-border);
  background: var(--color-bg);
}

html[data-template="estate"] .timeline-date {
  color: var(--color-accent);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
}

html[data-template="estate"] .timeline-label {
  color: var(--color-text-muted);
  font-size: 0.82rem;
}

/* ---- Financing -------------------------------------------------------- */

html[data-template="estate"] .financing-blocks {
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

html[data-template="estate"] .financing-block {
  padding: 1.8rem;
  border: 0;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  text-align: left;
}

html[data-template="estate"] .financing-block:hover {
  box-shadow: none;
}

html[data-template="estate"] .financing-percent {
  margin-bottom: 0.7rem;
  color: var(--color-accent);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
}

html[data-template="estate"] .financing-percent--fixed,
html[data-template="estate"] .financing-percent--custom {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

html[data-template="estate"] .financing-label {
  margin-bottom: 0.45rem;
  color: var(--color-text);
  font-size: 1.15rem;
  font-weight: 400;
}

html[data-template="estate"] .financing-note {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

html[data-template="estate"] .financing-calculator {
  max-width: 45rem;
  margin: 5rem 0 0;
  padding: 2rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg-alt);
}

html[data-template="estate"] .financing-calc-title {
  color: var(--color-text);
  font-size: 1.45rem;
  font-weight: 400;
}

html[data-template="estate"] .financing-calc-controls label {
  color: var(--color-text-muted);
}

html[data-template="estate"] .financing-unit-select {
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-text);
}

html[data-template="estate"] .financing-calc-row {
  border-bottom-color: var(--color-border);
}

html[data-template="estate"] .financing-calc-total {
  border-top-color: var(--color-text);
}

html[data-template="estate"] .financing-calc-disclaimer {
  color: var(--color-text-light);
}

/* ---- Profile and gallery --------------------------------------------- */

html[data-template="estate"] .profile-logo {
  max-height: 4rem;
  margin-bottom: 1.2rem;
  filter: grayscale(1) brightness(1.7);
}

html[data-template="estate"] .profile-name {
  margin-bottom: 0.3rem;
  color: var(--color-text);
  font-size: 2rem;
  font-weight: 400;
}

html[data-template="estate"] .profile-subtitle {
  color: var(--color-accent);
}

html[data-template="estate"] .profile-highlights {
  gap: 0.7rem;
}

html[data-template="estate"] .profile-highlights li {
  color: var(--color-text-muted);
  font-size: 0.88rem;
}

html[data-template="estate"] .profile-highlights li svg {
  color: var(--color-accent);
}

html[data-template="estate"] .profile-image picture,
html[data-template="estate"] .profile-image img {
  display: block;
  width: 100%;
  border-radius: 0;
  filter: saturate(0.7);
  object-fit: cover;
}

html[data-template="estate"] .gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

html[data-template="estate"] .gallery-item {
  border-radius: 0;
}

html[data-template="estate"] .gallery-item:hover .gallery-img {
  transform: none;
  filter: saturate(0.8) brightness(1.08);
}

html[data-template="estate"] .gallery-img {
  filter: saturate(0.72);
}

/* ---- Contact ---------------------------------------------------------- */

html[data-template="estate"] .contact-form,
html[data-template="estate"] .contact-card {
  padding: 1.8rem;
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg-alt);
}

html[data-template="estate"] .form-group label {
  color: var(--color-text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-template="estate"] .form-group input,
html[data-template="estate"] .form-group select,
html[data-template="estate"] .form-group textarea {
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  background: transparent;
  color: var(--color-text);
}

html[data-template="estate"] .form-group input:focus,
html[data-template="estate"] .form-group select:focus,
html[data-template="estate"] .form-group textarea:focus {
  border-color: var(--color-accent);
}

html[data-template="estate"] .form-success {
  color: var(--color-text-muted);
}

html[data-template="estate"] .form-success h3 {
  color: var(--color-text);
}

html[data-template="estate"] .contact-people {
  gap: 1px;
  background: var(--color-border);
}

html[data-template="estate"] .contact-card {
  border: 0;
  background: var(--color-bg-alt);
}

html[data-template="estate"] .contact-photo {
  border-radius: 50%;
  filter: saturate(0.7);
}

html[data-template="estate"] .contact-name {
  color: var(--color-text);
  font-size: 1.45rem;
  font-weight: 400;
}

html[data-template="estate"] .contact-link {
  color: var(--color-text-muted);
}

html[data-template="estate"] .contact-link:hover {
  color: var(--color-accent);
}

/* ---- Custom section variants ----------------------------------------- */

html[data-template="estate"] .features-image-row,
html[data-template="estate"] .two-columns-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5rem;
  align-items: start;
}

html[data-template="estate"] .features-image-container {
  position: relative;
  background: #1b1713;
}

html[data-template="estate"] .features-image-container picture,
html[data-template="estate"] .features-image-container img {
  display: block;
  width: 100%;
  border-radius: 0;
  filter: saturate(0.72);
  object-fit: cover;
}

html[data-template="estate"] .features-image-label {
  padding: 0.35rem 0.7rem;
  border-radius: 0;
  background: var(--tpl-label-bg);
  color: var(--tpl-label-fg);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[data-template="estate"] .features-list {
  gap: 0;
  border-top: 1px solid var(--color-border);
}

html[data-template="estate"] .feature-card {
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
}

html[data-template="estate"] .feature-card:hover {
  box-shadow: none;
}

html[data-template="estate"] .feature-icon {
  color: var(--color-accent);
}

html[data-template="estate"] .feature-card h4 {
  margin-bottom: 0.3rem;
  color: var(--color-text);
  font-size: 1.35rem;
  font-weight: 400;
}

html[data-template="estate"] .two-col-left,
html[data-template="estate"] .two-col-right {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

html[data-template="estate"] .two-columns-row h1,
html[data-template="estate"] .two-columns-row h2,
html[data-template="estate"] .two-columns-row h3,
html[data-template="estate"] .two-columns-row h4,
html[data-template="estate"] .two-columns-row h5,
html[data-template="estate"] .two-columns-row h6 {
  margin: 1.5rem 0 0.7rem;
  color: var(--color-text);
}

html[data-template="estate"] .two-columns-row ul,
html[data-template="estate"] .two-columns-row ol {
  margin: 1rem 0 1rem 1.25rem;
}

html[data-template="estate"] .two-columns-row table {
  width: 100%;
  border-collapse: collapse;
}

html[data-template="estate"] .two-columns-row th,
html[data-template="estate"] .two-columns-row td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

html[data-template="estate"] .full-width-text {
  max-width: 52rem;
  margin: 0 0 1rem;
  color: var(--color-text-muted);
  font-size: 1.15rem;
  line-height: 1.85;
  text-align: left;
}

html[data-template="estate"] .section-cta-banner {
  padding: 5rem 0;
  background: var(--tpl-cta-bg) !important;
}

html[data-template="estate"] .cta-banner-content {
  text-align: left;
}

html[data-template="estate"] .cta-banner-headline {
  margin-bottom: 1.7rem;
  color: var(--tpl-cta-ink);
  font-size: clamp(2.3rem, 4vw, 3.4rem);
  font-weight: 300;
}

html[data-template="estate"] .section-cta-banner .btn-accent {
  border-color: var(--tpl-cta-button-border);
  border-radius: 0;
  background: var(--tpl-cta-button-bg);
  color: var(--tpl-cta-button-ink);
}

html[data-template="estate"] .section-cta-banner .btn-accent:hover {
  background: var(--tpl-cta-button-hover-bg);
  color: var(--tpl-cta-button-hover-ink);
}

html[data-template="estate"] .custom-fallback {
  overflow-x: auto;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
}

/* ---- Shared buttons, modal, lightbox, footer and gate ----------------- */

html[data-template="estate"] .btn {
  border-radius: 0;
  font-weight: 400;
}

html[data-template="estate"] .btn-accent {
  background: var(--color-accent);
  color: #1b1612;
  border-color: var(--color-accent);
}

html[data-template="estate"] .btn-accent:hover {
  background: #e0ba68;
  color: #1b1612;
  filter: none;
}

html[data-template="estate"] .btn-outline {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

html[data-template="estate"] .btn-outline:hover {
  background: var(--color-accent);
  color: #1b1612;
}

html[data-template="estate"] .modal-overlay,
html[data-template="estate"] .lightbox-overlay {
  background: rgba(12, 10, 8, 0.86);
  backdrop-filter: blur(7px);
}

html[data-template="estate"] .modal-container {
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg-alt);
  box-shadow: var(--shadow-lg);
}

html[data-template="estate"] .modal-close,
html[data-template="estate"] .lightbox-close,
html[data-template="estate"] .lightbox-prev,
html[data-template="estate"] .lightbox-next {
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

html[data-template="estate"] .unit-detail-info,
html[data-template="estate"] .unit-detail-rooms {
  border-color: var(--color-border);
}

html[data-template="estate"] .unit-info-row,
html[data-template="estate"] .rooms-table td {
  border-bottom-color: var(--color-border);
}

html[data-template="estate"] .unit-info-label,
html[data-template="estate"] .unit-price-label {
  color: var(--color-text-muted);
}

html[data-template="estate"] .unit-info-value,
html[data-template="estate"] .unit-price-value {
  color: var(--color-text);
}

html[data-template="estate"] .site-gate-card {
  border: 1px solid var(--color-border);
  border-radius: 0;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

html[data-template="estate"] .site-gate-title {
  color: var(--color-text);
}

html[data-template="estate"] .site-gate-subtitle,
html[data-template="estate"] .site-gate-label {
  color: var(--color-text-muted);
}

html[data-template="estate"] .site-gate-form input[type="password"] {
  border-color: var(--color-border);
  border-radius: 0;
  background: var(--color-bg);
  color: var(--color-text);
}

html[data-template="estate"] .site-footer {
  padding: 4rem 0;
  background: #0f0d0b;
  color: var(--color-text-muted);
}

html[data-template="estate"] .footer-content {
  padding-right: 2.5rem;
  padding-left: 2.5rem;
}

html[data-template="estate"] .footer-links a {
  color: var(--color-text-muted);
}

html[data-template="estate"] .footer-links a:hover {
  color: var(--color-accent);
}

/* ---- Responsive ------------------------------------------------------- */

@media (max-width: 1024px) {
  html[data-template="estate"] .section {
    padding: 6rem 0;
  }

  html[data-template="estate"] .nav-inner,
  html[data-template="estate"] .section > .container,
  html[data-template="estate"] .footer-content {
    padding-right: 2rem;
    padding-left: 2rem;
  }

  html[data-template="estate"] .nav-menu {
    gap: 1.5rem;
  }

  html[data-template="estate"] .text-image-text {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  html[data-template="estate"] .text-image-row.layout-text-right .text-image-text {
    padding-right: 5vw;
    padding-left: 5vw;
  }

  html[data-template="estate"] .location-row,
  html[data-template="estate"] .profile-row,
  html[data-template="estate"] .contact-row,
  html[data-template="estate"] .features-image-row,
  html[data-template="estate"] .two-columns-row {
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  html[data-template="estate"] .section {
    padding: 4.75rem 0;
  }

  html[data-template="estate"] .section-headline {
    font-size: clamp(2.55rem, 4vw, 3.65rem);
  }

  html[data-template="estate"] .section-units {
    padding-top: 4.75rem;
  }

  html[data-template="estate"] .section-units .section-headline {
    margin-bottom: 2.8rem;
  }

  html[data-template="estate"] .filter-bar {
    margin: -0.5rem 0 2rem;
  }

  html[data-template="estate"] .section > .container,
  html[data-template="estate"] .footer-content {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  html[data-template="estate"] .site-nav {
    height: 72px;
  }

  html[data-template="estate"] .nav-inner {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  html[data-template="estate"] .nav-menu {
    background: #1c1814;
    padding: calc(72px + 1rem) 1.5rem 1.5rem;
  }

  html[data-template="estate"] .nav-menu a,
  html[data-template="estate"] .nav-scrolled .nav-menu a {
    border-bottom-color: var(--color-border);
    color: var(--color-text-muted);
  }

  html[data-template="estate"] .section-hero {
    height: min(720px, 100svh);
    min-height: 600px;
  }

  html[data-template="estate"] .hero-content.container {
    padding-right: 1.5rem !important;
    padding-bottom: 4.5rem;
    padding-left: 1.5rem !important;
  }

  html[data-template="estate"] .hero-title {
    font-size: clamp(3.2rem, 12vw, 5.2rem);
  }

  html[data-template="estate"] .hero-tagline {
    font-size: 1rem;
  }

  html[data-template="estate"] .section-text-image > .container {
    padding: 0;
  }

  html[data-template="estate"] .section-text-image .section-headline {
    position: static;
    width: auto;
    margin: 0;
    padding: 4.75rem 1.5rem 2.5rem;
  }

  html[data-template="estate"] .text-image-row,
  html[data-template="estate"] .text-image-row.layout-text-right,
  html[data-template="estate"] .location-row,
  html[data-template="estate"] .profile-row,
  html[data-template="estate"] .contact-row,
  html[data-template="estate"] .features-image-row,
  html[data-template="estate"] .two-columns-row {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  html[data-template="estate"] .text-image-images,
  html[data-template="estate"] .text-image-images picture,
  html[data-template="estate"] .text-image-images > img,
  html[data-template="estate"] .text-image-images picture img {
    min-height: 22rem;
    height: 22rem;
  }

  html[data-template="estate"] .text-image-text,
  html[data-template="estate"] .text-image-row.layout-text-right .text-image-text {
    order: 2;
    padding: 0 1.5rem 4rem;
  }

  html[data-template="estate"] .text-image-row.layout-text-right .text-image-images {
    order: 1;
  }

  html[data-template="estate"] .benefits-grid,
  html[data-template="estate"] .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-template="estate"] .standards-content {
    grid-template-columns: 1fr;
  }

  html[data-template="estate"] .timeline-track {
    flex-direction: column;
    gap: 1.5rem;
    padding-left: 2rem;
  }

  html[data-template="estate"] .timeline-track::before {
    top: 0.6rem;
    bottom: 0.6rem;
    left: 0.55rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  html[data-template="estate"] .timeline-item {
    flex-direction: row;
    gap: 1rem;
    align-items: flex-start;
  }

  html[data-template="estate"] .timeline-dot {
    flex-shrink: 0;
    margin-bottom: 0;
  }

  html[data-template="estate"] .timeline-content {
    text-align: left;
  }

  html[data-template="estate"] .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html[data-template="estate"] .contact-row:has(.contact-people:only-child) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html[data-template="estate"] .section {
    padding: 4rem 0;
  }

  html[data-template="estate"] .section-headline {
    font-size: 2.6rem;
  }

  html[data-template="estate"] .hero-content.container {
    padding-right: 1.25rem !important;
    padding-left: 1.25rem !important;
  }

  html[data-template="estate"] .hero-title {
    font-size: clamp(3rem, 14vw, 4.2rem);
  }

  html[data-template="estate"] .hero-tagline {
    max-width: 32ch;
  }

  html[data-template="estate"] .hero-cta {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }

  html[data-template="estate"] .section-text-image .section-headline {
    padding: 4rem 1.25rem 2rem;
  }

  html[data-template="estate"] .text-image-text {
    padding-right: 1.25rem;
    padding-left: 1.25rem;
  }

  html[data-template="estate"] .distances-grid,
  html[data-template="estate"] .benefits-grid,
  html[data-template="estate"] .stats-grid {
    grid-template-columns: 1fr;
  }

  html[data-template="estate"] .gallery-grid {
    grid-template-columns: 1fr;
  }

  html[data-template="estate"] .floor-plan-display {
    padding: 1rem;
  }

  html[data-template="estate"] .financing-calculator {
    padding: 1.25rem;
  }
}

/* ---- Unit scan hierarchy (targeted review pass) ---------------------- */
html[data-template="estate"] .units-table tbody td {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 300;
}

html[data-template="estate"] .units-table tbody td:first-child,
html[data-template="estate"] .unit-card-label {
  color: #fffaf2;
  font-family: var(--font-heading);
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

html[data-template="estate"] .units-table tbody td:has(+ td > .status-badge),
html[data-template="estate"] .unit-card-price {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 30px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1.1;
  text-align: right;
  white-space: nowrap;
}

html[data-template="estate"] .units-table tbody td:not(:first-child):not(:has(+ td > .status-badge)) {
  color: var(--color-text-muted);
}

html[data-template="estate"] .unit-card-disp,
html[data-template="estate"] .unit-card-details span {
  color: var(--color-text-muted);
}

html[data-template="estate"] .unit-card-label,
html[data-template="estate"] .unit-card-price {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 480px) {
  html[data-template="estate"] .unit-card-label {
    font-size: 22px;
  }

  html[data-template="estate"] .unit-card-price {
    font-size: 25px;
  }
}
