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

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #F5F0E8;
  --stone: #E8E0D0;
  --gold: #B8965A;
  --gold-light: #D4B07A;
  --charcoal: #1C1C1A;
  --charcoal-mid: #3A3A36;
  --muted: #7A7570;
  --white: #FDFBF7;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', system-ui, sans-serif;
  --available: #4A7C59;
  --sold: #9A4A3A;
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.shell { width: min(var(--maxw), calc(100% - 40px)); margin: 0 auto; }

/* ---------- Nav ---------- */
nav.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253,251,247,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--stone);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 84px;
}
.nav-logo {
  display: inline-flex; align-items: center; height: 100%;
}
.nav-logo img {
  height: 25px; width: auto; display: block;
}
@media (max-width: 600px) {
  nav.topbar { height: 68px; padding: 0 1rem; }
  .nav-logo img { height: 22px; }
}
/* All nav items + the language pill live in a single right-aligned cluster.
   The parent <nav> uses justify-content: space-between, so .nav-cluster sits
   flush against the right edge while the logo stays on the left. */
.nav-cluster { display: flex; gap: 1.75rem; align-items: center; }
.nav-cluster a {
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}
.nav-cluster a:hover, .nav-cluster a.active { color: var(--gold); }

/* Single-button language switcher: shows ONLY the other language as flag + short native name.
   Selector is bumped to .nav-cluster .lang-switch so it wins over the generic .nav-cluster a rule. */
.nav-cluster a.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: none;
  color: var(--charcoal);
  border: 0.5px solid var(--stone);
  border-radius: 999px;
  background: transparent;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.nav-cluster a.lang-switch:hover { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.lang-flag {
  font-size: 16px;
  /* Color emoji rendering — keep as-is; font-family override avoids the system serif fallback */
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  line-height: 1;
}
.lang-name { line-height: 1; }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; color: var(--charcoal); }

/* ---------- Sections ---------- */
section { padding: 5rem 0; }
.label {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 500;
}
.section-title {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 56px);
  font-weight: 300; line-height: 1.05; color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.section-title em { font-style: italic; color: var(--gold); font-weight: 300; }
.section-body {
  font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 580px;
}
.divider { width: 48px; height: 1px; background: var(--gold); margin: 1.25rem 0; }

/* ---------- Hero (picker) ---------- */
/* Image and SVG share the same fixed aspect ratio so floor zones never drift. */
.hero {
  position: relative;
  background: var(--charcoal);
  color: var(--white);
  display: flex; flex-direction: column;
  padding: 0;            /* override the global section padding */
}
.hero-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,
      rgba(15,13,10,.78) 0%,
      rgba(15,13,10,.55) 30%,
      rgba(15,13,10,.10) 65%,
      rgba(15,13,10,0) 100%),
    linear-gradient(to bottom,
      rgba(15,13,10,.30) 0%,
      rgba(15,13,10,0) 30%,
      rgba(15,13,10,0) 60%,
      rgba(15,13,10,.65) 100%);
  pointer-events: none;
}
.hero-svg-wrap {
  position: absolute; inset: 0;
  pointer-events: none;
}
.hero-svg-wrap svg {
  width: 100%; height: 100%;
  display: block;
}
.floor-zone {
  fill: rgba(212,176,122,0);
  stroke: none;
  cursor: pointer;
  pointer-events: all;
  transition: fill .2s;
  outline: none;
}
.floor-zone:hover, .floor-zone:focus {
  fill: rgba(120,80,30,0.42);
  outline: none;
}
.floor-zone.no-available { cursor: not-allowed; }
.floor-zone.no-available:hover { fill: rgba(80,30,20,0.40); }
.floor-tooltip {
  position: absolute;
  background: rgba(28,28,26,0.95);
  color: var(--white);
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 0.5px solid var(--gold);
  pointer-events: none;
  transform: translate(-50%, -120%);
  opacity: 0;
  transition: opacity .15s;
  white-space: nowrap;
  z-index: 5;
}
.floor-tooltip.visible { opacity: 1; }
.floor-tooltip b { font-family: var(--serif); font-size: 16px; color: var(--gold-light); display: block; }
.hero-content {
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  z-index: 3;
  width: min(var(--maxw), calc(100% - 40px));
  padding: 0 0 3rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem; align-items: end;
  pointer-events: none;
}
.hero-content > * { pointer-events: auto; }
.hero-eyebrow {
  font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 1rem; font-weight: 500;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.hero-title {
  font-family: var(--serif); font-size: clamp(56px, 9vw, 110px);
  font-weight: 400; line-height: 0.95; color: var(--white);
  margin-bottom: 0.75rem; letter-spacing: -0.005em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.55);
}
.hero-title em { font-style: italic; color: var(--gold-light); font-weight: 300; }
.hero-sub {
  font-size: 16px; color: rgba(253,251,247,0.92);
  letter-spacing: 0.04em; margin-bottom: 1.75rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: var(--charcoal);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 24px; border: none; cursor: pointer; font-weight: 500;
  transition: background .15s;
}
.btn-primary:hover { background: var(--gold-light); }
.btn-ghost {
  background: transparent; color: var(--white);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 13px 24px; border: 0.5px solid rgba(253,251,247,0.4); cursor: pointer;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-light); }

