/* ========== Fontes locais (sem requisições a terceiros) ==========
   Cormorant Garamond e Manrope, subconjunto latino (cobre o português),
   licença SIL OFL 1.1 — ver /fontes/LICENSE-*.txt. Pesos usados no site:
   Cormorant 500/600 (+ itálico 500) e Manrope 400/500/600/700.
================================================================ */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fontes/cormorant-garamond-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fontes/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500; font-display: swap; src: url("/fontes/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fontes/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fontes/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fontes/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fontes/manrope-latin-700-normal.woff2") format("woff2"); }

:root {
  --ink: #12151c;
  --ink-soft: #2f343e;
  --navy: #071426;
  --muted: #6b7079;
  --muted-soft: #9499a3;
  --gold: #b08a3c;
  --gold-soft: #d4b36a;
  --gold-line: rgba(176, 138, 60, 0.55);
  --hero-ink: #0c0e12;
  --line: #e8e6e1;
  --line-strong: #d5d0c7;
  --paper: #ffffff;
  --ivory: #f6f5f2;
  --ivory-deep: #eeece7;
  --ok-bg: #eef7f1;
  --ok-ink: #1a4a31;
  --erro-bg: #faf0f0;
  --erro-ink: #7a2222;
  --danger: #9b2c2c;
  --danger-bg: #fdf2f2;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 28px;
  --space-5: 52px;
  --space-6: 72px;
  --control: 48px;
  --wrap: 1180px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --ease: 220ms cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 1px 2px rgba(18, 21, 28, 0.04), 0 1px 3px rgba(18, 21, 28, 0.03);
  --shadow-md: 0 8px 24px rgba(18, 21, 28, 0.07), 0 2px 6px rgba(18, 21, 28, 0.04);
  --shadow-lg: 0 20px 48px rgba(18, 21, 28, 0.12), 0 4px 12px rgba(18, 21, 28, 0.05);
  --focus: 0 0 0 2px var(--paper), 0 0 0 4px rgba(176, 138, 60, 0.75);
  --text-display: clamp(36px, 5vw, 56px);
  --text-title: clamp(32px, 3.8vw, 44px);
  --text-title-sm: clamp(26px, 3vw, 32px);
  --text-card: 22px;
  --text-price: clamp(26px, 2.6vw, 32px);
  --text-body: 16px;
  --text-meta: 13px;
  --leading-tight: 1.08;
  --leading-body: 1.55;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main { flex: 1 0 auto; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}

/* —— Topbar + Header —— */
.topbar {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: var(--ivory);
}

.topbar .wrap {
  min-height: 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
}

.topbar a {
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}

.topbar a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--ease), background var(--ease), border-color var(--ease), color var(--ease);
}

/* Blur on ::before — never on the header itself (avoids soft/pixelated logo) */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  transition: background var(--ease), opacity var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.98);
}

body.is-home .site-header {
  position: fixed;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom-color: transparent;
  color: #fff;
}

body.is-home .site-header::before {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.is-home .site-header .menu a { color: rgba(255, 255, 255, 0.92); }
body.is-home .site-header .menu a:hover { color: var(--gold-soft); }
body.is-home .site-header .wa {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
body.is-home .site-header .wa:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}
body.is-home .site-header .burger span { background: #fff; }

body.is-home .site-header.is-scrolled {
  border-bottom-color: var(--line);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(18, 21, 28, 0.08);
}

body.is-home .site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
}
body.is-home .site-header.is-scrolled .menu a { color: var(--ink); }
body.is-home .site-header.is-scrolled .menu a:hover { color: var(--gold); }
body.is-home .site-header.is-scrolled .wa {
  border-color: var(--ink);
  color: var(--ink);
}
body.is-home .site-header.is-scrolled .wa:hover {
  background: var(--ink);
  color: #fff;
}
body.is-home .site-header.is-scrolled .burger span { background: var(--ink); }

body.is-home main#topo { padding-top: 0; }

  .nav {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  position: relative;
  transition: min-height var(--ease);
}

.site-header.is-scrolled .nav { min-height: 76px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  text-decoration: none;
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: top var(--ease);
}

.skip-link:focus {
  top: 12px;
  outline: none;
  box-shadow: var(--focus);
}

.brand {
  line-height: 1;
  position: relative;
  z-index: 1;
}

.brand-emblem {
  width: 78px;
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
  display: block;
  shape-rendering: geometricPrecision;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -webkit-user-drag: none;
  transition: width var(--ease);
}

.site-header.is-scrolled .brand-emblem {
  width: 64px;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-js {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #e8ecf2;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

.brand-tag,
.brand-creci {
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft, #d4b56a);
}

.brand-creci {
  font-size: 9px;
  letter-spacing: 0.14em;
  opacity: 0.92;
}

body:not(.is-home) .brand-js,
body.is-home .site-header.is-scrolled .brand-js {
  color: var(--ink);
  text-shadow: none;
}

body:not(.is-home) .brand-tag,
body:not(.is-home) .brand-creci,
body.is-home .site-header.is-scrolled .brand-tag,
body.is-home .site-header.is-scrolled .brand-creci {
  color: var(--gold);
}

.brand--footer {
  gap: 14px;
  margin-bottom: 0;
}

.brand--footer .brand-emblem {
  width: 64px;
}

.brand--footer .brand-js {
  color: var(--ink);
  font-size: 26px;
  text-shadow: none;
}

.brand--footer .brand-tag,
.brand--footer .brand-creci {
  color: var(--gold);
}

.brand-logo,
.brand > img.brand-logo {
  width: min(200px, 48vw);
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: left center;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
  -webkit-user-drag: none;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: width var(--ease);
}

.menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.menu a {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: color var(--ease);
}

.menu a:hover { color: var(--gold); }

.menu a:focus-visible,
.wa:focus-visible,
.btn:focus-visible,
.modes button:focus-visible,
.burger:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.ico {
  display: inline-flex;
  width: 1.1em;
  height: 1.1em;
  flex: 0 0 auto;
  line-height: 0;
}

.ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.link-ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  padding: 12px 18px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), border-color var(--ease), transform var(--ease);
}

.wa .ico {
  width: 15px;
  height: 15px;
}

.wa:hover {
  background: var(--ink);
  color: #fff;
}

.burger {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
}

.burger span {
  display: block;
  height: 1.5px;
  margin: 7px 11px;
  background: var(--ink);
  transition: transform var(--ease), opacity var(--ease);
  transform-origin: center;
}

.site-header.open .burger span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.site-header.open .burger span:nth-child(2) { opacity: 0; }
.site-header.open .burger span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  min-height: min(82svh, 760px);
  display: flex;
  align-items: flex-end;
  padding: 110px 0 56px;
  color: #fff;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-bg {
  background: var(--hero-ink) center 40% / cover no-repeat;
  transform: scale(1.04);
  animation: heroKen 18s ease-out forwards;
  will-change: transform;
}

@keyframes heroKen {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.hero-bg--premium {
  background-image: url('/marca/hero-premium.jpg');
}

@supports (background-image: url('/marca/hero-premium.webp')) {
  .hero-bg--premium {
    background-image: url('/marca/hero-premium.webp');
  }
}

.hero-shade {
  background:
    linear-gradient(180deg, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0.22) 36%, rgba(8, 10, 14, 0.88) 100%),
    linear-gradient(105deg, rgba(8, 10, 14, 0.78) 0%, rgba(8, 10, 14, 0.42) 38%, rgba(8, 10, 14, 0.08) 72%);
}

