
    /* ============================================================
   QN OVERRIDES CSS — Tập trung toàn bộ CSS customizations
   Version: 1.0.0  |  Updated: 2026-06-11
   
   MỤC ĐÍCH: Thay thế TẤT CẢ inline <style> blocks hiện tại.
   Load bằng <link rel="stylesheet"> SAU theme CSS.
   
   FILE NÀY THAY THẾ:
   ├── #qn-no-whitebar-fix (head)
   ├── Critical FOUC fix (head) → đã chuyển vào qn-critical.css
   ├── Author box CSS (head)
   ├── #xt-css (head)
   ├── #wp-custom-css (head)
   ├── H2 size fix (head)
   ├── Logo + layout overrides (body)
   └── Navy banner CSS (body)
   
   QUY ƯỚC:
   - Dùng !important CHỈ KHI override plugin/theme bên thứ 3
   - Mỗi section có comment block rõ ràng
   - Dùng CSS custom properties khi có thể
   ============================================================ */

/* ==========================================================================
   SECTION 1: AUTHOR BOX — Ẩn trên toàn site
   Lý do: Không muốn hiển thị thông tin author trên website BĐS
   ========================================================================== */

.rank-math-author-box,
.rank-math-author-box-wrapper,
.author-box,
.author-bio,
.author-info,
.author-card,
.post-author,
.about-author,
.entry-author,
.author-profile,
.post-author-bio,
.article-author,
.author-section,
.author-detail-wrap,
.blog-post-author,
.qn-author-byline,
[class*="author-box"],
[class*="authorbox"],
[id*="author-box"],
[id*="authorbox"] {
  display: none !important;
}


/* ==========================================================================
   SECTION 2: ẨN CÁC PHẦN KHÔNG CẦN TRÊN FRONTEND
   - Thanh tìm kiếm mặc định WordPress
   - Khu vực bình luận
   - Widget taxonomy
   - Property address/overview mặc định
   ========================================================================== */

/* 2.1 Ẩn thanh tìm kiếm WP */
.search-form,
#searchform,
form.searchform,
form[role="search"],
.widget_search,
#search-2,
.wp-block-search,
.search-widget,
.sidebar .search-form {
  display: none !important;
}

/* 2.2 Ẩn bình luận */
#comments,
.comments-area,
.post-comment-form-wrap,
.comments-form-wrap,
.comment-respond,
#respond,
#commentform,
form.comment-form,
.wp-block-comments {
  display: none !important;
}

/* 2.3 Ẩn property widgets mặc định */
#property-address-wrap,
#property-overview-wrap,
#houzez_property_taxonomies-3,
.widget-taxonomy {
  display: none !important;
}


/* ==========================================================================
   SECTION 3: TYPOGRAPHY — Tối ưu chữ trong nội dung bài viết
   Chỉ áp dụng trong .entry-content và .description-content
   KHÔNG ảnh hưởng header, banner, nút bấm
   ========================================================================== */

/* 3.1 Body text */
.entry-content p,
.entry-content li,
.description-content p,
.description-content li {
  color: #1a1a1a !important;
  line-height: 1.65 !important;
  text-align: justify !important;
  text-justify: inter-word !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  font-weight: 400 !important;
}

/* 3.2 Headings trong bài viết */
.entry-content h2,
.entry-content h3,
.entry-content h4,
.description-content h2,
.description-content h3,
.description-content h4 {
  color: #0c233e !important;
  font-weight: 700 !important;
  text-align: left !important;
  line-height: 1.4 !important;
}

/* 3.3 Exception: CTA blocks với nền tối bên trong nội dung */
.entry-content #qn-cta-unique-final p,
.entry-content #qn-cta-unique-final h2,
.entry-content #qn-cta-unique-final h3,
.description-content #qn-cta-unique-final p,
.description-content #qn-cta-unique-final h2,
.description-content #qn-cta-unique-final h3,
.qn-faq-title {
  color: #ffffff !important;
  text-align: inherit !important;
}

