/* RealCasa Imobiliária · folha de estilos do site (v2)
   Sistema RealCasa (Komet, navy + ciano, a porta do logótipo) com uma camada mais atual:
   escala de raios, barra de navegação flutuante, cartões sem caixa, movimento suave.

   Regra de formas (usar sempre esta escala):
   --r-xl 36px  painéis de secção      --r-lg 24px  fotos e cartões
   --r-md 16px  campos e mosaicos       --r-pill     botões, etiquetas, chips, navegação
   A porta do logótipo mantém a sua própria geometria. */

@font-face { font-family: "Komet"; src: url("../fonts/Komet-Light.woff") format("woff"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Komet"; src: url("../fonts/Komet-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Komet"; src: url("../fonts/Komet-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Komet"; src: url("../fonts/Komet-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Komet"; src: url("../fonts/Komet-Heavy.woff") format("woff"); font-weight: 800; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --navy: #061e5e;
  --navy-deep: #04153f;
  --navy-mid: #0b2a78;
  --navy-line: #1c3a82;
  --cyan: #00abc7;
  --cyan-soft: #d6f1f6;
  --white: #ffffff;

  --ground: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #e9eef7;
  --ink: var(--navy);
  --ink-muted: #4a5a80;
  --hair: rgba(6, 30, 94, .10);
  --frame: var(--navy);
  --accent-ink: var(--navy);
  --btn-bg: var(--navy);
  --btn-ink: var(--white);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(6, 30, 94, .08);
  --glass-hi: rgba(255, 255, 255, .7);
  --shadow-sm: 0 1px 2px rgba(6, 30, 94, .06), 0 8px 24px -14px rgba(6, 30, 94, .28);
  --shadow-lg: 0 2px 4px rgba(6, 30, 94, .04), 0 30px 60px -30px rgba(6, 30, 94, .35);
  --focus: var(--cyan);
  --error: #b3261e;

  --font: "Komet", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 36px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 999px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
  --nav-top: calc(env(safe-area-inset-top, 0px) + 14px);
  --nav-h: 64px;
  --under-nav: calc(var(--nav-top) + var(--nav-h) + 16px);

  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: var(--navy-deep);
    --surface: #0a2466;
    --surface-2: #112d74;
    --ink: var(--white);
    --ink-muted: #b4c2e0;
    --hair: rgba(255, 255, 255, .10);
    --frame: var(--white);
    --accent-ink: var(--cyan);
    --btn-bg: var(--cyan);
    --btn-ink: var(--navy);
    --glass: rgba(6, 30, 94, .66);
    --glass-line: rgba(255, 255, 255, .10);
    --glass-hi: rgba(255, 255, 255, .12);
    --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .6);
    --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .7);
    --error: #ffb4ab;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: var(--navy-deep);
  --surface: #0a2466;
  --surface-2: #112d74;
  --ink: var(--white);
  --ink-muted: #b4c2e0;
  --hair: rgba(255, 255, 255, .10);
  --frame: var(--white);
  --accent-ink: var(--cyan);
  --btn-bg: var(--cyan);
  --btn-ink: var(--navy);
  --glass: rgba(6, 30, 94, .66);
  --glass-line: rgba(255, 255, 255, .10);
  --glass-hi: rgba(255, 255, 255, .12);
  --shadow-sm: 0 8px 24px -14px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --error: #ffb4ab;
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--under-nav); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; min-height: 100dvh;
  background: var(--ground); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* grão muito subtil, fixo, para tirar a planura digital */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
svg { flex: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 70; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.num { font-variant-numeric: tabular-nums; }
main { padding-top: var(--under-nav); }

/* ---------- Tipografia ---------- */
.hl { font-weight: 300; letter-spacing: -.025em; line-height: 1.02; text-wrap: balance; }
.hl b, .hl .wb { font-weight: 800; }
.hl-1 { font-size: clamp(2.6rem, 1.3rem + 4.4vw, 5rem); }
.hl-2 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem); line-height: 1.06; }
.hl-3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); line-height: 1.12; letter-spacing: -.015em; }
.lead { font-size: clamp(1.125rem, 1.04rem + .4vw, 1.3125rem); line-height: 1.5; font-weight: 300; max-width: 44ch; text-wrap: pretty; }
.muted { color: var(--ink-muted); }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hair); font-size: .875rem; font-weight: 500; }
.kicker i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--cyan); color: var(--navy); font-style: normal; font-size: .9rem; }
.prose p { max-width: 65ch; text-wrap: pretty; }
.prose p + p { margin-top: 1em; }

