/* ARMERIA — homepage apartment explorer and minimalist header */
body.homepage .site-header {
  min-height: 74px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  padding: 13px 3vw;
  background: #0b292b;
  color: #f5f2ec;
  border-bottom: 1px solid rgba(255,255,255,.11);
  backdrop-filter: none;
  box-shadow: none;
}
body.homepage .site-header.scrolled {
  box-shadow: 0 7px 24px rgba(8,24,26,.12);
}
body.homepage .site-header .nav {
  grid-column: 1; grid-row: 1;
  display: flex;
  gap: clamp(15px, 1.9vw, 31px);
  align-items: center;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .065em;
}
body.homepage .site-header .nav a { opacity: .84; }
body.homepage .site-header .nav a:hover,
body.homepage .site-header .nav a:focus-visible { opacity: 1; }
body.homepage .site-header .brand {
  grid-column: 2; grid-row: 1;
  justify-self: center;
  align-items: center;
  text-align: center;
}
body.homepage .site-header .brand-main {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 33px;
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: .95;
}
body.homepage .site-header .brand-sub {
  margin-top: 7px;
  font-size: 7px;
  letter-spacing: .26em;
}
body.homepage .site-header .header-actions {
  grid-column: 3; grid-row: 1;
  display: flex;
  justify-self: end;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(15px, 1.8vw, 29px);
  white-space: nowrap;
}
body.homepage .site-header .header-contact {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .065em;
  text-transform: uppercase;
  opacity: .84;
}
body.homepage .site-header .header-contact:hover { opacity: 1; }
body.homepage .site-header .header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 121px;
  margin: 0;
  padding: 10px 17px;
  border: 1px solid rgba(245,242,236,.44);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .065em;
  text-transform: uppercase;
  opacity: .9;
  transition: background .2s ease, border-color .2s ease, opacity .2s ease;
}
body.homepage .site-header .header-cta::after { display: none; }
body.homepage .site-header .header-cta:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(245,242,236,.85);
  opacity: 1;
}
body.homepage .site-header .site-controls {
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-self: auto;
  margin: 0;
}
body.homepage .site-header .language-toggle { font-size: 10px; font-weight: 500; }
body.homepage .site-header .theme-toggle { display: none; }
html[data-theme="dark"] body.homepage .site-header {
  background: #0b292b;
  color: #f5f2ec;
  border-bottom-color: rgba(255,255,255,.11);
}

