/* ============================================================
   MED COMPANY — Imobiliária · Assessoria (tema escuro/dourado)
   ============================================================ */

:root {
  --bg: #0d0c0a;
  --bg-2: #14110e;
  --card: #171310;
  --card-2: #1c1712;
  --line: rgba(201, 160, 106, .22);
  /* superfície da barra de filtros e dos chips de comodidades */
  --filtro-fundo: rgba(23, 19, 16, .8);
  --filtro-linha: rgba(201, 160, 106, .22);
  --line-soft: rgba(255, 255, 255, .08);
  --gold: #c9a06a;
  --gold-strong: #d9b17c;
  --gold-dim: #9b7d52;
  --text: #ece7df;
  --muted: #a89f92;
  --light-bg: #f4f1ec;
  --light-card: #ffffff;
  --light-ink: #17130e;
  --light-muted: #6b6357;

  --radius: 16px;
  --radius-lg: 22px;
}

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

html { scroll-behavior: smooth; }

/* A página nunca deve rolar para os lados */
html, body { overflow-x: hidden; max-width: 100%; }

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 76px;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }

.container { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: 2.6rem 0 4rem; }

.hl { color: var(--gold); }

.rule {
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 1.1rem;
  background: var(--gold);
  border-radius: 2px;
}

.page-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.3rem, 7vw, 3.4rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.01em;
}

.page-sub {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: .98rem;
  max-width: 26rem;
}

.eyebrow {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 12, 10, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

/* A marca fica centralizada na barra; o menu (e os links, no computador)
   ficam nas laterais. */
.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* com a marca fora do fluxo, nada mais dá altura à barra no computador
     (o hambúrguer some) — o mínimo já inclui o respiro, por box-sizing */
  min-height: 69px;
  padding: .9rem 0;
}

.brand {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

/* botão do menu à esquerda, com a marca centralizada */
.menu-toggle { margin-right: auto; }

.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--text); }
/* a marca real é bem mais alta que larga: a altura manda, a largura segue */
.brand__icon { width: auto; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1rem; letter-spacing: .16em; font-weight: 700; white-space: nowrap; }
.brand__text small {
  font-size: .56rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* nos aparelhos estreitos a marca centralizada chega perto do botão do
   menu: encolhe o bastante para sobrar folga */
@media (max-width: 379.98px) {
  .brand { gap: .45rem; }
  .brand__icon { width: auto; height: 32px; }
  .brand__text strong { font-size: .84rem; letter-spacing: .08em; }
  .brand__text small { font-size: .48rem; letter-spacing: .18em; }
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5.5px;
  width: 44px;
  height: 44px;
  padding: 0 9px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.menu-toggle span {
  height: 2px;
  width: 100%;
  background: var(--gold-strong);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  background: var(--bg-2);
  max-height: 0;
  padding: 0 .85rem;
  overflow: hidden;
  /* a borda e o respiro entram junto com a altura: fora do max-height
     eles apareceriam como um risco solto com o menu fechado */
  transition: max-height .34s cubic-bezier(.4, 0, .2, 1), padding .34s ease;
}
.nav.is-open,
.nav.is-fechando {
  max-height: 480px;
  padding: .7rem .85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}

/* Ao fechar, os itens saem de baixo para cima e só então a cortina sobe:
   é o "is-fechando" que segura a altura durante essa saída. */
.nav.is-open.is-fechando .nav__link {
  /* both, não forwards: durante o atraso o item precisa continuar
     visível, senão ele pisca para invisível antes de começar a sair */
  animation: nav-item-sai .19s ease both;
}
.nav.is-open.is-fechando > :nth-last-child(1) { animation-delay: 0s; }
.nav.is-open.is-fechando > :nth-last-child(2) { animation-delay: .025s; }
.nav.is-open.is-fechando > :nth-last-child(3) { animation-delay: .05s; }
.nav.is-open.is-fechando > :nth-last-child(4) { animation-delay: .075s; }
.nav.is-open.is-fechando > :nth-last-child(5) { animation-delay: .1s; }
.nav.is-open.is-fechando .nav__ico { animation: none; opacity: 1; transform: none; }

@keyframes nav-item-sai {
  from { opacity: 1; transform: none; }
  to   { opacity: 0; transform: translateY(-10px) scale(.96); }
}

.nav__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .85rem 1rem;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
  opacity: 0;
  transform: translateY(-14px) scale(.94);
}

/* A cortina desce e cada linha entra logo atrás, uma após a outra, com
   uma leve ultrapassagem no fim do movimento. */
.nav.is-open .nav__link {
  animation: nav-item-entra .42s cubic-bezier(.22, 1.4, .4, 1) forwards;
}
.nav.is-open > :nth-child(1) { animation-delay: .06s; }
.nav.is-open > :nth-child(2) { animation-delay: .12s; }
.nav.is-open > :nth-child(3) { animation-delay: .18s; }
.nav.is-open > :nth-child(4) { animation-delay: .24s; }
.nav.is-open > :nth-child(5) { animation-delay: .30s; }
.nav.is-open > :nth-child(6) { animation-delay: .36s; }

@keyframes nav-item-entra {
  to { opacity: 1; transform: none; }
}

/* No fundo quase preto daqui o azul-marinho ficaria invisível (1,5 de
   contraste), então os ícones seguem no dourado da marca. */
.nav__ico {
  width: 23px;
  height: 23px;
  flex: none;
  color: var(--gold);
  transform: scale(.7);
  opacity: 0;
}
.nav.is-open .nav__ico { animation: nav-ico-entra .34s cubic-bezier(.22, 1.5, .4, 1) forwards; }
.nav.is-open > :nth-child(1) .nav__ico { animation-delay: .14s; }
.nav.is-open > :nth-child(2) .nav__ico { animation-delay: .20s; }
.nav.is-open > :nth-child(3) .nav__ico { animation-delay: .26s; }
.nav.is-open > :nth-child(4) .nav__ico { animation-delay: .32s; }
.nav.is-open > :nth-child(5) .nav__ico { animation-delay: .38s; }

@keyframes nav-ico-entra {
  to { opacity: 1; transform: none; }
}

.nav__link:hover { color: var(--gold-strong); }

/* o rótulo escrito só existe no computador; no celular quem nomeia o
   cartão do outro site é a própria logo */
.nav__rotulo { display: none; }

/* a aba aberta fica marcada */
.nav__link.is-active {
  background: rgba(201, 160, 106, .12);
  color: var(--gold-strong);
}

/* O link que leva ao outro site não é uma aba daqui: ganha a cara do
   destino — cartão azul-marinho com a logo da assessoria — e um brilho
   que atravessa de tempos em tempos, para puxar o olho. */
.nav__outro {
  position: relative;
  flex-direction: column;
  gap: .35rem;
  margin-top: .6rem;
  padding: 1rem 1.1rem .95rem;
  background: #0d2b52;
  color: #fff;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.nav__outro__logo {
  width: auto;
  height: 64px;
  position: relative;
}
.nav__outro small {
  position: relative;
  font-size: .76rem;
  font-weight: 400;
  letter-spacing: 0;
  color: #b7c7dd;
}
.nav__externo {
  position: absolute;
  top: .7rem;
  right: .8rem;
  width: 15px;
  height: 15px;
  color: #9fc1ee;
}

/* faixa de luz atravessando o cartão */
.nav__outro__brilho {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 55%;
  left: -60%;
  background: linear-gradient(100deg, transparent, rgba(159, 193, 238, .2), transparent);
}
.nav.is-open .nav__outro__brilho { animation: brilho-passa 3.4s ease-in-out 1.1s infinite; }

@keyframes brilho-passa {
  0%   { left: -60%; }
  45%  { left: 105%; }
  100% { left: 105%; }
}

.nav__link.nav__outro:hover { color: #fff; }



@media (prefers-reduced-motion: reduce) {
  .nav__link, .nav__ico, .nav__outro__brilho { opacity: 1; transform: none; animation: none !important; }
  .nav__outro__brilho { display: none; }
}

/* No celular o menu vira uma cortina abaixo da barra. Antes ele continuava
   sendo um item do flex — invisível, mas ocupando largura — e espremia a
   marca, que quebrava "MED COMPANY" em duas linhas. */
@media (max-width: 899.98px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1;
  }
}

/* no computador os links ficam visíveis na barra, sem hambúrguer */
@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .header__inner { position: relative; }
  .nav {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    flex-direction: row;
    align-items: center;
    gap: 1.6rem;
    max-height: none;
    background: transparent;
    border: none;
    overflow: visible;
  }
  /* No computador o menu volta a ser uma fileira simples de links: tudo
     que é do painel do celular (ícones, cartão do outro site, animações
     de entrada) fica de fora — inclusive a opacidade zero com que os
     itens esperam a abertura, que aqui os deixava invisíveis. */
  .nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    font-size: .9rem;
    font-weight: 500;
    color: var(--text);
    opacity: 1;
    transform: none;
    animation: none;
  }
  .nav__link.is-active { background: none; color: var(--gold-strong); }

  .nav__ico,
  .nav__externo,
  .nav__outro__logo,
  .nav__outro__brilho,
  .nav__outro small { display: none; }

  .nav__outro {
    position: static;
    flex-direction: row;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--text);
    box-shadow: none;
    overflow: visible;
  }

  .nav__rotulo { display: inline; }
}