/* 3.4 Chữ vàng cảnh báo trong CTA */
.description-content #qn-cta-unique-final span[style*="color: #ffcc00"],
.entry-content #qn-cta-unique-final span[style*="color: #ffcc00"] {
  color: #ffcc00 !important;
}


/* ==========================================================================
   SECTION 4: H2 SIZE — Thu nhỏ H2 trong trang chi tiết dự án
   ========================================================================== */

.property-description-wrap h2,
.property-description h2,
#property-description-wrap h2 {
  font-size: 24px !important;
  line-height: 1.4 !important;
  margin-top: 1.5em !important;
  margin-bottom: 0.8em !important;
}

@media (max-width: 768px) {
  .property-description-wrap h2,
  .property-description h2,
  #property-description-wrap h2 {
    font-size: 20px !important;
    margin-top: 1.2em !important;
  }
}


/* ==========================================================================
   SECTION 5: FAQ ACCORDION — Styling khối hỏi đáp
   ========================================================================== */

.qn-faq-container {
  width: 100%;
  margin-bottom: 30px;
}

.qn-faq-item {
  margin-bottom: 12px !important;
  border: none !important;
}

.qn-faq-item summary {
  background-color: #0c2b54 !important;
  color: #ffffff !important;
  padding: 16px 20px !important;
  border-radius: 8px !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  list-style: none !important;
  outline: none !important;
  transition: background-color 0.3s ease !important;
  line-height: 1.4 !important;
}

.qn-faq-item summary::-webkit-details-marker {
  display: none !important;
}

.qn-faq-item summary:hover {
  background-color: #091f3d !important;
}

.qn-faq-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  min-width: 26px !important;
  height: 26px !important;
  border: 1.5px solid #ffffff !important;
  border-radius: 50% !important;
  margin-right: 15px !important;
  font-size: 11px !important;
  font-weight: bold !important;
  transition: transform 0.3s ease !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
}

.qn-faq-item[open] .qn-faq-icon {
  transform: rotate(180deg) !important;
}

.qn-faq-item[open] summary {
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.qn-faq-a {
  background-color: #ffffff !important;
  border: 1px solid #e0e0e0 !important;
  border-top: none !important;
  padding: 20px 20px !important;
  border-bottom-left-radius: 8px !important;
  border-bottom-right-radius: 8px !important;
  color: #333333 !important;
}

.qn-faq-a p {
  margin-top: 0 !important;
  margin-bottom: 12px !important;
}

.qn-faq-a p:last-child {
  margin-bottom: 0 !important;
}

.qn-faq-item summary br {
  display: none !important;
}


/* ==========================================================================
   SECTION 6: XT EXPAND/COLLAPSE — Nút "Xem thêm / Thu gọn"
   ========================================================================== */

.xt-wrapper {
  position: relative;
  margin: 12px 0;
}

.xt-clip {
  overflow: hidden !important;
  position: relative !important;
  transition: max-height 0.4s ease;
}

.xt-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.98));
  transition: opacity 0.3s;
  pointer-events: none;
}

.xt-btn-wrap {
  text-align: center;
  margin-top: 8px;
  padding-bottom: 8px;
}

.xt-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #fff !important;
  border: 1.5px solid #b0b7c3 !important;
  border-radius: 50px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1e3a5f !important;
  cursor: pointer !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.2s !important;
}

.xt-btn:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
}


/* ==========================================================================
   SECTION 7: PROPERTY DETAIL PAGE — Trang chi tiết dự án
   ========================================================================== */

/* 7.1 Ẩn tiêu đề "Giới thiệu" mặc định */
#property-description-wrap > .block-wrap > .block-title-wrap {
  display: none !important;
}

/* 7.2 Ẩn nhãn và nút thừa trên mobile */
.single-property .mobile-top-wrap .mobile-property-tools,
.single-property .mobile-top-wrap .item-tools {
  display: none !important;
}

.single-property .mobile-property-title .label-featured,
.single-property .mobile-property-title .labels-wrap {
  display: none !important;
}

