/* ========================================================================
   STYLES DÀNH RIÊNG CHO TRANG LISTING SẢN PHẨM
   ======================================================================== */

/* --- 1. Bố cục chính --- */
.listing-page-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* --- 2. Cột trái: Bộ lọc (Sidebar) --- */
.listing-filter-sidebar {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    
    /* Vị trí mặc định khi header HIỂN THỊ (80px header + 20px khoảng hở) */
    top: 100px; 
    
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px; /* Sửa lại cho đồng bộ hơn */
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 120px); /* Điều chỉnh lại một chút */
    
    /* THÊM VÀO: Hiệu ứng trượt mượt mà cho sidebar */
    transition: top 0.3s ease-in-out; 
}

/* THÊM VÀO: Trạng thái mới khi header BỊ ẨN */
.listing-filter-sidebar.sidebar--header-hidden {
    /* Khi header ẩn, sidebar chỉ cần cách đỉnh 20px */
    top: 32px; 
}
.filter-sidebar-header { display: none; }

/* Header của khối filter */
.filter-block-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border-color);
}
.filter-main-title { font-size: 20px; margin: 0; color: var(--secondary-color); }
.filter-reset-btn { background: none; border: none; color: var(--primary-color); font-weight: 600; cursor: pointer; padding: 0; }

/* Khu vực tag đang lọc */
.filter-tag-area {
    padding: 0 20px 10px 20px; /* Điều chỉnh padding */
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 10px;
    display: none; /* Mặc định ẩn đi khi chưa có filter nào */
}
.filter-tag-area.active {
    display: block;
}
.filter-tag-area strong { font-size: 14px; width: 100%; margin-bottom: 10px; display: block; }
.filter-tag {
    background-color: var(--body-bg);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 5px 8px 5px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    margin-bottom: 8px;
}
.remove-tag { background: none; border: none; color: var(--text-light); margin-left: 5px; cursor: pointer; padding: 0; font-size: 16px; }

/* Khối chứa các nhóm filter (có thể cuộn) */
.filter-groups-container {
    flex-grow: 1;
    overflow-y: auto;
}
.filter-group {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.filter-group:last-child { border-bottom: none; }
.filter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.filter-title::after {
    content: '▾';
    transition: transform 0.3s ease;
    font-size: 14px;
}
.filter-group.active .filter-title::after {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    padding-top: 0;
}
.filter-group.active .accordion-content {
    padding-top: 20px;
}

/* Các bộ lọc chi tiết */
.price-input-tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 15px; }
.price-tab-btn { flex: 1; padding: 10px; border: none; background: none; cursor: pointer; font-weight: 500; color: var(--text-light); border-bottom: 2px solid transparent; }
.price-tab-btn.active { color: var(--primary-color); font-weight: 600; border-bottom-color: var(--primary-color); }
.price-tab-content { display: none; }
.price-tab-content.active { display: flex; flex-direction: column; gap: 10px; }
.custom-range-input { position: relative; display: flex; align-items: center; }
.custom-range-input input { width: 100%; padding: 10px 35px 10px 10px; border: 1px solid var(--border-color); border-radius: 4px; box-sizing: border-box; }
.custom-range-input .unit-label { position: absolute; right: 10px; color: var(--text-light); }
.btn-group { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.btn-group.three-cols { grid-template-columns: repeat(3, 1fr); }
.btn-group button { padding: 8px 12px; border: 1px solid var(--border-color); background-color: #fff; color: var(--text-dark); border-radius: 4px; cursor: pointer; transition: all 0.2s ease; font-size: 14px; }
.btn-group button:hover { background-color: var(--body-bg); }
.btn-group button.active { background-color: var(--primary-color); color: white; border-color: var(--primary-color); }
.checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.checkbox-group.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.checkbox-group div { display: flex; align-items: center; }
.checkbox-group input[type="checkbox"] { margin-right: 8px; }

/* Nút áp dụng */
.filter-apply-btn-wrapper { padding: 20px; border-top: 1px solid var(--border-color); flex-shrink: 0; }
.filter-apply-btn { width: 100%; }
/* --- 3. Cột phải: Kết quả --- */
.product-price-specs-wrapper {
    margin-top: auto; /* QUAN TRỌNG: Luôn đẩy khối này xuống dưới cùng của card */
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.listing-results-column {
    flex-grow: 1;
    min-width: 0;
}
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}
.results-count {
    font-size: 20px;
    font-weight: 600;
    color: var(--secondary-color);
}
.sort-by-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-dropdown {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #fff;
}

.product-listing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Tối đa 2 sản phẩm trên một hàng */
    gap: 25px;
    margin-bottom: 40px;
}
.product-list-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
   min-width: 0;
}
.product-list-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.product-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative; /* Cần thiết để định vị các overlay */
}
.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.image-overlay-top {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}
.image-overlay-bottom {
    position: absolute;
    bottom: 10px;
    right: 10px; /* <-- Thay đổi từ left sang right */
    left: auto;  /* Bỏ định vị bên trái */
    z-index: 2;
}
.favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
}
.favorite-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.favorite-btn .heart-solid {
    display: none; /* Mặc định ẩn trái tim đặc */
    color: #ff4d4f; /* Màu đỏ cho trạng thái yêu thích */
}
.favorite-btn.active .heart-solid {
    display: block; /* Hiện trái tim đặc khi active */
}
.favorite-btn.active .heart-outline {
    display: none; /* Ẩn trái tim rỗng khi active */
}

.image-count {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
}
.image-count svg {
    width: 16px;
    height: 16px;
}
.product-card-content {
    padding: 15px;
    flex-grow: 1; /* Quan trọng: Cho phép khối này dãn ra */
    display: flex;
    flex-direction: column;
}
.product-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 8px 0;
    line-height: 1.4;
    
    /* Thiết lập chiều cao tối thiểu cho 2 dòng */
   
    /* Kỹ thuật cắt chữ và thêm dấu "..." */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card-address {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 15px 0;
    white-space: nowrap; /* Ngăn xuống dòng */
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 1.2em; /* Giữ một khoảng trống nhỏ để không bị giật layout */
}

.product-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    flex-shrink: 0; /* Không cho giá bị co lại */
}
.product-card-specs-inline {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: var(--text-light);
}
.product-card-specs-inline span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.product-card-specs-inline svg {
    width: 16px;
    height: 16px;
}

/* --- 4. Các thành phần Mobile --- */
.floating-filter-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: none;
    justify-content: center;
    align-items: center;
    gap: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 999;
}
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
}
.filter-overlay.is-active {
    display: block;
}







/* ======================= Responsive cho Trang Listing ======================= */
@media (max-width: 1024px) {
   
}

@media (max-width: 767px) {
    .listing-page-wrapper {
        flex-direction: column;
    }
    .listing-filter-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
   
        width: 320px;
        background-color: #fff;
        z-index: 10001;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        overflow-y: auto;
        padding: 20px;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
        border-radius: 0px;
        max-height: 100%;
        max-width: 85vw;
    }
    .listing-filter-sidebar.is-open {
        transform: translateX(0);
        width: 100%;
        padding: 10px 15px;
    }
    .filter-sidebar-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
       
    }
    .floating-filter-btn {
        display: flex;
    }
    .product-listing-grid {
        grid-template-columns: 1fr;
    }
    .filter-block-header{
        padding: 0px
    }
}
/* Nhóm nút bấm */
.btn-group {
    display: grid;
    gap: 8px;
    /* Mặc định 2 cột */
    grid-template-columns: repeat(2, 1fr);
}
/* Thêm class mới để chia 3 cột */
.btn-group.three-cols {
    grid-template-columns: repeat(3, 1fr);
}

.btn-group button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px; /* Chỉnh lại size cho gọn */
}
.btn-group button:hover {
    background-color: var(--body-bg);
}

/* --- CSS cho nhãn sản phẩm --- */
.product-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3; /* Đặt z-index cao hơn để luôn nổi lên trên */
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    border-radius: 4px;
    line-height: 1;
    
}

.label-sold {
    background-color: #555; /* Màu xám đậm cho nhãn "Đã bán" */
}

.label-good-price {
    background-color: #b91c1c; /* Màu đỏ cho nhãn "Giá tốt" */
}

.favorite-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s ease;
    padding: 0; /* Đảm bảo không có padding thừa */
}
.favorite-btn:hover {
    background-color: rgba(0, 0, 0, 0.6);
}
.favorite-btn .heart-solid {
    display: none; /* Mặc định ẩn trái tim đặc */
    color: #ff4d4f; /* Màu đỏ cho trạng thái yêu thích */
}
.favorite-btn.active .heart-solid {
    display: block; /* Hiện trái tim đặc khi active */
}
.favorite-btn.active .heart-outline {
    display: none; /* Ẩn trái tim rỗng khi active */
}


/* ========================================================================
   SECTION KHÁM PHÁ & CTA (Bản thiết kế đồng bộ - Overlay trên ảnh)
   ======================================================================== */

/* 1. Khối section chính */
.explore-section {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- Cột Trái: Khám phá theo loại hình --- */
.explore-by-type {
    /* Giữ nguyên style cho cột trái */
}

.explore-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}

.explore-description {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 25px 0;
}

.type-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.type-tag {
    display: inline-block;
    text-decoration: none;
    background-color: #e9ecef;
    color: var(--secondary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.type-tag:hover {
    background-color: var(--primary-light-color);
    color: var(--primary-color);
}


/* --- Cột Phải: Card CTA với Overlay --- */
.explore-cta-card {
    display: flex;
}
.cta-card-link {
    display: block; /* Thay đổi thành block để kích hoạt toàn bộ thẻ */
    width: 100%;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    transition: opacity 0.3s ease;
    position: relative; /* Thiết lập relative cho việc định vị tuyệt đối */
}
.cta-card-link:hover {
    opacity: 1; /* Đảm bảo không bị mờ khi hover */
}

.cta-image-overlay {
    position: relative; /* Thiết lập relative cho overlay và content */
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px; /* Bo góc cho ảnh và overlay */
}
.cta-image-overlay img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cta-card-link:hover .cta-image-overlay img {
    transform: scale(1.05);
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Lớp phủ đen полупрозрачный */
    border-radius: 12px;
    transition: background-color 0.3s ease;
    z-index: 1; /* Đảm bảo nằm trên ảnh */
}
.cta-card-link:hover .cta-overlay {
    background-color: rgba(0, 0, 0, 0.6); /* Tăng độ đậm khi hover */
}

.cta-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Căn giữa nội dung */
    text-align: center;
    color: white;
    padding: 20px;
    width: 90%;
    z-index: 2; /* Đảm bảo nằm trên lớp phủ */
}

.cta-card-title {
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7); /* Thêm bóng đổ cho chữ */
}

.cta-card-description {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.cta-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--primary-color);
    color: white;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none; /* Loại bỏ gạch chân nếu <a> */
    transition: background-color 0.2s ease;
}
.cta-card-button:hover {
    background-color: var(--primary-dark-color);
}
.cta-card-button svg {
    transition: transform 0.2s ease;
}
.cta-card-link:hover .cta-card-button svg {
    transform: translateX(3px);
}


/* --- Responsive cho Section Khám Phá --- */
@media (max-width: 767px) {
    .explore-section {
        grid-template-columns: 1fr;
        padding: 25px;
    }
    .explore-by-type {
        text-align: center;
    }
    .type-tags-container {
        justify-content: center;
    }
    .explore-cta-card {
        /* Không cần căn giữa nữa vì đã là 1 cột */
    }
    .cta-overlay-content {
        text-align: center;
    }
    .cta-card-title {
        font-size: 22px;
    }
    .cta-card-description {
        font-size: 15px;
    }
}

/* ========================================================================
   SECTION LỊCH SỬ GIÁ (THÊM MỚI)
   ======================================================================== */

.price-history-section {
    max-width: 1100px;
    margin: 60px auto 0 auto;
}

.price-history-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 30px 0;
    text-align: center;
}

.price-history-content {
    display: flex; /* Dùng flexbox để dễ dàng quản lý khoảng cách */
    flex-direction: column; /* Xếp các phần tử con theo chiều dọc */
    gap: 40px; /* Giữ nguyên khoảng cách 40px giữa 2 khối */
}


/* --- Cột trái: Bảng giá --- */
.year-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}
.year-tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}
.year-tab-btn:hover {
    color: var(--primary-color);
}
.year-tab-btn.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom-color: var(--primary-color);
}

.summary-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 30px;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.summary-row:hover {
    background-color: #f8f9fa;
}
.summary-row-wrapper.active .summary-row {
    background-color: var(--primary-light-color);
}
.summary-label {
    font-weight: 600;
    color: var(--text-dark);
}
.summary-value {
    font-weight: 500;
    color: var(--text-light);
}
.summary-arrow {
    transition: transform 0.3s ease;
}
.summary-row-wrapper.active .summary-arrow {
    transform: rotate(90deg);
}

/* Nội dung chi tiết (accordion) */
.detailed-table-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 15px;
}
.summary-row-wrapper.active .detailed-table-content {
    padding: 10px 15px 15px 15px;
}

/* Bảng chi tiết */
.detailed-table {
    width: 100%;
    border-collapse: collapse;
}
.detailed-table th, .detailed-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}
.detailed-table th {
    font-weight: 600;
    color: var(--text-light);
    font-size: 12px;
}
.detailed-table th .unit {
    font-weight: 400;
}
.detailed-table td {
    color: var(--text-dark);
}

/* --- Cột phải: Biểu đồ --- */
.price-chart-container {
    /* Bỏ các thuộc tính của layout 2 cột */
    padding-left: 0;
    border-left: none;
    
    /* Thêm đường kẻ ngang để phân tách rõ ràng */
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}
.chart-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}
.chart-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #f8f9fa;
    border: 1px dashed #ccc;
    border-radius: 8px;
    min-height: 250px;
    color: #999;
}
.price-chart-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
}

.chart-header .chart-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    text-align: center;
}

.chart-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chart-filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-filter-group label {
    font-weight: 500;
    color: var(--text-light);
}

.year-filter-buttons button {
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 20px;
    background-color: #f0f0f0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    margin: 5px;
}


.chart-area-dropdown {
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    font-weight: 500;
}



/* --- Responsive --- */
@media (max-width: 991px) {
    .price-history-content {
        grid-template-columns: 1fr; /* Xếp chồng 2 cột */
    }
    .price-chart-container {
        padding-left: 0;
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-top: 30px;
        margin-top: 30px;
    }
      .listing-filter-sidebar.is-open {
        top: 0px;
    }
  
}
@media (max-width: 767px) {
    .price-history-card {
        padding: 20px;
    }
    .summary-row-wrapper.active .detailed-table-content {
        /* Cho bảng tràn ra lề trên mobile */
        margin-left: -20px;
        margin-right: -20px;
        padding-left: 0;
        padding-right: 0;
    }
    .detailed-table {
        font-size: 13px; /* Giảm size chữ để vừa hơn */
    }
    .detailed-table th, .detailed-table td {
        padding: 8px 5px; /* Giảm padding */
    }
    .summary-row {
    display: flex;
    align-items: center;
}
}

/* ========================================================================
   SECTION SEO & FAQ (THÊM MỚI)
   ======================================================================== */

.seo-faq-section {
    max-width: 1100px;
    margin: 60px auto 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}

/* --- Cột Trái: FAQ --- */
.faq-container .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}
.accordion-item:first-child {
    border-top: 1px solid var(--border-color);
}

.accordion-header {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
}
.accordion-header span:first-child {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 15px;
}
.accordion-icon {
    font-size: 24px;
    font-weight: 400;
    color: var(--primary-color);
    transition: transform 0.3s ease-out;
    flex-shrink: 0;
}
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}
.accordion-content p {
    padding: 0 15px 20px 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

/* --- Cột Phải: Nội dung SEO --- */
.seo-content-container .section-title {
    text-align: left;
    margin-bottom: 20px;
}
.seo-content-container h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-light);
    margin: 0 0 20px 0;
}
.seo-image-wrapper {
    overflow: hidden;
    border-radius: 12px; /* rounded-xl */
    margin-bottom: 20px;
}
.seo-image-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.seo-image-wrapper:hover img {
    transform: scale(1.05);
}

.text-content-wrapper {
    position: relative;
    max-height: 150px; /* Chiều cao ban đầu, chỉ hiển thị 1 phần */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}
.text-content-wrapper.expanded {
    max-height: 1000px; /* Chiều cao đủ lớn để chứa toàn bộ nội dung */
}
.text-content-wrapper p {
    margin-bottom: 1em;
    line-height: 1.7; /* leading-relaxed */
}
.text-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, white);
    transition: opacity 0.3s ease;
    pointer-events: none; /* Cho phép click xuyên qua */
}
.text-content-wrapper.expanded .text-fade-overlay {
    opacity: 0;
}

.read-more-btn {
    margin-top: 15px;
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .seo-faq-section {
        grid-template-columns: 1fr; /* Xếp chồng 2 cột */
        gap: 40px;
    }
}

/* Cập nhật kích thước SVG chung cho các nút hành động */
.hero-actions .action-button svg {
    width: 22px;
    height: 22px;
}

/* --- CSS cho trạng thái của nút Yêu thích --- */

/* Ẩn icon trái tim đặc (trạng thái đã thích) theo mặc định */
.favorite-btn .heart-solid {
    display: none;
}

/* Hiện icon trái tim rỗng (trạng thái chưa thích) theo mặc định */
.favorite-btn .heart-outline {
    display: block;
}

/* Khi nút có thêm class 'active' (do người dùng nhấp vào) */
.favorite-btn.active .heart-solid {
    display: block; /* Hiện icon trái tim đặc */
    color: #ef4444; /* Tô màu đỏ cho trạng thái đã thích */
}

.favorite-btn.active .heart-outline {
    display: none; /* Ẩn icon trái tim rỗng */
}
#chart-year-filters button.active {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
   
}

/* ========================================================================
   CSS CHO THANH TRƯỢT (DRAWER) YÊU THÍCH
   ======================================================================== */

body.drawer-open {
    overflow: hidden; /* Ngăn cuộn trang nền khi drawer mở */
}

#favorites-drawer-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    
    /* Mặc định ẩn */
    pointer-events: none;
    visibility: hidden;
}

/* Lớp phủ nền tối */
.favorites-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Khung drawer trượt ra */
.favorites-drawer {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 380px; /* Chiều rộng tối đa của drawer */
    height: 100%;
    background-color: white;
    box-shadow: -5px 0 25px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    
    transform: translateX(100%); /* Mặc định ẩn bên phải */
    transition: transform 0.35s ease;
}
@media (max-width: 768px) {
    .favorites-drawer {max-width: 320px;}
}
/* Trạng thái khi mở drawer */
#favorites-drawer-container.is-open {
    pointer-events: auto;
    visibility: visible;
}
#favorites-drawer-container.is-open .favorites-drawer-overlay {
    opacity: 1;
}
#favorites-drawer-container.is-open .favorites-drawer {
    transform: translateX(0);
}

/* Header của Drawer */
.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.drawer-header h3 {
    margin: 0;
    font-size: 18px;
}
.drawer-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

/* Nội dung (danh sách) */
.drawer-content {
    flex-grow: 1;
    overflow-y: auto;
}

/* Footer của Drawer */
.drawer-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}
.btn-primary-full {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
}

