
:root {
  --primary-color: #BFA37E;
  --primary-hover: #A8935E;
  --primary-light: #F5EFE5;
  --accent-gold: #BFA37E;
  --dark-bg: #1A1A1A;
  --darker-bg: #000000;
  --offwhite: #F8F7F2;
  --text-dark: #1A1A1A;
  --text-light: #f5f5f5;
  --text-gray: #666666;
  --font-main: 'Montserrat', sans-serif;
  --font-serif: 'Playfair Display', serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: #fff;
  line-height: 1.8;
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Header & Nav ─────────────────────────────────────────────── */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  padding: 16px 0;
  z-index: 1000;
  transition: padding 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 2px 24px rgba(0,0,0,0.09);
  border-bottom-color: transparent;
}

/* Transparent header over hero */
body.hero-page header {
  background-color: transparent;
  border-bottom-color: transparent;
}

body.hero-page header .logo,
body.hero-page header .nav-links a,
body.hero-page header .hamburger div { color: #fff; }

body.hero-page header .hamburger div { background-color: #fff; }

body.hero-page header .nav-phone { color: rgba(255,255,255,0.7); border-left-color: rgba(255,255,255,0.2); }

body.hero-page header.scrolled {
  background-color: #fff;
}

body.hero-page header.scrolled .logo,
body.hero-page header.scrolled .nav-links a { color: var(--text-dark); }

body.hero-page header.scrolled .hamburger div { background-color: var(--text-dark); }

body.hero-page header.scrolled .nav-phone { color: var(--text-gray); border-left-color: #ddd; }

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
}

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

.nav-links a {
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--primary-color); }

.logo {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 2px;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 46px;
  object-fit: contain;
  display: block;
}

.nav-phone {
  color: var(--text-gray);
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding-left: 20px;
  border-left: 1px solid #ddd;
}

.nav-phone:hover { color: var(--primary-color); }

/* Hamburger */
.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.hamburger div {
  width: 25px; height: 2px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
}

.hamburger.active div { background-color: #fff; }

/* ── Hero Section ─────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.52);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 400;
  margin-bottom: 40px;
  line-height: 1.2;
}

/* Hero action buttons */
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-hero-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 18px 48px;
  font-family: var(--font-main);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  transition: all 0.3s ease;
  min-width: 160px;
}

.btn-hero-action:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
  transform: translateY(-3px);
}

/* Generic buttons */
.btn-gold {
  display: inline-block;
  background-color: var(--accent-gold);
  color: #fff;
  padding: 15px 35px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--accent-gold);
  transition: all 0.3s ease;
}

.btn-gold:hover { background-color: transparent; color: var(--accent-gold); }

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: var(--primary-color);
  padding: 15px 35px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--primary-color);
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn-outline:hover { background-color: var(--primary-color); color: #fff; }

/* Lead forms */
.lead-form .form-group { margin-bottom: 12px; }
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--primary-color); }
.form-input::placeholder { color: #bbb; }
textarea.form-input { resize: vertical; min-height: 80px; }

.btn-dark {
  display: inline-block;
  background-color: transparent;
  color: var(--dark-bg);
  padding: 15px 35px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  border: 1px solid var(--dark-bg);
  transition: all 0.3s ease;
}

.btn-dark:hover { background-color: var(--dark-bg); color: #fff; }

/* Editorial text link with arrow */
.btn-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.35);
  padding-bottom: 4px;
  transition: gap 0.3s ease, border-color 0.2s, opacity 0.2s;
  background: none;
  text-decoration: none;
}

.btn-link-arrow::after {
  content: '→';
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0;
  transition: transform 0.3s ease;
}

.btn-link-arrow:hover {
  gap: 18px;
  border-color: var(--text-dark);
}

.btn-link-arrow:hover::after { transform: translateX(4px); }

.btn-link-arrow.light {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.45);
}

.btn-link-arrow.light:hover { border-bottom-color: #fff; }

/* ── Metrics Bar ──────────────────────────────────────────────── */
.metrics-bar {
  background: var(--dark-bg);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.metric-item {
  text-align: center;
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.08);
}

.metric-item:last-child { border-right: none; }

.metric-value {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--primary-color);
  font-weight: 700;
  display: block;
  line-height: 1;
}

.metric-label {
  font-size: 0.72rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
  display: block;
}

