/* =========================================================
   RESET & BASE
========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:   #ffffff;
  --cream:   #f9f6f1;
  --sand:    #e8dfd2;
  --gold:    #b8924a;
  --gold-lt: #d4aa6a;
  --dark:    #1a1714;
  --mid:     #5a524a;
  --light:   #8a7f74;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { text-decoration: none; color: inherit; }

/* =========================================================
   UTILITY
========================================================= */
.section-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1.5px solid var(--gold);
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}
.btn:hover {
  background: var(--gold);
  color: var(--white);
}
.btn-solid {
  background: var(--gold);
  color: var(--white);
}
.btn-solid:hover {
  background: transparent;
  color: var(--gold);
}

.btn-hero-cta {
  padding: 1rem 2.5rem;
  font-size: 0.85rem;
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.btn-hero-cta:hover {
  background: var(--white);
  color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

/* =========================================================
   NAVBAR
========================================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 5vw;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  box-shadow: 0 1px 0 var(--sand);
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-main {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.02em;
}
.nav-logo-sub {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--gold); }

.nav-cta {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.65rem 1.4rem;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  transition: var(--transition);
}
.nav-cta:hover {
  background: var(--dark);
  color: var(--white);
}

/* =========================================================
   HERO
========================================================= */
#hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center; /* centraliza melhor o texto */
  padding: 0 5vw;
  overflow: hidden;
}

/* IMAGEM + OVERLAY GLOBAL */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.65) 50%,
      rgba(0,0,0,0.75) 100%
    ),
    linear-gradient(135deg, #d4c4a8 0%, #b8a47e 40%, #8a7a5a 100%);
  background-size: cover;
  background-position: center;
}

/* FAIXA ESCURA SÓ ATRÁS DO TEXTO (SOLUÇÃO REAL) */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0.5) 0%,
    rgba(0,0,0,0.65) 60%,
    rgba(0,0,0,0.0) 100%
  );

  padding: 3rem 3.5rem;
  border-radius: 6px;
}

/* LABEL */
.hero-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-lt);
  margin-bottom: 1.2rem;
}

/* TÍTULO */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 400;
  line-height: 1.08;
  color: #ffffff;
  margin-bottom: 1.6rem;
}

.hero-title em {
  font-style: italic;
  color: var(--gold-lt);
}

/* DESCRIÇÃO */
.hero-desc {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.8;
  color: #ffffff;
  max-width: 520px;
  margin-bottom: 2.4rem;
}

/* BOTÕES */
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* SCROLL INDICATOR */
.hero-scroll {
  position: absolute;
  right: 5vw;
  bottom: 8vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero-scroll span {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* HERO STATS */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  background: rgba(255,255,255,0.95);
  border-top: 1px solid var(--sand);
}

.hero-stat {
  flex: 1;
  padding: 1.4rem 2rem;
  border-right: 1px solid var(--sand);
  text-align: center;
}

.hero-stat:last-child {
  border-right: none;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 4px;
}


/* =========================================================
   SEARCH BAR
========================================================= */
#search {
  background: var(--dark);
  padding: 3rem 5vw;
}

.search-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
}

.search-field {
  background: rgba(255,255,255,0.05);
  padding: 1.1rem 1.5rem;
  border: none;
  outline: none;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.82rem;
  transition: background var(--transition);
}
.search-field::placeholder { color: rgba(255,255,255,0.4); }
.search-field:focus { background: rgba(255,255,255,0.12); }

select.search-field { cursor: pointer; }
select.search-field option { background: var(--dark); color: var(--white); }

.search-btn {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 0 2rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
  white-space: nowrap;
}
.search-btn:hover { background: var(--gold-lt); }

/* =========================================================
   DESTAQUE (FEATURED) — GRID 3 COLUMNS
========================================================= */
#destaque {
  padding: 7rem 5vw;
  background: var(--white);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 3-column property grid */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.property-card {
  background: var(--white);
  border: 1px solid var(--sand);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.property-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}
.property-img img {
  transition: transform 0.6s ease;
}
.property-card:hover .property-img img {
  transform: scale(1.06);
}

/* placeholder bg for images */
.property-img .img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: rgba(255,255,255,0.6);
}

.prop-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: var(--gold);
  color: var(--white);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
}

.prop-fav {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
}
.prop-fav:hover { background: var(--gold); color: var(--white); }

.property-info {
  padding: 1.5rem;
}

.prop-price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.prop-price span {
  font-size: 0.75rem;
  font-weight: 300;
  font-family: var(--font-body);
  color: var(--light);
}

.prop-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.3rem;
}

.prop-location {
  font-size: 0.75rem;
  color: var(--light);
  margin-bottom: 1rem;
}