/* 7.3 Khoảng cách tiêu đề trên mobile */
@media (max-width: 991px) {
  .single-property .mobile-property-title {
    padding-top: 25px !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }

  .single-property .property-description-wrap {
    padding-top: 10px !important;
    margin-top: 0 !important;
  }

  .single-property .property-description-wrap .block-wrap {
    padding-top: 0 !important;
  }
}

/* 7.4 Ẩn Terms of Use + User Type dropdown + Email input */
.hz-terms-of-use.hz-no-gdpr-checkbox,
.form-group:has(select[name="user_type"]),
.form-group:has(.hz-terms-of-use),
.form-group:has(input[name="email"]),
.form-group:has(input[type="email"]),
.qn-input-group:has(input[name="email"]) {
  display: none !important;
}

/* 7.5 Ẩn item-tools (yêu thích, chia sẻ, in ấn) */
.single-property .item-tools {
  display: none !important;
}

/* 7.6 Ẩn giá tiền */
.single-property .item-price-wrap {
  display: none !important;
}

/* 7.7 Ẩn nhãn và địa chỉ trên trang chi tiết */
.single-property .page-title-wrap .item-address,
.single-property .page-title-wrap address,
.single-property .page-title-wrap .label-featured,
.single-property .page-title-wrap .label-status,
.single-property .page-title-wrap .hz-label,
.single-property .page-title-wrap .page-label-wrap,
.single-property .page-title-wrap .property-labels-wrap,
.single-property .page-title-wrap .labels-wrap,
.single-property .property-title-price-wrap .item-address,
.single-property .property-title-price-wrap address,
.single-property .property-title-price-wrap .label-featured,
.single-property .property-title-price-wrap .label-status,
.single-property .property-title-price-wrap .hz-label,
.single-property .property-title-price-wrap .page-label-wrap,
.single-property .property-title-price-wrap .property-labels-wrap,
.single-property .property-title-price-wrap .labels-wrap,
.single-property .property-top-wrap .label-featured,
.single-property .property-top-wrap .label-status,
.single-property .property-top-wrap .hz-label,
.single-property .property-top-wrap .page-label-wrap,
.single-property .property-top-wrap .property-labels-wrap,
.single-property .property-top-wrap .labels-wrap,
.single-property .property-top-wrap .item-address,
.single-property .mobile-top-wrap .label-featured,
.single-property .mobile-top-wrap .label-status,
.single-property .mobile-top-wrap .hz-label,
.single-property .mobile-top-wrap .page-label-wrap,
.single-property .mobile-top-wrap .property-labels-wrap,
.single-property .mobile-top-wrap .labels-wrap,
.single-property .mobile-top-wrap .item-address {
  display: none !important;
  visibility: hidden !important;
}


/* ==========================================================================
   SECTION 8: LOGO — Desktop, Mobile, Footer
   ========================================================================== */

/* 8.1 Desktop logo */
.header-v1 .logo-desktop img {
  max-height: 80px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: scale(1.7) !important;
  transform-origin: left center !important;
}

/* 8.2 Mobile logo */
.header-mobile .header-mobile-center {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

.header-mobile .logo-mobile {
  text-align: center !important;
  width: 100% !important;
}

.header-mobile .logo-mobile img {
  max-height: 60px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  padding: 0 !important;
  margin: 0 auto !important;
  transform: scale(1.35) !important;
  transform-origin: center center !important;
}

/* 8.3 Footer logo */
.footer-widget .widget-about-image img,
.widget-about-site .widget-about-image img {
  max-width: 100% !important;
  max-height: 160px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block;
  margin: 0 0 20px -30px !important;
  transform: scale(1.4) !important;
  transform-origin: left center !important;
}


/* ==========================================================================
   SECTION 8.4: DESKTOP HEADER MENU HEIGHT — Ngăn menu tràn xuống breadcrumb
   ========================================================================== */

@media (min-width: 1025px) {
  .header-v1 .header-inner-wrap,
  .header-v1 .navbar,
  .header-v1 .main-nav,
  .header-v1 .navbar-nav,
  .header-v1 .navbar-nav > .nav-item,
  .header-v1 .navbar-nav > .menu-item,
  .header-v1 .navbar-nav > .nav-item > .nav-link,
  .header-v1 .navbar-nav > .menu-item > .nav-link {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 80px !important;
  }

  .header-v1 .navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: visible !important;
  }

  .header-v1 .navbar-nav > .nav-item > .nav-link,
  .header-v1 .navbar-nav > .menu-item > .nav-link {
    display: flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  .header-v1 .navbar-nav > .nav-item > .dropdown-menu,
  .header-v1 .navbar-nav > .menu-item > .dropdown-menu {
    top: 80px !important;
  }

  .header-main-wrap,
  #header-section.header-v1 {
    height: 81px !important;
    min-height: 81px !important;
    overflow: visible !important;
  }
}