.hero-inner {
  position: relative;
  width: min(var(--wrap), calc(100% - 48px));
  padding-bottom: 8px;
  animation: heroIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

.hero-brandmark {
  position: absolute;
  left: 0;
  bottom: 58%;
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(88px, 16vw, 160px);
  font-weight: 500;
  line-height: 0.8;
  letter-spacing: -0.045em;
  color: rgba(255, 255, 255, 0.07);
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-kicker,
.hero-title,
.hero-lead,
.hero-actions {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}

.hero-kicker::before {
  content: "";
  width: 36px;
  height: 1px;
  background: var(--gold-soft);
}

.hero-title {
  margin: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
  font-size: var(--text-display);
  line-height: var(--leading-tight);
  letter-spacing: -0.02em;
  max-width: 18ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 38ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 400;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* Hero CTA variants — specificity above plain .btn */
.btn.btn-light {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.btn.btn-light:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.btn.btn-wa--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.75);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn.btn-wa--ghost:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.hero-scroll {
  position: absolute;
  right: max(24px, calc((100% - var(--wrap)) / 2));
  bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 4px;
  transition: color var(--ease), border-color var(--ease);
}

.hero-scroll:hover {
  color: #fff;
  border-bottom-color: var(--gold-soft);
}

/* —— Search —— */
.search-band {
  background:
    radial-gradient(ellipse 70% 80% at 50% 0%, rgba(176, 138, 60, 0.06), transparent 60%),
    var(--ivory);
  padding: 0 0 36px;
  margin-top: -40px;
  position: relative;
  z-index: 2;
}

.search-panel {
  position: relative;
  padding: 32px 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.search-panel--band {
  margin-top: 0;
}

.search-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.search-panel__intro {
  margin-bottom: 20px;
}

.search-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.search-hint {
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.search-panel label { color: var(--muted); }

.modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.modes button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--control);
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.modes button.on,
.btn {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn.ghost {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn:hover,
.modes button.on:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.modes button:not(.on):hover { border-color: var(--ink); }

.btn.ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn:active,
.modes button:active { transform: translateY(1px) scale(0.98); }

.btn:disabled,
.modes button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.btn-wa {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  gap: 10px;
}

.btn.ghost.btn-wa {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-wa .ico {
  width: 15px;
  height: 15px;
}

.btn-wa:hover {
  background: #1c2330;
  border-color: #1c2330;
  color: #fff;
}

.btn.ghost.btn-wa:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.fields {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr auto;
  gap: 14px;
  align-items: end;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  padding: 0 14px;
  border-radius: 0;
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

input,
select { height: var(--control); }

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

textarea {
  min-height: 140px;
  padding: 14px;
  resize: vertical;
  line-height: 1.55;
}

input::placeholder,
textarea::placeholder { color: var(--muted-soft); }

input:hover,
select:hover,
textarea:hover { border-color: #bfb9ae; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

input[type="file"] {
  height: auto;
  min-height: var(--control);
  padding: 10px 12px;
  background: var(--ivory);
  cursor: pointer;
}

input[type="file"]::file-selector-button {
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  min-height: 34px;
  padding: 0 12px;
  margin-right: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--ease), color var(--ease);
}

input[type="file"]::file-selector-button:hover {
  background: var(--ink);
  color: #fff;
}

/* —— Listings —— */
section { padding: var(--space-5) 0 var(--space-6); }

.listings {
  background:
    linear-gradient(180deg, var(--ivory) 0%, var(--paper) 280px);
  padding: 56px 0 80px;
}

.section-head { margin-bottom: 36px; }

.section-lead {
  margin: 12px 0 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

/* —— Trust strip —— */
.trust {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.trust-item {
  display: grid;
  gap: 6px;
  padding: 10px 28px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: none;
}

.trust-item:first-child { padding-left: 0; }
.trust-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.trust-item:hover {
  box-shadow: none;
  border-color: var(--line);
}

.trust-item strong {
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.trust-item span {
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.45;
}

.section-head--split {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}

.section-title,
h1, h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
  line-height: var(--leading-tight);
  margin: 10px 0 0;
  letter-spacing: -0.01em;
}

.section-title,
h1 { font-size: var(--text-title); }

h2 { font-size: clamp(26px, 3vw, 34px); }

.rule {
  width: 42px;
  height: 1px;
  background: var(--gold);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
}

.grid--sparse {
  grid-template-columns: minmax(0, 560px);
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.card[hidden] { display: none; }

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ivory-deep);
}

.photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  object-position: center 18%;
  background: var(--ivory-deep);
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.photo--empty {
  background: var(--ivory-deep);
  min-height: 240px;
  aspect-ratio: 4 / 3;
}

.card:hover .photo { transform: scale(1.05); }

.tag {
  display: inline-block;
  border: 1px solid var(--ink);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--paper);
}

.tag--on-photo {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  box-shadow: var(--shadow-sm);
}

.tag--lead { margin-top: 18px; align-self: flex-start; }

.card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}

.price {
  margin: 0 0 6px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: var(--text-price);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.card h2 {
  font-size: var(--text-card);
  margin-top: 2px;
  line-height: 1.25;
}

.card h2 a { transition: color var(--ease); }

.card h2 a:hover { color: var(--gold); }

.where {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 20px;
  font-size: var(--text-meta);
  color: var(--ink-soft);
}

.meta span {
  display: inline-flex;
  align-items: center;
}

.meta span:not(:last-child)::after {
  content: "";
  width: 3px;
  height: 3px;
  margin: 0 12px;
  border-radius: 50%;
  background: var(--gold-soft);
}

.card-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

.empty {
  display: none;
  padding: 48px 32px;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  margin: 8px 0 0;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.empty.show {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.empty p { margin: 0; }

.empty-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: 28px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

/* —— Detail —— */
.page-detail {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--paper) 180px);
}

.page-detail .wrap {
  max-width: 920px;
}

.page-detail .tag--lead { margin-top: 0; }

.page-detail .price { margin-top: 10px; }

.page-detail h1 {
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 48px);
}

.descricao {
  white-space: pre-wrap;
  max-width: 68ch;
  color: var(--ink-soft);
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.gallery {
  display: grid;
  gap: 14px;
  margin: 0 0 24px;
}

.gallery--lead {
  margin-top: 8px;
}

.gallery img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  background: var(--ivory-deep);
  box-shadow: var(--shadow-sm);
}

.gallery--lead img:first-child {
  max-height: min(62vh, 540px);
  min-height: 260px;
}

.detail-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 12px 0 32px;
  border-bottom: 1px solid var(--line);
}

.detail-summary__cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.detail-summary__cta .btn { width: 100%; }

.detail-body {
  padding: 36px 0 8px;
}

.detail-sub {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 14px;
}

.mobile-cta {
  display: none;
}

/* —— Floating WhatsApp —— */
.fab-wa {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  background: #128c7e;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 32px rgba(18, 140, 126, 0.35);
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease);
}

.fab-wa .ico {
  width: 20px;
  height: 20px;
}

.fab-wa:hover {
  background: #0e7a6e;
  transform: translateY(-2px);
  color: #fff;
}

.fab-wa:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 12px 32px rgba(18, 140, 126, 0.35);
}

body.is-admin .fab-wa { display: none; }

/* —— Footer —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 0;
  color: var(--ink);
  font-size: 14px;
  margin-top: auto;
  background: var(--ivory);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px 64px;
  padding-bottom: 40px;
}

.footer-brand {
  flex: 1 1 260px;
  max-width: 340px;
  display: grid;
  gap: 14px;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 56px;
  flex: 0 1 auto;
}

.footer-col {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 140px;
}

.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 0 !important;
  max-width: 100%;
}

.footer-mark__emblem {
  width: 48px;
  height: auto;
  flex: 0 0 auto;
  display: block;
}

.footer-mark__text {
  font-size: 14px;
  line-height: 1.3;
  color: var(--ink-soft);
}

.footer-mark__text strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.footer-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  max-width: 32ch;
}

.footer-heading {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  min-height: 16px;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid transparent;
  transition: color var(--ease), border-color var(--ease);
}

.footer-list a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.footer-list .link-ico {
  gap: 10px;
}

.footer-list .link-ico .ico {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--ease), color var(--ease), background var(--ease), transform var(--ease);
}

.social-btn .ico {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  border-color: var(--ink);
  color: var(--gold);
  transform: translateY(-2px);
}

.footer-bar {
  border-top: 1px solid rgba(176, 138, 60, 0.28);
  background: #12151c;
  color: rgba(255, 255, 255, 0.72);
}

.footer-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  min-height: 0;
  padding: 28px 0 30px;
}

body:not(.is-admin) .footer-bar__inner {
  padding-right: 176px;
}

.footer-legal {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 12px;
  margin-left: auto;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 0 !important;
  border-radius: 6px;
  padding: 2px 0;
  line-height: 1;
  transition: color var(--ease), opacity var(--ease);
}

.footer-credit:hover {
  color: #fff;
  opacity: 1;
  background: transparent;
}

.footer-credit__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  opacity: 0.78;
}

.footer-credit__logo {
  width: auto;
  height: 26px;
  max-width: 110px;
  display: block;
  object-fit: contain;
  object-position: left center;
  flex: 0 0 auto;
}

.site-footer a {
  border-bottom: 1px solid transparent;
  transition: border-color var(--ease), color var(--ease);
}

.site-footer .footer-credit:focus-visible,
.site-footer .footer-mark:focus-visible,
.site-footer .footer-list a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* FAB sits above footer bar, not on top of credits */
body:not(.is-admin) .fab-wa {
  bottom: 88px;
}

/* —— Auth / Admin —— */
.page-auth {
  display: flex;
  align-items: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, rgba(154, 116, 48, 0.1), transparent 58%),
    var(--ivory);
}

.login-box {
  max-width: 460px;
  width: 100%;
  margin: 72px auto 96px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 40px 40px 36px;
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.login-box h1 {
  margin-bottom: 10px;
  font-size: var(--text-title-sm);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
}

.login-box .btn { width: 100%; margin-top: 8px; min-height: var(--control); }

.intro {
  color: var(--muted);
  margin: 0 0 20px;
  line-height: 1.55;
}

.demo-hint {
  border: 1px solid var(--line);
  background: var(--ivory);
  padding: 12px 14px;
  font-size: 14px;
}

.demo-hint strong { color: var(--ink); }

.demo-hint a {
  border-bottom: 1px solid var(--line-strong);
}

.stack { display: grid; gap: 14px; }

.stack--spaced { margin-top: 0; }

.admin-panel.stack--spaced { gap: 18px; }

.erro,
.ok {
  padding: 12px 14px;
  margin: 0 0 4px;
  border: 1px solid transparent;
  font-size: 14px;
}

.erro {
  color: var(--erro-ink);
  background: var(--erro-bg);
  border-color: #efd5d5;
}

.ok {
  color: var(--ok-ink);
  background: var(--ok-bg);
  border-color: #d5e8dc;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.span-2 { grid-column: span 2; }

.acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.is-admin main { background: var(--ivory); }

.admin-list { display: grid; gap: 14px; }

.admin-item {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.admin-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.admin-item strong {
  display: block;
  font-size: 17px;
  font-weight: 600;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

.admin-item .where {
  margin: 6px 0 0;
  font-size: 14px;
}

.thumb {
  width: 176px;
  height: 116px;
  border-radius: var(--radius-sm);
  background: var(--ivory-deep) center / cover no-repeat;
  overflow: hidden;
}

.fotos-atual {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding-top: 4px;
}

.fotos-atual figure {
  margin: 0;
  width: 152px;
  border: 1px solid var(--line);
  padding: 8px;
  background: var(--paper);
}

.fotos-atual img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: var(--ivory);
}

.fotos-atual label {
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0 0;
  cursor: pointer;
}

.fotos-atual input {
  width: auto;
  height: auto;
  accent-color: var(--ink);
}

.is-admin .topbar { background: var(--ivory-deep); }

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

  .fields > :last-child { grid-column: 1 / -1; }

  .fields > :last-child .btn { width: 100%; }

  /* Keep 3 footer columns until phone — avoids Contato dropping under the brand */

  .trust-row { grid-template-columns: 1fr; gap: 16px; }

  .detail-summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .detail-summary__cta {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .detail-summary__cta .btn {
    width: auto;
    flex: 1 1 auto;
  }
}

@media (max-width: 800px) {
  .wrap,
  .hero-inner {
    width: min(var(--wrap), calc(100% - 32px));
  }

  .hero {
    min-height: 100svh;
    padding: 110px 0 64px;
    align-items: flex-end;
  }

  .hero-title {
    max-width: 12ch;
    font-size: clamp(36px, 11vw, 48px);
  }

  .hero-brandmark {
    bottom: 62%;
    font-size: clamp(88px, 28vw, 120px);
  }

  .hero-lead {
    max-width: none;
    font-size: 16px;
  }

  .hero-scroll { display: none; }

  .search-band {
    margin-top: -28px;
    padding-bottom: var(--space-4);
  }

  .search-panel {
    padding: 20px 18px 18px;
  }

  .search-panel::before {
    left: 18px;
    right: 18px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .brand {
    gap: 10px;
  }

  .brand-emblem {
    width: 56px;
  }

  .site-header.is-scrolled .brand-emblem {
    width: 48px;
  }

  .brand-js {
    font-size: 22px;
  }

  .brand-tag,
  .brand-creci {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  .menu { display: none; }

  .burger { display: block; }

  .site-header.open .menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--paper);
    padding: 8px 0 14px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

  .site-header.open .menu a {
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    min-height: 48px;
  }

  .site-header.open .menu a:last-child { border-bottom: 0; }

  .site-header.open .menu .wa {
    margin: 10px 20px 4px;
    text-align: center;
    justify-content: center;
  }

  .fields,
  .grid,
  .form-grid,
  .admin-item {
    grid-template-columns: 1fr;
  }

  .span-2 { grid-column: auto; }

  .photo { height: 240px; }

  .card:hover,
  .card:hover .photo {
    transform: none;
  }

  .topbar .wrap {
    align-items: flex-start;
    padding: 10px 0;
    flex-direction: column;
  }

  .thumb {
    width: 100%;
    height: 200px;
  }

  .admin-item .acoes { width: 100%; }

  .admin-item .acoes .btn,
  .admin-item .acoes form { flex: 1 1 auto; }

  .admin-item .acoes form { display: flex; }

  .admin-item .acoes form .btn { width: 100%; }

  .footer-grid {
    flex-direction: column;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-brand {
    max-width: none;
  }

  .footer-cols {
    width: 100%;
    gap: 28px 40px;
  }

  .footer-bar__inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    min-height: 0;
    padding: 28px 0 32px;
  }

  body:not(.is-admin) .footer-bar__inner {
    padding-right: 0;
    padding-bottom: 32px;
  }

  .footer-legal {
    flex: 0 1 auto;
    text-align: center;
  }

  .footer-credit {
    margin-left: 0;
    justify-content: center;
  }

  body:not(.is-admin) .fab-wa {
    bottom: 20px;
  }

  body:not(.is-admin) .site-footer {
    padding-bottom: 72px;
  }

  .footer-credit__logo {
    height: 24px;
    max-width: 100px;
  }

  .modes button { flex: 1 1 calc(50% - 4px); }

  .detail-summary__cta .btn { width: 100%; }

  .fab-wa span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

  .fab-wa {
    right: 16px;
    bottom: 78px;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .page-detail {
    padding-bottom: 88px;
  }

  /* Rodapé acima da barra fixa de visita — evita cobrir cookies/legal */
  body:has(.mobile-cta) .site-footer {
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
  }

  .mobile-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .mobile-cta__price {
    font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
    font-size: 26px;
    line-height: 1;
    letter-spacing: -0.02em;
  }

  .mobile-cta .btn {
    min-height: 48px;
    padding: 0 16px;
  }

  body:has(.mobile-cta) .fab-wa { display: none; }
}

/* FAB não cobre o formulário de login */
body:has(.page-auth) .fab-wa {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .hero-bg {
    transform: none !important;
  }

  .hero:hover .hero-bg,
  .card:hover .photo,
  .card:hover {
    transform: none !important;
  }
}

/* —— Elite Presentation Layer —— */
/* Consolidated hierarchy/surfaces/rhythm — presentation only; no logic */

.wa,
.modes button,
.btn {
  border-radius: var(--radius-sm);
}

.btn:hover {
  box-shadow: var(--shadow-sm);
}

.btn.danger,
.btn.ghost.danger {
  background: var(--paper);
  color: var(--danger);
  border-color: #e8c4c4;
}

.btn.danger:hover,
.btn.ghost.danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

input,
select,
textarea,
input[type="file"] {
  border-radius: var(--radius-sm);
}

input[type="file"]::file-selector-button {
  border-radius: 6px;
}

/* Search — segmented modes + primary submit */
.search-panel::before {
  left: 32px;
  right: 32px;
}

.btn-search {
  min-width: 100%;
  box-shadow: var(--shadow-sm);
}

.search-hint {
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.modes {
  margin-bottom: 18px;
  padding: 4px;
  background: var(--ivory);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
  gap: 4px;
}

.modes button {
  border-radius: calc(var(--radius) - 2px);
  min-height: 40px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.modes button.on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.modes button:not(.on):hover {
  border-color: transparent;
  background: rgba(18, 21, 28, 0.04);
}

/* Cards */
.card-media,
.card-media .photo,
.photo--empty {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.tag {
  border-radius: var(--radius-sm);
}

.tag--on-photo {
  border-radius: var(--radius-sm);
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
}

.photo--empty {
  position: relative;
  background: linear-gradient(135deg, var(--ivory) 0%, var(--ivory-deep) 100%);
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  align-self: flex-start;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  transition: color var(--ease), border-color var(--ease);
}

.card-cta .ico {
  width: 15px;
  height: 15px;
  color: #128c7e;
}

.card-cta:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: none;
  box-shadow: none;
}

/* Gallery detail */
.gallery img,
.gallery .photo--empty {
  border-radius: var(--radius);
}

.gallery .photo--empty {
  min-height: min(42vh, 360px);
  width: 100%;
}

.page-detail .wrap {
  max-width: var(--wrap);
}

.page-detail h1 {
  font-size: var(--text-title);
}

.gallery--lead {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 12px;
  margin-top: 8px;
}

.gallery--lead img:first-child,
.gallery--lead .photo--empty {
  grid-row: 1 / span 2;
  min-height: 320px;
  max-height: min(58vh, 520px);
  height: 100%;
  object-fit: cover;
}

.gallery--lead img:not(:first-child) {
  max-height: 250px;
  height: 100%;
  object-fit: cover;
}

.gallery--lead:has(> :only-child),
.gallery--lead:has(> :nth-child(1):last-child) {
  grid-template-columns: 1fr;
}

.gallery--lead:has(> :nth-child(1):last-child) img:first-child,
.gallery--lead:has(> :only-child) .photo--empty {
  grid-row: auto;
  max-height: min(58vh, 520px);
}

/* Auth / Admin surfaces */
.admin-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  padding: 28px 28px 32px;
  box-shadow: var(--shadow-sm);
}

.admin-list { gap: 16px; }

.admin-item strong {
  font-size: 17px;
  letter-spacing: -0.01em;
}

.admin-empty {
  display: grid;
  gap: 14px;
  justify-items: start;
  padding: 52px 36px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.admin-empty h2 {
  margin: 0;
  font-size: var(--text-title-sm);
}

.admin-empty p {
  margin: 0;
  color: var(--muted);
  max-width: 42ch;
  line-height: var(--leading-body);
}

.fotos-atual figure {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.fotos-atual img {
  border-radius: 4px;
}

.page-form .section-head {
  margin-bottom: 28px;
}

.form-grid {
  gap: 18px;
}

.erro,
.ok,
.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  margin: 0 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
}

.erro::before,
.ok::before,
.alert--erro::before,
.alert--ok::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.erro::before,
.alert--erro::before { background: var(--erro-ink); }

.ok::before,
.alert--ok::before { background: var(--ok-ink); }

.erro,
.alert--erro {
  color: var(--erro-ink);
  background: var(--erro-bg);
  border-color: #efd5d5;
}

.ok,
.alert--ok {
  color: var(--ok-ink);
  background: var(--ok-bg);
  border-color: #d5e8dc;
}

.is-admin main {
  background: var(--ivory);
}

.is-admin h1 {
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--text-title-sm);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.is-admin .section-lead {
  font-size: 14px;
  margin-top: 8px;
}

.is-admin .section-head--split {
  margin-bottom: 28px;
  align-items: flex-end;
}

.is-admin .admin-item {
  padding: 16px;
}

.is-admin .admin-panel {
  padding: 28px;
}

.is-admin .thumb {
  width: 176px;
  height: 116px;
}

.social-btn {
  border-radius: var(--radius-sm);
}

.mobile-cta {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 28px rgba(18, 21, 28, 0.08);
}

.fab-wa {
  opacity: 0.96;
  box-shadow: 0 10px 28px rgba(18, 140, 126, 0.28);
}

body.is-home .fab-wa {
  bottom: 88px;
  opacity: 0.92;
}

.hero-kicker {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* Focus rings */
.brand:focus-visible,
.social-btn:focus-visible,
.hero-scroll:focus-visible,
.card-media:focus-visible,
.card-media__hit:focus-visible,
.card h2 a:focus-visible,
.topbar a:focus-visible,
.footer-links a:focus-visible,
.card-cta:focus-visible,
.link-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 4px;
}

/* Home transparent header — open mobile menu uses ink text */
body.is-home .site-header.open .menu a {
  color: var(--ink);
}

body.is-home .site-header.open .menu a:hover {
  color: var(--gold);
}

body.is-home .site-header.open .menu .wa {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--paper);
}

body.is-home .site-header.open .menu .wa:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

body.is-home .site-header.open .burger span {
  background: #fff;
}

body.is-home .site-header.open.is-scrolled .burger span,
body.is-home .site-header.is-scrolled.open .burger span {
  background: var(--ink);
}

@media (max-width: 980px) {
  .trust-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

  .trust-item:last-child { border-bottom: 0; }

  .gallery--lead {
    grid-template-columns: 1fr;
  }

  .gallery--lead img:first-child {
    grid-row: auto;
    max-height: min(48vh, 420px);
  }

  .detail-summary__cta {
    min-width: 0;
  }
}

@media (max-width: 800px) {
  .hero {
    min-height: min(78svh, 680px);
    padding: 100px 0 48px;
  }

  .hero-title {
    max-width: 14ch;
    font-size: clamp(32px, 9vw, 42px);
  }

  .search-band {
    margin-top: -28px;
    padding-bottom: 28px;
  }

  .search-panel {
    padding: 24px 18px 20px;
    border-radius: var(--radius-lg);
  }

  .search-panel::before {
    left: 18px;
    right: 18px;
  }

  .login-box {
    margin: 48px auto 72px;
    padding: 28px 22px;
    border-radius: var(--radius-lg);
  }

  .admin-panel {
    padding: 20px 16px 24px;
  }

  .is-admin .admin-panel {
    padding: 20px 16px 24px;
  }

  .empty {
    padding: 36px 20px;
  }

  .admin-empty {
    padding: 40px 22px;
  }

  .listings {
    padding: 44px 0 64px;
  }

  .detail-summary__cta {
    padding: 16px;
  }

  .detail-summary__cta .btn {
    width: 100%;
  }

  body.is-home .fab-wa {
    bottom: 20px;
  }
}

/* —— LGPD / Legal —— */
.page-legal section { padding: var(--space-5) 0 var(--space-6); }

.legal {
  max-width: 760px;
}

.legal h1 {
  margin-bottom: 12px;
}

.legal h2 {
  margin: 32px 0 12px;
  font-size: clamp(24px, 3vw, 30px);
}

.legal h3 {
  margin: 0 0 8px;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal p,
.legal li {
  color: var(--ink-soft);
  line-height: 1.65;
}

.legal ul {
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}

.legal a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.legal a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.legal-note {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.legal-cards {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-sm);
}

.legal-card p { margin: 0; font-size: 14px; }

.link-btn {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px solid transparent;
  min-height: 34px;
}

.footer-list .link-btn {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}

.footer-list .link-btn:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.legal .link-btn {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin: 0 auto;
}

.cookie-banner[hidden] { display: none !important; }

.cookie-banner__inner {
  display: grid;
  gap: 16px;
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.cookie-banner__title {
  margin: 0 0 6px;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.cookie-banner__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

.cookie-banner__text a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookie-banner__actions .btn {
  min-height: 44px;
  flex: 1 1 auto;
}

body.has-cookie-banner .fab-wa {
  bottom: 168px;
}

@media (min-width: 801px) {
  .cookie-banner {
    left: 24px;
    right: auto;
    bottom: 24px;
    width: min(520px, calc(100% - 48px));
    margin: 0;
  }

  body.has-cookie-banner .fab-wa {
    bottom: 88px;
  }

  body.is-home.has-cookie-banner .fab-wa {
    bottom: 88px;
  }
}

@media (max-width: 800px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  body.has-cookie-banner .fab-wa {
    bottom: 200px;
  }

  body.has-cookie-banner .site-footer {
    padding-bottom: 88px;
  }
}


/* —— CRO 2027 Motion & Conversion —— */
/* Presentation only: reveal, assist CTAs, FAB pulse, tactile feedback */

:root {
  --ease-out: 700ms cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-lift: 0 18px 40px rgba(18, 21, 28, 0.12), 0 4px 12px rgba(18, 21, 28, 0.06);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.btn.btn-wa--ghost:hover {
  transform: translateY(-1px);
}

.card {
  transition: border-color var(--ease), box-shadow var(--ease-out), transform var(--ease-out);
}

.card:hover {
  box-shadow: var(--shadow-lift);
}

.card-cta:hover {
  transform: translateX(2px);
}

/* Scroll reveal */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--ease-out), transform var(--ease-out);
  will-change: opacity, transform;
}

[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.assist-grid .assist-card[data-reveal]:nth-child(1) { transition-delay: 40ms; }
.assist-grid .assist-card[data-reveal]:nth-child(2) { transition-delay: 120ms; }
.assist-grid .assist-card[data-reveal]:nth-child(3) { transition-delay: 200ms; }

/* Listings enter with the section head; cards keep hover motion only */
.listings .grid .card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--ease-out), transform var(--ease-out), border-color var(--ease), box-shadow var(--ease-out);
}

.listings .section-head.is-in ~ .grid .card {
  opacity: 1;
  transform: none;
}

.listings .section-head.is-in ~ .grid .card:nth-child(1) { transition-delay: 40ms; }
.listings .section-head.is-in ~ .grid .card:nth-child(2) { transition-delay: 100ms; }
.listings .section-head.is-in ~ .grid .card:nth-child(3) { transition-delay: 160ms; }
.listings .section-head.is-in ~ .grid .card:nth-child(4) { transition-delay: 220ms; }

.listings .section-head.is-in ~ .grid .card:hover {
  transform: translateY(-6px);
}

.card[hidden] {
  display: none !important;
}

/* Assist / conversion band */
.assist {
  padding: 64px 0 88px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(176, 138, 60, 0.07), transparent 65%),
    var(--paper);
  border-top: 1px solid var(--line);
}

.assist .section-head {
  margin-bottom: 40px;
}

.assist-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.assist-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease-out), transform var(--ease-out);
}

.assist-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-4px);
}

.assist-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--ivory);
  color: var(--gold);
  border: 1px solid var(--line);
}

.assist-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.assist-card h3 {
  margin: 0;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.3;
}

.assist-card p {
  margin: 0;
  flex: 1;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.assist-card .btn {
  margin-top: 8px;
  align-self: flex-start;
  min-height: 44px;
}

/* FAB pulse — attention without noise */
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(18, 140, 126, 0.28); }
  50% { box-shadow: 0 10px 28px rgba(18, 140, 126, 0.28), 0 0 0 12px rgba(18, 140, 126, 0.12); }
}

.fab-wa {
  animation: fabPulse 2.8s ease-in-out infinite;
}

.fab-wa:hover {
  animation: none;
}

/* Search panel subtle lift on focus-within */
.search-panel:focus-within {
  box-shadow: var(--shadow-lift);
  border-color: var(--line-strong);
}

.hero-actions .btn {
  min-width: min(100%, 168px);
}

@media (max-width: 980px) {
  .assist-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .assist-card .btn {
    width: 100%;
  }
}

@media (max-width: 800px) {
  .assist {
    padding: 48px 0 72px;
  }

  .assist-card {
    padding: 24px 20px 22px;
  }

  [data-reveal] {
    transform: translateY(18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .listings .grid .card {
    opacity: 1;
    transform: none;
    transition: border-color var(--ease), box-shadow var(--ease);
  }

  .fab-wa {
    animation: none;
  }

  .card:hover,
  .assist-card:hover,
  .btn:hover {
    transform: none;
  }
}

/* —— Wow Immersive Layer —— */
/* Gallery / luxury polish — transform/opacity/shadow only; logic untouched */

:root {
  --shadow-float: 0 28px 64px rgba(18, 21, 28, 0.16), 0 8px 20px rgba(18, 21, 28, 0.06);
  --shadow-card-glow: 0 20px 48px rgba(18, 21, 28, 0.14), 0 0 0 1px rgba(176, 138, 60, 0.28);
  --ease-lux: 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1) Hero cinematic */
.hero-shade {
  background:
    radial-gradient(ellipse 85% 70% at 18% 78%, rgba(0, 0, 0, 0.55), transparent 58%),
    radial-gradient(ellipse 55% 60% at 92% 20%, rgba(0, 0, 0, 0.28), transparent 55%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.5) 0%, rgba(8, 10, 14, 0.18) 34%, rgba(8, 10, 14, 0.72) 72%, rgba(8, 10, 14, 0.92) 100%),
    linear-gradient(105deg, rgba(8, 10, 14, 0.82) 0%, rgba(8, 10, 14, 0.38) 40%, rgba(8, 10, 14, 0.06) 74%);
}

.hero-title {
  letter-spacing: -0.028em;
  line-height: 1.05;
}

.hero-kicker {
  letter-spacing: 0.26em;
}

.hero-lead {
  margin-top: 18px;
  line-height: 1.72;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.94);
}

.hero-actions {
  gap: 14px;
  margin-top: 32px;
}

/* 2) Floating search panel */
.search-panel,
.search-panel--band {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow-float);
  backdrop-filter: saturate(1.15) blur(16px);
  -webkit-backdrop-filter: saturate(1.15) blur(16px);
}

.search-panel::before {
  background: linear-gradient(90deg, transparent, rgba(176, 138, 60, 0.75), transparent);
  opacity: 0.9;
}

.search-panel:focus-within {
  border-color: rgba(176, 138, 60, 0.45);
  box-shadow: var(--shadow-float), 0 0 0 1px rgba(176, 138, 60, 0.18);
}

.search-band {
  margin-top: -48px;
  padding-bottom: 44px;
}

/* 3) Cinematic cards */
.card {
  border-color: rgba(213, 208, 199, 0.9);
  transition:
    border-color var(--ease-lux),
    box-shadow var(--ease-lux),
    transform var(--ease-lux);
}

.card:hover {
  border-color: rgba(176, 138, 60, 0.55);
  box-shadow: var(--shadow-card-glow);
  transform: translateY(-3px);
}

.card .photo {
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover .photo {
  transform: scale(1.03);
}

.tag--on-photo {
  transition: transform var(--ease-lux), opacity var(--ease-lux), box-shadow var(--ease);
  opacity: 0.92;
}

.card:hover .tag--on-photo {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(18, 21, 28, 0.18);
}

.card .meta {
  transition: opacity var(--ease-lux), transform var(--ease-lux);
}

.card:hover .meta {
  opacity: 1;
  transform: translateY(-2px);
}

.price {
  letter-spacing: -0.03em;
  font-weight: 500;
}

.card-body .price {
  font-size: clamp(28px, 2.8vw, 34px);
}

.section-title {
  letter-spacing: -0.022em;
  line-height: 1.06;
}

.card-cta {
  transition: color var(--ease), border-color var(--ease), transform var(--ease), letter-spacing var(--ease);
}

.card:hover .card-cta {
  color: var(--gold);
  border-bottom-color: var(--gold);
  letter-spacing: 0.05em;
}

.listings .section-head.is-in ~ .grid .card:hover {
  transform: translateY(-3px);
}

.listings {
  padding: 64px 0 88px;
}

.assist {
  padding: 72px 0 96px;
}

/* 4) Sensory buttons */
.btn,
.modes button {
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover,
.modes button.on:hover {
  transform: translateY(-1px);
}

.btn:active,
.modes button:active {
  transform: translateY(0) scale(0.97);
}

.btn.btn-light:active,
.btn.btn-wa--ghost:active {
  transform: translateY(0) scale(0.97);
}

/* 5) Organic FAB pulse */
@keyframes fabPulse {
  0%, 100% {
    box-shadow:
      0 12px 28px rgba(18, 140, 126, 0.3),
      0 0 0 0 rgba(18, 140, 126, 0.22);
  }
  55% {
    box-shadow:
      0 12px 28px rgba(18, 140, 126, 0.3),
      0 0 0 14px rgba(18, 140, 126, 0);
  }
  70% {
    box-shadow:
      0 12px 28px rgba(18, 140, 126, 0.3),
      0 0 0 0 rgba(18, 140, 126, 0);
  }
}

.fab-wa {
  animation: fabPulse 3.4s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.fab-wa:hover,
.fab-wa:focus-visible {
  animation: none;
  transform: translateY(-3px) scale(1.02);
}

@media (max-width: 800px) {
  .search-band {
    margin-top: -32px;
    padding-bottom: 32px;
  }

  .card:hover .photo {
    transform: none;
  }

  .listings {
    padding: 48px 0 72px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none !important;
    transform: none !important;
    will-change: auto;
  }

  .card:hover .photo,
  .listings .section-head.is-in ~ .grid .card:hover .photo {
    transform: none;
  }

  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover,
  .assist-card:hover,
  .btn:hover,
  .btn:active,
  .modes button:active,
  .fab-wa:hover {
    transform: none;
  }

  .fab-wa {
    animation: none !important;
  }

  .tag--on-photo,
  .card .meta,
  .card-cta {
    transition: none;
  }
}

/* ========== Boutique polish (21st.dev refs adapted to PHP/CSS) ==========
   Refs: Property Preview Card #28203 · Header 1 #8964 · Search Hero #19080
   No React/shadcn deps — CSS-only adaptation to J&S tokens.
   Pós-auditoria: remove duplicatas de .search-band; restaura glow do card;
   scroll-padding para âncoras sob header fixo/sticky.
======================================================================= */

html {
  scroll-padding-top: 96px;
}

body.nav-open {
  overflow: hidden;
}

/* Header 1 — scroll glass: translucent + blur without softening the logo */
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(1.35) blur(18px);
  -webkit-backdrop-filter: saturate(1.35) blur(18px);
}

body.is-home .site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(1.35) blur(18px);
  -webkit-backdrop-filter: saturate(1.35) blur(18px);
}

/* Search panel finish only — margin-top já definido nas camadas anteriores */
.search-band {
  z-index: 3;
}

.search-panel {
  border-color: rgba(213, 208, 199, 0.9);
  background: rgba(255, 255, 255, 0.97);
}

.search-panel::before {
  left: 24px;
  right: 24px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-line) 35%, var(--gold) 50%, var(--gold-line) 65%, transparent 100%);
  opacity: 0.85;
}

