body *:not(.fa):not(.fas):not(.far):not(.fal):not(.fab):not(.fad){
    font-family: 'Be Vietnam Pro', sans-serif !important;
}

h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}
.menu-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
}

/* Panel mặc định chiếm toàn bộ */
.menu-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

/* Panel cấp 0 hiện tại */
.menu-panel[data-level="0"] {
    z-index: 1;
    transform: translateX(0%);
}

/* Panel cấp 1 ẩn bên phải ban đầu */
.menu-panel[data-level="1"] {
    z-index: 2;
    transform: translateX(100%);
}

/* Khi active, panel cấp 0 trượt ra trái */
.menu-slider.show-level-1 .menu-panel[data-level="0"] {
    transform: translateX(-100%);
}

/* Khi active, panel cấp 1 trượt vào */
.menu-slider.show-level-1 .menu-panel[data-level="1"] {
    transform: translateX(0%);
}

/* Panel cấp 2 ẩn ban đầu bên phải */
.menu-panel[data-level="2"] {
    z-index: 3;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

/* Khi active, panel cấp 1 trượt ra trái */
.menu-slider.show-level-2 .menu-panel[data-level="1"] {
    transform: translateX(-100%);
}

/* Khi active, panel cấp 2 trượt vào */
.menu-slider.show-level-2 .menu-panel[data-level="2"] {
    transform: translateX(0%);
}


.has-submenu{
    margin: 0 !important;
}
.filter-groups-container::-webkit-scrollbar {
    width: 4px; 
}

.filter-groups-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2); 
    border-radius: 4px;
}

.filter-groups-container::-webkit-scrollbar-track {
    background: transparent; 
}
.price-tab-content {
    display: none;
}
.price-tab-content.active {
    display: block;
}

.btn-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}
a{
    text-decoration: none !important;
}
.breadcrumb {
    font-size: 16px !important;
    padding: 0 !important;
    background: transparent !important;
}

.page-item .page-link{
    display: flex;
    text-align: center;
    padding: 15px !important;
    align-items: center;
    vertical-align: middle;
    justify-content: center;
}
.page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    cursor: default;
    text-align: center
}

.featured-project-info{
    padding: 15px;
}
.mega-menu{
    z-index: 10 !important;
}
.search-suggestions-container{
    z-index: 9 !important;
}
.is-invalid {
    border-color: red !important;
}

.is-valid {
    border-color: green !important;
}

label.is-invalid {
    color: red;
    margin: 0px;
}

/* Cho phép cuộn nhưng ẩn thanh scrollbar */
.custom-scroll {
    overflow: auto;                        /* vẫn cuộn được */
    -ms-overflow-style: none;             /* IE, Edge */
    scrollbar-width: none;                /* Firefox */
}

.custom-scroll::-webkit-scrollbar {
    display: none;                        /* Chrome, Safari */
}
.connectivity-section .timeline-item::before {
    display: none !important;
}
#main-menu-list .mega-menu, #main-menu-list .simple-menu{
    width: 100%;
    height: 100%;
    background-color: transparent;
    border: none;
}
#main-menu-list .mega-menu > .container, #main-menu-list .simple-menu > .container {
    background: white;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
#main-menu-list .featured-project-card {
    display: block;
    text-decoration: none;
    color: var(--text-dark);
    border-radius: 0px;
    overflow: hidden;
    background-color: var(--body-bg);
    transition: box-shadow 0.3s ease;
}
#main-menu-list .featured-project-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#main-menu-list .featured-project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
#main-menu-list .featured-project-info {
    padding: 15px;
}
#main-menu-list .featured-project-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}
#main-menu-list .featured-project-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal-content {
    position: relative !important; /* để absolute dựa vào đây */
}

.modal-close-btn {
    position: absolute !important;
    top: 15px !important;
    right: 25px !important;
    z-index: 10001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(3px);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 28px;
    color: #aaa;
    border: none !important;
    cursor: pointer;
    width: 40px;
    height: 40px;
}
.ex-phong-thuy{
    text-decoration: underline !important; 
    font-weight: 500 !important;
}
/* Biến container toast thành flex row */
.swal2-toast {
    max-width: max-content;
    display: flex !important;
    align-items: center !important; /* căn giữa dọc icon và title */
}
.swal2-toast .swal2-title {
    margin: 0 !important;        /* bỏ margin mặc định của h2 */
    padding: 0 !important;
    font-size: 1rem;             /* chỉnh font-size nhỏ gọn hơn nếu muốn */
}