/* ==========================================================================
   SECTION 8.5: MOBILE SLIDEOUT MENU + POPUP GUARD
   Fix menu mobile bị popup/form nổi đè lệch trên viewport nhỏ.
   ========================================================================== */

@media (max-width: 1024px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body.qn-popup-show #qn-popup-overlay {
    pointer-events: none !important;
  }

  html.slideout-open,
  html.nav-mobile-open,
  body.slideout-open,
  body.nav-mobile-open {
    overflow-x: hidden !important;
  }

  html.slideout-open body::before,
  html.nav-mobile-open body::before,
  body.slideout-open::before,
  body.nav-mobile-open::before {
    content: "" !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: min(86vw, 360px) !important;
    z-index: 2147482990 !important;
    background: rgba(0, 0, 0, 0.42) !important;
    pointer-events: none !important;
  }

  html.slideout-open body #qn-popup-wrapper,
  html.slideout-open body #qn-popup-overlay,
  html.slideout-open body #qn-popup-box,
  html.slideout-open body .qn-global-cta,
  html.slideout-open body #chatbot-fab,
  html.slideout-open body #phone-mockup,
  body.slideout-open #qn-popup-wrapper,
  body.slideout-open #qn-popup-overlay,
  body.slideout-open #qn-popup-box,
  body.slideout-open .qn-global-cta,
  body.slideout-open #chatbot-fab,
  body.slideout-open #phone-mockup,
  html.nav-mobile-open body #qn-popup-wrapper,
  html.nav-mobile-open body #qn-popup-overlay,
  html.nav-mobile-open body #qn-popup-box,
  html.nav-mobile-open body .qn-global-cta,
  html.nav-mobile-open body #chatbot-fab,
  html.nav-mobile-open body #phone-mockup,
  body.nav-mobile-open #qn-popup-wrapper,
  body.nav-mobile-open #qn-popup-overlay,
  body.nav-mobile-open #qn-popup-box,
  body.nav-mobile-open .qn-global-cta,
  body.nav-mobile-open #chatbot-fab,
  body.nav-mobile-open #phone-mockup {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.slideout-open body .nav-mobile-js,
  html.slideout-open body .nav-mobile,
  body.slideout-open .nav-mobile-js,
  body.slideout-open .nav-mobile,
  html.nav-mobile-open body .nav-mobile-js,
  html.nav-mobile-open body .nav-mobile,
  body.nav-mobile-open .nav-mobile-js,
  body.nav-mobile-open .nav-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    width: min(86vw, 360px) !important;
    max-width: 360px !important;
    height: 100vh !important;
    height: 100dvh !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 2147483000 !important;
    background: #fff !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    box-shadow: 10px 0 28px rgba(0, 0, 0, 0.18) !important;
    transform: none !important;
  }

  html.slideout-open body #nav-mobile,
  body.slideout-open #nav-mobile,
  html.nav-mobile-open body #nav-mobile,
  body.nav-mobile-open #nav-mobile {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 18px 16px 24px !important;
    background: #fff !important;
    transform: none !important;
  }

  /* QN-MOBILE-MENU-ROW-v2: giữ text và mũi tên cùng một hàng */
  html.slideout-open body #mobile-main-nav,
  body.slideout-open #mobile-main-nav,
  html.nav-mobile-open body #mobile-main-nav,
  body.nav-mobile-open #mobile-main-nav {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html.slideout-open body #mobile-main-nav > li,
  body.slideout-open #mobile-main-nav > li,
  html.nav-mobile-open body #mobile-main-nav > li,
  body.nav-mobile-open #mobile-main-nav > li {
    position: relative !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    width: 100% !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #dce0e0 !important;
  }

  html.slideout-open body #mobile-main-nav > li > a.nav-link,
  body.slideout-open #mobile-main-nav > li > a.nav-link,
  html.nav-mobile-open body #mobile-main-nav > li > a.nav-link,
  body.nav-mobile-open #mobile-main-nav > li > a.nav-link {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    min-height: 64px !important;
    margin: 0 !important;
    padding: 0 56px 0 0 !important;
    border-bottom: 0 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  html.slideout-open body #mobile-main-nav > li > .nav-mobile-trigger,
  body.slideout-open #mobile-main-nav > li > .nav-mobile-trigger,
  html.nav-mobile-open body #mobile-main-nav > li > .nav-mobile-trigger,
  body.nav-mobile-open #mobile-main-nav > li > .nav-mobile-trigger {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 52px !important;
    height: 64px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    line-height: 1 !important;
    color: #1f2933 !important;
    z-index: 2 !important;
  }

  html.slideout-open body #mobile-main-nav > li > .nav-mobile-trigger i,
  body.slideout-open #mobile-main-nav > li > .nav-mobile-trigger i,
  html.nav-mobile-open body #mobile-main-nav > li > .nav-mobile-trigger i,
  body.nav-mobile-open #mobile-main-nav > li > .nav-mobile-trigger i {
    display: block !important;
    margin: 0 !important;
    line-height: 1 !important;
  }

  html.slideout-open body #mobile-main-nav > li > .dropdown-menu,
  body.slideout-open #mobile-main-nav > li > .dropdown-menu,
  html.nav-mobile-open body #mobile-main-nav > li > .dropdown-menu,
  body.nav-mobile-open #mobile-main-nav > li > .dropdown-menu {
    position: static !important;
    float: none !important;
    transform: none !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 0 10px 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  html.slideout-open body #mobile-main-nav > li > .dropdown-menu > li > a,
  body.slideout-open #mobile-main-nav > li > .dropdown-menu > li > a,
  html.nav-mobile-open body #mobile-main-nav > li > .dropdown-menu > li > a,
  body.nav-mobile-open #mobile-main-nav > li > .dropdown-menu > li > a {
    display: block !important;
    padding: 12px 0 12px 14px !important;
    border-bottom: 0 !important;
    line-height: 1.35 !important;
  }

  html.slideout-open body .main-wrap-js,
  html.slideout-open body .slideout-panel,
  html.slideout-open body #main-wrap,
  body.slideout-open .main-wrap-js,
  body.slideout-open .slideout-panel,
  body.slideout-open #main-wrap,
  html.nav-mobile-open body .main-wrap-js,
  html.nav-mobile-open body .slideout-panel,
  html.nav-mobile-open body #main-wrap,
  body.nav-mobile-open .main-wrap-js,
  body.nav-mobile-open .slideout-panel,
  body.nav-mobile-open #main-wrap {
    position: relative !important;
    left: 0 !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
  }
}

