.form-search.search-title-building .search-suggest .dropdown-menu {
    max-width: none !important;
}

.tab-phan-loai li a .label-new {
    font-weight: 400;
    font-size: 11px;
    line-height: 20px;
    padding: 5px 10px 5px 10px;
    display: inline-block;
    margin-left: 10px;
    letter-spacing: -0.23px;
    color: #FFFFFF;
    background: #E31C5F;
    border-radius: 3px;
}

.search-bar-bk {
    display: flex;
}

.vp-google-map .box-breadcrumb {
    margin: 20px 0 30px;
}

/* HCM */
.page-template-template-vp-hcm .box-breadcrumb {
    margin: 20px 0 30px;
}

.tax-duong_hcm .box-breadcrumb {
    margin: 20px 0 30px;
}

.tax-dia_diem_hcm .box-breadcrumb {
    margin: 20px 0 30px;
}

/* HN */
.page-template-template-quan-gia .box-breadcrumb {
    margin: 20px 0 30px;
}

.tax-dia_diem .box-breadcrumb {
    margin: 20px 0 30px;
}


.tax-duong .box-breadcrumb {
    margin: 20px 0 30px;
}

#container-with-map {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    width: 100%;
    padding-left: 24px;
}

/* primary-content scroll */

.btn-scroll-quan {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.btn-scroll-quan .scroll-btn-bd:hover {
    background-color: #08234c;
}

.btn-scroll-quan .scroll-btn-bd:hover svg path {
    stroke: #ffffff;
}

/* Tùy chọn: Tùy chỉnh thanh scroll */
#primary-content::-webkit-scrollbar {
    width: 8px;
}

*/ #primary-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

#primary-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

#primary-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/*End primary-content scroll */

/* Map */

#primary-content {
    height: calc(100vh - 81px);
    overflow-y: scroll;
    overflow-x: hidden;
    padding-right: 15px;
    box-sizing: border-box;
    width: 1440px;
}

.map-container {
    position: relative;
    flex: 100%;
    height: calc(100vh - 81px);
    position: sticky;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
}

#map {
    width: 100%;
    height: 100%;
}


.info-panel {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 12px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    font-size: 12px;
    z-index: 1000;
    max-width: 250px;
}

/* Custom InfoWindow */
.custom-info-window {
    width: 408px;
    height: 120px;
    display: flex;
    padding: 0;
    justify-content: center;
    align-items: center;
}

.info-window-meta {
    display: flex;
    align-items: flex-end;
}

.info-window-name-vitri {
    margin-bottom: 20px;
}

.gm-style-iw.gm-style-iw-c {
    padding-left: 0px !important;
}

.gm-style-iw.gm-style-iw-c:has(.custom-info-window) .gm-style-iw-chr {
    display: none;
}

.gm-style-iw.gm-style-iw-c:has(.custom-info-window) .gm-style-iw-chr {
    display: none;
}

.gm-style-iw.gm-style-iw-c:has(.custom-info-window) {
    min-width: 408px !important;
    padding-bottom: 0px;
}

.gm-style-iw-d {
    overflow: hidden !important;
    max-height: none !important;
    height: 115px;
    z-index: 1000 !important;
}

.info-window-content {
    padding: 15px;
    width: 247px;
    box-sizing: border-box;
}

.info-window-image {
    width: 161px;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.info-window-title a {
    font-size: 16px;
    font-weight: bold;
    color: #222531;
    margin-bottom: 5px;
}

.info-window-title a:hover {
    color: #E31C5f;
}

.info-window-address {
    color: #222531;
    font-size: 12px;
    padding-top: 5px;
    opacity: 0.7;
}

.info-window-representative {
    font-size: 13px;
    color: #4285f4;
    font-weight: 500;
    margin-bottom: 8px;
}

.info-window-description {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
    margin-bottom: 8px;
}

.info-window-coords {
    font-size: 11px;
    color: #888;
    font-family: monospace;
}

.info-window-price {
    font-weight: 600;
    font-size: 15px;
    line-height: 24px;
    letter-spacing: -0.23px;
    color: #222531;
}

.info-window-subprice {
    padding-bottom: 4px;
}

/* End Map */


/* list quan */
#list-district {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    gap: 28px;
}