/* Style cho mỗi mục trong danh sách (tái sử dụng từ dropdown cũ) */
.favorite-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}
.favorite-item:hover { background-color: #f8f9fa; }
.favorite-item-thumb { width: 70px; height: 50px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.favorite-item-title { font-size: 14px; font-weight: 500; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.favorites-empty-message { padding: 40px 20px; text-align: center; color: var(--text-light); }
/* assets/css/style.css */

/* --- Giao diện Ngăn Yêu thích (Drawer) --- */

/* Bọc từng mục yêu thích để chứa nút xóa */
.favorite-item-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.favorite-item-wrapper:hover {
    background-color: #f0f2f5;
}

/* Link của sản phẩm chiếm phần lớn không gian */
.favorite-item {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    padding: 8px;
    flex-grow: 1; /* Cho phép link co giãn */
}

.favorite-item-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
}

.favorite-item-title {
    font-size: 15px;
    line-height: 1.4;
}

/* Nút xóa từng mục */
.remove-favorite-item-btn {
    background-color: transparent;
    border: none;
    color: #888;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    padding: 0 12px;
    align-self: stretch; /* Kéo dài nút bằng chiều cao của item */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.remove-favorite-item-btn:hover {
    color: var(--primary-color);
}

/* Khu vực chứa các hành động chung */
.drawer-actions {
    margin-bottom: 15px;
    margin-top: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
}

/* Nút xóa tất cả */
.clear-favorites-btn {
    background: none;
    border: 1px solid #e5e7eb;
    color: #666;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.clear-favorites-btn:hover {
    background-color: #fcebeb;
    border-color: #f5caca;
    color: #c53030;
}
/* FIX: Ổn định vị trí mũi tên trong bảng Lịch sử giá */


.summary-arrow {
    margin-left: auto; /* Đẩy mũi tên vềสุดขอบขวา */
    transition: transform 0.2s ease-in-out; /* Thêm hiệu ứng xoay mượt mà */
    flex-shrink: 0;
}

.summary-row-wrapper.active .summary-arrow {
    transform: rotate(90deg); /* Xoay mũi tên khi dòng được mở */
}

.chart-container, .chart-wrapper {
    position: relative;
    height: 450px; /* Chiều cao đồng bộ cho desktop, bạn có thể thay đổi giá trị này */
}
@media (max-width: 768px) {
    /* Bật cuộn ngang cho vùng chứa ngoài */
    .chart-wrapper {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Đặt kích thước cố định cho vùng chứa trong để biểu đồ không bị méo */
    .chart-container {
        position: relative;
        height: 500px;      /* Chiều cao cố định CHỈ dành cho mobile */
        min-width: 700px;   /* Chiều rộng tối thiểu để bật cuộn */
    }
}

/* TỐI ƯU BẢNG LỊCH SỬ GIÁ CHO MOBILE */

/* Áp dụng cho màn hình nhỏ (tối đa 768px) */
@media (max-width: 768px) {
    
    /* === 1. Sửa lỗi chữ chồng lên nhau ở dòng tóm tắt === */
    .summary-row {
        /* Cho phép các mục tự động xuống dòng khi không đủ không gian */
        flex-wrap: wrap; 
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .summary-row .summary-label {
        /* Đẩy nhãn "X Phòng ngủ" và mũi tên ra hai bên */
        width: 100%;
        display: flex;
        justify-content: space-between;
        margin-bottom: 4px; /* Tạo khoảng cách với dòng giá bên dưới */
    }
    
    .summary-row .summary-value {
        /* Đảm bảo giá trị nằm ở dòng riêng */
        padding-left: 2px;
    }

    .summary-row .summary-arrow {
        /* Hủy bỏ margin-left: auto để không bị ảnh hưởng bởi layout mới */
        margin-left: 0;
    }
    
}

/* === 2. Cho phép bảng chi tiết cuộn ngang === */
.detailed-table-content {
    overflow-x: auto; /* Bật thanh cuộn ngang khi cần */
    -webkit-overflow-scrolling: touch; /* Cuộn mượt hơn trên iOS */
}

.detailed-table {
    /* Đặt chiều rộng tối thiểu để bảng không bị bóp méo */
    min-width: 600px;
}

.detailed-table th,
.detailed-table td {
    /* Ngăn không cho nội dung trong các ô tự động xuống dòng */
    white-space: nowrap; 
}
/* TỐI ƯU BẢNG LỊCH SỬ GIÁ BÁN CHO MOBILE */

@media (max-width: 768px) {

    /* 1. Tạo khoảng cách cho cột "Giá" và "Đơn giá" */
    .summary-row .summary-value {
        margin-right: 16px; /* Thêm khoảng cách 16px bên phải mỗi mục giá */
    }

    /* 2. Thêm lề trái cho các cột của bảng chi tiết */
    .detailed-table th:first-child,
    .detailed-table td:first-child {
        /* Thêm lề trái 16px cho cột đầu tiên của bảng */
        padding-left: 16px;
    }
}
/* ===================================================== */
/* == SỬA LỖI XUNG ĐỘT STYLE CHO CÁC NÚT TRONG BỘ LỌC == */
/* ===================================================== */

/* Style mặc định cho các nút */
.btn-group button {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    -webkit-tap-highlight-color: transparent; /* Loại bỏ hiệu ứng highlight khi chạm trên mobile */
}

/* Style khi di chuột qua */
.btn-group button:hover {
    background-color: var(--body-bg);
    border-color: #ccc;
}

/* --- QUY TẮC QUAN TRỌNG NHẤT ĐỂ SỬA LỖI --- */
/* Style khi nút được chọn (active) hoặc đang được nhấn (:active) */
.btn-group button.active,
.btn-group button:active {
    background-color: var(--primary-color) !important; /* Dùng !important để đảm bảo ghi đè */
    color: white !important;
    border-color: var(--primary-color) !important;
    outline: none !important; /* Tắt hoàn toàn viền focus của trình duyệt */
    box-shadow: none !important; /* Tắt hoàn toàn bóng đổ focus của trình duyệt */
}

/* Thêm một style cho trạng thái focus của các nút CHƯA active để thân thiện hơn */
.btn-group button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(83, 185, 102, 0.3); /* Thêm một vòng sáng nhẹ khi dùng bàn phím */
}
/* Thêm vào cuối tệp product-detail.css */

.lightbox-control-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: scale(1) !important; /* Ngăn hiệu ứng hover khi nút bị vô hiệu hóa */
}
/* ===================================================== */
/* == CSS CHO GỢI Ý TÌM KIẾM (SEARCH SUGGESTIONS) == */
/* ===================================================== */

.search-form {
    position: relative;
}

.search-suggestions-container {
    display: none; /* Mặc định ẩn */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.search-suggestions-container.visible {
    display: block;
}

.suggestions-group {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}
.suggestions-group:last-child {
    border-bottom: none;
}

.suggestions-group-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    padding: 5px 20px;
    margin: 0;
    text-transform: uppercase;
}

.suggestions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggestions-list li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 15px;
    transition: background-color 0.2s ease;
}

.suggestions-list li a:hover {
    background-color: var(--body-bg);
}

.suggestions-list li a span {
    color: var(--text-light);
    font-size: 13px;
    margin-left: auto;
    white-space: nowrap;
}

.suggestion-icon {
    font-size: 20px;
    line-height: 1;
}
/* Canh chỉnh lại nội dung cho các mục trong danh sách gợi ý */
.suggestions-list li {
    display: flex;           /* Sử dụng Flexbox để dễ dàng căn chỉnh */
    justify-content: flex-start; /* Canh các phần tử bên trong (icon, text) về phía bên trái */
    text-align: left;        /* Đảm bảo nội dung văn bản luôn được canh trái */
    align-items: center;     /* Căn giữa các phần tử theo chiều dọc cho đẹp mắt */
}

/* Điều chỉnh khoảng cách cho icon và text phụ (nếu có) */
.suggestions-list li a .suggestion-icon {
    margin-right: 8px; /* Tạo khoảng cách giữa icon và text */
}

.suggestions-list li a span:last-child {
    margin-left: auto;   /* Đẩy text phụ (tên phường/quận) về phía bên phải */
    padding-left: 10px;  /* Tạo một chút khoảng cách */
    opacity: 0.7;        /* Làm mờ text phụ một chút */
    font-size: 0.9em;    /* Cho chữ nhỏ hơn một chút */
}
/* =================================== */
/* ==   DESKTOP MENU PANEL STYLES   == */
/* =================================== */

.main-nav .has-dropdown > a.active {
    color: var(--primary-color);
    padding: 0px;
}
.logo-link {
        margin-right: auto;
    }
#cct-mega-menu {
    position: fixed; top: 81px; left: 0; width: 100%; height: 100%;
    z-index: 999; opacity: 0; transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}

#cct-mega-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease;
}
.menu-overlay.is-visible {
    opacity: 1; visibility: visible;
}


/* 1. Lớp phủ (overlay) sẽ phủ toàn bộ màn hình */
#cct-mega-menu .menu-panel-overlay {
    position: fixed;
    top: 0; /* Bắt đầu từ đỉnh viewport */
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* 2. Đưa panel lên sát header và bỏ bo góc trên */
#cct-mega-menu .menu-panel-columns {
    max-width: 1100px;
    margin: 0 auto; /* Bỏ margin-top để panel sát header */
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    background-color: var(--white-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 12px 12px; /* Bỏ bo góc ở 2 cạnh trên */
}

/* 3. Đảm bảo các item trong cột canh trái */
#cct-mega-menu .menu-panel-col {
    min-width: 0;
    text-align: left;
}

#cct-mega-menu .menu-panel-col 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;
}

#cct-mega-menu .menu-panel-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: flex-start;
}

/* Cột 1 */
#cct-mega-menu .menu-panel-col.col-1 ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
}

#cct-mega-menu .menu-panel-col.col-1 li {
    width: 100%;
    box-sizing: border-box; /* Đảm bảo padding không làm tăng width */
    font-size: 16px;
    font-weight: 500;
    padding: 12px 15px; /* Thêm padding trực tiếp */
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: var(--text-dark);
    margin: 0px;
}
#cct-mega-menu .menu-panel-col.col-1 li:hover {
    background-color: #f4f7f6;
    color: var(--primary-color);
}
#cct-mega-menu .menu-panel-col.col-1 li.active {
    background-color: #f4f7f6;
    color: var(--primary-color);
    font-weight: 600;
}

#cct-mega-menu .menu-panel-col.col-1 a.direct-link {
    display: block;
    color: inherit;
    text-decoration: none;
    margin: -12px -15px; /* Bù lại padding để link chiếm hết vùng chọn */
    padding: 12px 15px;
}

/* Cột 2 */
#cct-mega-menu .menu-panel-col.col-2 ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px; /* Giảm gap để các mục sát nhau hơn */
    padding: 0;
    margin: 0;
    list-style: none;
}
#cct-mega-menu .menu-panel-col.col-2 li {
    width: 100%;
    margin: 0px;
}

#cct-mega-menu .menu-panel-col.col-2 a {
    display: block;
    width: 100%;
    box-sizing: border-box; /* Đảm bảo padding không làm vỡ layout */
    text-decoration: none;
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    padding: 12px 15px; /* Thêm padding để tạo không gian cho nền */
    border-radius: 8px; /* Bo góc giống cột 1 */
    transition: background-color 0.2s ease, color 0.2s ease;
}
#cct-mega-menu .menu-panel-col.col-2 a:hover {
    background-color: #f4f7f6; /* Thêm màu nền khi hover */
    color: var(--primary-color);
}

/* Cột 3 */
#cct-mega-menu .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;
}
#cct-mega-menu .featured-project-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
#cct-mega-menu .featured-project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
#cct-mega-menu .featured-project-info {
    padding: 15px;
}
#cct-mega-menu .featured-project-info h5 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}
#cct-mega-menu .featured-project-info p {
    margin: 0;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.5;
}

/* =================================== */
/* ==    MOBILE MENU PANEL STYLES   == */
/* =================================== */
/* (Phần CSS cho mobile giữ nguyên, không thay đổi) */
body.menu-open-mobile {
    overflow: hidden;
}
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
.mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
#cct-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background-color: var(--white-color);
    z-index: 10002;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}
#cct-mobile-menu.is-open {
    transform: translateX(0);
}
#cct-mobile-menu .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    height: 80px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
#cct-mobile-menu .mobile-menu-header .logo {
    height: 35px;
}
#cct-mobile-menu .mobile-menu-close {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: var(--text-light);
}
#cct-mobile-menu .mobile-menu-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px 0;
}
#cct-mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
#cct-mobile-menu > .mobile-menu-body > ul > li > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}
#cct-mobile-menu .sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background-color: var(--body-bg);
}
#cct-mobile-menu li.open > .sub-menu {
    max-height: 1000px;
}
#cct-mobile-menu .sub-menu a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px 12px 30px;
    font-size: 15px;
    color: var(--text-light);
    border-bottom: 1px solid var(--border-color);
}
#cct-mobile-menu .sub-menu .sub-menu a {
     padding-left: 45px;
}
#cct-mobile-menu .sub-menu a:hover {
    color: var(--primary-color);
}
#cct-mobile-menu .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #aaa;
    transition: transform 0.3s ease;
}
#cct-mobile-menu li.open > .parent-link > .arrow {
    transform: rotate(-180deg);
}
/* === BỐ CỤC ĐẶC BIỆT CHO MENU CHỈ CÓ 1 CỘT DỮ LIỆU === */

/* Khi có class is-single-col-data, cho cột 1 chiếm không gian của 2 cột đầu */
#cct-mega-menu .menu-panel-columns.is-single-col-data .col-1 {
    grid-column: 1 / 3; /* Cột 1 sẽ kéo dài từ đường kẻ 1 đến đường kẻ 3 của lưới */
}

/* Đồng thời ẩn cột 2 đi */
#cct-mega-menu .menu-panel-columns.is-single-col-data .col-2 {
    display: none;
}
@media (min-width: 1025px) {
  .hamburger-button {
    display: none !important; /* Quy tắc này đúng */
  }
  
}
/* ======================= Header ======================= */
.header-wrapper {
    /* Các thuộc tính hiện có của bạn: background-color, box-shadow... */
    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;
    /* Thêm dòng này để tạo hiệu ứng trượt mượt mà */
    transition: transform 0.3s ease-in-out; 
}

/* Đây là class sẽ được thêm bằng JavaScript để ẩn header đi */
.header-wrapper.header--hidden {
    transform: translateY(-100%);
}


.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo-link {
    flex-shrink: 0;
    margin-right: auto;
}

.logo {
    height: 50px; 
    width: auto;
}

.header-right-block {
    display: flex;
    align-items: center;
    gap: 100px;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    align-items: center;
}
.main-nav li {
    margin: 0 15px;
    position: relative;
}
.main-nav a {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
    padding: 0px 0;
    white-space: nowrap;
}
.main-nav li a:hover {
    color: var(--primary-color);
}

.has-dropdown > a::after {
    content: ''; /* Bỏ ký tự cũ */
    display: inline-block;
    width: 1em; /* Kích thước icon */
    height: 1em;
    margin-left: 6px;
    vertical-align: middle; /* Căn chỉnh icon với chữ */
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' height='24px' viewBox='0 0 24 24' width='24px' fill='currentColor'%3e%3cpath d='M0 0h24v24H0V0z' fill='none'/%3e%3cpath d='M7 10l5 5 5-5H7z'/%3e%3c/svg%3e");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.3s ease;
}

.search-button-new {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-dark);
    transition: all 0.3s ease;
}
.search-button-new:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}
.logo-link {
    margin-right: auto; /* Đẩy menu và search về bên phải */
}
.main-nav {
    margin-right: 40px; /* Khoảng cách giữa menu và search */
}


.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}
.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
}
body.menu-open-mobile {
    overflow: hidden;
}
@media (max-width: 1024px) {
    /* ======================================================= */
/* == CSS CHO MENU (DESKTOP & MOBILE PANEL TRƯỢT) == */
/* ======================================================= */

/* --- 1. DESKTOP MEGA MENU (Không thay đổi) --- */
#cct-mega-menu {
    position: fixed; top: 81px; left: 0; width: 100%; height: 100%;
    z-index: 999; opacity: 0; transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    visibility: hidden;
}
#cct-mega-menu.is-open {
    opacity: 1; transform: translateY(0); visibility: visible;
}
/* ... Các style khác cho mega menu desktop giữ nguyên ... */


/* ======================================================= */
/* ==   CSS CHO MENU TRÊN MOBILE (Màn hình <= 1024px)   == */
/* ======================================================= */
@media (max-width: 1024px) {

    /* Lớp phủ nền */
    .menu-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease;
    }
    .menu-overlay.is-visible {
        opacity: 1; visibility: visible;
    }

    /* Khung nav chính trên mobile */
    #main-nav {
        display: block; position: fixed;
        top: 0; left: 0;
        width: 320px;
        max-width: 85vw;
        height: 100%;
        background-color: var(--white-color);
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
        overflow: hidden;
    }
    #main-nav.is-open {
        transform: translateX(0);
    }

    /* Container chứa các panel, có thể trượt */
    .menu-slider {
        display: flex;
        height: 100%;
        width: 100%;
        transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    }

    /* Style cho mỗi panel con */
    .menu-panel {
        width: 100%;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        background-color: var(--white-color);
    }

    .panel-header {
        display: flex;
        align-items: center;
        padding: 0 1rem;
        height: 80px;
        border-bottom: 1px solid var(--border-color);
        flex-shrink: 0;
    }

    .panel-back-button {
        color: var(--text-light);
        background: none; border: none;
        cursor: pointer;
        padding: 0.5rem;
        margin-left: -0.5rem;
        margin-right: 0.5rem;
    }
    .panel-back-button svg { width: 24px; height: 24px; }

    .panel-title {
        font-size: 18px;
        font-weight: 600;
        margin: 0;
    }

    .panel-list {
        list-style: none;
        padding: 0; margin: 0;
        overflow-y: auto;
        flex-grow: 1;
    }

    .panel-list li a {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        text-decoration: none;
        color: var(--text-dark);
        border-bottom: 1px solid var(--border-color);
        font-weight: 500;
    }

    .panel-list li.has-submenu > a::after {
        content: '›';
        font-size: 1.5rem;
        color: #ccc;
    }

    .panel-list .list-group-title {
        padding: 15px 20px 10px 20px;
        font-size: 14px;
        font-weight: 700;
        color: var(--text-light);
        background-color: var(--body-bg);
        text-transform: uppercase;
    }
    }
    .panel-header .mobile-menu-close {
        background: none;
        border: none;
        font-size: 32px;
        color: var(--text-light);
        cursor: pointer;
        padding: 0.5rem;
        margin-left: auto; /* Quan trọng: Đẩy nút về phía bên phải */
        line-height: 1;
        font-weight: 300;
    }
    .panel-header .mobile-menu-close:hover {
        color: var(--text-dark);
    }
    .logo {
        height: 40px; 
        width: auto;
    }
}
/* ======================================================= */
/* ==   ĐẢM BẢO MENU MOBILE CẤP 1 LUÔN THEO CHIỀU DỌC   == */
/* ======================================================= */
@media (max-width: 1024px) {

    /* Thiết lập cho danh sách menu (ul) */
    .menu-panel .panel-list {
        display: flex;
        flex-direction: column; /* Quan trọng: Luôn xếp các mục con theo chiều dọc */
        width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Thiết lập cho từng mục menu (li) */
    .menu-panel .panel-list > li {
        display: block; /* Đảm bảo mỗi mục chiếm trọn một hàng */
        width: 100%;
        border-bottom: 1px solid #f0f0f0; /* Thêm đường kẻ mảnh để phân tách */
    }
    
    .menu-panel .panel-list > li:last-child {
        border-bottom: none; /* Bỏ đường kẻ ở mục cuối cùng */
    }

    /* Thiết lập cho liên kết bên trong (a) */
    .menu-panel .panel-list > li > a {
        display: flex; /* Căn chỉnh nội dung bên trong thẻ a */
        justify-content: space-between; /* Đẩy chữ và mũi tên ra 2 bên */
        align-items: center;
        padding: 16px 20px;
        font-size: 16px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        width: 100%;
        box-sizing: border-box;
    }

    /* Style cho mũi tên > */
    .menu-panel .panel-list > li.has-submenu > a::after {
        content: '›';
        font-size: 24px;
        color: #ccc;
    }
}
:root {
	--primary-color: #0284c7;
	--secondary-color: #052f63;
	--text-color: #333;
	--text-secondary-color: #6c757d;
	--bg-color: #f9fafb;
	--border-color: #e5e7eb;
	--white-color: #fff;
	--danger-color: #dc3545
}

.main-header {
	background-color: var(--white-color);
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 100;
	height: 70px
}

.header-container {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	padding: 0 1rem;
	position: relative;
	max-width: 1200px;
	margin: 0 auto
}

.logo {
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--secondary-color);
	text-decoration: none
}

.logo span {
	color: var(--primary-color)
}

.header-actions {
	display: flex;
	align-items: center;
	gap: .5rem;
	position: absolute;
	right: 1rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 102
}

.search-button {
	background: none;
	border: 1px solid var(--border-color);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #555
}

.hamburger-button {
	display: flex;
	flex-direction: column;
	justify-content: space-around;
	width: 40px;
	height: 40px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	box-sizing: border-box;
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	z-index: 102
}

.hamburger-button span {
	display: block;
	width: 24px;
	height: 3px;
	background: #555;
	border-radius: 3px;
	transition: all .3s ease-in-out;
	margin: 0 auto
}

.menu-overlay {
	position: fixed;
	top: 70px;
	left: 0;
	width: 100%;
	height: calc(100vh - 70px);
	background-color: #00000080;
	z-index: 100;
	opacity: 0;
	visibility: hidden;
	transition: opacity .35s ease, visibility 0s .35s linear
}

.menu-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	transition-delay: 0s
}

.main-nav {
	display: block;
	position: fixed;
	top: 70px;
	left: 0;
	width: 300px;
	max-width: 85vw;
	height: calc(100vh - 70px);
	background-color: var(--white-color);
	z-index: 101;
	/* box-shadow: 4px 0 15px #0000001a; */
	transform: translate(-100%);
	transition: transform .35s cubic-bezier(.23, 1, .32, 1);
	overflow: hidden
}

.main-nav.is-open {
	transform: translate(0)
}

.main-nav>ul#main-menu-list {
	display: none
}

.menu-slider {
	display: flex;
	height: 100%;
	width: 100%;
	transition: transform .35s cubic-bezier(.23, 1, .32, 1)
}

.menu-panel {
	width: 100%;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	box-sizing: border-box
}

.panel-header {
	display: flex;
	align-items: center;
	padding: 0 1rem;
	height: 70px;
	border-bottom: 1px solid var(--border-color);
	flex-shrink: 0
}

.panel-back-button {
	color: var(--text-secondary-color);
	background: none;
	border: none;
	cursor: pointer;
	padding: .5rem;
	margin-left: -.5rem;
	margin-right: .5rem
}

.panel-title {
	font-weight: 600
}

.panel-list {
	display: block;
	list-style: none;
	padding: 0;
	margin: 0;
	overflow-y: auto;
	flex-grow: 1
}

.panel-list li a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1rem 1.5rem;
	text-decoration: none;
	color: var(--text-color);
	border-bottom: 1px solid var(--border-color);
	font-weight: 500
}

.panel-list li:last-child a {
	border-bottom: none
}

.panel-list .has-submenu>a:after {
	content: "›";
	font-size: 1.5rem;
	color: #ccc
}