.prop-features {
  display: flex;
  gap: 1.2rem;
  font-size: 0.72rem;
  color: var(--mid);
  border-top: 1px solid var(--sand);
  padding-top: 1rem;
}
.prop-feat {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.prop-feat-icon { color: var(--gold); }

/* =========================================================
   BAIRROS / MAP SECTION — 4-cell grid
========================================================= */
#bairros {
  background: var(--cream);
  padding: 7rem 5vw;
}

.neighborhood-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}

.neighborhood-card {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}
.neighborhood-card:first-child {
  grid-column: span 2;
  aspect-ratio: auto;
}

.nbhd-bg {
  position: absolute; inset: 0;
  transition: transform 0.6s ease;
  background-size: cover;
  background-position: center;
}
.neighborhood-card:hover .nbhd-bg { transform: scale(1.07); }

/* placeholder gradients */
.nbhd-c1 .nbhd-bg { background: linear-gradient(145deg,#8a7a5a,#b8a47e); }
.nbhd-c2 .nbhd-bg { background: url('https://placehold.co/600x400?text=Riviera') center/cover; }
.nbhd-c3 .nbhd-bg { background: linear-gradient(145deg,#5a7a8a,#7aA0b4); }
.nbhd-c4 .nbhd-bg { background: url('https://placehold.co/600x400?text=Guaratuba') center/cover; }
.nbhd-c5 .nbhd-bg { background: url('https://placehold.co/600x400?text=Pontal') center/cover; }

.nbhd-overlay {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}

/* Ensure neighborhoods with carousels have clear visibility and readable text */
.nbhd-c2 .nbhd-overlay,
.nbhd-c4 .nbhd-overlay,
.nbhd-c5 .nbhd-overlay {
  background: linear-gradient(to top, rgba(26,23,20,0.45) 30%, transparent 80%);
}

/* Remove overlays for neighborhood cards with carousels (Caiobá and Centro) */
.nbhd-c1, .nbhd-c1 *,
.nbhd-c3, .nbhd-c3 * {
  background: none !important;
  box-shadow: none !important;
}

.nbhd-name, .nbhd-count {
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Specific text styling for carousel-based neighborhood cards */
.nbhd-c1 .nbhd-name,
.nbhd-c3 .nbhd-name {
  color: var(--dark) !important;
  text-shadow: none !important;
}

.nbhd-c1 .nbhd-count,
.nbhd-c3 .nbhd-count {
  color: var(--mid) !important;
  text-shadow: none !important;
}

.nbhd-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.3rem;
}
.nbhd-count {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-lt);
}

/* =========================================================
   COMO FUNCIONA
========================================================= */
#como {
  padding: 7rem 5vw;
  background: var(--white);
}

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

.step {
  position: relative;
  padding-left: 0;
}

.step-num {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  color: var(--sand);
  line-height: 1;
  margin-bottom: 1.2rem;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.7rem;
}

.step-desc {
  font-size: 0.82rem;
  line-height: 1.9;
  color: var(--light);
}

/* =========================================================
   GALERIA — Carrossel Infinito Otimizado
========================================================= */
#galeria {
  background: var(--cream);
  padding: 7rem 5vw;
}

.carousel-mini {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-top: 3.5rem;
}

/* Base styles for all carousel items to prevent collapse */
.carousel-item {
  height: 100%;
  flex: 0 0 400px; /* Default width for main gallery */
  position: relative;
  background: transparent; /* Fallback color */
}

.carousel-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
}

.nested-carousel {
  height: 100% !important;
  width: 100% !important;
  margin-top: 0 !important;
  position: absolute;
  inset: 0;
  container-type: inline-size;
}

.nested-carousel .carousel-item {
  height: 100% !important;
  flex: 0 0 100cqw !important;
  width: 100cqw !important;
  min-width: 100cqw !important;
}

.carousel-mini-track {
  display: flex;
  height: 100%;
  width: max-content;
  will-change: transform;
}

.carousel-mini:hover .carousel-mini-track {
  animation-play-state: paused;
}

/* Item destacado com texto */
.carousel-item.featured {
  flex: 0 0 600px;
  min-width: 600px;
  background: var(--dark);
}

.featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26,23,20,0.6) 35%, rgba(26,23,20,0.3) 100%);
  color: var(--white);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  overflow-y: auto;
}

.featured-content {
  max-width: 100%;
}

.featured-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold-lt);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.featured-subtitle {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: var(--sand);
}

.featured-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

.featured-content h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.5rem 0 0.8rem;
}

.featured-content ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

.featured-content li {
  font-size: 0.8rem;
  margin-bottom: 0.4rem;
  padding-left: 1.2rem;
  position: relative;
  color: rgba(255,255,255,0.7);
}

.featured-content li::before {
  content: "•";
  color: var(--gold);
  position: absolute;
  left: 0;
}

.featured-location {
  font-size: 0.75rem !important;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  margin-top: 1rem;
}

.featured-btn {
  margin-top: 1rem;
}

/* =========================================================
   LOCALIZAÇÃO / MAPA
========================================================= */
#map-section {
  padding: 0;
  background: var(--white);
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 24 24"><text y="24" font-size="24">🐎</text></svg>'), auto;
}