/* ============================================================
   VIEWS
   ============================================================ */
.view { display: none; }
.view.is-active { display: block; animation: viewIn .3s ease; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO (Início)
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero__backdrop {
  position: absolute;
  inset: 0;
}
.hero__backdrop svg { width: 100%; height: 100%; }

/* foto real do prédio (pasta imagem/) no lugar do desenho */
.hero__backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__backdrop--foto svg { display: none; }
.hero__backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(13, 12, 10, .92) 30%, rgba(13, 12, 10, .25) 75%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.2rem 0 8.5rem;
}

.hero__title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2.1rem, 6.4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.01em;
  max-width: 14ch;
}

.hero__text {
  margin-top: 1.4rem;
  max-width: 21rem;
  color: #cfc8bd;
  font-size: 1rem;
}

/* ============================================================
   HOME BODY (parte clara)
   ============================================================ */
.home-body {
  position: relative;
  background: var(--light-bg);
  color: var(--light-ink);
  padding: 0 0 3.4rem;
}

/* Busca */
.search {
  position: relative;
  z-index: 2;
  transform: translateY(-4.6rem);
  margin-bottom: -4.2rem;
  background: var(--light-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  padding: 1.6rem 1.4rem 1.4rem;
}

.search__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem 1.4rem;
}

.search__field { display: grid; gap: .15rem; min-width: 0; }

.search__label {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--light-muted);
}
.search__label svg { width: 20px; height: 20px; color: var(--light-ink); }

.search__field select {
  appearance: none;
  border: none;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%2317130e" stroke-width="2" stroke-linecap="round"><path d="m6 9 6 6 6-6"/></svg>')
    right .2rem center / 14px no-repeat;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--light-ink);
  padding: .15rem 1.4rem .3rem 0;
  border-bottom: 1px solid #e6e0d6;
  cursor: pointer;
  outline: none;
  width: 100%;
}
.search__field select:focus { border-color: var(--gold); }