.hero-stats {
  display: flex; flex-direction: column; gap: 1.25rem; text-align: right;
}
.hero-stat-num {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 600;
  color: #f3d59a;                              /* brighter than gold-light */
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.65);     /* keeps it legible on bright sky areas of the render */
}
.hero-stat-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(253,251,247,0.92);
  font-weight: 500;
  margin-top: 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.65);
}

.hero-hint {
  position: absolute; left: 50%; bottom: 0.75rem;
  transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(253,251,247,0.55);
  z-index: 4; pointer-events: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* ---------- About ---------- */
.about { background: var(--cream); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about-visual {
  background: var(--stone);
  aspect-ratio: 4/3;
  background-image: url('/images/hero-render.jpg');
  background-size: cover;
  background-position: center;
  filter: saturate(0.85);
}
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.feature { padding: 1.25rem 0; border-top: 1px solid var(--gold); }
.feature-num { font-family: var(--serif); font-size: 38px; font-weight: 300; color: var(--gold); line-height: 1; }
.feature-label { font-size: 12px; color: var(--muted); margin-top: 6px; letter-spacing: 0.04em; }

/* ---------- Teaser cards (homepage) ---------- */
.teasers { background: var(--white); }
.teaser-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stone); border: 0.5px solid var(--stone); }
.teaser {
  background: var(--white); padding: 2rem 1.75rem 1.75rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  position: relative; min-height: 200px;
  transition: background .15s, transform .15s;
}
.teaser:hover { background: var(--cream); }
.teaser-num {
  font-family: var(--serif); font-size: 56px; font-weight: 300;
  color: var(--gold); line-height: 1;
}
.teaser-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.teaser-title {
  margin-top: auto; padding-top: 1rem;
  font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--charcoal);
  border-top: 0.5px solid var(--stone);
}
.teaser-arrow {
  position: absolute; right: 1.5rem; bottom: 1.5rem;
  font-size: 22px; color: var(--gold); transition: transform .15s;
}
.teaser:hover .teaser-arrow { transform: translateX(4px); }

/* ---------- Gallery teaser (homepage) ---------- */
.gallery-teaser { background: var(--cream); }
.gallery-teaser-head {
  display: grid; grid-template-columns: 1fr auto; gap: 2rem;
  align-items: end; margin-bottom: 2.5rem;
}
/* 1 hero tile (left, spans 2×2) + 4 small tiles in a 2×2 arrangement on the right. */
.gallery-teaser-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 8px;
}
.gallery-teaser-tile {
  position: relative; overflow: hidden; background: var(--stone);
  display: block;
}
.gallery-teaser-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-teaser-tile:hover img { transform: scale(1.04); }
.gallery-teaser-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
/* Tail items belong to the lightbox set but are not rendered as tiles. */
.gallery-teaser-tile.is-hidden { display: none; }

/* LightGallery: tone the chrome to the site palette */
.lg-backdrop { background: rgba(15, 13, 10, 0.94); }
.lg-toolbar, .lg-actions .lg-prev, .lg-actions .lg-next, .lg-counter,
.lg-thumb-outer { background: transparent; color: var(--white); }
.lg-sub-html { display: none !important; }
.lg-icon { color: var(--white); }
.lg-icon:hover { color: var(--gold-light); }

/* ---------- Gallery full page ---------- */
.gallery-section {
  background: var(--white);
  padding-top: 1.5rem;        /* override the 5rem from `section` so filters hug the head */
  padding-bottom: 5rem;
}

