:root {
  --black: #050505;
  --soft-black: #0e0e0e;
  --white: #ffffff;
  --off-white: #f8f5ef;
  --gold: #c99638;
  --gold-light: #f1c76a;
  --gold-dark: #9d6b20;
  --text: #181818;
  --muted: #686868;
  --border: rgba(201, 150, 56, .28);
  --shadow: 0 20px 50px rgba(0,0,0,.14);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: 'Inter', Arial, sans-serif;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,5,5,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}
.brand img { width: 150px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 46px;
  color: var(--white);
  font-weight: 500;
}
.nav-links a {
  position: relative;
  opacity: .92;
  padding: 12px 0;
  transition: color .2s ease, opacity .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold-light); opacity: 1; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 26px;
  height: 3px;
  border-radius: 99px;
  background: var(--gold-light);
}
.btn-whats, .btn-outline, .btn-dark, .btn-light {
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-whats {
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
  padding: 17px 28px;
  font-weight: 700;
}
.btn-whats:hover, .btn-outline:hover, .btn-light:hover, .btn-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(201, 150, 56, .18);
}
.menu-toggle { display: none; background: transparent; border: 0; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--gold-light); margin: 6px 0; }

.hero {
  background:
    radial-gradient(circle at 65% 35%, rgba(201,150,56,.18), transparent 35%),
    linear-gradient(90deg, var(--black) 0%, #050505 42%, #111 100%);
  min-height: 610px;
  color: var(--white);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  align-items: stretch;
  min-height: 610px;
}
.hero-copy {
  position: relative;
  z-index: 2;
  padding: 105px 0 130px;
}
.eyebrow, .gold-line {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: .84rem;
  letter-spacing: .08em;
  font-weight: 700;
}
.eyebrow::before, .gold-line::before {
  content: '';
  width: 36px;
  height: 2px;
  background: var(--gold);
}
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 5vw, 5.1rem);
  line-height: .98;
  margin: 24px 0 24px;
  max-width: 620px;
}
.hero h1 strong { color: var(--gold-light); font-style: normal; }
.hero p {
  max-width: 540px;
  color: rgba(255,255,255,.78);
  font-size: 1.08rem;
  line-height: 1.7;
  margin: 0 0 32px;
}
.btn-outline {
  border: 1px solid var(--gold-light);
  color: var(--gold-light);
  padding: 16px 24px;
  font-weight: 800;
  background: rgba(0,0,0,.08);
}
.btn-outline.small { padding: 14px 18px; }
.hero-photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0 -40px 0 -90px;
  background: linear-gradient(90deg, #050505 0%, rgba(5,5,5,.72) 16%, transparent 44%);
  z-index: 1;
}
.hero-photo img {
  width: 100%;
  height: 610px;
  object-fit: cover;
  filter: saturate(.96) contrast(1.04);
}
.search-section {
  margin-top: -60px;
  position: relative;
  z-index: 5;
}
.search-card {
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 14px;
  align-items: end;
  border: 1px solid rgba(201,150,56,.14);
}
.search-card label {
  display: grid;
  gap: 9px;
  color: #363636;
  font-weight: 800;
  font-size: .9rem;
}
.search-card select {
  width: 100%;
  border: 1px solid #e4ddd0;
  background: #fff;
  border-radius: 11px;
  padding: 14px 13px;
  outline: none;
  color: #333;
}
.btn-search {
  border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17110a;
  font-weight: 900;
  border-radius: 11px;
  padding: 15px 22px;
  min-height: 50px;
  cursor: pointer;
}
.status-bar { padding: 18px 0 0; }
.status-bar p {
  margin: 0;
  background: #fff7e6;
  border: 1px solid rgba(201,150,56,.35);
  color: #5b421f;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 700;
}
.properties {
  padding: 88px 0 56px;
  background: var(--white);
}
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}
.section-head h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 14px 0 10px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
  max-width: 620px;
  line-height: 1.6;
}
.btn-light {
  border: 1px solid var(--border);
  background: #fff;
  color: #181818;
  padding: 15px 20px;
  font-weight: 900;
  white-space: nowrap;
}
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.property-card {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 18px 44px rgba(0,0,0,.10);
  transition: transform .22s ease, box-shadow .22s ease;
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 58px rgba(0,0,0,.16);
}
.property-media {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: #111;
}
.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.condition-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17110a;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  z-index: 2;
}
.condition-badge.used {
  background: rgba(5,5,5,.84);
  color: var(--gold-light);
  border: 1px solid rgba(241,199,106,.40);
}
.gallery-count {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(5,5,5,.82);
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .78rem;
  font-weight: 800;
  z-index: 2;
}

