.cards-container {
 display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  gap: 1.5rem;
  padding: 30px 1rem;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  box-sizing: border-box;
}

/* cards imovel */
.property-card {
  background: #fff;
  border: solid #988df8 ;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  transition: 0.4s ease-in-out;
}

.property-card:hover{

  transform: scale(1.1);
}

/* carrossel  */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.carousel img.active {
  opacity: 1;
  z-index: 1;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.3);
  color: #fff;
  border: none;
  padding: 8px;
  font-size: 1rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.carousel .prev { left: 12px; }
.carousel .next { right: 12px; }

.dots {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.dots span {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 3px;
  background: #fff;
  border-radius: 50%;
  opacity: 0.5;
  cursor: pointer;
}

.dots span.active {
  opacity: 1;
}

.property-info {
  padding: 1rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.property-info h3 {
  margin: 0;
}

.price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #222;
}

.address {
  font-size: 0.9rem;
  color: #555;
}

.icons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #444;
  margin-top: 0.5rem;
}

.icons span {
  display: flex;
  align-items: center;
}

.icons i {
  margin-right: 5px;
}

.heart {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #444;
  cursor: pointer;
}


.property-details {
  max-height: 0;
  display: none !important;
  overflow: hidden;
  padding: 0 1rem; 
  background: #f9f9f9;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.property-details.open {
  padding: 1rem;
  max-height: 300px; 
}

.property-details ul {
  margin: 0;
  padding: 0;
  list-style: disc inside;
  color: #444;
  font-size: 0.9rem;
}

.details-btn {
  margin-top: 1rem;
  padding: 20px;
  border: none;
  background-image: linear-gradient(-225deg, #2e98ee 0%, #6757c7 48%, #2e98ee 100%);
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  transition: background-image 0.3s ease;
}

.details-btn:hover {
  background-image: linear-gradient(-225deg, #2e98ee 0%, #2e98ee 48%, #2e98ee 100%);
}


/* Sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.5);
  display: none;
  z-index: 999;
}

.sidebar-details {
  position: fixed;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100vh;
  background: #fff;
  box-shadow: 4px 0 10px rgba(0,0,0,0.2);
  padding: 2rem 1.5rem;
  overflow-y: auto;
  transition: left 0.4s ease;
  z-index: 1000;
}

.sidebar-details.open {
  transition: left 0.4s ease;
  left: 0;
  display: block;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-details h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.sidebar-details ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #333;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #666;
  cursor: pointer;
}

#contato {
  padding: 60px 20px;
  background-color: #f9f9f9;
}

.contato-wrapper {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-contato {
  text-align: center;
}

.h2-contato {
  font-size: 2.2rem;
  color: #222;
}

.p-contato {
  font-size: 1rem;
  color: #666;
  margin-top: 10px;
}

.form-contato {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 600;
  color: #444;
}

.form-group input,
.form-group textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7a5af8;
}

.btn-enviar {
  align-self: flex-start;
  padding: 12px 24px;
  background-color: #7a5af8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-enviar:hover {
  background-color: #6842f1;
}

#footer {
  background-color: #222222;
  color: #fff;
  padding: 60px 20px 30px;
  font-family: inherit;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 30px;
}

.footer-logo h3 {
  font-size: 1.6rem;
  color: #fff;
}

.footer-logo p {
  margin-top: 10px;
  font-size: 0.95rem;
  color: #ccc;
  max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #fff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #7a5af8;
}

.footer-social .social-icons a {
  font-size: 1.5rem;
  margin-right: 15px;
  color: #ccc;
  transition: color 0.3s ease;
}

.footer-social .social-icons a:hover {
  color: #7a5af8;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #444;
  padding-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

.margin-top{
    margin-bottom: 72px !important;
}



@keyframes fadeInSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px) translateX(-50%); 
    }
    to {
        opacity: 1;
        transform: translateY(0) translateX(-50%); 
    }
}



@keyframes fadeInSlideDown {
    from {
        opacity: 0; 
        transform: translateY(-20px);
    }
    to {
        opacity: 1; 
        transform: translateY(0);
    }
}

.nav-bar{
    animation: fadeInSlideDown 0.8s ease-out forwards;
}
#inicio{
    animation: fadeInSlideDown 0.8s ease-out forwards;

}