/* Revelação palavra a palavra nos títulos */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .anim .w > span { transform: translateY(105%); animation: word-up 1s var(--spring) forwards; animation-delay: calc(80ms + var(--i) * 55ms); }
  .rise { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: var(--d, .35s); }
}
@keyframes word-up { to { transform: none; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 6px 6px 6px 24px; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-ink); border: 0;
  font-weight: 700; font-size: 1rem; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--shadow-sm);
  transition: transform .5s var(--spring), background-color .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), var(--shadow-lg); }
.btn:active { transform: scale(.98); }
.btn-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16); font-size: 1.2rem; transition: transform .6s var(--spring); }
.btn:hover .btn-ic { transform: translate(3px, -1px) scale(1.06); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); }
.btn-ghost .btn-ic { background: var(--surface-2); }
.btn-cyan { background: var(--cyan); color: var(--navy); }
.btn-cyan .btn-ic { background: rgba(6, 30, 94, .12); }
.btn-sm { min-height: 48px; padding-left: 20px; gap: 10px; font-size: .9375rem; }
.btn-sm .btn-ic { width: 36px; height: 36px; font-size: 1.05rem; }
.btn-block { width: 100%; justify-content: space-between; }
.btn-plain { padding-right: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.link-arrow .la-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .6s var(--spring), background-color .3s; }
.link-arrow:hover .la-ic { transform: translateX(4px); background: var(--cyan); color: var(--navy); }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair); font-size: 1.25rem; cursor: pointer; transition: transform .5s var(--spring), background-color .3s, opacity .3s; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- Navegação flutuante ---------- */
.nav-shell { position: fixed; z-index: 40; top: var(--nav-top); left: 0; right: 0; padding-inline: var(--gutter); pointer-events: none; }
.nav-pill {
  pointer-events: auto; max-width: calc(var(--wrap) - 2 * var(--gutter)); height: var(--nav-h); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 8px 0 14px;
  border-radius: var(--r-pill); background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 12px 32px -20px rgba(6, 30, 94, .45);
  transition: box-shadow .5s var(--ease), background-color .5s var(--ease);
}
.is-scrolled .nav-pill { box-shadow: inset 0 1px 0 var(--glass-hi), 0 18px 44px -18px rgba(6, 30, 94, .5); }
@media (prefers-reduced-motion: no-preference) {
  .nav-pill { animation: nav-in .9s var(--spring) both; }
}
@keyframes nav-in { from { transform: translateY(-140%); } to { transform: none; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .nav-pill { background: var(--surface); } }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px; border-radius: var(--r-pill); }
.brand img { height: 36px; width: auto; }
.logo-dark { display: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { padding: 10px 16px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; transition: background-color .3s var(--ease); }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--surface-2); font-weight: 700; }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-tel { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: var(--r-pill); font-weight: 700; text-decoration: none; }
.nav-tel:hover { background: var(--surface-2); }
.nav-tel svg { font-size: 1.2rem; }
.menu-btn { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface-2); cursor: pointer; }
.menu-btn span { position: absolute; left: 15px; right: 15px; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform .6s var(--spring); }
.menu-btn span:nth-child(1) { top: 20px; }
.menu-btn span:nth-child(2) { top: 27px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 35; display: flex; flex-direction: column; gap: 4px;
  padding: calc(var(--under-nav) + 12px) var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  background: var(--glass); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%);
  overflow-y: auto;
}
.mobile-menu .mm-link { font-size: 2.4rem; font-weight: 800; letter-spacing: -.025em; text-decoration: none; padding: 6px 0; }
.mobile-menu .mm-foot { margin-top: auto; display: grid; gap: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .mobile-menu:not([hidden]) .mm-link { animation: mm-in .8s var(--spring) both; }
  .mobile-menu .mm-link:nth-child(2) { animation-delay: .05s; }
  .mobile-menu .mm-link:nth-child(3) { animation-delay: .1s; }
  .mobile-menu .mm-link:nth-child(4) { animation-delay: .15s; }
}
@keyframes mm-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) {
  .nav, .nav-tel, .nav-cta { display: none; }
  .menu-btn { display: block; }
}