.property-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(5,5,5,.84);
  color: var(--gold-light);
  border: 1px solid rgba(241,199,106,.35);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.property-body { padding: 20px; }
.property-body h3 {
  margin: 0 0 9px;
  font-size: 1.25rem;
}
.property-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;

  /* V18: no card público aparece só uma prévia de 2 linhas.
     A descrição completa continua aparecendo ao clicar no imóvel. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 2);
}
.info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 18px 0;
  color: #575757;
  font-size: .9rem;
}
.info-row span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.info-row b { color: var(--gold-dark); }
.price {
  color: var(--gold-dark);
  font-size: 1.18rem;
  font-weight: 900;
}
.interest {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  background: #080808;
  color: var(--gold-light);
  font-weight: 800;
  border: 1px solid rgba(201,150,56,.28);
}
.loading-card, .empty {
  grid-column: 1 / -1;
  border: 1px solid rgba(201,150,56,.28);
  padding: 28px;
  border-radius: 18px;
  background: #fffaf0;
  color: #4a3821;
  font-weight: 700;
}
.cta-strip { padding: 20px 0 74px; }
.cta-card {
  background:
    radial-gradient(circle at 20% 30%, rgba(201,150,56,.20), transparent 26%),
    #050505;
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}
.cta-icon {
  width: 58px;
  height: 58px;
  border: 1px solid var(--gold-light);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-light);
  font-size: 1.8rem;
}
.cta-card h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}
.cta-card p { margin: 0; color: rgba(255,255,255,.72); }
.map-section {
  padding: 74px 0;
  background: var(--off-white);
}
.map-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  align-items: center;
}
.map-copy h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 14px 0 14px;
}
.map-copy p { color: var(--muted); line-height: 1.65; }
.map-copy strong {
  display: block;
  margin: 18px 0;
}
.btn-dark {
  background: #050505;
  color: var(--gold-light);
  padding: 15px 18px;
  font-weight: 900;
}
.map-box {
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(201,150,56,.18);
}
.map-box iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.footer {
  background: #050505;
  color: white;
  padding: 48px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  gap: 38px;
  align-items: center;
  padding-bottom: 36px;
}
.footer-logo { width: 180px; }
.footer p {
  color: rgba(255,255,255,.72);
  line-height: 1.7;
  margin: 0;
}
.footer-contact {
  display: grid;
  gap: 12px;
  color: var(--gold-light);
  font-weight: 800;
}
.footer-contact span { color: #fff; opacity: .9; }
.copy {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  color: rgba(255,255,255,.5);
  padding: 18px;
  font-size: .88rem;
}
.admin-link {
  opacity: .35;
  margin-left: 12px;
  font-size: .78rem;
}
.admin-link:hover { opacity: .9; color: var(--gold-light); }

@media (max-width: 980px) {
  .nav { height: 82px; }
  .menu-toggle { display: block; }
  .top-whats { display: none; }
  .nav-links {
    position: absolute;
    top: 82px;
    left: 0;
    right: 0;
    background: #050505;
    display: none;
    padding: 20px;
    flex-direction: column;
    gap: 14px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 76px 0 26px; }
  .hero-photo { min-height: 360px; margin: 0 -20px; }
  .hero-photo::before {
    inset: -80px 0 0 0;
    background: linear-gradient(180deg, #050505 0%, rgba(5,5,5,.55) 34%, transparent 100%);
  }
  .hero-photo img { height: 430px; }
  .search-card { grid-template-columns: repeat(2, 1fr); }
  .btn-search { grid-column: 1 / -1; }
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head, .cta-card, .map-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand img { width: 132px; }
  .hero { min-height: auto; }
  .hero h1 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .search-section { margin-top: -20px; }
  .search-card { grid-template-columns: 1fr; padding: 16px; }
  .properties { padding-top: 56px; }
  .property-grid { grid-template-columns: 1fr; }
  .property-media { height: 220px; }
  .info-row { grid-template-columns: repeat(2, 1fr); }
  .cta-card { padding: 24px; }
  .map-box { height: 320px; }
}


.clickable-media {
  cursor: pointer;
}
.clickable-media::after {
  content: 'Ver fotos';
  position: absolute;
  right: 14px;
  top: 14px;
  background: rgba(5,5,5,.82);
  color: #fff;
  border: 1px solid rgba(241,199,106,.35);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: .2s ease;
  z-index: 3;
}
.clickable-media:hover::after {
  opacity: 1;
  transform: translateY(0);
}
.clickable-media:hover img {
  transform: scale(1.045);
}
.property-media img {
  transition: transform .25s ease;
}

.gallery-modal {
  width: min(1100px, calc(100% - 28px));
  border: 0;
  padding: 0;
  border-radius: 26px;
  background: transparent;
}
.gallery-modal::backdrop {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
}
.gallery-shell {
  position: relative;
  background: #050505;
  color: #fff;
  border: 1px solid rgba(241,199,106,.30);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 5;
}
.gallery-main {
  position: relative;
  height: min(68vh, 680px);
  background: #000;
  display: grid;
  place-items: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 62px;
  border: 1px solid rgba(241,199,106,.28);
  background: rgba(0,0,0,.58);
  color: var(--gold-light);
  font-size: 2.4rem;
  z-index: 4;
  border-radius: 999px;
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-info {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.gallery-info span {
  color: var(--gold-light);
  font-weight: 900;
  font-size: .86rem;
}
.gallery-info h3 {
  margin: 6px 0 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
}
.gallery-info p {
  margin: 0;
  color: rgba(255,255,255,.65);
}
.gallery-whatsapp {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17110a;
  font-weight: 900;
  padding: 14px 18px;
  border-radius: 12px;
  white-space: nowrap;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 0 24px 22px;
  overflow-x: auto;
}
.gallery-thumbs button {
  flex: 0 0 86px;
  height: 66px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  opacity: .62;
}
.gallery-thumbs button.active {
  border-color: var(--gold-light);
  opacity: 1;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 640px) {
  .clickable-media::after {
    opacity: 1;
    transform: none;
    top: 12px;
    right: 12px;
  }
  .condition-badge {
    top: 52px;
  }
  .gallery-main {
    height: 52vh;
  }
  .gallery-info {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-whatsapp {
    width: 100%;
    justify-content: center;
    display: inline-flex;
  }
  .gallery-nav {
    width: 40px;
    height: 52px;
    font-size: 2rem;
  }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-thumbs {
    padding: 0 16px 18px;
  }
}

.property-code {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6eddd;
  color: #805611;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}


/* V4 - ajustes profissionais de responsividade, WhatsApp real, ícones claros, LGPD e galeria */
.whatsapp-icon {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex: 0 0 auto;
}

