body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
}

.topo {
  background: #1e90ff;
  color: white;
  padding: 20px;
  text-align: center;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  padding: 10px;
}

.card {
  background: white;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-width: 220px;
}

.capa {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.conteudo {
  padding: 10px;
}

.conteudo h2 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: #222;
}

.conteudo p {
  margin: 0 0 4px;
  font-size: 12px;
  color: #555;
}

.descricao {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.preco {
  color: #111;
  font-weight: 700;
  font-size: 16px;
  margin: 6px 0;
}

.acoes {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  align-items: center;
}

.acoes a {
  text-align: center;
  padding: 6px 10px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.btn-whatsapp {
  background: #25d366;
}

.micro-info {
  margin-top: 4px;
  color: #666;
  font-size: 6px;
  line-height: 1.2;
}

.compartilhar-faixa {
  display: flex;
  justify-content: flex-end;
  padding: 10px 10px 0;
}

.btn-icon-compartilhar {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #1e90ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.btn-icon-compartilhar svg {
  width: 20px;
  height: 20px;
}

.mapa-imovel {
  position: relative;
  margin-top: 12px;
  margin-bottom: 12px;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  background: #eaeaea;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.mapa-imovel iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.mapa-imovel-link {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.carrossel {
  display: flex;
  overflow-x: auto;
  gap: 10px;
}

.carrossel img.banner {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.banner {
  display: flex;
  overflow-x: auto;
}

.banner img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.conteudo-detalhes {
  padding: 16px;
}

.endereco {
  font-size: 14px;
  color: #555;
  margin-bottom: 12px;
}

/* 🔹 Botões fixos no rodapé */
.acoes-fixas {
  position: fixed;
  bottom: 10px; /* ajustei rodape dos botoes */
  left: 0;
  right: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 10px;
  z-index: 999;
}

.acoes-fixas a {
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #fff;
}

.acoes-fixas .btn-email {
  background: #f28c28;
}

.acoes-fixas .btn-ligar {
  background: #0a7cff;
}

.acoes-fixas .btn-whatsapp {
  background: #25d366;
}

/* 🔹 Margem lateral somente na página de detalhes do imóvel */
#detalhes-imovel {
  padding-left: 10px;
  padding-right: 10px;
  padding-bottom: 120px; /* Espaço para os botões fixos */
  box-sizing: border-box;
}

.carrossel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.carrossel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.carrossel::-webkit-scrollbar {
  display: none;
}

.slide {
  min-width: 100%;
  scroll-snap-align: start;
  position: relative;
}

.slide img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 28px;
  padding: 8px 12px;
  cursor: pointer;
  z-index: 10;
}

.nav.prev { left: 10px; }
.nav.next { right: 10px; }

.dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  text-align: center;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 4px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  cursor: pointer;
}

.dot.active {
  background: white;
}

/* 🔹 Descrição completa na página de detalhes do imóvel */
.info-container .descricao {
  white-space: normal;
  overflow: visible;
  text-overflow: none;
}