/* ---------- Secções e painéis ---------- */
.section { padding-block: clamp(72px, 9vw, 136px); }
.section-tight { padding-block: clamp(48px, 6vw, 88px); }
/* Os painéis alinham pelas mesmas margens do conteúdo (.wrap), para todas as secções ficarem na mesma linha */
.panel { width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--wrap) - 2 * var(--gutter)); margin-inline: auto; border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate; }
.section-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding-top: 4px; }
.hero .panel { background: var(--surface); box-shadow: var(--shadow-sm); }
.hero .panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 70% at 88% 18%, rgba(0, 171, 199, .16), transparent 70%),
    radial-gradient(50% 60% at 0% 100%, rgba(6, 30, 94, .07), transparent 70%);
}
.hero .panel::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 118px; z-index: -1; opacity: .55; pointer-events: none;
  background: url("../img/marca/padrao-branco.svg") left bottom / 208px 240px repeat-x;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, transparent 55%); mask-image: linear-gradient(90deg, #000 0%, transparent 55%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding: clamp(28px, 4.5vw, 64px) clamp(20px, 4vw, 56px) clamp(40px, 5vw, 72px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-content: center; justify-items: start; min-width: 0; }
.hero-alt { font-weight: 500; }
.hero-alt a { font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Pesquisa */
.search {
  width: 100%; max-width: 620px; display: flex; align-items: center; gap: 0; padding: 6px;
  border-radius: var(--r-pill); background: var(--ground); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-sm);
}
.sf { position: relative; flex: 1; min-width: 0; display: grid; gap: 0; padding: 8px 18px; border-radius: var(--r-pill); transition: background-color .3s; }
.sf:hover { background: var(--surface); }
.sf + .sf::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--hair); }
.sf label { font-size: .75rem; font-weight: 500; color: var(--ink-muted); }
.sf select { appearance: none; -webkit-appearance: none; border: 0; background: transparent; padding: 0; font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%; text-overflow: ellipsis; }
.sf select:focus { outline: none; }
.sf:focus-within { background: var(--surface); box-shadow: 0 0 0 2px var(--cyan); }
.search-go { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--btn-bg); color: var(--btn-ink); font-size: 1.4rem; cursor: pointer; transition: transform .5s var(--spring); }
.search-go:hover { transform: scale(1.05); }
.search-go:active { transform: scale(.96); }
@media (max-width: 600px) {
  .search { flex-direction: column; align-items: stretch; border-radius: var(--r-lg); padding: 8px; }
  .sf { border-radius: var(--r-md); padding: 10px 14px; }
  .sf + .sf::before { left: 14px; right: 14px; top: 0; bottom: auto; width: auto; height: 1px; }
  .search-go { width: 100%; height: 52px; border-radius: var(--r-pill); margin-top: 6px; }
}

/* ---------- A porta (HouseFrame) ---------- */
.door-wrap { position: relative; }
.door { position: relative; display: block; aspect-ratio: 180 / 154; container-type: inline-size; text-decoration: none; color: var(--navy); width: 100%; }
.door-photo {
  position: absolute; left: 22.222%; top: 2.922%; width: 55.556%; height: 84.091%;
  object-fit: cover; clip-path: polygon(0% 100%, 0% 38.61%, 50% 0%, 100% 38.61%, 100% 100%);
  background: var(--surface-2); transition: transform 1.4s var(--ease);
}
.door:hover .door-photo { transform: scale(1.03); }
.door-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.door-stroke { fill: none; stroke: var(--frame); stroke-width: 6; stroke-linejoin: round; stroke-linecap: round; }
.door-wedge, .door-bar { fill: var(--cyan); }
.door-price { position: absolute; top: 88.96%; height: 10.39%; left: 3%; display: flex; align-items: center; white-space: nowrap; color: var(--navy); font-weight: 800; font-size: 5.4cqw; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.door-card {
  position: absolute; left: -4%; top: 42%; display: flex; align-items: center; gap: 14px; max-width: 58%;
  padding: 10px 10px 10px 18px; border-radius: var(--r-pill); text-decoration: none;
  background: var(--glass); -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-lg);
}
.door-card strong { display: block; font-weight: 800; font-size: .9375rem; line-height: 1.2; }
.door-card span { display: block; font-size: .8125rem; color: var(--ink-muted); line-height: 1.3; }
.door-card .dc-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-ink); transition: transform .6s var(--spring); }
.door-card:hover .dc-ic { transform: rotate(45deg); }
@media (max-width: 600px) { .door-card { position: relative; left: auto; top: auto; max-width: none; width: 100%; margin-top: 18px; justify-content: space-between; } }
@media (prefers-reduced-motion: no-preference) {
  .door-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.8s var(--ease) .25s forwards; }
  .door-photo:not(.is-back) { animation: photo-in 1.4s var(--ease) .15s both; }
  .door-wedge, .door-bar, .door-price { animation: fade .9s var(--ease) 1s both; }
  .door-card { animation: card-in 1.1s var(--spring) 1.1s both; }
  @media (max-width: 600px) { .door-card { animation-name: fade; } }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }
@keyframes card-in { from { opacity: 0; transform: translate(24px, 12px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Cartão de imóvel ---------- */
.card { position: relative; min-width: 0; }
.card-link { display: grid; gap: 16px; text-decoration: none; color: inherit; border-radius: var(--r-lg); }
.card-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; border-radius: var(--r-lg); background: var(--surface-2); isolation: isolate; box-shadow: var(--shadow-sm); }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(to top, rgba(4, 21, 63, .35), transparent); pointer-events: none; }
.card:hover .card-media img { transform: scale(1.05); }
.price-pill { position: absolute; z-index: 1; left: 12px; bottom: 12px; display: inline-flex; align-items: baseline; gap: 3px; padding: 9px 16px; border-radius: var(--r-pill); background: var(--cyan); color: var(--navy); font-weight: 800; font-size: 1.125rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; box-shadow: 0 8px 20px -8px rgba(4, 21, 63, .55); transition: transform .6s var(--spring); }
.price-pill small { font-size: .75rem; font-weight: 500; }
.card:hover .price-pill { transform: translateY(-3px); }
.card-go { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--navy); font-size: 1.15rem; opacity: 0; transform: translateY(8px) scale(.9); transition: opacity .4s var(--ease), transform .6s var(--spring); }
.card:hover .card-go, .card-link:focus-visible .card-go { opacity: 1; transform: none; }
.flag { position: absolute; z-index: 1; top: 12px; left: 12px; padding: 6px 12px; border-radius: var(--r-pill); font-size: .8125rem; font-weight: 700; background: rgba(255, 255, 255, .94); color: var(--navy); }
.flag-reserved { background: var(--navy); color: var(--white); }
.flag-sold { background: var(--navy); color: var(--white); }
.card.is-reserved .card-media img { filter: saturate(.75); }
.card-body { display: grid; gap: 8px; padding-inline: 4px; }
.card-title { font-size: 1.3125rem; line-height: 1.2; font-weight: 300; letter-spacing: -.015em; }
.card-title b { font-weight: 800; }
.card-loc { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: .9375rem; }
.card-loc svg { font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-size: .875rem; font-weight: 500; line-height: 1.3; }
.chip svg { font-size: 1.05rem; color: var(--ink-muted); }
@media (prefers-reduced-motion: no-preference) {
  .card.entering { animation: rise .7s var(--ease) both; }
}

/* Carrossel */
.rail-wrap { position: relative; }
.rail {
  --pad: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(272px, 30vw, 392px); gap: clamp(16px, 2vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
  padding: 4px var(--pad) 24px; scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging a { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
.rail .card-media { aspect-ratio: 5 / 4; }
.rail-ctrl { display: flex; gap: 8px; }

.grid-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 40px) clamp(16px, 2vw, 28px); }
@media (max-width: 1024px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-cards { grid-template-columns: 1fr; } }

/* ---------- Zonas (mosaico com fotografias) ---------- */
.zones-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: repeat(2, clamp(200px, 20vw, 270px)); gap: clamp(12px, 1.5vw, 18px); }
.zones-grid > :first-child { grid-row: 1 / span 2; }
.zones-grid.n4 > :nth-child(4) { grid-column: 2 / span 2; }
.zones-grid.auto { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-template-rows: none; grid-auto-rows: 260px; }
.zones-grid.auto > :first-child { grid-row: auto; }
.zone { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: clamp(18px, 2vw, 26px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: var(--white); text-decoration: none; background: var(--navy); }
.zone img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.zone::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(4, 21, 63, .82) 0%, rgba(4, 21, 63, .25) 50%, rgba(4, 21, 63, 0) 75%); }
.zone:hover img { transform: scale(1.06); }
.zone-name { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.5rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.02; }
.zone-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.zone-count { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .18); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); font-size: .875rem; font-weight: 500; }
.zone-go { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 1.15rem; transition: transform .6s var(--spring); }
.zone:hover .zone-go { transform: rotate(-45deg); }
@media (max-width: 860px) {
  .zones-grid, .zones-grid.n4 { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 200px; }
  .zones-grid > :first-child { grid-row: auto; grid-column: 1 / -1; height: 260px; }
  .zones-grid.n4 > :nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .zones-grid, .zones-grid.n4 { grid-template-columns: 1fr; } .zones-grid > * { grid-column: auto !important; } }