.hero-gallery-desktop {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 450px;
    width: 100%;
    gap: 8px;
}

.hero-gallery-item.main-image {
    grid-row: 1 / 3;
}

/* Trường hợp chỉ có 1 ảnh -> full width */
.hero-gallery-desktop.gallery-count-0,
.hero-gallery-desktop.gallery-count-0 .hero-gallery-item.main-image,
.hero-gallery-desktop.gallery-count-0 .hero-gallery-item img,
.hero-gallery-desktop.gallery-count-1,
.hero-gallery-desktop.gallery-count-1 .hero-gallery-item.main-image,
.hero-gallery-desktop.gallery-count-1 .hero-gallery-item img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
    grid-template-columns: 1fr; /* override grid */
    grid-template-rows: 1fr;
}

/* Trường hợp có đúng 1 ảnh phụ (tổng 2 ảnh) -> chia đôi */
.hero-gallery-desktop.gallery-count-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
    height: 450px;
    gap: 8px;
}

.hero-gallery-desktop.gallery-count-2 .hero-gallery-item {
    width: 100%;
    height: 100%;
}

.hero-gallery-desktop.gallery-count-2 .hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-column h4{
    font-size: 14px;
    font-weight: 700;
    color: var(--text-light);
    margin: 0 0 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
}
.mega-menu-group-title {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #f0f0f0;
    padding-top: 5px;
}
body.scroll-locked {
    overflow: hidden !important;
    padding-right: 15px !important;
}
.mega-menu-col-3-content {
    max-height: 350px !important;
    padding-right: 15px !important;
    padding-left: 5px !important;
}
.mega-menu {
    opacity: 0;
    display: none; /* ẩn luôn khi chưa active */
}

.mega-menu.is-active {
    display: block;               /* hiện ra */
    animation: fadeIn 0.3s ease;  /* hiệu ứng fade-in */
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.menu-overlay.is-active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}
.product-skeleton {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.product-skeleton .skeleton-content{
    width: 100%;
    height: 100%;
}

.product-skeleton .skeleton {
    background: #e2e2e2;
    border-radius: 4px;
    margin-bottom: 8px;
    position: relative;
    overflow: hidden;
}

.product-skeleton .skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

.product-skeleton .skeleton-image {
    height: 180px;
}

.product-skeleton .skeleton-title {
    height: 20px;
    width: 70%;
}

.product-skeleton .skeleton-text {
    height: 16px;
    width: 100%;
}

.product-skeleton .skeleton-text.short {
    width: 40%;
}

.project-skeleton {
    display: flex;
    background-color: rgb(255, 255, 255);
    gap: 25px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
}

/* hiệu ứng shimmer */
.project-skeleton .skeleton {
    background: #e2e2e2;
    border-radius: 4px;
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
}

.project-skeleton .skeleton::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 1.5s infinite;
}

.project-skeleton .skeleton-image-left {
    width: 300px;
    height: 200px;
    border-radius: 8px;
    flex-shrink: 0;
}

.project-skeleton .skeleton-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-skeleton .skeleton-status {
    width: 90px;
    height: 30px;
    border-radius: 50px;
    display: block;
}

.project-skeleton .skeleton-title {
    width: 50%;
    height: 25px;
}

.project-skeleton .skeleton-text {
    width: 90%;
    height: 18px;
}

.project-skeleton .skeleton-price {
    width: 150px;
    height: 18px;
    margin-top: auto; /* luôn nằm dưới cùng */
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    background-color: var(--white-color) !important;
    transition: transform 0.3s ease-in-out;
}
.main-header.header--hidden {
    transform: translateY(-100%);
}
.footer-widget p.widget-title::after {
    background-color: var(--text-color);
}
.province-old-list{
    height: fit-content !important;
    padding-left: 25px !important;
}
.province-old-list .province-old-item a{ 
    font-weight: 400 !important;
    pointer-events: none !important;
    padding: 3px 6px 3px 3px !important;
}
.province-old-list .province-old-item a:hover {
    color: inherit !important;
    text-decoration: none !important;
    background: none !important;
}

