@media (max-width: 980px) {

  html {
    margin-top: 0px !important;
  }

  html #wpadminbar {
    display: none;
  }

  body.popup-open {
    overflow: hidden;
  }

  .elementor-widget-container .tim-theo-ten {
    padding-left: 0px;
    min-width: 100%;
  }

  .tim-kiem-bando-bk {
    min-width: 60% !important;
  }

  .tab-phan-loai li a .label-new {
    display: none;
  }

  .search-filter-mobile,
  .search-filter-mobile-bd {
    display: block !important;
    border-left: 1px solid #ccc;
    padding-left: 10px;
    width: 25%;
  }

  .form-search.search-title-building {
    display: flex;
    /* gap: 10px; */
    align-items: center;
    position: relative;
  }

  .elementor-widget-container .form-search .search-icon {
    left: 10px;
  }

  .form-search.search-title-building .search-ten {
    padding: 12px 10px 12px 40px;
  }

  .elementor-widget-container .form-search.search-title-building .search-suggest {
    width: 75%;
  }

  .search-filter-mobile .filter-label,
  .search-filter-mobile-bd .filter-label {
    color: #ccc;
    font-size: 15px;
    font-weight: 400;
  }

  .search-filter-mobile .filter-icon-mobile,
  .search-filter-mobile-bd .filter-icon-mobile-bd {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .search-filter-mobile .filter-icon-mobile img,
  .search-filter-mobile-bd .filter-icon-mobile-bd img {
    width: 20px;
    height: 20px;
  }

  .form-search.search-title-building .search-suggest {
    position: static;
  }

  .filter-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    height: 80px;
    border-bottom: solid 1px #CFD6E4;
  }

  /* #filter-form {
    padding-top: 25px
  } */

  .filter-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    margin-left: 60px;
  }

  .filter-close,
  .filter-close-bd {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .filter-close img,
  .filter-close-bd img {
    width: 20px;
    height: 20px;
  }

  .popup-search-filter,
  .popup-search-filter-bd {
    display: block;
    position: fixed !important;
    /* z-index: 1000; */
    background: #fff;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100000;
  }

  .form-search {
    padding: 20px 20px 0px;
  }

  .page-content-main-with-map-bk .form-search {
    padding: 0px;
  }

  .form-search.four-columns .quan {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-right: none;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
  }

  .elementor-widget-container .quan:before {
    content: none !important
  }

  .form-search.four-columns .gia {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-left: none;
    border-right: none;
  }

  .form-search.four-columns .hang-vp {
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-left: none;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }

  .form-search.four-columns .tz-search-btn {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
  }

  .form-search .search-field.two-columns .dropdown-menu {
    width: 350px;
  }

  .search-field .dropdown-backdrop {
    z-index: auto !important;
  }

  .form-search .search-field .dropdown-menu {
    width: 350px;
    left: 50%;
  }

  /* Thành D 7/7/2025 */
  .tab-phan-loai {
    position: fixed;
    background: #08234C;
    bottom: 0;
    left: 21px;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    height: 55px;
    max-width: 285px;
    /* Tăng từ 261px lên 285px */
    border-radius: 50px;
    padding: 0px 15px;
    /* Tăng padding từ 10px lên 15px */
    width: fit-content;
    margin-bottom: 27px;
  }

  .tab-phan-loai li {
    white-space: nowrap;
    margin-right: 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .tab-phan-loai li:not(:last-child) {
    margin-right: 8px;
    /* Tăng từ 5px lên 8px */
  }

  .tab-phan-loai li a {
    color: #fff;
    background: #08234C;
    padding: 0px 8px;
    /* Thêm padding ngang cho các tab không active */
    font-size: 14px !important;
    transition: all 0.3s ease;
  }

  .tab-phan-loai li a:after {
    content: none !important;
  }

  .tab-phan-loai li a .icon {
    margin-right: 0px;
  }

  .tab-phan-loai li a.active {
    font-weight: normal;
  }

  /* Child 1 - Tab đầu tiên */
  .tab-phan-loai li:nth-child(1) a.active {
    color: #fff;
    background: #1E4277;
    height: 55px;
    border-radius: 50px;
    padding: 0 18px;
    /* Tăng từ 15px lên 18px */
    margin-left: -15px;
    /* Tăng từ -10px lên -15px */
    z-index: 1;
    position: relative;
  }

  /* Child 2 - Tab giữa */
  .tab-phan-loai li:nth-child(2) a.active {
    color: #fff;
    background: #1E4277;
    height: 55px;
    border-radius: 50px;
    padding: 0 18px;
    /* Tăng từ 15px lên 18px */
    z-index: 2;
    position: relative;
  }

  /* Child 3 - Tab cuối */
  .tab-phan-loai li:nth-child(3) a.active {
    color: #fff;
    background: #1E4277;
    height: 55px;
    border-radius: 50px;
    padding: 0 18px;
    /* Tăng từ 15px lên 18px */
    margin-right: -15px;
    /* Tăng từ -10px lên -15px */
    z-index: 1;
    position: relative;
  }

  /* Điều chỉnh margin khi child 2 active để không bị đè */
  .tab-phan-loai li:nth-child(2) a.active {
    margin-left: -8px;
    /* Tăng từ -5px lên -8px */
    margin-right: -8px;
    /* Tăng từ -5px lên -8px */
  }

  .tab-phan-loai li a:hover,
  .tab-phan-loai li a:focus,
  .tab-phan-loai li a:active {
    color: #fff;
  }

  .tab-btn img {
    display: none;
  }

  /* tạm thời ẩn ở mobile */
  /* .tab-phan-loai li:not(:first-child) {
    display: none;
  } */

  .site-main-bd .box-breadcrumb,
  .site-main-bd .page-content-head>h1,
  .site-main-bd .page-content-head .short-description,
  .site-main-bd .page-content-main-with-map {
    display: none;
  }

  #primary-content {
    padding: 0px 15px;
    width: 100%;
    height: 100%;
    overflow-y: inherit;
    overflow-x: inherit;
  }

  #container-with-map {
    padding: 0px;
  }

  .vp-google-map {
    overflow: hidden;
  }

  .elementor-widget-maisonreal-search-form-hcm-google-map .form-search.search-title-building .search-suggest .dropdown-menu {
    top: 100% !important;
    left: 0 !important;
    padding: 12px 0 16px;
    position: absolute;
    float: none;
    width: 100% !important;
    overflow: auto;
    background: #FFFFFF;
    border: 1px solid rgba(34, 37, 49, 0.16);
    box-shadow: 0px 16px 32px rgba(34, 37, 49, 0.24);
    border-radius: 8px;
    margin-top: 5px;
  }

  .quan-gia-page .page-content-head {
    margin-bottom: 0px;
  }

  .quan-gia-page .form-search .search-field+.search-field {
    padding-top: 0px;
  }

  .elementor-widget-maisonreal-search-form-hcm-google-map .tim-theo-field {
    max-width: 100%;
    padding-right: 0px;
    z-index: 100000;
  }

  #container-with-map {
    display: block;
  }

  .map-container {
    height: calc(100vh - 180px);
    position: relative;
  }

  .showResult {
    display: none;
  }

  .map-overlay {
    bottom: 100px;
  }

  .sort-view-bd {
    display: none;
  }

  .elementor-widget-maisonreal-search-form-hcm-google-map-bk .elementor-widget-container {
    padding-top: 20px;
  }

  .elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search.search-title-building {
    position: static;
  }

  .elementor-widget-maisonreal-search-form-hcm-google-map-bk .jslider .jslider-value.jslider-value-to,
  .elementor-widget-maisonreal-search-form-hcm-google-map-bk .jslider .jslider-value {
    top: 85px !important;
  }

  .elementor-widget-maisonreal-search-form-hcm-google-map .jslider .jslider-value.jslider-value-to,
  .elementor-widget-maisonreal-search-form-hcm-google-map .jslider .jslider-value {
    top: 85px !important;
  }

  .vp-google-map .jslider .jslider-value.jslider-value-to,
  .vp-google-map .jslider .jslider-value {
    top: 85px !important;
  }

  .elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search .search-field .dropdown-menu {
    width: 360px;
    left: -18%;
    z-index: 100000;
  }

  .form-search .search-field .note .note-item {
    font-size: inherit;
  }

  /* Thành Đinh 8/7/2025 */
  .vp-google-map .elementor-element-maisonreal_search_form_hn .form-search.search-title-building .search-suggest .dropdown-menu {
    top: 100% !important;
    left: 0 !important;
    padding: 12px 0 16px;
    position: absolute;
    float: none;
    width: 100% !important;
    overflow: auto;
    background: #FFFFFF;
    border: 1px solid rgba(34, 37, 49, 0.16);
    box-shadow: 0px 16px 32px rgba(34, 37, 49, 0.24);
    border-radius: 8px;
    margin-top: 5px;
  }

  .vp-google-map .elementor-element-maisonreal_search_form_hn .tim-theo-field {
    max-width: 100%;
    padding-right: 0px;
    z-index: 9999;
  }

  .vp-google-map .search-filter-mobile {
    display: block !important;
    border-left: 1px solid #ccc;
    padding-left: 10px;
    width: 25%;
  }

  .vp-google-map .search-filter-mobile .filter-label {
    color: #ccc;
    font-size: 15px;
    font-weight: 400;
  }

  .vp-google-map .search-filter-mobile .filter-icon-mobile {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .vp-google-map .search-filter-mobile .filter-icon-mobile img {
    width: 20px;
    height: 20px;
  }

  .vp-google-map .vp-google-map .popup-search-filter {
    position: fixed !important;
    /* z-index: 1000; */
    background: #fff;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100000;
  }


  .vp-google-map .filter-close {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
  }

  .vp-google-map .filter-close img {
    width: 20px;
    height: 20px;
  }

  .elementor-maisonreal-search-wrapper>div+div:before {
    margin: 0px;
  }

  .vp-google-map .elementor-element-maisonreal_search_form_hn .tim-theo-ten {
    padding-left: 0px;
    max-width: 100%;
  }

  .vp-google-map .footer-maison {
    display: none !important;
  }

  .map-overlay {
    max-height: 44px;
    z-index: 99999;
    position: absolute;
    top: 165px;
    backdrop-filter: none;
    box-shadow: none;
    background: none
  }

  /* Thành CSS */
  .overlay-content {
    background: white;
    /* border-radius: 15px; */
    width: 200px;
    height: 295px;
    overflow-y: auto;
  }

  .overlay-header {
    /* border-radius: 10px 10px 0px 0px; */
    /* margin-bottom: 4px; */
    margin-left: 153px;
  }

  /* .tab-phan-loai {
    margin-bottom: 27px;
  } */

  .submit-form-bk-pc {
    display: none;
  }

  .submit-form-bk {
    width: 100%;
    padding: 0px 30px 5px;
    display: flex;
  }

  /* .elementor-widget-container #searchResults, */
  .elementor-widget-container .search-results {
    height: 254px;
    overflow-y: scroll;
    width: 100%;
  }

  .toggle-btn svg {
    height: 14px;
    width: 14px;
  }

  .overlay-header {
    width: 40px;
    height: 40px;
    float: right;
    text-align: center;
    display: block;
    margin: 0 auto;
    padding: 0;
  }

  .overlay-content {
    float: right;
  }

  .toggle-btn {
    width: 40px;
    margin: 0 auto;
    height: 40px;
    display: block;
    text-align: center;
    padding: 0px;
  }


}