.modes button {
  border-radius: var(--radius-sm);
}

.modes button.on {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

/* Property Preview Card — badge/stats + hover moderado (mantém glow lux) */
.card {
  border-radius: var(--radius-xl);
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(176, 138, 60, 0.45);
  box-shadow: var(--shadow-card-glow);
}

.card:hover .photo {
  transform: scale(1.06);
  filter: brightness(0.94);
}

.card:hover h2 a {
  color: var(--gold);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.card-top__copy {
  min-width: 0;
  flex: 1;
}

.card-top .where {
  margin: 6px 0 0;
}

.price--badge {
  flex: 0 0 auto;
  margin: 0;
  padding: 8px 12px;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  background: rgba(176, 138, 60, 0.1);
  border: 1px solid rgba(176, 138, 60, 0.22);
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.meta--stats {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
  width: 100%;
  margin: 14px 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.meta--stats span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  padding: 0 14px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--ink-soft);
}

.meta--stats span:first-child {
  padding-left: 0;
}

.meta--stats span:not(:last-child) {
  border-right: 1px solid var(--line);
}

.meta--stats span:not(:last-child)::after {
  content: none;
}

.card-cta {
  margin-top: auto;
}

.card-cta .ico {
  transition: transform var(--ease);
}

.card-cta:hover .ico {
  transform: translateX(2px);
}

/* WA CTAs — discrete icon motion (Book-a-call spirit, no Framer) */
.btn-wa .ico,
.fab-wa .ico {
  transition: transform var(--ease);
}

.btn-wa:hover .ico,
.fab-wa:hover .ico {
  transform: translateY(-1px) scale(1.04);
}

/* Detail — quieter CTA surface */
.detail-summary__cta {
  background: linear-gradient(180deg, #fff 0%, var(--ivory) 100%);
  border-color: rgba(213, 208, 199, 0.95);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-xl);
  padding: 20px;
}

.detail-summary .price {
  color: var(--ink);
  letter-spacing: -0.03em;
}

.gallery--lead img {
  border-radius: var(--radius-lg);
}

/* Trust strip — editorial density */
.trust {
  background: var(--ivory);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item strong {
  letter-spacing: -0.01em;
}

/* Mobile menu sheet — Header 1 overlay feel */
@media (max-width: 860px) {
  .site-header.open .menu {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(1.2) blur(16px);
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
    box-shadow: 0 18px 40px rgba(18, 21, 28, 0.12);
    padding: 10px 0 18px;
  }

  body.is-home .site-header.open:not(.is-scrolled) .menu {
    background: rgba(12, 14, 18, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  body.is-home .site-header.open:not(.is-scrolled) .menu a {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .card-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  /* Preço acima do título no mobile — hierarquia clara, sem competir em largura */
  .price--badge {
    order: -1;
    width: 100%;
    text-align: left;
  }

  .meta--stats {
    grid-auto-flow: row;
    grid-template-columns: 1fr 1fr;
  }

  .meta--stats span {
    padding: 8px 12px 8px 0;
    border-right: 0 !important;
  }

  .meta--stats span:nth-child(odd) {
    border-right: 1px solid var(--line) !important;
    padding-right: 12px;
  }

  html {
    scroll-padding-top: 88px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover .photo {
    filter: none;
  }

  .card-cta:hover .ico,
  .btn-wa:hover .ico,
  .fab-wa:hover .ico {
    transform: none;
  }
}

/* ========== Boutique Luxury 2027 (Imobzi-class polish) ==========
   CSS-only. Sem Tailwind. Sem alteração de rotas/filtros/auth/CRUD.
   GPU: transform/opacity/box-shadow; reduced-motion respeitado.
================================================================ */

:root {
  --shadow-2xl: 0 24px 48px -12px rgba(18, 21, 28, 0.16), 0 8px 20px rgba(18, 21, 28, 0.06);
  --shadow-card-lux: 0 16px 40px rgba(18, 21, 28, 0.12), 0 0 0 1px rgba(176, 138, 60, 0.18);
  --ease-out-lux: 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* 1) Cards — hover discreto (sem zoom que recorta a foto) */
.card {
  border: 1px solid rgba(213, 208, 199, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 28px rgba(18, 21, 28, 0.06);
  overflow: hidden;
  transition:
    border-color var(--ease-out-lux),
    box-shadow var(--ease-out-lux),
    transform var(--ease-out-lux);
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(176, 138, 60, 0.42);
  box-shadow: var(--shadow-card-lux);
}

.card-media {
  isolation: isolate;
}

.card .photo {
  transform: scale(1);
  transform-origin: center center;
  transition: transform var(--ease-out-lux), filter var(--ease-out-lux);
}

.card:hover .photo {
  transform: scale(1.03);
  filter: none;
}

.tag--on-photo {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.92);
  border-color: transparent;
  letter-spacing: 0.16em;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(18, 21, 28, 0.14);
}

.price--badge {
  background: rgba(176, 138, 60, 0.12);
  border-color: rgba(176, 138, 60, 0.28);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.card h2 {
  font-weight: 500;
  letter-spacing: -0.02em;
}

.card:hover h2 a {
  color: var(--gold);
}

.meta--stats {
  border-color: rgba(213, 208, 199, 0.85);
}

/* 2) Busca flutuante imponente */
.search-panel,
.search-panel--band {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(213, 208, 199, 0.9);
  box-shadow: var(--shadow-2xl);
  backdrop-filter: saturate(1.05) blur(10px);
  -webkit-backdrop-filter: saturate(1.05) blur(10px);
}

.search-panel:focus-within {
  border-color: rgba(176, 138, 60, 0.5);
  box-shadow: var(--shadow-2xl), 0 0 0 1px rgba(176, 138, 60, 0.2);
}

/* 3) Feedback rápido — sem “erro de clique” por escala forte */
.btn,
.modes button,
.btn-search,
.card-cta {
  transition:
    background var(--ease),
    color var(--ease),
    border-color var(--ease),
    box-shadow var(--ease),
    transform 120ms ease;
}

.btn:active,
.modes button:active,
.btn-search:active {
  transform: scale(0.98);
}

.btn:disabled:active,
.modes button:disabled:active {
  transform: none;
}

/* FAB sem pulsação contínua — atenção por contraste, não por loop */
.fab-wa {
  animation: none;
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.32);
}

.fab-wa:hover,
.fab-wa:focus-visible {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(18, 140, 126, 0.4);
}

/* UX clarity — filtros, contagem, cards, empty */
.fields__actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.fields__actions-row .btn {
  min-height: 44px;
}

.results-count {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted, #5c6570);
  letter-spacing: 0.01em;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-top: auto;
}

.card-actions .card-cta {
  margin-top: 0;
}

.card-link {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(176, 138, 60, 0.45);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.card-link:hover,
.card-link:focus-visible {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

.empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.detail-cta-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted, #5c6570);
  max-width: 28ch;
}

@media (prefers-reduced-motion: reduce) {
  .card .photo {
    will-change: auto;
  }

  .card:hover .photo {
    transform: none;
    filter: none;
  }

  .card:hover {
    transform: none;
  }

  .btn:active,
  .modes button:active,
  .btn-search:active {
    transform: none;
  }

  .fab-wa {
    animation: none !important;
    will-change: auto;
  }

  .fab-wa:hover,
  .fab-wa:focus-visible {
    transform: none;
  }
}

/* ========== UX reliability and accessibility ==========
   Fonte de verdade final para estados críticos auditados.
======================================================= */

/* Conteúdo nunca depende de JavaScript ou animação para aparecer. */
[data-reveal],
[data-reveal].is-in,
.listings .grid .card,
.listings .section-head.is-in ~ .grid .card {
  opacity: 1;
  transform: none;
  will-change: auto;
  transition-delay: 0ms;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}

body:not(.is-home) .brand-tag,
body:not(.is-home) .brand-creci,
body.is-home .site-header.is-scrolled .brand-tag,
body.is-home .site-header.is-scrolled .brand-creci {
  color: #755a24;
}

.modes button,
.card-cta,
.footer-list a,
.footer-list .link-btn {
  min-height: 44px;
}

.card-link:hover,
.card-link:focus-visible {
  color: #755a24;
  text-decoration-color: #755a24;
}

.card-link:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: var(--focus);
}

.fab-wa,
body.is-home .fab-wa {
  background: #0b6b61;
  opacity: 1;
}

.fab-wa:hover {
  background: #085a52;
}

.fab-wa:focus-visible,
.fab-wa:hover:focus-visible {
  outline: none;
  background: #085a52;
  box-shadow: var(--focus), 0 14px 32px rgba(8, 90, 82, 0.32);
}

/* O CTA contextual do detalhe substitui o botão flutuante genérico. */
body:has(.page-detail) .fab-wa {
  display: none;
}

/* O banner é a ação prioritária enquanto estiver aberto. */
body.has-cookie-banner .fab-wa {
  display: none;
}

body.has-cookie-banner .mobile-cta {
  visibility: hidden;
  pointer-events: none;
}

.hero-image-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Controle administrativo de publicação */
.publication-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ivory);
}

.publication-panel h2 {
  margin: 4px 0 8px;
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
}

.publication-panel .intro {
  margin: 0;
}

.publication-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.publication-pending {
  padding: 14px 16px;
  border: 1px solid #efd5d5;
  border-radius: var(--radius-sm);
  background: var(--erro-bg);
  color: var(--erro-ink);
  font-size: 14px;
}

.publication-pending ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 1px 0 0;
}

.publication-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink-soft);
  font-weight: 700;
}

.status-badge--published {
  border-color: #b8d9c4;
  background: var(--ok-bg);
  color: var(--ok-ink);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.invalid-photo-name {
  min-height: 92px;
  margin: 0 0 8px;
  padding: 10px;
  background: var(--erro-bg);
  color: var(--erro-ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

@media (max-width: 800px) {
  .publication-panel {
    padding: 16px;
  }

  .publication-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Visual cascade resolution (final) ==========
   Fonte de verdade para conflitos entre camadas históricas.
   CSS-only — não altera gate, rotas, auth, CRUD ou filtros.
   v=visualCascade2 — hover canônico, FAB foco, thumb admin, motion.
======================================================= */

:root {
  /* Sobrescreve token legado (clamp maior) para hierarquia título > preço */
  --text-price: clamp(22px, 2.2vw, 28px);
  --shadow-card-rest: 0 8px 28px rgba(18, 21, 28, 0.06);
  --shadow-card-lift: 0 16px 40px rgba(18, 21, 28, 0.12), 0 0 0 1px rgba(176, 138, 60, 0.18);
  --space-section: clamp(48px, 7vw, 88px);
  --space-section-tight: clamp(36px, 5vw, 64px);
}

/* Tipografia — ritmo editorial estável */
.hero-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
  letter-spacing: -0.028em;
}

.section-title,
.card h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.listings {
  padding: var(--space-section) 0;
}

.assist {
  padding: var(--space-section) 0 calc(var(--space-section) + 8px);
}

.trust {
  padding-block: var(--space-section-tight);
}

/* Preço — hierarquia abaixo do título do card */
.price,
.card-body .price,
.price--badge {
  font-size: var(--text-price);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.price--badge {
  padding: 6px 10px;
  background: rgba(176, 138, 60, 0.1);
  border: 1px solid rgba(176, 138, 60, 0.24);
  border-radius: var(--radius-sm);
}

.detail-summary .price {
  font-size: clamp(28px, 3vw, 36px);
}

/* Cards — base estável; lift/zoom só em ponteiro fino */
.card {
  border: 1px solid rgba(213, 208, 199, 0.85);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card-rest);
  overflow: hidden;
  will-change: auto;
  transition:
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card .photo {
  transform: scale(1);
  transform-origin: center center;
  will-change: auto;
  filter: none;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 138, 60, 0.42);
    box-shadow: var(--shadow-card-lift);
  }

  .card:hover .photo {
    transform: scale(1.035);
    filter: none;
  }

  .listings .section-head.is-in ~ .grid .card:hover {
    transform: translateY(-4px);
    border-color: rgba(176, 138, 60, 0.42);
    box-shadow: var(--shadow-card-lift);
  }

  .card:hover .tag--on-photo {
    opacity: 1;
    transform: translateY(-2px);
  }

  .card:hover .meta {
    transform: translateY(-2px);
  }

  .card:hover .card-cta {
    color: var(--gold);
    border-bottom-color: var(--gold);
    letter-spacing: 0.05em;
  }

  .card:hover h2 a {
    color: var(--gold);
  }
}

/* Botões táteis — feedback curto, sem bounce */
.btn,
.modes button,
.btn-search,
.card-cta,
.btn-wa {
  transition:
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease;
}

.btn:active,
.modes button:active,
.btn-search:active,
.btn-wa:active {
  transform: scale(0.98);
}

.btn:disabled:active,
.modes button:disabled:active {
  transform: none;
}

/* Busca / empty — painel estável, empty respirável */
.search-panel,
.search-panel--band {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(213, 208, 199, 0.9);
  box-shadow: var(--shadow-2xl, 0 24px 48px -12px rgba(18, 21, 28, 0.16));
}

.empty {
  padding: 36px 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--ivory);
}

.empty-actions {
  margin-top: 18px;
  gap: 12px;
}

/* FAB — contraste sem pulsação; não cobre CTAs/cookie */
.fab-wa,
body.is-home .fab-wa {
  animation: none !important;
  background: #0b6b61;
  opacity: 1;
  will-change: auto;
  box-shadow: 0 12px 28px rgba(11, 107, 97, 0.34);
  z-index: 35;
}

.fab-wa:hover {
  animation: none !important;
  background: #085a52;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(11, 107, 97, 0.4);
}

.fab-wa:focus-visible {
  animation: none !important;
  outline: none;
  background: #085a52;
  transform: translateY(-2px);
  box-shadow: var(--focus), 0 14px 32px rgba(8, 90, 82, 0.32);
}

body:has(.page-detail) .fab-wa,
body.has-cookie-banner .fab-wa {
  display: none;
}

body.has-cookie-banner .mobile-cta {
  visibility: hidden;
  pointer-events: none;
}

/* Menu mobile — contraste legível na home (folha clara + texto escuro) */
@media (max-width: 860px) {
  .site-header.open .menu,
  body.is-home .site-header.open .menu,
  body.is-home .site-header.open:not(.is-scrolled) .menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(1.15) blur(14px);
    -webkit-backdrop-filter: saturate(1.15) blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(18, 21, 28, 0.12);
  }

  body.is-home .site-header.open .menu a,
  body.is-home .site-header.open:not(.is-scrolled) .menu a {
    color: var(--ink);
    border-bottom-color: var(--line);
  }

  body.is-home .site-header.open .menu a:hover,
  body.is-home .site-header.open:not(.is-scrolled) .menu a:hover {
    color: var(--gold);
  }

  body.is-home .site-header.open .menu .wa,
  body.is-home .site-header.open:not(.is-scrolled) .menu .wa {
    color: var(--ink);
    border-color: var(--ink);
    background: var(--paper);
  }

  body.is-home .site-header.open .menu .wa:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }

  body.is-home .site-header.open .burger span {
    background: #fff;
  }

  body.is-home .site-header.open.is-scrolled .burger span,
  body.is-home .site-header.is-scrolled.open .burger span {
    background: var(--ink);
  }

  .price--badge {
    order: -1;
    width: 100%;
    text-align: left;
    font-size: clamp(20px, 5.2vw, 24px);
  }
}

/* Touch / mobile estreito — sem hover lift/zoom enganoso */
@media (max-width: 800px), (hover: none) {
  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover,
  .assist-card:hover {
    transform: none;
    box-shadow: var(--shadow-card-rest);
    border-color: rgba(213, 208, 199, 0.85);
  }

  .card:hover .photo,
  .listings .section-head.is-in ~ .grid .card:hover .photo {
    transform: none;
    filter: none;
  }

  .card:hover .tag--on-photo,
  .card:hover .meta {
    transform: none;
    opacity: 0.92;
  }

  .card:hover .card-cta {
    transform: none;
    letter-spacing: inherit;
    color: inherit;
    border-bottom-color: inherit;
  }

  .card:hover h2 a {
    color: inherit;
  }

  .btn:hover,
  .modes button.on:hover {
    transform: none;
  }

  .fab-wa:hover {
    transform: none;
    box-shadow: 0 12px 28px rgba(11, 107, 97, 0.34);
  }

  /* Foco acessível sem lift em touch */
  .fab-wa:focus-visible {
    transform: none;
    outline: none;
    background: #085a52;
    box-shadow: var(--focus), 0 12px 28px rgba(11, 107, 97, 0.34);
  }

  /* Admin thumbs — largura total no mobile, sem distorção */
  .is-admin .thumb {
    width: 100%;
    max-width: 100%;
    height: 200px;
  }

  .is-admin .thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .listings {
    padding: 48px 0 72px;
  }

  .empty {
    padding: 28px 20px;
  }

  body.is-home .fab-wa {
    bottom: max(88px, calc(env(safe-area-inset-bottom, 0px) + 72px));
    right: max(16px, env(safe-area-inset-right, 0px));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .card,
  .card .photo,
  .btn,
  .modes button,
  .btn-search,
  .card-cta,
  .btn-wa,
  .fab-wa,
  .card-cta .ico,
  .btn-wa .ico,
  .fab-wa .ico {
    transition: none !important;
    will-change: auto !important;
  }

  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover,
  .assist-card:hover,
  .btn:hover,
  .btn:active,
  .modes button:active,
  .btn-search:active,
  .fab-wa:hover,
  .fab-wa:focus-visible {
    transform: none !important;
  }

  .card:hover .photo,
  .listings .section-head.is-in ~ .grid .card:hover .photo,
  .card:hover .tag--on-photo,
  .card:hover .meta,
  .card-cta:hover .ico,
  .btn-wa:hover .ico,
  .fab-wa:hover .ico {
    transform: none !important;
    filter: none !important;
  }

  .fab-wa {
    animation: none !important;
  }
}

/* ========== Elite UX — gallery, filter motion, scroll-top ==========
   CSS-only + markup hooks. Gate/auth/filtros intactos.
======================================================= */

#lista {
  transition: min-height 180ms ease;
}

.card {
  transition:
    border-color 240ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.card.is-filtering-out {
  opacity: 0;
  transform: scale(0.985);
  pointer-events: none;
}

.card.is-filtering-in {
  opacity: 1;
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.card-media__hit {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-gallery {
  position: relative;
  isolation: isolate;
  background: var(--ivory-deep);
}

.card-gallery .photo {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 240px;
  max-height: 360px;
  object-fit: cover;
  object-position: center 18%;
  background: var(--ivory-deep);
  transform: scale(1);
  will-change: auto;
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
}

.card-gallery .photo.is-active,
.card-gallery .photo--empty {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-gallery .photo.is-active {
    transform: scale(1.035);
    will-change: transform;
  }
}

.card-gallery__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(18, 21, 28, 0.16);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 180ms ease, background 180ms ease, border-color 180ms ease;
}

.card-gallery__nav--prev { left: 12px; }
.card-gallery__nav--next { right: 12px; }

.card-media--gallery:hover .card-gallery__nav,
.card-media--gallery:focus-within .card-gallery__nav,
.card-gallery__nav:focus-visible {
  opacity: 1;
}

.card-gallery__nav:hover {
  background: #fff;
  border-color: rgba(176, 138, 60, 0.45);
}

.card-gallery__nav:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.card-gallery__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.card-gallery__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.card-gallery__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

.card-gallery__dot:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.card-gallery__count {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(12, 14, 18, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 20px;
}

/* Voltar ao topo — harmônico com FAB WhatsApp */
.btn-top {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 48;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(213, 208, 199, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(18, 21, 28, 0.12);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 220ms,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.btn-top.is-visible,
.btn-top:not([hidden]).is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-top[hidden] {
  display: inline-flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.btn-top:hover {
  border-color: rgba(176, 138, 60, 0.45);
  background: #fff;
  color: var(--gold);
}

.btn-top:focus-visible {
  outline: none;
  box-shadow: var(--focus), 0 10px 28px rgba(18, 21, 28, 0.12);
}

body.is-home .btn-top {
  bottom: max(152px, calc(env(safe-area-inset-bottom, 0px) + 136px));
}

body:has(.page-detail) .btn-top,
body:has(.page-auth) .btn-top {
  bottom: 22px;
}

body.is-admin .btn-top {
  display: none !important;
}

body.has-cookie-banner .btn-top {
  display: none !important;
}

body:has(.mobile-cta) .btn-top {
  bottom: max(152px, calc(env(safe-area-inset-bottom, 0px) + 136px));
}

@media (max-width: 800px) {
  .card-gallery__nav {
    opacity: 1;
    width: 32px;
    height: 32px;
  }

  .card-gallery .photo {
    min-height: 220px;
  }

  .btn-top {
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(90px, calc(env(safe-area-inset-bottom, 0px) + 74px));
  }

  body.is-home .btn-top {
    bottom: max(152px, calc(env(safe-area-inset-bottom, 0px) + 136px));
  }
}

@media (hover: none) {
  .card-gallery__nav {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  #lista,
  .card,
  .card-gallery .photo,
  .card-gallery__nav,
  .card-gallery__dot,
  .btn-top {
    transition: none !important;
  }

  .card.is-filtering-out {
    transform: none;
  }

  .btn-top {
    transform: none;
  }

  .card-gallery .photo,
  .card:hover .card-gallery .photo.is-active {
    will-change: auto;
    transform: none !important;
  }
}

/* ========== visualWowElite — logo, orbs, login glass ==========
   CSS-only. Gate/auth/filtros intactos. Motion reduzido respeitado.
======================================================= */

@keyframes brandShimmer {
  0% { transform: translateX(-120%) skewX(-18deg); opacity: 0; }
  35% { opacity: 0.55; }
  100% { transform: translateX(160%) skewX(-18deg); opacity: 0; }
}

@keyframes orbDriftA {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.45; }
  100% { transform: translate3d(4%, -3%, 0) scale(1.08); opacity: 0.7; }
}

@keyframes orbDriftB {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.35; }
  100% { transform: translate3d(-5%, 4%, 0) scale(1.12); opacity: 0.6; }
}

@keyframes orbDriftC {
  0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.28; }
  100% { transform: translate3d(3%, 5%, 0) scale(1.06); opacity: 0.5; }
}

/* 1) Logo viva */
.brand {
  isolation: isolate;
}

.brand-emblem {
  transition:
    width var(--ease),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 280ms cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center center;
}

.brand::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 0;
  width: 42%;
  height: 140%;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(212, 179, 106, 0.35) 50%,
    rgba(255, 255, 255, 0.1) 65%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-120%) skewX(-18deg);
}

@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-emblem {
    transform: translateZ(0) scale(1.05) rotate(1deg);
    filter:
      drop-shadow(0 0 10px rgba(176, 138, 60, 0.35))
      drop-shadow(0 6px 14px rgba(18, 21, 28, 0.18));
  }

  .brand:hover::after {
    animation: brandShimmer 900ms cubic-bezier(0.22, 1, 0.36, 1) 1;
  }
}

/* 2) Fundo cinematográfico — hero + footer */
.hero {
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -8% -4%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 36% at 18% 28%, rgba(176, 138, 60, 0.22), transparent 70%),
    radial-gradient(ellipse 38% 32% at 86% 18%, rgba(232, 236, 242, 0.12), transparent 68%),
    radial-gradient(ellipse 48% 40% at 72% 78%, rgba(7, 20, 38, 0.35), transparent 72%);
  mix-blend-mode: soft-light;
  opacity: 0.85;
  animation: orbDriftA 34s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero::after {
  content: "";
  position: absolute;
  inset: -6% -2%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 30% 28% at 62% 42%, rgba(212, 179, 106, 0.14), transparent 70%),
    radial-gradient(ellipse 26% 24% at 12% 78%, rgba(176, 138, 60, 0.12), transparent 68%);
  mix-blend-mode: soft-light;
  animation: orbDriftB 40s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.hero-inner {
  z-index: 1;
}

.hero-bg,
.hero-shade {
  z-index: -1;
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: -20% -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 50% at 12% 20%, rgba(176, 138, 60, 0.1), transparent 70%),
    radial-gradient(ellipse 36% 42% at 88% 70%, rgba(7, 20, 38, 0.06), transparent 68%),
    radial-gradient(ellipse 28% 30% at 55% 0%, rgba(212, 179, 106, 0.08), transparent 70%);
  animation: orbDriftC 36s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

.site-footer > * {
  position: relative;
  z-index: 1;
}

/* 4) Ritmo / hierarquia da vitrine */
.card-body {
  padding: 24px 24px 26px;
  gap: 2px;
}

.meta--stats {
  margin: 16px 0 20px;
  padding: 14px 0;
}

.listings {
  padding: clamp(52px, 7vw, 92px) 0;
}

.assist {
  padding: clamp(56px, 7.5vw, 100px) 0 calc(clamp(56px, 7.5vw, 100px) + 8px);
}

.card-actions {
  margin-top: 4px;
  gap: 14px 18px;
}

@media (prefers-reduced-motion: reduce) {
  .brand::after,
  .hero::before,
  .hero::after,
  .site-footer::before {
    animation: none !important;
    will-change: auto;
  }

  .brand:hover .brand-emblem {
    transform: none !important;
  }

  .brand:hover .brand-emblem {
    filter: none;
  }
}

/* ========== Living Glow 2027 — luz, vida, interatividade ==========
   CSS-only. Gate/auth/filtros intactos. GPU: transform/opacity/shadow.
======================================================= */

:root {
  --glow-gold: rgba(212, 179, 106, 0.42);
  --glow-gold-soft: rgba(176, 138, 60, 0.28);
  --glow-bluewood: rgba(72, 104, 138, 0.22);
  --glow-warm-shadow: 0 22px 48px rgba(18, 21, 28, 0.14), 0 0 36px rgba(176, 138, 60, 0.18);
  --ring-gold: 0 0 0 3px rgba(176, 138, 60, 0.28), 0 0 20px rgba(212, 179, 106, 0.2);
}

@keyframes glowBreathe {
  0%, 100% { opacity: 0.35; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 0.62; transform: translate3d(1.5%, -1.2%, 0) scale(1.06); }
}

@keyframes glowFloat {
  0%, 100% { opacity: 0.28; transform: translate3d(0, 0, 0) scale(1); }
  50% { opacity: 0.55; transform: translate3d(-2%, 1.5%, 0) scale(1.08); }
}

@keyframes luxReveal {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes modeGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(176, 138, 60, 0); }
  50% { box-shadow: 0 0 0 4px rgba(176, 138, 60, 0.18); }
}

/* 1) Ambient mesh / glow — reforço respiração no hero e footer */
.hero::before {
  background:
    radial-gradient(ellipse 44% 38% at 16% 26%, rgba(212, 179, 106, 0.28), transparent 70%),
    radial-gradient(ellipse 36% 30% at 88% 16%, rgba(72, 104, 138, 0.18), transparent 68%),
    radial-gradient(ellipse 48% 40% at 70% 80%, rgba(7, 20, 38, 0.32), transparent 72%);
  animation: glowBreathe 9s ease-in-out infinite, orbDriftA 34s ease-in-out infinite alternate;
  mix-blend-mode: soft-light;
}

.hero::after {
  background:
    radial-gradient(ellipse 32% 30% at 58% 44%, rgba(212, 179, 106, 0.16), transparent 70%),
    radial-gradient(ellipse 28% 26% at 10% 76%, rgba(100, 140, 180, 0.14), transparent 68%);
  animation: glowFloat 11s ease-in-out infinite, orbDriftB 40s ease-in-out infinite alternate;
}

.site-footer::before {
  background:
    radial-gradient(ellipse 42% 52% at 10% 18%, rgba(212, 179, 106, 0.14), transparent 70%),
    radial-gradient(ellipse 38% 44% at 90% 72%, rgba(72, 104, 138, 0.1), transparent 68%),
    radial-gradient(ellipse 30% 32% at 50% 0%, rgba(176, 138, 60, 0.1), transparent 70%);
  animation: glowBreathe 12s ease-in-out infinite, orbDriftC 36s ease-in-out infinite alternate;
}

/* 2) Cards iluminados — border-glow + sombra quente */
@media (hover: hover) and (pointer: fine) {
  .card {
    position: relative;
  }

  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    border-radius: inherit;
    box-shadow:
      inset 0 0 0 1px transparent,
      0 0 0 0 transparent;
    transition:
      box-shadow 260ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 260ms ease;
    opacity: 0;
  }

  .card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 179, 106, 0.55);
    box-shadow: var(--glow-warm-shadow);
  }

  .card:hover::after {
    opacity: 1;
    box-shadow:
      inset 0 0 0 1px rgba(212, 179, 106, 0.55),
      0 0 0 1px rgba(212, 179, 106, 0.2),
      0 0 32px rgba(176, 138, 60, 0.22);
  }

  .listings .section-head.is-in ~ .grid .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-warm-shadow);
  }

  .assist-card:hover {
    border-color: rgba(212, 179, 106, 0.4);
    box-shadow: 0 18px 40px rgba(18, 21, 28, 0.1), 0 0 24px rgba(176, 138, 60, 0.12);
    transform: translateY(-3px);
  }
}