.province-old-list-mobile{
    display: block !important;
    height: fit-content !important;
    padding: 0 !important;
}
.province-old-list-mobile .province-old-item-mobile{
    margin: 0 !important;
}
.province-old-list-mobile .province-old-item-mobile a{ 
    font-weight: 400 !important;
    pointer-events: none !important;
    padding: 6px 20px 6px 40px !important;
    margin: 0 !important;
    border-bottom: none;
}
.suggestions-list > li, .suggestions-list > li > a{
    display: block !important;
}
.suggestions-list > li > a{
    width: 100% !important;
}
.legacy-list{
    padding-right: 0;
    padding-left: 0;
}
.legacy-list > li, .legacy-list > li > a{
    display: block !important;
}
.legacy-list > li > a{
    width: 100% !important;
}
/* Thanh cuộn siêu mỏng */
.search-suggestions-container::-webkit-scrollbar {
    width: 4px;  /* chỉnh nhỏ lại, 2px cũng được */
}

.search-suggestions-container::-webkit-scrollbar-track {
    background: transparent; /* trong suốt */
}

.search-suggestions-container::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2); /* màu nhạt */
    border-radius: 10px;
}

.search-suggestions-container::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,0.4);
}
[v-cloak] {
    display: none !important;
}

.navbar {
    position: fixed;
    top: -70px;
    left: 0;
    width: 100%;
    background: var(--white-color);
    display: flex;
    justify-content: center;
    transition: top 0.4s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding-left: 20px;
    padding-right: 20px;
}

.navbar.show {
    top: 0; /* Hiện ra */
}

.navbar ul {
list-style: none;
display: flex;
margin: 0;
padding: 5px 0;
justify-content: start;
flex-wrap: nowrap; /* không xuống hàng */
overflow-x: auto; /* cuộn ngang khi tràn */
    -webkit-overflow-scrolling: touch; /* mượt trên iOS */
    scrollbar-width: none; /* ẩn thanh cuộn Firefox */
}

.navbar ul::-webkit-scrollbar {
    display: none; /* ẩn thanh cuộn Chrome/Safari */
}

.navbar ul li {
margin: 0 15px;
white-space: nowrap; /* chữ không bị ngắt dòng */
}

.navbar ul li a {
text-decoration: none;
color: var(--text-dark);
    font-weight: 500 !important;
    font-size: 16px;
padding: 6px 10px;
transition: color 0.3s;
display: inline-block;
}

.navbar ul li a.active {
background: var(--primary-color);
color: #ffffff;
border-radius: 8px;
}

.carousel-track.slides-1 .carousel-slide {
    flex: 0 0 100%;
}

.carousel-track.slides-2 .carousel-slide {
    flex: 0 0 50%;
}

.subdivision-carousel-track.slides-1 .subdivision-card {
    flex: 0 0 100%;
    max-height: 400px;
}

.footer-widget p.widget-title{
    color: var(--text-color);
    padding-bottom: 10px;
}
.accordion-header .svg-prod-detail {
    transition: transform 0.3s ease !important;
}

.accordion-item.active .svg-prod-detail {
    transform: rotate(180deg) !important;
}

.filter-close-btn{
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-light);
    cursor: pointer;
    padding: 0.5rem;
    margin-left: auto;
    line-height: 1;
    font-weight: 300;
}
.btn-primary {
    background-color: var(--primary-color) !important;
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
    border-color: green !important;
}

.btn-primary:hover{
    background-color: var(--secondary-color) !important;
}

.btn-primary:focus,
.btn-primary:active:focus,
.btn-primary.active:focus {
    box-shadow: none !important; /* bỏ viền xanh */
    outline: none !important;    /* bỏ outline mặc định */
}

.carousel-wrapper, .subdivision-carousel-wrapper, .amenities-mobile-layout .horizontal-scroll-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-wrapper::-webkit-scrollbar, 
.subdivision-carousel-wrapper::-webkit-scrollbar, 
.amenities-mobile-layout .horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