.section-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn-back {
  background: #050505;
  color: var(--gold-light);
}
.btn-light[hidden],
.btn-back[hidden],
.cta-card button[hidden] {
  display: none !important;
}

.hero-photo {
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(201,150,56,.14), rgba(0,0,0,.16)),
    #111;
  border-left: 1px solid rgba(241,199,106,.08);
}
.hero-photo img {
  object-position: center;
}
.hero-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(5,5,5,.42));
  z-index: 1;
  pointer-events: none;
}

.property-code {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6eddd;
  color: #805611;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.info-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.info-row span {
  border: 1px solid rgba(201,150,56,.18);
  background: #fffaf0;
  border-radius: 12px;
  padding: 10px 8px;
  display: grid;
  place-items: center;
  gap: 4px;
  text-align: center;
  min-width: 0;
}
.info-row svg {
  width: 21px;
  height: 21px;
  fill: var(--gold-dark);
}
.info-row strong {
  font-size: .98rem;
  color: #151515;
  line-height: 1;
}
.info-row small {
  font-size: .72rem;
  color: var(--muted);
  font-weight: 800;
  text-transform: lowercase;
  line-height: 1.1;
}
.interest .whatsapp-icon,
.gallery-whatsapp .whatsapp-icon,
.footer-contact .whatsapp-icon,
.btn-whats .whatsapp-icon,
.btn-outline .whatsapp-icon {
  width: 1.18em;
  height: 1.18em;
}

