/* Modal de detalhes da casa */

.house-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.house-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.house-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.house-modal__content {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 42rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.house-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  color: #333;
  transition: background 0.2s;
}

.house-modal__close:hover {
  background: #f5f5f5;
}

.house-modal__close i {
  width: 24px;
  height: 24px;
}

.house-modal__image-wrap {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.house-modal__main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-modal__body {
  padding: 1.5rem 2rem 2rem;
}

.house-modal__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 1rem;
}

.house-modal__desc {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  white-space: pre-line;
}

.house-modal__section {
  margin-bottom: 1.5rem;
}

.house-modal__section-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.75rem;
}

.house-modal__amenities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 1rem;
}

.house-modal__amenities-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

.house-modal__amenities-list .comodidade-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #B0BAA4;
}

.house-modal__galeria {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.house-modal__galeria a {
  display: block;
  aspect-ratio: 4/3;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.2s;
}

.house-modal__galeria a:hover {
  opacity: 0.9;
}

.house-modal__galeria img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.house-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.house-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.house-modal__btn i {
  width: 20px;
  height: 20px;
}

.house-modal__btn--primary {
  background: #e87d35;
  color: #fff;
}

.house-modal__btn--primary:hover {
  background: #d96d28;
}

.house-modal__btn--secondary {
  background: #eee;
  color: #333;
}

.house-modal__btn--secondary:hover {
  background: #e0e0e0;
}

@media (min-width: 640px) {
  .house-modal__actions {
    flex-direction: row;
  }

  .house-modal__btn {
    flex: 1;
  }
}