/* 3) Busca — ring dourado + modos vivos */
.search-panel,
.search-panel--band {
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease;
}

.search-panel:focus-within,
.search-panel--band:focus-within {
  border-color: rgba(212, 179, 106, 0.65);
  box-shadow:
    var(--shadow-2xl, 0 24px 48px -12px rgba(18, 21, 28, 0.16)),
    var(--ring-gold);
}

.search-panel input:focus,
.search-panel select:focus,
.search-panel input:focus-visible,
.search-panel select:focus-visible,
.search-panel--band input:focus,
.search-panel--band select:focus {
  outline: none;
  border-color: rgba(212, 179, 106, 0.75);
  box-shadow: var(--ring-gold);
}

.modes button {
  transition:
    background 200ms ease,
    color 200ms ease,
    border-color 200ms ease,
    box-shadow 220ms ease,
    transform 140ms ease;
}

.modes button.on {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset, 0 0 0 1px rgba(176, 138, 60, 0.25);
}

.modes button.on:focus-visible,
.modes button:focus-visible {
  outline: none;
  box-shadow: var(--ring-gold);
}

.modes button:active,
.btn-search:active,
.btn:active,
.card-gallery__dot:active,
.tag:active,
.status-badge:active {
  transform: scale(0.95);
}

.btn-search:hover,
.fields__actions-row .btn:hover {
  box-shadow: 0 8px 22px rgba(18, 21, 28, 0.1), 0 0 18px rgba(176, 138, 60, 0.14);
}