/* .explore-section {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    gap: 40px;
    align-items: center;
} */

/* Khi có cả 2 khối */
.explore-section.has-both {
    /* display: grid;
    grid-template-columns: 1fr 1fr; */
}

/* Khi chỉ có 1 khối */
.explore-section.has-one {
    display: block;
}

/* Trường hợp chỉ có explore-by-type → căn giữa */
.explore-section.has-one .explore-by-type {
    text-align: center;
}

.explore-section.has-one .explore-by-type .type-tags-container {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Khi chỉ có 1 khối */
.seo-faq-section.has-one {
    display: block;
}

/* Trường hợp chỉ có explore-by-type → căn giữa */
.seo-faq-section.has-one .section-title{
    text-align: center;
}

.custom-range-input{
    margin-bottom: 10px;
}

.filter-tag-area{
    display: block;
    padding: 10px 20px;
}
.checkbox-group > div > label {
    margin-bottom: 0;
}

.developer-card:hover .developer-logo{
    max-height: 100%;
}

.amenity-card-mobile .amenity-overlay {
    padding: 10px;
}

.section-title{
    border-bottom: none;
}

.mobile-main-amenity, .amenity-card-mobile{
    aspect-ratio: 1/1;
}

.mobile-main-amenity > img {
    object-fit: cover;
}

.amenity-card-mobile > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.toc-list, .toc-list ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

.toc-list li {
    margin: 4px 0;
}

.toc-list ul {
    padding-left: 20px; /* thụt vào cho cấp con */
}
.toc-list a {
    font-size: 13pt;
}

.toc-container ul {
    margin-bottom: 0;
}

.toc-list .toc-level-2 {
    font-weight: 800; /* đậm nhất */
}

.toc-list .toc-level-3 {
    font-weight: 500; /* đậm vừa */
}

.breadcrumb{
    display: block;
}

.project-overview-section,  .connectivity-section, .payment-schedule-section, 
.handover-standards-section, .subdivision-section, .floor-plan-section
.amenities-section, actual-photos-section, .project-ckeditor-section{
    padding: 30px 0;
}

.price-summary-cards {
    grid-template-columns: repeat(3, 1fr) !important;
}

.swal2-container {
    z-index: 20000 !important; /* cao hơn bootstrap modal (1050) */
}

.drawer-actions{
    padding-right: 10px;
}

.col-1-list {
    max-height: 360px;
    overflow-y: auto;
}

/* Tùy chọn: Làm đẹp thanh cuộn trên Chrome/Safari */
.col-1-list::-webkit-scrollbar {
    width: 6px;
}
.col-1-list::-webkit-scrollbar-track{
    background: #f1f1f1;
    border-radius: 10px;
}
.col-1-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.col-1-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.col-1-list .mega-menu-loaihinh{
    height: fit-content;
}

.image-gallery-popup{
    padding: 0 !important;
}
.image-gallery-popup .gallery-container{
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
}
.group-title{
    font-size: 13px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    margin: 15px 0 10px 0;
    padding-bottom: 5px;
    padding-top: 5px;
}

.search-form button{
    height: 60px;
}

.card-icon { 
    width: 18px; /* Hoặc 1.1em */ 
    height: 18px; /* Hoặc 1.1em */ 
    vertical-align: middle; /* Giúp icon thẳng hàng với text */ 
    margin-right: 4px; /* Tạo khoảng cách nhỏ với số liệu đi kèm */ 
}

.product-card-specs-inline{
    gap: 5px;
}

.product-card-image {
    aspect-ratio: 16/9;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.pagination{
    flex-wrap: wrap;
}

.main-nav{
    margin-right: 90px;
    position: static
}

.dropdown-toggle::after{
    display: none;
}

.lc-modal-container {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}
.lc-modal-content {
    background-color: white;
    padding: 25px;
    border-radius: 12px;
    width: 100%;
    /* ĐÃ SỬA: Tăng max-width */
    max-width: 1100px; 
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    position: relative;
}
.lc-modal-content h3 {
    margin: 0 0 20px 0;
    color: var(--secondary-color);
}
.lc-modal-close-btn {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px; height: 40px;
}

.company-info .custom-name, .custom-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.image-gallery-popup .gallery-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 48px; /* 👈 Kích thước tròn */
    height: 48px;
    background: rgba(0, 0, 0, 0.3) !important; /* 👈 Nền đen mờ */
    border: none;
    border-radius: 50%; /* 👈 Làm tròn hoàn toàn */
    color: #fff;
    font-size: 28px; /* Giảm nhẹ để vừa trong vòng tròn */
    font-weight: 400;
    text-align: center; /* 👈 Căn giữa ngang */
    cursor: pointer;
    z-index: 1001;
    opacity: 0.9;
    transition: all 0.25s ease;
}

.tabs-wrapper {
width: 100%;
max-width: 100%;
overflow-x: auto;          /* ✅ cho phép cuộn ngang */
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
scroll-behavior: smooth;
margin-bottom: 20px;
}

.tabs-wrapper::-webkit-scrollbar {
    height: 5px; /* mỏng vừa đủ để kéo */
}

.tabs-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

.tabs-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 4px;
}