.panel-list .mega-menu,
.panel-list .simple-menu {
	display: none
}

.search-popup {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #00221dcc;
	-webkit-backdrop-filter: blur(5px);
	backdrop-filter: blur(5px);
	display: none;
	align-items: flex-start;
	justify-content: center;
	padding-top: 15vh;
	z-index: 1000
}

.close-popup-button {
	position: absolute;
	top: 40px;
	right: 40px;
	font-size: 3rem;
	color: #fff;
	background: none;
	border: none;
	cursor: pointer;
	line-height: 1
}

.search-popup-content {
	width: 100%;
	max-width: 700px
}

.search-form {
	display: flex;
	gap: 1rem
}

#popup-search-input {
	flex-grow: 1;
	padding: 1rem 1.5rem;
	font-size: 1.2rem;
	border: 2px solid var(--primary-color);
	border-radius: 50px;
	background-color: var(--white-color)
}

#popup-search-input:focus {
	outline: none
}

.search-form button {
	padding: 1rem 2rem;
	border: none;
	background-color: var(--primary-color);
	color: #fff;
	font-size: 1rem;
	font-weight: 700;
	border-radius: 50px;
	cursor: pointer
}

.search-suggestions-container {
	display: none;
	margin-top: 1rem;
	background-color: var(--white-color);
	border-radius: 8px;
	padding: .5rem;
	max-height: 40vh;
	overflow-y: auto
}

.suggestion-group {
	padding: .5rem 1rem
}

.suggestion-group-title {
	color: #999;
	font-size: .8rem;
	text-transform: uppercase;
	margin-bottom: .5rem;
	font-weight: 600
}

.suggestion-list {
	list-style: none;
	padding: 0;
	margin: 0
}

.suggestion-item {
	padding: .75rem 1rem;
	cursor: pointer;
	border-radius: 6px;
	transition: background-color .2s
}

.suggestion-item:hover {
	background-color: #f1f3f5
}

.main-content {
	padding: 0 1rem
}

.search-results-page {
	max-width: 1100px;
	margin: 2rem auto
}

.results-header h1 {
	text-align: left;
	font-size: 1.8rem
}

.results-header h1 span {
	color: var(--primary-color)
}

.results-header p {
	color: var(--text-secondary-color);
	margin-top: -1rem
}

.results-top-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 1.5rem
}

.result-tabs {
	display: flex;
	flex-wrap: wrap
}

.tab-button {
	padding: .75rem 1rem;
	border: none;
	background: none;
	cursor: pointer;
	font-size: .95rem;
	font-weight: 600;
	color: var(--text-secondary-color);
	border-bottom: 3px solid transparent;
	margin-bottom: -1px
}

.tab-button.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color)
}

.tab-button span {
	font-size: .8em;
	font-weight: 500;
	margin-left: 6px
}

.result-filters {
	display: flex;
	gap: 1rem;
	padding-bottom: 1.5rem
}

.result-filters select,
#sort-by {
	padding: .5rem 1rem;
	border-radius: 6px;
	border: 1px solid var(--border-color);
	background-color: var(--white-color);
	font-size: .9rem
}

.results-list {
	display: grid;
	gap: 1.5rem
}

.no-results-message {
	text-align: center;
	padding: 4rem;
	background-color: var(--white-color);
	border-radius: 8px;
	border: 1px solid var(--border-color)
}

.result-item {
	display: flex;
	background-color: var(--white-color);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow .2s ease-in-out;
	position: relative
}

.result-item:hover {
	box-shadow: 0 4px 12px #00000014
}

.result-item .item-thumbnail {
	flex-shrink: 0;
	width: 200px;
	background-color: #eee
}

.result-item .item-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.result-item .item-content {
	flex-grow: 1;
	padding: 1.25rem 1.5rem;
	display: flex;
	flex-direction: column;
	min-width: 0
}

.item-header {
	margin-bottom: .25rem
}

.item-header h2 {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.4;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding-right: 100px
}

.item-header h2 a {
	text-decoration: none;
	color: var(--secondary-color)
}

.item-header h2 a:hover {
	color: var(--primary-color)
}

.item-badge {
	position: absolute;
	top: 1.25rem;
	right: 1.5rem;
	flex-shrink: 0;
	padding: .25em .75em;
	font-size: .75rem;
	font-weight: 700;
	border-radius: 50px;
	color: var(--white-color)
}

.item-description,
.item-address,
.item-price,
.item-date {
	font-size: .9rem;
	color: var(--text-secondary-color);
	margin: 4px 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.item-price {
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--danger-color);
	margin-top: auto
}

.item-date {
	font-size: .8rem;
	color: #999
}

.search-extra-suggestions {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding-top: 1rem
}

.suggestions-section {
	flex: 1
}

.suggestions-title {
	color: #a0aec0;
	font-size: .9rem;
	font-weight: 600;
	margin-bottom: .75rem;
	display: flex;
	align-items: center;
	gap: .5rem
}

.suggestions-tags {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem
}

.suggestion-tag {
	background-color: #ffffff1a;
	color: #edf2f7;
	padding: .4rem .8rem;
	border-radius: 20px;
	font-size: .9rem;
	cursor: pointer;
	border: 1px solid rgba(255, 255, 255, .2);
	transition: all .2s ease
}

.suggestion-tag:hover {
	background-color: var(--primary-color);
	color: var(--white-color);
	border-color: var(--primary-color)
}

@media (min-width: 1025px) {
	.main-header {
		background-color: var(--white-color);
		border-bottom: 1px solid var(--border-color);
		padding: 0 2rem;
		position: sticky;
		top: 0;
		z-index: 100;
		box-shadow: 0 2px 4px #0000000d
	}

	.header-container {
		max-width: 1200px;
		margin: 0 auto;
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 70px
	}

	.main-nav {
		display: flex;
		position: static;
		width: auto;
		height: 100%;
		transform: none;
		transition: none;
		background-color: transparent;
		box-shadow: none !important;
		overflow: visible;
		margin: auto
	}

	.logo {
		font-size: 1.8rem;
		font-weight: 700;
		color: var(--secondary-color);
		text-decoration: none
	}

	.logo span {
		color: var(--primary-color)
	}

	.header-actions {
		display: flex;
		align-items: center;
		gap: .5rem;
		margin-left: 1rem
	}

	.search-button {
		background: none;
		border: 1px solid var(--border-color);
		border-radius: 50%;
		width: 40px;
		height: 40px;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		color: #555;
		transition: all .2s
	}

	.search-button:hover {
		background-color: var(--primary-color);
		color: #fff;
		border-color: var(--primary-color)
	}

	.main-nav ul {
		display: flex;
		list-style: none;
		padding: 0;
		margin: 0;
		height: 100%
	}

	.main-nav li {
		position: relative;
		display: flex;
		align-items: center;
		height: 100%
	}

	.main-nav>ul>li>a {
		display: flex;
		align-items: center;
		gap: 6px;
		padding: 0 1.5rem;
		height: 100%;
		text-decoration: none;
		color: #555;
		font-weight: 500;
		transition: color .2s, background-color .2s
	}

	.simple-menu,
	.mega-menu {
		right: 0;
		background-color: var(--white-color);
		box-shadow: 0 8px 16px #0000001a;
		border: 1px solid var(--border-color);
		border-top: 3px solid var(--primary-color);
		opacity: 0;
		transform: translateY(10px);
		transition: opacity .2s ease, transform .2s ease;
		display: none;
		position: fixed;
		top: 70px;
		z-index: 99;
		width: 100vw;
		left: 50%;
		transform: translate(-50%)
	}

	.simple-menu-content,
	.mega-menu-content {
		max-width: 1100px;
		margin: 0 auto;
		display: flex
	}

	.mega-menu-column {
		padding: 1.5rem;
		box-sizing: border-box
	}

	.mega-menu-column.col-1 {
		flex: 0 0 30%;
		border-right: 1px solid #d1d5db;
		padding: 1.5rem;
		box-sizing: border-box
	}

	.mega-menu-column.col-2 {
		flex: 0 0 35%;
		border-right: 1px solid #d1d5db;
		padding: 1.5rem;
		box-sizing: border-box
	}

	.mega-menu-column.col-3 {
		flex: 0 0 35%;
		background-color: #f8f9fa
	}

	.mega-menu-column h4 {
		margin-top: 0;
		margin-bottom: 1rem;
		font-size: .9rem;
		text-transform: uppercase;
		color: #888;
		font-weight: 600
	}

	.mega-menu-column ul,
	.simple-menu ul {
		display: block;
		list-style: none;
		padding: 0;
		margin: 0
	}

	.mega-menu-column ul li,
	.simple-menu li {
		display: block;
		height: auto;
		width: 100%;
		margin: 0;
		padding: 0
	}

	.mega-menu-column ul a,
	.simple-menu ul a {
		display: block;
		padding: 8px 12px 8px 8px;
		margin: 2px 0;
		color: var(--text-color);
		text-decoration: none;
		transition: all .2s ease;
		box-sizing: border-box;
		width: 100%
	}

	.mega-menu-column ul a:after,
	.simple-menu ul a:after {
		display: none
	}

	.mega-menu-column ul a:hover,
	.simple-menu ul a:hover,
	.mega-menu-column ul a.active {
		background-color: #f0f2f5;
		color: var(--primary-color)
	}

	.featured-card {
		text-decoration: none;
		display: block;
		color: inherit
	}

	.featured-card img {
		width: 100%;
		border-radius: 6px;
		margin-bottom: .75rem;
		border: 1px solid var(--border-color);
		aspect-ratio: 3/2;
		object-fit: cover
	}

	.featured-card-content h5 {
		margin: 0 0 .25rem;
		font-size: 1rem;
		color: var(--secondary-color)
	}

	.featured-card-content p {
		margin: 0;
		font-size: .9rem;
		color: #666
	}

	.spinner {
		border: 4px solid rgba(0, 0, 0, .1);
		width: 24px;
		height: 24px;
		border-radius: 50%;
		border-left-color: var(--secondary-color);
		animation: spin 1s ease infinite;
		margin: 1rem auto
	}

	@keyframes spin {
		0% {
			transform: rotate(0)
		}

		to {
			transform: rotate(360deg)
		}
	}

	.search-popup {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: #00221dcc;
		-webkit-backdrop-filter: blur(5px);
		backdrop-filter: blur(5px);
		display: none;
		align-items: flex-start;
		justify-content: center;
		padding-top: 15vh;
		z-index: 1000
	}

	.close-popup-button {
		position: absolute;
		top: 40px;
		right: 40px;
		font-size: 3rem;
		color: #fff;
		background: none;
		border: none;
		cursor: pointer;
		line-height: 1
	}

	.search-popup-content {
		width: 100%;
		max-width: 700px
	}

	.search-form {
		display: flex;
		gap: 1rem
	}

	#popup-search-input {
		flex-grow: 1;
		padding: 1rem 1.5rem;
		font-size: 1.2rem;
		border: 2px solid var(--primary-color);
		border-radius: 50px;
		background-color: var(--white-color)
	}

	#popup-search-input:focus {
		outline: none
	}

	.search-form button {
		padding: 1rem 2rem;
		border: none;
		background-color: var(--primary-color);
		color: #fff;
		font-size: 1rem;
		font-weight: 700;
		border-radius: 50px;
		cursor: pointer
	}

	.search-suggestions-container {
		display: none;
		margin-top: 1rem;
		background-color: var(--white-color);
		border-radius: 8px;
		padding: .5rem;
		max-height: 40vh;
		overflow-y: auto
	}

	.suggestion-group {
		padding: .5rem 1rem
	}

	.suggestion-group-title {
		color: #999;
		font-size: .8rem;
		text-transform: uppercase;
		margin-bottom: .5rem;
		font-weight: 600
	}

	.suggestion-list {
		list-style: none;
		padding: 0;
		margin: 0
	}

	.suggestion-item {
		padding: .75rem 1rem;
		cursor: pointer;
		border-radius: 6px;
		transition: background-color .2s
	}

	.suggestion-item:hover {
		background-color: #f1f3f5
	}

	.main-content {
		padding: 0 1rem
	}

	.search-results-page {
		max-width: 1100px;
		margin: 2rem auto
	}

	.results-header h1 {
		text-align: left;
		font-size: 1.8rem
	}

	.results-header h1 span {
		color: var(--primary-color)
	}

	.results-header p {
		color: var(--text-secondary-color);
		margin-top: -1rem
	}

	.results-top-bar {
		display: flex;
		justify-content: space-between;
		align-items: center;
		border-bottom: 1px solid var(--border-color);
		margin-bottom: 1.5rem
	}

	.result-tabs {
		display: flex;
		flex-wrap: wrap
	}

	.tab-button {
		padding: .75rem 1rem;
		border: none;
		background: none;
		cursor: pointer;
		font-size: .95rem;
		font-weight: 600;
		color: var(--text-secondary-color);
		border-bottom: 3px solid transparent;
		margin-bottom: -1px
	}

	.tab-button.active {
		color: var(--primary-color);
		border-bottom-color: var(--primary-color)
	}

	.tab-button span {
		font-size: .8em;
		font-weight: 500;
		margin-left: 6px
	}

	.result-filters {
		display: flex;
		gap: 1rem;
		padding-bottom: 1.5rem
	}

	.result-filters select,
	#sort-by {
		padding: .5rem 1rem;
		border-radius: 6px;
		border: 1px solid var(--border-color);
		background-color: var(--white-color);
		font-size: .9rem
	}

	.results-list {
		display: grid;
		gap: 1.5rem
	}

	.no-results-message {
		text-align: center;
		padding: 4rem;
		background-color: var(--white-color);
		border-radius: 8px;
		border: 1px solid var(--border-color)
	}

	.result-item {
		display: flex;
		background-color: var(--white-color);
		border: 1px solid var(--border-color);
		border-radius: 8px;
		overflow: hidden;
		transition: box-shadow .2s ease-in-out;
		position: relative
	}

	.result-item:hover {
		box-shadow: 0 4px 12px #00000014
	}

	.result-item .item-thumbnail {
		flex-shrink: 0;
		width: 200px;
		background-color: #eee
	}

	.result-item .item-thumbnail img {
		width: 100%;
		height: 100%;
		object-fit: cover
	}

	.result-item .item-content {
		flex-grow: 1;
		padding: 1.25rem 1.5rem;
		display: flex;
		flex-direction: column;
		min-width: 0
	}

	.item-header {
		margin-bottom: .25rem
	}

	.item-header h2 {
		margin: 0;
		font-size: 1.2rem;
		line-height: 1.4;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		padding-right: 100px
	}

	.item-header h2 a {
		text-decoration: none;
		color: var(--secondary-color)
	}

	.item-header h2 a:hover {
		color: var(--primary-color)
	}

	.item-badge {
		position: absolute;
		top: 1.25rem;
		right: 1.5rem;
		flex-shrink: 0;
		padding: .25em .75em;
		font-size: .75rem;
		font-weight: 700;
		border-radius: 50px;
		color: var(--white-color)
	}

	.item-description,
	.item-address,
	.item-price,
	.item-date {
		font-size: .9rem;
		color: var(--text-secondary-color);
		margin: 4px 0;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis
	}

	.item-price {
		font-size: 1.1rem;
		font-weight: 700;
		color: var(--danger-color);
		margin-top: auto
	}

	.item-date {
		font-size: .8rem;
		color: #999
	}

	.search-extra-suggestions {
		margin-top: 1.5rem;
		display: flex;
		gap: 2rem;
		border-top: 1px solid rgba(255, 255, 255, .1);
		padding-top: 1.5rem
	}

	.suggestions-section {
		flex: 1
	}

	.suggestions-title {
		color: #a0aec0;
		font-size: .9rem;
		font-weight: 600;
		margin-bottom: .75rem;
		display: flex;
		align-items: center;
		gap: .5rem
	}

	.suggestions-tags {
		display: flex;
		flex-wrap: wrap;
		gap: .5rem
	}

	.suggestion-tag {
		background-color: #ffffff1a;
		color: #edf2f7;
		padding: .4rem .8rem;
		border-radius: 20px;
		font-size: .9rem;
		cursor: pointer;
		border: 1px solid rgba(255, 255, 255, .2);
		transition: all .2s ease
	}

	.suggestion-tag:hover {
		background-color: var(--primary-color);
		color: var(--white-color);
		border-color: var(--primary-color)
	}

	.hamburger-button {
		display: none
	}

	.menu-overlay {
		display: none !important
	}

	.main-nav.is-open {
		transform: none
	}

	.main-nav.is-open {
		display: block;
		position: absolute;
		top: 70px;
		left: 0;
		width: 100%;
		height: calc(100vh - 70px);
		background-color: var(--white-color);
		z-index: 100;
		overflow-y: auto
	}

	.main-nav .has-submenu>a:after {
		content: "▼";
		font-size: .6em;
		margin-top: 2px;
		transition: transform .2s ease-in-out
	}

	.simple-menu.is-active,
	.mega-menu.is-active {
		display: block;
		opacity: 1;
		pointer-events: auto;
		visibility: visible
	}

	.simple-menu ul,
	.simple-menu li {
		display: block;
		height: auto
	}

	.simple-menu a {
		width: 100%;
		height: auto;
		padding: .75rem 1rem;
		box-sizing: border-box
	}

	.simple-menu a:after {
		display: none
	}

	.simple-menu-content {
		max-width: 1100px;
		margin: 0 auto;
		padding: 1rem 1.5rem
	}

	.simple-menu.menu-align-right,
	.mega-menu.menu-align-right {
		left: auto;
		right: 0
	}

	.main-nav.active .simple-menu,
	.main-nav.active .mega-menu {
		display: none;
		position: static;
		border: none;
		box-shadow: none !important;
		opacity: 1;
		visibility: visible;
		transform: none;
		width: 100%;
		background-color: #f8f9fa
	}

	.main-nav.active .has-submenu.open>.simple-menu,
	.main-nav.active .has-submenu.open>.mega-menu {
		display: block
	}

	.main-nav>ul#main-menu-list {
		display: flex;
		align-items: center;
		height: 100%;
		margin: auto
	}

	.main-nav>ul>li>a:hover {
		background-color: #f0f2f5;
		color: var(--primary-color)
	}
}

@media (max-width: 768px) {
	.search-popup {
		padding-left: 1rem;
		padding-right: 1rem;
		box-sizing: border-box
	}

	.main-content {
		padding: 0 .5rem
	}

	.search-results-page {
		margin: 1rem auto
	}

	.results-header h1 {
		font-size: 1.5rem
	}

	.result-item {
		flex-direction: column
	}

	.result-item .item-thumbnail {
		width: 100%;
		height: 180px
	}

	.result-item .item-content {
		padding: 1rem
	}

	.item-badge {
		top: 1rem;
		right: 1rem
	}

	.item-header h2 {
		white-space: normal;
		padding-right: 0;
		line-height: 1.4
	}

	.item-description {
		white-space: normal
	}

	.results-top-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 1rem;
		margin-bottom: 1rem
	}

	.result-tabs {
		overflow-x: auto;
		white-space: nowrap;
		padding-left: 1rem;
		padding-right: 1rem;
		margin-left: -.5rem;
		margin-right: -.5rem;
		box-sizing: border-box;
		-ms-overflow-style: none;
		scrollbar-width: none
	}

	.result-tabs::-webkit-scrollbar {
		display: none
	}

	.result-filters {
		flex-direction: column;
		width: 100%;
		overflow-x: auto;
		white-space: nowrap;
		padding-left: 1rem;
		padding-right: 1rem;
		margin-left: -.5rem;
		margin-right: -.5rem;
		box-sizing: border-box;
		-ms-overflow-style: none;
		scrollbar-width: none
	}

	.results-header {
		text-align: left;
		padding: 1rem
	}

	.results-header h1 {
		font-size: 1.5rem;
		line-height: 1.3;
		margin: 0
	}

	.results-header p {
		font-size: .9rem;
		margin-top: .25rem
	}

	.result-filters select,
	#sort-by {
		padding: .5rem 1rem;
		border-radius: 6px;
		border: 1px solid var(--border-color);
		background-color: var(--white-color);
		font-size: .9rem;
		margin-left: 1rem
	}

	.select-wrapper {
		position: relative;
		width: 100%
	}

	.custom-select-trigger {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: .75rem 1rem;
		border-radius: 6px;
		border: 1px solid var(--border-color);
		background-color: var(--white-color);
		font-size: .9rem;
		cursor: pointer
	}

	.custom-dropdown-panel {
		position: absolute;
		top: calc(100% + 4px);
		left: 0;
		right: 0;
		z-index: 10;
		background-color: var(--white-color);
		border: 1px solid var(--border-color);
		border-radius: 6px;
		box-shadow: 0 4px 12px #0000001a;
		padding: .5rem;
		display: none
	}

	.select-wrapper.is-open .custom-dropdown-panel {
		display: block
	}
}

.pagination-container {
	display: flex;
	justify-content: center;
	margin-top: 2.5rem;
	padding-bottom: 2rem
}

.pagination-list {
	display: flex;
	list-style: none;
	padding: 0;
	margin: 0;
	gap: .5rem
}

.page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	color: var(--text-color);
	background-color: var(--white-color);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	min-width: 40px;
	height: 40px;
	padding: 0 .5rem;
	font-weight: 500;
	transition: all .2s ease
}

.page-link:hover {
	background-color: #f1f3f5;
	border-color: #adb5bd
}