.residence-explorer {
  padding: clamp(55px, 7vw, 106px) 0 94px;
  background: #f6f5f1;
  color: #15333c;
}
.residence-explorer .content-shell { width: min(1360px, calc(100% - 10vw)); }
.explorer-overline { margin: 0 0 21px; color: #8c806e; font-size: 11px; letter-spacing: .24em; font-weight: 600; }
.explorer-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 55px; }
.explorer-intro h1 {
  margin: 0; max-width: 750px;
  color: #15333c; font: 400 clamp(39px, 4.9vw, 72px)/1.08 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
}
.explorer-intro h1 em { font-weight: 400; color: #a49781; }
.explorer-summary { display: flex; align-items: stretch; justify-content: end; color: #ad9c81; }
.explorer-stat { min-width: 116px; padding: 7px 22px; border-left: 1px solid #d7d1c8; text-align: center; }
.explorer-stat strong { display: block; font: 400 clamp(37px, 4vw, 64px)/1 Georgia, serif; white-space: nowrap; }
.explorer-stat span { display: block; margin-top: 7px; color: #53666d; font: 600 10px/1.4 Inter, sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.explorer-lead { max-width: 590px; margin: 25px 0 0; color: #66767a; font-size: 15px; line-height: 1.7; }
.explorer-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 11px; margin: 42px 0 37px; }
.explorer-filter {
  min-width: 136px; padding: 11px 22px; border: 1px solid #c7bba7;
  background: transparent; color: #766b5c; text-transform: uppercase;
  font: 600 11px/1.2 Inter, sans-serif; letter-spacing: .08em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.explorer-filter:hover { background: #ebe7df; }
.explorer-filter.is-active { background: #ad9c81; color: #fff; border-color: #ad9c81; }
.explorer-views { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.explorer-view { min-width: 0; }
.explorer-view-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 13px; }
.explorer-view-title { color: #19373e; font: 400 17px Georgia, serif; }
.explorer-view-direction { color: #8a907f; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.explorer-render {
  position: relative; min-height: 330px; overflow: hidden; isolation: isolate;
  background: #e9e8e3; border: 1px solid #e7e3db;
}
.explorer-render::after {
  content: ''; position: absolute; z-index: 0; inset: 0;
  background: linear-gradient(180deg, rgba(246,245,241,.08) 22%, rgba(12,34,39,.67) 100%);
  pointer-events: none;
}
.explorer-render > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  filter: saturate(.67) brightness(1.08);
}
.explorer-view:nth-child(2) .explorer-render > img { object-position: 70% center; transform: scale(1.11); }
.explorer-render-label {
  position: absolute; z-index: 1; top: 15px; left: 15px;
  padding: 8px 11px; background: rgba(246,245,241,.88);
  color: #3e5758; font: 600 10px Inter, sans-serif; letter-spacing: .07em;
}
.explorer-render-actions { position: absolute; z-index: 2; bottom: 17px; right: 18px; left: 18px; }
.explorer-render-actions > span {
  display: block; margin-bottom: 10px; color: #fff;
  font-size: 11px; letter-spacing: .03em;
}
.explorer-unit-list { display: flex; flex-wrap: wrap; gap: 6px; }
.explorer-unit {
  display: grid; place-items: center; min-width: 35px; min-height: 35px;
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,255,255,.93); color: #19373e;
  font: 600 12px Inter, sans-serif;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.explorer-unit:focus-visible { outline: 2px solid #5579d0; outline-offset: 3px; }
.explorer-views-note { margin: 15px 0 32px; color: #7b8787; font-size: 11px; text-align: center; }
.explorer-table-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin: 45px 0 15px; }
.explorer-table-heading h2 { margin: 0; font: 400 31px Georgia, serif; }
.explorer-table-heading span { color: #758080; font-size: 12px; }
.explorer-table-scroll { overflow-x: auto; }
.explorer-table { width: 100%; border-collapse: collapse; font-size: 12px; text-align: left; }
.explorer-table th {
  padding: 15px 14px; border-top: 1px solid #bfb5a5; border-bottom: 1px solid #d5d0c6;
  color: #66747a; font-size: 11px; font-weight: 500; white-space: nowrap;
}
.explorer-table td { padding: 15px 14px; border-bottom: 1px solid #e6e2dc; color: #455c62; white-space: nowrap; }
.explorer-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.43); }

.explorer-table td:first-child { font-weight: 600; color: #15333c; }
/* Alinha o cabeçalho "Planta" com todos os botões "Ver detalhes". */
.explorer-table th:last-child,
.explorer-table td:last-child { text-align: right; }
.explorer-table th:last-child .explorer-action-label,
.explorer-table td:last-child .explorer-detail-button {
  display: inline-block;
  width: 110px;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center;
  vertical-align: middle;
}
.explorer-detail-button {
  padding: 4px 0; border: 0; border-bottom: 1px solid #aa9b84; background: transparent;
  color: #8d7a60; font: 600 11px Inter, sans-serif; text-transform: uppercase; letter-spacing: .03em;
}
.explorer-detail-button:hover { color: #15333c; border-color: #15333c; }
.explorer-foot { display: flex; justify-content: center; margin: 28px 0 0; }
.explorer-foot a { border-bottom: 1px solid #9a8b76; padding: 7px 0; font-size: 12px; color: #746751; }
.hero.hero-secondary { min-height: min(640px, 80svh); }
.hero.hero-secondary h2 {
  max-width: 760px; margin: 0; font-size: clamp(52px, 5.5vw, 79px);
  font-weight: 400; line-height: .90; letter-spacing: -.055em;
}
.hero.hero-secondary h2 em { font-family: Georgia, 'Times New Roman', serif; font-weight: 400; }
html[data-theme="dark"] .residence-explorer { background: #172125; color: #edf1ef; }
html[data-theme="dark"] .explorer-intro h1, html[data-theme="dark"] .explorer-view-title, html[data-theme="dark"] .explorer-table-heading h2 { color: #edf1ef; }
html[data-theme="dark"] .explorer-stat { border-color: #405057; }
html[data-theme="dark"] .explorer-stat span, html[data-theme="dark"] .explorer-table td { color: #bdc8c8; }
html[data-theme="dark"] .explorer-lead, html[data-theme="dark"] .explorer-views-note, html[data-theme="dark"] .explorer-table-heading span { color: #9aa8ab; }
html[data-theme="dark"] .explorer-table th { color: #afbbbb; border-color: #435057; }
html[data-theme="dark"] .explorer-table td { border-color: #394649; }
html[data-theme="dark"] .explorer-table td:first-child { color: #edf1ef; }
html[data-theme="dark"] .explorer-table tbody tr:nth-child(odd) { background: rgba(255,255,255,.025); }

html[data-theme="dark"] .explorer-filter { color: #d7cbb8; }
html[data-theme="dark"] .explorer-filter.is-active { color: #172125; }
html[data-theme="dark"] .explorer-unit { color: #19373e; }
@media (max-width: 1200px) {
  .explorer-stat { min-width: 100px; padding: 7px 15px; }
}
@media (max-width: 1150px) {
  body.homepage .site-header {
    min-height: 72px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    padding: 12px 5vw;
  }
  body.homepage .site-header .brand {
    grid-column: 1; grid-row: 1;
    justify-self: start;
    align-items: flex-start;
    text-align: left;
  }
  body.homepage .site-header .nav { display: none; }
  body.homepage .site-header .header-actions {
    grid-column: 2; grid-row: 1;
    justify-self: end;
    gap: 0;
  }
  body.homepage .site-header .header-contact,
  body.homepage .site-header .header-cta { display: none; }
  body.homepage .site-header .menu-toggle {
    display: block;
    grid-column: 3; grid-row: 1;
    color: #f5f2ec;
  }
  .explorer-intro { grid-template-columns: 1fr; gap: 34px; }
  .explorer-summary { justify-content: start; }
}
@media (max-width: 760px) {
  .residence-explorer { padding: 55px 0 66px; }
  .residence-explorer .content-shell { width: calc(100% - 40px); }
  .explorer-intro h1 { font-size: clamp(40px, 8.5vw, 64px); }
  .explorer-views { grid-template-columns: 1fr; gap: 24px; }
  .explorer-render { min-height: 330px; }
  .explorer-filters { justify-content: start; gap: 8px; margin: 32px 0 28px; }
  .explorer-filter { flex: 1 1 68px; min-width: 0; padding: 10px 9px; font-size: 10px; }
  .explorer-table-heading { align-items: start; flex-direction: column; gap: 4px; }
  .explorer-table { min-width: 820px; }
  .explorer-stat { min-width: 0; flex: 1; padding: 4px 12px; }
  .explorer-stat:first-child { padding-left: 0; border-left: 0; }
  .explorer-stat strong { font-size: 43px; }
}
@media (max-width: 420px) {
  .explorer-intro h1 { font-size: 37px; }
  .explorer-render { min-height: 290px; }
  .explorer-render-actions { right: 11px; left: 11px; bottom: 11px; }
  .explorer-unit { min-height: 32px; min-width: 32px; }
  body.homepage .site-header .brand-main { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .explorer-filter, .explorer-unit { transition: none; }
}
/* Menu móvel alinhado com a altura e a cor do cabeçalho da homepage. */
@media (max-width: 1080px) {
  body.homepage .mobile-menu { inset: 72px 0 0; background: #0e2b2e; color: #f5f1e8; }
  html[data-theme="dark"] body.homepage .mobile-menu { background: #0b2428; color: #f5f1e8; }
}
/* Sticky header offset for internal and legacy deep links. */
#explorar, #catalogo, #apartamentos { scroll-margin-top: 74px; }
#apartamentos { display: block; height: 0; }

/* White-clay render presentation — both images are transparent WebP.
   SVG hotspot coordinates share the image's original 2048:1152 aspect ratio. */
.explorer-render {
  min-height: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f6f5f1;
  border: 0;
  overflow: visible;
}
.explorer-render::after { display: none; }
.explorer-render > img,
.explorer-view:nth-child(2) .explorer-render > img {
  position: absolute;
  display: block;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  filter: none;
  transform: none;
  pointer-events: none;
}
.explorer-render-label,
.explorer-render-actions { display: none; }
.explorer-hotspots {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
}
.explorer-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.explorer-hotspot {
  fill: rgba(21, 90, 112, 0);
  stroke: rgba(21, 90, 112, 0);
  stroke-width: 5;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  outline: none;
  transition: fill .2s ease, stroke .2s ease;
}
.explorer-hotspot:hover,
.explorer-hotspot.is-highlighted,
.explorer-hotspot:focus-visible {
  fill: rgba(41, 105, 125, .37);
  stroke: rgba(26, 83, 103, .94);
}
.explorer-tooltip {
  position: absolute;
  z-index: 5;
  min-width: 148px;
  padding: 12px 15px;
  transform: translateY(-100%);
  pointer-events: none;
  background: #11343c;
  color: #fff;
  box-shadow: 0 16px 35px rgba(5, 33, 42, .16);
  font: 12px/1.5 Inter, sans-serif;
  white-space: nowrap;
}
.explorer-tooltip[hidden] { display: none; }
.explorer-tooltip strong { display: block; font-size: 14px; font-weight: 600; }
.explorer-tooltip span { display: block; color: rgba(255,255,255,.8); }
.explorer-quick-selection {
  padding: 6px 0 0;
  text-align: center;
}
.explorer-quick-selection > span {
  display: block;
  margin-bottom: 10px;
  color: #8e887d;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .16em;
}
.explorer-quick-selection .explorer-unit-list {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}
.explorer-unit {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid #d0cbc0;
  background: transparent;
  color: #5a6c6d;
}
.explorer-unit.is-highlighted {
  background: #294e60;
  border-color: #294e60;
  color: #fff;
}
.explorer-views-note { max-width: 760px; margin: 28px auto 0; }
html[data-theme="dark"] .explorer-render { background: #e8e8e5; }
html[data-theme="dark"] .explorer-unit { color: #dbe4e5; border-color: #45555c; }
html[data-theme="dark"] .explorer-unit.is-highlighted { color: #fff; border-color: #668496; }
html[data-theme="dark"] .explorer-quick-selection > span { color: #aab7b5; }
@media (max-width: 760px) {
  .explorer-render { min-height: 0; aspect-ratio: 16 / 9; }
  .explorer-quick-selection { padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .explorer-hotspot { transition: none; }
}

/* Don't map architectural units over the temporary fallback marketing image. */
.explorer-render.is-render-missing .explorer-hotspots { display: none; }
.explorer-render.is-render-missing > img { opacity: .85; }

@media (max-width: 520px) {
  body.homepage .site-header { gap: 12px; }
  body.homepage .site-header .brand-main { font-size: 29px; }
  body.homepage .site-header .brand-sub { font-size: 6px; }
}

/* Hybrid introduction: original Armeria rhythm + Sal D'Ouro's editorial metrics. */
body.homepage .residence-explorer {
  padding: clamp(58px, 6.4vw, 94px) 0 82px;
  background: #f7f6f2;
  color: #1b3a43;
}
body.homepage .residence-explorer > .content-shell {
  width: min(1320px, calc(100% - 10vw));
}
body.homepage .residence-explorer .explorer-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .88fr);
  align-items: center;
  gap: clamp(42px, 5vw, 96px);
  min-height: 250px;
}
body.homepage .explorer-intro-heading {
  min-width: 0;
  padding: 0;
  text-align: left;
  background: transparent;
}
body.homepage .explorer-overline {
  margin: 0 0 24px;
  color: #a4937c;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .19em;
}
body.homepage .explorer-intro-heading h1 {
  max-width: 690px;
  margin: 0;
  color: #203e47;
  font: 400 clamp(41px, 4.4vw, 64px)/1.085 Georgia, 'Times New Roman', serif;
  letter-spacing: -.046em;
  text-align: left;
}
body.homepage .explorer-intro-heading h1 em {
  color: #a7967d;
  font-weight: 400;
}
body.homepage .explorer-lead {
  max-width: 490px;
  margin: 24px 0 0;
  color: #6b797e;
  font-size: 13px;
  line-height: 1.72;
}
body.homepage .explorer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 221px;
  gap: 0;
  padding: 36px clamp(12px, 2.2vw, 35px);
  color: #ae9d83;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(255,255,255,.72), transparent 64%),
    linear-gradient(130deg, #f0ece5, #f5f2ec);
  border: 1px solid #ece6dc;
}
body.homepage .explorer-stat {
  min-width: 0;
  padding: 3px 10px;
  border-left: 1px solid #d7cec2;
  text-align: center;
}
body.homepage .explorer-stat:first-child { border-left: 0; }
body.homepage .explorer-stat strong {
  display: block;
  color: #ac997e;
  font: 400 clamp(40px, 4.2vw, 60px)/1 Georgia, 'Times New Roman', serif;
  letter-spacing: -.045em;
  white-space: nowrap;
}
body.homepage .explorer-stat span {
  display: block;
  margin-top: 12px;
  color: #435962;
  font: 400 11px/1.3 Georgia, 'Times New Roman', serif;
  text-transform: uppercase;
  letter-spacing: 0;
}
body.homepage .explorer-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 46px 0 33px;
  padding: 0;
}
body.homepage .explorer-filter {
  min-width: 140px;
  min-height: 39px;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid #cbbdaa;
  border-radius: 0;
  color: #917f68;
  font: 600 10px/1.2 Inter, Arial, sans-serif;
  letter-spacing: .035em;
  text-transform: uppercase;
}
body.homepage .explorer-filter:hover { background: #eee8df; }
body.homepage .explorer-filter.is-active {
  background: #a9967a;
  border-color: #a9967a;
  color: #fff;
}
body.homepage .explorer-view-top { display: none; }

/* In dark mode, keep the two sections readable without losing the light render background. */
html[data-theme="dark"] body.homepage .residence-explorer {
  background: #172125;
  color: #edf1ef;
}
html[data-theme="dark"] body.homepage .explorer-intro-heading h1 {
  color: #edf1ef;
}
html[data-theme="dark"] body.homepage .explorer-lead { color: #a6b1b5; }
html[data-theme="dark"] body.homepage .explorer-summary {
  background: linear-gradient(130deg, #283235, #202a2d);
  border-color: #3a4548;
}
html[data-theme="dark"] body.homepage .explorer-stat { border-color: #455157; }
html[data-theme="dark"] body.homepage .explorer-stat span { color: #e0e7e7; }
html[data-theme="dark"] body.homepage .explorer-stat strong { color: #d0bda0; }
html[data-theme="dark"] body.homepage .explorer-filter {
  border-color: #897b68;
  color: #d7c7b4;
}
html[data-theme="dark"] body.homepage .explorer-filter:hover {
  background: rgba(255,255,255,.08);
}
html[data-theme="dark"] body.homepage .explorer-filter.is-active {
  background: #a9967a;
  color: #172125;
}

@media (max-width: 1050px) {
  body.homepage .residence-explorer .explorer-intro {
    grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
    gap: 30px;
    min-height: 0;
  }
  body.homepage .explorer-intro-heading h1 {
    font-size: clamp(37px, 4.4vw, 50px);
  }
  body.homepage .explorer-summary { min-height: 192px; padding: 24px 12px; }
  body.homepage .explorer-stat { padding-inline: 6px; }
  body.homepage .explorer-stat strong { font-size: clamp(38px, 4.3vw, 48px); }
  body.homepage .explorer-stat span { font-size: 10px; }
}
@media (max-width: 800px) {
  body.homepage .residence-explorer {
    padding: 57px 0 68px;
  }
  body.homepage .residence-explorer > .content-shell {
    width: calc(100% - 40px);
  }
  body.homepage .residence-explorer .explorer-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
  body.homepage .explorer-intro-heading h1 {
    font-size: clamp(39px, 6.7vw, 55px);
  }
  body.homepage .explorer-summary {
    min-height: 153px;
    padding: 26px 15px;
  }
  body.homepage .explorer-stat strong { font-size: clamp(42px, 8vw, 56px); }
  body.homepage .explorer-filters {
    margin: 32px 0 28px;
    gap: 9px;
  }
}
@media (max-width: 520px) {
  body.homepage .explorer-overline { margin-bottom: 18px; }
  body.homepage .explorer-intro-heading h1 { font-size: clamp(36px, 9.2vw, 47px); }
  body.homepage .explorer-lead { margin-top: 18px; font-size: 12px; }
  body.homepage .explorer-summary { min-height: 125px; padding: 19px 7px; }
  body.homepage .explorer-stat strong { font-size: clamp(36px, 10vw, 49px); }
  body.homepage .explorer-stat span { font-size: 9px; margin-top: 7px; }
  body.homepage .explorer-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body.homepage .explorer-filter {
    min-width: 0;
    width: 100%;
    padding: 11px 8px;
  }
}


/* Enlarged architectural perspectives — preserve 16:9 image/SVG geometry. */
body.homepage .explorer-views {
  position: relative;
  left: 50%;
  width: min(1480px, calc(100vw - 64px));
  margin: 0;
  transform: translateX(-50%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 20px);
  align-items: start;
}
body.homepage .explorer-view { min-width: 0; }
body.homepage .explorer-render {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0;
  background: transparent;
}
body.homepage .explorer-render > img,
body.homepage .explorer-view:nth-child(2) .explorer-render > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  filter: none;
  transform: none;
}
body.homepage .explorer-quick-selection {
  position: relative;
  z-index: 4;
  margin-top: -31px;
  padding-top: 0;
}
body.homepage .explorer-filters { margin-bottom: 17px; }
body.homepage .explorer-views-note { margin-top: 22px; }
@media (max-width: 760px) {
  body.homepage .explorer-views {
    width: calc(100vw - 24px);
    grid-template-columns: 1fr;
    gap: 25px;
  }
  body.homepage .explorer-quick-selection { margin-top: -15px; }
}
@media (max-width: 410px) {
  body.homepage .explorer-views { width: calc(100vw - 16px); }
  body.homepage .explorer-quick-selection { margin-top: -9px; }
}


/* Synchronized apartment cut-outs, accurately registered to 1672 × 941 render pairs. */
body.homepage .explorer-render > img { z-index: 1; }
body.homepage .explorer-hotspots { z-index: 3; }
body.homepage .explorer-quick-selection { position: relative; z-index: 4; margin-top: 10px; padding-top: 0; }
body.homepage .explorer-views-note { margin-top: 15px; }
body.homepage .explorer-region { cursor: pointer; outline: none; }
body.homepage .explorer-region-hit { pointer-events: all; }
body.homepage .explorer-region-paint { fill: #a9967a; opacity: 0; transition: opacity .22s ease; pointer-events: none; }
body.homepage .explorer-region.is-highlighted .explorer-region-paint { opacity: 1; }
body.homepage .explorer-region:focus-visible .explorer-region-hit {
  stroke: #a9967a; stroke-width: 2; vector-effect: non-scaling-stroke;
}
body.homepage .explorer-table tbody tr.is-highlighted { background: rgba(169, 150, 122, .22); }
html[data-theme="dark"] body.homepage .explorer-table tbody tr.is-highlighted { background: rgba(169, 150, 122, .28); }
body.homepage .explorer-tooltip { z-index: 7; }
@media (max-width: 760px) {
  body.homepage .explorer-quick-selection { margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  body.homepage .explorer-region-paint { transition: none; }
}

/* The colour is computed over the original render; no alternate cropped bitmap. */
body.homepage .explorer-render { aspect-ratio: 1672 / 941; isolation: isolate; }
body.homepage .explorer-region.is-highlighted .explorer-region-paint { opacity: .53; }
body.homepage .explorer-hotspots { mix-blend-mode: multiply; }
body.homepage .explorer-unit.is-highlighted { background: #a9967a; border-color: #a9967a; color: white; }

/* Keep all units matching the selected type visible; hover adds emphasis. */
body.homepage .explorer-region.is-filter-highlighted .explorer-region-paint { opacity: .42; }
body.homepage .explorer-region.is-highlighted .explorer-region-paint { opacity: .56; }

.explorer-table tbody tr[data-unit-row] { cursor: pointer; }

/* A pinned unit stays strong while another unit is previewed. */
body.homepage .explorer-region.is-hover-preview .explorer-region-paint { opacity: .24; }

/* Full apartment popup embedded below the 3D perspectives.
 * The image tabs, specifications and optional gallery use the original popup markup.
 */
body.homepage .explorer-inline-details {
  position: relative;
  display: grid;
  grid-template-rows: 0fr;
  width: min(1080px, 100%);
  margin: 0 auto;
  background: #ffffff;
  color: #17303c;
  border: 0 solid #e6e2db;
  box-shadow: none;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-18px);
  pointer-events: none;
  scroll-margin-top: 92px;
  transition:
    grid-template-rows .54s cubic-bezier(.2,.7,.2,1),
    margin .54s cubic-bezier(.2,.7,.2,1),
    opacity .38s ease,
    transform .54s cubic-bezier(.2,.7,.2,1),
    border-width .54s cubic-bezier(.2,.7,.2,1),
    box-shadow .54s ease;
}
body.homepage .explorer-inline-details > #explorerInlineContent {
  min-height: 0;
  overflow: hidden;
}
body.homepage .explorer-inline-details.is-open {
  grid-template-rows: 1fr;
  margin: 33px auto 13px;
  border-width: 1px;
  box-shadow: 0 16px 48px rgba(17, 43, 50, .075);
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
body.homepage .explorer-inline-details[hidden] { display: none !important; }
body.homepage .explorer-inline-close {
  position: absolute;
  top: 12px;
  right: 15px;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #27434b;
  font: 300 26px/1 Inter, Arial, sans-serif;
  cursor: pointer;
}
body.homepage .explorer-inline-close:hover { background: #f2f2ee; }
body.homepage .explorer-inline-close:focus-visible {
  outline: 2px solid #5579d0;
  outline-offset: 2px;
}
body.homepage .explorer-inline-details .dialog-layout {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  min-height: 560px;
}
body.homepage .explorer-inline-details .dialog-visual { min-height: 560px; }
body.homepage .explorer-inline-details .dialog-plan-stage {
  min-height: 455px;
  padding: 38px 25px 16px;
}
body.homepage .explorer-inline-details .dialog-main-image {
  width: 100%;
  max-width: 510px;
  max-height: 420px;
}
body.homepage .explorer-inline-details .dialog-copy {
  padding: 54px 38px 34px;
}
body.homepage .explorer-inline-details .dialog-copy h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 400;
  font-size: clamp(34px, 3vw, 43px);
  letter-spacing: -.04em;
}
body.homepage .explorer-inline-details .dialog-kicker { margin-bottom: 18px; }
body.homepage .explorer-inline-details .dialog-price { margin-top: 21px; font-size: 19px; }
body.homepage .explorer-inline-details .dialog-specs { margin-top: 21px; }
body.homepage .explorer-inline-details .dialog-spec-row { padding: 8px 0; }
body.homepage .explorer-inline-details .dialog-contact { margin-top: 19px; }
body.homepage .explorer-inline-details .dialog-note { margin-top: 12px; }
body.homepage .explorer-inline-details .plan-switcher {
  padding: 8px 21px 20px;
}
body.homepage .explorer-inline-details .unit-gallery {
  max-height: 420px;
  overflow-y: auto;
}
body.homepage .explorer-commercial-detail {
  padding: clamp(40px, 5vw, 70px);
  min-height: 260px;
}
body.homepage .explorer-commercial-detail h3 {
  margin: 13px 0 12px;
  font: 400 39px/1.15 Georgia, 'Times New Roman', serif;
  color: #17303c;
}
body.homepage .explorer-commercial-detail p:not(.dialog-kicker) {
  color: #657880;
  font-size: 13px;
}
body.homepage .explorer-commercial-contact {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 20px;
  background: #173b44;
  color: #fff;
  font: 600 11px/1.3 Inter, Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .07em;
}
html[data-theme="dark"] body.homepage .explorer-inline-details {
  background: #fff;
  color: #17303c;
  border-color: #d6d1c8;
}
@media (max-width: 760px) {
  body.homepage .explorer-inline-details {
    width: 100%;
  }
  body.homepage .explorer-inline-details.is-open {
    margin-top: 24px;
  }
  body.homepage .explorer-inline-details .dialog-layout {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }
  body.homepage .explorer-inline-details .dialog-visual { min-height: 345px; }
  body.homepage .explorer-inline-details .dialog-plan-stage {
    min-height: 290px;
    padding: 35px 16px 10px;
  }
  body.homepage .explorer-inline-details .dialog-main-image { max-height: 300px; }
  body.homepage .explorer-inline-details .dialog-copy {
    padding: 34px 24px 31px;
  }
  body.homepage .explorer-inline-details .dialog-copy h3 { font-size: 37px; }
  body.homepage .explorer-inline-details .plan-switcher { padding: 8px 14px 17px; }
  body.homepage .explorer-inline-details .unit-gallery { padding: 23px 15px; }
  body.homepage .explorer-inline-details .unit-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  body.homepage .explorer-inline-details {
    transition: none;
    transform: none;
  }
}


/* Mobile explorer: preserve SVG-image alignment and make touch targets usable. */
.explorer-table-mobile-hint { display: none; }
@media (max-width: 800px) {
  body.homepage .residence-explorer { padding: 50px 0 62px; }
  body.homepage .residence-explorer > .content-shell { width: calc(100% - 36px); }
  body.homepage .explorer-summary { min-height: 132px; }
  body.homepage .explorer-filters { gap: 8px; margin-top: 27px; margin-bottom: 17px; }
  body.homepage .explorer-filter { min-height: 44px; padding: 11px 8px; font-size: 10px; }
  body.homepage .explorer-views {
    width: calc(100vw - 30px);
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body.homepage .explorer-view { width: 100%; min-width: 0; }
  body.homepage .explorer-render {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1672 / 941;
  }
  body.homepage .explorer-quick-selection { margin-top: 18px; }
  body.homepage .explorer-unit-list { gap: 7px; }
  body.homepage .explorer-unit { min-height: 44px; min-width: 44px; font-size: 13px; }
  body.homepage .explorer-views-note { max-width: 480px; margin: 13px auto 25px; font-size: 12px; line-height: 1.65; }
  body.homepage .explorer-table-mobile-hint {
    display: block;
    margin: 8px 0 12px;
    font-size: 11px;
    color: #7c8686;
  }
  body.homepage .explorer-table-scroll {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #a79780 transparent;
  }
  body.homepage .explorer-table { min-width: 870px; }
  body.homepage .explorer-table td, body.homepage .explorer-table th { padding: 13px 12px; }
  body.homepage .explorer-table-scroll:focus-visible { outline: 2px solid #5579d0; outline-offset: 3px; }
  body.homepage .explorer-inline-details .dialog-copy { padding: 30px 23px 29px; }
  body.homepage .explorer-inline-details .dialog-plan-stage { padding: 29px 16px 11px; min-height: 255px; }
  body.homepage .explorer-inline-details .dialog-main-image { max-height: 285px; }
}
@media (max-width: 520px) {
  body.homepage .residence-explorer > .content-shell { width: calc(100% - 28px); }
  body.homepage .explorer-intro-heading h1 { font-size: clamp(34px, 9vw, 46px); line-height: 1.1; }
  body.homepage .explorer-overline { font-size: 9px; }
  body.homepage .explorer-lead { font-size: 13px; }
  body.homepage .explorer-summary { min-height: 120px; padding: 16px 4px; }
  body.homepage .explorer-stat { padding-inline: 4px; }
  body.homepage .explorer-stat strong { font-size: clamp(34px, 10vw, 48px); }
  body.homepage .explorer-stat span { font-size: 9px; }
  body.homepage .explorer-filters { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.homepage .explorer-filter { min-width: 0; min-height: 44px; font-size: 10px; }
  body.homepage .explorer-views { width: calc(100vw - 20px); gap: 8px; }
  body.homepage .explorer-quick-selection { margin-top: 18px; }
  body.homepage .explorer-unit-list { gap: 6px; }
  body.homepage .explorer-unit { min-height: 43px; min-width: 43px; }
  body.homepage .explorer-inline-details .dialog-copy { padding: 30px 17px 25px; }
  body.homepage .explorer-inline-details .dialog-copy h3 { font-size: 34px; }
  body.homepage .explorer-inline-details .dialog-plan-stage { min-height: 235px; }
  body.homepage .explorer-inline-details .plan-switcher { padding: 8px 12px 16px; }
  body.homepage .site-header { gap: 9px; padding-inline: 14px; }
  body.homepage .site-header .brand-main { font-size: 27px; }
  body.homepage .site-header .site-controls { gap: 0; }
  body.homepage .site-header .language-toggle { font-size: 9px; }
}
@media (hover: none) {
  body.homepage .explorer-tooltip { display: none !important; }
}

/* Small compass-style north badges: horizontal, clearly directional arrows.
   Perspective 01 points right; perspective 02 points left.
   Entirely CSS, without image assets, to avoid transparent-background artefacts. */
body.homepage .explorer-view { position: relative; }
body.homepage .explorer-view > .explorer-north-marker {
  position: absolute;
  z-index: 20;
  display: block;
  width: 56px;
  height: 43px;
  pointer-events: none;
  user-select: none;
  opacity: 1;
  visibility: visible;
}
body.homepage .explorer-view > .explorer-north-marker--right {
  top: 8%;
  left: 3.3%;
}
body.homepage .explorer-view > .explorer-north-marker--left {
  bottom: 6%;
  right: 3.3%;
}
body.homepage .explorer-north-circle {
  position: absolute;
  top: 5px;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid rgba(149, 144, 135, .14);
  background: #e3ded5;
  box-shadow: inset 0 -2px 2px rgba(74, 67, 54, .06), 0 2px 4px rgba(74, 67, 54, .07);
  color: #3d5963;
  font: 600 13px/1 Inter, Arial, sans-serif;
  text-align: center;
}
body.homepage .explorer-north-marker--right .explorer-north-circle { left: 4px; }
body.homepage .explorer-north-marker--left .explorer-north-circle { right: 4px; }
body.homepage .explorer-north-pointer {
  position: absolute;
  top: 14px;
  display: block;
  width: 13px;
  height: 16px;
  background: #607f87;
}
body.homepage .explorer-north-marker--right .explorer-north-pointer {
  right: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  transform: none;
}
body.homepage .explorer-north-marker--left .explorer-north-pointer {
  left: 0;
  clip-path: polygon(100% 0, 0 50%, 100% 100%);
  transform: none;
}
@media (max-width: 760px) {
  body.homepage .explorer-view > .explorer-north-marker--right {
    top: 7%;
    left: 2%;
  }
  body.homepage .explorer-view > .explorer-north-marker--left {
    bottom: 5%;
    right: 2%;
  }
}


/* Cleaner, compact pointer preview for the interactive building regions. */
body.homepage .explorer-tooltip {
  z-index: 8;
  min-width: 112px;
  max-width: 142px;
  padding: 8px 11px;
  border: 1px solid #dad6cf;
  border-radius: 3px;
  background: #f8f6f2;
  color: #1e3b43;
  box-shadow: 0 7px 20px rgba(25, 41, 43, .12);
  font: 11px/1.35 Inter, Arial, sans-serif;
}
body.homepage .explorer-tooltip strong {
  display: block;
  margin-bottom: 2px;
  color: #18363d;
  font-size: 12px;
  font-weight: 600;
}
body.homepage .explorer-tooltip span {
  display: block;
  color: #6e797b;
  font-size: 10px;
}
body.homepage .explorer-table tbody tr[data-unit-row] {
  transition: background-color .16s ease;
}
body.homepage .explorer-table tbody tr[data-unit-row]:hover,
body.homepage .explorer-table tbody tr[data-unit-row]:focus-within {
  background: rgba(169, 150, 122, .16);
}
body.homepage .explorer-table tbody tr[data-unit-row]:hover td:first-child,
body.homepage .explorer-table tbody tr[data-unit-row]:focus-within td:first-child {
  color: #a9967a;
}
html[data-theme="dark"] body.homepage .explorer-table tbody tr[data-unit-row]:hover,
html[data-theme="dark"] body.homepage .explorer-table tbody tr[data-unit-row]:focus-within {
  background: rgba(169, 150, 122, .18);
}
/* Keep the selected row more prominent than a simultaneous hover. */
body.homepage .explorer-table tbody tr.is-highlighted:hover,
body.homepage .explorer-table tbody tr.is-highlighted:focus-within {
  background: rgba(169, 150, 122, .22);
}
html[data-theme="dark"] body.homepage .explorer-table tbody tr.is-highlighted:hover,
html[data-theme="dark"] body.homepage .explorer-table tbody tr.is-highlighted:focus-within {
  background: rgba(169, 150, 122, .28);
}
body.homepage .explorer-views-note {
  display: grid;
  gap: 5px;
  max-width: 720px;
  margin: 17px auto 0;
  color: #7d8586;
  line-height: 1.55;
  font-size: 11px;
}
body.homepage .explorer-views-caption {
  font-weight: 600;
  color: #617173;
}
html[data-theme="dark"] body.homepage .explorer-views-caption { color: #b8c7c7; }
@media (prefers-reduced-motion: reduce) {
  body.homepage .explorer-table tbody tr[data-unit-row] { transition: none; }
}

/* The actual render and selectable SVG share a single scaled scene.
   This avoids the two layers drifting when either perspective is resized. */
body.homepage .explorer-render[data-view="01"] { --perspective-scale: 1.06; }
body.homepage .explorer-render[data-view="02"] { --perspective-scale: .94; }
body.homepage .explorer-render-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scale(var(--perspective-scale, 1));
  transform-origin: 50% 85%;
  isolation: isolate;
}
body.homepage .explorer-render-scene > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}
body.homepage .explorer-render-scene > .explorer-hotspots {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  z-index: 3;
  mix-blend-mode: multiply;
}
body.homepage .explorer-render[data-view="01"] .explorer-render-scene > img {
  filter: brightness(1.025) contrast(.91) saturate(.85);
}
body.homepage .explorer-render[data-view="02"] .explorer-render-scene > img {
  filter: brightness(1.04) contrast(.89) saturate(.85);
}
