/*
Theme Name: Houzez Child
Theme URI: https://themeforest.net/item/houzez-real-estate-wordpress-theme/full_screen_preview/15752549
Description: Child theme cho Houzez - dùng để thêm code tùy chỉnh
Author: Huỳnh Phú
Template: houzez
Version: 1.0
*/
/* Khung tổng thể */
.landing-properties .property-item {
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  gap: 1rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.landing-properties .property-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

/* Ảnh bên trái cố định */
.landing-properties .property-thumb {
  width: 300px;
  min-width: 300px;
  height: 300px;
  overflow: hidden;
  border-radius: 8px;
  background: #f9f9f9;
}
.landing-properties .property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thông tin bên phải */
.landing-properties .property-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.landing-properties .property-title a {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
.landing-properties .property-price {
  color: #d35400;
  font-size: 1rem;
}
.landing-properties .property-address {
  font-size: .9rem;
  color: #555;
}

/* Mobile: xuống 1 cột */
@media (max-width: 991px) {
  .landing-properties .property-item {
    flex-direction: column;
  }
  .landing-properties .property-thumb {
    width: 100%;
    min-width: 100%;
    height: 220px;
  }
}
/* ==== Căn chỉnh khung nội dung & sidebar ==== */

/* Tạo khoảng cách giữa cột nội dung và cột widget */
.landing-properties .col-lg-8 {
  padding-right: 30px; /* tạo khoảng cách 30px giữa nội dung và sidebar */
}

/* ==== Listing ngang (ảnh trái, nội dung phải) ==== */
.landing-properties .property-item {
  display: flex;
  align-items: flex-start;
  gap: 20px; /* khoảng cách giữa ảnh và phần info */
  border: 1px solid #eee;
  border-radius: 10px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.landing-properties .property-item:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* Ảnh bên trái: giới hạn kích thước */
.landing-properties .property-thumb {
  width: 300px;
  min-width: 300px;
  height: 300px;            /* chiều cao vừa phải */
  overflow: hidden;
  border-radius: 8px;
  flex-shrink: 0;
}

.landing-properties .property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;         /* cắt đều, không méo hình */
  display: block;
}

/* Nội dung bên phải */
.landing-properties .property-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.landing-properties .property-title a {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.landing-properties .property-price {
  color: #d35400;
  font-size: 1rem;
}

.landing-properties .property-address {
  color: #555;
  font-size: .9rem;
}

/* ==== Responsive: xuống 1 cột khi mobile ==== */
@media (max-width: 991px) {
  .landing-properties .col-lg-8 {
    padding-right: 0;
  }

  .landing-properties .property-item {
    flex-direction: column;
  }

  .landing-properties .property-thumb {
    width: 100%;
    min-width: 100%;
    height: 240px;
  }
}

.landing-properties .property-thumb {
  width: 300px;
  min-width: 300px;
  height: 220px;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}
.landing-properties .property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.landing-properties .item-amenities .houzez-icon {
  font-size: 16px;
  color: #666;
}
.landing-properties .item-amenities-text {
  font-size: 13px;
  color: #555;
}
.landing-properties .hz-figure {
  font-weight: 600;
}
.landing-properties .author-avatar img {
  border-radius: 50%;
}
/* tiêu đề đổi màu khi hover */
.landing-properties .property-title a {
  color: #333;
  transition: color .2s ease;
}
.landing-properties .property-title a:hover {
  color: #d35400; /* màu cam nổi */
}

/* nút xem chi tiết 50% chiều rộng */
.landing-properties .property-item .btn.btn-outline-primary {
  width: 50%;
  min-width: 140px;
}

/* ảnh phóng to 10% khi hover item */
.landing-properties .property-item .property-thumb {
  overflow: hidden;
}
.landing-properties .property-item .property-thumb img {
  transition: transform .25s ease;
}
.landing-properties .property-item:hover .property-thumb img {
  transform: scale(1.1);
}