/* Filter chips — sit above the masonry on /gallery */
.gallery-filters {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.gallery-filter {
  padding: 8px 16px;
  font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  background: transparent;
  border: 0.5px solid var(--stone);
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  transition: background .15s, border-color .15s, color .15s;
}
.gallery-filter:hover { border-color: var(--gold); color: var(--charcoal); }
.gallery-filter.is-active {
  background: var(--charcoal); color: var(--white); border-color: var(--charcoal);
}

/* Tiles hidden by the active filter are pulled from the grid layout entirely. */
.gallery-tile.is-hidden { display: none !important; }

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-auto-rows: 240px;
  gap: 8px;
  grid-auto-flow: dense;
}
.gallery-tile {
  position: relative; display: block; overflow: hidden;
  background: var(--stone);
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease, filter .2s ease;
}
.gallery-tile:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery-tile:nth-child(7n+1) { grid-row: span 2; }
.gallery-tile:nth-child(11n+5) { grid-column: span 2; }
.section-disclaimer {
  margin-top: 1rem;
  font-size: 12px; color: var(--gold);
  font-style: italic; letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .gallery-teaser-head { grid-template-columns: 1fr; }
  .gallery-teaser-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
  .gallery-teaser-tile:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .gallery-masonry { grid-auto-rows: 200px; }
  .gallery-tile:nth-child(n) { grid-row: auto; grid-column: auto; }
}
@media (max-width: 540px) {
  .gallery-teaser-grid { grid-template-columns: 1fr; }
}

/* ---------- Contact CTA strip ---------- */
.contact-cta { background: var(--cream); padding: 4rem 0; }
.contact-cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }

@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr 1fr; }
  .contact-cta-grid { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .teaser-grid { grid-template-columns: 1fr; }
}

/* ---------- Apartments ---------- */
.apt-section { background: var(--white); }
.apt-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stone); border: 0.5px solid var(--stone); margin-bottom: 2.5rem; }
.metric { background: var(--cream); padding: 1.5rem; }
.metric strong { display: block; font-family: var(--serif); font-size: 40px; font-weight: 300; color: var(--charcoal); line-height: 1; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

.filters { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.filter-summary {
  margin: 0.5rem 0 1rem;
  font-size: 13px; color: var(--muted);
  letter-spacing: 0.04em;
}
.filter-summary [data-result-count-text] {
  font-family: var(--serif); font-size: 18px; color: var(--charcoal);
  font-weight: 400;
}
.filter-summary.is-empty [data-result-count-text] { color: var(--sold); }
.filter-btn {
  font-family: var(--sans); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 7px 14px; background: transparent;
  border: 0.5px solid var(--stone); color: var(--muted); cursor: pointer;
  transition: all .15s;
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold); }
.filter-btn.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }

.table-wrap { overflow-x: auto; border-top: 1px solid var(--charcoal); }
.apt-table { width: 100%; border-collapse: collapse; min-width: 720px; }
.apt-table th, .apt-table td {
  text-align: left; padding: 16px 12px;
  border-bottom: 0.5px solid var(--stone);
  font-size: 14px;
}
.apt-table th {
  color: var(--muted); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 500;
}
.apt-table tr.row-link { cursor: pointer; transition: background .12s; }
.apt-table tr.row-link:hover { background: var(--cream); }
.apt-table tr.sold td { color: var(--muted); }
.apt-table .code { font-family: var(--serif); font-size: 17px; font-weight: 400; color: var(--charcoal); }
.apt-table tr.sold .code { color: var(--muted); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 500;
}
.status .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--available); }
.status.sold .dot { background: var(--sold); }
.status.sold { color: var(--sold); }
.status:not(.sold) { color: var(--available); }

/* ---------- Page head (dedicated pages) ---------- */
.page-head { background: var(--cream); padding: 4rem 0 2.5rem; }
.page-head .section-title { margin-top: 0.5rem; max-width: 720px; }
.page-head .section-body { margin-top: 1rem; }
.legend { display: flex; gap: 1.75rem; margin-top: 1.5rem; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.legend-swatch { width: 14px; height: 14px; border: 1px solid; }
.swatch-available { background: rgba(212,176,122,0.25); border-color: var(--gold); }
.swatch-sold { background: rgba(154,74,58,0.12); border-color: var(--sold); }

/* ---------- Picker page ---------- */
.picker-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1536 / 1024;
  overflow: hidden;
  background: var(--charcoal);
}
.picker-stage--full {
  border: 0;
  margin: 0;
  /* sits flush with surrounding sections, no max-width */
}
.picker-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.picker-svg-wrap { position: absolute; inset: 0; pointer-events: none; }
.picker-svg-wrap svg { width: 100%; height: 100%; display: block; }
.picker-bottom { background: var(--white); padding: 2.5rem 0 5rem; }