/* Chips / badges táteis */
.tag--on-photo,
.price--badge,
.card-gallery__dot,
.status-badge {
  transition:
    transform 140ms ease,
    box-shadow 200ms ease,
    background 200ms ease,
    border-color 200ms ease;
}

.tag--on-photo:active,
.price--badge:active {
  transform: scale(0.95);
}

/* Logo shimmer — reforço luminoso (mantém visualWowElite) */
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand-emblem {
    filter:
      drop-shadow(0 0 12px rgba(212, 179, 106, 0.45))
      drop-shadow(0 6px 16px rgba(18, 21, 28, 0.16));
  }
}

/* 4) Scroll reveal humanizado — só com motion permitido (não esconde sem JS) */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-in {
    animation: luxReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .assist-grid .assist-card[data-reveal].is-in:nth-child(1) { animation-delay: 40ms; }
  .assist-grid .assist-card[data-reveal].is-in:nth-child(2) { animation-delay: 120ms; }
  .assist-grid .assist-card[data-reveal].is-in:nth-child(3) { animation-delay: 200ms; }

  .listings .section-head.is-in ~ .grid .card {
    animation: luxReveal 650ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .listings .section-head.is-in ~ .grid .card:nth-child(1) { animation-delay: 50ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(2) { animation-delay: 110ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(3) { animation-delay: 170ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(4) { animation-delay: 230ms; }

  .trust[data-reveal].is-in,
  .search-band[data-reveal].is-in {
    animation: luxReveal 750ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
}

@media (max-width: 800px), (hover: none) {
  .card:hover::after {
    opacity: 0;
  }

  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover,
  .assist-card:hover {
    transform: none;
  }

  .modes button:active,
  .btn-search:active,
  .btn:active,
  .tag--on-photo:active,
  .price--badge:active,
  .card-gallery__dot:active {
    transform: scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .site-footer::before {
    animation: none !important;
    will-change: auto;
  }

  [data-reveal].is-in,
  .listings .section-head.is-in ~ .grid .card,
  .trust[data-reveal].is-in,
  .search-band[data-reveal].is-in {
    animation: none !important;
  }

  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover,
  .assist-card:hover,
  .modes button:active,
  .btn-search:active,
  .btn:active,
  .tag--on-photo:active,
  .price--badge:active {
    transform: none !important;
  }

  .card:hover::after {
    opacity: 0;
  }
}

/* ========== visualMotionElite — spotlight, pulse, cascade ==========
   CSS + hooks JS (--spot-x/y). Gate/auth/filtros intactos.
======================================================= */

@keyframes badgePulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(212, 179, 106, 0.4),
      0 6px 18px rgba(18, 21, 28, 0.12);
  }
  50% {
    box-shadow:
      0 0 0 8px rgba(212, 179, 106, 0),
      0 8px 22px rgba(176, 138, 60, 0.18);
  }
}

@keyframes pricePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(176, 138, 60, 0.28);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(176, 138, 60, 0);
    filter: brightness(1.04);
  }
}

@keyframes motionCascade {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* 1) Spotlight direcional nos cards (segue --spot-x/y do JS) */
@media (hover: hover) and (pointer: fine) {
  .card {
    --spot-x: 50%;
    --spot-y: 28%;
    overflow: hidden;
  }

  .card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    border-radius: inherit;
    background: radial-gradient(
      380px circle at var(--spot-x) var(--spot-y),
      rgba(255, 236, 190, 0.28) 0%,
      rgba(212, 179, 106, 0.16) 28%,
      transparent 58%
    );
    opacity: 0;
    mix-blend-mode: soft-light;
    transition: opacity 180ms ease;
    will-change: opacity;
  }

  .card.is-spotlit::before,
  .card:hover::before {
    opacity: 1;
  }

  .card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(212, 179, 106, 0.6);
    box-shadow:
      0 24px 52px rgba(18, 21, 28, 0.16),
      0 0 40px rgba(176, 138, 60, 0.22),
      inset 0 0 0 1px rgba(212, 179, 106, 0.35);
  }

  .card .card-body,
  .card .card-media,
  .card .tag--on-photo,
  .card .card-gallery__nav,
  .card .card-gallery__dots,
  .card .card-gallery__count {
    position: relative;
    z-index: 2;
  }
}