.tabs {
display: flex;
flex-wrap: nowrap;
gap: 15px;
padding: 0 10px 10px;
width: 100%;
min-width: max-content;
}

.tab-item {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 6px 12px;
border-radius: 6px;
text-decoration: none;
background: #ffffff;
color: #111111;
border: 1px solid rgba(0,0,0,0.06);
font-weight: 500;
white-space: nowrap;
transition: background .18s ease, color .18s ease, transform .08s ease;
user-select: none;
cursor: pointer;
}

.tab-item:hover,
.tab-item:focus {
box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.tab-item.active {
background: var(--primary-color);
color: #ffffff;
border-color: var(--primary-color);
}

.search-suggestions-container{
    margin-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    padding: 0.5rem 0 0 0;
}
.search-form input{
    width: 100%;
}

.panel-list li a{
    border-bottom: none !important;
    padding-bottom: 5px !important;
}
.level-2-list > li{
    border-bottom: none !important;
}
@media (max-width: 480px) {
.tab-item { padding: 5px 10px; font-size: 14px; }
}

.results-top-bar {
width: 100%;
max-width: 100%;;
}

.result-tabs {
display: flex;
gap: 8px;
overflow-x: auto; 
white-space: nowrap; 
scrollbar-width: none; 
flex-wrap: nowrap;
overflow-y: hidden; 
}

.result-tabs::-webkit-scrollbar {
display: none;  
}

.accordion-header h3:first-child {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 15px;
}
.section-title{
    line-height: 1.5;
}
.project-card-link h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-dark);
}
.lc-summary-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--secondary-color);
}
.timeline-card h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.amenity-overlay h3{
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
}
.amenity-card.large .amenity-overlay h3 {
    font-size: 24px;
}
.amenity-card-mobile .amenity-overlay h3 {
    font-size: 16px;
    display: flex;
    flex-direction: column;
}
.subdivision-card-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
}
.investor-card h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}
.project-name {
    font-size: 22px !important;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
    color: white !important;
}
.similar-listings-link-box h3{
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #004085;
}
.amenity-header-pro h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
}
.suggestions-list li a .suggestion-icon{
    padding-left: 0 !important;
}
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #fff;
    z-index: 99999;
    display: flex;
    flex-direction: column;
}

.overlay-header {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 12px;
    gap: 10px;
}

.search-btn {
    background: #f7f7f7;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}

.search-btn:active {
    opacity: 0.8;
}

.overlay-header input {
    width: 100%;
    border: none;
    font-size: 16px;
    outline: none;
    padding: 6px 10px;
    background: #f7f7f7;
    border-radius: 6px;
}

.close-btn {
    border: none;
    background: none;
    font-size: 20px;
}

.overlay-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}
.empty-state{
    padding: 0 15px;
    color: #555;
}
input, select, textarea {
    font-size: 16px !important;
}
.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 150px);
    gap: 20px;
}
.area-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
}
.area-card.large {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
}
.area-card .area-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.area-card:hover .area-bg {
    transform: scale(1.1);
}
.area-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.3) 40%, transparent 80%);
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    height: 100%;
}
.area-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
}
.area-overlay .area-desc {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 5px 0;
}
.area-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50px;
    color: white;
    padding: 2px 12px;
    font-size: 14px;
    font-weight: 500;
}
.area-badge.ban {
    background: var(--primary-color);
}
.area-badge.thue {
    background: var(--blue);
}
.areas-scroll {
    display: contents; /* KEY: ghép thẳng các card nhỏ vào grid */
}