.page-item.active .page-link {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	color: var(--white-color);
	font-weight: 700
}

.page-item.disabled .page-link {
	color: #ccc;
	background-color: #f9fafb;
	cursor: not-allowed;
	border-color: var(--border-color)
}

@media (max-width: 480px) {
	.search-form {
		flex-direction: column;
		gap: .75rem
	}

	.search-form button {
		width: 100%;
		padding-top: 1rem;
		padding-bottom: 1rem;
		font-size: 1.1rem
	}
}

.badge-PROJECT {
	background-color: #198754
}

.badge-PRODUCT_SALE {
	background-color: #dc3545
}

.badge-PRODUCT_RENT {
	background-color: #0d6efd
}

.badge-NEWS_ARTICLE {
	background-color: #0dcaf0
}

.badge-WIKI_ARTICLE {
	background-color: #6c757d
}

.badge-BUSINESS_PROFILE {
	background-color: #ffc107;
	color: #000
}


/* --- Style gốc --- */

/* --- Biến màu và Style chung --- */
:root {
    --primary-color: #0284c7;
    --secondary-color: #052f63;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #e9e9e9;
    --body-bg: #f4f7f6;
    --white-color: #fff;
    --gray-bg: #f8f9fa;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    margin: 0;
    background-color: var(--white-color);
    color: var(--text-dark);
    line-height: 1.7;
  
}

.experts-section,
.projects-section,
.press-section,
.news-scroll-wrapper,
.projects-scroll-wrapper {
    overflow-x: hidden;
}
img {
    width: 100%;
    height: auto;
    display: block;
}
.widget a > img {
    width: 100%; /* Đảm bảo ảnh luôn chiếm 100% chiều rộng của khối widget */
    height: auto; /* Chiều cao tự động điều chỉnh theo để không làm méo ảnh */
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}
a:hover {
    color: var(--secondary-color);
}

.header-footer-limiter {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-limiter {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- Banner --- */
.banner-section {
    background-color: var(--secondary-color);
    width: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;

    /* QUAN TRỌNG: Đẩy nội dung xuống để không bị header che */
    /* Giá trị padding-top phải lớn hơn chiều cao của header (80px) */
    padding-top: 20px; 
    padding-bottom: 40px;
}
.banner-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}
.banner-text {
    flex-basis: 55%;
}
.banner-text h1 {
    font-size: 42px;
    color: var(--secondary-color);
    line-height: 1.3;
    margin: 0 0 20px 0;
}
.worry-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 20px;
}
.worry-title {
    font-weight: 600;
    margin: 10px 0 5px 0;
    color: var(--primary-color);
    display: flex;
    align-items: flex-start; /* Thay đổi ở đây */
    gap: 8px; 
}
.worry-title svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0; /* Đảm bảo icon không bị co lại */
    color: var(--primary-color); /* Tô màu xanh cho icon */
    padding-top: 5px
}
.worry-detail {
    margin: 0;
    font-size: 15px;
    color: var(--white-color);
}
.banner-image {
    flex-basis: 45%;
    max-width: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Quan trọng: Giấu phần ảnh tràn ra ngoài */
    border-radius: 0px; /* Thêm bo góc để hiệu ứng đẹp hơn */
    margin-top: 30px;
}
.banner-image img {
    max-height: 420px;
    width: auto;
    min-width: 100%;
    min-height: 100%;
    /* Áp dụng animation */
    animation: subtleZoom 15s ease-in-out infinite alternate;
  
  
}
/* MỚI: Định nghĩa animation chuyển động */
@keyframes subtleZoom {
  0% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1.15);
  }
}

/* --- Section Chuyên gia --- */
.experts-section {
    padding: 60px 0;
    background-color: #fff;
}
.experts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.expert-card {
    text-align: center;
}
.expert-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px auto;
    border: 3px solid var(--border-color);
    transition: transform 0.3s ease;
}
.expert-card:hover .expert-avatar img {
    transform: scale(1.1);
}
.expert-content {
    min-height: 150px; 
}
.expert-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.expert-title a {
    color: var(--secondary-color);
}
.expert-title a:hover {
    color: var(--primary-color);
}
.expert-author {
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}


/* --- Section Tin tức nổi bật --- */
.main-container {
    padding: 60px 0;
    background-color: var(--body-bg);
}
.section-header {
    text-align: center;
    margin-bottom: 40px;
}
.section-header h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.section-header p {
    font-size: 16px;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto;
}
.featured-news-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr; 
    gap: 40px;
}
.post-thumbnail-large {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1366 / 768;
}
.post-thumbnail-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.post-thumbnail-large:hover img {
    transform: scale(1.05);
}
.post-thumbnail-large::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 20%, rgba(0,0,0,0) 60%);
    z-index: 1;
}
.post-content-large {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 25px;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
}
.post-title-large {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
}
.post-title-large a {
    color: var(--white-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.post-title-large a:hover {
    text-decoration: underline;
}
.secondary-posts {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.secondary-post-small {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.post-thumbnail-small img {
    width: 165px;
    aspect-ratio: 1366 / 768;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.post-title-small {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;

    /* ĐÃ THÊM: Cố định chiều cao để các mục tin bằng nhau */
    height: 72px; 

    /* Giới hạn tiêu đề trong 3 dòng và thêm dấu ... */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}
.post-title-small a {
    color: var(--text-dark);
}
.post-title-small a:hover {
    color: var(--primary-color);
}
.view-all-link {
    text-align: center;
    margin-top: 40px;
}
.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--white-color);
}

/* --- Footer --- */
.footer-wrapper {
    /* ĐỒNG BỘ: Dùng nền trắng giống header */
    background-color: var(--white-color); 
    /* THÊM MỚI: Thêm đường kẻ trên để phân tách với nội dung */
    border-top: 1px solid var(--border-color);
    /* ĐỔI MÀU: Màu chữ chính thành màu xám nhạt, dễ đọc trên nền trắng */
    color: var(--text-light); 
    padding: 50px 0 20px 0;
    margin-top: 0px;
}
.site-footer {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-logo {
    height: 35px;
    width: auto;
    margin-bottom: 30px;
}
.footer-widget p {
    margin: 0;
    padding-bottom: 12px;
}
/* ĐỔI MÀU: Màu link và hover */
.footer-widget a {
    color: var(--text-dark); 
}
.footer-widget a:hover {
    color: var(--primary-color);
}
/* ĐỔI MÀU: Màu tiêu đề widget */
.footer-widget p.widget-title {
    font-size: 18px;
    margin: 0 0 20px 0;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 10px;
    border: none;
    cursor: default;
}
.footer-widget p.widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}
.widget-links {
    list-style: none;
    padding: 0;
    margin: 0;
    line-height: 1.7;
}
.widget-links li {
    padding-bottom: 12px;
}
.widget-links li:last-child,
.footer-widget p:last-of-type {
    padding-bottom: 0;
}
.bct-logo {
    width: 150px;
}
.copyright-text {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
    font-size: 14px;
}
.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}
/* ĐỔI MÀU: Màu icon social */
.social-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--text-light); 
    transition: all 0.3s ease;
}
.social-icon:hover svg {
    fill: var(--primary-color);
    transform: scale(1.1);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .header-right-block {
        gap: 40px;
    }
     .main-nav {
        display: none; 
    }

    /* Hiện nút menu mobile */
    .hamburger-button {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }
    .hamburger-button .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--secondary-color);
        margin: 5px auto;
    }
    
    /* Bỏ các margin để space-between hoạt động đúng */
    .logo-link {
        margin-right: 0;
    }
    .site-header {
        position: relative;
        /* Giữ lại để đẩy nút hamburger và các nút actions ra 2 bên */
        justify-content: space-between;
    }

    /* 2. Tách logo ra khỏi luồng và căn giữa tuyệt đối */
    .logo-link {
        position: absolute;
        left: 50%;
    
        /* Dùng transform để căn giữa chính xác bất kể kích thước logo */
        transform: translate(-50%, -50%);
    }

    /* 3. Đảm bảo các nút ở 2 bên không bị logo che mất */
    .hamburger-button, .header-actions {
        z-index: 1;
    }

}
.logo-link {
        margin-right: auto;
    }
@media (max-width: 1024px) {
    .header-right-block { display: none; }
    .hamburger-button { display: block; }
}
@media (max-width: 992px) {
    .banner-section {
        height: auto;
        padding: 20px 0;
    }
    .banner-content {
        flex-direction: column;
        text-align: center;
    }
    .banner-image {
        margin-top: 30px;
        max-width: 400px;
    }
    .banner-image img {
        max-height: none;
    }
    .banner-text h1 {
        font-size: 32px;
    }
    .worry-list {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .experts-grid {
        
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
    
    .featured-news-grid {
        grid-template-columns: 1fr;
    }
    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-1, .footer-col-4 {
        grid-column: span 2;
        text-align: left;
    }

    .horizontal-scroll-wrapper {
        overflow-x: auto; /* Cho phép cuộn ngang */
        padding-bottom: 20px;
    }
    
    /* Thiết lập chung cho các grid cần cuộn ngang */
    .experts-grid,
    .projects-grid,
    .press-grid {
        display: flex;
        grid-template-columns: unset;
        width: max-content;
        padding-left: 20px;
        padding-right: 20px;
        margin: 0; /* Reset margin */
        max-width: none; /* Bỏ giới hạn max-width trên mobile */
    }
    
    /* Thiết lập kích thước cố định cho từng loại card */
    .expert-card {
        width: 280px;
        flex-shrink: 0;
    }
    .project-card {
        width: 280px;
        flex-shrink: 0;
    }
    .press-card {
        width: 300px;
        flex-shrink: 0;
    }

    /* Các điều chỉnh khác */
    .developers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .featured-news-grid {
        grid-template-columns: 1fr;
    }
    .site-footer {
        grid-template-columns: 1fr 1fr;
    }
    .footer-col-1, .footer-col-4 {
        grid-column: span 2;
        text-align: left;
    }
  
}
@media (max-width: 767px) {
    /* =================================== */
    /* ==   CẬP NHẬT HEADER CHO MOBILE  == */
    /* =================================== */
    .site-header {
        position: relative; /* Đặt làm gốc cho việc định vị logo */
        justify-content: space-between; /* Đẩy 2 item ở 2 đầu ra xa nhau */
    }

    .logo-link {
        position: absolute; /* Tách logo khỏi luồng flex */
        left: 50%; /* Đưa logo ra giữa theo chiều ngang */
        transform: translateX(-50%); /* Căn chuẩn giữa theo chiều ngang */
        margin-right: 0; /* Ghi đè style desktop */
    }

    /* Đảm bảo nút menu và icon có thể được bấm */
    .hamburger-button, .header-actions {
        z-index: 1;
    }
    
    /* =================================== */
    
    .header-footer-limiter, .content-limiter {
        padding: 0 15px;
    }
    
    .banner-text h1 { font-size: 28px; }

    .experts-grid {
        grid-template-columns: 1fr;
    }
    .expert-content {
        min-height: auto;
    }
   
  
     .footer-col-1 .footer-logo, .footer-col-4 .bct-logo {
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 30px;
    }
    .footer-widget {
        border-bottom: 1px solid #3d6a63;
        padding: 15px 0;
    }
    .footer-widget:last-of-type {
        border-bottom: none;
    }

    .footer-wrapper {padding: 30px 0 20px 0;}
 
    .footer-widget p.widget-title::before {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        color: #ccc;
        transition: transform 0.3s ease;
    }
     
}


/* ======================= Section Dự án nổi bật (ĐÃ CẬP NHẬT) ======================= */
.projects-section {
    padding: 60px 0;
    background-color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Mặc định: nội dung ở dưới */
    position: relative;
    aspect-ratio: 3 / 4; /* ĐÃ CẬP NHẬT: Tỷ lệ 3:4 */
    padding: 25px;
    border-radius: 16px;
    overflow: hidden;
    color: var(--white-color);
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: all 0.5s ease;
}

/* Lớp phủ gradient */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 50%);
    z-index: 1;
    transition: background 0.5s ease;
}

.project-card-content {
    position: relative;
    z-index: 2;
    transition: all 0.5s ease;
}

.project-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
}

.project-address {
    font-size: 16px;
    margin: 0 0 10px 0;
    opacity: 0.9;
}

.project-price {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    display: inline-block;
}

/* Nút xem chi tiết (ẩn mặc định) */
.btn-project-detail {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
}


/* --- Hiệu ứng khi hover (ĐÃ CẬP NHẬT) --- */
.project-card:hover {
    justify-content: center; /* Đưa nội dung vào giữa theo chiều dọc */
}

.project-card:hover .project-card-content {
    text-align: center; /* Căn giữa nội dung theo chiều ngang */
    color: var(--white-color);
}

.project-card:hover::after {
     background: rgba(0, 0, 0, 0.6);
}


/* Hiện nút lên khi hover */
.project-card:hover .btn-project-detail {
    opacity: 1;
    transform: translateY(0);
}


/* ... Các style còn lại ... */

/* ======================= Responsive Media Queries ======================= */
@media (max-width: 992px) {
    /* ... */
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .horizontal-scroll-wrapper,
    .press-grid-wrapper {
        overflow-x: auto;
        padding-bottom: 20px;
        margin-left: -20px;
        margin-right: -20px;
        
        /* THÊM VÀO: Kích hoạt hiệu ứng "hít" khi cuộn */
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px; /* Đảm bảo padding được tính khi "hít" */
    }
    .expert-card {
        width: 280px;
        flex-shrink: 0;
        scroll-snap-align: start; /* Item sẽ hít vào điểm bắt đầu */
    }
    
    .project-card {
        /* ĐÃ CẬP NHẬT: Chiều rộng bằng chiều rộng màn hình trừ đi khoảng đệm */
        width: calc(100vw - 40px); 
        flex-shrink: 0;
        scroll-snap-align: center; /* Item sẽ hít vào giữa màn hình */
    }
    .experts-grid,
    .projects-grid,
    .press-grid {
        display: flex;
        grid-template-columns: unset;
        width: max-content;
        padding: 0 20px;
        margin: 0;
        max-width: none;
    }
    
}


/* ======================= Section Chủ đầu tư nổi bật (MỚI) ======================= */
.developers-section {
    padding: 60px 0;
    background-color: var(--body-bg); /* Nền xám để xen kẽ */
}

.developers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
}

.developer-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    min-height: 120px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.developer-logo {
    max-height: 100%;

    transition: all 0.3s ease;
}

.developer-name {
    margin-top: 15px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

/* Hiệu ứng khi hover */
.developer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}

.developer-card:hover .developer-logo {
    max-height: 50px; /* Logo thu nhỏ lại một chút */
}

.developer-card:hover .developer-name {
    opacity: 1;
    transform: translateY(0);
}
/* ======================= Section Báo chí nói về chúng tôi (MỚI) ======================= */
.press-section {
    padding: 60px 0;
    background-color: #fff;
}

/* Trên màn hình lớn, hiển thị dạng lưới */
.press-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 0 20px; /* Thêm padding cho content-limiter trên desktop */
    max-width: 1100px;
    margin: 0 auto;
}

.press-card {
    display: block;
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: all 0.3s ease;
    text-decoration: none;
}

.press-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.12);
}

.press-card-image img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.press-card-content {
    padding: 20px;
}

.press-logo {
    max-height: 25px;
    width: auto;
    margin-bottom: 15px;
}

.press-title {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.contact-section {
    padding: 80px 0;
    background-color: var(--body-bg); /* Đổi sang màu xám nhạt */
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-info h2 {
    font-size: 32px;
    color: var(--secondary-color);
    line-height: 1.4;
    margin: 0 0 15px 0;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.contact-details-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0 0;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-details-list svg {
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-details-list a {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
}
.contact-details-list a:hover {
    color: var(--primary-color);
}

/* Form Styling */
.contact-form-wrapper {
    background-color: #fff; /* Nền trắng cho form để nổi bật trên nền xám */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.07);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-dark);
    font-size: 16px;
    font-family: 'Be Vietnam Pro', sans-serif;
    box-sizing: border-box;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
}

.contact-form button.btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

.form-privacy-note {
    color: var(--text-light);
    font-size: 13px;
    text-align: center;
    margin-top: 0;
}


@media (max-width: 767px) {
 
    .banner-section {
        padding-top: 20px; /* Điều chỉnh lại padding cho mobile */
        padding-bottom: 20px;
    }
    
    .banner-content {
        flex-direction: column; /* Xếp dọc */
    }

    .banner-image {
        order: 1; 
        width: 100%;
        max-width: 100%; /* Cho phép ảnh rộng tối đa trên mobile */
        margin: 0 auto 30px auto;
    }

    .banner-image img {
        width: 100%;
        height: auto; /* Chiều cao tự động */
    }

    .banner-text {
        order: 2; /* Đưa text xuống dưới */
        text-align: center;
    }

    .worry-list {
        grid-template-columns: 1fr; /* Chuyển danh sách thành 1 cột */
        text-align: left;
    }

    .expert-card, .project-card, .press-card {
        width: 260px; /* Có thể điều chỉnh lại chiều rộng card cho mobile */
    }

    .developers-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        /* Dòng này sẽ chuyển layout thành 1 cột, 
           làm cho phần form tự động rớt xuống dưới */
        grid-template-columns: 1fr; 
        gap: 50px;
    }
    .contact-info {
        text-align: center;
    }

    .contact-details-list {
        align-items: center;
        justify-content: center;
    }

    .contact-details-list li {
        justify-content: center;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px; 
    }
    .project-card {
        width: calc(100vw - 60px); /* 15px padding mỗi bên */
    }

    .horizontal-scroll-wrapper,
    .press-grid-wrapper {
        margin-left: -15px;
        margin-right: -15px;
        scroll-padding: 0 15px;
    }
    .experts-grid, .projects-grid, .press-grid {
        padding-left: 15px;
        padding-right: 15px;
    }
    .site-footer {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 20px;
    }
    .footer-col-1, .footer-col-4 {
        grid-column: auto;
        text-align: left;
    }
 

    .footer-widget:last-of-type {
        border-bottom: none;
    }
    .footer-widget p.widget-title {
        margin-bottom: 0;
        cursor: pointer;
        display: flex;
        align-items: center;
        width: 100%;
        padding-bottom: 0; /* Bỏ padding-bottom của desktop */
    }
    .footer-widget p.widget-title::before {
        content: none;
        display: none;
    }
    
   
   
    .footer-widget p.widget-title::after {
        content: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ccc' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
        /* Reset lại các thuộc tính của gạch chân */
        position: static;
        width: 16px;
        height: 16px;
        background-color: transparent;
        /* Đẩy mũi tên về bên phải */
        margin-left: auto;
        padding-left: 10px;
        transition: transform 0.3s ease;
    }
     .footer-col-4 h4.widget-title::after {
        display: none;
    }
    .footer-widget p.widget-title.accordion-toggle.active::after {
        transform: rotate(-180deg);
    }
    
    .widget-links {
        display: none;
        padding-top: 15px;
    }
    
    .press-section {
    margin-left: 15px;
}

}



/* ======================= Styles cho trang Chi tiết Bài viết (MỚI) ======================= */
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.sidebar-column {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    
    /* Vị trí mặc định khi header HIỂN THỊ (80px header + 20px khoảng hở) */
    top: 100px;
    
    order: 1;
    
    /* THÊM VÀO: Hiệu ứng trượt mượt mà cho sidebar */
    transition: top 0.3s ease-in-out;
}

/* THÊM VÀO: Trạng thái mới khi header BỊ ẨN */
.sidebar-column.sidebar--header-hidden {
    /* Khi header ẩn, sidebar chỉ cần cách đỉnh 20px */
    top: 32px;
}

.breadcrumb {
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--text-light);
}
.breadcrumb a {
    color: var(--text-light);
}
.breadcrumb a:hover {
    color: var(--primary-color);
}

.article-detail h1 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.article-detail .article-meta {
    margin-bottom: 15px;
}
.article-meta {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 0px;
    padding-bottom: 0px;
}
.article-meta span {
    margin-right: 15px;
}
.featured-image-detail {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
}
.article-content p,
.article-content ul,
.article-content ol {
    margin-bottom: 1.5em;
}
.article-content h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 40px;
}
.article-content h3 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-top: 30px;
}
.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    font-size: 18px;
    color: var(--text-light);
}

/* Sidebar Widget */
.widget {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    border-bottom: 1px dashed #ddd;
}
.widget ul li:last-child {
    border-bottom: none;
}
.widget ul li a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    padding: 10px 0;
}


/* ======================= Cập nhật Responsive Media Queries ======================= */
/* ... */
@media (max-width: 992px) {
    /* ... các quy tắc cũ ... */

    /* Bố cục trang chi tiết trên tablet */
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar-column {
        width: 100%;
        position: static; /* Bỏ dính sidebar */
        margin-top: 40px;
    }
}
.toc-container {
    background-color: var(--body-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    padding: 20px 25px;
    border-radius: 8px;
    margin: 30px 0;
}
.toc-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--secondary-color);
}
.toc-list {
    margin: 0;
    padding-left: 20px; /* Để hiện số thứ tự của list */
}
.toc-list li {
    margin-bottom: 8px;
}
.toc-list a {
    color: var(--text-dark);
    text-decoration: none;
}
.toc-list a:hover {
    color: var(--primary-color);
}


/* MỚI: Style cho Lightbox xem ảnh */
.lightbox-trigger {
    cursor: zoom-in;
}