.clickable-media {
  cursor: pointer;
}
.clickable-media::after {
  content: 'Ver fotos';
  position: absolute;
  right: 14px;
  top: 14px;
  background: rgba(5,5,5,.82);
  color: #fff;
  border: 1px solid rgba(241,199,106,.35);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 900;
  opacity: 0;
  transform: translateY(-4px);
  transition: .2s ease;
  z-index: 3;
}
.clickable-media:hover::after,
.clickable-media:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}
.clickable-media:hover img,
.clickable-media:focus-visible img {
  transform: scale(1.045);
}
.property-media img {
  transition: transform .25s ease;
}

.gallery-modal {
  width: min(1100px, calc(100% - 28px));
  border: 0;
  padding: 0;
  border-radius: 26px;
  background: transparent;
}
.gallery-modal::backdrop {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(5px);
}
.gallery-shell {
  position: relative;
  background: #050505;
  color: #fff;
  border: 1px solid rgba(241,199,106,.30);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}
.gallery-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  z-index: 5;
}
.gallery-main {
  position: relative;
  height: min(68vh, 680px);
  background: #000;
  display: grid;
  place-items: center;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 62px;
  border: 1px solid rgba(241,199,106,.28);
  background: rgba(0,0,0,.58);
  color: var(--gold-light);
  font-size: 2.4rem;
  z-index: 4;
  border-radius: 999px;
}
.gallery-prev { left: 16px; }
.gallery-next { right: 16px; }
.gallery-info {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.gallery-info span {
  color: var(--gold-light);
  font-weight: 900;
  font-size: .86rem;
}
.gallery-info h3 {
  margin: 6px 0 4px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
}
.gallery-info p {
  margin: 0;
  color: rgba(255,255,255,.65);
}
.gallery-description {
  max-width: 720px;
  line-height: 1.55;
  margin-top: 8px !important;
}
.gallery-whatsapp {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17110a;
  font-weight: 900;
  padding: 14px 18px;
  border-radius: 12px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.gallery-thumbs {
  display: flex;
  gap: 10px;
  padding: 0 24px 22px;
  overflow-x: auto;
}
.gallery-thumbs button {
  flex: 0 0 86px;
  height: 66px;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  background: transparent;
  opacity: .62;
}
.gallery-thumbs button.active {
  border-color: var(--gold-light);
  opacity: 1;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cookie-banner {
  position: fixed;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  width: min(980px, calc(100% - 44px));
  margin: 0 auto;
  background: rgba(5,5,5,.96);
  color: #fff;
  border: 1px solid rgba(241,199,106,.26);
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner[hidden] {
  display: none !important;
}
.cookie-banner p {
  margin: 5px 0 0;
  color: rgba(255,255,255,.72);
  line-height: 1.45;
  font-size: .9rem;
}
.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.cookie-actions a {
  color: var(--gold-light);
  font-weight: 800;
}
.cookie-actions button {
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #17110a;
  font-weight: 900;
}

@media (max-width: 980px) {
  .section-actions {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .hero-photo {
    min-height: 360px;
  }
  .hero-photo img {
    width: 100%;
    height: 390px;
    object-position: center top;
  }
  .info-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .clickable-media::after {
    opacity: 1;
    transform: none;
    top: 12px;
    right: 12px;
  }
  .condition-badge {
    top: 52px;
  }
  .gallery-main {
    height: 52vh;
  }
  .gallery-info {
    align-items: flex-start;
    flex-direction: column;
  }
  .gallery-whatsapp {
    width: 100%;
    justify-content: center;
  }
  .gallery-nav {
    width: 40px;
    height: 52px;
    font-size: 2rem;
  }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-thumbs {
    padding: 0 16px 18px;
  }
  .cookie-banner {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-actions {
    width: 100%;
    justify-content: space-between;
  }
  .cookie-actions button {
    flex: 1;
  }
}


/* V5 - Tela de detalhe do imóvel inspirada no modelo de referência */
.property-detail-modal {
  width: min(1240px, calc(100% - 24px));
  max-height: 94vh;
  border: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
}
.property-detail-modal::backdrop {
  background: rgba(0,0,0,.80);
  backdrop-filter: blur(5px);
}
.detail-shell {
  position: relative;
  background: #f4f7fb;
  color: #111;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 34px 90px rgba(0,0,0,.42);
  max-height: 94vh;
  overflow-y: auto;
}
.detail-close {
  position: sticky;
  top: 14px;
  margin-left: auto;
  right: 16px;
  transform: translateY(12px);
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%;
  background: rgba(0,0,0,.70);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 20;
}
.detail-gallery {
  background: #111;
  padding: 0;
}
.detail-main-photo {
  position: relative;
  min-height: 440px;
  height: min(58vh, 610px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050505;
}
.detail-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-main-photo::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.48));
  pointer-events: none;
}
.detail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 62px;
  border: 1px solid rgba(241,199,106,.36);
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  color: var(--gold-light);
  font-size: 2.3rem;
}
.detail-prev { left: 18px; }
.detail-next { right: 18px; }
.view-all-photos {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 6;
  border: 0;
  background: rgba(0,0,0,.80);
  color: #fff;
  font-weight: 900;
  border-radius: 10px;
  padding: 12px 15px;
}
.detail-thumbs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
  background: #1a1a1a;
}
.detail-thumbs button {
  flex: 0 0 110px;
  height: 72px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  opacity: .62;
}
.detail-thumbs button.active {
  opacity: 1;
  border-color: var(--gold-light);
}
.detail-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 26px;
}
.detail-main {
  background: #fff;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  padding: 28px;
}
.detail-breadcrumb {
  color: #64748b;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.detail-code {
  display: inline-flex;
  background: #eef2f7;
  color: #27364a;
  border: 1px solid #dde6f2;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.detail-main h2 {
  margin: 14px 0 8px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 900;
  color: #111827;
}
.detail-subtitle {
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
  margin: 0 0 12px;
}
.detail-description {
  color: #5f6f82;
  line-height: 1.7;
  margin: 0 0 18px;
}
.detail-share {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 16px 0 20px;
}
.detail-share a,
.detail-share button {
  border: 0;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 900;
  background: #1f3b77;
  color: #fff;
}
.detail-share a:nth-child(1) { background: #1fa463; }
.detail-share a:nth-child(2) { background: #2563eb; }
.detail-share button { background: #111827; }
.detail-price-row {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: center;
  margin: 20px 0 22px;
}
.detail-price-cta {
  background: #162a6a;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 900;
  padding: 18px 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%);
  min-height: 72px;
}
.detail-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 0;
  border-left: 1px solid #d8e0ea;
}
.detail-feature {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 7px;
  padding: 14px 12px;
  border-right: 1px solid #d8e0ea;
}
.detail-feature svg {
  width: 24px;
  height: 24px;
  fill: #111827;
}
.detail-feature strong {
  font-size: 1.08rem;
  color: #111827;
}
.detail-feature span {
  color: #475569;
  font-weight: 800;
  font-size: .82rem;
}
.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.detail-info-grid div {
  border: 1px solid #dbe5f1;
  background: #f8fafc;
  border-radius: 10px;
  padding: 13px;
}
.detail-info-grid span {
  display: block;
  color: #64748b;
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.detail-info-grid strong {
  color: #111827;
  font-size: .98rem;
}
.lead-card {
  align-self: start;
  background: #cf8d20;
  border-radius: 14px;
  padding: 22px;
  color: #1f1608;
  position: sticky;
  top: 14px;
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}
.lead-card h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 1.18rem;
  font-weight: 900;
}
.lead-card p {
  margin: 0 0 16px;
  font-weight: 700;
  color: rgba(31,22,8,.76);
}
.lead-card form {
  display: grid;
  gap: 10px;
}
.lead-card input,
.lead-card textarea {
  width: 100%;
  border: 1px solid rgba(0,0,0,.16);
  border-radius: 6px;
  padding: 12px;
  font: inherit;
  background: #fff;
  outline: none;
}
.lead-card textarea {
  resize: vertical;
}
.lead-lgpd {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: .82rem;
  line-height: 1.35;
  font-weight: 700;
}
.lead-lgpd input {
  width: auto;
  margin-top: 2px;
}
.lead-card button[type="submit"] {
  border: 0;
  background: #cf3b2c;
  color: #fff;
  padding: 13px 14px;
  border-radius: 7px;
  font-weight: 900;
  text-transform: uppercase;
}
@media (max-width: 1020px) {
  .detail-content {
    grid-template-columns: 1fr;
  }
  .lead-card {
    position: relative;
    top: auto;
  }
  .detail-price-row {
    grid-template-columns: 1fr;
  }
  .detail-price-cta {
    clip-path: none;
    border-radius: 12px;
  }
}
@media (max-width: 680px) {
  .property-detail-modal {
    width: 100%;
    max-height: 100vh;
  }
  .property-detail-modal::backdrop {
    background: #000;
  }
  .detail-shell {
    border-radius: 0;
    max-height: 100vh;
  }
  .detail-main-photo {
    min-height: 300px;
    height: 42vh;
  }
  .detail-content {
    padding: 14px;
  }
  .detail-main {
    padding: 18px;
  }
  .detail-main h2 {
    font-size: 2rem;
  }
  .detail-features,
  .detail-info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .detail-thumbs button {
    flex-basis: 82px;
    height: 58px;
  }
  .detail-nav {
    width: 40px;
    height: 52px;
    font-size: 2rem;
  }
  .detail-prev { left: 8px; }
  .detail-next { right: 8px; }
  .view-all-photos {
    right: 10px;
    bottom: 10px;
  }
}


/* V11 - Galeria premium: foto principal maior e miniaturas discretas */
.property-detail-modal {
  width: min(1280px, calc(100% - 18px));
}

.detail-shell {
  background: #f4f7fb;
}

.detail-gallery {
  position: relative;
  background: #050505;
}

.detail-main-photo {
  min-height: 520px;
  height: min(74vh, 780px);
  background: #050505;
}

.detail-main-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050505;
}

.detail-main-photo::after {
  height: 22%;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.38));
}

