:root {
  --primary: #00725C;
  --primary-dark: #005A49;
  --primary-light: #E8F5F2;
  --accent: #D5B489;
  --accent-dark: #B8946A;
  --dark: #0B2F2F;
  --green-mid: #46B270;
  --text: #0B2F2F;
  --text-muted: #4A6B68;
  --bg: #F7FAF9;
  --white: #FFFFFF;
  --border: #D8E8E5;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(11,47,47,.08), 0 4px 16px rgba(11,47,47,.06);
  --shadow-lg: 0 8px 32px rgba(0,114,92,.14);
}

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── NAVBAR ── */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.navbar__logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.navbar__logo small {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .3px;
  text-transform: uppercase;
}
.navbar__logo span { color: var(--accent-dark); }
.navbar__links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.navbar__links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}
.navbar__links a:hover, .navbar__links a.active {
  background: var(--primary-light);
  color: var(--primary);
}
.btn-contato {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background .15s;
  white-space: nowrap;
}
.btn-contato:hover { background: var(--primary-dark) !important; }

/* ── HERO ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero p {
  font-size: 18px;
  opacity: .85;
  max-width: 520px;
  margin: 0 auto 40px;
}

/* ── SEARCH BAR ── */
.search-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 860px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.search-box select,
.search-box input {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.search-box select:focus,
.search-box input:focus { border-color: var(--primary); }
.search-box button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.search-box button:hover { background: var(--primary-dark); }

/* ── SECTION ── */
.section { padding: 64px 24px; }
.section__inner { max-width: 1200px; margin: 0 auto; }
.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  gap: 16px;
}
.section__header h2 {
  font-size: 26px;
  font-weight: 700;
}
.link-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.link-all:hover { text-decoration: underline; }

/* ── PROPERTY GRID / CARDS ── */
.prop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.prop-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.prop-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.prop-card__img {
  height: 200px;
  background: linear-gradient(135deg, #D6EDE8 0%, #B8DDD6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 48px;
  position: relative;
}
.prop-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: var(--dark);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.prop-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.prop-card__price {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}
.prop-card__addr {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.prop-card__features {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}
.prop-card__features span { display: flex; align-items: center; gap: 4px; }

/* ── FILTERS BAR (listing page) ── */
.filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.filters__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filters__inner select,
.filters__inner input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  min-width: 140px;
  outline: none;
  transition: border-color .15s;
}
.filters__inner select:focus,
.filters__inner input:focus { border-color: var(--primary); }
.filters__inner button {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.results-count {
  font-size: 13px;
  color: var(--text-muted);
  margin-left: auto;
}

/* ── PROPERTY DETAIL ── */
.detail { max-width: 1200px; margin: 0 auto; padding: 40px 24px; display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail__gallery {
  background: linear-gradient(135deg, #D6EDE8 0%, #B8DDD6 100%);
  border-radius: var(--radius);
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: var(--primary);
  margin-bottom: 24px;
}
.detail__title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.detail__location { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; display: flex; align-items: center; gap: 6px; }
.detail__price { font-size: 32px; font-weight: 800; color: var(--primary); margin-bottom: 24px; }
.detail__features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.detail__feature {
  background: var(--primary-light);
  border: 1px solid rgba(0,114,92,.12);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}
.detail__feature .val { font-size: 20px; font-weight: 700; color: var(--primary); }
.detail__feature .lbl { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.detail__desc { line-height: 1.8; color: var(--text-muted); }

/* ── LEAD FORM CARD ── */
.lead-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  position: sticky;
  top: 80px;
  align-self: start;
}
.lead-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.lead-card p { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .15s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--primary); }
.btn-primary {
  width: 100%;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 13px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; }
.form-success {
  background: #D1FAE5;
  color: #065F46;
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  display: none;
}
.form-error {
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

/* ── FOOTER ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
}
.footer strong { color: var(--white); }

/* ── EMPTY / LOADER ── */
.loader {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 60px 24px; color: var(--text-muted); }
.empty svg { margin: 0 auto 12px; }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .navbar__links { display: none; }
  .hero { padding: 56px 16px; }
  .search-box { padding: 16px; }
  .section { padding: 48px 16px; }
}