.results-count{
    margin-bottom: 0;
}
.view-mode {
    display: flex;
    gap: 10px;
}

.view-mode button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 10px 12px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
}

.view-mode button:hover {
    background: #f5f5f5;
}

.view-mode button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.product-card-image {
    position: relative;
    overflow: hidden;
}

.product-card-image .image-slider { width: 100%; height: 100%; }

.product-card-image .image-track {
    display: flex;
    height: 100%;
    transition: transform .35s ease;
    touch-action: pan-y;
}

.product-card-image .image-track img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex: 0 0 100%;
}

.product-card-image .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.4);
    border: none;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, background-color .2s ease;
}
.product-list-card:hover .product-card-image .slider-btn {
    opacity: 1;
    pointer-events: auto;
}
.product-card-image .slider-btn:hover{
    background: rgba(0, 0, 0, 0.6);
}
.product-card-image .slider-btn.prev { left: 6px; }
.product-card-image .slider-btn.next { right: 6px; }

.image-count {
    width: 70px;
    justify-content: space-between;
}
.product-card-price svg{
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
    margin-right: 3px;
}

.cta-card-image.cta-image-overlay {
    width: 100%;
    height: 100%;
    background-size: cover;       /* ảnh cover đầy */
    background-position: center;  /* căn giữa */
    background-repeat: no-repeat;
    border-radius: inherit;       /* nếu card có bo góc thì ảnh cũng bo theo */
    aspect-ratio: unset;
}
.cta-overlay-content{
    width: 100%;
    display: block;
    position: relative;
    height: 100%;
    padding: 20px !important;
}
.project-card-address{
    display: block !important;
}
.project-card-image-large img {
    aspect-ratio: 3/2;
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.explore-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    height: 300px;
}

.explore-card .explore-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.explore-card:hover .explore-img {
    transform: scale(1.1);
}

.explore-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 10%, rgba(0, 0, 0, 0.3) 40%, transparent 80%);
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    height: 100%;
}
.explore-overlay h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.4;
}
.explore-overlay .explore-desc {
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 5px 0;
}
.explore-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    border-radius: 50px;
    color: white;
    padding: 2px 12px;
    font-size: 14px;
    font-weight: 500;
}
.explore-badge.ban {
    background: var(--primary-color);
}
.explore-badge.thue {
    background: var(--blue);
}
.explore-toggle{
    border: none;
    background: none;
    color: #53b966;
    font-size: 18px;
    transition: color .25s ease;
}
.explore-toggle:hover{
    color: #1e702d;
}
.explore-card.hide, .product-list-card.hide, .developer-card.hide {
    display: block;
}
.product-grid-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Desktop: 2 hàng x 4 cột */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: auto;
    gap: 25px;
}
.explore-grid .product-card-image{
    aspect-ratio: 16/11;
}