#list-district .nav-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#list-district .scroll-container {
    width: 700px;
    overflow-x: hidden;
}

#list-district .list-tax {
    flex-wrap: nowrap;
    width: 100%;
}

#list-district .list-tax li {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0px;
    float: initial !important;
}

#list-district .list-tax li a {
    margin-right: 10px;
}

#list-district .nav.nav-pills.filter-price li {
    display: inline-block;
    white-space: nowrap;
    margin-right: 0px;
    float: initial !important;
}

#list-district .list-price-filter li a {
    margin-right: 10px;
}


#list-district .list-price-filter-scroll {
    overflow-x: auto;
    /* Scroll ngang khi cần */
    overflow-y: hidden;
    white-space: nowrap;
    /* Không xuống dòng */
}

#list-district .list-price-filter-scroll .filter-price {
    display: inline-flex;
    /* Hiển thị ngang */
    flex-wrap: nowrap;
    /* Không xuống dòng */
}

#list-district .list-price-filter-scroll .filter-price li {
    display: inline-block;
    white-space: nowrap;
}

.scroll-btn-bd {
    width: 36px;
    height: 36px;
    font-size: 24px;
    border: 1px solid #dee2e6;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #495057;
}

/*End list quan */


/* thanh search header */
.search-form-vp-hcm {
    background-color: transparent !important;
}

.elementor-widget-container {
    background-color: transparent !important;
}

.elementor-widget-container .elementor-maisonreal-search-wrapper {
    background: white;
    margin: 0px;
}

.elementor-widget-maisonreal-search-form .elementor-widget-container,
.elementor-widget-maisonreal-search-form-hcm .elementor-widget-container,
.elementor-widget-maisonreal-search-vptg .elementor-widget-container {
    padding: 8px 0;
    padding-top: 20px;
}

.elementor-maisonreal-search-wrapper>div {
    padding-left: 0px;
    padding-right: 32px;
}

.form-search.search-title-building .search-ten {
    font-size: 16px;
}

.elementor-maisonreal-search-wrapper>div {
    padding-left: 0px;
    padding-right: 0px;
}

.elementor-widget-container .search-field .btn-field-filter small {
    color: black;
}

.elementor-widget-container .form-search .search-field .btn-field-filter small span {
    color: black;
}

.elementor-widget-container .nav .nav-item:first-child {
    padding: 0px;
    margin-left: -7px;
}

/* header phần quận đường phường */
.elementor-widget-container #searchResults ul>li>ul>li:first-child,
.elementor-widget-container #searchResults2 ul>li>ul>li:first-child {
    padding: 0;
}

.elementor-widget-container #searchResults2 ul>li:first-child,
.elementor-widget-container #searchResults ul>li:first-child {
    padding: 0;
}

.elementor-widget-container .nav .nav-item:first-child {
    padding: 0px;
}

.elementor-widget-container .form-search .search-field.two-columns .list-filter-tax {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 5px;
    border: solid 1px #CFD6E4;
}

.elementor-widget-container .btn .caret {
    color: black;
}

.elementor-widget-container .search-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 12px;
}

.elementor-widget-container .search-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background-color: #CFD6E4;
}

.elementor-widget-container #searchInput,
.elementor-widget-container #searchInput2 {
    border: none;
    box-shadow: none;
    padding-left: 10px;
}