/* ==========================================================================
   SECTION 9: BREADCRUMB & PAGE TITLE — Trang chi tiết
   ========================================================================== */

.single-property .page-title-wrap {
  padding-top: 10px !important;
  padding-bottom: 15px !important;
}

.single-property .page-title-wrap .container {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: flex-start !important;
  gap: 8px !important;
}

.single-property .breadcrumb .breadcrumb-item:last-child {
  display: none !important;
}

.single-property .page-title-wrap .container > div.d-flex {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
}

.single-property .breadcrumb {
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 1 !important;
}

.single-property .page-title h1 {
  font-size: 32px !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  line-height: 1.2 !important;
  border-left: none !important;
  padding-left: 0 !important;
  color: #222;
  font-weight: bold;
}

@media (max-width: 991px) {
  .single-property .page-title-wrap {
    display: block !important;
  }
  .single-property .mobile-property-title {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .single-property .page-title h1 {
    font-size: 24px !important;
  }
  .single-property .page-title-wrap {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
}

/* 9.1 H2 sizes on detail page */
.single-property h2,
.single-property .block-title-wrap h2,
.single-property .property-description-content h2 {
  font-size: 24px !important;
  line-height: 1.4 !important;
  margin-bottom: 15px !important;
}

@media (max-width: 768px) {
  .single-property h2,
  .single-property .block-title-wrap h2,
  .single-property .property-description-content h2 {
    font-size: 20px !important;
  }
}

/* 9.2 Center-aligned H2 on mobile */
@media (max-width: 768px) {
  .single-property .property-description-wrap h2[style*="text-align: center"],
  .single-property .property-description-wrap h2[style*="text-align:center"],
  .single-property .property-description-wrap h2.has-text-align-center {
    text-align: center !important;
  }
}


/* ==========================================================================
   SECTION 10: IMAGE OVERFLOW FIX — Tránh ảnh tràn ra sidebar
   ========================================================================== */

.single-property .wp-caption,
.single-property figure.wp-caption,
.single-property figure[style*="width"],
.single-property .property-description-wrap .wp-caption,
.single-property .property-description-content .wp-caption {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box !important;
}

.single-property .wp-caption img,
.single-property figure.wp-caption img,
.single-property .property-description-wrap img,
.single-property .property-description-content img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  object-fit: cover !important;
}


/* ==========================================================================
   SECTION 11: MOBILE FULL-WIDTH CONTENT
   ========================================================================== */

@media (max-width: 768px) {
  .property-description-wrap,
  .block-wrap,
  .block-content-wrap,
  .description-content {
    overflow: visible !important;
  }

  .property-view .row,
  .property-view .col-lg-8,
  .property-view .col-md-12,
  .property-view .block-wrap,
  .property-view .block-content-wrap,
  .property-view .property-description-wrap,
  .property-view .description-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
    border: none !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .property-view .row {
    margin-left: -15px !important;
    margin-right: -15px !important;
    width: calc(100% + 30px) !important;
  }

  .property-view .description-content img,
  .property-view .wp-block-image img {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
    display: block !important;
    object-fit: cover !important;
  }

  .property-view .description-content p,
  .property-view .description-content li,
  .property-view .description-content h2,
  .property-view .description-content h3,
  .property-view .description-content h4 {
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* ==========================================================================
   SECTION 12: POST MEDIA & EMBEDS — Responsive cho toàn bộ bài viết
   ========================================================================== */

@media (max-width: 1024px) {
  html,
  body,
  body.single-post,
  body.single-post #main-wrap,
  body.single-post .main-wrap,
  body.single-post .main-content-wrap,
  body.single-post .bt-content-wrap,
  body.single-post .article-wrap,
  body.single-post .single-article-wrap,
  body.single-post .post-wrap,
  body.single-post .post-header-wrap,
  body.single-post .post-title-wrap,
  body.single-post .post-thumbnail-wrap,
  body.single-post .post-content-wrap {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  body.single-post .post-content-wrap p,
  body.single-post .post-content-wrap div,
  body.single-post .post-content-wrap figure,
  body.single-post .post-content-wrap .wp-caption,
  body.single-post .post-content-wrap .wp-block-image,
  body.single-post .post-content-wrap .wp-block-embed {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body.single-post .post-content-wrap img,
  body.single-post .post-thumbnail-wrap img,
  body.single-post .post-content-wrap video,
  body.single-post .post-content-wrap object,
  body.single-post .post-content-wrap embed {
    max-width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  body.single-post .post-content-wrap iframe,
  body.single-post .post-wrap iframe,
  body.single-post .article-wrap iframe,
  body.single-post .wp-block-embed iframe {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 18px auto !important;
    border: 0 !important;
  }

  body.single-post .post-content-wrap iframe[src*="youtube.com"],
  body.single-post .post-content-wrap iframe[data-src*="youtube.com"],
  body.single-post .post-content-wrap iframe[src*="youtu.be"],
  body.single-post .post-content-wrap iframe[data-src*="youtu.be"],
  body.single-post .wp-block-embed-youtube iframe {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
    border-radius: 12px !important;
  }

  body.single-post .post-content-wrap iframe[src*="google.com/maps"],
  body.single-post .post-content-wrap iframe[src*="maps.google"],
  body.single-post .post-content-wrap iframe[data-src*="google.com/maps"],
  body.single-post .post-content-wrap iframe[data-src*="maps.google"] {
    height: min(72vh, 480px) !important;
    min-height: 320px !important;
    aspect-ratio: 4 / 3 !important;
    border-radius: 8px !important;
  }

  body.single-post .post-content-wrap table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    box-sizing: border-box !important;
  }
}

body iframe[src*="youtube.com"],
body iframe[data-src*="youtube.com"],
body .wp-block-embed-youtube iframe {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  display: block !important;
  margin: 20px auto !important;
}


/* ==========================================================================
   SECTION 13: NAVY BANNER — Banner tên dự án overlay trên ảnh card
   ========================================================================== */

.qn-navy-banner {
  display: none !important; /* WEB OVERLORD FIX: Hide white overlay title on cards */
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 39, 74, 0.85));
  color: #fff;
  padding: 30px 12px 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  z-index: 2;
  pointer-events: none;
}

.qn-navy-banner a {
  color: #fff !important;
  text-decoration: none !important;
  pointer-events: auto;
}


/* ==========================================================================
   SECTION 14: HEADING TITLE SIZE — .title-heading override
   ========================================================================== */

.title-heading {
  font-size: 20px;
}

/* ==========================================================================
   SECTION 15: CARD DECK GRID LAYOUT FIX
   Lý do: Houzez render toàn bộ listing cards trong một thẻ .card-deck duy nhất
   khiến chúng bị hiển thị hàng ngang không xuống dòng (squished/overlap layout).
   Fix: Ép .card-deck hiển thị wrap và định nghĩa lại phần trăm chiều rộng cho từng card.
   ========================================================================== */

.listing-view.grid-view.card-deck {
  display: flex !important;
  flex-flow: row wrap !important;
  margin-left: -15px !important;
  margin-right: -15px !important;
}

.listing-view.grid-view.card-deck .item-listing-wrap.card {
  flex: 0 0 calc(33.333% - 30px) !important;
  max-width: calc(33.333% - 30px) !important;
  margin-left: 15px !important;
  margin-right: 15px !important;
  margin-bottom: 30px !important;
}

@media (max-width: 991px) {
  .listing-view.grid-view.card-deck .item-listing-wrap.card {
    flex: 0 0 calc(50% - 30px) !important;
    max-width: calc(50% - 30px) !important;
  }
}

  /* ==========================================================================
     SECTION 16: GLOBAL PROPERTY CARD OVERRIDES (FIX BULLETS & LAYOUTS)
     - Sửa triệt để lỗi hiện dấu chấm tròn (bullets) của ul/li trên property cards
     - Ẩn thông tin author/date bị lặp ở item-body, chỉ giữ lại ở item-footer
     - Định dạng layout hàng ngang cho thông số tiện ích (item-amenities)
     - Căn chỉnh tuyệt đối nhãn, giá và công cụ đè lên ảnh cho cả Grid & Carousel
     ========================================================================== */

  /* 16.1 Reset danh sách, ẩn dấu chấm tròn trên toàn bộ property cards */
  .item-listing-wrap.card ul.item-price-wrap,
  .item-listing-wrap.card ul.item-tools,
  .item-listing-wrap.card ul.item-amenities {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .item-listing-wrap.card ul.item-price-wrap li,
  .item-listing-wrap.card ul.item-tools li,
  .item-listing-wrap.card ul.item-amenities li {
    list-style: none !important;
    list-style-type: none !important;
    background-image: none !important;
  }

  /* 16.2 Định dạng lại phần tiện ích (Giường, Bồn tắm...) nằm ngang đẹp mắt */
  .item-listing-wrap.card .item-amenities {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px 15px !important;
    margin-bottom: 12px !important;
  }
  .item-listing-wrap.card .item-amenities li {
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    font-size: 14px !important;
  }
  .item-listing-wrap.card .item-amenities li i {
    margin-right: 5px !important;
    font-size: 15px !important;
    color: #1e3a5f !important;
  }

  /* 16.3 Ẩn thông tin tác giả và ngày tháng bị trùng lặp ở phần body */
  .item-listing-wrap.card .item-body .item-author,
  .item-listing-wrap.card .item-body .item-date {
    display: none !important;
  }

  /* 16.4 Tạo thanh footer nằm ngang cực kỳ chuyên nghiệp và tinh tế */
  .item-listing-wrap.card .item-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 15px !important;
    border-top: 1px solid #eee !important;
    background-color: #fcfcfc !important;
    margin-top: 10px !important;
  }
  .item-listing-wrap.card .item-footer .item-author,
  .item-listing-wrap.card .item-footer .item-date {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 13px !important;
    color: #666 !important;
    float: none !important; /* Reset float mặc định của Houzez */
  }
  .item-listing-wrap.card .item-footer .item-author i,
  .item-listing-wrap.card .item-footer .item-date i {
    margin-right: 5px !important;
    color: #888 !important;
  }

  /* 16.5 Căn chỉnh đè (Overlay) nhãn, giá và công cụ lên ảnh đại diện */
  .card-deck .item-listing-wrap.card .item-header {
    position: relative !important;
  }
  .card-deck .item-listing-wrap.card .item-header > .label-featured,
  .card-deck .item-listing-wrap.card .item-header > .labels-wrap,
  .card-deck .item-listing-wrap.card .item-header > .item-price-wrap,
  .card-deck .item-listing-wrap.card .item-header > .item-tools {
    position: absolute !important;
    z-index: 5 !important;
  }
  .card-deck .item-listing-wrap.card .item-header > .label-featured {
    top: 15px !important;
    left: 15px !important;
  }
  .card-deck .item-listing-wrap.card .item-header > .labels-wrap {
    top: 12px !important;
    right: 15px !important;
  }
  .card-deck .item-listing-wrap.card .item-header > .item-price-wrap {
    left: 15px !important;
    bottom: 15px !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
  }
  .card-deck .item-listing-wrap.card .item-header > .item-tools {
    right: 15px !important;
    bottom: 15px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
  }
  .card-deck .item-listing-wrap.card .item-header > .item-tools li span,
  .card-deck .item-listing-wrap.card .item-header > .item-tools li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    background-color: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 13px !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
  }
  .card-deck .item-listing-wrap.card .item-header > .item-tools li span:hover,
  .card-deck .item-listing-wrap.card .item-header > .item-tools li a:hover {
    background-color: #1e3a5f !important;
  }

  /* 16.6 Tương thích Responsive trên thiết bị di động cho mọi loại thẻ (Grid & Carousel) */
  @media (max-width: 768px) {
    .listing-view.grid-view.card-deck .item-listing-wrap.card {
      flex: 0 0 calc(100% - 30px) !important;
      max-width: calc(100% - 30px) !important;
    }
    .item-listing-wrap.card .item-wrap > .d-flex {
      display: block !important;
      height: auto !important;
    }
    .item-listing-wrap.card .item-header,
    .item-listing-wrap.card .item-body {
      width: 100% !important;
      max-width: 100% !important;
    }
    .card-deck .item-listing-wrap.card .item-header > .label-featured {
      top: 10px !important;
      left: 10px !important;
    }
    .card-deck .item-listing-wrap.card .item-header > .labels-wrap {
      top: 8px !important;
      right: 10px !important;
    }
    .card-deck .item-listing-wrap.card .item-header > .item-price-wrap {
      left: 10px !important;
      bottom: 10px !important;
    }
    .card-deck .item-listing-wrap.card .item-header > .item-tools {
      right: 10px !important;
      bottom: 10px !important;
    }
  }
    