.fengshui-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}
/* Mobile: scroll ngang */
.article-content h2{
    font-size: 24px;
}
.article-content h3{
    font-size: 18.72px;
}
.article-content h4{
    font-size: 16px;
}
.article-content h5{
    font-size: 13.28px;
}
.article-content h6{
    font-size: 10.72px;
}
.article-content p{
    font-size: 1rem;
}
.toc-title{
    font-size: 22px !important;
}
.wiki-card-excerpt{
    text-overflow: ellipsis;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.accordion-header h4:first-child {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 15px;
}
ul > li > p, ol > li > p {
    margin-bottom: 10px !important;
}
.overview-grid.single-column {
    grid-template-columns: 1fr;
}
h3.timeline-title {
    font-size: 23px;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.timeline-card h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.carousel-wrapper{
    overflow-y: hidden;
}
.carousel-track{
    padding: 0;
    gap: 20px;
}
.carousel-slide{
    cursor: pointer;
    margin: 0;
}
.photo-year-group p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0px auto;
}
.year-title{
    margin-bottom: 10px;
}
.amenity-card, .lightbox-trigger{
    cursor: pointer;
}
.image-gallery-popup .gallery-description {
    color: #ccc;
    font-size: 14px;
    margin-top: 0;
    text-align: center;
}
.title-card-h3 {
    font-size: 26px;
    font-weight: 550;
    color: var(--secondary-color);
    margin: 0;
    text-align: center;
}
.product-name{
    line-height: 1.3;
}
.caption-image{
    color: #333;
    text-align: center;
    margin-top: 10px;;
}
.notice-info {
    background: rgba(33, 150, 243, 0.08); /* xanh dương nhạt trong suốt */
    border: 1px solid #c7e5fd;
    padding: 15px;
    border-radius: 6px;
    color: #0b3c7d;
    font-size: 15px;
    text-align: left;
    gap: 5px;
    display: flex;
}
.notice-info svg{
    flex-shrink: 0;
}
.main-column{
    max-width: 100%;
}

.tab-handover-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.tab-handover-wrapper::-webkit-scrollbar {
    height: 6px;
}

.tab-handover-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
}

.tab-handover {
    display: flex;
    white-space: nowrap;
    gap: 25px;
    padding: 0 15px 15px;
    justify-content: center;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-handover-item {
    color: #333;
    cursor: pointer;
    padding-bottom: 4px;
    position: relative;
}

/* ACTIVE */
.tab-handover-item.active {
    color: var(--primary-color);
}

.tab-handover-item.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* CONTENT */
.tab-handover-content {
    display: none;
    padding: 20px 10px;
}


.tab-handover-content.active {
    display: block;
}

.tab-handover-tinymce table{
    max-width: 100%;
}

.tab-handover-tinymce img{
    max-width: 100%;
    height: auto;
}
.filter-title{
    font-size: 16px;
    font-weight: normal;
}
figcaption{
    text-align: center;
    margin-top: 10px;
}
.fix-heading h3{
    font-size: 23px;
    color: var(--secondary-color);
}
.fix-heading h4{
    font-size: 19px;
    color: var(--secondary-color);
}
.developer-name{
    text-align: center;
}
.timeline-slide {
    position: relative;
    overflow: hidden; /* tránh caption tràn khỏi ảnh */
}

/* Ảnh */
.timeline-slide img {
    display: block;
    width: 100%;
    height: 100%;
}

/* Overlay: nằm trên ảnh */
.timeline-slide::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%; /* tùy chỉnh */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0,0,0,0));
    z-index: 1; /* Đè lên ảnh */
    border-radius: 10px;
    pointer-events: none; /* không chặn thao tác */
}

/* Caption: nằm trên overlay */
.img-caption {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    z-index: 2; /* Đè lên overlay */
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: 0 0 4px rgba(0,0,0,0.4);
    text-align: center;
}

.overview-content ul * {
    color: var(--text-light);
}

.timeline-btn.swiper-button-prev,
.timeline-btn.swiper-button-next {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

/* Hover đúng swiper thì hiện nút */
.swiperTimeline:hover .timeline-btn.swiper-button-prev,
.swiperTimeline:hover .timeline-btn.swiper-button-next {
    opacity: 1;
    visibility: visible;
}
@media (max-width: 768px) {
    .dropdown-item.active {
        background-color: var(--primary-color);
        color: var(--white-color);
    }
    .tab-handover {
        justify-content: start;
    }

    .product-grid {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px;
    }

    .product-grid::-webkit-scrollbar {
        height: 3px; /* mỏng */
    }

    .product-grid::-webkit-scrollbar-track {
        background: transparent;
    }

    .product-grid::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
    }

    .product-list-card {
        flex: 0 0 85%; /* mỗi card to vừa trên mobile */
        scroll-snap-align: start;
    }
    .fengshui-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .explore-card {
        height: 185px;
    }

    .explore-card.hide, .product-list-card.hide, .developer-card.hide {
        display: none;
    }

}