/* 2) Badges / etiquetas — glow magnético pulsante */
.tag--on-photo {
  animation: badgePulse 2.6s ease-in-out infinite;
  will-change: box-shadow;
}

.price--badge {
  animation: pricePulse 2.8s ease-in-out infinite;
  will-change: box-shadow, filter;
}

.card:hover .tag--on-photo,
.card:hover .price--badge {
  animation-duration: 1.8s;
}

/* 3) Scroll cascade — fade-up + scale */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].is-in {
    animation: motionCascade 760ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .assist-grid .assist-card[data-reveal].is-in:nth-child(1) { animation-delay: 50ms; }
  .assist-grid .assist-card[data-reveal].is-in:nth-child(2) { animation-delay: 130ms; }
  .assist-grid .assist-card[data-reveal].is-in:nth-child(3) { animation-delay: 210ms; }

  .listings .section-head.is-in ~ .grid .card {
    animation: motionCascade 700ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }

  .listings .section-head.is-in ~ .grid .card:nth-child(1) { animation-delay: 40ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(2) { animation-delay: 100ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(3) { animation-delay: 160ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(4) { animation-delay: 220ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(5) { animation-delay: 280ms; }
  .listings .section-head.is-in ~ .grid .card:nth-child(6) { animation-delay: 340ms; }

  .trust[data-reveal].is-in,
  .search-band[data-reveal].is-in {
    animation: motionCascade 800ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
}

@media (max-width: 800px), (hover: none) {
  .card::before {
    display: none;
  }

  .card:hover {
    transform: none;
  }

  .tag--on-photo,
  .price--badge {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card::before {
    display: none !important;
  }

  .tag--on-photo,
  .price--badge {
    animation: none !important;
    will-change: auto;
    filter: none !important;
  }

  [data-reveal].is-in,
  .listings .section-head.is-in ~ .grid .card,
  .trust[data-reveal].is-in,
  .search-band[data-reveal].is-in {
    animation: none !important;
  }

  .card:hover {
    transform: none !important;
  }
}

/* ========== showcaseFinal — polimento final de apresentação ==========
   Fonte de verdade final. CSS-only: gate/auth/CRUD/filtros intactos.
   Animações apenas em transform/opacity (GPU). Reduced-motion no fim.
======================================================= */

@keyframes ringPulse {
  0% { opacity: 0.7; transform: scale(1); }
  70%, 100% { opacity: 0; transform: scale(1.32); }
}

/* 1) Cards — borda dourada em gradiente + elevação limpa (só ponteiro fino) */
@media (hover: hover) and (pointer: fine) {
  .card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    padding: 1px;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(
      135deg,
      rgba(255, 226, 160, 0.95) 0%,
      rgba(212, 179, 106, 0.28) 38%,
      rgba(176, 138, 60, 0.7) 100%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    box-shadow: none;
    opacity: 0;
    transition: opacity 240ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .card:hover::after,
  .card.is-spotlit::after {
    opacity: 1;
    box-shadow: none;
  }

  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 179, 106, 0.35);
    box-shadow:
      0 28px 56px rgba(18, 21, 28, 0.16),
      0 10px 24px rgba(176, 138, 60, 0.14);
  }
}

/* 2) Hierarquia tipográfica — título serifado, preço/dados em Manrope */
.card h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(21px, 1.9vw, 24px);
  font-weight: 600;
  line-height: 1.2;
}

.card .price--badge,
.card-body .price {
  font-family: Manrope, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(20px, 1.9vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
}

/* 3) Pulses via transform/opacity (anel em pseudo-elemento) */
.tag--on-photo,
.price--badge {
  animation: none;
  will-change: auto;
  filter: none;
}

.price--badge {
  position: relative;
}

.tag--on-photo::after,
.price--badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(212, 179, 106, 0.75);
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity;
  animation: ringPulse 2.8s ease-out infinite;
}

.price--badge::after {
  animation-delay: 0.6s;
}

.card:hover .tag--on-photo::after,
.card:hover .price--badge::after {
  animation-duration: 1.8s;
}

/* 4) Contraste AAA no hero */
.hero-inner::before {
  content: "";
  position: absolute;
  inset: -28px -36px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 80% at 30% 50%, rgba(8, 10, 14, 0.55), transparent 72%);
}

.hero-kicker {
  color: #f0d9a0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7), 0 0 18px rgba(0, 0, 0, 0.55);
}

.hero-kicker::before {
  background: #f0d9a0;
}

.hero-title {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}

.hero-lead {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6), 0 0 16px rgba(0, 0, 0, 0.5);
}

.hero-image-note {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

/* 5) Galeria — alvos de toque 44px, resposta imediata */
.card-gallery__nav,
.card-gallery__dot,
.fab-wa,
.btn-top,
.btn,
.btn-wa,
.btn-search,
.modes button,
.card-cta,
.card-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.card-gallery__nav {
  width: 40px;
  height: 40px;
}

.card-gallery__nav::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
}

.card-gallery__nav:active {
  transform: translateY(-50%) scale(0.95);
}

.card-gallery__dots {
  gap: 14px;
  padding: 6px 12px;
}

.card-gallery__dot {
  position: relative;
  width: 8px;
  height: 8px;
}

.card-gallery__dot::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 999px;
}

.card-gallery__dot:active {
  transform: scale(0.8);
}

/* 6) Feedback tátil nos elementos de conversão */
.fab-wa:active,
.btn-wa:active,
.btn-search:active,
.btn:active,
.modes button:active,
.card-cta:active,
.card-link:active {
  transform: scale(0.95);
}

.btn-top.is-visible:active,
.btn-top:active {
  transform: translateY(0) scale(0.95);
}

/* Touch / mobile — hover desligado, controles sempre visíveis */
@media (max-width: 800px), (hover: none) {
  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover {
    transform: none;
    box-shadow: var(--shadow-card-rest);
  }

  .card::after {
    display: none;
  }

  .tag--on-photo::after,
  .price--badge::after {
    display: none;
  }

  .card-gallery__nav {
    opacity: 1;
    width: 40px;
    height: 40px;
  }
}

/* Reduced motion — fonte final */
@media (prefers-reduced-motion: reduce) {
  .tag--on-photo::after,
  .price--badge::after {
    animation: none !important;
    display: none !important;
    will-change: auto;
  }

  .card:hover,
  .listings .section-head.is-in ~ .grid .card:hover,
  .fab-wa:active,
  .btn-wa:active,
  .btn-search:active,
  .btn:active,
  .modes button:active,
  .card-cta:active,
  .card-link:active,
  .btn-top:active,
  .btn-top.is-visible:active,
  .card-gallery__dot:active {
    transform: none !important;
  }

  .card-gallery__nav:active {
    transform: translateY(-50%) !important;
  }

  .card::after,
  .card::before {
    transition: none !important;
  }
}

/* ========== cleanLightElite — tema claro corporativo ==========
   Superfícies #f8f9fa/#ffffff · títulos #12151c · texto #4a5568.
   Dourado #c5a059 só em realce (bordas, linhas, chips); texto dourado usa
   #7a5a1c para manter contraste AA. Só CSS: gate/auth/CRUD/filtros intactos.
   Animações apenas em transform/opacity.
================================================================ */

:root {
  --cl-bg: #f8f9fa;
  --cl-surface: #ffffff;
  --cl-ink: #12151c;
  --cl-text: #4a5568;
  --cl-gold: #c5a059;
  --cl-gold-deep: #7a5a1c;
  --cl-line: rgba(18, 21, 28, 0.08);
  --cl-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  --cl-shadow-lift: 0 24px 48px rgba(0, 0, 0, 0.09);
  --cl-gap: clamp(60px, 8vw, 120px);
  --ms-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes footerGlow {
  from { opacity: 0.7; transform: translate3d(-3%, 0, 0) scale(1); }
  to { opacity: 1; transform: translate3d(3%, -4%, 0) scale(1.08); }
}

@keyframes harmoniaRise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* 1) Resposta tátil única */
.btn,
.btn-wa,
.btn-search,
.modes button,
.fab-wa,
.btn-top,
.prefooter .prefooter__cta,
.menu .wa {
  transition:
    transform 0.25s var(--ms-ease),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    opacity 0.25s ease,
    visibility 0.25s;
}

.btn:active,
.btn-wa:active,
.btn-search:active,
.modes button:active,
.fab-wa:active,
.prefooter .prefooter__cta:active {
  transform: scale(0.95);
}

.btn-top:active,
.btn-top.is-visible:active {
  transform: translateY(0) scale(0.95);
}

.card:active,
.assist-card:active {
  transform: scale(0.985);
}

/* 2) Home — superfície clara, ritmo respirado */
body.is-home {
  --muted: #4a5568;
  --ink-soft: #2d3340;
  --shadow-card-rest: var(--cl-shadow);
  background: var(--cl-bg);
  color: var(--cl-ink);
  line-height: 1.65;
}

body.is-home .search-band {
  background: transparent;
  padding-block: 0 clamp(40px, 5vw, 72px);
}

body.is-home .listings {
  background: var(--cl-surface);
  padding-block: var(--cl-gap);
  border-top: 1px solid var(--cl-line);
}

body.is-home .trust {
  background: var(--cl-bg);
  padding-block: clamp(40px, 5vw, 72px);
  border-block: 1px solid var(--cl-line);
}

body.is-home .assist {
  background: var(--cl-surface);
  padding-block: var(--cl-gap);
}

body.is-home .section-title {
  color: var(--cl-ink);
}

body.is-home .section-lead,
body.is-home .results-count,
body.is-home .trust-item span,
body.is-home .assist-card p {
  color: var(--cl-text);
}

body.is-home .section-lead {
  max-width: 62ch;
}

body.is-home .rule {
  background: var(--cl-gold);
}

/* Busca (#filtro) — painel branco, campos com respiro */
body.is-home .search-panel {
  background: var(--cl-surface);
  border-color: var(--cl-line);
  box-shadow: 0 20px 50px rgba(18, 21, 28, 0.08);
  color: var(--cl-ink);
}

body.is-home .search-label {
  color: var(--cl-gold-deep);
}

body.is-home .search-hint,
body.is-home .fields label {
  color: var(--cl-text);
}

body.is-home .fields {
  gap: 20px;
}

body.is-home .modes {
  background: var(--cl-bg);
  border-color: var(--cl-line);
}

/* Estado vazio — a conversão fica no botão flutuante.
   O elemento permanece no DOM porque o script do filtro atualiza o seu link. */
body.is-home .empty {
  background: var(--cl-bg);
  border-color: var(--cl-line);
  color: var(--cl-text);
}

body.is-home .empty-title {
  color: var(--cl-ink);
}

body.is-home .empty #vazio-wa {
  display: none;
}

/* Cards */
body.is-home .card,
body.is-home .assist-card {
  background: var(--cl-surface);
  border-color: var(--cl-line);
  box-shadow: var(--cl-shadow);
}

body.is-home .card h2,
body.is-home .card h2 a,
body.is-home .assist-card h3,
body.is-home .trust-item strong {
  color: var(--cl-ink);
}

body.is-home .card .where,
body.is-home .card .meta--stats span {
  color: var(--cl-text);
}

body.is-home .card .price--badge {
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.5);
  color: var(--cl-gold-deep);
}

body.is-home .card .tag--on-photo {
  color: var(--cl-ink);
}

body.is-home .card .card-link {
  color: var(--cl-ink);
  text-decoration-color: rgba(197, 160, 89, 0.7);
}

body.is-home .card .card-cta {
  color: var(--cl-gold-deep);
  border-bottom-color: rgba(197, 160, 89, 0.55);
}

body.is-home .assist-icon {
  background: rgba(197, 160, 89, 0.12);
  border-color: rgba(197, 160, 89, 0.35);
  color: var(--cl-gold-deep);
}

@media (hover: hover) and (pointer: fine) {
  body.is-home .listings .grid .card:hover,
  body.is-home .card:hover,
  body.is-home .listings .section-head.is-in ~ .grid .card:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: var(--cl-shadow-lift);
  }

  body.is-home .card:hover h2 a {
    color: var(--cl-gold-deep);
  }

  body.is-home .assist-card:hover {
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: var(--cl-shadow-lift);
  }
}

@media (max-width: 800px), (hover: none) {
  body.is-home .listings .grid .card:hover,
  body.is-home .card:hover,
  body.is-home .listings .section-head.is-in ~ .grid .card:hover {
    transform: none;
    box-shadow: var(--cl-shadow);
    border-color: var(--cl-line);
  }
}

/* Cabeçalho — espaçamento limpo */
@media (min-width: 861px) {
  .site-header .menu {
    gap: clamp(20px, 2.6vw, 36px);
  }
}

/* 3) Banner de atendimento — único CTA além do botão flutuante */
.prefooter {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--cl-gap);
  text-align: center;
  color: var(--cl-ink);
  background: linear-gradient(180deg, var(--cl-bg) 0%, #f1f3f5 100%);
}

.prefooter::before,
.prefooter::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  will-change: transform, opacity;
  animation: footerGlow 22s ease-in-out infinite alternate;
}

.prefooter::before {
  top: -50%;
  left: -8%;
  width: min(680px, 90vw);
  height: min(680px, 90vw);
  background: radial-gradient(circle, rgba(197, 160, 89, 0.16), transparent 66%);
}

.prefooter::after {
  right: -10%;
  bottom: -60%;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(18, 21, 28, 0.05), transparent 66%);
  animation-duration: 28s;
  animation-direction: alternate-reverse;
}

.prefooter .prefooter__inner {
  width: min(820px, calc(100% - 48px));
  display: grid;
  justify-items: center;
  gap: 20px;
}

.prefooter__kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cl-gold-deep);
}

.prefooter__kicker::before,
.prefooter__kicker::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cl-gold));
}

.prefooter__kicker::after {
  transform: scaleX(-1);
}

.prefooter__title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--cl-ink);
  text-wrap: balance;
}

.prefooter__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--cl-gold-deep);
}

.prefooter__text {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.65;
  color: var(--cl-text);
}

.prefooter__actions {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 8px;
}