.map-container {
  line-height: 0;
}

@keyframes miniSlide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   DEPOIMENTOS
========================================================= */
#depoimentos {
  background: var(--dark);
  padding: 7rem 5vw;
  overflow: hidden;
}

#depoimentos .section-label { color: var(--gold-lt); }
#depoimentos .section-title { color: var(--white); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.testimonial {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 2.5rem;
  transition: var(--transition);
}
.testimonial:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(184,146,74,0.4);
}

.test-quote {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.8;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
}

.test-stars {
  color: var(--gold-lt);
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.test-author {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.08em;
}

/* =========================================================
   CONTATO / CTA
========================================================= */
#contato {
  padding: 7rem 5vw;
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-text .section-title { margin-bottom: 1.5rem; }
.contact-text p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--mid);
  margin-bottom: 2rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.4rem;
}
.contact-icon {
  width: 38px; height: 38px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
  font-size: 1rem;
}
.contact-detail {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--mid);
}
.contact-detail strong {
  display: block;
  font-weight: 500;
  color: var(--dark);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--cream);
  border: 1px solid var(--sand);
  border-radius: 0;
  padding: 0.9rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* =========================================================
   FOOTER
========================================================= */
footer {
  background: var(--dark);
  padding: 4rem 5vw 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo-main { color: var(--white); }
.footer-brand p {
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.4);
  margin-top: 1rem;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.social-btn {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li {
  margin-bottom: 0.7rem;
}
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-lt); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
}
.footer-bottom a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--gold-lt); }

/* =========================================================
   ANIMATIONS ON SCROLL
========================================================= */
.fade-up {
  transition: opacity 0.7s ease, transform 0.7s ease;
}
/* Only hide if JS is ready to handle it */
.js-enabled .fade-up:not(.visible) {
  opacity: 0;
  transform: translateY(30px);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 1024px) {
  .property-grid      { grid-template-columns: repeat(2, 1fr); }
  .neighborhood-grid  { grid-template-columns: repeat(2, 1fr); }
  .neighborhood-card:first-child { grid-column: span 2; }
  .steps-grid         { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-top         { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hero-stats { display: none; }
  .property-grid     { grid-template-columns: 1fr; }
  .neighborhood-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 5vw 1.5rem;
    margin: 0 -5vw;
    -webkit-overflow-scrolling: touch;
  }
  .neighborhood-grid::-webkit-scrollbar {
    display: none;
  }
  .neighborhood-card {
    flex: 0 0 85vw;
    scroll-snap-align: start;
    aspect-ratio: 16/10;
  }
  .neighborhood-card:first-child {
    grid-column: span 1;
  }
  .steps-grid        { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  #contato           { grid-template-columns: 1fr; gap: 3rem; }
  .contact-cta-wrapper { text-align: center; }
  .footer-top        { grid-template-columns: 1fr; }
  .form-row          { grid-template-columns: 1fr; }
  .search-wrap       { grid-template-columns: 1fr; }
  .masonry-grid      { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .m1,.m2,.m3,.m4,.m5,.m6,.m7,.m8 {
    grid-column: auto; grid-row: auto;
  }

  /* Responsividade do Carrossel */
  .carousel-mini {
    height: 450px;
  }
  .carousel-item.featured {
    min-width: 85vw;
  }
  .featured-overlay {
    padding: 1.5rem;
  }
  .featured-title {
    font-size: 1.4rem;
  }
  .featured-subtitle {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .featured-content p,
  .featured-content li {
    font-size: 0.75rem;
  }
}

/* ===================== WHATSAPP FLOAT ===================== */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  color: #FFF;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 25px;
  }
}

/* ===================== SUBPAGE HEROS ===================== */
.venda-hero {
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('fotos/hero1.jpg');
}

.locacao-hero {
  background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('fotos/hero2.jpg');
}

.subpage-hero {
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 0 20px;
}

/* ===================== PROPERTY LISTING ===================== */
.property-listing-section {
  padding: 80px 0;
}

.alt-bg {
  background-color: var(--cream);
}

.listing-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 0 20px;
}

.listing-container.reverse {
  direction: rtl;
}

.listing-container.reverse > * {
  direction: ltr;
}

.listing-gallery {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.listing-details h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.listing-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 5px 15px;
  font-size: 0.8rem;
  letter-spacing: 2px;
  margin-bottom: 15px;
  border-radius: 4px;
}

.amenities-list {
  list-style: none;
  margin: 25px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.amenities-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #666;
}

.amenities-list i {
  color: var(--gold);
}

.listing-cta {
  display: inline-block;
  padding: 15px 35px;
  margin-top: 10px;
}

@media (max-width: 992px) {
  .listing-container, .listing-container.reverse {
    grid-template-columns: 1fr;
    gap: 40px;
    direction: ltr;
  }
}