/* ── Sections ─────────────────────────────────────────────────── */
.section { padding: 90px 0; }

.section-label {
  display: block;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #999;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 16px;
  color: var(--dark-bg);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.section-subtitle {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: var(--text-gray);
  font-size: 1.05rem;
}

/* Dynamic home section (text type) */
.home-text-section {
  padding: 80px 0;
  background: var(--dark-bg);
  color: #fff;
  text-align: center;
}

.home-text-section h2 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.home-text-section .subtitle {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.home-text-section p {
  max-width: 680px;
  margin: 0 auto;
  color: #aaa;
  font-size: 1rem;
  line-height: 1.8;
}

/* ── Property Cards ───────────────────────────────────────────── */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
  align-items: stretch;
}

/* Uniform height */
.property-card {
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0,0,0,0.06);
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.09);
  border-color: rgba(0,0,0,0.0);
}

.property-img-wrap {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.property-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.property-card:hover .property-img { transform: scale(1.04); }

/* Status Badges */
.status-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 11px;
  border-radius: 3px;
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.status-available  { background: #0d6e2f; color: #fff; }
.status-sold       { background: #444; color: #fff; }
.status-reforma    { background: #c45000; color: #fff; }
.status-suspenso   { background: #999; color: #fff; }

/* Hover Overlay — subtle editorial */
.card-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: 3;
  pointer-events: none;
}

.card-hover-overlay span { display: none; }

.property-card:hover .card-hover-overlay { opacity: 1; }

/* Gold accent line on card hover */
.property-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 4;
}

.property-card:hover .property-img-wrap::after { transform: scaleX(1); }

/* Info section with uniform height */
.property-info {
  padding: 22px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-location-label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #bbb;
  margin-bottom: 6px;
  flex-shrink: 0;
}

.property-price {
  color: var(--accent-gold);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.property-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
  flex-shrink: 0;
}

.property-desc {
  color: var(--text-gray);
  font-size: 0.87rem;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-meta {
  display: flex;
  gap: 14px;
  color: var(--text-gray);
  font-size: 0.83rem;
  border-top: 1px solid #f0f0f0;
  padding-top: 14px;
  margin-top: auto;
  flex-shrink: 0;
}

.property-view-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-dark);
  border-bottom: 1px solid rgba(0,0,0,0.3);
  padding-bottom: 3px;
  transition: gap 0.3s ease, border-color 0.2s;
  flex-shrink: 0;
}

.property-view-btn::after {
  content: '→';
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0;
  transition: transform 0.3s ease;
}

.property-view-btn:hover {
  gap: 14px;
  border-color: var(--text-dark);
}

.property-view-btn:hover::after { transform: translateX(3px); }

/* ── List View ────────────────────────────────────────────────── */
.properties-grid.list-view {
  grid-template-columns: 1fr;
  gap: 16px;
}

.properties-grid.list-view .property-card {
  flex-direction: row;
  height: 220px;
}

.properties-grid.list-view .property-img-wrap {
  width: 300px;
  min-width: 300px;
  flex-shrink: 0;
}

.properties-grid.list-view .property-img {
  height: 100%;
  width: 100%;
}

.properties-grid.list-view .property-info {
  padding: 18px 22px;
  overflow: hidden;
  min-width: 0;
  justify-content: center;
}

.properties-grid.list-view .property-desc {
  -webkit-line-clamp: 1;
}

.properties-grid.list-view .property-view-btn {
  display: none;
}

.properties-grid.list-view .property-meta {
  margin-top: 10px;
}

/* ── View Toggle ──────────────────────────────────────────────── */
.view-toggle {
  display: flex;
  gap: 6px;
  align-items: center;
}

.view-btn {
  width: 36px; height: 36px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #aaa;
}

.view-btn:hover, .view-btn.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: #f0f9ff;
}

.view-btn svg { width: 18px; height: 18px; }

/* ── Imoveis Layout ───────────────────────────────────────────── */
.imoveis-layout-wrap { padding: 40px 0 0; }

.imoveis-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

/* ── Filter Sidebar (desktop) ─────────────────────────────────── */
.filter-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 22px 20px 24px;
  border: 1px solid #f0f0f0;
}

.fsb-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0f0f0;
}

.fsb-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #555;
}

