/* css/properties.css (versão corrigida) */
:root{
  --verde: #0b7a4d;
  --vermelho: #b71c1c;
  --bg: #fafafa;
  --card: #ffffff;
  --muted: #666666;
  --border: #e9e9e9;
}

* { box-sizing: border-box; }
html,body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: #222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Container padrão */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* Header/top */
.top {
  background: var(--card);
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
a.brand {
  text-decoration: none;
  color: var(--verde);
  font-weight: 800;
  font-size: 18px;
}
.actions { display:flex; gap:8px; align-items:center; }

/* Search area */
.search {
  margin: 18px 0;
  display: flex;
  gap: 12px;
  flex-direction: column;
}
.search #search {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  font-size: 15px;
  outline: none;
}
.search #search:focus { box-shadow: 0 4px 14px rgba(11,122,77,0.08); border-color: var(--verde); }

/* Filters row */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
}
.filters input,
.filters select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  min-width: 120px;
  font-size: 14px;
}
.filters input[type="number"] { max-width: 150px; }
.filters button#clear {
  padding: 10px 14px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  border: 1px dashed #ddd;
}

/* Lista de propriedades (grid) */
.list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 6px;
}

/* cada card de imóvel */
.property {
  background: var(--card);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.property:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.08);
  border-color: rgba(11,122,77,0.06);
}

/* imagem do card */
.property img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}

/* conteúdo textual */
.property h4 {
  margin: 6px 0 4px;
  font-size: 16px;
}
.property p {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: auto; /* empurra actions para baixo quando necessário */
}

/* ações do card (botões) */
.property .actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
a.btn, .property .actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: #fff;
}
a.btn { background: var(--vermelho); }
.property .actions a.contact {
  background: var(--verde);
}
.property .actions a:hover { opacity: .95; }

/* rodapé da lista */
.foot {
  padding: 18px 0;
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
}

/* Responsividade */
@media (max-width: 1000px) {
  .list { grid-template-columns: repeat(2, 1fr); }
  .filters input, .filters select { min-width: 100px; }
}

@media (max-width: 700px) {
  .top { flex-direction: column; align-items: flex-start; gap: 10px; }
  .search { margin: 12px 0; }
  .list { grid-template-columns: 1fr; }
  .property img { height: 200px; }
  .filters { flex-direction: column; align-items: stretch; }
  .filters input, .filters select { width: 100%; }
}

/* Pequenos ajustes estéticos */
.property .price {
  color: var(--vermelho);
  font-weight: 700;
}
.property .info-rooms { color: var(--muted); font-size: 13px; }

/* 🔝 Navbar fixa e responsiva */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #0b7a4d;
  color: #fff;
  padding: 10px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-logo {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  transition: all 0.3s ease;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.nav-links a:hover {
  color: #ffce00;
}

/* Botão hamburger */
.menu-toggle {
  display: none;
  font-size: 22px;
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 60px;
    right: 20px;
    background: #0b7a4d;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
  }
  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    width: 100%;
    font-size: 15px;
  }
}
/* 🔻 FOOTER GLOBAL */
.site-footer {
  background: #0b7a4d;
  color: #fff;
  padding-top: 30px;
  margin-top: 40px;
  font-family: Inter, Arial, sans-serif;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 30px;
}

.footer-brand h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.5;
  color: #e6e6e6;
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  margin-top: 10px;
}

.footer-links h4,
.footer-contact h4 {
  margin-bottom: 10px;
  border-bottom: 2px solid #1b9c6b;
  display: inline-block;
  padding-bottom: 4px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 6px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffce00;
}

.footer-contact p {
  font-size: 14px;
  margin: 4px 0;
}

.footer-contact .social {
  margin-top: 10px;
}

.footer-contact .social a {
  color: #fff;
  font-size: 20px;
  margin-right: 10px;
  transition: color 0.2s;
}

.footer-contact .social a:hover {
  color: #ffce00;
}

.footer-bottom {
  background: #09633f;
  text-align: center;
  padding: 12px;
  font-size: 13px;
  color: #ddd;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsivo */
@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand h3 {
    justify-content: center;
  }
  .footer-contact .social {
    justify-content: center;
  }
}

.nav-logo .logo {
  height: 100px;          /* altura ideal para harmonia no menu */
  width: auto;           /* mantém proporção */
  border-radius: 6px;    /* cantos suaves */
  margin-right: 10px;    /* separa do texto */
  vertical-align: middle;
}

/* 🔍 Autocompletar */
.autocomplete-box {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 4px;
  list-style: none;
  padding: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  z-index: 1000;
}

.autocomplete-box li {
  padding: 10px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.autocomplete-box li:hover {
  background: #f3f3f3;
}