.prefooter .prefooter__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(197, 160, 89, 0.7);
  background: var(--cl-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(18, 21, 28, 0.18);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.prefooter__cta .ico {
  width: 20px;
  height: 20px;
  color: #e6cb8d;
}

.prefooter .prefooter__cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cl-gold), 0 14px 32px rgba(18, 21, 28, 0.18);
}

.prefooter__note {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cl-text);
}

@media (hover: hover) and (pointer: fine) {
  .prefooter .prefooter__cta:hover {
    transform: translateY(-3px);
    border-color: var(--cl-gold);
    box-shadow: 0 20px 40px rgba(18, 21, 28, 0.22);
  }

  .prefooter .prefooter__cta:active {
    transform: scale(0.95);
  }
}

/* 4) Rodapé claro — 4 colunas */
.site-footer {
  padding: clamp(56px, 7vw, 84px) 0 0;
  color: var(--cl-text);
  background: linear-gradient(180deg, #f1f3f5 0%, #e9ecef 100%);
  border-top: 1px solid var(--cl-line);
}

.site-footer::before {
  background:
    radial-gradient(ellipse 42% 50% at 10% 15%, rgba(197, 160, 89, 0.1), transparent 70%),
    radial-gradient(ellipse 36% 42% at 92% 80%, rgba(18, 21, 28, 0.04), transparent 68%);
  animation: footerGlow 30s ease-in-out infinite alternate;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.15fr 1.35fr;
  gap: 48px clamp(32px, 4vw, 64px);
  align-items: start;
  padding-bottom: 72px;
}

.footer-brand {
  max-width: none;
  gap: 16px;
}

.footer-mark,
.footer-mark__text strong {
  color: var(--cl-ink);
}

.footer-mark__text,
.footer-lead,
.footer-service__text {
  color: var(--cl-text);
}

.footer-lead {
  line-height: 1.65;
  max-width: 30ch;
}

.footer-service__text {
  margin: 0;
  max-width: 34ch;
  line-height: 1.65;
}

.footer-service {
  gap: 14px;
}

.footer-creci {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cl-gold-deep);
}

.footer-heading {
  position: relative;
  padding-bottom: 14px;
  min-height: 0;
  color: var(--cl-gold-deep);
}

.footer-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, var(--cl-gold), transparent);
}

.footer-list {
  gap: 2px;
}

.footer-list a,
.footer-list .link-btn,
.footer-legal-links a,
.footer-legal-links .link-btn {
  min-height: 36px;
  color: var(--cl-text);
  font-weight: 500;
  border-bottom-color: transparent;
  transition: color 220ms ease, transform 220ms var(--ms-ease);
}

.footer-list .link-ico .ico {
  color: var(--cl-gold-deep);
}

.site-footer .footer-list a:hover,
.site-footer .footer-list .link-btn:hover {
  border-bottom-color: transparent;
}

@media (pointer: coarse) {
  .footer-list a,
  .footer-list .link-btn,
  .footer-legal-links a,
  .footer-legal-links .link-btn {
    min-height: 44px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .footer-list a:hover,
  .footer-list .link-btn:hover,
  .footer-list a:focus-visible,
  .footer-list .link-btn:focus-visible,
  .footer-legal-links a:hover,
  .footer-legal-links .link-btn:hover {
    color: var(--cl-ink);
    transform: translateX(4px);
  }
}

.footer-list a:focus-visible,
.footer-list .link-btn:focus-visible,
.footer-legal-links a:focus-visible,
.footer-legal-links .link-btn:focus-visible,
.site-footer .footer-mark:focus-visible,
.site-footer .footer-credit:focus-visible {
  outline: none;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--cl-gold);
}

/* Barra legal */
.footer-bar {
  background: rgba(18, 21, 28, 0.04);
  border-top: 1px solid var(--cl-line);
  color: var(--cl-text);
}

.footer-bar__inner {
  justify-content: space-between;
  gap: 12px 32px;
}

.footer-legal {
  flex: 0 1 auto;
  color: var(--cl-text);
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
  margin-right: auto;
}

.footer-legal-links a,
.footer-legal-links .link-btn {
  display: inline-flex;
  align-items: center;
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.04em;
  background: none;
  border: 0;
  border-bottom: 1px solid transparent;
  cursor: pointer;
}

.footer-credit,
.footer-credit__label {
  color: var(--cl-text);
}

.footer-credit:hover {
  color: var(--cl-ink);
}

/* Convivência com o botão flutuante e #btn-topo */
@media (min-width: 801px) {
  body:not(.is-admin) .footer-grid {
    padding-bottom: 120px;
  }
}

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

  .footer-brand,
  .footer-service {
    grid-column: 1 / -1;
  }
}

@media (max-width: 800px) {
  .footer-grid {
    gap: 36px 28px;
    padding-bottom: 40px;
  }

  .footer-legal-links {
    justify-content: center;
    margin-right: 0;
  }
}

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

  .prefooter .prefooter__cta {
    width: 100%;
    max-width: 360px;
  }
}

/* 5) Entrada progressiva guiada pela rolagem (aprimoramento) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .prefooter__kicker,
    .prefooter__title,
    .prefooter__text,
    .prefooter__actions,
    .footer-grid > * {
      animation: harmoniaRise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 55%;
    }

    .prefooter__title { animation-range: entry 4% entry 59%; }
    .prefooter__text { animation-range: entry 8% entry 63%; }
    .prefooter__actions { animation-range: entry 12% entry 67%; }
    .footer-grid > :nth-child(2) { animation-range: entry 4% entry 59%; }
    .footer-grid > :nth-child(3) { animation-range: entry 8% entry 63%; }
    .footer-grid > :nth-child(4) { animation-range: entry 12% entry 67%; }
  }
}

/* 6) Reduced motion — fonte final */
@media (prefers-reduced-motion: reduce) {
  .prefooter::before,
  .prefooter::after,
  .site-footer::before {
    animation: none !important;
    will-change: auto;
  }

  .prefooter__kicker,
  .prefooter__title,
  .prefooter__text,
  .prefooter__actions,
  .footer-grid > * {
    animation: none !important;
  }

  .btn,
  .btn-wa,
  .btn-search,
  .modes button,
  .fab-wa,
  .btn-top,
  .menu .wa,
  .prefooter .prefooter__cta,
  .footer-list a,
  .footer-list .link-btn,
  .footer-legal-links a,
  .footer-legal-links .link-btn {
    transition: none !important;
  }

  .btn:active,
  .btn-wa:active,
  .btn-search:active,
  .modes button:active,
  .fab-wa:active,
  .card:active,
  .assist-card:active,
  .btn-top:active,
  .btn-top.is-visible:active,
  .prefooter .prefooter__cta:hover,
  .prefooter .prefooter__cta:active,
  .footer-list a:hover,
  .footer-list a:focus-visible,
  .footer-list .link-btn:hover,
  .footer-list .link-btn:focus-visible,
  .footer-legal-links a:hover,
  .footer-legal-links .link-btn:hover {
    transform: none !important;
  }
}

/* ========== cleanLightElite — login administrativo ==========
   Só apresentação: formulário, CSRF, sessão e redirecionamentos intactos.
================================================================ */

.page-auth {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 140px);
  background: var(--cl-bg);
  color: var(--cl-ink);
}

.page-auth::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -30%;
  left: 50%;
  width: min(820px, 120vw);
  height: min(820px, 120vw);
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.13), transparent 66%);
}

.page-auth > .wrap {
  position: relative;
  z-index: 1;
}

.page-auth .login-box {
  max-width: 440px;
  margin: 80px auto 100px;
  padding: 44px 40px 40px;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  color: var(--cl-ink);
}

.page-auth .login-box .rule {
  background: var(--cl-gold);
}

.page-auth .login-box .search-label {
  color: var(--cl-gold-deep);
  letter-spacing: 0.2em;
}

.page-auth .login-box h1 {
  color: var(--cl-ink);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.page-auth .login-box .intro {
  color: var(--cl-text);
}

.page-auth .login-box label {
  color: var(--cl-text);
  font-weight: 600;
}

.page-auth .login-box input {
  background: #ffffff;
  border: 1px solid #cbd5e0;
  border-radius: var(--radius-sm);
  color: var(--cl-ink);
  color-scheme: light;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.page-auth .login-box input::placeholder {
  color: #6b7280;
}

.page-auth .login-box input:hover {
  border-color: #a0aec0;
}

.page-auth .login-box > div:focus-within input,
.page-auth .login-box input:focus,
.page-auth .login-box input:focus-visible {
  outline: none;
  border-color: var(--cl-gold);
  background: #ffffff;
  transform: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.28);
}

/* Autofill do navegador: mantém fundo branco e texto escuro */
.page-auth .login-box input:-webkit-autofill,
.page-auth .login-box input:-webkit-autofill:hover {
  -webkit-text-fill-color: var(--cl-ink);
  caret-color: var(--cl-ink);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}

.page-auth .login-box input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--cl-ink);
  caret-color: var(--cl-ink);
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(197, 160, 89, 0.28);
  box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(197, 160, 89, 0.28);
}

/* Botão de acesso — carvão nobre com filete champagne */
.page-auth .login-box .btn {
  border: 1px solid rgba(197, 160, 89, 0.6);
  background: var(--cl-ink);
  background-image: none;
  color: #ffffff;
  text-shadow: none;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  filter: none;
  box-shadow: 0 12px 26px rgba(18, 21, 28, 0.18);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 0.25s var(--ms-ease),
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    background-color 0.25s ease;
}

.page-auth .login-box .btn:active {
  transform: scale(0.95);
}

.page-auth .login-box .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--cl-gold), 0 12px 26px rgba(18, 21, 28, 0.18);
}

@media (hover: hover) and (pointer: fine) {
  .page-auth .login-box .btn:hover {
    background-color: #1f2530;
    border-color: var(--cl-gold);
    box-shadow: 0 16px 32px rgba(18, 21, 28, 0.24);
    transform: translateY(-2px);
  }

  .page-auth .login-box .btn:active {
    transform: scale(0.95);
  }
}

@media (max-width: 560px) {
  .page-auth .login-box {
    margin: 40px auto 64px;
    padding: 36px 24px 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-auth .login-box input,
  .page-auth .login-box .btn {
    transition: none !important;
  }

  .page-auth .login-box .btn:hover,
  .page-auth .login-box .btn:active {
    transform: none !important;
  }
}

/* ========== cleanLightElite — painel administrativo ==========
   Só apresentação: listagem, upload, CSRF, sessão e regras de publicação
   permanecem como estão no PHP.
================================================================ */

body.is-admin {
  background: var(--cl-bg);
  color: var(--cl-ink);
}

.is-admin main {
  background: var(--cl-bg);
}

.is-admin .topbar {
  background: #f1f3f5;
  border-bottom: 1px solid #e2e8f0;
}

/* Cabeçalho da seção */
.is-admin h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cl-ink);
}

.is-admin .rule {
  background: var(--cl-gold);
}

.is-admin .section-lead,
.is-admin .admin-empty p {
  color: var(--cl-text);
}

.is-admin .section-head--split {
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

/* Listagem de imóveis */
.is-admin .admin-list {
  gap: 16px;
}

.is-admin .admin-item,
.is-admin .admin-panel,
.is-admin .admin-empty {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.is-admin .admin-empty {
  border-style: solid;
}

.is-admin .admin-empty h2 {
  color: var(--cl-ink);
}

.is-admin .admin-item {
  gap: 24px;
  padding: 18px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s var(--ms-ease);
}

.is-admin .admin-item strong {
  color: var(--cl-ink);
  font-size: 17px;
  letter-spacing: -0.01em;
}

.is-admin .admin-item .where {
  color: var(--cl-text);
}

.is-admin .thumb {
  border: 1px solid #e2e8f0;
  background-color: #eef1f4;
}

@media (hover: hover) and (pointer: fine) {
  .is-admin .admin-item:hover {
    border-color: rgba(197, 160, 89, 0.55);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
    transform: translateY(-2px);
  }
}

/* Status de publicação — Publicado vs. Rascunho/Pendente */
.is-admin .publication-status {
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--cl-text);
}

.is-admin .status-badge {
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #f2d9a0;
  background: #fffaeb;
  color: #7a4a05;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.is-admin .status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  flex: 0 0 auto;
}

.is-admin .status-badge--published {
  border-color: #b7e4c7;
  background: #f0fdf4;
  color: #166534;
}

.is-admin .status-badge--published::before {
  background: #16a34a;
}

/* Botões de ação */
.is-admin .btn {
  background: var(--cl-ink);
  border: 1px solid rgba(197, 160, 89, 0.6);
  color: #ffffff;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.is-admin .btn.ghost {
  background: #ffffff;
  border-color: #cbd5e0;
  color: var(--cl-ink);
}

.is-admin .btn.ghost.danger {
  border-color: #fbd0d0;
  color: #9b1c1c;
}

@media (hover: hover) and (pointer: fine) {
  .is-admin .btn:hover {
    background: #1f2530;
    border-color: var(--cl-gold);
    color: #ffffff;
  }

  .is-admin .btn.ghost:hover {
    background: #ffffff;
    border-color: var(--cl-gold);
    color: var(--cl-ink);
  }

  .is-admin .btn.ghost.danger:hover {
    background: #fff5f5;
    border-color: #f19b9b;
    color: #7f1111;
  }
}

.is-admin .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--cl-gold);
}

/* Formulários internos (cadastro/edição) — foco champagne */
.is-admin label {
  color: var(--cl-text);
  font-weight: 600;
}

.is-admin input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.is-admin select,
.is-admin textarea {
  background-color: #ffffff;
  border: 1px solid #cbd5e0;
  color: var(--cl-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.is-admin input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
.is-admin select:hover,
.is-admin textarea:hover {
  border-color: #a0aec0;
}

.is-admin input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.is-admin select:focus,
.is-admin textarea:focus {
  outline: none;
  border-color: var(--cl-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.28);
}

.is-admin input::placeholder,
.is-admin textarea::placeholder {
  color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
  .is-admin .admin-item,
  .is-admin input,
  .is-admin select,
  .is-admin textarea {
    transition: none !important;
  }

  .is-admin .admin-item:hover {
    transform: none !important;
  }
}

/* ========== cleanLightElite Master — Home ==========
   Hero com transição para #f8f9fa, curadoria (3 pilares), foco champagne
   na busca, cascata de entrada e spotlight calibrado para tema claro.
   Só apresentação: PHP, JSON, sessão, CSRF e #filtro (JS) intactos.
   Animações apenas em transform/opacity.
================================================== */

/* 1) Hero — imponência com respiro e saída suave para o fundo claro */
body.is-home .hero {
  min-height: min(88svh, 820px);
  padding: clamp(112px, 15vh, 144px) 0 clamp(176px, 16vw, 232px);
}

body.is-home .hero-kicker {
  margin-bottom: 20px;
}

body.is-home .hero-title {
  max-width: 20ch;
  font-size: clamp(40px, 5.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

body.is-home .hero-lead {
  max-width: 52ch;
  margin-top: 22px;
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.65;
}

body.is-home .hero-actions {
  margin-top: 36px;
}

body.is-home .search-band {
  --pull: clamp(32px, 4vw, 48px);
  margin-top: calc(var(--pull) * -1);
}

body.is-home .search-band::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: -200px;
  height: calc(200px + var(--pull));
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(248, 249, 250, 0) 0%,
    rgba(248, 249, 250, 0.16) 30%,
    rgba(248, 249, 250, 0.5) 60%,
    rgba(248, 249, 250, 0.88) 85%,
    #f8f9fa 100%
  );
}

/* 2) Busca — foco champagne limpo */
body.is-home .fields input,
body.is-home .fields select {
  background-color: #ffffff;
  border: 1px solid #cbd5e0;
  color: var(--cl-ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

body.is-home .fields input:hover,
body.is-home .fields select:hover {
  border-color: #a0aec0;
}

body.is-home .fields input:focus,
body.is-home .fields select:focus {
  outline: none;
  border-color: var(--cl-gold);
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.28);
}

body.is-home .fields input::placeholder {
  color: #6b7280;
}

body.is-home .search-panel {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

body.is-home .search-panel:focus-within {
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 24px 56px rgba(18, 21, 28, 0.1);
}

body.is-home .modes button:focus-visible,
body.is-home .fields .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--cl-gold);
}

/* 3) Curadoria — manifesto com 3 pilares */
body.is-home .manifesto {
  background: var(--cl-bg);
  padding: clamp(8px, 2vw, 24px) 0 clamp(56px, 7vw, 96px);
}

body.is-home .manifesto__head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 4vw, 56px);
  text-align: center;
}