.elementor-widget-container .nav {
    padding-left: 0;
    margin-bottom: 15px;
    list-style: none;
    border-bottom: solid 1px #CFD6E4;
    padding-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.elementor-widget-container .form-search .search-field.two-columns .list-filter-tax {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin-left: 0px;
    margin-right: 0px;
    border-radius: 5px;
    border: solid 1px #CFD6E4;
}

.form-search .search-field.two-columns .dropdown-menu {
    width: 399px;
    padding: 24px 0px 24px;
}

.form-search .search-field.two-columns .dropdown-menu {
    min-width: none;
    width: 399px;
}

.search-container .form-control {
    border: none;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.search-container .form-control:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.district-name:hover {
    background-color: #e9ecef;
    border-color: #007bff;
}

.district-item:hover {
    background-color: #f8f9fa;
}

.ward-item:hover {
    background-color: #f8f9fa;
}


.filter-pill {
    background-color: #EBEFF8 !important;
    color: black !important;
    border-radius: 5px !important;
    padding: 5px 15px 5px 15px !important;
    font-size: 14px;
    display: flex;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.23px;
    align-items: center;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    position: relative;
}


.filter-pill .btn-close {
    background: none;
    border: none;
    color: black;
    opacity: 0.8;
    font-size: 14px;
    margin-left: 0.25rem;
    cursor: pointer;
    padding: 0;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-weight: 400;
}

.filter-pill .btn-close:hover {
    opacity: 1;
}

.filter-pill .btn-close::before {
    content: "×";
    font-size: 14px;
    line-height: 1;
}

#searchResults ul>li,
#searchResults2 ul>li {
    list-style: none;
}

#searchResults .district-list,
#searchResults2 .district-list {
    padding-left: 10px;
}

/* Navigation Pills Layout */
#filterPills .nav-item:first-child,
#filterPills2 .nav-item:first-child {
    margin-left: -5px;
}

#filterPills,
#filterPills2 {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

#filterPills .nav-item,
#filterPills2 .nav-item {
    margin: 0;
}

/* Search Results Styles */
.search-results {
    width: 100%;
    border-radius: 0.375rem;
    background-color: #fff;
    max-height: 400px;
    overflow-y: scroll;
    padding: 10px;
}

/* No Results Message */
#noResultsMessage {
    font-style: italic;
    color: #6c757d;
}

/* ########################### */
/* ENd header phần quận đường phường */
.elementor-widget-container .elementor-widget-container .tim-theo-field {
    padding-left: 0px;
    flex: 0 0 100%;
    max-width: 65%;
    padding-right: 10px;
}

.elementor-widget-container .tim-theo-ten {
    padding-left: 0px;
    max-width: 49%;
}

.elementor-widget-container .elementor-maisonreal-search-wrapper {
    border: solid 1px #dee2e6;
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.elementor-widget-container .form-search.search-title-building .search-suggest {
    border: none;
}

.elementor-widget-container .form-search .search-icon {
    position: absolute;
    left: 16px;
    top: 58%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #222531;
}

.elementor-widget-container .search-field:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 20px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
    z-index: 1;
}

