/* ====================================================================
   MIAMI IMOBILIÁRIA — Estilos da página principal
   Paleta: grafite/preto · dourado · verde-esmeralda
   ==================================================================== */

:root {
  --bg:        #0c0c0d;
  --bg-2:      #131315;
  --bg-3:      #1a1b1d;
  --panel:     #161719;
  --line:      #2a2b2e;
  --gold:      #c9a04e;
  --gold-2:    #e7c878;
  --gold-soft: #b8923f;
  --green:     #14503a;
  --green-2:   #1c6b4d;
  --green-dk:  #0f3a2a;
  --text:      #ece8e1;
  --muted:     #9a968d;
  --white:     #ffffff;
  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 18px 50px rgba(0,0,0,.55);
  --gold-grad: linear-gradient(135deg, #e7c878 0%, #c9a04e 45%, #9d7a2f 100%);
  /* dourado "folha de ouro" do slogan: faixas claras e escuras alternadas */
  --gold-foil: linear-gradient(100deg, #b98a34 0%, #f2d488 18%, #c9983f 36%, #f6dc93 55%, #a9792b 76%, #e8c46f 100%);
  --font-display: 'Cinzel', serif;
  --font-body: 'Jost', system-ui, sans-serif;
  /* Curvas fortes: as do CSS (ease, ease-out) são fracas demais para interface */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  color-scheme: dark;
}
html.a11y-light { color-scheme: light; }

/* O atributo hidden sempre vence (seções do detalhe sem dado da API ficam ocultas) */
[hidden] { display: none !important; }

::selection { background: rgba(201,160,78,.35); color: var(--text); }

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: min(1240px, 92%);
  margin-inline: auto;
}

a { color: inherit; text-decoration: none; transition: color .2s, opacity .2s; }
img { max-width: 100%; display: block; }

.gold {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.wa { font-family: var(--font-body); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .3px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .2s var(--ease-out), box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
/* Hover que move só em mouse (no toque ele "gruda" depois do toque) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn.sm { padding: .65rem 1.2rem; font-size: .88rem; }
.btn.lg { padding: 1rem 2rem; font-size: 1.05rem; }

.btn-gold {
  background: var(--gold-grad);
  color: #1a1405;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(201,160,78,.28);
}
.btn-gold:hover { box-shadow: 0 12px 30px rgba(201,160,78,.45); }

.btn-green {
  background: linear-gradient(135deg, var(--green-2), var(--green));
  color: #eafff5;
  border-color: rgba(255,255,255,.06);
  box-shadow: 0 8px 24px rgba(20,80,58,.35);
}
.btn-green:hover { box-shadow: 0 12px 30px rgba(28,107,77,.5); }

.btn-outline {
  background: transparent;
  color: var(--gold-2);
  border-color: rgba(201,160,78,.45);
}
.btn-outline:hover { background: rgba(201,160,78,.1); border-color: var(--gold); }

.badge {
  display: inline-block;
  background: var(--green-2);
  color: #eafff5;
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: 1px;
  padding: .15rem .45rem;
  border-radius: 5px;
  vertical-align: middle;
}
.badge-lg { font-size: .7rem; padding: .3rem .7rem; margin-bottom: 1rem; }

/* ---------- Títulos de seção ---------- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
  text-transform: uppercase;
}
.section-title.left { text-align: left; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.section-head .section-title { text-align: left; margin: 0; }
.see-all { color: var(--gold-2); font-weight: 500; }
.see-all:hover { color: var(--gold); }

/* ====================================================================
   BARRA DE ACESSIBILIDADE
   ==================================================================== */
.a11y-bar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 1200;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: none;
  border-radius: 0 12px 12px 0;
  padding: .4rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  box-shadow: var(--shadow);
  width: 56px;
  overflow: hidden;
  transition: width .28s ease, transform .3s ease;
}
/* Expande os rótulos no hover/foco — fica compacta o resto do tempo */
.a11y-bar:hover,
.a11y-bar:focus-within,
.a11y-bar.expanded { width: 176px; }
.a11y-bar.collapsed { transform: translateY(-50%) translateX(calc(-100% + 16px)); }
.a11y-btn {
  display: flex;
  align-items: center;
  gap: .55rem;
  width: 100%;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: .4rem .35rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: .68rem;
  line-height: 1.1;
  text-align: left;
  transition: background .2s, color .2s;
}
.a11y-btn:hover { background: var(--bg-3); color: var(--gold-2); }
.a11y-btn .ico {
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--bg-3);
  color: var(--gold-2);
  font-weight: 600;
  font-size: .82rem;
}
.a11y-head { border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: .25rem; }
.a11y-btn small {
  white-space: nowrap;
  opacity: 0;
  transition: opacity .2s ease;
}
.a11y-bar:hover .a11y-btn small,
.a11y-bar:focus-within .a11y-btn small,
.a11y-bar.expanded .a11y-btn small { opacity: 1; }

/* ====================================================================
   HEADER
   ==================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12,12,13,.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 76px;
}
.brand-logo {
  height: 58px;
  width: auto;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding-bottom: 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold-2); }
.main-nav a.active::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 2px;
  background: var(--gold-grad);
  border-radius: 2px;
}
.has-badge { display: inline-flex; align-items: center; gap: .35rem; }
.btn-contact { flex: 0 0 auto; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--gold-2);
  border-radius: 2px;
  transition: .3s;
}

/* ====================================================================
   HERO
   ==================================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 75% 15%, rgba(28,107,77,.22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(201,160,78,.12), transparent 60%),
    linear-gradient(180deg, #0c0c0d 0%, #111214 100%);
}
.hero-grid {
  position: relative;
  display: grid;
  /* minmax(0, …): conteúdo largo (card com proporção fixa) não empurra a coluna para fora da tela */
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 3rem;
  align-items: center;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
/* ---------- Slogan da marca: "Grandeza em cada conquista / Excelência em cada imóvel" ----------
   Palavra em itálico dourado; complemento em faixa verde alinhada à direita da palavra,
   subindo um pouco sobre ela (como na arte). */
.hero-slogan {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: clamp(3.1rem, 7vw, 5.4rem);
  font-weight: 400;
  line-height: 1;
  margin-bottom: 1.8rem;
}
.slogan-linha {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.slogan-linha-2 { margin: -.02em 0 0 .55em; }
.slogan-palavra {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.01em;
  /* folga para o itálico não ter a última letra cortada pelo background-clip */
  padding: 0 .12em 0 .02em;
  background: var(--gold-foil);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.slogan-faixa {
  position: relative;
  margin: -.2em .12em 0 0;
  padding: .06em .32em .12em;
  font-family: var(--font-body);
  font-size: .37em;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: .09em;
  color: #fff;
  background: var(--green);
}

.hero-text {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 30rem;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-phones {
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .92rem;
}
.hero-phones a:hover { color: var(--gold-2); }

.hero-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; }
.hero-card {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(28,107,77,.25), transparent 55%),
    linear-gradient(160deg, #1b1c1f, #0e0f10);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 11;
}
.hero-card-logo { max-height: min(250px, 55vw); width: auto; }
.ceo-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
}
.ceo-avatar {
  flex: 0 0 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #1a1405;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-display);
}
.ceo-info { display: flex; flex-direction: column; line-height: 1.35; }
.ceo-info strong { font-size: 1.02rem; }
.ceo-info span { color: var(--muted); font-size: .82rem; }
.ceo-info a { color: var(--gold-2); font-size: .85rem; margin-top: .15rem; }

/* ====================================================================
   BUSCA
   ==================================================================== */
.search-section { padding: 0 0 1rem; margin-top: -2.5rem; position: relative; z-index: 5; }
.search-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}
.search-title {
  font-family: var(--font-display);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.3rem;
  margin-bottom: 1.4rem;
}
.search-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1rem;
  align-items: end;
}
.field { display: flex; flex-direction: column; gap: .4rem; }
.field span { font-size: .78rem; color: var(--muted); letter-spacing: .5px; }
.field select {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .8rem .9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .92rem;
  cursor: pointer;
}
.field select:focus { outline: none; border-color: var(--gold); }
.search-submit { height: 47px; justify-content: center; }
.advanced-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--gold-2);
  font-size: .88rem;
}
.advanced-link:hover { color: var(--gold); }