/* ---------- Painel navy de proprietários (passos que empilham) ---------- */
.sell { background: var(--navy); color: var(--white); --ink-muted: #b4c2e0; overflow: visible; }
.sell::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 118px; border-radius: var(--r-xl) var(--r-xl) 0 0; z-index: -1; opacity: .9;
  background: url("../img/marca/padrao-navy.svg") center top / 208px 240px repeat-x;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); mask-image: linear-gradient(to bottom, #000 30%, transparent);
}
.sell::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--r-xl); pointer-events: none; background: radial-gradient(50% 50% at 90% 10%, rgba(0, 171, 199, .22), transparent 70%); }
.sell-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); padding: clamp(120px, 12vw, 160px) clamp(20px, 5vw, 72px) clamp(56px, 7vw, 96px); align-items: start; }
.sell-copy { display: grid; gap: 22px; align-content: start; justify-items: start; position: sticky; top: calc(var(--under-nav) + 24px); }
.sell-copy .kicker { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: var(--white); }
.sell-copy .lead { color: #d5deef; }
.stack { display: grid; gap: 18px; padding-bottom: 4vh; }
.step {
  position: sticky; top: calc(var(--under-nav) + 24px + var(--i) * 20px);
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  min-height: 190px; padding: 28px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, #0e2f82, var(--navy-mid));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .10), 0 -14px 40px -20px rgba(0, 0, 0, .55);
}
.step-n { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--cyan); color: var(--navy); font-weight: 800; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.step p { margin-top: 8px; color: #d5deef; font-weight: 300; font-size: 1.0625rem; max-width: 40ch; }
.step-ic { position: absolute; right: 24px; top: 24px; font-size: 2rem; color: rgba(255, 255, 255, .3); }
@media (max-width: 900px) {
  .sell-grid { grid-template-columns: 1fr; }
  .sell-copy { position: static; }
  .step { position: relative; top: auto; min-height: 0; }
}

/* ---------- Agência ---------- */
.agency-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: stretch; }
.agency-copy { display: grid; gap: 24px; align-content: center; justify-items: start; }
.contact-tiles { display: grid; gap: 10px; width: 100%; max-width: 480px; }
.ct { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); text-decoration: none; transition: transform .5s var(--spring), box-shadow .3s; }
a.ct:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--hair), var(--shadow-sm); }
.ct-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 1.3rem; }
.ct small { display: block; font-size: .8125rem; color: var(--ink-muted); }
.ct strong { font-weight: 700; }
.ct-go { font-size: 1.1rem; color: var(--ink-muted); }
.logo-panel { position: relative; display: grid; place-items: center; min-height: 420px; border-radius: var(--r-xl); background: var(--surface); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-sm); }
.logo-panel::before { content: ""; position: absolute; inset: auto 0 0 0; height: 118px; z-index: -1; background: url("../img/marca/padrao-branco.svg") center bottom / 208px 240px repeat-x; opacity: .9; }
.logo-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 55% at 50% 40%, rgba(0, 171, 199, .12), transparent 70%); }
.logo-panel img { width: min(62%, 320px); height: auto; }
@media (max-width: 900px) { .agency-grid { grid-template-columns: 1fr; } .logo-panel { min-height: 280px; } }