@media (min-width: 1024px) {

    .product-listing-grid.list {
        display: flex;
        flex-direction: column;
    }

    .product-listing-grid.list .product-list-card {
        display: flex;
        flex-direction: row;
        padding: 20px;
        min-height: 130px;
        align-items: flex-start;
        gap: 25px;
        align-items: stretch;
    }

    /* Ảnh bên trái */
    .product-listing-grid.list .product-card-image {
        width: 300px;
        height: 200px;
        flex-shrink: 0;
        border-radius: 8px;
        overflow: hidden;
        aspect-ratio: unset;
    }


    /* Nội dung bên phải */
    .product-listing-grid.list .product-card-content {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    .product-listing-grid.list .product-card-title, 
    .product-listing-grid.list .product-card-address {
        white-space: normal;
    }

    /* Khi ở chế độ list */
    .product-listing-grid.list .product-skeleton {
        display: flex;
        gap: 25px;
    }

    /* Hình ảnh bên trái bé lại */
    .product-listing-grid.list .product-skeleton .skeleton-image {
        width: 250px;
        height: 167px;
        flex-shrink: 0;
    }
    
}

@media (max-width: 1024px) {
    .view-mode{
        display: none;
    }
}

@media (max-width: 767px) {
    .results-top-bar{
        padding: 0 15px;
    }
    .result-tabs{
        padding: 0;
    }
    /* .product-card-image .slider-btn {
        opacity: 1 !important;
        pointer-events: auto !important;
    } */
     .areas-grid {
        display: block;
    }

    .area-card.large {
        width: 100%;
        height: 220px;
        margin-bottom: 14px;
    }

    .areas-scroll {
        display: flex;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 6px;
        scroll-snap-type: x mandatory; /* (optional) cảm giác mượt */
    }

    .areas-scroll::-webkit-scrollbar {
        height: 3px;
    }
    .areas-scroll::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 4px;
    }

    .area-card:not(.large) {
        flex: 0 0 250px;
        height: 160px;
        scroll-snap-align: start; /* (optional) giúp card "hít" khi cuộn */
    }
}

@media (min-width: 767px){
    body.drawer-open{
        padding-right: 15px;
    }
}

/* responsive cho mobile */
@media (max-width: 768px) {
    .company-info .custom-name, .custom-title {
        font-size: 28px;
    }
    .hero-gallery-desktop {
        display: none !important;
    }
    .project-skeleton {
        flex-direction: column; /* đổi sang dọc */
    }

    .project-skeleton .skeleton-image-left {
        width: 100%; /* ảnh chiếm toàn bộ chiều ngang */
        height: 180px; /* chiều cao tùy chỉnh */
    }

    .project-skeleton .skeleton-status{
        display: none;
    }

    .overview-grid {
        gap: 0;
    }
    .section-header{
        margin-bottom: 20px;
    }
}
@media (max-width: 767px) {
    .filter-block-header {
        padding: 5px 0 10px 0;
    }
    .project-address-detail{
        margin-bottom: 10px;
    }
    .project-hero-section {
        padding-bottom: 20px;
    }
    .amenities-mobile-layout {
        padding: 0 15px;
    }
    .mobile-amenities-scroll {
        padding: 0;
    }
    .cta-overlay-content {
        padding: 10px;
    }
    .listing-filter-sidebar, .listing-filter-sidebar.sidebar--header-hidden{
        top: 0 !important;
        padding: 10px 15px !important;
    }
    .listing-filter-sidebar.is-open{
        width: 100%;
        padding: 10px 15px !important;
    }
    .mobile-main-amenity{
        margin-left: 0;
        display: flex;
    }
    .mobile-main-amenity .amenity-overlay{
        margin-left: 0;
        width: 100%;
    }
    .footer-widget p.widget-title{
        padding-bottom: 0px;
    }
    .footer-widget p.widget-title::after{
        background-color: transparent;
        padding-left: 0;
    }
    .summary-card .card-value{
        font-size: 18px !important;
    }
}
@media (max-width: 1024px) {
    .logo-link {
        transform: translateX(-50%);
    }
    .product-listing-grid {
        grid-template-columns: 1fr;
    }
}