.lightbox-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}
/* MỚI: Khối chứa các nút điều khiển */
.lightbox-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    gap: 10px;
}

/* MỚI: Style chung cho các nút */

.lightbox-control-btn:hover {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff; /* Giữ màu icon trắng khi hover */
}
.lightbox-control-btn svg {
    width: 20px;
    height: 20px;
}
/* Xóa style cũ của nút đóng dạng text */
.lightbox-close { display: none; }
.lightbox-close:hover {
    color: #ccc;
}

.related-project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.related-project-header svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

.related-project-header h4 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 20px;
}

.related-project-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.related-project-image img {
    width: 150px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-project-info .project-name {
    margin: 0 0 5px 0;
    font-size: 18px;
}
.related-project-info .project-name a {
    color: var(--secondary-color);
    font-weight: 600;
}
.related-project-info .project-address,
.related-project-info .project-price {
    font-size: 14px;
    color: var(--text-light);
    margin: 0 0 8px 0;
}
.related-project-info .project-price {
    font-weight: 600;
    color: var(--primary-color);
}

/* Nút "Xem chi tiết" sẽ nằm ở cuối */
.related-project-item .btn-primary.btn-small {
    margin-left: auto; /* Đẩy nút về phía bên phải */
    padding: 8px 16px;
    font-size: 14px;
    flex-shrink: 0;
}


/* --- Cập nhật Responsive Media Queries --- */
@media (max-width: 767px) {

    
    
    /* Responsive cho mục dự án liên quan */
    .related-project-item {
        flex-wrap: wrap; /* Cho phép rớt dòng nếu không đủ không gian */
        gap: 15px;
    }
    .related-project-info {
        flex-basis: 100%; /* Cho phần info chiếm cả hàng */
        order: 2; /* Đưa info xuống dưới ảnh */
    }
    .related-project-image {
        flex-basis: 100%;
        order: 1;
    }
     .related-project-image img {
        width: 100%;
        height: auto; /* Chiều cao tự động */
        aspect-ratio: 16/9;
    }
    .related-project-item .btn-primary.btn-small {
        margin-left: 0; 
        margin-top: 10px;
        order: 3;
    }
    .article-actions {
        justify-content: flex-start; /* Canh lề trái trên mobile */
    }

    /* Chuyển bài viết liên quan thành 1 cột */
    .related-articles-grid {
        grid-template-columns: 1fr;
    }
}
/* ======================= Mục Chia sẻ & Bài viết liên quan (MỚI) ======================= */
.article-actions {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end; /* Đẩy mục chia sẻ về bên phải */
}

.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
}
.article-share strong {
    font-weight: 600;
    margin-right: 5px;
}

.social-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
}
.social-share-btn:hover {
    background-color: var(--body-bg);
    border-color: #ccc;
    color: var(--text-dark);
}
.social-share-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    color: #fff;
}
.social-share-btn svg {
    width: 16px;
    height: 16px;
}


/* Bài viết liên quan */
.related-articles-section {
    margin-top: 40px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.related-article-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.related-article-card:hover .related-article-thumbnail img {
    transform: scale(1.05);
}

.related-article-title {
    font-size: 18px;
    line-height: 1.5;
    margin: 15px 0 0 0;
}
.related-article-title a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}
.related-article-title a:hover {
    color: var(--primary-color);
}


/* ======================= Styles cho trang Tác giả (MỚI) ======================= */
.author-profile-box {
    display: flex;
    gap: 30px;
    align-items: center;
    background-color: var(--body-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}
.author-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.author-name {
    font-size: 32px;
    color: var(--secondary-color);
    margin: 0 0 5px 0;
}
.author-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 5px 0;
}
.author-experience {
    font-size: 16px;
    color: var(--text-light);
    margin: 0 0 15px 0;
}
.author-socials {
    display: flex;
    gap: 15px;
}
.author-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--text-dark);
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}
.author-socials a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.author-bio {
    margin-bottom: 40px;
}

.author-posts-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.post-card-horizontal {
    display: flex;
    gap: 20px;
}
.post-card-thumbnail img {
    width: 200px;
    height: 130px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}
.post-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 10px 0;
}
.post-card-title a {
    color: var(--secondary-color);
}
.post-card-meta {
    font-size: 14px;
    color: var(--text-light);
}

/* ======================= Cập nhật Responsive Media Queries ======================= */
@media (max-width: 767px) {
    /* ... */
    /* Responsive cho trang tác giả */
    .author-profile-box {
        flex-direction: column;
        text-align: center;
    }
    .author-socials {
        justify-content: center;
    }
    .post-card-horizontal {
        flex-direction: column;
    }
    .post-card-thumbnail img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    /* ... */
}




/* ... Các style đã có từ trước ... */

/* ======================= Styles cho trang Chi tiết Dự án (MỚI) ======================= */

/* --- Section Hero --- */
.project-hero-section {
    background-color: var(--body-bg);
    padding-bottom: 50px;
}

.project-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    height: 450px;
}
.gallery-main-image, .gallery-side-image {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-main-image, .gallery-side-image {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 8px;
    position: relative; /* Thêm vào */
}
.gallery-main-image img, .gallery-side-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-main-image:hover img, .gallery-side-image:hover img {
    transform: scale(1.05);
}
.gallery-side-images {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}

.project-hero-info {
    padding-top: 30px;
}
.project-title-detail {
    font-size: 36px;
    color: var(--secondary-color);
    margin: 10px 0;
}
.project-address-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}
.project-address-detail svg {
    flex-shrink: 0;
}
.project-params-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 25px;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
}
.param-item {
    font-size: 15px;
    align-items: center;
    
}
.param-item strong {
    font-weight: 600;
    color: var(--text-dark);
}
.param-item span {
    color: var(--text-light);
}

/* --- Section Tổng quan --- */
.project-overview-section {
    padding: 60px 0;
    background-color: #fff;
}
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.overview-content p {
    margin-bottom: 1.5em;
    color: var(--text-light);
}
.overview-content strong {
    color: var(--text-dark);
}
.overview-image img {
    border-radius: 12px;
}


/* --- Cập nhật Responsive Media Queries --- */
@media (max-width: 767px) {
    /* ... */
    /* Responsive cho trang chi tiết dự án */
    .project-params-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px; /* Giảm khoảng cách cho gọn hơn */
    }
    .gallery-side-images {
        display: none; /* Ẩn ảnh phụ trên mobile cho gọn */
    }
    .project-title-detail {
        font-size: 28px;
    }
    .overview-grid {
        grid-template-columns: 1fr;
    }
    .overview-image {
        order: -1; /* Đưa ảnh lên trên phần text */
        margin-bottom: 30px;
    }
    /* ... */
}
.gallery-main-image {
    position: relative; /* Thêm để định vị overlay */
}
/* MỚI: Overlay cho ảnh chính */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.gallery-main-image:hover .gallery-overlay {
    opacity: 1;
}


/* ======================= Section Hero Dự án (MỚI) ======================= */
.project-hero-section {
    position: relative;
    background-color: var(--body-bg);
}
.hero-gallery-container {
    position: relative;
}
/* --- Bố cục Desktop --- */
.hero-gallery-desktop {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Tỷ lệ 70/30 */
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 450px;
    width: 100%;
}
.hero-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.hero-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hero-gallery-item:hover img {
    transform: scale(1.05);
}
.hero-gallery-item.main-image {
    grid-row: 1 / 3; /* Ảnh chính chiếm 2 hàng */
}
.view-all-desktop-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
}
.hero-gallery-item.side-image-bottom:hover .view-all-desktop-btn {
    opacity: 1;
    visibility: visible;
}

/* --- Bố cục Mobile --- */
.hero-gallery-mobile {
    display: none; /* Mặc định ẩn trên desktop */
}

/* --- Các nút chức năng chung --- */
.hero-actions {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    gap: 10px;
}
.hero-action-btn {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

/* --- Thông tin dự án --- */
.hero-project-info {
    padding: 30px 0;
}
.hero-project-info h1 { margin: 10px 0; }
@media (max-width: 767px) {
     .hero-gallery-desktop {
        display: none;
    }
    .hero-gallery-mobile {
        display: block;
    }

    .project-hero-section {
        padding: 0; /* Bỏ padding để ảnh tràn viền */
    }

    /* 1. Ảnh chính chiếm toàn bộ chiều rộng, không bo góc */
    .mobile-main-image {
        width: 100%;
        aspect-ratio: 4 / 3;
    }
    .mobile-main-image a, .mobile-main-image img {
        border-radius: 0;
    }
    .mobile-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 2. Thanh cuộn ngang cho các ảnh nhỏ */
    .hero-thumbnail-wrapper {
        width: 100%;
        overflow-x: auto;
        background-color: #fff;
        padding: 10px 15px;
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }
    /* Ẩn thanh cuộn */
    .hero-thumbnail-wrapper::-webkit-scrollbar { display: none; }
    .hero-thumbnail-wrapper { -ms-overflow-style: none; scrollbar-width: none; }

    .hero-thumbnail-scroller {
        display: flex;
        width: max-content;
        gap: 8px;
    }

    .hero-thumbnail-scroller .thumbnail-item {
        display: block;
        flex-shrink: 0;
        width: 120px;
        height: 80px;
        border-radius: 6px;
        overflow: hidden;
        cursor: pointer;
        border: 2px solid transparent;
        transition: border-color 0.2s ease;
    }
    .hero-thumbnail-scroller .thumbnail-item.active {
        border-color: var(--primary-color);
    }
    .hero-thumbnail-scroller .thumbnail-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}
/* --- Popup Thư viện ảnh --- */
.gallery-modal-container {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 12000;
    justify-content: center;
    align-items: center;
}
.gallery-modal-content {
    background-color: white;
    width: 90%;
    height: 95%;
    max-width: 1400px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
}
.gallery-modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.gallery-modal-header h2 { margin: 0; color: var(--secondary-color); }
.gallery-modal-body {
    padding: 25px;
    overflow-y: auto;
    flex-grow: 1;
}
.gallery-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.gallery-modal-grid img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
}



/* ======================= Style cho Lightbox xem ảnh (Cập nhật) ======================= */
.lightbox-container {
    display: none;
    position: fixed;
    z-index: 11000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 20px; /* Thêm padding để ảnh không bị dính sát viền */
    box-sizing: border-box;
}

/* Vùng chứa ảnh và caption */
.lightbox-content-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px; /* Khoảng cách với các nút */
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85%; /* Giảm chiều cao để có không gian cho caption */
    object-fit: contain;
    cursor: grab;
    transition: transform 0.2s ease;
}

.lightbox-caption {
    color: #ccc;
    margin-top: 15px;
    font-size: 16px;
    text-align: center;
    max-height: 10%;
}

/* Style cho các nút điều khiển */
.lightbox-control-btn {
    position: absolute;
    background-color: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    z-index: 11001;
}
.lightbox-control-btn:hover {
    background-color: rgba(0, 0, 0, 0.8);
}
.lightbox-control-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* Vị trí các nút */
.top-right { top: 15px; right: 15px; }
.nav-left { top: 50%; left: 15px; transform: translateY(-50%); }
.nav-right { top: 50%; right: 15px; transform: translateY(-50%); }

.connectivity-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.timeline-container {
    position: relative;
    width: 100%;
    margin: 30px auto;
}

/* Đường timeline chính */
.timeline-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #ddd;
    z-index: 1;
}

.timeline-item {
    padding: 15px 0;
    position: relative;
}
/* Clear float để các item không bị đè lên nhau */
/* .timeline-item::after {
    content: "";
    display: table;
    clear: both;
} */


/* Mốc thời gian (hình tròn) */
.timeline-marker {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border: 5px solid var(--body-bg);
    box-shadow: 0 0 0 3px var(--primary-color);
}

/* Thẻ thông tin tiện ích */
.timeline-card {
    background-color: var(--white-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.07);
    position: relative;
}
.timeline-card h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.timeline-card p {
    margin: 0 0 15px 0;
    color: var(--text-light);
    line-height: 1.6;
}

/* --- Card hình ảnh chung --- */

.timeline-card-image {
    background-color: transparent;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

/* Khu vực slider chứa 2 hình — Swiper sẽ đặt vào đây */
.timeline-card-image .swiperTimeline {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.timeline-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    aspect-ratio: 3/4;
}


.distance-tag {
    display: inline-block;
    background-color: var(--body-bg);
    color: var(--text-dark);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}
.timeline-image{
    position: relative;
}


/* --- Giao diện MOBILE (timeline bên trái, card 1 bên) --- */
@media (max-width: 767px) {
    /* Đặt timeline về bên trái, cách lề một khoảng */
    .timeline-container::after {
        left: 45px;
    }

    /* Đẩy toàn bộ item sang phải để có không gian cho timeline */
    .timeline-item {
         padding: 10px 0;
    }

    /* Đặt mốc thời gian trên đường timeline bên trái */
    .timeline-marker {
        left: 10px; /* (20px của line - 70px/2 của marker) */
        transform: translateY(-50%);
        width: 70px;
        height: 70px;
        font-size: 14px;
        border-width: 3px;
    }

    .timeline-card {
        margin-left: 70px; 
    }

    .timeline-image {
        margin-left: 70px;
        margin-top: 25px;
    }
}

/* ======================= Section Mặt bằng ======================= */
.floor-plan-section {
    padding: 60px 0;
    background-color: #fff; /* Nền trắng để xen kẽ */
}

.floor-plan-interactive-area {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
}

.floor-plan-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.floor-selector {
    display: flex;
    flex-wrap: wrap; /* Cho phép rớt dòng trên desktop nếu không đủ không gian */
    gap: 10px;
    align-items: center;
}

/* Style chung cho nút chọn tầng và nút mở dropdown */
.floor-btn, .dropdown-toggle-btn {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    background-color: #fff;
    color: var(--text-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap; /* Đảm bảo chữ không xuống dòng */
}
.floor-btn:hover, .dropdown-toggle-btn:hover {
    background-color: var(--body-bg);
    border-color: #ccc;
}
.floor-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* --- Style cho Dropdown trên DESKTOP --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none; /* Mặc định ẩn */
    position: absolute;
    top: 110%;
    left: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 8px;
    z-index: 10;
    padding: 5px 0;
    border: 1px solid var(--border-color);
}
.dropdown-menu.show {
    display: block;
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 20px;
    text-align: left;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    font-size: 16px;
    color: var(--text-dark);
}
.dropdown-item:hover {
    background-color: var(--body-bg);
}
.dropdown-item.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* --- Các thành phần còn lại --- */
.unit-selector label {
    font-weight: 500;
    margin-right: 10px;
}
.unit-selector select {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
}

.floor-plan-display img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


/* --- Responsive cho Section Mặt bằng --- */
@media (max-width: 767px) {
    /* Nới rộng khối ra sát lề màn hình */
    .floor-plan-interactive-area {
        margin-left: -15px;
        margin-right: -15px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    /* Kích hoạt cuộn ngang cho các nút chọn tầng */
    .floor-selector {
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .floor-selector::-webkit-scrollbar {
        display: none;
    }
    
    /* "Biến hình" dropdown thành các nút thường */
    .floor-selector .dropdown {
        display: contents;
    }
    .floor-selector .dropdown-toggle-btn {
        display: none; /* Ẩn nút "Tầng khác" */
    }
    .floor-selector .dropdown-menu {
        display: contents;
    }
    .floor-selector .dropdown-item {
        /* Áp dụng lại style của .floor-btn để đồng bộ */
        padding: 10px 20px;
        font-size: 16px;
        font-weight: 600;
        border: 1px solid var(--border-color);
        background-color: #fff;
        color: var(--text-dark);
        border-radius: 8px;
    }
}

/* ======================= Section Tiện ích (MỚI) ======================= */
.amenities-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

/* --- Bố cục DESKTOP --- */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 250px); /* Chiều cao mỗi hàng */
    gap: 20px;
}
.amenity-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: zoom-in; /* Đổi con trỏ */
    display: block; /* Thêm để thẻ <a> hoạt động như khối */
    text-decoration: none; /* Bỏ gạch chân của link */
}
.amenity-card .amenity-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.amenity-card:hover .amenity-bg {
    transform: scale(1.1);
}


/* Thẻ lớn chiếm 2x2 ở giữa */
.amenity-card.large {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
}
/* Nút xem tất cả */
.view-all-card {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Lớp phủ cho thẻ "Xem tất cả" */
.view-all-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 66, 56, 0.7); /* Lớp phủ màu xanh đậm, bán trong suốt */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.3s ease;
}

/* Hiệu ứng khi hover */
.view-all-card:hover .view-all-overlay {
    background-color: rgba(0, 66, 56, 0.85); /* Lớp phủ đậm hơn khi hover */
}

/* Nội dung text bên trong */
.view-all-content span {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: var(--white-color);
}
.view-all-content p {
    font-size: 18px;
    font-weight: 600;
    color: var(--white-color);
    margin: 10px 0 0 0;
}
.view-all-card:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}




/* --- Bố cục MOBILE --- */
.amenities-mobile-layout {
    display: none; /* Mặc định ẩn trên desktop */
}
.mobile-main-amenity {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 25px; /* Khoảng cách với hàng cuộn bên dưới */
}

.amenity-card-mobile {
    position: relative;
    flex: 0 0 220px; /* Chiều rộng mỗi card trong hàng cuộn */
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
}
.amenity-card-mobile .amenity-overlay {
    display: flex;

 
}
.amenity-card-mobile .amenity-overlay h5 {
    font-size: 16px;
    display: flex;
    flex-direction: column;
}





/* --- Cập nhật Responsive --- */
@media (max-width: 992px) {
    /* ... */
    /* Thay đổi bố cục tiện ích trên tablet */
    .amenities-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .amenity-card.large {
        grid-column: 1 / 3; /* Chiếm 2 cột */
        grid-row: 1 / 2; /* Chỉ chiếm 1 hàng */
        aspect-ratio: 16/9;
    }
}
@media (max-width: 767px) {
    /* ... */

    /* Chuyển hẳn sang layout mobile */
    .amenities-desktop-layout { display: none; }
    .amenities-mobile-layout { display: block; }
    /* Thêm padding cho section trên mobile */
    .amenities-section .content-limiter {
        padding: 0;
    }
    .amenities-section .section-header {
        padding: 0 15px; /* Giữ padding cho tiêu đề section */
    }
    .mobile-main-amenity {
        margin-left: 15px;
        margin-bottom: 15px;
      
        width: auto; /* Để margin hoạt động đúng */
    }

    /* Áp dụng lại wrapper cuộn ngang */
    .amenities-mobile-layout .horizontal-scroll-wrapper {
        overflow-x: auto;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        margin-left: 0;
        margin-right: 0;
        margin-top: 15px;
    }

    .mobile-amenities-scroll {
        display: flex;
        gap: 15px;
        width: max-content;
        padding: 0 15px;
    }

    .amenity-card-mobile {
      
        width: 200px; /* Điều chỉnh lại width cho phù hợp */
    }
    .amenity-overlay {
       
        flex-direction: column; /* Giữ lại layout dọc mặc định */
        padding: 10px;
    }
   .amenity-desc {
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.85;

    }
    .mobile-main-amenity .amenity-overlay {margin-left: -15px;
        padding: 10px

    }

}
/* ======================= Section Giá bán & Cho thuê (MỚI) ======================= */
.pricing-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.pricing-cards-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pricing-card {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
}
.pricing-card.popular {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(83, 185, 102, 0.1);
}

.pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.product-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 5px 0;
}
.product-area {
    font-size: 15px;
    color: var(--text-light);
    margin: 0;
}
.badge {
    background-color: var(--primary-color);
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    flex-shrink: 0;
}

.pricing-card-body {
    display: grid;
    grid-template-columns: 1fr; /* Mặc định 1 cột cho mobile */
    gap: 20px;
}

.price-box {
    display: block;
    background-color: var(--body-bg);
    border-radius: 12px;
    padding: 20px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}
.price-box:not(.disabled):hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: var(--primary-color);
}
.price-label {
    font-size: 14px;
    color: var(--text-light);
    display: block;
    margin-bottom: 5px;
}
.price-main {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}
.price-sub {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}
.price-cta {
    font-weight: 600;
    color: var(--primary-color);
}

/* Trạng thái vô hiệu hóa */
.price-box.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f0f0f0;
}
.price-box.disabled .price-main {
    font-size: 18px; /* Giảm size chữ cho phù hợp */
    font-weight: 500;
    color: var(--text-light);
}


/* --- Responsive cho Section Giá bán --- */
@media (min-width: 768px) {
    /* Chuyển thành 2 cột trên màn hình lớn hơn */
    .pricing-card-body {
        grid-template-columns: 1fr 1fr;
    }
}
/* ======================= Section Phương thức thanh toán (MỚI) ======================= */
.payment-schedule-section {
    padding: 60px 0;
    background-color: #fff; /* Nền trắng để xen kẽ */
}

/* Wrapper cho bảng cuộn ngang */
.table-scroll-wrapper {
    overflow-x: auto; /* Kích hoạt cuộn ngang khi cần */
    padding-bottom: 10px; /* Tạo không gian cho thanh cuộn */
}

.payment-schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 650px; /* Đặt chiều rộng tối thiểu để bảng không bị co dúm trên mobile */
}