body.is-home .manifesto__head .rule {
  margin-inline: auto;
}

body.is-home .manifesto__head .search-label {
  margin-top: 18px;
}

body.is-home .manifesto__head .section-title {
  margin-top: 12px;
  text-wrap: balance;
}

body.is-home .manifesto__head .section-lead {
  margin-inline: auto;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.pillar {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3vw, 40px);
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--cl-shadow);
  transition:
    transform 0.35s var(--ms-ease),
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    opacity 0.6s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(28px, 3vw, 40px);
  width: 56px;
  height: 2px;
  background: var(--cl-gold);
  transform: scaleX(0.5);
  transform-origin: left;
  transition: transform 0.45s var(--ms-ease);
}

.pillar__index {
  display: block;
  margin-bottom: 18px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: 44px;
  font-weight: 500;
  font-style: italic;
  line-height: 1;
  font-variant-numeric: lining-nums;
  color: var(--cl-gold-deep);
}

.pillar h3 {
  margin: 0 0 10px;
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", Times, serif;
  font-size: clamp(24px, 2.2vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--cl-ink);
}

.pillar p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--cl-text);
}

@media (hover: hover) and (pointer: fine) {
  .pillar:hover {
    transform: translateY(-6px);
    border-color: rgba(197, 160, 89, 0.45);
    box-shadow: var(--cl-shadow-lift);
  }

  .pillar:hover::before {
    transform: scaleX(1);
  }
}

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

/* 4) Cascata de entrada (IntersectionObserver existente, só transform/opacity) */
@media (prefers-reduced-motion: no-preference) {
  .pillars .pillar[data-reveal].is-in:nth-child(1) { animation-delay: 60ms; }
  .pillars .pillar[data-reveal].is-in:nth-child(2) { animation-delay: 160ms; }
  .pillars .pillar[data-reveal].is-in:nth-child(3) { animation-delay: 260ms; }

  body.is-home .trust[data-reveal].is-in .trust-item {
    animation: harmoniaRise 700ms var(--ms-ease) backwards;
  }

  body.is-home .trust[data-reveal].is-in .trust-item:nth-child(2) { animation-delay: 90ms; }
  body.is-home .trust[data-reveal].is-in .trust-item:nth-child(3) { animation-delay: 180ms; }
}

/* 5) Spotlight calibrado para cards claros — somente ponteiro fino */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  body.is-home .card::before {
    mix-blend-mode: normal;
    background: radial-gradient(
      300px circle at var(--spot-x) var(--spot-y),
      rgba(197, 160, 89, 0.18) 0%,
      rgba(197, 160, 89, 0.07) 38%,
      transparent 68%
    );
    transition: opacity 0.24s ease;
  }
}

/* 6) Reduced motion — fonte final */
@media (prefers-reduced-motion: reduce) {
  .pillar,
  .pillar::before,
  body.is-home .fields input,
  body.is-home .fields select,
  body.is-home .search-panel {
    transition: none !important;
  }

  .pillar:hover {
    transform: none !important;
  }

  .pillar:hover::before {
    transform: scaleX(0.5) !important;
  }

  body.is-home .trust[data-reveal].is-in .trust-item {
    animation: none !important;
  }
}

/* ========== cleanLightElite — páginas legais e aviso de cookies ==========
   Só apresentação. Animações apenas em opacity/transform.
================================================================ */

.legal h1,
.legal h2 {
  color: var(--cl-ink);
}

.legal p,
.legal li {
  color: var(--cl-text);
}

.legal-draft {
  margin: 20px 0 8px;
  padding: 14px 18px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--cl-gold);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--cl-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.legal-draft strong {
  color: var(--cl-ink);
}

.legal-id {
  display: grid;
  gap: 0;
  margin: 16px 0 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.legal-id > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.4fr);
  gap: 6px 20px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
}

.legal-id > div:first-child {
  border-top: 0;
}

.legal-id dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cl-text);
}

.legal-id dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--cl-ink);
  overflow-wrap: anywhere;
}

.legal-pending {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid #f2d9a0;
  border-radius: 999px;
  background: #fffaeb;
  color: #7a4a05;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.legal-pending::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  flex: 0 0 auto;
}

@media (max-width: 560px) {
  .legal-id > div {
    grid-template-columns: 1fr;
    padding: 14px 16px;
  }
}

/* Aviso de cookies: entrada e saída suaves (opacity + transform) */
.cookie-banner {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s var(--ms-ease);
}

.cookie-banner.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.cookie-banner__status {
  margin: 10px 0 0;
  padding: 8px 12px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--cl-ink);
}

.cookie-banner__status[hidden] {
  display: none;
}

.cookie-banner .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--cl-gold);
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner {
    transition: none !important;
    transform: none !important;
  }
}

/* ========== cleanLightElite Final — refinamento visual completo ==========
   Une detalhe do imóvel, páginas internas, 404, aviso de cookies e chrome
   ao mesmo idioma visual da home. Só CSS. PHP, JSON, sessão, CSRF e #filtro
   intactos. Animações apenas em transform/opacity.
================================================================ */

::selection {
  background: rgba(197, 160, 89, 0.28);
  color: var(--cl-ink);
}

html {
  background: var(--cl-bg);
}

/* 1) Chrome interno — mesmo fundo claro da home */
body:not(.is-home):not(.is-admin) {
  background: var(--cl-bg);
  color: var(--cl-ink);
}

body:not(.is-home):not(.is-admin) main {
  background: var(--cl-bg);
}

body:not(.is-home):not(.is-admin) .topbar {
  background: #f1f3f5;
  border-bottom-color: #e2e8f0;
  color: var(--cl-text);
}

body:not(.is-home):not(.is-admin) .topbar a:hover {
  color: var(--cl-gold-deep);
  border-bottom-color: var(--cl-gold);
}

body:not(.is-home):not(.is-admin) .site-header {
  border-bottom-color: #e2e8f0;
}

body:not(.is-home):not(.is-admin) .site-header::before {
  background: rgba(255, 255, 255, 0.92);
}

body:not(.is-home):not(.is-admin) .btn:not(.ghost) {
  background: var(--cl-ink);
  border-color: rgba(197, 160, 89, 0.6);
  color: #ffffff;
}

body:not(.is-home):not(.is-admin) .btn.ghost {
  background: #ffffff;
  border-color: #cbd5e0;
  color: var(--cl-ink);
}

body:not(.is-home):not(.is-admin) .btn:focus-visible,
body:not(.is-home):not(.is-admin) .btn-wa:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--cl-gold);
}

@media (hover: hover) and (pointer: fine) {
  body:not(.is-home):not(.is-admin) .btn:not(.ghost):hover {
    background: #1f2530;
    border-color: var(--cl-gold);
    transform: translateY(-2px);
  }

  body:not(.is-home):not(.is-admin) .btn.ghost:hover {
    background: #ffffff;
    border-color: var(--cl-gold);
    color: var(--cl-ink);
  }
}

/* 2) Página do imóvel — editorial boutique */
.page-detail {
  background: var(--cl-bg);
}

.page-detail > section {
  padding: clamp(20px, 3vw, 36px) 0 clamp(56px, 7vw, 88px);
}

.page-detail .wrap {
  max-width: 1080px;
}

.page-detail .gallery--lead {
  overflow: hidden;
  margin: 0;
  padding: 8px;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.page-detail .gallery--lead img,
.page-detail .gallery--lead .photo--empty {
  border-radius: 14px;
  background: #eef1f4;
  box-shadow: none;
}

.page-detail .gallery--lead img:first-child,
.page-detail .gallery--lead .photo--empty {
  min-height: 320px;
  max-height: min(62vh, 560px);
}

/* Dois retratos: lado a lado, sem célula vazia no mosaico */
.page-detail .gallery--lead:has(> :nth-child(2):last-child) {
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr;
}

.page-detail .gallery--lead:has(> :nth-child(2):last-child) img:first-child {
  grid-row: auto;
  height: 100%;
}

.page-detail .gallery--lead:has(> :nth-child(2):last-child) img:nth-child(2) {
  max-height: none;
  min-height: 320px;
  height: 100%;
}

.page-detail .detail-summary {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(28px, 4vw, 44px) 0 8px;
  border-bottom: 0;
}

.page-detail .tag--lead {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border: 1px solid rgba(197, 160, 89, 0.5);
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.1);
  color: var(--cl-gold-deep);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.page-detail h1 {
  margin-top: 14px;
  max-width: 18ch;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.06;
  color: var(--cl-ink);
  text-wrap: balance;
}

.page-detail .price {
  margin-top: 14px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--cl-gold-deep);
  font-variant-numeric: lining-nums;
}

.page-detail .where {
  margin: 10px 0 18px;
  color: var(--cl-text);
  font-size: 15px;
}

.page-detail .meta {
  gap: 8px;
  margin-bottom: 0;
}

.page-detail .meta span {
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #ffffff;
  color: var(--cl-text);
  font-size: 12.5px;
  font-weight: 600;
}

.page-detail .meta span:not(:last-child)::after {
  display: none;
}

.page-detail .detail-summary__cta {
  position: sticky;
  top: 96px;
  gap: 12px;
  padding: 22px 22px 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.page-detail .detail-summary__cta .btn-wa {
  background: var(--cl-ink);
  border-color: rgba(197, 160, 89, 0.65);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(18, 21, 28, 0.16);
}

.page-detail .detail-summary__cta .btn-wa .ico {
  color: #e6cb8d;
}

.page-detail .detail-cta-note {
  margin: 4px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--cl-text);
}

.page-detail .detail-body {
  margin: 28px 0 8px;
  padding: clamp(22px, 3vw, 32px);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.page-detail .detail-sub {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: 16px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--cl-ink);
}

.page-detail .detail-sub::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--cl-gold);
}

.page-detail .descricao {
  max-width: 68ch;
  color: var(--cl-text);
  font-size: 16px;
  line-height: 1.75;
}

.mobile-cta {
  background: rgba(255, 255, 255, 0.96);
  border-top-color: #e2e8f0;
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.06);
}

.mobile-cta__price {
  color: var(--cl-gold-deep);
}

@media (max-width: 860px) {
  .page-detail .gallery--lead,
  .page-detail .gallery--lead:has(> :nth-child(2):last-child) {
    grid-template-columns: 1fr;
    padding: 6px;
    border-radius: 16px;
  }

  .page-detail .gallery--lead img:first-child,
  .page-detail .gallery--lead:has(> :nth-child(2):last-child) img:first-child,
  .page-detail .gallery--lead:has(> :nth-child(2):last-child) img:nth-child(2) {
    grid-row: auto;
    min-height: 220px;
    max-height: min(46vh, 400px);
    height: auto;
  }

  .page-detail .detail-summary {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .page-detail .detail-summary__cta {
    position: static;
  }

  .page-detail h1 {
    max-width: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .page-detail .detail-summary__cta .btn-wa:hover {
    background: #1f2530;
    border-color: var(--cl-gold);
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(18, 21, 28, 0.22);
  }
}

/* 3) Páginas legais e 404 — leitura editorial */
.page-legal {
  background: var(--cl-bg);
}

.page-legal section {
  padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 96px);
}

.legal .search-label {
  color: var(--cl-gold-deep);
}

.legal h1 {
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.025em;
  color: var(--cl-ink);
  text-wrap: balance;
}

.legal .intro {
  max-width: 62ch;
  color: var(--cl-text);
}

.legal h2 {
  margin-top: 40px;
  color: var(--cl-ink);
}

.legal a {
  color: var(--cl-ink);
  border-bottom-color: rgba(197, 160, 89, 0.55);
}

.legal a:hover {
  color: var(--cl-gold-deep);
  border-bottom-color: var(--cl-gold);
}

.legal code {
  display: inline;
  padding: 1px 6px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  font-size: 0.88em;
  color: var(--cl-ink);
}

.legal-note {
  color: var(--cl-text);
  border-top-color: #e2e8f0;
}

/* Páginas simples (404 / imóvel indisponível) */
body:not(.is-home):not(.is-admin) main:not(.page-detail):not(.page-auth):not(.page-legal) section {
  padding: clamp(48px, 8vw, 96px) 0;
}

body:not(.is-home):not(.is-admin) main:not(.page-detail):not(.page-auth):not(.page-legal) h1 {
  max-width: 16ch;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}

body:not(.is-home):not(.is-admin) main:not(.page-detail):not(.page-auth):not(.page-legal) .where {
  max-width: 46ch;
  color: var(--cl-text);
}

body:not(.is-home):not(.is-admin) main:not(.page-detail):not(.page-auth):not(.page-legal) .hero-actions {
  margin-top: 28px;
}

/* 4) Aviso de cookies — compacto, champagne, sem cobrir a tela */
.cookie-banner {
  left: 12px;
  right: 12px;
  bottom: 12px;
  max-width: 620px;
}

.cookie-banner__inner {
  gap: 12px;
  padding: 14px 16px 13px;
  border: 1px solid #e2e8f0;
  border-left: 3px solid var(--cl-gold);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 44px rgba(18, 21, 28, 0.14);
}

.cookie-banner__title {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cl-gold-deep);
}

.cookie-banner__text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--cl-text);
}

.cookie-banner__text a {
  color: var(--cl-ink);
  border-bottom-color: rgba(197, 160, 89, 0.55);
}

.cookie-banner__actions .btn {
  min-height: 42px;
  padding: 0 16px;
}

.cookie-banner__status {
  background: rgba(197, 160, 89, 0.1);
  border-color: rgba(197, 160, 89, 0.35);
}

@media (max-width: 560px) {
  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner__inner {
    padding: 12px 13px 12px;
    gap: 10px;
  }

  .cookie-banner__text {
    font-size: 12px;
  }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .cookie-banner__actions .btn {
    min-height: 40px;
    padding: 0 8px;
    font-size: 11px;
  }
}

/* 5) Reduced motion — fonte final desta camada */
@media (prefers-reduced-motion: reduce) {
  .page-detail .detail-summary__cta .btn-wa,
  body:not(.is-home):not(.is-admin) .btn {
    transition: none !important;
  }

  .page-detail .detail-summary__cta .btn-wa:hover,
  body:not(.is-home):not(.is-admin) .btn:hover {
    transform: none !important;
  }
}