.elementor-widget-container .search-field {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

/* End thanh search header */

/* google-map search bd*/
.vp-google-map .site-content {
    overflow-x: hidden;
    padding-top: 0px;
    padding-bottom: 0px;
}


.vp-google-map .search-form-vp-hcm {
    display: none !important;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .elementor-maisonreal-search-wrapper {
    background: white;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .search-field .btn-field-filter small {
    color: black;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .form-search .search-field .btn-field-filter small span {
    color: black;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .tim-theo-field {
    padding-left: 0px;
    flex: 0 0 100%;
    max-width: 65%;
    padding-right: 10px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .tim-theo-ten {
    padding-left: 0px;
    max-width: 35%;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .elementor-widget-container {
    padding-top: 20px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .elementor-maisonreal-search-wrapper {
    border: solid 1px #dee2e6;
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .form-search.search-title-building .search-suggest {
    border: none;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .form-search .search-icon {
    position: absolute;
    left: 16px;
    top: 58%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #222531;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .search-field:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 20px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
    z-index: 1;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .search-field {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .form-search.search-title-building .search-suggest .dropdown-menu {
    top: 105% !important;
    left: 0 !important;
    padding: 12px 0 16px;
    position: absolute;
    float: none;
    width: 286% !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;
    max-width: none;
}

/* End google-map search */

/* Google map search bk */


.elementor-widget-maisonreal-search-form-hcm-google-map-bk {
    margin-bottom: 0px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search form {
    display: flex;
    width: 100%;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .elementor-maisonreal-search-wrapper {
    display: block;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form#search-tour-form .search-field.gia::before {
    content: "";
    /* Keep the content property */
    display: block;
    /* Keep display: block or change to something else */
    width: 20px;
    height: 20px;
    background-color: red;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .search-fixed {
    max-width: 100%;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .tim-theo-ten {
    padding-left: 0px;
    max-width: none;
    width: 100%;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk #search-tour-form {
    flex-wrap: nowrap;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search .search-field {
    flex: 0 0 24%;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search .search-field .dropdown-menu {
    margin: 7px 0 0;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search .search-field .dropdown-menu {
    position: absolute;
    left: calc(50% - 72px);
    float: right;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .btn .caret {
    color: black;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .btn .caret {
    color: black;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .list-filter-tax {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .range-price {
    padding: 0px 30px;
}

.form-search .search-field .dropdown-menu {
    left: 30%;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .tz-search-btn {
    width: 100%;
}

.submit-form-bk {
    width: 100%;
    padding: 0px 30px 5px;
    display: none;
}

.submit-form-bk-pc {
    width: 208px;
    height: 45px;
    padding-right: 5px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search .tz-search-btn {
    flex: 0 0 100%;
    max-width: 100%;

}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .elementor-maisonreal-search-wrapper {
    background: white;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .search-field .btn-field-filter small {
    color: black;
    padding-left: 10px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search .search-field .btn-field-filter small span {
    color: black;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .tim-theo-field {
    padding-left: 0px;
    flex: 0 0 100%;
    max-width: 65%;
    padding-right: 10px;
}

.vp-google-map .search-result .list-building {
    padding: 0px;
    margin-left: -27px;
    margin-right: -25px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map .search-result .list-building {
    padding: 0px;
    margin-left: -27px;
    margin-right: -25px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .elementor-maisonreal-search-wrapper {
    border: solid 1px #dee2e6;
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search.search-title-building .search-suggest {
    border: none;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .form-search .search-icon {
    position: absolute;
    left: 16px;
    top: 58%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #222531;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .search-field:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 20px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
    z-index: 1;
}

.elementor-widget-maisonreal-search-form-hcm-google-map-bk .search-field {
    position: relative;
    display: inline-block;
    vertical-align: top;
}


/*End Google map search bk */

/* container hiện thị thông tin nhà */
.sort-view-bd .container {
    width: 100%;
    box-sizing: border-box;
}

.sort-view-bd .container .section-list-item {
    box-sizing: border-box;
    width: 100%;
}

.sort-view {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

/* CSS list hiện thị */

.list-building.list .building-item .name-vitri {
    min-width: 100%;
    padding-top: 18.5px;
}

.list-building.list .building-item .name {
    font-size: 17px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.43px;
}

.list-building.list .building-item .vitri,
.list-building.list .building-item .meta .price {
    font-size: 13px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.08px;
}

.list-building.list .building-item .content {
    display: block;
    position: relative;
    height: 127px;
    padding-bottom: 50px;
}

.list-building.list .building-item .meta {
    position: absolute;
    bottom: 8px;
    left: 24px;
    right: 24px;
}

.list-building.list .building-item .meta .price {
    font-size: 15px;
    font-weight: 600;
    line-height: 24px;
    letter-spacing: -0.23px;
}


.pagination {
    text-align: center;
}

/* End container hiện thị thông tin nhà */

.distance-list {
    display: flex;
    grid-template-columns: 1fr 1fr;
    gap: 8px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.tim-theo-ten-bk {
    width: 75%;
    height: 55px;
}

.search-field-bk .btn {
    width: 100%;
    height: 55px;
}

.search-field-bk .dropdown,
.dropup {
    position: relative;
    width: 25%;
}

.search-bar-bk {
    border: solid 1px #dee2e6;
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px
}

.search-field-bk .btn {
    width: 100%;
    height: 55px;
    border: none;
}

.search-field-bk .btn:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 20px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
    z-index: 1;
}

.title-bk {
    font-size: 12px;
    line-height: 16px;
    color: #212121;
}

.selected-text-bk {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

/* thanh search google place api bán kính */
.search-container {
    position: relative;
    width: 100%;
}

.search-ten {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    margin-top: 4px;
}

.suggestions.show {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
    background-color: #d8d8d8;
}

.suggestion-item.active {
    background-color: #d8d8d8;
}

.suggestion-icon {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #666;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.3;
    word-break: break-word;
}

.suggestion-name strong {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
    padding: 1px 2px;
    border-radius: 2px;
}

.suggestion-address {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}



.no-results {
    color: #999;
}

/* End thanh search google place api bán kính */

.elementor-22103 .elementor-element.elementor-element-6c439499:not(.elementor-motion-effects-element-type-background),
.elementor-22103 .elementor-element.elementor-element-6c439499>.elementor-motion-effects-container>.elementor-motion-effects-layer {
    background-color: none;
}

/* Overlay Controls */
.map-overlay {
    position: absolute;
    top: 167px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 340px;
    max-height: 500px;
}

.overlay-header {
    background: white;
    padding: 5px 8.2px 5px;
    font-weight: bold;
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.overlay-content {
    padding: 0px 20px 20px;
    max-height: 400px;
    width: 339px;
    overflow-y: hidden;
}

.toggle-btn {
    background: none;
    border: none;
    color: #E31C5f;
    cursor: pointer;
    font-size: 16px;
    border-radius: 3px;
    transition: background-color 0.3s;
}

.overlay-content.collapsed {
    display: none;
}

.overlay-category h4 {
    color: #222531;
    font-size: 17px;
    font-weight: 600;
    line-height: 28px;
    letter-spacing: -0.43px;
    padding-bottom: 5px;
    font-family: 'Inter';
    border-bottom: 1px solid #CFD6E4;
    padding-bottom: 15px;
}

.overlay-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.overlay-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

/* Ẩn checkbox mặc định */
.overlay-checkbox-item input[type="checkbox"] {
    display: none;
}

/* Style cho span hiển thị checkbox giả */
.overlay-checkbox-item .checkmark {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-color: white;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

/* Khi được chọn */
.overlay-checkbox-item input[type="checkbox"]:checked+.checkmark {
    background-color: #E31C5f;
    border-color: #E31C5f;
}

/* Dấu check nếu muốn */
.overlay-checkbox-item .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Hiện dấu check khi được chọn */
.overlay-checkbox-item input[type="checkbox"]:checked+.checkmark::after {
    display: block;
}

.overlay-checkbox-item label {
    font-family: 'Inter';
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.23px;
    font-size: 15px;
    cursor: pointer;
    color: #222531;
    flex: 1;
    margin-bottom: 0px;
}

.info-panel {
    padding: 15px;
    background: #ecf0f1;
    border-top: 1px solid #bdc3c7;
}

.info-panel h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

/* Scrollbar styling */
.overlay-content::-webkit-scrollbar {
    width: 6px;
}

.overlay-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.overlay-content::-webkit-scrollbar-thumb {
    border-radius: 3px;
}

/* Hà Nội */
.vp-google-map .search-form-google-map {
    display: none !important;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .elementor-maisonreal-search-wrapper {
    background: white;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .search-field .btn-field-filter small {
    color: black;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .form-search .search-field .btn-field-filter small span {
    color: black;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .tim-theo-field {
    padding-left: 0px;
    flex: 0 0 100%;
    max-width: 65%;
    padding-right: 10px;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .tim-theo-ten {
    padding-left: 0px;
    max-width: 35%;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .elementor-widget-container {
    padding-top: 20px;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .elementor-maisonreal-search-wrapper {
    border: solid 1px #dee2e6;
    border-radius: 8px;
    padding-top: 5px;
    padding-bottom: 5px;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .form-search.search-title-building .search-suggest {
    border: none;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .form-search .search-icon {
    position: absolute;
    left: 16px;
    top: 58%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #222531;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .search-field:before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 20px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.15);
    transform: translateY(-50%);
    z-index: 1;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .search-field {
    position: relative;
    display: inline-block;
    vertical-align: top;
}

.vp-google-map .elementor-element-maisonreal_search_form_hn .form-search.search-title-building .search-suggest .dropdown-menu {
    top: 105% !important;
    left: 0 !important;
    padding: 12px 0 16px;
    position: absolute;
    float: none;
    width: 286% !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;
    max-width: none;
}

.vp-google-map .footer-maison {
    display: none !important;
}

/* Thanh D con chinh */
ul.nav.nav-pills.filter-price {
    padding-bottom: 10px;
}

.page-content-head {
    margin-bottom: 20px;
}

.site-main-bd .search-filter-mobile-bd {
    display: none;
}

.search-filter-mobile {
    display: none;
}

.jslider-value,
.jslider-value-to {
    display: none !important;
}

.vp-google-map #content {
    min-height: auto;
}

/* Map cho từng tòa nhà */

.single-hcm-map {
    position: relative;
    width: 100%;
    height: 358px;
}

.single-hn-map {
    position: relative;
    width: 100%;
    height: 358px;
}

#single-detail-map {
    border-radius: 10px;
}

.marker-label {
    position: relative !important;
    left: 0px !important;
    top: -33px !important;
    white-space: normal !important;
    max-width: 80px !important;
    word-wrap: break-word !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 2px 5px !important;
    border-radius: 3px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
    text-align: left !important;
}

.place-card {
    position: absolute;
    top: 20px;
    left: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    z-index: 1;
    border: 1px solid rgba(0, 0, 0, 0.12);
    font-family: 'Inter'
}

.place-card h3.heading {
    margin: 0 0 8px 0 !important;
    font-size: 18px;
    font-weight: 500;
    color: #202124;
    line-height: 1.3;
    font-family: 'Inter'
}

.place-card p {
    margin: 0 0 16px 0 !important;
    color: #5f6368;
    font-size: 14px;
    line-height: 1.4;
}

.place-card #directions-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.place-card #directions-link:hover {
    background: #1557b0;
}

#single-detail-map {
    width: 100%;
    height: 100%;
}


@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;
        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-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;
        border-radius: 50px;
        padding: 0px 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;
    }

    .tab-phan-loai li a {
        color: #fff;
        background: #08234C;
        padding: 0px 8px;
        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;
        margin-left: -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;
        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;
        margin-right: -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;
        margin-right: -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;
    }

    .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;
        width: 200px;
        height: 295px;
        overflow-y: auto;
    }

    .overlay-header {
        margin-left: 153px;
    }

    .submit-form-bk-pc {
        display: none;
    }

    .submit-form-bk {
        width: 100%;
        padding: 0px 30px 5px;
        display: flex;
    }

    .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;
    }
}

@media (max-width: 768px) {
    #dia_diem .container h3.heading {
        padding-left: 0px !important;
    }

    .single-hcm-map {
        height: 358px;
    }

    #dia_diem .container {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: auto;
        margin-right: auto;
    }

    .place-card {
        position: absolute;
        top: 10px;
        left: 10px;
        right: auto;
        bottom: auto;
        min-width: auto;
        max-width: 250px;
        padding: 6px 10px;
        margin: 0;
        height: auto;
        min-height: auto;
    }

    .place-card h3.heading {
        font-size: 14px;
        margin: 0 0 2px 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        line-height: 1.2;
        padding-left: 0px !important;
    }

    .place-card p {
        font-size: 12px;
        margin: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left;
        line-height: 1.2;
        margin-bottom: 0px !important;
    }

    .place-card #directions-link {
        display: none;
    }
}