.floor-shortcuts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem;
  margin-top: 2rem; max-width: 720px; margin-left: auto; margin-right: auto;
}
.floor-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 0.9rem 0.75rem;
  border: 0.5px solid var(--stone); background: var(--cream);
  text-decoration: none; color: var(--charcoal);
  transition: background .12s, border-color .12s, color .12s;
  text-align: center;
}
.floor-chip:hover { background: var(--gold); border-color: var(--gold); color: var(--charcoal); }
.floor-chip.is-sold { opacity: .55; }
.floor-chip.is-sold:hover { background: var(--cream); border-color: var(--sold); color: var(--sold); opacity: 1; }
.floor-chip-floor {
  font-family: var(--serif);
  font-size: 18px; line-height: 1.1;
  letter-spacing: 0.02em;
}
.floor-chip-floor strong {
  font-weight: 600; color: var(--gold);
  margin-left: 2px;
}
.floor-chip:hover .floor-chip-floor strong { color: var(--charcoal); }
.floor-chip-meta {
  font-size: 11px; letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.2;
}
.floor-chip:hover .floor-chip-meta { color: var(--charcoal); }

@media (max-width: 600px) {
  .floor-shortcuts { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Floor page ---------- */
.floor-hero {
  background: var(--cream);
  padding: 3rem 0 1.5rem;
}
.floor-nav {
  display: flex; gap: 4px; flex-wrap: wrap; margin-top: 1.5rem;
}
.floor-pill {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); border: 0.5px solid var(--stone);
  font-family: var(--serif); font-size: 18px; color: var(--charcoal);
  cursor: pointer; transition: all .15s;
}
.floor-pill:hover { border-color: var(--gold); color: var(--gold); }
.floor-pill.active { background: var(--charcoal); color: var(--white); border-color: var(--charcoal); }
.floor-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem;
  margin-top: 2rem;
}
.floor-plan-frame {
  background: var(--cream); border: 0.5px solid var(--stone);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--muted); font-size: 14px;
  position: relative; overflow: hidden;
}
.floor-plan-frame.has-image { background: var(--white); padding: 0; }
.floor-plan-frame .floor-plan-link {
  display: block; position: relative;
  width: 100%; height: 100%;
  cursor: zoom-in;
  overflow: hidden;
}
.floor-plan-frame img {
  width: 100%; height: 100%;
  object-fit: cover;          /* fill the entire frame; LightGallery shows full image on click */
  display: block;
  transition: transform .4s ease;
}
.floor-plan-frame .floor-plan-link:hover img { transform: scale(1.03); }
.floor-plan-zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(28, 28, 26, 0.85);
  color: var(--white);
  border-radius: 50%;
  pointer-events: none;       /* the entire link is clickable; this is just an affordance */
  transition: background .15s, transform .15s;
}
.floor-plan-frame .floor-plan-link:hover .floor-plan-zoom {
  background: var(--gold); color: var(--charcoal);
  transform: scale(1.08);
}
.floor-plan-frame .placeholder-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
}
.apt-list { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--charcoal); }
.apt-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.25rem;
  padding: 1.25rem 0; border-bottom: 0.5px solid var(--stone);
  align-items: center; cursor: pointer; transition: padding .15s;
}
.apt-item:hover { padding-left: 0.5rem; }
.apt-item .code { font-family: var(--serif); font-size: 22px; color: var(--charcoal); }
.apt-item.sold .code { color: var(--muted); }
.apt-item-meta { font-size: 13px; color: var(--muted); }
.apt-item-area { font-family: var(--serif); font-size: 18px; color: var(--charcoal); }

/* ---------- Apartment detail ---------- */
.detail { background: var(--white); padding: 3rem 0; }
.detail-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.detail-plan {
  background: var(--cream); border: 0.5px solid var(--stone);
  min-height: 500px; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); color: var(--muted); padding: 2rem; text-align: center;
}
.detail-meta { display: flex; flex-direction: column; gap: 1.25rem; }
.detail-spec { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 0.5px solid var(--stone); }
.detail-spec dt { font-size: 12px; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.detail-spec dd { font-family: var(--serif); font-size: 18px; color: var(--charcoal); }
.detail-form { margin-top: 1.5rem; padding-top: 2rem; border-top: 1px solid var(--gold); }
.detail-form h3 { font-family: var(--serif); font-size: 24px; font-weight: 300; margin-bottom: 1rem; }

/* ---------- Office ---------- */
.offices { background: var(--cream); }
.offices-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 2rem; }
.office-visual {
  background: var(--charcoal);
  aspect-ratio: 4/3;
  position: relative; overflow: hidden;
}
.office-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(184,150,90,0.18) 0%, transparent 70%);
}
.office-specs { display: flex; flex-direction: column; gap: 1rem; }
.spec-row { display: flex; justify-content: space-between; padding-bottom: 1rem; border-bottom: 0.5px solid var(--stone); }
.spec-label { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; }
.spec-val { font-family: var(--serif); font-size: 18px; font-weight: 400; color: var(--charcoal); }