/* ---------- Rodapé ---------- */
.site-footer { margin-top: clamp(40px, 6vw, 80px); background: var(--navy-deep); color: var(--white); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: clamp(56px, 7vw, 96px) 0 calc(28px + env(safe-area-inset-bottom, 0px)); position: relative; overflow: hidden; isolation: isolate; }
:root[data-theme="dark"] .site-footer { background: #030f2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .site-footer { background: #030f2e; } }
.site-footer::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40% 60% at 100% 0%, rgba(0, 171, 199, .18), transparent 70%); }
.foot-cta { display: flex; align-items: end; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: clamp(40px, 5vw, 64px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot-cta .hl { max-width: 16ch; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; padding-top: 40px; }
.foot-grid img { width: 132px; height: auto; }
.foot-grid h2 { font-size: .875rem; font-weight: 500; color: #b4c2e0; margin-bottom: 14px; }
.foot-grid ul { display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; color: #e6ecf7; transition: color .2s; }
.foot-grid a:hover { color: var(--cyan); }
.foot-grid address { font-style: normal; color: #e6ecf7; }
.foot-legal { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .875rem; color: #b4c2e0; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 460px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Listagem ---------- */
.page-top { padding-top: 4px; }
.page-top .panel { background: var(--surface); box-shadow: var(--shadow-sm); padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 72px); display: grid; gap: 16px; }
.page-top .panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 80% at 95% 0%, rgba(0, 171, 199, .14), transparent 70%); }
.filters { position: sticky; z-index: 20; top: var(--under-nav); margin-top: 20px; }
.filters-bar {
  margin-inline: auto; display: flex; align-items: center; gap: 8px; padding: 6px;
  border-radius: var(--r-pill); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-sm);
  overflow-x: auto; scrollbar-width: none;
}
.filters-bar::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; flex: none; padding: 4px; border-radius: var(--r-pill); background: var(--surface-2); }
.seg button { border: 0; background: none; padding: 0 14px; min-height: 40px; border-radius: var(--r-pill); font-weight: 700; cursor: pointer; white-space: nowrap; transition: background-color .3s var(--ease), color .3s; }
.seg button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-ink); }
.pill-select { position: relative; flex: none; }
.pill-select select { appearance: none; -webkit-appearance: none; min-height: 48px; padding: 0 34px 0 16px; border-radius: var(--r-pill); border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 500; cursor: pointer; }
.pill-select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.pill-select select:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.filters-bar .push { margin-left: auto; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 36px 24px; flex-wrap: wrap; }
.results-count { font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.linklike { background: none; border: 0; padding: 0; font-weight: 700; text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 5px; cursor: pointer; }
.empty { display: grid; gap: 16px; justify-items: start; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }

/* ---------- Página do imóvel ---------- */
.crumb { display: flex; align-items: center; gap: 12px; padding-block: 8px 20px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 10px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 700; text-decoration: none; transition: transform .5s var(--spring); }
.back:hover { transform: translateX(-3px); }
.back svg { font-size: 1.15rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; height: clamp(320px, 44vw, 580px); }
.gallery button { position: relative; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; border-radius: var(--r-lg); }
.gallery button img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.gallery button:hover img { transform: scale(1.04); }
.gallery button:first-child { grid-row: 1 / span 2; }
.all-photos { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .94); color: var(--navy); font-weight: 700; font-size: .875rem; box-shadow: var(--shadow-sm); }
@media (max-width: 720px) {
  .gallery { display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; }
  .all-photos { display: none; }
}
.listing { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 5vw, 72px); padding-block: 40px clamp(64px, 8vw, 112px); align-items: start; }
.listing-main { display: grid; gap: 44px; }
.listing-title { display: grid; gap: 16px; justify-items: start; }
.status-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.status-row .flag { position: static; box-shadow: inset 0 0 0 1px var(--hair); }
.ref { font-size: .875rem; color: var(--ink-muted); }
.facts { display: flex; flex-wrap: wrap; gap: 10px; }
.facts > .fact { flex: 1 1 104px; }
.fact { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.fact-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); font-size: 1.25rem; }
.fact dt { font-size: .8125rem; color: var(--ink-muted); }
.fact dd { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.fact.is-missing dd { font-weight: 500; font-size: 1rem; color: var(--ink-muted); }
.block-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.015em; margin-bottom: 16px; }
.ticks { display: flex; flex-wrap: wrap; gap: 8px; }
.ticks li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 500; }
.ticks svg { font-size: 1.1rem; width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--cyan); color: var(--navy); }
.map-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 22px 22px 22px 26px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); position: relative; overflow: hidden; isolation: isolate; }
.map-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url("../img/marca/padrao-branco.svg") right -40px bottom -118px / 208px 240px repeat-x; opacity: .6; }
.map-card p + p { margin-top: 4px; }
@media (max-width: 560px) { .map-card { grid-template-columns: 1fr; } }

.aside { position: sticky; top: calc(var(--under-nav) + 12px); padding: 6px; border-radius: 30px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.aside-core { border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-sm); padding: 26px; display: grid; gap: 14px; }
.aside-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.status-pill { padding: 6px 12px; border-radius: var(--r-pill); background: var(--cyan); color: var(--navy); font-size: .8125rem; font-weight: 700; }
.aside-price { font-size: clamp(2.2rem, 1.8rem + 1.2vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.aside-price small { font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.aside-tel { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--ground); }
.aside-tel a { font-weight: 800; font-size: 1.1875rem; text-decoration: none; }
.copy-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 6px 0; font-weight: 700; cursor: pointer; justify-self: start; }
.copy-btn svg { font-size: 1.2rem; }
.small-print { font-size: .8125rem; color: var(--ink-muted); line-height: 1.5; }
@media (max-width: 1024px) { .listing { grid-template-columns: 1fr; } .aside { position: static; } }
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 20px;
    border-radius: var(--r-pill); background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid var(--glass-line); box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-lg);
  }
  .sticky-cta strong { font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
  .sticky-cta .btn { min-height: 48px; }
  body.has-sticky .site-footer { padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px)); }
}