.search__btn {
  margin-top: 1.4rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  background: var(--light-ink);
  color: #f4efe7;
  border: none;
  border-radius: 999px;
  padding: .95rem 1.4rem;
  font-family: inherit;
  font-size: .98rem;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.search__btn svg { width: 19px; height: 19px; }
.search__btn:hover { background: #000; transform: translateY(-1px); }

@media (min-width: 820px) {
  .search { padding: 1.8rem 2rem; display: grid; grid-template-columns: 1fr auto; gap: 1.6rem; align-items: end; }
  .search__grid { grid-template-columns: repeat(4, 1fr); }
  .search__btn { margin-top: 0; width: auto; padding-inline: 2.4rem; }
}

/* Destaques */
.featured { margin-top: 1rem; }

.featured__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.featured__title {
  margin-top: .3rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  font-weight: 600;
  color: var(--light-ink);
}

.featured__all {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem 1.15rem;
  border: 1px solid #d9d2c4;
  border-radius: 999px;
  background: var(--light-card);
  font-size: .88rem;
  font-weight: 500;
  color: var(--light-ink);
  transition: border-color .18s ease, gap .18s ease;
}
.featured__all svg { width: 15px; height: 15px; }
.featured__all:hover { border-color: var(--gold); gap: .75rem; }

.featured__grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

/* Card claro (destaques): mesma hierarquia do catálogo, em superfície leve. */
.apt-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  border: 1px solid #e7e2d9;
  border-radius: 18px;
  background: var(--light-card);
  box-shadow: 0 6px 20px rgba(23, 19, 14, .05);
  color: var(--light-ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.apt-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(23, 19, 14, .09); }
.apt-card:focus-visible { outline: 2px solid #896332; outline-offset: 3px; }
.apt-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #eae6df; }
.apt-card__media > svg, .apt-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.apt-card__media:not(:has(img)) { display: grid; place-items: center; }
.apt-card__media:not(:has(img)) > svg { opacity: .25; width: 50%; height: auto; }
.apt-card__media:not(:has(img))::after {
  content: "Foto em breve";
  position: absolute;
  bottom: 1rem;
  font-size: .7rem;
  color: var(--light-muted);
}
.apt-card__tag {
  position: absolute;
  top: .7rem;
  left: .7rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 6px;
  padding: .3rem .5rem;
  background: rgba(247, 242, 233, .94);
  color: #594325;
  font-size: .57rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.apt-card__fav {
  position: absolute;
  top: .5rem;
  right: .5rem;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(13, 12, 10, .55);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  cursor: pointer;
  color: #fff;
  transition: color .18s ease, background .18s ease;
}
.apt-card__fav svg { width: 18px; height: 18px; }
.apt-card__fav.is-fav { color: #ff9c8c; }
.apt-card__fav:hover { background: rgba(13, 12, 10, .75); }
.apt-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-width: 0;
  padding: 1rem;
}
.apt-card__name { order: 0; font-size: 1rem; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.apt-card__place {
  order: 1;
  display: flex;
  align-items: flex-start;
  gap: .3rem;
  font-size: .78rem;
  line-height: 1.4;
  color: var(--light-muted);
}
.apt-card__place svg { width: 13px; height: 13px; margin-top: .1rem; flex: none; color: #896332; }
.apt-card__price {
  order: 2;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: auto;
  padding-top: .25rem;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -.025em;
  color: #805c30;
}
.apt-card__price small { font-size: .7rem; font-weight: 400; color: var(--light-muted); letter-spacing: 0; }
.apt-card__specs {
  order: 3;
  padding-top: .65rem;
  border-top: 1px solid #eeeae3;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .85rem;
  font-size: .73rem;
  color: var(--light-muted);
}
.apt-card__specs span { display: inline-flex; align-items: center; gap: .3rem; }
.apt-card__specs svg { width: 15px; height: 15px; }
/* Os ícones do tema escuro não devem virar blocos pesados no cartão claro. */
.apt-card .apt-extras { order: 4; margin-top: 0; gap: .6rem; min-height: 20px; }
.apt-card .apt-extras__i { width: 20px; height: 20px; border: 0; background: none; color: #776b59; }
.apt-card .apt-extras__mais { color: #776b59; }
@media (max-width: 560px) {
  .featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1.1rem; }
  .apt-card__media { aspect-ratio: 6 / 5; }
  .apt-card__body { padding: .85rem .7rem; gap: .5rem; }
  .apt-card__name { font-size: .84rem; min-height: 2.7em; }
  .apt-card__place { font-size: .68rem; min-height: 2.8em; }
  .apt-card__price { font-size: clamp(.9rem, 3.8vw, 1.1rem); }
  .apt-card__price small { font-size: .62rem; }
  .apt-card__specs { font-size: .65rem; gap: .35rem .5rem; }
  .apt-card__specs .apt-card__unit { display: none; }
  .apt-card .apt-extras { gap: .35rem; }
  .apt-card .apt-extras__i { width: 18px; height: 18px; }
  .apt-card__fav { top: auto; bottom: .4rem; right: .4rem; }
  .apt-card__tag { top: .55rem; left: .55rem; padding: .25rem .4rem; font-size: .5rem; }
}

/* Trust strip escuro */
.pillars {
  margin-top: 2.6rem;
  background: #14110d;
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.pillars__item {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  padding: 0 .5rem;
}
.pillars__item + .pillars__item { border-left: 1px solid rgba(201, 160, 106, .18); }

.pillars__icon { width: 30px; height: 30px; color: var(--gold); }

.pillars__item h3 {
  font-size: .92rem;
  font-weight: 600;
  color: #f0eadf;
  line-height: 1.3;
}
.pillars__item p { font-size: .78rem; color: #97907f; line-height: 1.45; }

@media (min-width: 760px) {
  .pillars { padding: 2rem 2.2rem; }
  .pillars__item { flex-direction: row; align-items: flex-start; }
  .pillars__icon { flex: none; margin-top: .2rem; }
}

@media (max-width: 420px) {
  .pillars { padding: 1.4rem .7rem; gap: .5rem; }
  .pillars__item { padding: 0 .35rem; }
  .pillars__icon { width: 24px; height: 24px; }
  .pillars__item h3 { font-size: .8rem; }
  .pillars__item p { font-size: .7rem; }
}

/* ---- Ajustes de celular para bater com o layout de referência ---- */
@media (max-width: 760px) {
  /* "Apartamentos em destaque" numa linha só, com o Ver todos ao lado */
  .featured__head { align-items: center; gap: .6rem; }
  .featured__title { font-size: 1.18rem; }
  .featured__all { padding: .45rem .9rem; font-size: .78rem; }

  /* rótulos da busca numa linha só */
  .search__label { font-size: .58rem; letter-spacing: .08em; white-space: nowrap; }
  .search__label svg { width: 17px; height: 17px; }
  .search__field select { font-size: .92rem; }

  /* pilares: ícone ao lado do texto, como na foto, sem estourar */
  .pillars { padding: 1rem .55rem; gap: .3rem; }
  .pillars__item { flex-direction: row; align-items: flex-start; gap: .4rem; padding: 0 .3rem; min-width: 0; }
  .pillars__item + .pillars__item { padding-left: .45rem; }
  .pillars__item > div { min-width: 0; }
  .pillars__icon { width: 19px; height: 19px; flex: none; margin-top: .1rem; }
  .pillars__item h3 { font-size: .68rem; line-height: 1.25; }
  .pillars__item p { font-size: .58rem; line-height: 1.3; margin-top: .12rem; }
}

/* ============================================================
   LISTA (Apartamentos em CDE)
   ============================================================ */
.lista__head {
  display: grid;
  gap: 1.6rem;
  align-items: center;
}

.lista__art {
  min-height: 170px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 80% 20%, rgba(201, 160, 106, .28), transparent 55%),
    linear-gradient(200deg, #2b2115 0%, #171310 60%);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.lista__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 46%, rgba(201, 160, 106, .35) 46.5%, transparent 47%),
    linear-gradient(90deg, transparent 72%, rgba(201, 160, 106, .25) 72.5%, transparent 73%),
    linear-gradient(0deg, rgba(13, 12, 10, .55), transparent 55%);
}

/* com foto real, as linhas decorativas saem e fica só o escurecimento */
.lista__art--foto::after {
  background: linear-gradient(0deg, rgba(13, 12, 10, .5), transparent 55%);
}

/* ---- Foto como FUNDO do topo da aba, com os textos por cima ---- */
.lista__head--foto {
  position: relative;
  display: block;
  min-height: calc(300px + var(--cab, 74px));
  /* sobe por baixo do cabeçalho, que fica transparente sobre a foto */
  margin: calc(-1 * var(--cab, 74px)) calc(-50vw + 50%) 0;
  padding: calc(var(--cab, 74px) + 4.5rem) 1.25rem 2rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
/* véu leve: escurece só o necessário para o texto ficar legível, sem
   apagar a foto */
.lista__head--foto::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(13,12,10,.55) 0%,
    rgba(13,12,10,.18) 34%,
    rgba(13,12,10,.52) 70%,
    rgba(13,12,10,.86) 100%);
}
.lista__head--foto .lista__intro {
  position: relative;
  z-index: 1;
  width: min(1120px, 100% - 0rem);
  margin-inline: auto;
}
.lista__head--foto .page-sub { color: #e2ddd4; }
/* a arte decorativa some quando a foto vira fundo */
.lista__head--foto .lista__art { display: none; }

@media (min-width: 820px) {
  .lista__head--foto { min-height: calc(380px + var(--cab, 74px)); padding: calc(var(--cab, 74px) + 6rem) 2rem 3rem; }
  .lista__head--foto .lista__intro { width: min(1120px, 100% - 2.5rem); }
}

/* com a foto no topo, a seção encosta no cabeçalho para a imagem
   começar na primeira linha da tela */
body.tem-capa #view-imoveis .section { padding-top: 0; }

/* Cabeçalho transparente enquanto a foto de fundo está na tela */
body.tem-capa:not(.capa-rolada) .header {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

@media (min-width: 820px) {
  .lista__head { grid-template-columns: 1fr 1fr; }
  .lista__art { min-height: 240px; }
}

/* Busca de imóveis: campos independentes, sem rolagem lateral. */
.filterbar-wrap {
  margin-top: 1.5rem;
  padding: .75rem;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 20px;
  background: #191815;
}
.filterbar__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: 0 .25rem .5rem; }
.filterbar__title { font-size: .88rem; font-weight: 600; letter-spacing: -.02em; }
.filterbar__reset {
  min-height: 44px;
  padding: .4rem .55rem;
  border: 0;
  background: none;
  color: var(--gold-strong);
  font: 500 .75rem "Inter", sans-serif;
  cursor: pointer;
}
.filterbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.filterbar__field {
  position: relative;
  display: flex;
  align-items: center;
  gap: .6rem;
  min-width: 0;
  min-height: 76px;
  padding: .75rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 12px;
  background: #22211d;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.filterbar__field:hover { border-color: rgba(201, 160, 106, .5); }
.filterbar__field:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.filterbar__icone { width: 18px; height: 18px; flex: none; color: var(--gold); }
.filterbar__texto { display: flex; flex-direction: column; flex: 1; gap: .3rem; min-width: 0; }
.filterbar__label { font-size: .65rem; font-weight: 400; line-height: 1.2; color: var(--muted); }
.filterbar__field select {
  appearance: none;
  width: 100%;
  min-width: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c9a06a" stroke-width="2" stroke-linecap="round"><path d="m6 9 6 6 6-6"/></svg>') right center / 12px no-repeat;
  border: 0;
  border-radius: 0;
  font: 500 .8rem/1.4 "Inter", sans-serif;
  color: var(--text);
  padding: 0 1rem 0 0;
  text-overflow: ellipsis;
  cursor: pointer;
  outline: none;
}
.filterbar__field select option { background: var(--bg-2); color: var(--text); }
.filterbar__reset:focus-visible { outline: 2px solid var(--gold); border-radius: 6px; }
@media (max-width: 359px) {
  .filterbar__field { gap: .4rem; padding: .65rem .5rem; }
  .filterbar__icone { width: 15px; height: 15px; }
  .filterbar__field select { font-size: .74rem; }
}
@media (min-width: 700px) {
  .filterbar-wrap { padding: 1rem 1.25rem 1.25rem; }
  .filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .filterbar__field { min-height: 82px; padding: 1rem; }
  .filterbar__label { font-size: .72rem; }
  .filterbar__field select { font-size: .92rem; }
}

/* Um único orçamento nas duas buscas; a moeda acompanha o valor informado. */
.price-range {
  --price-line: rgba(255, 255, 255, .15);
  --price-ink: var(--text);
  --price-muted: var(--muted);
  --price-bg: #22211d;
  grid-column: 1 / -1;
  min-width: 0;
  margin: .25rem 0 0;
  padding: 0;
  border: 0;
  color: var(--price-ink);
}
.price-range legend { padding: 0 0 .5rem; font-size: .75rem; font-weight: 600; }
.price-range__currency { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin-bottom: .65rem; font-size: .7rem; color: var(--price-muted); }
.price-range__currency select { min-height: 36px; max-width: 65%; padding: .35rem .55rem; border: 1px solid var(--price-line); border-radius: 8px; background: var(--price-bg); color: var(--price-ink); font: inherit; }
.price-range__inputs { display: grid; grid-template-columns: minmax(0, 1fr); gap: .65rem; }
.price-range__inputs label { display: grid; min-width: 0; gap: .35rem; font-size: .7rem; color: var(--price-muted); }
.price-range input { display: block; width: 100%; min-width: 0; height: 44px; border: 1px solid var(--price-line); border-radius: 9px; padding: .6rem; background: var(--price-bg); color: var(--price-ink); font: 400 1rem "Inter", sans-serif; }
.price-range input::placeholder { color: var(--price-muted); font-size: .75rem; }
.price-range input:focus-visible, .price-range select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.price-range__error { font-size: .75rem; color: #ffb4a8; margin-top: .5rem; }
.price-range__error:empty { display: none; }
.price-range--home { --price-line: #d9d2c4; --price-ink: var(--light-ink); --price-muted: var(--light-muted); --price-bg: #faf8f4; }
.price-range--home .price-range__error { color: #a02920; }
.search__field:nth-child(3) { grid-column: auto; }
.amenity-filter { border: 0; padding: 0; min-width: 0; margin: 0; align-self: start; }
.amenity-filter legend { font: 600 .65rem/1.3 Inter,sans-serif; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 5px; color: inherit; }
.amenity-filter details { position: relative; }
.amenity-filter summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; cursor: pointer; list-style: none; border-bottom: 1px solid #b5a387; font: 400 .9rem Inter,sans-serif; }
.amenity-filter summary::-webkit-details-marker { display: none; }
.amenity-filter summary svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .18s ease; }
.amenity-filter details[open] summary svg { transform: rotate(180deg); }
.amenity-filter__items { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: min(300px,78vw); max-height: min(320px,50dvh); overflow-y: auto; padding: 8px; border: 1px solid #d4c9b6; border-radius: 12px; background: #fff; color: #27251f; box-shadow: 0 12px 35px #0003; }
.amenity-filter__option { display: grid; grid-template-columns: 20px 24px minmax(0,1fr); gap: 10px; align-items: center; min-height: 44px; padding: 8px; border-radius: 7px; cursor: pointer; font: 400 .82rem/1.35 Inter,sans-serif; }
.amenity-filter__items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; width: min(380px,86vw); box-sizing: border-box; }
.amenity-filter__option { grid-template-columns: 16px 18px minmax(0,1fr); gap: 5px; padding: 6px; font-size: .75rem; overflow-wrap: anywhere; }
.amenity-filter__option input { position: static; margin: 0; width: 16px; height: 16px; cursor: pointer; accent-color: #886538; }
.amenity-filter__option > span { display: flex; align-items: center; }
.amenity-filter__option svg { width: 20px; height: 20px; }
.filterbar > .filterbar__field { align-self: start; }
.amenity-filter__option:has(input:checked) { background: #f3ebdd; color: #6e502b; }
.amenity-filter__option input:focus-visible, .amenity-filter summary:focus-visible { outline: 2px solid #b68b4c; outline-offset: 2px; }
.search .amenity-filter { color: var(--light-ink); }
.filterbar > .filterbar__field:first-of-type { grid-column: 1 / -1; }
.filterbar > .amenity-filter { padding: .65rem .5rem; }
.filterbar .amenity-filter__items { background: #24211c; color: #f4f0e9; border-color: #6c583b; }
.filterbar .amenity-filter__option:has(input:checked) { background: #493a27; color: #fff; }
@media (min-width: 820px) {
  .search__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search__field:nth-child(3) { grid-column: auto; }
}

.lista__count {
  margin-top: 1.8rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.lista__grid { margin-top: 1.1rem; display: grid; gap: 1.1rem; }

/* o atalho dentro do texto de lista vazia também precisa de alvo */
.lista__vazio a {
  display: inline-block;
  padding: .35rem .1rem;
  color: var(--gold);
  font-weight: 600;
}

.lista__vazio {
  padding: 2.2rem 1.4rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
}

/* Card escuro (listagem) */
.apt-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  background: linear-gradient(160deg, var(--card-2) 0%, var(--card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: var(--text);
  padding: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.apt-row:hover { transform: translateY(-3px); border-color: rgba(201, 160, 106, .5); }

.apt-row__media { position: relative; min-height: 100%; }
.apt-row__media svg { width: 100%; height: 100%; object-fit: cover; }
.apt-row__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apt-row__body { padding: 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; position: relative; }

.apt-row__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  padding-right: 2.2rem;
}

.apt-row__fav {
  position: absolute;
  top: 1.05rem;
  right: 1.05rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #efe9df;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  transition: color .18s ease;
}
.apt-row__fav svg { width: 21px; height: 21px; }
.apt-row__fav.is-fav { color: #e6634d; }

.apt-row__place {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: var(--muted);
}
.apt-row__place svg { width: 14px; height: 14px; flex: none; color: var(--gold); }

.apt-row__price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  color: var(--gold-strong);
}
.apt-row__price small { font-family: "Inter", sans-serif; font-size: .8rem; color: var(--gold-dim); }

.apt-row__specs {
  margin-top: .2rem;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.1rem;
  font-size: .82rem;
  color: var(--muted);
}
.apt-row__specs span { display: inline-flex; align-items: center; gap: .4rem; }
.apt-row__specs svg { width: 17px; height: 17px; color: var(--gold); }

@media (max-width: 560px) {
  .apt-row { grid-template-columns: 1fr; }
  .apt-row__media { min-height: 150px; }
  .apt-row__media svg { height: 150px; }

  /* Catálogo mobile: duas colunas, fotos proporcionais e leitura alinhada. */
  #view-imoveis .lista > .container { width: calc(100% - 1.5rem); }
  #listaGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem .75rem; }
  #listaGrid .lista__vazio { grid-column: 1 / -1; }
  #listaGrid .apt-row {
    position: relative;
    min-width: 0;
    grid-template-rows: auto 1fr;
    border-radius: 16px;
    border-color: rgba(255, 255, 255, .09);
    background: #191815;
  }
  #listaGrid .apt-row__media { min-height: 0; aspect-ratio: 6 / 5; overflow: hidden; }
  #listaGrid .apt-row__media svg { height: 100%; }
  #listaGrid .apt-row__media:not(:has(img)) {
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #24231f, #191a18);
  }
  #listaGrid .apt-row__media:not(:has(img)) > svg { opacity: .16; width: 52%; height: auto; }
  #listaGrid .apt-row__media:not(:has(img))::after {
    content: "Foto em breve";
    position: absolute;
    bottom: 1rem;
    font-size: .65rem;
    color: var(--muted);
    letter-spacing: .03em;
  }
  #listaGrid .apt-row__body {
    position: static;
    min-width: 0;
    padding: .85rem .75rem .75rem;
    gap: .5rem;
  }
  #listaGrid .apt-row__name {
    font-family: "Inter", system-ui, sans-serif;
    font-size: .84rem;
    font-weight: 600;
    line-height: 1.35;
    min-height: 1.35em;
    padding-right: 0;
    overflow-wrap: anywhere;
    letter-spacing: -.015em;
  }
  #listaGrid .apt-row__fav {
    top: .4rem;
    right: .4rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(13, 12, 10, .6);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(6px);
  }
  #listaGrid .apt-row__fav svg { width: 18px; height: 18px; }
  #listaGrid .apt-row__place {
    font-size: .68rem;
    line-height: 1.4;
    min-height: 2.8em;
    align-items: flex-start;
    gap: .25rem;
  }
  #listaGrid .apt-row__place svg { width: 12px; height: 12px; margin-top: .1rem; }
  #listaGrid .apt-row__price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .2rem;
    margin-top: auto;
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(.88rem, 3.8vw, 1.1rem);
    line-height: 1.4;
    letter-spacing: -.03em;
  }
  #listaGrid .apt-row__price small { font-size: .62rem; font-weight: 400; color: var(--muted); letter-spacing: 0; }
  #listaGrid .apt-row__specs {
    font-size: .72rem;
    gap: .4rem .85rem;
    padding-top: .6rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #c5beb3;
  }
  #listaGrid .apt-row__specs svg { width: 15px; height: 15px; }
  #listaGrid .apt-extras { margin-top: .1rem; gap: .45rem; min-height: 20px; }
  #listaGrid .apt-extras__i { width: 20px; height: 20px; border: 0; background: none; color: var(--muted); }
  #listaGrid .apt-row:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

}

@media (max-width: 359px) {
  #listaGrid .apt-row__name { min-height: 2.7em; }
}

/* ============================================================
   DETALHE
   ============================================================ */
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .18s ease;
}
.back svg { width: 17px; height: 17px; }
.back:hover { color: var(--gold-strong); }

.detalhe__media {
  margin-top: 1.4rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
}
.detalhe__media svg { width: 100%; height: auto; }
.detalhe__media img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  display: block;
}
.detalhe__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(13, 12, 10, .55), transparent 45%);
}

/* A foto abre o detalhe de ponta a ponta, por trás do cabeçalho. */
.detalhe.section { padding-top: 0; }
.detalhe > .container { position: relative; display: flow-root; }
.detalhe .back {
  position: absolute;
  top: .75rem;
  left: 0;
  z-index: 2;
  padding: .5rem .85rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  background: rgba(13, 12, 10, .5);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: .7rem;
  letter-spacing: .12em;
}
.detalhe .back:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.detalhe__media {
  width: 100vw;
  height: clamp(340px, 58svh, 620px);
  margin-top: calc(-1 * var(--cab, 74px));
  margin-inline: calc(50% - 50vw);
  border: 0;
  border-radius: 0;
}
.detalhe__media img, .detalhe__media > svg {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}
.detalhe__media::after {
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 12, 10, .65), transparent 38%, transparent 70%, rgba(13, 12, 10, .65));
}

/* Galeria: deslize, teclado e controles; vídeos só tocam por ação do visitante. */
.galeria-imovel__trilho { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.galeria-imovel__trilho::-webkit-scrollbar { display: none; }
.galeria-imovel__slide { position: relative; flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.galeria-imovel__slide video { width: 100%; height: 100%; object-fit: contain; background: #0d0c0a; }
.galeria-imovel__seta, .galeria-imovel__pausa {
  border: 1px solid rgba(255, 255, 255, .25); border-radius: 50%;
  background: rgba(13, 12, 10, .55); color: #fff; cursor: pointer;
  display: grid; place-items: center; width: 44px; height: 44px;
}
.galeria-imovel__seta { position: absolute; z-index: 3; top: 53%; transform: translateY(-50%); font-size: 2rem; line-height: 1; }
.galeria-imovel__seta--anterior { left: max(.75rem, calc((100vw - 1120px) / 2)); }
.galeria-imovel__seta--proxima { right: max(.75rem, calc((100vw - 1120px) / 2)); }
.galeria-imovel__status { position: absolute; z-index: 3; top: calc(var(--cab, 74px) + .75rem); right: max(1.25rem, calc((100vw - 1120px) / 2)); display: flex; align-items: center; gap: .4rem; }
.galeria-imovel__contador { padding: .4rem .65rem; border-radius: 999px; background: rgba(13, 12, 10, .6); color: #fff; font-size: .75rem; font-variant-numeric: tabular-nums; }
.galeria-imovel__pausa { font-size: .8rem; }
.galeria-imovel button:focus-visible, .galeria-imovel__trilho:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.galeria-imovel__erro { position: absolute; inset: 45% 3rem auto; color: #fff; text-align: center; font-size: .85rem; background: #171310; padding: .75rem; border-radius: 10px; }

.detalhe__badge {
  margin-top: 1.4rem;
  display: inline-flex;
  align-items: center;
  padding: .4rem 1.1rem;
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.detalhe__title {
  margin-top: .9rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 6.4vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
}

.detalhe__place {
  margin-top: .7rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .9rem;
  color: var(--muted);
}
.detalhe__place svg { width: 16px; height: 16px; color: var(--gold); }

.detalhe__price {
  margin-top: 1rem;
  font-family: "Inter", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.7rem, 5.4vw, 2.3rem);
  color: var(--gold-strong);
}
.detalhe__price small { font-family: "Inter", sans-serif; font-size: 1rem; color: var(--gold-dim); }

.detalhe__desc {
  margin-top: 1.2rem;
  color: #c9c2b6;
  font-size: .97rem;
  max-width: 36rem;
}

.detalhe__stats {
  margin-top: 1.6rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid transparent;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.detalhe__stat {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  justify-content: start;
  gap: .3rem .7rem;
  padding-right: .6rem;
}
.detalhe__stat + .detalhe__stat { border-left: 1px solid var(--line-soft); padding-left: 1rem; }
.detalhe__stat svg { width: 26px; height: 26px; color: var(--gold); grid-row: 1; }
.detalhe__stat strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  white-space: nowrap;
}
.detalhe__stat small {
  grid-column: 1 / -1;
  font-size: .58rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 420px) {
  .detalhe__stats { gap: .5rem; }
  .detalhe__stat { gap: .25rem .45rem; padding-right: .3rem; }
  .detalhe__stat + .detalhe__stat { padding-left: .55rem; }
  .detalhe__stat svg { width: 21px; height: 21px; }
  .detalhe__stat strong { font-size: 1.1rem; }
  .detalhe__stat small { font-size: .52rem; letter-spacing: .06em; }
}

.detalhe__amenities {
  margin-top: .6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

/* mesma superfície da barra de filtros */
/* Fita de ícones no card: o que o apartamento tem, sem texto. */
.apt-extras {
  display: flex;
  align-items: center;
  gap: .4rem;
  flex-wrap: wrap;
  margin-top: .55rem;
}
.apt-extras__i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--filtro-fundo);
  border: 1px solid var(--filtro-linha);
  color: var(--gold);
}
.apt-extras__i svg { width: 15px; height: 15px; }
.apt-extras__mais {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
}

.amenity {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--filtro-fundo);
  border: 1px solid var(--filtro-linha);
  border-radius: 12px;
  padding: .65rem 1rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.amenity svg { width: 17px; height: 17px; color: var(--gold); }

.detalhe .btn-gold { margin-top: 1.8rem; }

/* Formulário de visita: superfície clara, isolada do tema do site. */
.visita { box-sizing: border-box; margin: auto; width: min(1040px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 32px; border: 1px solid #e9e2d8; border-radius: 22px; background: #fff; color: #28251f; font-family: "Inter", sans-serif; }
.visita::backdrop { background: #000b; backdrop-filter: blur(5px); }
.visita h2 { font: 700 1.5rem "Inter", sans-serif; padding-right: 32px; }
.visita__fechar { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; color: #28251f; background: #f3f0eb; font-size: 1.7rem; cursor: pointer; }
.visita__imovel { margin: 8px 0 24px; color: #716959; }
.visita__form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.visita__form > label, .visita fieldset { min-width: 0; color: #746b5c; font-size: .82rem; font-weight: 600; }
.visita fieldset { border: 0; padding: 0; margin: 0; }
.visita legend { margin-bottom: 8px; }
.visita input:not([type=radio]), .visita textarea { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 54px; margin-top: 8px; padding: 14px; border: 1px solid #e7dfd3; border-radius: 14px; background: #fff; color: #28251f; font: 400 16px "Inter", sans-serif; box-shadow: 0 4px 12px #30241608; color-scheme: light; }
.visita textarea { resize: vertical; }
.visita small { font-weight: 400; color: #8b8172; }
.visita__periodos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.visita__periodos label { position: relative; cursor: pointer; }
.visita__periodos input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.visita__periodos span { display: grid; gap: 8px; text-align: center; padding: 16px 4px; border: 1px solid #e7dfd3; border-radius: 14px; color: #28251f; }
.visita__periodos small { font-size: .65rem; }
.visita__periodos input:checked + span { border-color: #947447; background: #f7f0e4; box-shadow: 0 0 0 1px #947447; }
.visita input:focus-visible, .visita textarea:focus-visible, .visita button:focus-visible, .visita a:focus-visible, .visita__periodos input:focus-visible + span { outline: 2px solid #947447; outline-offset: 3px; }
.visita__enviar, .visita__continuar { padding: 14px 18px; min-height: 48px; border: 0; border-radius: 10px; background: #191610; color: #fff; font: 600 .9rem "Inter", sans-serif; text-align: center; cursor: pointer; }
.visita__continuar:not([hidden]) { display: inline-block; background: #205238; margin-top: 12px; }
.visita__enviar:disabled { opacity: .65; cursor: wait; }
.visita__aviso { font-size: .75rem; color: #807565; line-height: 1.6; }
.visita__status { margin-top: 16px; font-size: .9rem; }
.visita .visita__isca { display: none; }
@media (max-width: 640px) {
  .visita { padding: 24px 16px; }
  .visita__form { grid-template-columns: 1fr; gap: 16px; }
}

.detalhe__place, .detalhe__place svg,
.detalhe__stat, .detalhe__stat svg, .detalhe__stat small,
.detalhe__amenities .amenity, .detalhe__amenities .amenity svg,
.detalhe .assurance, .detalhe .assurance svg { color: #fff; }
.detalhe__whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  min-height: 54px;
  margin-top: .85rem;
  padding: .85rem 1rem;
  border: 1px solid #478c65;
  border-radius: 999px;
  background: #173d2b;
  color: #fff;
  font: 600 .9rem "Inter", Arial, sans-serif;
  text-align: center;
  text-decoration: none;
}
.detalhe__whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }
.detalhe__whatsapp:hover { background: #205238; }
.detalhe__whatsapp:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

/* ============================================================
   CONTATO
   ============================================================ */
.contato__head { display: grid; gap: 1.6rem; align-items: center; }
.contato__art svg { width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }

@media (min-width: 820px) {
  .contato__head { grid-template-columns: 1.1fr 1fr; gap: 2.4rem; }
}

.contact-grid {
  margin-top: 2.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: rgba(23, 19, 16, .75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 2.1rem;
  transition: border-color .2s ease, transform .2s ease;
  min-width: 0;
}
.contact-card:hover { border-color: rgba(201, 160, 106, .55); transform: translateY(-2px); }

.contact-card__icon { width: 26px; height: 26px; color: var(--gold); flex: none; }

.contact-card__body { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.contact-card__body small {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-card__body strong {
  font-size: .88rem;
  font-weight: 500;
  color: #e9e2d6;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* telefone e WhatsApp cabem numa linha; e-mail quebra só entre partes */
.contact-card--tel .contact-card__body strong { white-space: nowrap; font-size: .82rem; }
.contact-card--mail .contact-card__body strong { font-size: .74rem; overflow-wrap: anywhere; }

@media (max-width: 430px) {
  .contact-grid { gap: .7rem; }
  .contact-card { padding: 1rem .9rem 2rem; }
  .contact-card--tel .contact-card__body strong { font-size: .82rem; }
  .contact-card__body small { font-size: .56rem; letter-spacing: .14em; }

  /* e-mail e endereço ocupam a linha inteira: são textos longos e
     ficariam ilegíveis espremidos em meia coluna */
  .contact-card--mail,
  .contact-card--local { grid-column: 1 / -1; padding-bottom: 1rem; }
  .contact-card--mail .contact-card__body strong { font-size: .86rem; white-space: nowrap; }
  .contact-card--mail .contact-card__arrow,
  .contact-card--local .contact-card__arrow { bottom: auto; top: 50%; transform: translateY(-50%); }
  .contact-card--mail, .contact-card--local { flex-direction: row; align-items: center; padding-right: 2.6rem; }
}

.contact-card__arrow {
  position: absolute;
  right: 1rem;
  bottom: .9rem;
  width: 18px;
  height: 18px;
  color: var(--gold);
  transition: transform .18s ease;
}
.contact-card:hover .contact-card__arrow { transform: translateX(4px); }

@media (min-width: 820px) {
  .contact-card { flex-direction: row; align-items: center; padding: 1.3rem 3rem 1.3rem 1.4rem; }
  .contact-card__arrow { bottom: auto; top: 50%; transform: translateY(-50%); }
  .contact-card:hover .contact-card__arrow { transform: translateY(-50%) translateX(4px); }
}

/* Títulos de faixa */
.strip-title {
  margin-top: 2.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold-strong);
}
.strip-title span { flex: 0 0 46px; height: 1px; background: var(--gold-dim); }

/* FAQ */
.faq {
  margin-top: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 19, 16, .6);
  padding: .3rem 1.3rem;
}

.faq__item + .faq__item { border-top: 1px solid var(--line-soft); }

.faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.02rem;
  cursor: pointer;
  color: #ece5d8;
  transition: color .18s ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--gold-strong); }

.faq__plus { position: relative; flex: none; width: 16px; height: 16px; }
.faq__plus::before,
.faq__plus::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: var(--gold);
  transition: transform .2s ease;
}
.faq__plus::before { width: 16px; height: 1.6px; }
.faq__plus::after { width: 1.6px; height: 16px; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); }

.faq__item p {
  padding: 0 0 1.1rem;
  font-size: .9rem;
  color: var(--muted);
  max-width: 42rem;
}

/* Consultores */
.team {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .9rem;
}

.team__card {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 1rem;
  background: rgba(23, 19, 16, .75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .9rem;
  align-items: center;
}

.team__photo { border-radius: 10px; overflow: hidden; }

.team__info h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.08rem;
  font-weight: 600;
}
.team__role {
  margin-top: .15rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}
.team__area {
  margin-top: .45rem;
  padding-top: .45rem;
  border-top: 1px solid var(--line-soft);
  font-size: .78rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 640px) {
  .team { grid-template-columns: 1fr; }
}

#view-favoritos .page-title, #view-contato .page-title { font-family: "Inter", Arial, sans-serif; font-weight: 700; letter-spacing: -.045em; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.1; }
.team { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding-bottom: 8px; scrollbar-width: thin; scrollbar-color: #9d8059 transparent; }
.team__card { box-sizing: border-box; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.team__info { min-width: 0; overflow-wrap: anywhere; }
.team__photo { display: grid; place-items: center; aspect-ratio: 5 / 6; background: #211b14; color: #dcc4a5; }
.team__photo img { width: 100%; height: 100%; object-fit: cover; }
.team__photo { font: 600 1.5rem "Inter", sans-serif; }
.team__nav { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 10px; color: #fff; font-size: .8rem; }
.team__nav[hidden] { display: none; }
.team[hidden], .strip-title[hidden] { display: none; }
.team__nav button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; color: #fff; background: #211b14; cursor: pointer; font-size: 1.4rem; }
.team:focus-visible, .team__nav button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (min-width: 820px) { .team__card { flex-basis: calc(50% - 7px); } }

/* Botão dourado */
.btn-gold {
  margin-top: 2.2rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  background: linear-gradient(180deg, #dcb582 0%, #c39a63 100%);
  color: #211708;
  border: none;
  border-radius: 999px;
  padding: 1.05rem 1.6rem;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(201, 160, 106, .28);
  transition: transform .18s ease, box-shadow .18s ease;
  position: relative;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(201, 160, 106, .38); }
.btn-gold__ico { width: 20px; height: 20px; }
.btn-gold__arrow { width: 18px; height: 18px; position: absolute; right: 1.4rem; }

.assurance {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.assurance svg { width: 17px; height: 17px; color: var(--gold); }

/* ============================================================
   BARRA INFERIOR
   ============================================================ */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  background: rgba(16, 14, 11, .97);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.tabbar__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: .6rem .3rem .55rem;
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: #8b8274;
  position: relative;
  transition: color .18s ease;
}

.tabbar__icon { width: 22px; height: 22px; }

.tabbar__item, .tabbar__item:hover, .tabbar__item.is-active { color: #fff; }
.tabbar__item.is-active::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: #fff;
}

@media (min-width: 900px) {
  .tabbar__item { flex-direction: row; gap: .5rem; font-size: .8rem; padding: .8rem; }
  .tabbar__icon { width: 19px; height: 19px; }
}

/* com cinco abas, "Favoritos" e "Assessoria" encostam uma na outra nos
   aparelhos mais estreitos */
@media (max-width: 379.98px) {
  .tabbar__item { font-size: .6rem; padding: .55rem .15rem .5rem; letter-spacing: 0; }
  .tabbar__icon { width: 20px; height: 20px; }
}

/* ============================================================
   RODAPÉ
   ============================================================ */
.footer {
  margin-top: 3rem;
  padding: 3rem 0 calc(4.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.footer__inner { display: grid; justify-items: center; gap: 1.2rem; }

.footer__logo img { width: auto; height: 86px; }

.footer__tagline {
  max-width: 26rem;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--muted);
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .2rem 1.4rem;
  font-size: .92rem;
}
/* área de toque de 44px sem mexer na posição do texto */
.footer__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 .2rem;
  color: var(--muted);
  transition: color .15s ease;
}
.footer__nav a:hover { color: var(--gold); }

.footer__copy {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-soft);
  width: 100%;
  font-size: .78rem;
  color: #8f8676;
}

@media (min-width: 760px) {
  .footer { padding-bottom: 3rem; }
  .footer__logo img { height: 104px; }
}

/* ============================================================
   TRANSIÇÃO ENTRE OS DOIS SITES
   ============================================================ */

/* saída: a cor do destino se abre em círculo a partir da aba tocada */
.transicao {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  display: grid;
  place-items: center;
  clip-path: circle(0 at var(--x) var(--y));
  transition: clip-path .46s cubic-bezier(.5, 0, .2, 1);
}
.transicao.is-aberto { clip-path: circle(var(--r) at var(--x) var(--y)); }

/* a logo do destino cresce dentro do círculo, um instante depois dele */
.transicao__logo {
  width: auto;
  height: clamp(96px, 26vw, 150px);
  opacity: 0;
  transform: translateY(14px) scale(.86);
  transition: opacity .32s ease .12s, transform .38s cubic-bezier(.22, 1.3, .4, 1) .12s;
}
.transicao.is-aberto .transicao__logo { opacity: 1; transform: none; }

/* chegada: a página nasce coberta pela mesma cor, que sobe e some */
/* o véu de chegada mostra a mesma logo, que sobe junto com ele — a
   imagem continua de onde parou na página anterior */
html[data-transicao] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto clamp(96px, 26vw, 150px);
  animation: veu-sobe .62s cubic-bezier(.5, 0, .2, 1) forwards;
}
html[data-transicao="medicina"] body::before {
  background-color: #0d2b52;
  background-image: url("imagem/logo-assessoria-branca.png");
}
html[data-transicao="imobiliaria"] body::before {
  background-color: #0d0c0a;
  background-image: url("imagem/logo-imobiliaria-branca.png");
}

@keyframes veu-sobe {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

html[data-transicao] .view.is-active,
html[data-transicao] .header {
  animation: conteudo-entra .5s cubic-bezier(.2, .7, .2, 1) .1s both;
}

@keyframes conteudo-entra {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .transicao,
  .transicao__rotulo { transition: none; }
  html[data-transicao] body::before,
  html[data-transicao] .view.is-active,
  html[data-transicao] .header { animation: none; }
  html[data-transicao] body::before { display: none; }
}

/* ============================================================
   ENTRADA DO PAINEL
   Fica na barra de baixo, mas apagada: é porta de serviço, não
   um destino do visitante.
   ============================================================ */
/* O login mora no menu, não na barra de baixo — ver css/style.css */
.nav__login { color: rgba(255, 255, 255, .62); }
.nav__login:hover { color: var(--gold, #c8a24a); }