.fsb-clear-link {
  font-size: 0.78rem;
  color: #aaa;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}
.fsb-clear-link:hover { color: #555; }

.fsb-group { margin-bottom: 14px; }

.fsb-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.fsb-input {
  width: 100%;
  min-width: 0;
  flex: none;
  border-radius: 4px;
}

.fsb-submit {
  width: 100%;
  padding: 11px;
  margin-top: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
}
.fsb-toggle-group {
  display: flex;
  gap: 6px;
}
.fsb-toggle-btn {
  flex: 1;
  padding: 8px 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid #ddd;
  background: #fff;
  color: #555;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.fsb-toggle-btn.active,
.fsb-toggle-btn:hover {
  border-color: var(--primary-color, #00aeef);
  background: var(--primary-color, #00aeef);
  color: #fff;
}

/* ── Imoveis Main ─────────────────────────────────────────────── */
.imoveis-main { flex: 1; min-width: 0; }

/* ── Mobile Filter Bar ────────────────────────────────────────── */
.filter-mob-bar {
  display: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  padding: 10px 0;
  position: sticky;
  top: 58px;
  z-index: 99;
  border-bottom: 1px solid #eee;
}

.filter-mob-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-search {
  flex: 2;
  min-width: 200px;
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 0.83rem;
  background: #fafafa;
  color: var(--text-dark);
  transition: border-color 0.2s;
}

.filter-select, .filter-input {
  flex: 1;
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 0.83rem;
  background: #fafafa;
  color: var(--text-dark);
  cursor: pointer;
  transition: border-color 0.2s;
}

.filter-search:focus,
.filter-select:focus,
.filter-input:focus { outline: none; border-color: var(--primary-color); }

.filter-btn-search {
  padding: 10px 22px;
  background: var(--primary-color);
  border: none;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
}

.filter-btn-search:hover { background: var(--primary-hover); }

.filter-btn-clear {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid #ddd;
  font-family: var(--font-main);
  font-size: 0.82rem;
  color: #888;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-btn-clear:hover { border-color: #bbb; color: #555; }

.filter-bar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #f0f0f0;
}

.filter-count {
  font-size: 0.82rem;
  color: #aaa;
}

/* ── CTA Banner ───────────────────────────────────────────────── */
.cta-banner {
  background-color: var(--dark-bg);
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

.cta-banner h2 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.cta-banner p {
  color: #ccc;
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 30px;
}

/* ── Press Section ────────────────────────────────────────────── */
.press-section {
  padding: 50px 0;
  background: var(--offwhite);
  border-top: 1px solid #e8e8e2;
}

.press-section h2 {
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #bbb;
  margin-bottom: 28px;
}

.press-list {
  display: flex;
  gap: 48px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.press-item {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: #ccc;
  font-style: italic;
  transition: color 0.3s;
  cursor: default;
}

.press-item:hover { color: var(--text-dark); }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  background-color: var(--offwhite);
  color: var(--text-dark);
  padding: 70px 0 0 0;
  border-top: 1px solid #e4e3de;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h4 {
  font-family: var(--font-serif);
  font-size: 1rem;
  margin-bottom: 18px;
  color: var(--primary-color);
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: var(--text-gray);
  font-size: 0.87rem;
}

.footer-col ul li a:hover { color: var(--primary-color); }

.footer-col ul li span {
  color: var(--text-gray);
  font-size: 0.87rem;
}

.footer-brand-col .footer-desc {
  color: #888;
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.footer-social a {
  width: 34px; height: 34px;
  background: rgba(0,0,0,0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.3s, color 0.3s;
}

.footer-social a:hover { background: var(--primary-color); color: #fff; }

.footer-bottom {
  text-align: center;
  border-top: 1px solid #e0dfd9;
  padding: 22px 0;
  font-size: 0.78rem;
  color: #aaa;
}

/* ── WhatsApp Float ───────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.42);
  z-index: 9998;
  transition: transform 0.3s, box-shadow 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}

.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── Scroll Reveal ────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ── Page Header (internal pages) ────────────────────────────── */
.page-header {
  height: 40vh;
  min-height: 300px;
  background-color: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 50px;
  margin-top: 58px;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  color: #fff;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 900px;
  line-height: 1.15;
}

/* Dark-hero page titles (bairros, blog, equipe, midia, condominios) */
.page-hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 5vw, 2.2rem);
  color: #fff;
  margin-bottom: 12px;
  text-align: center;
  line-height: 1.2;
  padding: 0 16px;
}

/* Large variant — bairro/condominio individual hero */
.page-hero-title-lg {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.1;
  text-align: center;
  padding: 0 16px;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 100vw; height: 100vh;
    background-color: var(--dark-bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s ease;
    gap: 32px;
  }

  .nav-links.active { right: 0; }
  .nav-links a { color: #fff; font-size: 1rem; }
  .hamburger { display: flex; }
  .nav-phone { display: none; }

  .hero-content h1 { font-size: 2.4rem; }
  .btn-hero-action { padding: 16px 32px; min-width: 130px; font-size: 0.76rem; }

  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .metric-value { font-size: 1.6rem; }

  .properties-grid.list-view .property-img-wrap { width: 200px; min-width: 200px; }
}

@media (max-width: 768px) {
  .filter-mob-bar { display: block; }
  .filter-sidebar { display: none; }
  .imoveis-layout-wrap { padding: 0; }
  .imoveis-layout { display: block; }
  .imoveis-main { padding-top: 16px; }
  .page-header h1 { font-size: 2.4rem; }
}

@media (max-width: 640px) {
  .nav-logo-img { height: 32px; }

  .hero-actions { gap: 10px; }
  .btn-hero-action { padding: 14px 22px; min-width: 110px; font-size: 0.72rem; letter-spacing: 1.5px; }

  .metrics-grid { grid-template-columns: 1fr; }
  .metric-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .metric-item:last-child { border-bottom: none; }

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

  .view-toggle { display: none; }
  .filter-bar-bottom { margin-top: 8px; padding-top: 8px; }

  .properties-grid { grid-template-columns: 1fr; }
  .property-img { height: 200px; }

  .properties-grid.list-view .property-card { flex-direction: column; }
  .properties-grid.list-view .property-img-wrap { width: 100%; min-width: 0; }
  .properties-grid.list-view .property-img { height: 200px; }
}

/* ── Pagination ───────────────────────────────────────────────── */
.pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; padding: 40px 0 60px; flex-wrap: wrap;
}
.page-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid #e0e0e0; border-radius: 6px;
  color: var(--text-dark); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.page-btn:hover          { border-color: var(--primary-color); color: var(--primary-color); }
.page-btn.active         { background: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: 700; }
.page-btn.disabled       { color: #ccc; border-color: #eee; pointer-events: none; }
.page-ellipsis           { color: #aaa; font-size: 0.85rem; padding: 0 4px; }

/* ── Carousel ─────────────────────────────────────────────────── */
.carousel-outer { position: relative; padding: 0 32px; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; gap: 24px; transition: transform 0.4s ease; }
.carousel-slide { flex: 0 0 calc(33.333% - 16px); display: flex; }

.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: #fff; border: 1px solid #ddd; border-radius: 50%;
  width: 44px; height: 44px; font-size: 1.8rem; line-height: 1;
  cursor: pointer; z-index: 2; box-shadow: 0 2px 8px rgba(0,0,0,.1);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; color: #555;
}
.carousel-btn:hover { background: var(--accent-gold); color: #fff; border-color: var(--accent-gold); }
.carousel-prev { left: -8px; }
.carousel-next { right: -8px; }

@media (max-width: 900px) { .carousel-slide { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 600px) {
  .carousel-slide { flex: 0 0 100%; }
  .carousel-outer { padding: 0; }
  .carousel-btn { display: none; }
}

/* ── Press / Na Mídia ─────────────────────────────────────────── */
.press-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: stretch;
}
.press-grid > * {
  flex: 1;
  min-width: 220px;
  max-width: 340px;
}
@media (max-width: 600px) {
  .press-grid { flex-direction: column; align-items: stretch; }
  .press-grid > * { max-width: 100%; min-width: 0; }
}

/* ── Video embed ───────────────────────────────────────────────── */
.prop-video-desktop { padding: 0 0 60px; }

.video-container { position: relative; width: 100%; overflow: hidden; border-radius: 10px; background: #000; }
.video-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

.video-container.horizontal { padding-bottom: 56.25%; /* 16:9 */ }

.video-container.vertical {
  max-width: 420px;
  margin: 0 auto;
  padding-bottom: 0;
  height: 747px; /* 420 × 16/9 */
}

.prop-video-mobile { display: none; padding: 30px 0 0; }

@media (max-width: 768px) {
  .prop-video-desktop { display: none; }
  .prop-video-mobile  { display: block; }
}

/* ── Touch & Performance ──────────────────────────────────────── */

/* Remove 300ms tap delay on touch devices */
a, button, input, select, textarea, [role="button"] {
  touch-action: manipulation;
}

/* Minimum 48px tap target on primary CTAs */
.btn-gold, .btn-hero-action, .filter-btn-search, .filter-btn-clear {
  min-height: 48px;
}

/* WhatsApp float is already 56×56 — ensure it stays accessible */
.whatsapp-float { min-width: 56px; min-height: 56px; }

/* ── 640px: tighter vertical rhythm, smaller headings ────────── */
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .section-title { font-size: 1.85rem; }
  .section-subtitle { font-size: 0.95rem; }
  .cta-banner { padding: 56px 20px; }
  .cta-banner h2 { font-size: 1.85rem; }
  .page-header { min-height: 200px; margin-bottom: 30px; }
  .page-header h1 { font-size: 2.1rem; }
  .footer-grid { gap: 24px; }
  /* Full-width CTAs inside sections on mobile */
  .cta-banner .btn-link-arrow { display: block; text-align: center; }
}

/* ── 400px: very small phones ────────────────────────────────── */
@media (max-width: 400px) {
  .section-title { font-size: 1.6rem; }
  .cta-banner h2 { font-size: 1.6rem; }
  .hero-content h1 { font-size: 1.65rem; }
  .page-header h1 { font-size: 1.75rem; }
  /* Un-stick the property sidebar so it doesn't overlap content */
  .prop-details-card { position: static !important; }
}

/* ── Mobile filter bar / drawer (hidden on desktop) ──────────── */

/* ── Filter Drawer Toggle Button ─────────────────────────────── */
.filter-drawer-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid #ddd;
  background: #fff;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s;
}
.filter-drawer-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

.filter-active-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 9px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 5px;
  line-height: 1;
}

.filter-btn-search-icon {
  padding: 0 14px;
  min-height: 42px;
  min-width: 44px;
  background: var(--primary-color);
  border: none;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.filter-btn-search-icon:hover { background: var(--primary-hover); }

/* ── Filter Drawer Overlay ────────────────────────────────────── */
.filter-drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.52);
  z-index: 998;
}
.filter-drawer-overlay.visible { display: block; }

/* ── Filter Drawer (bottom sheet) ────────────────────────────── */
.filter-drawer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.14);
  transform: translateY(102%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 999;
  max-height: 88vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.filter-drawer.open { transform: translateY(0); }

.filter-drawer-handle {
  width: 40px; height: 4px;
  background: #e0e0e0;
  border-radius: 2px;
  margin: 14px auto 0;
  flex-shrink: 0;
}

.filter-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.filter-drawer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.filter-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  min-width: 32px; min-height: 32px;
  transition: background 0.2s, color 0.2s;
}
.filter-drawer-close:hover { background: #f3f4f6; color: #333; }

.filter-drawer-body {
  padding: 20px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fdrawer-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.fdrawer-field { display: flex; flex-direction: column; }

.fdrawer-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fdrawer-field .filter-select,
.fdrawer-field .filter-input {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 13px 14px;
  font-size: 1rem;
}

.filter-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  border-top: 1px solid #f0f0f0;
}

.filter-drawer-footer .filter-btn-clear {
  flex: 1;
  text-align: center;
  padding: 14px 12px;
  border: 1px solid #ddd;
  color: #666;
  font-size: 0.85rem;
  font-family: var(--font-main);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.filter-drawer-footer .filter-btn-clear:hover { border-color: #bbb; color: #333; }

.filter-drawer-footer .filter-btn-search {
  flex: 2;
  min-height: 48px;
  font-size: 0.88rem;
  letter-spacing: 0.5px;
}

/* sobre-nos hero */
.sobre-hero-img { width: 100%; max-width: 800px; height: 400px; object-fit: cover; border-radius: 10px; display: block; margin: 0 auto; }

/* classes WebP para páginas específicas */
.bairro-hero-full-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bairro-condo-img { width: 100%; height: 90px; object-fit: cover; display: block; }
.condo-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.corretor-photo { width: 110px; height: 110px; object-fit: cover; border-radius: 50%; border: 3px solid var(--accent-gold, #BFA37E); flex-shrink: 0; display: block; }
.post-hero-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }

/* hero background via <picture> */
.hero-bg-pic { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
