/* ESTILOS GERAIS DO CARD */
.card-imovel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  background-color: var(--cor-site-3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card-imovel:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* ÁREA DE IMAGENS E CARROSSEL */
.area-imagens {
  position: relative;
  height: 250px;
  overflow: hidden;
  width: 100%;
}

.carrossel-imagens {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.slide-imagem {
  min-width: 100%;
  height: 100%;
}

.slide-imagem img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.controles-carrossel {
  position: absolute;
  bottom: 40%;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 2;
}

.controles-carrossel button {
  background-color: rgba(40, 125, 54, 0.8);
  color: white;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  opacity: 0.8;
}

.controles-carrossel button:hover {
  background-color: var(--cor-site-1);
  opacity: 1;
  transform: scale(1.1);
}

/* Esconde controles se só tiver uma imagem */
.area-imagens:only-child .controles-carrossel {
  display: none;
}
/* Estilo para o overlay na última imagem */
.slide-imagem {
  position: relative;
}

.overlay-ultima-imagem {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.overlay-ultima-imagem.ativo {
  opacity: 1; /* Overlay sempre visível na última imagem */
}

.botao-ver-mais {
  background-color: var(--cor-site-1);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  transform: scale(0.9);
  opacity: 0;
  margin-bottom: 10px;
}
.botao-ver-mais:hover {
  background-color: var(--cor-site-2);
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s;
  transform: scale(0.9);
  opacity: 0;
}

.overlay-ultima-imagem.ativo .botao-ver-mais {
  transform: scale(1);
  opacity: 1;
}

/* Efeito hover para outras imagens (opcional) */
.slide-imagem:not(.ultima-imagem):hover .overlay-ultima-imagem {
  opacity: 1;
}

.slide-imagem:not(.ultima-imagem):hover .botao-ver-mais {
  transform: scale(1);
  opacity: 1;
}
.controles-carrossel button.desativado {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.controles-carrossel button.desativado:hover {
  background-color: rgba(40, 125, 54, 0.8);
}
/* BOTÃO WHATSAPP - NOVA VERSÃO */
.botao-whatsapp {
  position: absolute;
  right: 14px;
  top: 225px;
  background-color: #25D366;
  color: white;
  padding: 14px 15px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  animation: none;
}

.botao-whatsapp:hover {
  background-color: #128C7E;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  /* Ativa a pulsação no hover */
  animation: pulse 1.5s infinite;
}

/* Efeito de pulsação */
@keyframes pulse {
  0% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
      box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
  }
  100% {
      box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Ajuste no container do card para acomodar o botão */
.card-imovel {
  position: relative; /* Adicionado para referência do posicionamento absoluto */
}

/* INFORMAÇÕES DO IMÓVEL */
.informacoes-imovel {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cabecalho-info {
  margin-bottom: 15px;
}

.info-adicional {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 11px 0px;
  flex-wrap: wrap;
}

.badge-negocio {
  background-color: var(--cor-site-2);
  color: #333;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  display: inline-block;
}

.titulo-imovel {
  margin: 0;
  font-size: 18px;
}

.titulo-imovel a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s;
}

.titulo-imovel a:hover {
  color: var(--cor-site-1);
}

.lista-detalhes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  list-style: none;
  margin: 0px;
}

.lista-detalhes li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #555;
}
.lista-detalhes li p{
  margin: 0px;
}

.icone-detalhe {
  color: var(--cor-site-1);
}

.descricao-imovel {
  margin: 15px 0;
  color: #666;
  font-size: 14px;
  line-height: 1.5;
  flex-grow: 1;
}

/* RODAPÉ COM VALORES */
.rodape-info {
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: auto;
}

.valores-imovel {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.valor-principal {
  text-align: left;
  line-height: 1.4;
}

.valor-principal .rotulo {
  display: block;
  font-size: 12px;
  color: #777;
}

.valor-principal .valor {
  font-size: 18px;
  font-weight: bold;
  color: var(--cor-site-1);
}

.valores-secundarios {
  display: flex;
  gap: 15px;
}

.item-valor .rotulo {
  display: block;
  font-size: 11px;
  color: #777;
  text-align: right;
}

.item-valor .valor {
  font-size: 14px;
  color: #555;
  text-align: right;
}

.acoes-imovel {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.botao-detalhes {
  background-color: var(--cor-site-1);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
}

.botao-detalhes:hover {
  background-color: #1e612a;
}

.codigo-imovel {
  font-size: 12px;
  color: #999;
}

/* ESTILOS DA SEÇÃO */
.titulo-secao {
  margin-bottom: 40px;
}

.subtitulo-secao {
  color: var(--cor-site-1);
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.titulo-principal {
  color: #333;
  font-size: 28px;
  margin: 0;
  position: relative;
  display: inline-block;
}

.titulo-principal:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--cor-site-2);
}

@media (max-width: 1400px) {
  .lista-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 0;
    list-style: none;
    margin: 0px;
  }
}
@media (max-width: 1024px) {
  .lista-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin: 0px;
  }
}
@media (max-width: 768px) {
  .lista-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
    list-style: none;
    margin: 0px;
  }
}
@media (max-width: 580px) {
  .lista-detalhes {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 0;
    list-style: none;
    margin: 0px;
  }
}