.payment-schedule-table th,
.payment-schedule-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.payment-schedule-table th {
    background-color: var(--body-bg);
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 16px;
}
.payment-schedule-table td {
    font-size: 15px;
    color: var(--text-light);
}
.payment-schedule-table tbody tr:hover {
    background-color: #fcfcfc;
}
.payment-schedule-table td:first-child {
    font-weight: 600;
    color: var(--text-dark);
}

/* Đường kẻ ngang */
.section-divider {
    border: 0;
    border-top: 1px solid var(--border-color);
    margin: 40px 0;
}

/* Thông tin bổ sung */
.additional-info p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.8;
}
.additional-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ======================= Section Tiêu chuẩn bàn giao (MỚI) ======================= */
.handover-standards-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.standards-carousel-container {
    position: relative;
}

.carousel-wrapper {
    overflow-x: auto; /* Kích hoạt cuộn ngang */
    scroll-behavior: smooth; /* Tạo hiệu ứng cuộn mượt khi bấm nút */
    scroll-snap-type: x mandatory; /* Bật tính năng hít khi cuộn */
    -ms-overflow-style: none;  /* Ẩn thanh cuộn trên IE, Edge */
    scrollbar-width: none;  /* Ẩn thanh cuộn trên Firefox */
}
/* Ẩn thanh cuộn trên Chrome, Safari, Opera */
.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    padding: 0 20px; /* Thêm padding để ảnh đầu cuối không dính sát lề */
    /* Để scroll-snap hoạt động tốt, gap sẽ được xử lý bằng margin trên slide */
}

.carousel-slide {
    flex: 0 0 356px;
    width: 356px;
    height: 475px;
    margin: 0 15px;
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    display: block; /* Thêm để thẻ a hoạt động như khối */
    text-decoration: none; /* Bỏ gạch chân của link */
    transition: transform 0.3s ease; /* Thêm transition cho hiệu ứng mượt mà */
}
.carousel-slide:hover {
    transform: scale(1.03); /* Phóng to nhẹ */
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-weight: 600;
    text-align: center;
}

/* Các nút điều hướng */
.arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.arrow-btn:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}
.arrow-btn:disabled {
    opacity: 0; /* Ẩn nút đi khi bị vô hiệu hóa */
    pointer-events: none;
}
.arrow-prev {
    left: 0px;
}
.arrow-next {
    right: 0px;
}

/* Responsive cho Carousel */
@media (max-width: 1100px) {
    .arrow-prev { left: 10px; }
    .arrow-next { right: 10px; }
}
@media (max-width: 992px) {
    /* ... */
    /* Ẩn các nút mũi tên trên tablet và mobile */
    .standards-carousel-container .carousel-arrows {
        display: none;
    }
    .carousel-track {
        padding: 10px 20px;
        gap: 15px; /* Giữ khoảng cách giữa các slide */
    }
    .carousel-slide {
        margin: 0; /* Bỏ margin để dùng gap */
        width: 80vw; /* Chiếm 80% chiều rộng màn hình */
        flex: 0 0 80vw; /* Đảm bảo không bị co lại */
        height: auto; /* Chiều cao tự động */
        aspect-ratio: 3 / 4; /* Luôn giữ tỷ lệ 3:4 */
        scroll-snap-align: start; /* Hít vào lề trái */
    }

    /* Ẩn các nút mũi tên trên tablet và mobile */
    .standards-carousel-container .carousel-arrows {
        display: none;
    }
}
@media (max-width: 767px) {
    
    .carousel-slide {
        /* Có thể giữ lại hoặc điều chỉnh nếu muốn kích thước khác trên điện thoại nhỏ hơn */
        width: 80vw;
        flex-basis: 80vw;
    }
    
}
.subdivision-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

.subdivision-carousel-container {
    max-width: 1100px; /* Đồng bộ với các section khác */
    margin: 0 auto;
    position: relative;
    padding: 0px; /* Thêm padding để có không gian cho nút */
    box-sizing: border-box;
}

.subdivision-carousel-wrapper {
    overflow: hidden;
    cursor: grab;
}
.subdivision-carousel-wrapper:active {
    cursor: grabbing;
}

.subdivision-carousel-track {
    display: flex;
    gap: 30px; /* Tăng khoảng cách cho đẹp hơn */
    padding: 10px;
    margin: -10px;
}

.subdivision-card {
    /* Mỗi card chiếm 50% trừ đi một nửa gap */
    flex: 0 0 calc(50% - 15px); 
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: block;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Sửa lại hiệu ứng hover để không bị lỗi trên một số trình duyệt */
.subdivision-card:hover {
    transform: translateY(-5px);
}

.subdivision-card .card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.subdivision-card:hover .card-bg {
    transform: scale(1.1);
}

/* --- Nội dung trên thẻ --- */
.subdivision-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    color: white;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 20%, transparent);
    z-index: 2;
}
.subdivision-card-info h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
}
.subdivision-card-price {
    display: flex;
    gap: 15px;
    font-size: 14px;
    opacity: 0.9;
}

/* --- Hiệu ứng Hover --- */
.subdivision-card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 40, 30, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 3;
}
.btn-secondary { /* Nút xem chi tiết */
    padding: 12px 24px;
    background-color: var(--primary-color) !important;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid var(--white-color) !important;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}
.subdivision-card:hover .subdivision-card-hover-overlay {
    opacity: 1;
}
.subdivision-card:hover .btn-secondary {
    transform: translateY(0);
    opacity: 1;
}

/* --- Nút điều hướng cho slider phân khu (FIX LỖI VỊ TRÍ) --- */
.subdivision-carousel-container .arrow-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.subdivision-carousel-container .arrow-btn:hover {
    background-color: white;
    transform: translateY(-50%) scale(1.1);
}
.subdivision-carousel-container .arrow-btn:disabled {
    opacity: 0;
    pointer-events: none;
}
.subdivision-carousel-container .arrow-prev {
    left: 0; /* Đặt nút bên trong container */
}
.subdivision-carousel-container .arrow-next {
    right: 0; /* Đặt nút bên trong container */
}


.actual-photos-section {
    padding: 60px 0;
    background-color: #fff;
}

.photo-year-group {
    margin-bottom: 50px;
}
.photo-year-group:last-child {
    margin-bottom: 0;
}

.year-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 25px 0;
    text-align: center;
}

.photo-grid {
    display: grid;
    gap: 20px;
    /* Mặc định 2 cột cho mobile-first */
    grid-template-columns: repeat(2, 1fr);
    /* Canh giữa các item nếu không đủ lấp đầy hàng */
    justify-content: center; 
}

.photo-card {
    display: block;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Tỷ lệ 4:3 */
    text-decoration: none;
    background-color: var(--body-bg); /* Màu nền chờ khi ảnh đang tải */
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.photo-card:hover img {
    transform: scale(1.1);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 15px 15px 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-weight: 500;
    font-size: 15px;
    z-index: 2;
    transition: opacity 0.3s ease;
}


/* --- Cập nhật Responsive cho Section mới --- */

/* Tablet: 3 cột */
@media (min-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop: 4 cột */
@media (min-width: 1024px) {
    .photo-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
.photo-card.view-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex; /* Dùng flex để căn giữa nội dung */
    justify-content: center;
    align-items: center;
}
.photo-card.view-more:hover .photo-card-overlay {
    background-color: rgba(0, 66, 56, 0.85); /* Đậm hơn khi hover */
}

.photo-card.view-more .photo-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 66, 56, 0.7); /* Lớp phủ màu xanh đậm, bán trong suốt */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: background-color 0.3s ease;
}

.photo-card.view-more:hover {
    background-color: #005a4d; /* Màu đậm hơn một chút khi hover */
}
.view-more-content span {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--white-color);
}
.view-more-content p {
    font-size: 16px;
    font-weight: 600;
    color: var(--white-color);
    margin: 5px 0 0 0;
}


/* ======================= Nút hành động cố định & Popup (MỚI) ======================= */
/* ======================= Nút hành động cố định & Popup ======================= */

/* --- 1. Định nghĩa Animation Rung lắc --- */
/* ... Các style đã có từ trước ... */

/* ======================= Nút hành động cố định & Popup (Cập nhật) ======================= */

/* --- 1. Định nghĩa Animation Rung lắc --- */
@keyframes shake {
  10%, 90% { transform: rotate(-8deg); }
  20%, 80% { transform: rotate(8deg); }
  30%, 50%, 70% { transform: rotate(-8deg); }
  40%, 60% { transform: rotate(8deg); }
}

/* --- 2. Định nghĩa Chu kỳ "Rung và Nghỉ" --- */
@keyframes shake-cycle {
  /* Từ 0% đến 66% của chu kỳ (tức ~10s) đứng yên */
  0%, 66% { transform: rotate(0); }
  /* Từ 67% đến 100% (tức ~5s) sẽ rung lắc */
  70% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
  80% { transform: rotate(8deg); }
  85% { transform: rotate(-8deg); }
  90% { transform: rotate(8deg); }
  95% { transform: rotate(-8deg); }
  100% { transform: rotate(0); }
}


/* --- 3. Các nút cố định trên Desktop --- */
.fixed-action-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.action-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}
.action-btn:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}
.action-btn svg {
    width: 28px;
    height: 28px;
}

.uptop-btn {
    background-color: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}
.uptop-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Bỏ animation khỏi toàn bộ nút */
.contact-float-btn {
    /* không có animation ở đây */
}
/* Áp dụng animation CHỈ cho icon SVG bên trong */
.contact-float-btn svg {
    animation: shake-cycle 5s infinite;
    animation-delay: 0.1s;
}
/* Tạm dừng animation khi hover vào nút cha */
.contact-float-btn:hover svg {
    animation-play-state: paused;
}


/* --- 4. Thanh công cụ Mobile --- */
.mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 998;
    display: none;
}
.mobile-action-btn {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white-color);
    font-weight: 600;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}
.mobile-action-btn.zalo-btn {
    background-color: #0068ff;
}
.mobile-action-btn:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

/* Bỏ animation khỏi toàn bộ nút */
#mobile-call-btn {
    /* không có animation ở đây */
}
/* Áp dụng animation CHỈ cho icon SVG bên trong */
#mobile-call-btn svg {
    animation: shake-cycle 5s infinite;
    animation-delay: 0.1s;
}
/* Tạm dừng animation khi hover vào nút cha */
#mobile-call-btn:hover svg {
     animation-play-state: paused;
}

/* --- 6. Responsive --- */
@media (max-width: 767px) {
    /* Ẩn các nút desktop và hiện thanh mobile */
    .fixed-action-buttons .desktop-actions {
        display: none;
    }
    .mobile-bottom-bar {
        display: flex;
    }
}



/* --- 5. Popup Liên hệ --- */
.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;
}
.modal-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close-btn {
    
}
.modal-content h3 {
    text-align: center;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.modal-content > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}
.modal-phone-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}
.modal-phone-link svg {
    color: var(--primary-color);
}
.modal-separator {
    text-align: center;
    color: #ccc;
    margin: 25px 0;
    position: relative;
}
.modal-separator::before, .modal-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 100px);
    height: 1px;
    background-color: var(--border-color);
}
.modal-separator::before { left: 0; }
.modal-separator::after { right: 0; }


/* --- 6. Responsive --- */


/* --- 5. Popup Liên hệ --- */
.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;
}
.modal-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    text-align: center;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.modal-content > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}
.modal-phone-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}
.modal-phone-link svg {
    color: var(--primary-color);
}
.modal-separator {
    text-align: center;
    color: #ccc;
    margin: 25px 0;
    position: relative;
}
.modal-separator::before, .modal-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 100px);
    height: 1px;
    background-color: var(--border-color);
}
.modal-separator::before { left: 0; }
.modal-separator::after { right: 0; }


/* --- 6. Responsive --- */
@media (max-width: 767px) {
    /* Ẩn các nút desktop và hiện thanh mobile */
    .fixed-action-buttons .desktop-actions {
        display: none;
    }
    .mobile-bottom-bar {
        display: flex;
    }
}

/* --- Popup Liên hệ --- */
.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;
}
.modal-content {
    background-color: white;
    padding: 30px 40px;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-height: 90vh; /* Giới hạn chiều cao */
    overflow-y: auto; /* Tự động có thanh cuộn */
}

.modal-content h3 {
    text-align: center;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.modal-content > p {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 25px;
}
.modal-phone-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}
.modal-phone-link svg {
    color: var(--primary-color);
}
.modal-separator {
    text-align: center;
    color: #ccc;
    margin: 25px 0;
    position: relative;
}
.modal-separator::before, .modal-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 100px);
    height: 1px;
    background-color: var(--border-color);
}
.modal-separator::before { left: 0; }
.modal-separator::after { right: 0; }


/* ======================= Cập nhật Responsive ======================= */
@media (max-width: 992px) {
    
    /* ----- TỐI ƯU SLIDER PHÂN KHU CHO TABLET & MOBILE ----- */
    .subdivision-carousel-container {
        padding: 0 15px; 
    }
    .subdivision-carousel-container .arrow-prev { left: 0; }
    .subdivision-carousel-container .arrow-next { right: 0; }
    .subdivision-carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -20px;
        padding-bottom: 15px;
    }

    .subdivision-carousel-track {
        padding: 10px 20px;
        gap: 20px;
    }
    .subdivision-card {
        flex-basis: 45%; /* Trên tablet, mỗi card chiếm gần một nửa */
        scroll-snap-align: start;
    }

}
@media (max-width: 767px) {
    /* Ẩn các nút desktop và hiện thanh mobile */
    .desktop-actions {
        display: none;
    }
    .mobile-bottom-bar {
        display: flex;
    }
    /* Section liên hệ sẽ là form mặc định trên mobile */
    .contact-section {
        display: block; /* Đảm bảo section liên hệ luôn hiện */
    }
    .subdivision-carousel-container {
        padding: 0; /* Bỏ padding để làm cuộn tràn lề */
    }
    .subdivision-carousel-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0px;
    }
    .subdivision-carousel-track {
        padding: 10px 15px;
        gap: 15px;
    }
    .subdivision-card {
        flex-basis: 80%; /* Chiếm 80% chiều rộng màn hình */
        aspect-ratio: 3 / 4; /* Đổi tỷ lệ thành 3:4 trên mobile */
        scroll-snap-align: start;
    }
    .subdivision-carousel-container .arrow-btn {
        display: none;
    }
}

/* ======================= Section Tin tức liên quan (MỚI) ======================= */
.related-news-section {
    padding: 60px 0;
    background-color: var(--body-bg);
}

/* --- Bố cục Desktop --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.news-card {
    display: block;
    text-decoration: none;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}
.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.news-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px;
}

.news-title {
    font-size: 18px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    height: calc(1.5em * 2); /* Giới hạn chiều cao cho 2 dòng */
    
    /* Kỹ thuật cắt chữ và thêm dấu "..." */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Số dòng tối đa */
    -webkit-box-orient: vertical;
}

.news-readmore {
    font-weight: 600;
    color: var(--primary-color);
    display: inline-block;
}


/* --- Responsive cho Section Tin tức liên quan --- */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr); /* Chuyển thành 2 cột trên tablet */
    }
}

@media (max-width: 767px) {
    /* Wrapper để cuộn ngang */
    .news-scroll-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    .news-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    /* Chuyển grid thành flex cho hàng ngang */
    .news-grid {
        display: flex;
        grid-template-columns: unset;
        width: max-content;
        gap: 15px;
        padding: 0 15px 0 20px; 
    }

    /* Đặt kích thước cho mỗi thẻ tin tức */
    .news-card {
        width: 80vw; /* Chiếm 80% chiều rộng màn hình */
        flex-shrink: 0;
        scroll-snap-align: start;

    }
}

/* ======================= Section Dự án lân cận (MỚI) ======================= */
.nearby-projects-section {
    padding: 60px 0;
    background-color: #fff;
}

/* --- Bố cục Desktop --- */
.nearby-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.nearby-project-card {
    display: block;
    position: relative;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4 / 3; /* Tỷ lệ dọc cho thẻ dự án */
    transition: transform 0.3s ease;
}
.nearby-project-card:hover {
    transform: translateY(-8px);
}
.nearby-project-card:hover .card-background-image {
    transform: scale(1.05); /* Hiệu ứng zoom ảnh nền khi hover */
}

.card-background-image {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.3s ease;
}

.card-text-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Đẩy nội dung xuống dưới */
    padding: 25px;
    box-sizing: border-box;
    color: white;
    /* Lớp phủ gradient đen mờ từ dưới lên */
    background: linear-gradient(to top, rgba(0,0,0,0.85) 15%, rgba(0,0,0,0.4) 40%, transparent 70%);
}

.project-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.project-address {
    font-size: 15px;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.project-price-info {
    font-size: 16px;
    font-weight: 600;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    align-self: flex-start; /* Để background chỉ bao quanh text */
}

/* --- Responsive cho Section Dự án lân cận --- */
@media (max-width: 992px) {
    .nearby-projects-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 cột trên tablet */
    }
}

@media (max-width: 767px) {
    .projects-scroll-wrapper {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 15px;
        margin: 0px;
    }
    .projects-scroll-wrapper::-webkit-scrollbar {
        display: none;
    }

    .nearby-projects-grid {
        display: flex;
        grid-template-columns: unset;
        width: max-content;
        gap: 15px;
        padding: 0 15px;
    }

    .nearby-project-card {
        width: 80vw; /* Chiếm 80% chiều rộng màn hình */
        flex-shrink: 0;
        scroll-snap-align: start;
    }
}
/* ... Các style đã có từ trước ... */

/* ======================= Responsive Media Queries ======================= */

@media (max-width: 992px) {
    /* ... các quy tắc cho tablet ... */
}

@media (max-width: 767px) {
    .header-footer-limiter, .content-limiter {
        padding: 0 15px;
    }
    
    /* MỚI: Giảm khoảng cách dọc giữa các section trên mobile */
    .project-overview-section,
    .connectivity-section,
    .floor-plan-section,
    .amenities-section,
    .pricing-section,
    .payment-schedule-section,
    .handover-standards-section,
    .subdivision-section,
    .related-news-section,
    .nearby-projects-section,
    .contact-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    /* ... các quy tắc responsive cũ cho banner, experts, ... */
    
    /* MỚI: Nới rộng khối mặt bằng ra sát lề màn hình */
    .floor-plan-interactive-area {
        margin-left: -15px;
        margin-right: -15px;
        border-left: none;
        border-right: none;
        border-radius: 0; /* Bỏ bo góc khi tràn lề */
    }
    
    /* ... các quy tắc responsive khác ... */
}


/* ======================= Styles cho trang Tin tức ======================= */
.main-container {
    padding: 40px 0;
    background-color: var(--body-bg);
}
.content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.main-column {
    flex: 1;
    min-width: 0;
    order: 2;
}

/* Tiêu đề chuyên mục */
.category-header {
    margin-bottom: 30px;
}
.category-header h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 5px 0;
}
.category-header p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

/* Khu vực tìm kiếm */
.search-section {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.search-form {
    position: relative;
    display: flex;
    align-items: center;
}
.search-form input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 40px 12px 20px; /* Tăng padding phải để chừa chỗ cho icon */
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s ease;
}
.search-form input:focus {
    border-color: var(--primary-color);
}
.search-form .search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}
.search-form button {
    border: none;
    background-color: var(--primary-color);
    color: white;
    padding: 0 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease;
}
.search-form button:hover {
    background-color: var(--secondary-color);
}

/* Khung chứa cho thanh tabs */
.topic-tabs-wrapper {
    overflow: hidden;
}

/* Thanh lọc chủ đề (Tabs) */
.topic-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    overflow-x: auto;
    margin-right: -20px;
    margin-left: -20px;
    padding-left: 20px;
    padding-right: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.topic-tabs::-webkit-scrollbar {
    display: none;
}
.topic-tabs a {
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all 0.3s ease;
}
.topic-tabs a:hover {
    background-color: #e9e9e9;
}
.topic-tabs a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}


/* Danh sách bài viết */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Giảm gap một chút để phân cách nhẹ nhàng hơn */
}
.article-card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    background-color: #fff; /* Thêm nền trắng cho card */
    padding: 20px; /* Thêm padding */
    border-radius: 12px;
    border: 1px solid var(--border-color); /* Thêm viền nhẹ */
    transition: box-shadow 0.3s ease;
}
.article-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}
.article-thumbnail {
    flex-shrink: 0;
    width: 280px;
    display: block;
    aspect-ratio: 1366 / 768;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}
.article-thumbnail img {
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.article-card:hover .article-thumbnail img {
    transform: scale(1.05);
}
.article-content {
    min-width: 0;
}
.article-content .article-title {
    margin: 0 0 10px 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.article-content .article-title a {
    color: var(--secondary-color);
}
.article-content .article-title a:hover {
    color: var(--primary-color);
}

.article-meta a {
    color: var(--text-dark);
    font-weight: 600;
}
.article-excerpt {
    font-size: 15px;
    color: var(--text-dark);
    margin: 0 0 15px 0;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* SỐ DÒNG TỐI ĐA */
    -webkit-box-orient: vertical;
}

.article-meta a.author-link {
    color: var(--text-dark);
    font-weight: 600;
}
.article-meta a.author-link:hover {
    color: var(--primary-color);
}
/* Phân trang */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}
.pagination a {
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 10px 18px;
    min-width: 24px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s ease;
}
.pagination a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.pagination a.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    cursor: default;
}