.detail-thumbs {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(92%, 960px);
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  overflow-x: auto;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  z-index: 8;
  scrollbar-width: thin;
}

.detail-thumbs button {
  flex: 0 0 76px;
  height: 50px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: #111;
  opacity: .34;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.detail-thumbs button:hover {
  opacity: .78;
  transform: translateY(-2px);
}

.detail-thumbs button.active {
  opacity: 1;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 2px rgba(241,199,106,.18);
}

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

.view-all-photos {
  right: 22px;
  bottom: 96px;
  background: rgba(5,5,5,.58);
  border: 1px solid rgba(241,199,106,.32);
  color: #fff;
  backdrop-filter: blur(8px);
}

.detail-nav {
  background: rgba(5,5,5,.42);
  border-color: rgba(241,199,106,.32);
  backdrop-filter: blur(8px);
}

.detail-close {
  position: fixed;
  top: 22px;
  right: 26px;
  margin-left: 0;
  transform: none;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(8px);
}

@media (max-width: 820px) {
  .property-detail-modal {
    width: 100%;
    max-height: 100vh;
  }

  .detail-main-photo {
    min-height: 390px;
    height: 58vh;
  }

  .detail-thumbs {
    width: calc(100% - 22px);
    bottom: 10px;
    padding: 8px;
    border-radius: 14px;
  }

  .detail-thumbs button {
    flex-basis: 62px;
    height: 44px;
    opacity: .42;
  }

  .view-all-photos {
    bottom: 78px;
    right: 12px;
    padding: 10px 12px;
  }

  .detail-close {
    top: 12px;
    right: 12px;
  }
}

@media (max-width: 480px) {
  .detail-main-photo {
    min-height: 330px;
    height: 52vh;
  }

  .detail-thumbs button {
    flex-basis: 56px;
    height: 40px;
  }

  .detail-content {
    padding-top: 12px;
  }
}