/* ---------- Parking ---------- */
.parking { background: var(--charcoal); color: var(--white); }
.parking .label { color: var(--gold-light); }
.parking .section-title { color: var(--white); }
.parking .section-body { color: rgba(253,251,247,0.6); }
.parking-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 3rem; background: rgba(253,251,247,0.08); }
.parking-cell { background: var(--charcoal); padding: 1.75rem; text-align: center; }
.parking-num { font-family: var(--serif); font-size: 48px; font-weight: 300; color: var(--gold-light); line-height: 1; }
.parking-desc { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(253,251,247,0.5); margin-top: 8px; }

/* ---------- Parking spot grid ---------- */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.5rem; margin-top: 1.5rem;
}
.spot {
  display: flex; flex-direction: column; gap: 4px;
  padding: 0.85rem; background: var(--cream); border: 0.5px solid var(--stone);
  position: relative;
}
.spot::before {
  content: ''; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: var(--available);
}
.spot.is-sold::before { background: var(--sold); }
.spot.is-sold { opacity: .55; }
.spot-code { font-family: var(--serif); font-size: 18px; color: var(--charcoal); }
.spot-area { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

/* ---------- Location & POI ---------- */
.location { background: var(--cream); }
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.map-frame {
  background: var(--stone); aspect-ratio: 4/3;
  border: 0.5px solid rgba(184,150,90,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.amenities { display: flex; flex-direction: column; gap: 0; margin-top: 1.5rem; }
.amenity { display: flex; align-items: center; gap: 1rem; padding: 0.85rem 0; border-bottom: 0.5px solid var(--stone); }
.amenity-dot { width: 6px; height: 6px; background: var(--gold); flex-shrink: 0; }
.amenity-name { font-size: 14px; color: var(--charcoal); }
.amenity-dist { font-size: 12px; color: var(--muted); margin-left: auto; font-family: var(--serif); }

/* ---------- Contact ---------- */
.contact { background: var(--charcoal); color: var(--white); }
.contact .label { color: var(--gold-light); }
.contact .section-title { color: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-top: 2rem; }
.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }
.contact-item-label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(253,251,247,0.4); margin-bottom: 6px; }
.contact-item-val { font-family: var(--serif); font-size: 19px; font-weight: 300; color: var(--white); line-height: 1.5; }
.contact-form { display: flex; flex-direction: column; gap: 0.875rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.875rem; }
.form-input {
  width: 100%; background: rgba(253,251,247,0.05);
  border: 0.5px solid rgba(253,251,247,0.18);
  padding: 13px 14px; color: var(--white);
  font-size: 13px; font-weight: 300; outline: none;
  transition: border-color .15s;
}
.form-input::placeholder { color: rgba(253,251,247,0.35); }
.form-input:focus { border-color: var(--gold); background: rgba(253,251,247,0.08); }
.form-select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%23B8965A'><polygon points='0,0 10,0 5,6'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
textarea.form-input { resize: vertical; min-height: 100px; }
.submit-btn {
  background: var(--gold); color: var(--charcoal);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 14px 28px; border: none; cursor: pointer;
  font-weight: 500; align-self: flex-start;
  transition: background .15s;
}
.submit-btn:hover { background: var(--gold-light); }

/* light variant for inquiry on detail page */
.contact-form.light .form-input {
  background: var(--cream);
  border-color: var(--stone);
  color: var(--charcoal);
}
.contact-form.light .form-input::placeholder { color: var(--muted); }
.contact-form.light .form-input:focus { border-color: var(--gold); background: var(--white); }

.alert {
  background: rgba(74,124,89,0.15);
  border: 0.5px solid var(--available);
  color: var(--available);
  padding: 12px 16px; font-size: 13px; margin-bottom: 1rem;
}
.alert.error {
  background: rgba(154,74,58,0.15);
  border-color: var(--sold);
  color: var(--sold);
}
.error-list { margin-top: 6px; padding-left: 1.25rem; font-size: 12px; }

/* ---------- Back-to-top ---------- */
/* Sits ~20px above the floating-contact FAB; hidden until the user has scrolled
   more than ~60% of one viewport height. */
.back-to-top {
  position: fixed; right: 1.5rem; bottom: calc(1.5rem + 76px);
  z-index: 201;                            /* above .floating-contact (200) */
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--charcoal); color: var(--white);
  border: 0; border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(28,28,26,0.25);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, background .15s;
}
.back-to-top:hover { background: var(--gold); color: var(--charcoal); }
.back-to-top.is-visible {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
@media (max-width: 600px) {
  .back-to-top { right: 1rem; bottom: calc(1rem + 64px); width: 40px; height: 40px; }
}

/* ---------- Floating contact widget ---------- */
.floating-contact {
  position: fixed; right: 1.5rem; bottom: 1.5rem;
  z-index: 200;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  /* The container's bounding box can extend upward (when actions are mounted but
     hidden) and cover the back-to-top button. Disable pointer events on the
     wrapper itself; children re-enable them for the parts that should be clickable. */
  pointer-events: none;
}
.floating-contact .fc-toggle,
.floating-contact.is-open .fc-actions,
.floating-contact.is-open .fc-action {
  pointer-events: auto;
}
.fc-toggle {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--charcoal);
  border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(28,28,26,0.32);
  transition: background .15s, transform .15s;
}
.fc-toggle:hover { background: var(--gold-light); transform: translateY(-2px); }
.fc-toggle .fc-toggle-close { display: none; }
.floating-contact.is-open .fc-toggle .fc-toggle-open { display: none; }
.floating-contact.is-open .fc-toggle .fc-toggle-close { display: inline-block; }

