/* Version 1.0.0 */
.hero-empreendimentos {
  position: relative;
  height: 50vh;
  min-height: 400px;
  background-image: url("../../imagens/casa.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-empreendimentos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-empreendimentos h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-size: 60px;
  font-weight: 600;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.filtros-section {
  background-color: #2f2f2f;
  padding: 30px 0;
}

.filtros-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.filtro-box {
  flex: 1;
  min-width: 200px;
  max-width: 300px;
}

.filtro-box select {
  background-color: #f5f5f5;
  border: none;
  border-radius: 5px;
  padding: 12px 15px;
  width: 100%;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 40px;
}

.filtro-box select:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--cor-principal);
}

.empreendimentos-grid {
  padding: 60px 0;
  background-color: #f5f5f5;
}

.empreendimento-card {
  position: relative;
  height: 400px;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.empreendimento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.empreendimento-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.empreendimento-card:hover img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
  padding: 30px 20px 20px;
  color: white;
}

.card-overlay h3 {
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: white;
}

.card-overlay p {
  font-size: 18px;
  margin: 0 0 20px 0;
  color: rgba(255, 255, 255, 0.9);
}

.card-overlay .btn-ver-detalhes {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid white;
  background-color: transparent;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.card-overlay .btn-ver-detalhes:hover {
  background-color: white;
  color: var(--cor-principal);
}

@media only screen and (max-width: 768px) {
  .hero-empreendimentos {
    height: 40vh;
    min-height: 300px;
  }

  .hero-empreendimentos h1 {
    font-size: 40px;
  }

  .filtros-container {
    flex-direction: column;
  }

  .filtro-box {
    max-width: 100%;
    width: 100%;
  }

  .empreendimento-card {
    height: 350px;
  }

  .card-overlay h3 {
    font-size: 24px;
  }

  .card-overlay p {
    font-size: 16px;
  }
}