/* ====================================================================
   IMÓVEIS EM DESTAQUE
   ==================================================================== */
.featured { padding: 4rem 0; }
.property-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.property-card {
  position: relative; /* o link do título cobre o card inteiro (um único alvo de clique e de foco) */
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s var(--ease-out), border-color .25s, box-shadow .25s;
  /* entrada curta e em cascata quando a lista chega da API */
  animation: cardIn .32s var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 11) * 35ms);
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(8px); }
}
@media (hover: hover) and (pointer: fine) {
  .property-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201,160,78,.4);
    box-shadow: var(--shadow);
  }
  .property-card:hover .property-img img { transform: scale(1.04); }
}
.property-card:focus-within { border-color: rgba(201,160,78,.55); }
.property-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.property-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.property-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.property-body h3 a:focus-visible { outline: none; }
.property-card:has(h3 a:focus-visible) { outline: 2px solid var(--gold); outline-offset: 2px; }
.ph-1 { background: linear-gradient(135deg, #1c6b4d33, #0c0c0d), linear-gradient(45deg, #2a3b34, #16201c); }
.ph-2 { background: linear-gradient(135deg, #c9a04e22, #0c0c0d), linear-gradient(45deg, #2e2a22, #1a1814); }
.ph-3 { background: linear-gradient(135deg, #14503a33, #0c0c0d), linear-gradient(45deg, #233029, #141d18); }
.ph-4 { background: linear-gradient(135deg, #1c6b4d22, #0c0c0d), linear-gradient(45deg, #28322d, #161d19); }
.tags {
  position: absolute;
  top: .8rem; left: .8rem; right: .8rem;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  pointer-events: none;
}
.tag {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .3rem .7rem;
  border-radius: 6px;
}
.tag-sale { background: var(--gold-grad); color: #1a1405; }
.tag-rent { background: linear-gradient(135deg, var(--green-2), var(--green)); color: #eafff5; }
.property-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.property-body h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .3rem; line-height: 1.3; }
.property-loc {
  display: flex;
  align-items: flex-start;
  gap: .35rem;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: .85rem;
  line-height: 1.35;
}
.property-loc .ico-svg { flex: none; margin-top: .1em; color: var(--gold-soft); }
.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1rem;
  color: var(--muted);
  font-size: .83rem;
  padding-bottom: .85rem;
  margin-bottom: .85rem;
  border-bottom: 1px solid var(--line);
}
.spec-chip { display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.spec-chip b { color: var(--text); font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-chip .ico-svg { color: var(--gold-soft); }
.property-price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold-2);
  font-variant-numeric: tabular-nums;
}
.property-price small { font-size: .7rem; color: var(--muted); }
.property-price-alt { color: var(--muted); font-size: .8rem; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.property-price-alt small { font-size: inherit; }

/* Ícones desenhados (traço único; herdam a cor do texto) */
.ico-svg {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico-svg.cheio { fill: currentColor; stroke: none; }

/* Carregando: esqueleto dos cards enquanto a lista chega da API */
.property-card.skeleton { animation: none; }
.skeleton .property-img,
.skeleton .sk-line {
  background: linear-gradient(90deg, var(--bg-3) 0%, var(--line) 50%, var(--bg-3) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
}
.sk-line { display: block; height: .8rem; border-radius: 4px; margin-bottom: .7rem; width: 70%; }
.sk-line.curta { width: 45%; }
.sk-line.preco { width: 55%; height: 1.2rem; margin: 1rem 0 0; }
@keyframes shimmer { to { background-position: -200% 0; } }

.load-more { display: flex; justify-content: center; margin-top: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .property-card, .skeleton .property-img, .skeleton .sk-line { animation: none; }
  .property-img img { transition: none; }
}

/* ====================================================================
   HOSPEDAGEM
   ==================================================================== */
.hospedagem {
  padding: 3.5rem 0;
  background:
    linear-gradient(135deg, rgba(20,80,58,.35), rgba(15,58,42,.15)),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.hospedagem-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.5rem;
  align-items: center;
}
.hospedagem-copy .section-title { text-align: left; }
.hospedagem-copy p { color: var(--muted); margin: 1rem 0 1.6rem; max-width: 28rem; }
.ico-bed { color: var(--gold-2); }
.hospedagem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.hosp-item {
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: .8rem;
  overflow: hidden;
}
.hosp-item span {
  font-size: .78rem;
  font-weight: 500;
  position: relative;
  z-index: 2;
  line-height: 1.35;
}
.hosp-item small { display: block; color: var(--gold-2); font-size: .74rem; font-variant-numeric: tabular-nums; }
.hosp-item { background: var(--bg-3); }
.hosp-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hosp-item:hover img { transform: scale(1.05); }
}
/* Vitrine da home: quantas unidades de temporada existirem na base (até 4) */
@media (min-width: 1081px) {
  .hospedagem-grid[data-itens="3"] { grid-template-columns: repeat(3, 1fr); }
  .hospedagem-grid[data-itens="2"] { grid-template-columns: repeat(2, 1fr); }
  .hospedagem-grid[data-itens="1"] { grid-template-columns: minmax(0, 16rem); }
}
.hospedagem-grid[data-itens="0"] { display: none; }
.hosp-resumo { color: var(--gold-2) !important; font-size: .92rem; margin-top: -.6rem !important; }
.hosp-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75));
  z-index: 1;
}
.hp-1 { background: linear-gradient(45deg, #2a3b34, #16201c); }
.hp-2 { background: linear-gradient(45deg, #2e2a22, #1a1814); }
.hp-3 { background: linear-gradient(45deg, #233029, #141d18); }
.hp-4 { background: linear-gradient(45deg, #28322d, #161d19); }

/* ====================================================================
   NOSSA HISTÓRIA
   ==================================================================== */
.historia { padding: 4.5rem 0; }
.historia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.historia-copy p { color: var(--muted); margin: 1.2rem 0 1.8rem; }
/* Uma coluna só (sem o vídeo/as fotos ao lado): o texto fica com largura de leitura, sem meia tela vazia */
.historia-grid.solo, .split-grid.solo { grid-template-columns: minmax(0, 46rem); }
.stats { display: flex; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-2);
}
.stat span { color: var(--muted); font-size: .85rem; }
.stat span small { display: block; max-width: 14rem; margin-top: .15rem; font-size: .72rem; line-height: 1.35; opacity: .8; }
/* Quem Somos → Nossa Sede: endereço atual × sede nova em construção */
.sede-enderecos { display: grid; gap: .8rem; margin-top: 1.2rem; }
.sede-end { border-left: 2px solid var(--gold-2); padding: .15rem 0 .15rem .9rem; color: var(--text); }
.sede-end span { display: block; color: var(--gold-2); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .1rem; }
.historia-video {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ph-video {
  background:
    radial-gradient(100% 100% at 50% 0%, rgba(28,107,77,.25), transparent 60%),
    linear-gradient(160deg, #1b1c1f, #0e0f10);
}
.play-btn {
  width: 78px; height: 78px;
  border-radius: 50%;
  border: none;
  background: var(--gold-grad);
  color: #1a1405;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(201,160,78,.4);
  transition: transform .25s;
}
.play-btn:hover { transform: scale(1.08); }
.video-label {
  position: absolute;
  bottom: 1.2rem;
  color: var(--muted);
  font-size: .85rem;
}

/* ====================================================================
   DIFERENCIAIS
   ==================================================================== */
.diferenciais { padding: 4rem 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.diferenciais .section-title { margin-bottom: 2.6rem; }
.dif-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.dif-item {
  text-align: center;
  padding: 1.6rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .25s, border-color .25s;
}
.dif-item:hover { transform: translateY(-5px); border-color: rgba(201,160,78,.4); }
.dif-ico {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201,160,78,.12);
  color: var(--gold-2);
  font-size: 1.5rem;
}
.dif-item h3 { font-size: .98rem; margin-bottom: .5rem; }
.dif-item p { color: var(--muted); font-size: .82rem; }

/* ====================================================================
   SERVIÇOS
   ==================================================================== */
.services { padding: 4rem 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.service-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
  transition: transform .25s, border-color .25s;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(201,160,78,.4); }
.svc-ico {
  width: 52px; height: 52px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(28,107,77,.18);
  font-size: 1.4rem;
}
.service-card h3 { font-size: 1.08rem; }
.service-card p { color: var(--muted); font-size: .88rem; flex: 1; }
.service-card .btn { margin-top: .4rem; }

/* ====================================================================
   CTA
   ==================================================================== */
.cta {
  padding: 3rem 0;
  background:
    linear-gradient(135deg, rgba(20,80,58,.4), rgba(15,58,42,.2)),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-text { display: flex; align-items: center; gap: 1.2rem; }
.cta-ico {
  flex: 0 0 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #1a1405;
  font-size: 1.5rem;
}
.cta-text h2 { font-family: var(--font-display); font-size: 1.4rem; text-transform: uppercase; letter-spacing: .5px; }
.cta-text p { color: var(--muted); }

/* ====================================================================
   FOOTER
   ==================================================================== */
.site-footer { background: #0a0a0b; border-top: 1px solid var(--line); padding-top: 3.5rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.3fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-logo { height: 80px; width: auto; margin-bottom: 1rem; }
.footer-brand p { color: var(--muted); max-width: 18rem; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: .95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: .65rem;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  color: var(--muted);
  font-size: .82rem;
}

/* ====================================================================
   ACESSIBILIDADE — modos aplicados via JS no <html>
   (preferências persistem em localStorage — ver js/a11y.js e js/main.js)
   ==================================================================== */

/* ---------- MODO CLARO ----------
   Mármore ivory no corpo; header e footer permanecem escuros
   (moldura grafite-esmeralda onde a logo dourada funciona). */
html.a11y-light {
  --bg:        #f3efe7;
  --bg-2:      #ebe6da;
  --bg-3:      #dfd8c8;
  --panel:     #fdfcf9;
  --line:      #d9d2c2;
  --gold:      #8f6b22;
  --gold-2:    #7c5c1c;
  --gold-soft: #8f6b22;
  --text:      #211f1a;
  --muted:     #6d6a60;
  --shadow:    0 14px 40px rgba(80,66,38,.14);
  --gold-grad: linear-gradient(135deg, #c9a04e 0%, #a37b2c 50%, #7c5c1c 100%);
  --gold-foil: linear-gradient(100deg, #7c5c1c 0%, #a8812f 22%, #6f521a 45%, #9d7a2f 68%, #7c5c1c 100%);
}
/* Moldura escura: header e footer mantêm o tema da marca */
html.a11y-light .site-header,
html.a11y-light .site-footer {
  --text:      #ece8e1;
  --muted:     #9a968d;
  --line:      #2b342c;
  --gold:      #c9a04e;
  --gold-2:    #e7c878;
  --gold-grad: linear-gradient(135deg, #e7c878 0%, #c9a04e 45%, #9d7a2f 100%);
}
html.a11y-light .site-header {
  background: rgba(15, 23, 18, .93);
  border-bottom: 1px solid #242c26;
}
html.a11y-light .site-footer { background: #10170f; }
html.a11y-light .hero-bg {
  background:
    radial-gradient(900px 500px at 75% 15%, rgba(28,107,77,.12), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(163,123,44,.10), transparent 60%),
    linear-gradient(180deg, #f3efe7 0%, #ebe6da 100%);
}
html.a11y-light .page-hero {
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(28,107,77,.10), transparent 60%),
    radial-gradient(500px 300px at 5% 100%, rgba(163,123,44,.08), transparent 60%),
    var(--bg-2);
}
html.a11y-light .hero-card {
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(28,107,77,.10), transparent 55%),
    linear-gradient(160deg, #fdfcf9, #ebe6da);
}
html.a11y-light .hospedagem,
html.a11y-light .cta {
  background:
    linear-gradient(135deg, rgba(20,80,58,.10), rgba(15,58,42,.04)),
    var(--bg-2);
}
html.a11y-light .senior-card {
  background:
    linear-gradient(135deg, rgba(20,80,58,.10), rgba(15,58,42,.03)),
    var(--panel);
}
html.a11y-light .map-frame iframe { filter: none; }
html.a11y-light .whats-fab { border-color: rgba(0,0,0,.1); }

/* ---------- ALTO CONTRASTE ---------- */
html.a11y-contrast {
  --bg:        #000;
  --bg-2:      #000;
  --bg-3:      #141414;
  --panel:     #000;
  --line:      #e8e8e8;
  --gold:      #ffd75e;
  --gold-2:    #ffe38a;
  --gold-soft: #ffd75e;
  --text:      #fff;
  --muted:     #f0f0f0;
  --shadow:    none;
  --gold-grad: linear-gradient(135deg, #ffe38a, #ffd75e);
  --gold-foil: linear-gradient(#ffd75e, #ffd75e);
}
html.a11y-contrast .slogan-faixa { background: #000; outline: 1px solid #fff; }
html.a11y-contrast .hero-bg,
html.a11y-contrast .page-hero,
html.a11y-contrast .site-header,
html.a11y-contrast .site-footer,
html.a11y-contrast .hospedagem,
html.a11y-contrast .cta,
html.a11y-contrast .senior-card { background: #000; }
html.a11y-contrast a { text-decoration: underline; }
html.a11y-contrast .btn { border-color: #fff; }

/* ---------- NEGATIVO / ESCALA DE CINZA ---------- */
html.a11y-negative { filter: invert(1) hue-rotate(180deg); }
html.a11y-negative img,
html.a11y-negative iframe { filter: invert(1) hue-rotate(180deg); }
html.a11y-grayscale { filter: grayscale(1); }
html.a11y-grayscale.a11y-negative { filter: invert(1) hue-rotate(180deg) grayscale(1); }

/* ---------- FONTE LEGÍVEL / LINKS DESTACADOS ---------- */
html.a11y-readable body,
html.a11y-readable body * { font-family: Verdana, Arial, sans-serif !important; letter-spacing: .2px; }
html.a11y-links a { text-decoration: underline; color: var(--gold-2) !important; }

/* ---------- FOCO DE TECLADO ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
html.a11y-focus a:focus,
html.a11y-focus button:focus,
html.a11y-focus input:focus,
html.a11y-focus select:focus,
html.a11y-focus textarea:focus {
  outline: 3px solid var(--gold) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(201,160,78,.28) !important;
}
.skip-link {
  position: fixed;
  top: -100px; left: 12px;
  z-index: 3000;
  background: var(--gold-grad);
  color: #1a1405;
  font-weight: 600;
  padding: .7rem 1.3rem;
  border-radius: 0 0 10px 10px;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---------- GUIA DE LEITURA ---------- */
.reading-guide {
  position: fixed;
  left: 0; right: 0;
  top: 40%;
  height: 3.4rem;
  z-index: 2500;
  pointer-events: none;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  background: rgba(201,160,78,.10);
  box-shadow: 0 0 0 200vmax rgba(0,0,0,.20);
  display: none;
}

/* ---------- PAUSAR ANIMAÇÕES ---------- */
html.a11y-motion *,
html.a11y-motion *::before,
html.a11y-motion *::after {
  animation: none !important;
  transition: none !important;
}
html.a11y-motion { scroll-behavior: auto; }

/* ---------- Barra: estado ativo + rolagem em telas baixas ---------- */
.a11y-btn.on { color: var(--gold-2); }
.a11y-btn.on .ico { background: var(--gold-grad); color: #1a1405; }
.a11y-bar {
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
}

/* ====================================================================
   RESPONSIVO
   ==================================================================== */
/* Folga à esquerda para a barra de acessibilidade não tocar o conteúdo */
@media (min-width: 901px) and (max-width: 1320px) {
  body { padding-left: 64px; }
}

@media (max-width: 1080px) {
  .property-grid, .service-grid, .hospedagem-grid { grid-template-columns: repeat(2, 1fr); }
  .dif-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .main-nav, .btn-contact { display: none; }
  .nav-toggle { display: flex; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 5%;
  }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .historia-grid, .hospedagem-inner { grid-template-columns: 1fr; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
  /* Barra de acessibilidade no celular: recolhida vira só o botão ♿ no canto inferior
     esquerdo (espelho do WhatsApp) e não cobre o conteúdo; tocando, abre completa e com rótulos.
     O js/main.js começa recolhida no celular e fecha ao tocar fora. */
  .a11y-bar {
    top: auto;
    bottom: 22px;
    transform: none;
    width: 176px;
    max-height: calc(100vh - 110px);
  }
  .a11y-bar .a11y-btn small { opacity: 1; }
  .a11y-bar.collapsed {
    transform: none;
    width: auto;
    padding: .3rem;
  }
  .a11y-bar.collapsed .a11y-btn:not(.a11y-head) { display: none; }
  .a11y-bar.collapsed .a11y-head { border-bottom: none; padding-bottom: .4rem; margin-bottom: 0; }
  .a11y-bar.collapsed .a11y-head small { display: none; }
}

@media (max-width: 560px) {
  .property-grid, .service-grid, .dif-grid, .hospedagem-grid, .footer-grid, .search-form {
    grid-template-columns: 1fr;
  }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ====================================================================
   COMPONENTES DAS PÁGINAS INTERNAS
   ==================================================================== */

/* ---------- Tags e código nos cards ---------- */
.tag-temp {
  background: rgba(10,10,11,.78);
  color: var(--gold-2);
  border: 1px solid rgba(201,160,78,.6);
}
.tag-flag { background: rgba(10,10,11,.78); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.prop-video {
  position: absolute;
  left: .8rem; bottom: .8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .64rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: .2rem .5rem;
  border-radius: 5px;
}
.prop-video .ico-svg { width: .8em; height: .8em; }
.prop-code {
  z-index: 2;
  font-variant-numeric: tabular-nums;
  position: absolute;
  right: .8rem; bottom: .8rem;
  font-size: .64rem;
  letter-spacing: 1px;
  color: #fff;
  background: rgba(0,0,0,.55);
  padding: .2rem .5rem;
  border-radius: 5px;
}
.property-body h3 a:hover { color: var(--gold-2); }
.property-grid.three { grid-template-columns: repeat(3, 1fr); }

/* ---------- Botão flutuante WhatsApp ---------- */
@keyframes fabPulse {
  0%   { box-shadow: 0 0 0 0 rgba(28,107,77,.55); }
  70%  { box-shadow: 0 0 0 18px rgba(28,107,77,0); }
  100% { box-shadow: 0 0 0 0 rgba(28,107,77,0); }
}
.whats-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 1100;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--green-2), var(--green));
  border: 1px solid rgba(255,255,255,.12);
  color: #eafff5;
  font-size: 1.5rem;
  animation: fabPulse 2.6s infinite;
  transition: transform .2s;
}
.whats-fab:hover { transform: scale(1.08); }

/* ---------- Hero das páginas internas ---------- */
.page-hero {
  position: relative;
  padding: 3.2rem 0 2.4rem;
  background:
    radial-gradient(700px 300px at 80% 0%, rgba(28,107,77,.18), transparent 60%),
    radial-gradient(500px 300px at 5% 100%, rgba(201,160,78,.08), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { color: var(--muted); font-size: .82rem; letter-spacing: .5px; margin-bottom: .7rem; }
.breadcrumb a:hover { color: var(--gold-2); }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.page-hero .lead { color: var(--muted); max-width: 46rem; margin-top: .6rem; font-size: 1.02rem; }

/* ---------- Listagem com filtros ---------- */
.listing { padding: 2.5rem 0 4.5rem; }
.filters-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: end;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  margin-bottom: 1.6rem;
}
.filters-bar .btn { height: 47px; justify-content: center; }
.field input,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--text);
  padding: .8rem .9rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .92rem;
  width: 100%;
}
.field input:focus,
.field textarea:focus,
.field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: .92rem;
}
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3.5rem 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
}

/* ---------- Página de detalhe do imóvel ---------- */
.detail { padding: 2.2rem 0 4.5rem; }
.detail-grid {
  display: grid;
  grid-template-columns: 1.65fr .85fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1.2rem;
}
.gallery-main {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
.gallery-main .tags { top: 1rem; left: 1rem; }
.gallery-main > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  touch-action: pan-y; /* deslizar para o lado troca a foto; rolar a página continua funcionando */
  user-select: none;
  -webkit-user-drag: none;
}
.gallery-main:not(:has(img[src])) > img { visibility: hidden; }
.gallery-main.uma-foto .gallery-nav { display: none; }

.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px; height: 44px;
  margin-top: -22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10,10,11,.55);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .2s, transform .16s var(--ease-out), opacity .2s;
}
.gallery-nav.prev { left: .9rem; }
.gallery-nav.next { right: .9rem; }
.gallery-nav:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) {
  .gallery-nav:hover { background: rgba(10,10,11,.8); }
  .gallery-main .gallery-nav { opacity: 0; }
  .gallery-main:hover .gallery-nav,
  .gallery-main:focus-within .gallery-nav { opacity: 1; }
}
.gallery-zoom {
  position: absolute;
  right: .9rem; bottom: .9rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(10,10,11,.6);
  color: #fff;
  font: 500 .8rem var(--font-body);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  backdrop-filter: blur(6px);
}
.gallery-zoom:active { transform: scale(.96); }

/* Miniaturas: faixa rolável (imóvel com 30+ fotos não empurra a página) */
.gallery-thumbs {
  display: flex;
  gap: .5rem;
  margin-top: .6rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  padding-bottom: .35rem;
}
.gallery-thumbs:empty { display: none; }
.thumb {
  flex: 0 0 calc((100% - 2.5rem) / 6);
  min-width: 84px;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-3);
  cursor: pointer;
  border: 2px solid transparent;
  opacity: .65;
  scroll-snap-align: start;
  transition: border-color .2s, opacity .2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .thumb:hover { opacity: 1; }
}
.thumb.active { border-color: var(--gold); opacity: 1; }

/* Tela cheia */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6,6,7,.96);
  color: #fff;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox > img {
  max-width: min(94vw, 1600px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
}
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}
.lightbox-count {
  position: absolute;
  bottom: 1.1rem; left: 50%;
  transform: translateX(-50%);
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  font-variant-numeric: tabular-nums;
}
.lightbox .gallery-nav { opacity: 1; }
.lightbox .gallery-nav.prev { left: 1.2rem; }
.lightbox .gallery-nav.next { right: 1.2rem; }

/* Vídeo/tour do YouTube: capa + play; o player só carrega no clique */
.video-grid { display: grid; gap: 1rem; }
.video-grid.dois { grid-template-columns: 1fr 1fr; }
.video-facade,
.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-3);
}
.video-facade { padding: 0; cursor: pointer; display: block; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .8; transition: opacity .2s; }
.video-play {
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #1a1405;
  font-size: 1.5rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  transition: transform .2s var(--ease-out);
}
.video-play .ico-svg { margin-left: 3px; }
.video-label {
  position: absolute;
  left: 1rem; bottom: .9rem;
  color: #fff;
  font-weight: 500;
  font-size: .9rem;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}
@media (hover: hover) and (pointer: fine) {
  .video-facade:hover img { opacity: 1; }
  .video-facade:hover .video-play { transform: scale(1.06); }
}
.video-facade:active .video-play { transform: scale(.95); }
.video-frame { border: 0; display: block; }

/* Imóvel não encontrado / base atualizando */
.detail-aviso {
  margin: 2.5rem 0 1rem;
  padding: 2.4rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}
.detail-aviso h1 { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: .6rem; }
.detail-aviso p { color: var(--muted); max-width: 36rem; margin: 0 auto 1.4rem; }
.detail-aviso-acoes { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}
/* Item de grid não encolhe abaixo do conteúdo por padrão: sem isso a faixa de miniaturas
   alarga a coluna e empurra a lateral de contato para fora da tela. */
.detail-main { min-width: 0; }
.detail-head > div:first-child { flex: 1 1 26rem; min-width: 0; }
.detail-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  letter-spacing: .3px;
  line-height: 1.3;
  text-wrap: balance;
}
.detail-subtitulo { color: var(--text); opacity: .85; font-size: .98rem; line-height: 1.5; margin-top: .45rem; max-width: 60ch; }
.detail-loc { display: flex; align-items: center; gap: .4rem; color: var(--muted); margin-top: .45rem; }
.detail-loc .ico-svg { color: var(--gold-soft); }
.detail-code {
  color: var(--muted);
  font-size: .78rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.detail-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .5rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--gold-2);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.detail-price-item { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.detail-price-item span {
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-price-item strong { font-weight: 600; }
.detail-price small { font-size: .72rem; color: var(--muted); }
.spec-row {
  display: flex;
  gap: 1.2rem 2.2rem;
  flex-wrap: wrap;
  border-block: 1px solid var(--line);
  padding: 1.1rem 0;
  margin: 1.4rem 0;
}
.spec { display: flex; align-items: center; gap: .7rem; }
.spec > .ico-svg { font-size: 1.35rem; color: var(--gold-soft); }
.spec > div { display: flex; flex-direction: column; }
.spec strong { font-size: 1.08rem; font-variant-numeric: tabular-nums; }
.spec span { color: var(--muted); font-size: .78rem; }
.detail-section { margin-top: 2.2rem; }
.detail-section h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold-2);
  margin-bottom: 1rem;
}
.detail-desc { color: var(--muted); }
.carac-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .55rem 1.4rem;
}
.carac-grid li { color: var(--muted); font-size: .92rem; }
.carac-grid li::before { content: "✓  "; color: var(--gold-2); }
.ficha-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem 2.5rem;
}
.ficha-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px dashed var(--line);
  padding: .45rem 0;
  font-size: .92rem;
}
.ficha-list li span { color: var(--muted); }
.sidebar-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow);
}
.sidebar-card h3 {
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: .4rem;
}
.sidebar-card > .btn { width: 100%; justify-content: center; margin-bottom: .7rem; }
.form-stack { display: grid; gap: .8rem; margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.form-stack .btn { width: 100%; justify-content: center; }
.similar { margin-top: 3.5rem; }

/* ---------- Seções genéricas / passos ---------- */
.page-section { padding: 3.5rem 0; }
.page-section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-sub {
  color: var(--muted);
  text-align: center;
  max-width: 44rem;
  margin: .8rem auto 2.4rem;
}
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps-grid.four { grid-template-columns: repeat(4, 1fr); }
.step-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: transform .25s, border-color .25s;
}
.step-item:hover { transform: translateY(-5px); border-color: rgba(201,160,78,.4); }
.step-num {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-grad);
  color: #1a1405;
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 1rem;
}
.step-ico {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(201,160,78,.12);
  color: var(--gold-2);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}
.step-item h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.step-item p { color: var(--muted); font-size: .9rem; }

/* ---------- Formulários ---------- */
.form-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.4rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
}
.form-note { color: var(--muted); font-size: .8rem; }

/* ---------- Linha do tempo ---------- */
.timeline { list-style: none; position: relative; padding-left: 2rem; max-width: 44rem; margin-inline: auto; }
.timeline::before {
  content: "";
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--gold), rgba(201,160,78,.12));
}
.tl-item { position: relative; padding-bottom: 1.8rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -2rem; top: .35rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px rgba(201,160,78,.15);
}
.tl-year { font-family: var(--font-display); color: var(--gold-2); font-size: 1.1rem; }
.tl-item h3 { font-size: 1rem; margin: .15rem 0 .3rem; }
.tl-item p { color: var(--muted); font-size: .92rem; }

/* ---------- Equipe ---------- */
/* flex e não grid: com 9 pessoas a última linha fica centralizada (5+4, 3+3+3, 2+…+1) */
.team-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.3rem; }
.team-card {
  flex: 0 1 calc((100% - 4 * 1.3rem) / 5);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  padding-bottom: 1.3rem;
  transition: transform .25s, border-color .25s;
}
.team-card:hover { transform: translateY(-5px); border-color: rgba(201,160,78,.4); }
.team-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 600 / 640;
  object-fit: cover;
  background-color: var(--bg-3);
  margin-bottom: 1rem;
}
.team-card h3 { font-size: .98rem; padding: 0 .6rem; }
/* cargo (só o CEO): selo sobre a foto, para não deixar um cartão mais alto que os outros */
.team-card { position: relative; }
.team-card > span {
  position: absolute; top: .7rem; left: .7rem;
  padding: .2rem .6rem; border-radius: 999px;
  background: rgba(10,10,11,.78); border: 1px solid rgba(201,160,78,.55);
  color: var(--gold-2); font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Blocos divididos / fotos / checklists ---------- */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.checklist { list-style: none; display: grid; gap: .6rem; margin: 1.2rem 0 1.6rem; }
.checklist li { color: var(--muted); }
.checklist li::before { content: "✓  "; color: var(--gold-2); }
.photo-tile {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-3);
  aspect-ratio: 4 / 3;
}
.photo-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.photo-duo .photo-tile:last-child { margin-top: 1.6rem; }

/* ---------- Página de contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2rem;
  align-items: start;
}
.info-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: transform .25s, border-color .25s;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(201,160,78,.4); }
.info-card .ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(201,160,78,.12);
  color: var(--gold-2);
  font-size: 1.1rem;
  margin-bottom: .7rem;
}
.info-card h3 { font-size: .95rem; margin-bottom: .25rem; }
.info-card p, .info-card a { color: var(--muted); font-size: .88rem; display: block; }
.info-card a:hover { color: var(--gold-2); }
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
}
.map-frame iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
  filter: grayscale(.15) invert(.9) hue-rotate(180deg) contrast(.9);
}

/* ---------- Acessibilidade completa + Modo Sênior (home) ---------- */
.a11y-cards { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1.5rem; }
.a11y-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.a11y-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: .4rem;
}
.a11y-card > p { color: var(--muted); font-size: .92rem; }
.a11y-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
  text-align: center;
}
.a11y-feature .fico {
  width: 50px; height: 50px;
  margin: 0 auto .6rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201,160,78,.4);
  background: rgba(201,160,78,.07);
  color: var(--gold-2);
  font-size: 1.15rem;
}
.a11y-feature small { color: var(--muted); line-height: 1.3; display: block; }
.senior-card {
  background:
    linear-gradient(135deg, rgba(20,80,58,.35), rgba(15,58,42,.12)),
    var(--panel);
  display: flex;
  flex-direction: column;
}
.senior-card .a11y-features { text-align: left; grid-template-columns: 1fr 1fr; flex: 1; }
.senior-card .btn { margin-top: 1.5rem; align-self: flex-start; }
.senior-state { font-size: .72rem; letter-spacing: 1px; opacity: .85; }
html.a11y-senior { font-size: 19px; }
html.a11y-senior .btn { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Selos / certificações (rodapé e quem somos) ---------- */
.selos { display: flex; gap: 1.1rem; margin-top: 1.4rem; flex-wrap: wrap; }
.selos.center { justify-content: center; margin-top: 0; }
.selo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.selo-ico {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(201,160,78,.45);
  background: rgba(201,160,78,.07);
  color: var(--gold-2);
  font-size: 1.05rem;
}
.selo small { color: var(--muted); font-size: .62rem; line-height: 1.3; }
.selos.center .selo small { font-size: .78rem; }

/* ---------- Responsivo — páginas internas ---------- */
@media (max-width: 1080px) {
  .filters-bar { grid-template-columns: repeat(2, 1fr); }
  .detail-grid, .contact-grid, .split-grid, .a11y-cards { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .team-card { flex-basis: calc((100% - 2 * 1.3rem) / 3); }
  .steps-grid, .steps-grid.four { grid-template-columns: repeat(2, 1fr); }
  .carac-grid, .property-grid.three { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .filters-bar, .form-grid, .info-cards, .ficha-list,
  .steps-grid, .steps-grid.four, .carac-grid, .photo-duo,
  .property-grid.three, .senior-card .a11y-features {
    grid-template-columns: 1fr;
  }
  .team-grid { gap: .8rem; }
  .team-card { flex-basis: calc((100% - .8rem) / 2); padding-bottom: 1rem; }
  .team-photo { margin-bottom: .7rem; }
  .a11y-features { grid-template-columns: repeat(2, 1fr); }
  .photo-duo .photo-tile:last-child { margin-top: 0; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .detail-head { flex-direction: column; gap: .6rem; }
  .whats-fab { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ---------- Detalhe: leitura e responsivo dos componentes novos ---------- */
.detail-desc { max-width: 72ch; }
.detail-desc p + p { margin-top: .8rem; }
.detail-desc strong { color: var(--text); font-weight: 500; }
@media (max-width: 900px) {
  .detail-price, .detail-price-item { align-items: flex-start; }
}
@media (max-width: 560px) {
  /* o cabeçalho vira coluna: a base de 26rem (pensada para largura) viraria altura */
  .detail-head > div:first-child { flex: none; }
  .video-grid.dois { grid-template-columns: 1fr; }
  .gallery-nav { width: 38px; height: 38px; margin-top: -19px; font-size: 1.15rem; }
  .gallery-nav.prev { left: .5rem; }
  .gallery-nav.next { right: .5rem; }
  .thumb { min-width: 72px; }
  .lightbox .gallery-nav { top: auto; bottom: .8rem; margin-top: 0; }
  .detail-aviso { padding: 1.8rem 1.2rem; }
}

/* ====================================================================
   RESPONSIVIDADE — ajustes do teste em 21 aparelhos e telas (24/09/2026)
   Item de grade não encolhe abaixo do próprio conteúdo por padrão: um select com opção longa
   (bairro "Planta Bairro Weissópolis", tipo "Fazenda/Sítios/Chácaras") ou um botão sem quebra
   alargava a coluna e empurrava a página para o lado. min-width: 0 deixa a coluna encolher e o
   conteúdo se ajeitar dentro dela.
   ==================================================================== */
.a11y-cards > *, .split-grid > *, .contact-grid > *, .photo-duo > *, .dif-grid > *,
.search-form > *, .filters-bar > *, .form-grid > *, .info-cards > *, .steps-grid > *,
.service-grid > *, .team-grid > *, .footer-grid > *, .hospedagem-inner > *, .historia-grid > *,
.hero-grid > * { min-width: 0; }
.field select, .field input, .field textarea { min-width: 0; max-width: 100%; }
.field select { width: 100%; text-overflow: ellipsis; }
.btn { max-width: 100%; }

/* Hospedagem: 4 benefícios (antes vinha "4 colunas" fixo no HTML, que ignorava o celular) */
.dif-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .dif-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dif-grid.four { grid-template-columns: 1fr; }
  /* botão com texto longo quebra a linha em vez de sair da tela */
  .btn { white-space: normal; text-align: center; justify-content: center; }
  .a11y-card, .form-card { padding: 1.3rem; }
}

/* Menu do topo: entre 901 e 1239 px os 8 itens não cabem numa linha (iPad deitado/em pé,
   iPad Pro, notebook pequeno) e quebravam em duas. Nessa faixa vira o menu "hambúrguer" do
   celular; o "Fale Conosco" continua visível porque ali ainda cabe. */
@media (min-width: 901px) and (max-width: 1239px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; margin-left: .6rem; }
  .btn-contact { margin-left: auto; }
  .main-nav.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: .4rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    padding: 1.2rem 5%;
  }
}