.fc-actions {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  opacity: 0; pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity .18s ease, transform .18s ease;
}
.floating-contact.is-open .fc-actions {
  opacity: 1; pointer-events: auto;
  transform: translateY(0) scale(1);
}
.fc-action {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 14px;
  background: var(--charcoal); color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(28,28,26,0.22);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  transition: background .15s, transform .15s;
  white-space: nowrap;
}
.fc-action:hover { background: var(--charcoal-mid); transform: translateX(-2px); }
.fc-action svg {
  flex-shrink: 0;
  background: var(--gold);
  color: var(--charcoal);
  border-radius: 50%;
  padding: 6px;
  width: 32px; height: 32px;
}

@media (max-width: 600px) {
  .floating-contact { right: 1rem; bottom: 1rem; }
  .fc-toggle { width: 54px; height: 54px; }
  .fc-action { padding: 9px 14px 9px 12px; font-size: 12px; }
  .fc-action svg { width: 28px; height: 28px; padding: 5px; }
}

/* ---------- Footer ---------- */
footer.site {
  background: var(--charcoal);
  border-top: 0.5px solid rgba(253,251,247,0.08);
  padding: 2rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  flex-wrap: wrap;
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img {
  height: 38px; width: auto; display: block;
  /* The PNG glyphs are dark grey on transparent; invert + brighten so they read
     against the charcoal footer. Slight desaturation keeps the warm tan accent
     from going neon. */
  filter: brightness(0) invert(1) opacity(0.7);
  transition: filter .15s;
}
.footer-logo img:hover { filter: brightness(0) invert(1) opacity(1); }
.footer-copy { font-size: 11px; color: rgba(253,251,247,0.3); letter-spacing: 0.04em; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  nav.topbar { padding: 0 1rem; }
  .nav-cluster { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-cluster.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 84px; right: 0; left: 0;
    background: var(--white); padding: 1.5rem 2rem; gap: 1.25rem;
    border-bottom: 0.5px solid var(--stone);
  }
  .nav-cluster.open a.lang-switch { align-self: flex-start; margin-top: 0.5rem; }
  .hero-content { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: row; text-align: left; flex-wrap: wrap; gap: 1.5rem 2rem; }
  .about-grid, .offices-grid, .location-grid, .contact-grid, .floor-grid, .detail-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .parking-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}
@media (max-width: 900px) {
  .hero-stage { aspect-ratio: 4 / 5; }
  .hero-img { object-position: 30% center; } /* keep residential tower in frame */
}
@media (max-width: 540px) {
  .hero-title { font-size: clamp(44px, 12vw, 72px); }
  .nav-cluster a.lang-switch { padding: 5px 9px; font-size: 11px; }
  .lang-flag { font-size: 14px; }
  footer.site { flex-direction: column; text-align: center; }
}