/* Sidebar Widget */
.widget {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.widget-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget ul li {
    border-bottom: 1px dashed #ddd;
}
.widget ul li:last-child {
    border-bottom: none;
}
.widget ul li a {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    padding: 10px 0;
}


/* ======================= Responsive Media Queries ======================= */
@media (max-width: 992px) {
    .content-wrapper {
        flex-direction: column;
    }
    .sidebar-column {
        width: 100%;
        position: static;
        margin-top: 40px;
    }
    
}

@media (max-width: 767px) {
 
    
    .category-header h1 { font-size: 28px; }
    
    .search-section { padding: 15px; }
    .search-form {
        background-color: transparent; /* Bỏ nền trắng trên mobile */
        padding: 0;
        border: none;
    }
    .search-form input {
        border: 1px solid var(--border-color);
        background-color: #fff;
        border-radius: 8px;
    }
    .search-form button {
        border-radius: 8px;
        padding: 12px;
    }

    .article-card {
        flex-direction: column;
    }
    .article-thumbnail {
        width: 100%;
        aspect-ratio: 1366 / 768;
    }
    .article-content .article-title {
        font-size: 20px;
    }
 .topic-tabs-container {
    display: flex;          /* Sắp xếp các mục con nằm ngang */
    overflow-x: auto;       /* BẬT CUỘN NGANG KHI CẦN */
    gap: 8px;               /* Khoảng cách nhỏ giữa các mục */

    /* Đường gạch chân ở dưới cùng */
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;   /* Khoảng cách từ mục tới đường gạch chân */

    /* Quan trọng: KHÔNG có margin âm, KHÔNG có padding tràn lề.
       Thành phần này sẽ luôn nằm gọn trong bố cục trang. */

    /* Các thuộc tính ẩn thanh cuộn cho đẹp hơn */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.topic-tabs-container::-webkit-scrollbar {
    display: none;
}

/* CSS cho các mục con (thẻ a) bên trong */
.topic-tabs-container a {
    display: block;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    white-space: nowrap; /* Đảm bảo chữ trong tab không bị xuống dòng */
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.topic-tabs-container a:hover {
    background-color: #e9e9e9;
    color: var(--text-dark);
}

.topic-tabs-container a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
}
.topic-tabs-container {
    display: flex;          /* Sắp xếp các mục con nằm ngang */
    overflow-x: auto;       /* BẬT CUỘN NGANG KHI CẦN */
    gap: 8px;               /* Khoảng cách nhỏ giữa các mục */

    /* Đường gạch chân ở dưới cùng */
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;   /* Khoảng cách từ mục tới đường gạch chân */

    /* Quan trọng: KHÔNG có margin âm, KHÔNG có padding tràn lề.
       Thành phần này sẽ luôn nằm gọn trong bố cục trang. */

    /* Các thuộc tính ẩn thanh cuộn cho đẹp hơn */
    -ms-overflow-style: none;
    scrollbar-width: none;
    margin-bottom: 25px;
}
.topic-tabs-container::-webkit-scrollbar {
    display: none;
}

/* CSS cho các mục con (thẻ a) bên trong */
.topic-tabs-container a {
    display: block;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
    white-space: nowrap; /* Đảm bảo chữ trong tab không bị xuống dòng */
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.topic-tabs-container a:hover {
    background-color: #e9e9e9;
    color: var(--text-dark);
}

.topic-tabs-container a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}


/* assets/css/chu-dau-tu.css */

.investor-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.investor-card {
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.investor-card:hover {
    transform: scale(1.03);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.investor-card img {
    max-width: 150px;
    max-height: 80px;
    object-fit: contain;
    margin-bottom: 15px;
}

.investor-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

/* Responsive cho màn hình nhỏ hơn */
@media (max-width: 767px) {
    .investor-list {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .investor-card img {
        max-width: 100px;
        max-height: 60px;
        margin-bottom: 10px;
    }

    .investor-card h3 {
        font-size: 14px;
    }
}



/* ======================= Styles cho trang Chi tiết Chủ đầu tư (MỚI) ======================= */

/* Tiêu đề section chung */
.section-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
}

/* Header giới thiệu công ty */
.company-profile-header {
    display: flex;
    gap: 30px;
    align-items: center;
    padding: 30px;
    background-color: var(--body-bg);
    border-radius: 12px;
    margin-bottom: 30px;
}
.company-logo {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    padding: 15px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.company-logo img { object-fit: contain; }
.company-info h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
}
.company-info .slogan {
    font-size: 18px;
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 15px;
}
.company-info ul {
    list-style: none;
    padding: 0; margin: 0; font-size: 15px;
}
.company-info li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 8px;
}
.company-info li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Timeline lịch sử */
.timeline {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    position: relative;
    border-left: 3px solid rgba(83, 185, 102, 0.2);
    padding-left: 30px;
}
.timeline-item { margin-bottom: 25px; position: relative; }
.timeline-item::before {
    display: block;
    content: '';
    position: absolute;
    left: -38px;
    top: 20px;
    width: 15px;
    height: 15px;
    background-color: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 1;
}
.connectivity-section .timeline-item::before {
    display: none !important;
}
@media (max-width: 768px) {
    .timeline-item::before {
    display: block;
    content: '';
    position: absolute;
    left: -38px;
    top: 15px;
 
}
}
.timeline-item .year {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 18px;
}

/* Lưới các dự án */
.project-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.project-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.project-image-wrapper {
    height: 200px;
    position: relative;
    background-color: #eee;
}
.project-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.project-status-badge {
    position: absolute;
    top: 15px; right: 15px;
    background-color: rgba(0, 66, 56, 0.85);
    color: #fff; padding: 5px 12px;
    border-radius: 20px; font-size: 13px; font-weight: 600;
}
.project-info-wrapper { padding: 20px; }
.project-card .project-name {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 10px 0;
}
.project-card .project-details { font-size: 14px; color: var(--text-light); }
.nearby-projects-grid.two-columns {
    grid-template-columns: repeat(2, 1fr);
}
/* --- Responsive cho trang Chi tiết Chủ đầu tư --- */
@media (max-width: 767px) {
    .company-profile-header { flex-direction: column; text-align: center; }
    .company-info h1 { font-size: 28px; }
    .project-grid { grid-template-columns: 1fr; }
    .nearby-projects-grid.two-columns {
    display: grid; /* QUAN TRỌNG: Buộc hiển thị dạng lưới */
    grid-template-columns: 1fr; /* Chuyển thành 1 cột */
    width: auto; /* Reset lại width để không bị ảnh hưởng bởi style cuộn ngang */
    padding: 0;  /* Reset lại padding để căn giữa đều hơn */
    gap: 20px;
}
.nearby-projects-grid.two-columns .nearby-project-card {
    width: 100%; /* THAY ĐỔI QUAN TRỌNG: Giúp card tự động co giãn theo chiều rộng của cột chứa nó */
}
}


/* ======================= Styles cho trang Wiki Pháp lý (MỚI) ======================= */

/* Lưới các bài viết wiki */
.wiki-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Mặc định 2 cột trên desktop/tablet */
    gap: 30px;
}

.wiki-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease-in-out;
}
.wiki-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.wiki-card-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Tỷ lệ khung hình 16:9 */
    overflow: hidden;
}
.wiki-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.wiki-card:hover .wiki-card-image img {
    transform: scale(1.05);
}

.wiki-card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Giúp các thẻ có chiều cao bằng nhau */
}

.wiki-card-title {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 0 0 10px 0;
    /* Giới hạn 2 dòng */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wiki-card-excerpt {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 20px 0;
    flex-grow: 1; /* Đẩy link đọc thêm xuống dưới */
}

.wiki-card-cta {
    font-weight: 700;
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.3s ease;
}
.wiki-card:hover .wiki-card-cta {
    gap: 10px; /* Mũi tên dịch sang phải khi hover */
}


/* --- Responsive cho trang Wiki --- */
@media (max-width: 767px) {
    /* Chuyển thành 1 cột trên mobile */
    .wiki-grid {
        grid-template-columns: 1fr;
    }
}

/* --- CSS CHO THÔNG BÁO GỬI FORM THÀNH CÔNG --- */
.form-success-message {
    display: none; /* Mặc định ẩn */
    text-align: center;
    padding: 40px 20px;
}

.form-success-message h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0 0 10px 0;
}

.form-success-message p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}





/* --- CSS cho trạng thái của nút Yêu thích --- */

/* Ẩn icon trái tim đặc (trạng thái đã thích) theo mặc định */
.favorite-btn .heart-solid {
    display: none;
}

/* Hiện icon trái tim rỗng (trạng thái chưa thích) theo mặc định */
.favorite-btn .heart-outline {
    display: block;
}

/* Khi nút có thêm class 'active' (do người dùng nhấp vào) */
.favorite-btn.active .heart-solid {
    display: block; /* Hiện icon trái tim đặc */
    color: #ef4444; /* Tô màu đỏ cho trạng thái đã thích */
}

.favorite-btn.active .heart-outline {
    display: none; /* Ẩn icon trái tim rỗng */
}
.hero-actions {
 position: absolute;
 top: 20px;
 right: 20px;
 z-index: 10;
 display: flex;
 gap: 10px;
}

.hero-actions .action-button {
    background: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
    border: none;
    width: 36px; /* CỐ ĐỊNH CHIỀU RỘNG */
    height: 36px; /* CỐ ĐỊNH CHIỀU CAO */
    padding: 0; /* BỎ PADDING */
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.hero-actions .action-button:hover {
 background-color: rgba(255, 255, 255, 0.95);
}



/* ========================================================================
   CSS ĐỒNG BỘ CHO POPUP THƯ VIỆN ẢNH (TỪ PRODUCT-DETAIL)
   ======================================================================== */

.image-gallery-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.image-gallery-popup.open {
    display: flex;
}

.image-gallery-popup .gallery-container {
    background-color: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    width: 95%;
    max-width: 1400px;
    height: 90%;
    max-height: 800px;
    overflow: hidden;
}

.image-gallery-popup .gallery-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
}
.image-gallery-popup .gallery-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.image-gallery-popup .gallery-main-view {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 20px;
    height: 100%;
    box-sizing: border-box;
    z-index: 10;
}

.image-gallery-popup #gallery-main-image {
    display: block;
    max-width: 100%;
    max-height: calc(100% - 40px);
    object-fit: contain;
    border-radius: 4px;
    cursor: grab;
    touch-action: none;
    transition: transform 0.2s ease-out;
}

#gallery-main-image.is-dragging {
    cursor: grabbing;
}

.image-gallery-popup .gallery-caption {
    color: #ccc;
    font-size: 16px;
    margin-top: 15px;
    text-align: center;
    height: 25px;
}

.image-gallery-popup .gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.image-gallery-popup .gallery-main-view:hover .gallery-nav-btn {
    opacity: 0.7;
}
.image-gallery-popup .gallery-nav-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.6);
}
.image-gallery-popup .gallery-nav-btn.prev { left: 20px; }
.image-gallery-popup .gallery-nav-btn.next { right: 20px; }

.image-gallery-popup .gallery-thumbnail-strip {
    flex: 0 0 200px;
    background-color: #111;
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
    box-sizing: border-box;
    z-index: 1;
}

.image-gallery-popup .gallery-thumbnail-strip img {
    width: 100%;
    height: 110px;
    object-fit: cover;
    margin-bottom: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    transition: border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0.6;
}
.image-gallery-popup .gallery-thumbnail-strip img:hover { opacity: 1; }
.image-gallery-popup .gallery-thumbnail-strip img.active {
    border-color: #0284c7;
    opacity: 1;
}

@media (max-width: 992px) {
    .image-gallery-popup .gallery-container {
        flex-direction: column;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .image-gallery-popup .gallery-main-view { min-height: 0; }
    .image-gallery-popup #gallery-main-image { 
        flex-shrink: 1; 
        min-height: 0;
    }
    .image-gallery-popup .gallery-nav-btn { display: none; }
    .image-gallery-popup .gallery-thumbnail-strip {
        flex: 0 0 auto;
        width: 100%;
        height: 120px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px;
        display: flex;
        flex-direction: row;
        gap: 10px;
        order: -1;
        background-color: #000;
    }
    .image-gallery-popup .gallery-thumbnail-strip img {
        width: 140px;
        height: 90px;
        margin-bottom: 0;
        flex-shrink: 0;
    }
}
/* ========================================================================
   CSS CHO FORM LIÊN HỆ CUỐI TRANG TRÊN MOBILE
   ======================================================================== */

.page-bottom-contact-section {
    display: none; /* Mặc định ẩn trên desktop */
    padding: 60px 0;
    background-color: var(--body-bg);
}

.page-bottom-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.page-bottom-form input,
.page-bottom-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-dark);
    font-size: 16px;
    font-family: 'Be Vietnam Pro', sans-serif;
    box-sizing: border-box;
}

.page-bottom-form button {
    padding: 15px;
    font-size: 16px;
    border: none;
}

/* Kích hoạt hiển thị trên màn hình nhỏ */
@media (max-width: 767px) {
    .page-bottom-contact-section {
        display: block; /* Hiển thị form */
        padding: 40px 0;
    }

    /* Ẩn nút liên hệ nổi để tránh trùng lặp */
    .fixed-action-buttons .contact-float-btn {
        display: none;
    }

}

/* ========================================================================
   CSS TỐI ƯU CHO LỚP PHỦ TIỆN ÍCH
   ======================================================================== */

.amenity-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Đẩy nội dung xuống dưới cùng */
    box-sizing: border-box;
    
    /* Tăng padding để nội dung thoáng hơn */
    padding: 25px 20px;
    
    /* Lớp chuyển màu (gradient) đậm hơn và cao hơn để chữ dễ đọc */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, rgba(0,0,0,0.7) 40%, transparent 80%);
    
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Thêm bóng cho chữ */
    transition: all 0.4s ease;
}

.amenity-overlay h4, 
.amenity-overlay h5 {
    font-size: 18px; /* Tăng kích thước tiêu đề */
    font-weight: 700;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.amenity-overlay .amenity-desc {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    
    /* Tối ưu: Mô tả sẽ ẩn mặc định và chỉ hiện khi hover để giao diện sạch hơn */
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease;
}

/* Hiệu ứng khi hover vào thẻ tiện ích */
.amenity-card:hover .amenity-overlay {
    /* Lớp phủ đậm hơn một chút khi hover */
    background: linear-gradient(to top, rgba(0,0,0,0.95) 20%, rgba(0,0,0,0.7) 60%, transparent 90%);
}

.amenity-card:hover .amenity-desc {
    opacity: 1; /* Hiện mô tả */
    max-height: 100px; /* Chiều cao tối đa cho mô tả */
}

/* Điều chỉnh riêng cho thẻ lớn ở giữa để nổi bật hơn */
.amenity-card.large .amenity-overlay {
    padding: 30px;
}

.amenity-card.large .amenity-overlay h4 {
    font-size: 24px; /* Tiêu đề to hơn */
}

.amenity-card.large .amenity-desc {
    opacity: 1; /* Luôn hiển thị mô tả cho thẻ chính */
    max-height: 100px;
    font-size: 16px;
}
/* ========================================================================
   CSS CHO NÚT YÊU THÍCH TRÊN HEADER
   ======================================================================== */

.header-favorite-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    margin-left: 10px; /* Khoảng cách với nút search */
}

.header-favorite-btn svg {
    width: 26px;
    height: 26px;
    transition: all 0.2s ease;
}

.header-favorite-btn:hover svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

.favorite-counter {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: #ef4444; /* Màu đỏ nổi bật */
    color: white;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    box-sizing: border-box;
    border: 2px solid white;
    
    /* Mặc định ẩn, chỉ hiện khi có item */
    transform: scale(0);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.favorite-counter.visible {
    transform: scale(1);
    opacity: 1;
}
.header-actions {
    display: flex;       /* Xếp các icon con theo hàng ngang */
    align-items: center; /* Căn giữa các icon theo chiều dọc */
    gap: 15px;           /* Tạo khoảng cách 15px giữa các icon */
}

.footer-widget .widget-links {
    line-height: 1.7; /* Đưa về line-height chung của body, bỏ giá trị 2.2 cũ */
}

.footer-widget p {
    margin: 0; /* Bỏ margin 5px cũ */
}

/* 2. Áp dụng một khoảng cách dưới đồng nhất cho tất cả các dòng */
.footer-widget p,
.footer-widget .widget-links li {
    padding-bottom: 12px; /* Tạo khoảng cách 12px dưới mỗi dòng. Bạn có thể thay đổi giá trị này. */
}

/* 3. Loại bỏ khoảng cách cho dòng cuối cùng trong mỗi cột để căn chỉnh đẹp hơn */
.footer-widget p:last-of-type,
.footer-widget .widget-links li:last-child {
    padding-bottom: 0;
}
/* ======================= Footer - Social Icons ======================= */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 15px; /* Khoảng cách giữa các icon */
    margin-top: 30px;
}

.social-icon svg {
    width: 24px;
    height: 24px;
    fill: var(--text-dark); /* Màu icon mặc định, cùng màu với text footer */
    transition: all 0.3s ease;
}

.social-icon:hover svg {
    fill: #fff; /* Chuyển thành màu trắng khi hover */
    transform: scale(1.1); /* Phóng to nhẹ khi hover */
}

/* ===================================================== */
/* == SỬA LỖI TRÀN CHỮ TRÊN MÀN HÌNH NHỎ (WORD WRAP) == */
/* ===================================================== */

/* Áp dụng cho các thẻ văn bản có thể bị tràn */
h1, h2, h3, h4, h5, h6, p, a, li, span {
    overflow-wrap: break-word;
    word-wrap: break-word; /* Dùng cho các trình duyệt cũ hơn */
    word-break: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
@media (max-width: 992px) {
    .sidebar-column{
        order: 2;
    }
}
/* Thêm vào cuối tệp product-detail.css */

.lightbox-control-btn:disabled {
    opacity: 0.3;
    cursor: default;
    transform: scale(1) !important; /* Ngăn hiệu ứng hover khi nút bị vô hiệu hóa */
}
/* Ngăn chặn hành vi kéo ảnh mặc định của trình duyệt */
img {
    -webkit-user-drag: none; /* Cho Chrome, Safari, Opera */
    -khtml-user-drag: none;  /* Cho các trình duyệt cũ hơn */
    -moz-user-drag: none;     /* Cho Firefox */
    user-drag: none;          /* Chuẩn trong tương lai */

    /* Tùy chọn: Ngăn người dùng chọn (bôi đen) ảnh như văn bản */
    user-select: none;
    -webkit-user-select: none;
}
.banner-text h2 {
    font-size: 24px;
    color: var(--white-color);
    margin: 0 0 10px 0;
}



/* ========================================================================
   CSS CHO MODAL POPUP TÁI SỬ DỤNG
   ======================================================================== */

/* Lớp phủ toàn màn hình */
.modal-container {
    display: none; /* Mặc định ẩn */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10000; /* Luôn nằm trên cùng */
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Lớp hiển thị modal, sẽ được điều khiển bằng JavaScript */
.modal-container.open {
    display: flex;
}

/* Hộp nội dung */
.modal-content {
    background-color: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 600px; /* Điều chỉnh độ rộng tối đa của modal */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* ========================================================================
   CSS ĐỒNG BỘ CHO TẤT CẢ MODAL POPUP
   ======================================================================== */

/* 1. Thiết lập kích thước đồng nhất cho tất cả modal content */
.modal-container .modal-content {
    background-color: white;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 550px; /* Kích thước tối đa đồng nhất cho các modal */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* 2. Định dạng đồng nhất cho TẤT CẢ form input và select bên trong modal */
.modal-content .contact-form input,
.modal-content .contact-form textarea,
.modal-content .contact-form select {
    width: 100%;
    padding: 12px 15px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Be Vietnam Pro', sans-serif;
    margin-bottom: 15px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
}

/* Thêm mũi tên tùy chỉnh cho thẻ select */
.modal-content .contact-form select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Style khi người dùng focus (chọn) vào trường nhập liệu */
.modal-content .contact-form input:focus,
.modal-content .contact-form textarea:focus,
.modal-content .contact-form select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(83, 185, 102, 0.2);
}
/* ========================================================================
   CSS CHO KẾT QUẢ CỦA MODAL XEM NĂM XÂY NHÀ
   ======================================================================== */
#xay-nha-result-wrapper h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}
#xay-nha-result-wrapper h4:first-child {
    margin-top: 0;
}

.info-details p {
    margin: 8px 0;
    font-size: 15px;
    color: var(--text-light);
}
.info-details p strong {
    color: var(--text-dark);
    width: 150px;
    display: inline-block;
}

.analysis-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.analysis-item .analysis-icon {
    flex-shrink: 0;
}

.analysis-item .analysis-content h5 {
    margin: 0 0 5px 0;
    padding: 0;
    border: none;
    font-size: 16px;
}
.analysis-item .analysis-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

/* Style cho kết quả Tốt */
.analysis-item.good {
    background-color: #e9f5e9;
    border-left: 4px solid #4CAF50;
}
.analysis-item.good .result-text {
    color: var(--secondary-color);
    font-weight: 700;
}

/* Style cho kết quả Xấu (Phạm) */
.analysis-item.bad {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}
.analysis-item.bad .result-text {
    color: #c62828;
    font-weight: 700;
}

/* Kết luận cuối cùng */
.final-conclusion {
    margin-top: 25px;
    padding: 15px;
    background-color: var(--body-bg);
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

/* ========================================================================
   CSS BỔ SUNG CHO MODAL XEM NĂM XÂY NHÀ (ĐỂ ĐỒNG BỘ)
   ======================================================================== */

/* --- Định dạng cho lưới kết quả --- */
#xay-nha-info-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Căn các cột theo đỉnh */
}

#xay-nha-info-col-1 {
    flex-grow: 1; /* Cột thông tin chiếm phần lớn không gian */
}

/* --- Định dạng cho cột chứa ảnh con giáp --- */
#xay-nha-info-col-2 {
    flex-shrink: 0;
    width: 120px; /* Độ rộng cố định */
    text-align: center;
    padding-top: 15px; /* Căn chỉnh ảnh xuống một chút cho đẹp */
}