/* Galeria em ecrã inteiro */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(3, 15, 46, .96); color: var(--white); }
.lightbox::backdrop { background: rgba(3, 15, 46, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) var(--gutter) 16px; }
.lb-stage { display: grid; place-items: center; min-height: 0; padding: 0 var(--gutter); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-md); }
.lb-nav { display: flex; justify-content: center; gap: 12px; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.lightbox .icon-btn { background: rgba(255, 255, 255, .1); color: var(--white); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* ---------- Vender ---------- */
.sell-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; padding-block: clamp(24px, 4vw, 56px) clamp(56px, 7vw, 96px); }
.sell-hero-grid .copy { display: grid; gap: 24px; justify-items: start; position: sticky; top: calc(var(--under-nav) + 24px); }
.shell { padding: 6px; border-radius: calc(var(--r-xl) + 6px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hair); }
.form-panel { border-radius: var(--r-xl); background: var(--surface); padding: clamp(24px, 3vw, 40px); display: grid; gap: 22px; box-shadow: inset 0 1px 0 var(--glass-hi), var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 7px; min-width: 0; align-content: start; }
.field label { font-size: .875rem; font-weight: 700; }
.input, .select, .textarea {
  appearance: none; -webkit-appearance: none; width: 100%; height: 52px; padding: 0 16px; line-height: 52px;
  border-radius: var(--r-md); border: 0; background: var(--ground); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(6, 30, 94, .22);
  transition: box-shadow .3s var(--ease);
}
:root[data-theme="dark"] .input, :root[data-theme="dark"] .select, :root[data-theme="dark"] .textarea { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .input, :root:not([data-theme="light"]) .select, :root:not([data-theme="light"]) .textarea { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); } }
.select { padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; }
.textarea { height: auto; min-height: 120px; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--cyan); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--error); }
.help { font-size: .8125rem; color: var(--ink-muted); }
.error { font-size: .8125rem; color: var(--error); font-weight: 700; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: .9375rem; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy); }
.form-result { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-md); background: var(--ground); }
.form-result pre { white-space: pre-wrap; font: inherit; font-size: .9375rem; margin: 0; padding: 14px; border-radius: 12px; background: var(--surface); }
.docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.doc { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--hair); }
.doc-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--cyan-soft); color: var(--navy); font-size: 1.5rem; }
.doc strong { display: block; font-size: 1.1875rem; font-weight: 800; margin-bottom: 4px; }
@media (max-width: 900px) { .sell-hero-grid { grid-template-columns: 1fr; } .sell-hero-grid .copy { position: static; } }
@media (max-width: 600px) { .form-grid, .docs { grid-template-columns: 1fr; } }

/* ---------- Páginas de texto ---------- */
.text-panel { background: var(--surface); box-shadow: var(--shadow-sm); padding: clamp(28px, 5vw, 72px) clamp(20px, 5vw, 72px); }
.text-page { display: grid; gap: 24px; max-width: 760px; }
.text-page h2 { font-size: 1.375rem; font-weight: 800; margin-top: 16px; }
.text-page ul.plain { display: grid; gap: 8px; }
.text-page ul.plain a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: var(--r-md); background: var(--ground); font-weight: 700; text-decoration: none; }
.text-page ul.plain a:hover { background: var(--surface-2); }
.note { padding: 14px 18px; border-radius: var(--r-md); background: var(--cyan-soft); color: var(--navy); font-size: .9375rem; }

/* ---------- Revelação ao entrar no ecrã ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transition: opacity 1s var(--ease), transform 1.1s var(--spring), filter 1s var(--ease); }
  .js .reveal.pre { opacity: 0; transform: translateY(32px); filter: blur(6px); }
  /* ligeira parallax da fotografia da porta, só onde o scroll-timeline existe */
  @supports (animation-timeline: view()) {
    .zone img { animation: zoom-out linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
  }
}
@keyframes zoom-out { from { scale: 1.12; } to { scale: 1; } }

