/* Página Casas - Comodidades */

body.page-casas {
  overflow: hidden;
  height: 100vh;
}

.main-content--casas .hero-title-viva {
  color: #E8DCC4;
}

.main-content--casas {
  min-height: 100vh;
  overflow: hidden;
}

/* Seção esquerda fixa - só a direita rola */
.main-content--casas .left-section {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 35%;
  flex: none;
  height: 100vh;
}

.main-content--casas .right-section {
  margin-left: 35%;
  flex: 1;
  min-height: 100vh;
}

/* Seção direita: fundo claro, sem carrossel - área que rola */
.right-section--casas {
  background: #f8f8f8;
  overflow-y: auto;
  clip-path: none;
  height: 100vh;
  margin-left: 35%;
}

.right-section--casas .right-section-bg {
  display: none;
}

.casas-right-content {
  padding: 2rem 2.5rem 6rem;
  padding-left: 6rem;
  height: 100%;
  min-height: 100vh;
}

.houses-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.house-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
}

.house-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.house-card__image {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}

.house-card__content {
  padding: 1.5rem;
}

.house-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.75rem;
}

.house-card__desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.house-card__amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.house-card__amenities .comodidade-item {
  font-size: 0.85rem;
}

.house-card__btn {
  display: inline-block;
  margin-top: 0.5rem;
  border: none;
  font-family: inherit;
  cursor: pointer;
}

.comodidade-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #333;
  font-size: 0.95rem;
}

.comodidade-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #B0BAA4;
}

.comodidades-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.comodidades-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #B0BAA4;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.comodidades-social a:hover {
  opacity: 0.85;
}

.comodidades-social i {
  width: 20px;
  height: 20px;
}

/* Mobile - página Imóveis */
@media (max-width: 768px) {
  body.page-casas {
    overflow-y: auto;
    min-height: 100vh;
    height: auto;
    background-color: #1a1a1a;
    position: relative;
  }

  /* Carrossel de imagens no fundo - bordas inferiores arredondadas */
  body.page-casas .mobile-slide-bg {
    border-radius: 0 0 24px 24px;
  }

  .main-content--casas {
    flex-direction: column;
    min-height: auto;
    overflow: visible;
  }

  /* Left section - 50% da altura da tela no mobile */
  .main-content--casas .left-section {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 40vh;
    max-height: 50vh;
    padding: 5rem 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
  }

  .main-content--casas .hero-title {
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-size: 2.5rem;
  }

  .main-content--casas .hero-subtitle {
    margin-bottom: 0.4rem;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
  }

  .main-content--casas .hero-text {
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    line-height: 1.4;
    max-width: none;
  }

  .main-content--casas .btn-read-more {
    margin-bottom: 0;
    padding: 0.6rem 1.5rem;
    font-size: 0.7rem;
  }

  /* Listagem de imóveis - sem clip, sobe como um todo */
  .main-content--casas .right-section,
  .right-section--casas {
    margin-left: 0;
    width: 100%;
    display: block;
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .casas-right-content {
    padding: 0.5rem 1rem 3rem;
    padding-left: 1rem;
    background: #f8f8f8;
    overflow: visible;
  }

  .houses-list {
    grid-template-columns: 1fr;
  }
}