#xay-nha-info-col-2 .zodiac-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Định dạng cho nút "Tra cứu lại" --- */
#xay-nha-back-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px; /* Tạo khoảng cách với nội dung bên trên */
}

#xay-nha-back-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- Responsive cho màn hình nhỏ --- */
@media (max-width: 768px) {
    #xay-nha-info-grid {
        flex-direction: column; /* Xếp dọc trên mobile */
        align-items: center;   /* Căn giữa */
    }
    #xay-nha-info-col-2 {
        order: -1; /* Đưa ảnh lên đầu */
        padding-top: 0;
        margin-bottom: 15px;
    }
    .info-details p strong {
        width: 120px; /* Thu nhỏ chiều rộng label trên mobile */
    }
    #xay-nha-info-grid {
        flex-direction: column; /* Xếp dọc trên mobile */
        align-items: center;   /* Căn giữa */
    }
    #xay-nha-info-col-2 {
        order: -1; /* Đưa ảnh lên đầu */
        padding-top: 0;
        margin-bottom: 15px;
    }
    .info-details p strong {
        width: 120px; /* Thu nhỏ chiều rộng label trên mobile */
    }
     #xay-nha-info-grid {
        flex-direction: column; 
        align-items: center;   
    }
    #xay-nha-info-col-2 {
        order: -1; 
        padding-top: 0;
        margin-bottom: 15px;
    }
    .info-details p strong {
        width: 120px;
    }
    #xay-nha-result-title {
        font-size: 16px;
        font-weight: 700;
    }
}
/* ========================================================================
   CSS BỔ SUNG CHO MODAL XEM NĂM XÂY NHÀ (ĐỂ ĐỒNG BỘ)
   ======================================================================== */

/* --- Định dạng cho lưới kết quả --- */
#xay-nha-info-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start; /* Căn các cột theo đỉnh */
}

#xay-nha-info-col-1 {
    flex-grow: 1; /* Cột thông tin chiếm phần lớn không gian */
}

/* --- Định dạng cho cột chứa ảnh con giáp --- */
#xay-nha-info-col-2 {
    flex-shrink: 0;
    width: 120px; /* Độ rộng cố định */
    text-align: center;
    padding-top: 20px; /* Căn chỉnh ảnh xuống một chút cho đẹp */
}

#xay-nha-info-col-2 .zodiac-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Định dạng cho nút "Tra cứu lại" --- */
#xay-nha-back-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px; /* Tạo khoảng cách với nội dung bên trên */
}

#xay-nha-back-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}



/* --- Định dạng cho tiêu đề kết quả mới --- */
#xay-nha-result-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    color: var(--text-dark);
}
#xay-nha-result-title .good-year {
    color: var(--primary-color);
    font-weight: 700;
}
#xay-nha-result-title .bad-year {
    color: #c62828;
    font-weight: 700;
}

/* --- Định dạng cho lưới kết quả --- */
#xay-nha-info-grid {
    display: flex;
    gap: 20px;
    align-items: center; /* CẬP NHẬT: Căn giữa hình ảnh theo chiều dọc */
    margin-top: 15px;
}

#xay-nha-info-col-1 {
    flex-grow: 1; 
}
#xay-nha-info-col-1 h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* --- Định dạng cho cột chứa ảnh con giáp --- */
#xay-nha-info-col-2 {
    flex-shrink: 0;
    width: 120px;
    text-align: center;
}

#xay-nha-info-col-2 .zodiac-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* --- Định dạng cho nút "Tra cứu lại" --- */
#xay-nha-back-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

#xay-nha-back-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}


/* ==========================================================
// == CSS MỚI: Định dạng cho Tuyên bố miễn trừ trách nhiệm ==
// ========================================================== */
.modal-disclaimer {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    text-align: left;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed var(--border-color);
}

.modal-disclaimer strong {
    font-style: normal;
    color: var(--text-dark);
}
.modal-content h3 {
    font-weight: 700;
}
.modal-content h3 {
    font-weight: 700;
}
/* 2. Cố định nút đóng (X) trên màn hình nhỏ khi cuộn */
.modal-close-btn {
        position: -webkit-sticky; /* Hỗ trợ trình duyệt Safari cũ */
        position: sticky;         /* Giúp nút "dính" lại ở trên cùng khi cuộn */         /* Giữ khoảng cách 15px với cạnh trên */
        float: right;             /* Đẩy nút về phía bên phải */
       /* Kéo nội dung bên dưới lên để không bị chiếm không gian */
        z-index: 10001;           /* Đảm bảo nút luôn nằm trên các nội dung khác */

        /* Cải thiện hiển thị để nút dễ nhìn hơn khi có nội dung lướt qua */
        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);

        top: 0px; right: 0px;
        font-size: 28px;
        color: #aaa;
        background: none;
        border: none;
        cursor: pointer;
        width: 40px;
        height: 40px;
    }

    /* Custom styles for toggle switch */
.toggle-checkbox:checked {
    right: 0;
    border-color: var(--primary-color);
}
.toggle-checkbox:checked + .toggle-label {
    background-color: var(--primary-color);
}
/* Custom styles for accordion on mobile */
details summary::-webkit-details-marker {
    display: none;
}
details summary {
    list-style: none;
}
/* Custom styles for stepper */
.step-item.active .step-circle {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.step-item.completed .step-circle {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.step-item.completed .step-line {
    background-color: var(--secondary-color);
}
/* Style for disabled button */
button:disabled {
    background-color: #9CA3AF !important;
    cursor: not-allowed !important;
}
/* Style for zoomable image */
.cursor-zoom-in {
    cursor: zoom-in;
}


/* ==========================================================
// == BẮT ĐẦU: CSS CHO CÔNG CỤ DỰ TOÁN XÂY DỰNG (MỚI) ==
// ========================================================== */

/* --- General Layout --- */
.estimator-wrapper {
    font-family: 'Be Vietnam Pro', sans-serif; /* Sử dụng font của website */
    --primary-color: #0284c7;
    --secondary-color: #052f63;
}
.estimator-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
}
.estimator-subtitle {
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}
.hidden {
    display: none !important;
}

/* --- Stepper (VERSION SỬA LỖI) --- */
.estimator-stepper {
    max-width: 700px;
    margin: 30px auto 40px auto;
}
.stepper-track {
    display: flex;
    align-items: flex-start; /* Căn các step theo chiều trên cùng */
}

/* Item cha chứa (Vòng tròn + Chữ) VÀ (Đường kẻ) */
.step-item {
    display: flex;
    align-items: center;
    flex-grow: 1; /* Cho phép Step 1, 2 giãn ra */
}

/* Quan trọng: Ngăn Step 3 bị co lại */
.step-item:last-child {
    flex-grow: 0;
    flex-shrink: 0;
}

/* Khối chứa Vòng tròn và Chữ */
.step-circle-wrapper {
    display: flex;
    align-items: center;
    /* Không cho phép khối này co lại, giữ nguyên kích thước */
    flex-shrink: 0;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 2px solid #D1D5DB;
    color: #9CA3AF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    flex-shrink: 0; /* Đảm bảo vòng tròn không bị méo */
}

.step-label {
    margin-left: 12px;
}
.step-title {
    font-weight: 700;
    color: #6B7280;
}
.step-desc {
    font-size: 14px;
    color: #9CA3AF;
}

/* Quan trọng: Đường kẻ sẽ tự giãn ra */
.step-line {
    flex-grow: 1; /* Cho phép đường kẻ lấp đầy không gian */
    height: 2px;
    background-color: #D1D5DB;
    margin: 0 16px;
    transition: background-color 0.3s ease;
}

/* Ẩn đường kẻ của Step cuối cùng */
.step-item:last-child .step-line {
    display: none;
}

/* Stepper States */
.step-item.active .step-circle {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}
.step-item.active .step-title {
    color: var(--text-dark);
}
.step-item.completed .step-circle {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}
.step-item.completed .step-title {
    color: var(--text-dark);
}
.step-item.completed .step-line {
    background-color: var(--secondary-color);
}
.step-item.completed .step-circle::before {
    content: '✓';
    font-size: 20px;
}

/* --- Main Layout Step 1 --- */
.estimator-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
@media (min-width: 768px) {
    .estimator-layout {
        grid-template-columns: 2fr 1fr;
        gap: 40px;
    }
}

/* --- Form --- */
.estimator-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}
.form-fieldset {
    border: none;
    border-top: 1px solid var(--border-color);
    padding: 20px 0 0 0;
    margin-top: 15px;
}
.form-fieldset.full-width {
    grid-column: 1 / -1;
}
.form-fieldset legend {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 15px;
    margin-left: 10px;
}
.form-grid-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px 30px;
    margin-top: 15px;
}
@media (min-width: 768px) {
    .form-grid-columns.two-cols { grid-template-columns: 1fr 1fr; }
    .form-grid-columns.three-cols { grid-template-columns: 1fr 1fr 1fr; }
}
.form-group {
    display: flex;
    flex-direction: column;
}
.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
}
.form-group input[type="number"], .form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 15px;
}
.form-group input[readonly] {
    background-color: #F3F4F6;
}
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 5px;
}
.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: normal;
    margin-bottom: 0;
}
.form-error-message {
    color: #EF4444;
    font-size: 13px;
    margin-top: 5px;
}
.full-width { grid-column: 1 / -1; }
.form-separator { border-top: 1px solid var(--border-color); margin-top: 10px; padding-top: 20px; }
.full-width-placeholder { display: none; }
@media (min-width: 768px) {
    .full-width-placeholder { display: block; }
}


/* Toggle Switch */
.toggle-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #F9FAFB;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    height: 100%; /* Giúp các ô cùng hàng cao bằng nhau */
    box-sizing: border-box;
}
.toggle-switch {
    position: relative;
    width: 48px;
    height: 24px;
}
.toggle-label {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #D1D5DB;
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.toggle-group label {
    margin-bottom: 0;
    font-weight: 500;
}
.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}
.toggle-checkbox + .toggle-label::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s ease-in-out;
}
.toggle-checkbox:checked + .toggle-label {
    background-color: var(--primary-color);
}
.toggle-checkbox:checked + .toggle-label::after {
    transform: translateX(24px);
}


/* --- Image Preview --- */
.estimator-preview-sticky {
    position: sticky;
    top: 20px;
}
.estimator-image-wrapper {
    background-color: #F9FAFB;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
}
.estimator-image-wrapper img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
}
#cong-trinh-caption {
    text-align: center;
    font-weight: 500;
    margin-top: 12px;
    color: var(--text-dark);
}
.cursor-zoom-in { cursor: zoom-in; }

/* --- Navigation --- */
.estimator-navigation {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.estimator-navigation button {
    padding: 10px 24px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid #D1D5DB;
    cursor: pointer;
}
.estimator-navigation button#back-btn {
    background-color: #F3F4F6;
}
.estimator-navigation button:disabled {
    background-color: #E5E7EB !important;
    color: #9CA3AF;
    cursor: not-allowed !important;
}

/* --- Zoom Modal --- */
.estimator-zoom-modal {
    position: fixed;
    inset: 0;
    background-color: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    z-index: 10001;
}
.estimator-zoom-modal #close-zoom-modal {
    position: absolute;
    top: 15px;
    right: 25px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
}
.estimator-zoom-modal #zoomed-image {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

/* --- Mobile Responsive for Stepper --- */
@media (max-width: 640px) {
    .step-label {
        display: none;
    }
    .step-line {
        margin: 0 8px;
    }
}
.form-grid-columns.one-col {
    grid-template-columns: 1fr;
    gap: 15px; /* Giảm khoảng cách dọc cho các khối compound */
}

/* Khối bao ngoài cho mỗi cặp toggle-input */
.form-group-compound {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Cho phép rớt dòng trên màn hình nhỏ */
    background-color: #F9FAFB;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
}

/* Phần chứa label và toggle */
.compound-label {
    flex: 1; /* Chiếm phần lớn không gian */
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 200px; /* Đảm bảo không bị vỡ layout */
    padding-right: 20px;
}

.compound-label label {
    font-weight: 500;
    margin-bottom: 0;
}

/* Phần chứa ô nhập liệu */
.compound-input {
    flex: 1; /* Chiếm phần còn lại */
    min-width: 250px; /* Đặt chiều rộng tối thiểu */
}

.compound-input label {
    display: none; /* Ẩn label thừa */
}
.input-hidden {
    visibility: hidden; /* Ẩn đi nhưng vẫn chiếm không gian */
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
/* Định dạng cho ô nhập liệu khi nó hiện ra */
#dien-tich-bc-truoc-container, #dien-tich-bc-sau-container {
    opacity: 1;
    visibility: visible;
}
/* --- CSS cho Image Slider --- */
.image-slider-container {
    position: relative; /* Cần thiết để định vị các nút điều khiển */
    line-height: 0; /* Loại bỏ khoảng trống thừa dưới ảnh */
}

.slider-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: none; /* Mặc định ẩn, JS sẽ điều khiển */
    align-items: center;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    padding: 5px 10px;
    border-radius: 20px;
    backdrop-filter: blur(3px);
}

.slider-button {
    background: transparent;
    color: white;
    border: none;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.2s ease;
}

.slider-button:hover:not(:disabled) {
    transform: scale(1.2);
}

.slider-button:disabled {
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

#image-index {
    color: white;
    font-size: 14px;
    font-weight: 500;
    min-width: 40px;
    text-align: center;
}
/* Thêm vào cuối file style.css để làm nổi bật các dòng tổng kết */
.payment-schedule-table .summary-row {
    font-weight: 700;
    background-color: #f7fafc;
    color: var(--secondary-color);
}
.payment-schedule-table .summary-row td {
    color: var(--secondary-color);
}
.payment-schedule-table .summary-row-background {
    background-color: #f7fafc;
}

/* Style cho các ô trong dòng tổng kết để làm nổi bật chữ */
.payment-schedule-table .summary-cell {
    font-weight: 700;
    color: var(--secondary-color);
}
/* ==========================================================
// == CSS CHO MŨI TÊN ĐÓNG/MỞ TRONG ESTIMATOR MODAL ==
// ========================================================== */

/* 1. Bỏ marker mặc định và đảm bảo summary có thể chứa flexbox */
#khai-toan-xay-dung-modal details > summary {
    list-style: none;
}
#khai-toan-xay-dung-modal details > summary::-webkit-details-marker {
    display: none;
}

/* 2. Thiết lập layout cho SPAN chứa text để có thể thêm mũi tên */
#khai-toan-xay-dung-modal details > summary > span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 12px; /* Khoảng cách giữa mũi tên và text */
}

/* 3. Tạo mũi tên tùy chỉnh bằng pseudo-element ::before */
#khai-toan-xay-dung-modal details > summary > span:first-child::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-style: solid;
    border-color: var(--text-dark);
    /* Tạo hình tam giác chỉ với border top và right */
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg); /* Xoay để thành mũi tên chỉ sang phải (trạng thái đóng) */
    transition: transform 0.3s ease-in-out;
    flex-shrink: 0; /* Ngăn mũi tên bị co lại */
}

/* 4. Xoay mũi tên khi <details> được mở (có attribute 'open') */
#khai-toan-xay-dung-modal details[open] > summary > span:first-child::before {
    transform: rotate(45deg); /* Xoay để thành mũi tên chỉ xuống dưới (trạng thái mở) */
}
/* ==========================================================
// == CSS CHO KHUNG TỔNG CHI PHÍ DỰ TÍNH (MỚI) ==
// ========================================================== */
.total-cost-summary-grid {
    display: grid;
    grid-template-columns: 1fr; /* Mặc định 1 cột trên mobile */
    gap: 15px;
    text-align: center;
}

@media (min-width: 768px) {
    .total-cost-summary-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 cột trên desktop */
    }
}

.summary-cost-item {
    padding: 15px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.summary-cost-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
}

.summary-cost-item p {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.3;
}

.summary-cost-item p span {
    font-size: 16px;
    font-weight: 500;
    color: var(--secondary-color);
}
/* ==========================================================
// == CSS CHO TOOLTIP (ĐÃ CHỈNH SỬA ĐỂ TRÁNH BỊ TRÀN) ==
// ========================================================== */

.label-with-tooltip {
    display: flex;
    align-items: center;
    gap: 8px; /* Khoảng cách giữa label và icon */
    margin-bottom: 8px;
}

.label-with-tooltip label {
    margin-bottom: 0; /* Ghi đè margin mặc định của label trong form */
}

/* ==========================================================
// == CSS CHO TOOLTIP (MỚI) ==
// ========================================================== */

.label-with-tooltip {
    display: flex;
    align-items: center;
    gap: 8px; /* Khoảng cách giữa label và icon */
    margin-bottom: 8px;
}

.label-with-tooltip label {
    margin-bottom: 0; /* Ghi đè margin mặc định của label trong form */
}

.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.tooltip-icon {
    width: 16px;
    height: 16px;
    color: #9CA3AF; /* Màu xám nhạt */
    cursor: help; /* Con trỏ hình dấu chấm hỏi */
}

.tooltip-text {
    visibility: hidden; /* Mặc định ẩn */
    opacity: 0;
    width: 180px; /* Độ rộng của tooltip */
    background-color: #333; /* Nền đen */
    color: #fff; /* Chữ trắng */
    text-align: left;
    font-weight: 400; /* Chữ không in đậm */
    font-size: 13px;
    line-height: 1.6;
    border-radius: 6px;
    padding: 12px;
    
    /* Định vị tooltip */
    position: absolute;
    z-index: 10;
    bottom: 140%; /* Hiển thị phía trên icon */
    left: 50%;
    transform: translateX(-50%);
    
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Tạo mũi tên nhỏ bên dưới tooltip */
.tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%; /* Nằm ở cạnh dưới của tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

/* Hiển thị tooltip khi hover vào container */
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
.mega-menu-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    box-sizing: border-box;
}
.mega-menu-search:focus {
    outline: none;
    border-color: #0284c7;
    box-shadow: 0 0 0 2px rgba(83, 185, 102, 0.2);
}

/* === SỬA LỖI THANH CUỘN CỘT 2 (KHU VỰC) === */
.mega-menu-list-wrapper {
    /* Đặt chiều cao tối đa để thanh cuộn xuất hiện */
    max-height: 300px; /* Bạn có thể điều chỉnh giá trị này */
    overflow-y: auto;
    width: 100%;
box-sizing: border-box;
    /* QUAN TRỌNG: Thêm đệm bên phải để tạo không gian cho thanh cuộn */
    padding-right: 15px;
}

.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;
}
.mega-menu-group-title:first-child {
    margin-top: 0;
}
.mega-menu-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
#mega-menu-col-1-list li {
margin: 2px 0; /* Thêm một chút khoảng cách dọc giữa các mục */
}

#mega-menu-col-1-list li a {
    color: #333; /* Màu mặc định cho các mục chưa chọn */
    transition: color 0.2s ease;
        display: block; /* Cho phép thẻ <a> chiếm toàn bộ không gian của thẻ <li> */
padding: 8px 15px; /* Thêm vùng đệm để dễ click hơn */
border-radius: 6px; /* Bo góc cho đẹp hơn */
transition: background-color 0.2s ease, color 0.2s ease; /* Hiệu ứng chuyển động mượt mà */
}
#mega-menu-col-1-list li a:hover {
    color: #0284c7; /* Màu khi di chuột qua */
}
#mega-menu-col-1-list li.active > a {
    color: #0284c7; /* Màu active cho mục được chọn */
    font-weight: 700;
}

/* === CSS CHO THANH CUỘN CỘT 3 (DỰ ÁN NỔI BẬT) === */
#mega-menu-col-3-content {
    overflow-y: auto;
    max-height: 350px; 
    padding-right: 15px;
    padding-left: 5px;
}

/* Tùy chọn: Làm đẹp thanh cuộn trên Chrome/Safari */
.mega-menu-list-wrapper::-webkit-scrollbar,
#mega-menu-col-3-content::-webkit-scrollbar {
    width: 6px;
}
.mega-menu-list-wrapper::-webkit-scrollbar-track,
#mega-menu-col-3-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.mega-menu-list-wrapper::-webkit-scrollbar-thumb,
#mega-menu-col-3-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.mega-menu-list-wrapper::-webkit-scrollbar-thumb:hover,
#mega-menu-col-3-content::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
body.scroll-locked {
    overflow: hidden;
}


.panel-search-wrapper {
    padding: 0 15px 15px 15px;
    border-bottom: 1px solid #eee;
}
.mobile-menu-search {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    margin-top: 15px;
}
.mobile-menu-search:focus {
    outline: none;
    border-color: #0284c7;
}
.header-wrapper.scroll-locked {
    /* Bù trừ padding cho header có position: fixed */
    padding-right: var(--scrollbar-width, 0px);
}

.param-item svg {
    color: var(--primary-color);
}