/* ---------- Logótipo claro/escuro ---------- */
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="dark"] .hero .panel::after, :root[data-theme="dark"] .logo-panel::before, :root[data-theme="dark"] .map-card::before { background-image: url("../img/marca/padrao-navy.svg"); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none !important; }
  :root:not([data-theme="light"]) .logo-dark { display: block !important; }
  :root:not([data-theme="light"]) .hero .panel::after, :root:not([data-theme="light"]) .logo-panel::before, :root:not([data-theme="light"]) .map-card::before { background-image: url("../img/marca/padrao-navy.svg"); }
}

/* ---------- Hero rotativo: título escrito + casas que mudam ---------- */
.hero-title { font-size: clamp(2.35rem, 1.1rem + 3.4vw, 4.2rem); width: 100%; }
/* o lugar fica sempre na sua própria linha e o JS ajusta o tamanho para caber: a altura não muda entre casas */
.typed-wrap { display: block; white-space: nowrap; }
.typed {
  font-weight: 800; color: var(--accent-ink); padding-inline: .03em;
  background: linear-gradient(transparent 64%, rgba(0, 171, 199, .3) 64%, rgba(0, 171, 199, .3) 94%, transparent 94%);
}
.caret { display: inline-block; width: .07em; height: .8em; margin-left: .04em; margin-right: -.03em; background: var(--cyan); vertical-align: -.04em; border-radius: 2px; }
.no-fit .typed-wrap { white-space: normal; }
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.05s steps(1) infinite; }
  .is-typing .caret { animation: none; }
  .swap-in { animation: swap-in .8s var(--spring) both; }
}
@keyframes blink { 50% { opacity: 0; } }
@keyframes swap-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.door-photo { transition: opacity 1s var(--ease), transform 1.6s var(--ease); }
.door-photo.is-back { opacity: 0; transform: scale(1.06); }
.hero-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 2px; margin-top: 18px; }
.hdot { display: grid; align-items: center; width: 34px; height: 30px; padding: 0 3px; border: 0; background: none; cursor: pointer; }
.hdot span { position: relative; display: block; height: 5px; border-radius: var(--r-pill); overflow: hidden; background: rgba(120, 136, 172, .32); }
.hdot span::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--cyan); transform: scaleX(0); transform-origin: left center; }
.hdot.is-active span::after { transform: scaleX(1); }
@media (prefers-reduced-motion: no-preference) {
  .hdot.is-active span::after { transform: scaleX(0); }
  .is-running .hdot.is-active span::after { animation: dot-fill var(--dwell, 6s) linear forwards; }
  .is-paused .hdot.is-active span::after { animation-play-state: paused; }
}
@keyframes dot-fill { to { transform: scaleX(1); } }
.hdot:hover span, .hdot.is-active span { background: rgba(120, 136, 172, .55); }
.hctrl-pause { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1rem; cursor: pointer; transition: transform .5s var(--spring); }
.hctrl-pause:active { transform: scale(.92); }
.hctrl-pause svg:last-child { display: none; }
.hctrl-pause[aria-pressed="true"] svg:first-child { display: none; }
.hctrl-pause[aria-pressed="true"] svg:last-child { display: block; }
@media (max-width: 600px) { .hero-ctrl { justify-content: center; } }

/* ---------- Equipa ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(20px, 2.5vw, 32px); }
.person { display: grid; gap: 16px; align-content: start; }
.person-media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-sm); }
.person-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.person:hover .person-photo { transform: scale(1.04); }
.avatar-ini { display: grid; place-items: center; font-weight: 800; letter-spacing: -.02em; color: var(--navy); background: radial-gradient(70% 70% at 30% 20%, #ffffff 0%, var(--cyan-soft) 70%); }
.person-media .avatar-ini { font-size: clamp(3rem, 6vw, 4.5rem); }
.person-body { display: grid; gap: 6px; padding-inline: 4px; }
.person-name { font-size: 1.375rem; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.person-role { color: var(--ink-muted); font-weight: 500; }
.person-bio { font-weight: 300; max-width: 40ch; margin-top: 4px; }
.person .chips { margin-top: 8px; }
.chip-link { text-decoration: none; transition: background-color .3s var(--ease), transform .5s var(--spring); }
.chip-link:hover { background: var(--surface-2); transform: translateY(-1px); }

/* Pessoa responsável no imóvel */
.agent { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 10px 12px 10px 10px; border-radius: var(--r-md); background: var(--ground); }
.agent-photo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.agent .avatar-ini { display: grid; font-size: 1.05rem; }
.agent small { display: block; font-size: .75rem; color: var(--ink-muted); }
.agent strong { display: block; font-weight: 800; line-height: 1.2; }
.agent div > span { display: block; font-size: .8125rem; color: var(--ink-muted); }
