
/* QN homepage modern property cards — presentation layer only */
:is(.home #properties_module_section, .home .property-carousel-module) .item-listing-wrap.card {
  padding: 0 !important;
  border: 1px solid rgba(15, 23, 42, .06) !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08) !important;
  transition: transform .28s ease, box-shadow .28s ease;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-wrap,
:is(.home #properties_module_section, .home .property-carousel-module) .item-wrap > .d-flex {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff;
  box-shadow: none !important;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-wrap > .d-flex {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-header {
  position: relative;
  flex: 0 0 auto;
  width: 100% !important;
  aspect-ratio: 16 / 10;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0 !important;
}

:is(.home #properties_module_section, .home .property-carousel-module) .listing-image-wrap,
:is(.home #properties_module_section, .home .property-carousel-module) .listing-thumb,
:is(.home #properties_module_section, .home .property-carousel-module) .listing-featured-thumb {
  display: block;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  overflow: hidden;
}

:is(.home #properties_module_section, .home .property-carousel-module) .listing-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: scale(1);
  transition: transform .28s ease;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-header > .label-featured {
  top: 18px !important;
  left: 18px !important;
  z-index: 4;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-header > .labels-wrap {
  top: 18px !important;
  right: 18px !important;
  z-index: 4;
  max-width: calc(100% - 36px);
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-header > .item-price-wrap {
  left: 18px !important;
  right: auto !important;
  bottom: 18px !important;
  z-index: 4;
  max-width: calc(100% - 36px);
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-body {
  display: flex !important;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  width: 100% !important;
  min-width: 0;
  padding: 24px 26px 26px !important;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-body > .labels-wrap,
:is(.home #properties_module_section, .home .property-carousel-module) .item-body > .item-price-wrap {
  display: none !important;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-title {
  width: 100%;
  margin: 0 0 12px !important;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-address {
  width: 100%;
  margin: 0 0 14px !important;
  line-height: 1.55;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-amenities {
  width: 100%;
  margin: 0 0 18px !important;
}

:is(.home #properties_module_section, .home .property-carousel-module) .item-body .btn-item {
  min-height: 44px;
  margin-top: auto !important;
  padding: 10px 20px !important;
  border-radius: 12px !important;
}

@media (hover: hover) and (pointer: fine) {
  :is(.home #properties_module_section, .home .property-carousel-module) .item-listing-wrap.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .11) !important;
  }

  :is(.home #properties_module_section, .home .property-carousel-module) .item-listing-wrap.card:hover .listing-thumb img {
    transform: scale(1.035);
  }
}

@media (max-width: 767px) {
  :is(.home #properties_module_section, .home .property-carousel-module) .item-listing-wrap.card {
    width: 100%;
    border-radius: 18px !important;
  }

  :is(.home #properties_module_section, .home .property-carousel-module) .item-header {
    aspect-ratio: 3 / 2;
  }

  :is(.home #properties_module_section, .home .property-carousel-module) .item-header > .label-featured {
    top: 12px !important;
    left: 12px !important;
  }

  :is(.home #properties_module_section, .home .property-carousel-module) .item-header > .labels-wrap {
    top: 12px !important;
    right: 12px !important;
    max-width: calc(100% - 24px);
  }

  :is(.home #properties_module_section, .home .property-carousel-module) .item-header > .item-price-wrap {
    left: 12px !important;
    bottom: 12px !important;
    max-width: calc(100% - 24px);
  }

  :is(.home #properties_module_section, .home .property-carousel-module) .item-body {
    padding: 20px !important;
  }

  :is(.home #properties_module_section, .home .property-carousel-module) .item-body .btn-item {
    width: auto;
    min-height: 44px;
  }
}

/* Homepage news cards: same full-bleed visual language, content untouched */
.home .blog-posts-module-v1 .module-row > [class*="col-"] {
  display: flex;
  margin-bottom: 28px;
}

.home .blog-posts-module-v1 .blog-post-item-v1 {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .06) !important;
  border-radius: 20px !important;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08) !important;
  transition: transform .28s ease, box-shadow .28s ease;
}

.home .blog-posts-module-v1 .blog-post-thumb,
.home .blog-posts-module-v1 .blog-post-thumb > a {
  display: block;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0 !important;
}

.home .blog-posts-module-v1 .blog-post-thumb img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: scale(1);
  transition: transform .28s ease;
}

.home .blog-posts-module-v1 .blog-post-content-wrap {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  padding: 18px 20px 20px !important;
}

.home .blog-posts-module-v1 .blog-post-meta {
  width: 100%;
  margin: 0 0 8px !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home .blog-posts-module-v1 .blog-post-title,
.home .blog-posts-module-v1 .blog-post-title h3 {
  width: 100%;
  margin: 0 0 9px !important;
}

.home .blog-posts-module-v1 .blog-post-title h3 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

.home .blog-posts-module-v1 .blog-post-body {
  display: -webkit-box;
  width: 100%;
  margin: 0 0 14px !important;
  overflow: hidden;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.home .blog-posts-module-v1 .blog-post-link {
  margin-top: auto !important;
}

.home .blog-posts-module-v1 .blog-post-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 2px solid #005baa;
  border-radius: 12px;
  color: #005baa;
  font-weight: 700;
  text-decoration: none;
  transition: color .22s ease, background-color .22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .home .blog-posts-module-v1 .blog-post-item-v1:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .11) !important;
  }

  .home .blog-posts-module-v1 .blog-post-item-v1:hover .blog-post-thumb img {
    transform: scale(1.035);
  }

  .home .blog-posts-module-v1 .blog-post-link a:hover {
    color: #fff;
    background: #005baa;
  }
}

@media (max-width: 767px) {
  .home .blog-posts-module-v1 .module-row > [class*="col-"] {
    display: flex;
    width: 100%;
    margin-bottom: 22px;
  }

  .home .blog-posts-module-v1 .blog-post-item-v1 {
    border-radius: 18px !important;
  }

  .home .blog-posts-module-v1 .blog-post-thumb,
  .home .blog-posts-module-v1 .blog-post-thumb > a {
    aspect-ratio: 3 / 2;
  }

  .home .blog-posts-module-v1 .blog-post-content-wrap {
    padding: 17px 18px 18px !important;
  }
}

/* Modern category archives: Tin du an, Tin tuc thi truong, Goc luat */
:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .blog-wrap > .container {
  width: min(100% - 40px, 1600px);
  max-width: 1600px;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .bt-sidebar-wrap {
  display: none !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .bt-content-wrap {
  display: grid;
  flex: 0 0 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  max-width: 100%;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .article-wrap {
  display: flex;
  min-width: 0;
  margin: 0 !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) article.post-wrap {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: auto auto 1fr auto;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 0 22px !important;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .06) !important;
  border-radius: 20px !important;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08) !important;
  transition: transform .28s ease, box-shadow .28s ease;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-thumbnail-wrap,
:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-thumbnail-wrap > a {
  display: block;
  grid-row: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  margin: 0 !important;
  overflow: hidden;
  border-radius: 0 !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-thumbnail-wrap img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 0 !important;
  transform: scale(1);
  transition: transform .28s ease;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-footer-wrap,
:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-footer-wrap > .d-flex {
  display: contents !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .author-meta {
  grid-row: 2;
  min-width: 0;
  margin: 0 !important;
  padding: 20px 22px 10px !important;
  overflow: hidden;
  color: #00aeff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .author-meta .list-inline-item:not(:first-child) {
  display: none !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-inner-wrap {
  grid-row: 3;
  min-width: 0;
  padding: 0 22px !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-title-wrap,
:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-title-wrap h2 {
  margin: 0 0 14px !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-title-wrap h2 a {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-excerpt-wrap {
  display: -webkit-box;
  margin: 0 0 20px !important;
  overflow: hidden;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-excerpt-wrap p {
  margin: 0 !important;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-footer-wrap .btn {
  align-self: end;
  justify-self: start;
  grid-row: 4;
  min-height: 44px;
  margin: 0 22px !important;
  padding: 10px 20px !important;
  border: 2px solid #005baa !important;
  border-radius: 12px !important;
  color: #005baa !important;
  background: #fff !important;
  font-weight: 700;
}

:is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .pagination-wrap {
  grid-column: 1 / -1;
}

@media (min-width: 1440px) {
  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .bt-content-wrap {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (hover: hover) and (pointer: fine) {
  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) article.post-wrap:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, .11) !important;
  }

  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) article.post-wrap:hover .post-thumbnail-wrap img {
    transform: scale(1.035);
  }

  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-footer-wrap .btn:hover {
    color: #fff !important;
    background: #005baa !important;
  }
}

@media (max-width: 991px) {
  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .bt-content-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (max-width: 575px) {
  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .blog-wrap > .container {
    width: min(100% - 24px, 1600px);
  }

  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .bt-content-wrap {
    grid-template-columns: minmax(0, 1fr);
  }

  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) article.post-wrap {
    border-radius: 18px !important;
  }

  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-thumbnail-wrap,
  :is(body.category-tin-du-an, body.category-tin-tuc-thi-truong, body.category-luat-nha-dat) .post-thumbnail-wrap > a {
    aspect-ratio: 3 / 2;
  }
}
