/* Variables & Reset */
:root {
    --primary-color: #0e66b3; /* Xanh từ logo */
    --primary-light: #f0faff; /* Xanh nhạt cho hover/active */
    --secondary-color: #0e66b3; /* Xanh từ logo */
    --secondary-light: #e0f0ff; /* Xanh cực nhạt để làm nổi bật dòng giá */
    --text-color: #333;
    --text-muted: #555; /* Đậm hơn để đạt chuẩn WCAG AAA (Contrast 7.4:1) */
    --bg-light: #f9f9f9;
    --bg-dark: #222;
    --footer-dark: #1a1a1a;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.menu-open {
    overflow: hidden;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Utilities */
.flex-header, .flex-menu, .flex-footer {
    display: flex;
    align-items: center;
}

.section-padding {
    padding: 60px 0;
}

.section-padding-40 {
    padding: 40px 0;
}

/* Section Titles */
.section-title {
    margin-bottom: 30px;
}

.section-title-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.section-title-flex h2 {
    margin-bottom: 0;
}

.section-title .view-more {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    transition: var(--transition);
}

.section-title .view-more:hover {
    color: var(--secondary-color);
}

.section-title .divider {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin-top: 15px;
}

.section-title-flex .divider {
    flex-basis: 100%;
}

.hide-mobile {
    display: flex;
}

.menu-toggle {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--primary-color);
    padding: 5px;
    z-index: 1101; /* Cao nhất để không bị các thành phần sticky khác che */
    width: 40px;
    text-align: center;
}

.menu-close {
    display: none; /* Ẩn mặc định trên PC */
    position: absolute;
    top: 15px;
    right: 5px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    z-index: 1110;
    background-color: #f2f5f8;
    border-radius: 8px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1095; /* Nằm dưới header nhưng trên nội dung trang */
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1100;
    transition: top 0.3s ease-in-out;
}

.header .container {
    position: relative;
}

.flex-header {
    height: 80px; /* Cố định chiều cao header để menu item căn chỉnh chuẩn */
    justify-content: space-between;
}

.logo img {
    height: 60px;
    object-fit: contain;
}

.flex-menu {
    height: 100%;
    list-style: none;
    display: flex;
    align-items: stretch; /* Cho phép các li chiếm toàn bộ chiều cao header */
}

.flex-menu li {
    display: flex;
    align-items: stretch;
    position: relative;
}

.flex-menu li a {
    text-decoration: none;
    color: var(--text-color);
    padding: 10px 15px;
    font-weight: bold;
    transition: var(--transition);
}

/* Giữ màu xanh cho menu cha khi đang rê chuột ở menu con hoặc li cha */
.flex-menu li:hover > a,
.flex-menu li a:hover, 
.flex-menu li a.active,
.has-dropdown.open > a {
    color: var(--primary-color);
}

.dropdown-toggle {
    display: none; /* Ẩn mặc định trên PC */
    cursor: pointer;
}

/* Dropdown Menu PC */
.has-dropdown {
    position: relative;
}

.has-dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.3s;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    max-width: 95vw; /* Ngăn menu đẩy chiều ngang trình duyệt trên màn hình nhỏ */
    list-style: none;
    display: none;
    flex-direction: column; 
    z-index: 1101; /* Đảm bảo menu con nằm trên header (z-index: 1100) */
    border-top: 3px solid var(--primary-color);
}

/* Mega Menu Office Specific Styling */
.dropdown-menu.mega-menu .mega-menu-column {
    flex: 1; /* Chia đều không gian cho các cột */
    min-width: 200px;
    padding: 10px 15px;
    display: flex; /* Biến cột thành flex container */
    flex-direction: column; /* Xếp các phần tử con theo chiều dọc */
}

.dropdown-menu.mega-menu .mega-menu-title {
    font-size: 14px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 15px 5px 0px 22px;
}

.dropdown-menu.mega-menu .mega-menu-column ul {
    list-style: none;
    padding: 0;
    max-height: 350px; /* Giới hạn chiều cao để cho phép cuộn */
    overflow-y: auto; /* Cho phép cuộn dọc */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) #f1f1f1; /* Firefox */
}

.dropdown-menu.mega-menu .mega-menu-column ul::-webkit-scrollbar {
    width: 6px;
}

/* Tạo cầu nối tàng hình để giữ trạng thái hover khi di chuyển chuột từ Link xuống Menu con */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown-menu.mega-menu .mega-menu-column ul::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu.mega-menu .mega-menu-column ul::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 10px;
    border: 1px solid #f1f1f1;
}

/* Mega Menu Style for 24 Districts */
.dropdown-menu.mega-menu { /* Apply these properties to the mega-menu itself */
    width: 100%; /* Full width of its positioned parent (header .container) */
    max-width: 1230px; /* Limit to the container's max-width */
    left: 0; /* Align left edge with parent */
    right: 0; /* Align right edge with parent */
    margin: 0 auto; /* Center the block element */
    flex-direction: row;
    align-items: flex-start; /* Đảm bảo các cột luôn căn lề trên cùng */
    padding: 20px 15px;
}

@media (min-width: 1025px) {
    .nav-item {
        line-height: 35px;
    }
    /* Rất quan trọng: Phải là static để Mega menu căn theo .container của Header */
    .nav-item.has-dropdown {
        position: static;
    }

    /* Riêng các dropdown nhỏ thì vẫn giữ relative */
    .nav-item.has-dropdown:not(:has(.mega-menu)) {
        position: relative;
    }

    .has-dropdown:hover .dropdown-menu.mega-menu {
        /* top: 80px; Removed to rely on top: 100% from .dropdown-menu, which is relative to header .container */
        display: flex;
    }

    .has-dropdown:hover .dropdown-menu:not(.mega-menu) {
        display: flex;
    }
}

/* Fix lỗi li trong Mega menu bị thừa flex-basis */
.dropdown-menu.mega-menu .mega-menu-column ul li {
    flex: 0 0 100%;
    width: 100%;
}

/* Special layout for "Toà nhà nổi bật" menu - Horizontal Flex */
@media (min-width: 1025px) {
    .dropdown-menu.mega-menu-featured {
        flex-direction: column;
    }
    .mega-menu-featured .mega-menu-column {
        flex: 0 0 100% !important;
        padding: 10px 20px !important;
    }
    .mega-menu-featured .mega-menu-column ul {
        display: flex;
        flex-wrap: wrap;
        max-height: none !important;
        overflow: visible !important;
    }
    .mega-menu-featured .mega-menu-column ul li {
        flex: 0 0 25% !important; /* Hiển thị 4 cột đều nhau */
    }
}

.dropdown-menu li a, .dropdown-menu .mega-menu-column ul li a {
    padding: 15px 25px !important;
    border-bottom: 1px solid #f1f1f1;
    font-weight: normal !important;
    font-size: 14px;
    line-height: 1.4;
    display: block;
}

.dropdown-menu li:last-child a, .dropdown-menu .mega-menu-column ul li:last-child a {
    border-bottom: none;
}

.phone-number {
    background: var(--secondary-color);
    color: var(--white) !important;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    text-decoration: unset !important;
}

.phone-number svg {
    display: inline-block;
    vertical-align: middle;
}

/* Hero Slider */
.hero-slider {
    height: 700px;
}

.main-swiper {
    width: 100%;
    height: 100%;
}

.main-swiper .swiper-slide {
    position: relative;
}

.main-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--white);
    background: rgba(0,0,0,0.4);
    padding: 20px;
    width: 100%;
    z-index: 10;
    pointer-events: none;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

/* Page Banner (Internal Pages) */
.page-banner {
    position: relative;
    height: 130px;
    overflow: hidden;
    background-color: var(--white); /* Đảm bảo nền trắng phía sau ảnh mờ */
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
}

.page-banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-color);
    background: transparent; /* Chuyển sang trong suốt theo yêu cầu */
    padding: 30px 20px;
    width: 100%;
    z-index: 10;
}

.page-banner-content h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.breadcrumb {
    list-style: none;
    display: flex;
    justify-content: center;
    font-size: 15px;
    margin-top: 10px;
    padding: 0;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:last-child {
    color: var(--text-color);
    opacity: 0.9;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: var(--text-color);
    opacity: 0.9;
}

/* Page Title Section (No Image Background) */
.page-title-section {
    padding: 20px 0;
    background-color: var(--white);
    text-align: left;
    border-bottom: 1px solid #eee;
}

.page-title-section h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    line-height: 1.2;
}

.page-title-section .breadcrumb {
    justify-content: flex-start;
    margin-top: 0;
    margin-bottom: 8px;
}

.rating-container {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    flex-wrap: wrap;
}

.page-title-section .stars {
    color: #ffc107;
    font-size: 16px;
    margin-bottom: 0;
}

.page-title-section .rating-text {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

/* Swiper Navigation - Unified Style (Matching Hero) */
.swiper-button-next,
.swiper-button-prev {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3); /* Darker for light sections visibility */
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--primary-color);
}

/* Hero Slider Navigation Specific (Transparent white for dark images) */
.main-swiper .swiper-button-next,
.main-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.2);
}

/* Cards */
.card-item {
    background: var(--white);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

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

.card-item:hover {
    transform: translateY(-5px);
}

.card-img {
    /* width: 283px; */
    /* height: 212px; */
}

.card-img img {
    width: 100%;
    aspect-ratio: 4/3;
    height: auto;
    object-fit: cover;
}

.card-info {
    padding: 15px;
}

.price {
    color: var(--secondary-color);
    font-weight: bold;
    display: block;
    margin-top: 10px;
}

/* Product List Grid (No Swiper) */
.office-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.office-grid .card-item {
    flex: 0 0 calc(25% - 15px);
    max-width: calc(25% - 15px);
}

@media (max-width: 1279px) {
    .office-grid .card-item {
        flex: 0 0 calc(33.333% - 13.4px);
        max-width: calc(33.333% - 13.4px);
    }
}

/* News Listing Page Grid */
.news-list-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.news-list-grid .news-card {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.pagination a, .pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: var(--transition);
}

.pagination a:hover, .pagination a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Review & Comment Section */
.review-container {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-top: 40px;
}

.rating-input {
    display: flex;
    gap: 5px;
    margin-bottom: 15px;
    font-size: 20px;
    color: #ddd;
    cursor: pointer;
}

.rating-input i.active {
    color: #ffc107;
}

.comment-list {
    margin-top: 40px;
}

.comment-item {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f1f1;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
    color: var(--primary-color);
}

.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}

.btn-reply {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
    transition: var(--transition);
}

.btn-reply:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.comment-content {
    font-size: 14px;
    line-height: 1.6;
}

.comment-reply {
    margin-left: 50px;
    margin-top: 15px;
    padding: 15px;
    background: #f9f9f9;
    border-left: 3px solid var(--secondary-color);
    border-radius: 4px;
}

.reply-form-wrapper {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* Featured Offices Slider adjustment */
.featured-swiper {
    padding-bottom: 50px;
}

.featured-swiper .swiper-pagination {
    bottom: 10px !important;
}

.featured-swiper .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    opacity: 0.3;
}

.featured-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    opacity: 1;
}

/* Wards Section */
.wards-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ward-link {
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.ward-link:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background-color: var(--primary-light);
}

/* Ward Swiper Adjustments */
.ward-swiper {
    padding-bottom: 50px;
}

.ward-swiper .swiper-pagination {
    bottom: 10px !important;
}

/* Districts Section */
.districts-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.district-item {
    display: block;
    width: 100%;
    min-width: 200px;
    text-decoration: none;
    color: var(--white);
}

.district-card {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.4s ease;
}

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

.district-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    text-align: center;
}

.district-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

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

/* Consulting Section Layout (Maison Office Style) */
.consulting-flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.consulting-info {
    flex: 1;
    min-width: 350px;
}

.consulting-grid {
    flex: 1.2;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    min-width: 350px;
}

.team-card-mini {
    flex: 0 0 calc(50% - 7.5px);
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 4 / 3;
}

.team-img {
    width: 100%;
    height: 100%;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--white);
    font-size: 15px;
    font-weight: bold;

}

.team-name span {
    display: block;
    font-size: 12px;
    font-weight: normal;
    opacity: 0.8;
}

/* Testimonials Styles */
.testimonials-swiper {
    padding-bottom: 50px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-quote {
    color: var(--secondary-color);
    font-size: 30px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 25px;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.testimonial-author img {
    border-radius: 50%;
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
}

.author-meta h4 { font-size: 16px; color: var(--text-color); margin: 0; }
.author-meta span { font-size: 13px; color: var(--text-muted); }

/* Why Choose Us */
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.feature-item {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-10px);
}

.feature-item i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item p.feature-item-title {
    font-size: 30px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* About Summary */
.about-flex {
    display: flex;
    align-items: stretch;
    gap: 60px;
    flex-wrap: wrap;
}

.about-section-bg {
    background-color: #f4faff; /* Màu xanh nhạt nhẹ nhàng để phân biệt section */
}

.about-content {
    flex: 0 0 calc(55% - 30px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-subtitle {
    color: var(--secondary-color);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

.about-content h2 {
    font-size: 30px;
    line-height: 1.3;
    margin-top: 0 !important; /* Xóa margin top kế thừa từ rich text */
    margin-bottom: 15px !important;
    color: var(--text-color);
}

.about-content p {
    margin-bottom: 12px !important; /* Thu hẹp khoảng cách giữa các đoạn văn */
}

.about-highlights {
    list-style: none;
    margin: 0px 0 20px; /* Thu gọn margin top/bottom của danh sách */
    padding: 0;
    /* display: flex; */
    /* flex-wrap: wrap; */
    gap: 15px 0;
}

.about-highlights li {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 10px;
    font-weight: 500;
    color: var(--text-color);
}

.about-highlights li i {
    color: var(--primary-color);
    font-size: 18px;
}

.about-content .btn-submit {
    width: 300px;
    max-width: 100%; /* Đảm bảo không bị tràn trên Mobile */
    text-align: center;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    border-top: 1px solid rgba(0,0,0,0.05);
    width: fit-content;
}

.sig-info .sig-name {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
    font-family: "Times New Roman", Times, serif; /* Tạo cảm giác chữ ký hơn */
    font-style: italic;
}

.sig-info .sig-title {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.about-image {
    flex: 0 0 calc(45% - 30px);
    min-width: 300px;
    position: relative;
}

.image-wrapper {
    position: relative;
    z-index: 2;
}

.image-wrapper::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 85%;
    /* border-top: 5px solid var(--secondary-color); */
    /* border-left: 5px solid var(--secondary-color); */
    background-color: #e0f0ff;
    z-index: -1;
    border-radius: 25px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 15px 15px 40px rgba(0,0,0,0.1);
}

/* Vision and Mission Section */
.vision-mission-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
    justify-content: center; /* Center items if they don't fill the row */
}

.vision-item, .mission-item {
    flex: 1;
    min-width: 300px; /* Minimum width before wrapping */
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.vision-item:hover, .mission-item:hover {
    transform: translateY(-5px);
}

.vision-item h3, .mission-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.vision-item p, .mission-item p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

/* News Slider */
.news-swiper {
    padding-bottom: 50px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
}

.news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease; /* Smooth zoom */
}

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

.news-body {
    padding: 20px;
}

.news-body h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    text-decoration: none;
}

.news-body p {
    color: var(--text-color);
    text-decoration: none;
}

.news-card a {
    text-decoration: none;
}

/* FAQ Section */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
}

.faq-question {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question h4 {
    margin-bottom: 0;
    font-size: 1rem;
    color: var(--text-color);
}

.faq-question i {
    transition: transform 0.3s;
    color: var(--primary-color);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s;
}

.faq-answer p {
    padding: 0 20px 20px 20px;
    margin: 0;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Độ cao tối đa đủ cho nội dung */
}

.faq-item.active .faq-question {
    background-color: var(--primary-light);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Content Toggle */
.expandable-content {
    max-height: 160px; /* Initial collapsed height (approx 5-6 lines) */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.expandable-content.is-expanded {
    max-height: max-content; /* Large enough to show full content */
    transition: max-height 1s ease-in;
}

.content-toggle-wrapper .btn-toggle-content.is-active i {
    transform: rotate(180deg);
}


/* Prefooter Section */
.prefooter-section {
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
}

.prefooter-links {
    display: flex;
    flex-wrap: wrap;
    row-gap: 12px;
}

.prefooter-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 25px;
    color: var(--text-color);
}

.prefooter-links a {
    flex: 0 0 25%; /* Chia 4 cột trên PC */
    max-width: 25%;
    text-decoration: none;
    color: #555;
    font-size: 13px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
}

.prefooter-links a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Contact Page Content */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
}

.contact-form-side {
    flex: 1.2;
    min-width: 320px;
}

.contact-map-side {
    flex: 1;
    min-width: 320px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 5px rgba(0, 168, 225, 0.2);
}

.btn-submit {
    background-color: var(--secondary-color);
    color: var(--white) !important; /* Đảm bảo luôn là màu trắng */
    padding: 8px 20px; /* Nhỏ lại theo yêu cầu */
    border: none;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block; /* Để width tự co theo nội dung */
    text-decoration: none !important; /* Xóa gạch chân */
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
}

.btn-submit:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.map-wrapper {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Building Specs Table */
.section-subtitle {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}

/* Product Detail Gallery */
.detail-gallery {
    margin-bottom: 30px;
    height: 450px; /* Tăng lên 450px để đảm bảo tỷ lệ 4:3 (600x450) cho ảnh chính */
    overflow: hidden;
    position: relative;
}

/* Layout PC: 1 hình chính bên trái, 4 hình nhỏ bên phải (2 cột nhỏ) */
@media (min-width: 1025px) {
    .gallery-swiper .swiper-wrapper {
        display: flex !important;
        flex-direction: column;
        flex-wrap: wrap;
        height: 100%;
        gap: 8px;
        transform: none !important; /* Vô hiệu hóa tính năng trượt của Swiper trên PC */
        align-content: flex-start;
    }

    .swiper-slide.gallery-main {
        width: calc(50% - 6px) !important; /* Chiếm 50% bề ngang */
        height: 100% !important;
        margin: 0 !important;
    }

    .swiper-slide.thumb-item {
        width: calc(25% - 6px) !important; /* 2 cột nhỏ, mỗi cột chiếm 25% */
        height: calc(50% - 4px) !important; /* Chia đôi chiều cao 400px */
        margin: 0 !important;
    }
}

.swiper-slide {
    overflow: hidden;
    border-radius: 10px;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
    aspect-ratio: 4 / 3;
}

.swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.swiper-slide:hover img {
    transform: scale(1.03);
}

/* View All Overlay */
.view-all-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: var(--transition);
}

.overlay-content {
    text-align: center;
}

.overlay-content i {
    display: block;
    font-size: 24px;
    margin-bottom: 5px;
}

.overlay-content span {
    font-weight: bold;
    font-size: 14px;
}

/* Product Summary Bar */
.product-summary-bar {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    z-index: 1050; /* Thấp hơn Header (1100) để tránh che lấp menu thả xuống */
}

.summary-bar-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px; /* Tăng padding ngang để text không sát biên */
    flex-wrap: wrap;
    gap: 20px;
}

.product-summary-bar.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #eee;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-summary-bar.is-sticky .title-rating-flex {
    margin-bottom: 0;
    flex-wrap: nowrap;
}

.product-summary-bar.is-sticky .rating-text {
    /* display: none; */
}

.product-summary-bar.is-sticky .summary-rating {
    display: none;
}

.product-summary-bar.is-sticky .summary-bar-flex {
    padding: 12px 30px; /* Giữ khoảng cách thoáng 30px khi sticky */
}

.summary-title-area {
    flex: 1;
    min-width: 300px;
}

.title-rating-flex {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.title-rating-flex h2 {
    margin-bottom: 0 !important;
}

.summary-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.summary-rating .stars {
    color: #ffc107;
    font-size: 16px;
    display: flex;
    gap: 2px;
}

.summary-rating .rating-text {
    font-size: 14px;
    color: var(--text-muted);
}

.summary-title-area h2 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-summary-bar.is-sticky .summary-title-area h2 {
    font-size: 17px !important;
    font-size: 19px !important; /* Tăng cỡ chữ tên toà nhà */
    margin: 0 !important;
    white-space: nowrap;
}

.summary-address {
    color: var(--text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-summary-bar.is-sticky .summary-address {
    font-size: 13px;
}

.summary-price-area {
    text-align: right;
}

.summary-price-value {
    font-size: 36px;
    font-weight: 800;
    color: var(--secondary-color);
    display: block;
    line-height: 1;
}

.product-summary-bar.is-sticky .summary-price-value {
    font-size: 22px !important; /* Tăng cỡ chữ giá thuê để nổi bật nhất */
    color: var(--secondary-color) !important;
}


.specs-table {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.specs-group {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.specs-group:first-child {
    border-right: 1px solid #f0f0f0;
}

.spec-group-title {
    background: #f8f9fa;
    padding: 10px 20px;
    font-weight: bold;
    font-size: 14px;
    color: var(--primary-color);
    border-bottom: 1px solid #f0f0f0;
    text-transform: uppercase;
}

.spec-row {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 20px;
    min-height: 70px; /* Tăng chiều cao để chứa 2 hàng text thoải mái */
    border-bottom: 1px solid #f0f0f0;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-row:hover {
    background-color: var(--primary-light);
    transition: background-color 0.2s ease;
}

.spec-row.highlight-price {
    background-color: var(--secondary-light);
    border-left: 3px solid var(--secondary-color);
}

.spec-row.highlight-price .spec-value {
    font-size: 22px; /* Tăng cỡ chữ giá thuê to và nổi bật hơn */
    color: var(--secondary-color);
    font-weight: 800;
    line-height: 1; /* Khống chế line-height để font chữ to không làm đẩy chiều cao của dòng */
}

.spec-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #888; /* Màu nhạt hơn cho nhãn */
    font-weight: normal;
    font-size: 13px; /* Chữ nhỏ hơn cho nhãn */
    margin-bottom: 3px;
}

.spec-label i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.spec-value {
    text-align: left;
    color: var(--text-color);
    font-weight: bold;
    font-size: 15px; /* Chữ to rõ hơn cho giá trị */
}

.spec-row span {
    cursor: unset;
}

/* Detail Layout & Sidebar */
.detail-main-layout {
    display: flex;
    gap: 40px;
    align-items: stretch; /* Giúp aside luôn có chiều cao bằng với cột nội dung trái để sidebar có thể trượt sticky */
}

.detail-left-column {
    flex: 2;
}

.detail-sidebar {
    flex: 1;
    min-width: 320px;
}

.sticky-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #eee;
}

/* --- Global Rich Text Styles (Article, Expandable, About, Content Body) --- */
.article-body, .expandable-content, .about-content, .content-body {
    text-align: justify;
    line-height: 1.8;
}

.article-body h2, .expandable-content h2, .about-content h2, .content-body h2 { margin: 35px 0 15px; color: var(--primary-color); font-size: 24px; font-weight: bold; }
.article-body h3, .expandable-content h3, .about-content h3, .content-body h3 { margin: 30px 0 12px; color: var(--text-color); font-size: 20px; font-weight: bold; }
.article-body h4, .expandable-content h4, .about-content h4, .content-body h4 { margin: 25px 0 10px; color: var(--text-color); font-size: 18px; font-weight: bold; }
.article-body h5, .expandable-content h5, .about-content h5, .content-body h5 { margin: 20px 0 8px; color: var(--text-color); font-size: 16px; font-weight: bold; }
.article-body h6, .expandable-content h6, .about-content h6, .content-body h6 { margin: 15px 0 8px; color: var(--text-color); font-size: 14px; font-weight: bold; }

.article-body p, .expandable-content p, .about-content p, .content-body p { margin-bottom: 20px; }

.article-body ul, .expandable-content ul, .about-content ul, .content-body ul,
.article-body ol, .expandable-content ol, .about-content ol, .content-body ol {
    margin-bottom: 25px;
    padding-left: 35px;
}

.article-body ul li, .expandable-content ul li, .about-content ul li, .content-body ul li { list-style-type: disc; margin-bottom: 10px; }
.article-body ol li, .expandable-content ol li, .about-content ol li, .content-body ol li { list-style-type: decimal; margin-bottom: 10px; }

.article-body a, .expandable-content a, .about-content a, .content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: var(--transition);
}

.article-body a:hover, .expandable-content a:hover, .about-content a:hover, .content-body a:hover {
    color: var(--secondary-color);
}

.article-body blockquote, .expandable-content blockquote, .about-content blockquote, .content-body blockquote {
    margin: 30px 0;
    padding: 25px 30px;
    border-left: 5px solid var(--primary-color);
    background: var(--bg-light);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    border-radius: 0 8px 8px 0;
}

/* Global Table Styles */
.article-body table, .expandable-content table, .about-content table, .content-body table {
    width: 100%;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--white);
    font-size: 15px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.article-body table caption, .expandable-content table caption, .about-content table caption, .content-body table caption {
    padding: 12px;
    font-weight: bold;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    caption-side: bottom;
}

.article-body table th, .expandable-content table th, .about-content table th, .content-body table th,
.article-body table td, .expandable-content table td, .about-content table td, .content-body table td {
    border: 1px solid #eee;
    padding: 15px;
    text-align: left;
}

.article-body table th, .expandable-content table th, .about-content table th, .content-body table th {
    background: var(--primary-light);
    color: var(--primary-color);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

.article-body table tr:nth-child(even),
.expandable-content table tr:nth-child(even),
.about-content table tr:nth-child(even),
.content-body table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.article-body table tr:hover,
.expandable-content table tr:hover,
.about-content table tr:hover,
.content-body table tr:hover {
    background-color: var(--primary-light);
    transition: background-color 0.2s ease;
}

/* Figure & Images */
.article-body figure, .expandable-content figure, .about-content figure, .content-body figure {
    margin: 35px 0;
    text-align: center;
}

 .article-body img,
 .expandable-content img,
 .about-content img,
 .content-body img,
 .article-body figure img,
 .expandable-content figure img,
 .about-content figure img,
 .content-body figure img {
     border-radius: 15px;
 }

@media (max-width: 1024px) {
    .content-body img {
        width: 90% !important;
        height: auto !important;
        margin: auto !important;
    }
    .content-body iframe {
        width: 90% !important;
        height: 480px !important;
        margin: auto !important;
    }    
}

 .article-body figure img,
 .expandable-content figure img,
 .about-content figure img,
 .content-body figure img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body figcaption, .expandable-content figcaption, .about-content figcaption, .content-body figcaption {
    margin-top: 15px;
    font-size: 14px;
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

.article-body img {
    width: 90% !important;
    height: auto !important;
    margin: auto !important;
}

.article-body input[type="image"] {
    visibility: hidden !important;
    width: 0px !important;
    height: auto !important;
}

/* CTA Section with Blurred Background Image */
.cta-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    color: var(--white);
}

.cta-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: blur(5px) brightness(0.4); /* Tạo độ mờ và làm tối ảnh để nổi bật chữ */
    transform: scale(1.1); /* Tránh lộ viền trắng khi blur */
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(29, 95, 153, 0.8), rgba(49, 185, 156, 0.6));
    z-index: 2;
}

.cta-flex-layout {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
}

.cta-info-col {
    flex: 1;
    min-width: 350px;
}

.cta-title { font-size: 36px; line-height: 1.2; margin-bottom: 20px; font-weight: bold; }
.cta-desc { font-size: 18px; margin-bottom: 25px; opacity: 0.9; }
.cta-list { list-style: none; padding: 0; }
.cta-list li { margin-bottom: 12px; font-weight: bold; display: flex; align-items: center; gap: 10px; }
.cta-list li i { color: var(--secondary-color); }

.cta-form-col {
    flex: 0 0 420px;
    max-width: 420px;
    min-width: 320px;
}

.cta-form-card {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    color: var(--text-color);
}

.cta-form-card .cta-form-card-title {
    text-align: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    font-size: 22px;
    font-weight: bold;
}

.cta-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.cta-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

/* Author Section */
.author-section {
    margin-top: 50px;
    padding: 30px;
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 12px;
    display: flex;
    gap: 25px;
    align-items: center;
}

.author-avatar img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-social {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.author-social a {
    color: var(--text-color);
    font-size: 18px;
    transition: var(--transition);
}

.author-social a:hover {
    color: var(--primary-color);
}

.sidebar-widget {
    margin-bottom: 35px;
}

.widget-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.popular-post-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    text-decoration: none;
    color: inherit;
    align-items: center;
}

.popular-post-item img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.popular-post-info h4 {
    font-size: 14px;
    line-height: 1.4;
    font-weight: bold;
    transition: var(--transition);
}

.popular-post-item:hover h4 {
    color: var(--primary-color);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* Modal Screen */
.screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.35);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.screen.active {
    display: flex;
}

.modal-container {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    position: relative;
    max-width: 600px;
    width: 95%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.close-screen {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    color: var(--secondary-color);
    line-height: 1;
    transition: var(--transition);
}

.close-screen:hover {
    color: var(--primary-color);
}

/* Fancybox Z-index Fix: Đảm bảo ảnh phóng to luôn nằm trên Header và Menu */
.fancybox__container {
    z-index: 11000 !important;
}

/* Footer */
.footer {
    background: #222; /* Dark background */
    color: var(--white);
    padding-top: 40px; /* Only top padding, bottom will be handled by footer-bottom */
    /* margin-top: 50px; */ /* Removed as prefooter now handles spacing */
}

.flex-footer {
    display: flex; /* Already flex */
    flex-wrap: wrap; /* Allow columns to wrap */
    justify-content: space-between; /* Distribute space */
    align-items: flex-start;
    gap: 30px; /* Gap between columns */
    padding-bottom: 40px; /* Padding for the main footer content */
}

.footer-col {
    flex: 1; /* Default flex for columns */
    min-width: 200px; /* Minimum width before wrapping */
}

.footer-col.footer-about {
    flex-basis: 250px; /* Make the first column a bit wider */
    min-width: 250px;
}

.footer .footer-title {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--white);
    font-weight: bold;
}


.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
}

.footer a {
    color: #ccc; /* Màu xám sáng cho link */
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--primary-color); /* Chuyển màu xanh khi hover */
}

.footer p {
    color: #bbb; /* Màu xám nhẹ cho đoạn văn bản */
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px; /* Add margin for paragraphs */
}

.footer p i {
    margin-right: 8px;
    color: var(--primary-color); /* Icon màu xanh */
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.footer-bottom {
    background: var(--secondary-color);
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
}

.footer-bottom p {
    color: #fff; /* Lighter gray for copyright text */
    margin: 0;
    font-size: 13px;
}

.footer-logo {
    width: 100px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 15px;
}

/* --- RESPONSIVE --- */

/* Laptop 13-inch (1280px - 1366px) */
@media (max-width: 1366px) {
    .container {
        max-width: 1170px;
    }
    .flex-menu li a {
        padding: 10px 10px;
        font-size: 14px;
    }
}

/* Tablet (1024px) */
@media (max-width: 1024px) {
    .hide-mobile {
        display: none;
    }
    .footer-col {
        flex: 0 0 calc(50% - 15px); /* 2 columns on tablet, with gap */
        max-width: calc(50% - 15px);
    }
    .footer-col.footer-about {
        flex-basis: calc(50% - 15px); /* Adjust first column for 2-col layout */
        max-width: calc(50% - 15px);
    }

    .news-list-grid .news-card {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }

    .office-grid .card-item {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--white);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 1105; /* Đảm bảo cao hơn overlay (1095) và Header (1100) */
        box-shadow: -5px 0 20px rgba(0,0,0,0.15);
        transition: right 0.3s ease-in-out;
    }
    .menu-toggle {
        display: block; /* Hiện nút toggle ở màn hình <= 1024px */
    }
    
    .menu-close {
        display: flex; /* Hiện nút đóng với flexbox để căn giữa icon trên Mobile/Tablet */
    }

    .has-dropdown {
        position: relative;
    }

    .has-dropdown > a {
        padding-right: 60px !important; /* Chừa khoảng trống cho nút toggle */
    }

    .has-dropdown > a i {
        display: none; /* Ẩn icon mặc định trong link trên mobile */
    }

    .dropdown-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 52px; /* Khớp với chiều cao dòng của menu item */
        z-index: 5;
        color: var(--text-color);
        border-left: 1px solid #f1f1f1;
    }

    .dropdown-toggle i {
        font-weight: 900; /* Đảm bảo icon Solid luôn hiển thị */
    }

    .has-dropdown.open > .dropdown-toggle {
        color: var(--primary-color);
    }

    .has-dropdown.open > .dropdown-toggle i {
        transform: rotate(180deg);
    }

    /* Dropdown Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        background-color: #f9f9f9;
        width: 100%;
        padding-left: 15px;
        display: none !important; /* Ẩn mặc định trên mobile */
    }
    
    /* Đảm bảo Mega Menu trên Side Menu (Tablet/Mobile) không bị tràn lề */
    .dropdown-menu.mega-menu {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        min-width: unset !important;
        max-width: 100% !important;
        padding: 0 !important;
        background-color: #fcfcfc;
        position: static;
        transform: none !important; /* Gỡ bỏ căn giữa của desktop */
        left: 0 !important;
    }

    .dropdown-menu.mega-menu li {
        width: 100% !important;
        flex: 0 0 100% !important; /* Ép mỗi item chiếm trọn 1 hàng */
        padding: 0 !important; /* Reset padding */
    }

    .dropdown-menu.mega-menu .mega-menu-column {
        padding: 10px 20px; /* Padding cho cột trên mobile */
    }

    .has-dropdown.open > .dropdown-menu {
        display: flex !important; /* Chỉ hiển thị khi click vào mũi tên dropdown-toggle */
    }

    .main-nav.active {
        right: 0;
    }
    .nav-overlay.active {
        display: block;
        opacity: 1;
    }
    .flex-menu {
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 0 20px; /* Bỏ padding lề của container để menu tận dụng hết chiều ngang */
    }
    .flex-menu li {
        width: 100%;
        border-bottom: 1px solid #eee;
        display: unset;
    }
    .flex-menu li a {
        display: flex;
        padding: 15px 20px; /* Chỉnh lại padding link cho rộng rãi, dễ bấm */
    }
    .hero-slider {
        height: 500px;
    }
    .page-banner {
        height: 250px;
    }
    .district-item {
        flex: 1 1 calc(33.333% - 20px); /* 3 columns on tablet */
    }
    .slide-content h1 {
        font-size: 1.8rem;
    }
    .page-banner-content h1 {
        font-size: 1.8rem;
    }
    .prefooter-links a {
        flex: 0 0 50%; /* 2 cột trên Tablet */
        max-width: 50%;
    }

    .cta-section {
        padding: 60px 0;
    }

    .about-flex {
        gap: 30px;
    }

    .about-content, .about-image {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .about-image {
        order: -1; /* Đưa ảnh lên trước văn bản trên mobile/tablet */
        margin-bottom: 0px;
    }

    .about-image img {
        box-shadow: none;
    }

    .image-wrapper::before {
        display: none; /* Ẩn họa tiết trang trí góc ảnh trên mobile */
    }

    /* Gallery & Image Ratios for Mobile/Tablet */
    .detail-gallery {
        height: auto; /* Để container nở theo tỷ lệ ảnh */
    }

    .gallery-swiper .swiper-slide img {
        aspect-ratio: 4/3;
        height: auto;
        width: 100%;
    }

    /* Detail Layout Mobile */
    .detail-main-layout {
        flex-direction: column;
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }

    .sticky-sidebar {
        position: static;
        margin-top: 30px;
    }

    .summary-bar-flex {
        padding: 20px; /* Giảm nhẹ padding trên tablet/mobile để cân đối không gian */
    }

    /* Chuyển Summary Bar xuống dưới cùng trên Mobile */
    .product-summary-bar.is-sticky {
        top: auto !important; /* Gỡ bỏ top từ JS/Desktop */
        bottom: 0;
        border-top: 1px solid #eee;
        border-bottom: none;
        box-shadow: 0 -4px 15px rgba(0,0,0,0.15); /* Đổ bóng lên trên */
        border-radius: 15px 15px 0 0; /* Bo góc phía trên cho đẹp */
    }

    .cta-flex-layout {
        gap: 40px;
    }

    .cta-form-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .product-summary-bar.is-sticky .summary-bar-flex {
        padding: 18px 20px !important; /* Tăng chiều cao bằng padding-height và thoáng 2 bên */
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        display: flex !important;
        width: 100% !important;
        max-width: 100% !important; /* Loại bỏ giới hạn của .container chuẩn */
        margin: 0 !important;
    }

    .product-summary-bar.is-sticky .summary-title-area {
        min-width: 0 !important; 
        flex: 1 !important;
        margin-right: 20px !important; /* Tạo khoảng cách an toàn với phần giá */
        display: block !important;
    }

    .product-summary-bar.is-sticky .summary-address {
        display: none; /* Ẩn địa chỉ khi sticky trên mobile để thanh bar gọn gàng hơn */
    }

    .product-summary-bar.is-sticky .summary-price-area span:first-child {
        display: none !important; /* Ẩn chữ "Giá thuê chỉ từ" để lấy chỗ cho con số */
    }

    .product-summary-bar.is-sticky .summary-price-area {
        width: auto;
        flex-shrink: 0; /* Đảm bảo con số giá luôn hiển thị đầy đủ, không bị co lại */
        border-top: none;
        padding-top: 0;
        text-align: right;
    }

    .summary-price-area {
        text-align: left;
        width: 100%;
        padding-top: 15px;
        border-top: 1px solid #eee;
    }
    .summary-price-value { font-size: 30px; }

    /* Table Responsive for Tablet/Mobile */
    .article-body table, .expandable-content table, .about-content table, .content-body table {
        display: block;
        overflow-x: auto;
        min-width: 100%; /* Đảm bảo bảng vẫn chiếm 100% và cuộn nếu cần */
    }

    .article-body table th, .expandable-content table th, .about-content table th, .content-body table th {
        white-space: nowrap; /* Giữ tiêu đề trên một dòng khi cuộn */
    }

    .specs-group:first-child {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
    }

    .specs-group:last-child .spec-row:last-child {
        border-bottom: none;
    }
}

/* Mobile (767px) */
@media (max-width: 767px) {
    .footer-col, .footer-col.footer-about {
        flex: 0 0 100%; /* 1 column on mobile */
        max-width: 100%;
        margin-bottom: 20px; /* Add margin between stacked columns */
    }
}

/* Mobile (768px) */
@media (max-width: 767px) {
    .district-item {
        flex: 1 1 calc(50% - 20px); /* 2 columns on mobile */
    }
    .hero-slider {
        height: 350px;
    }
    .page-banner {
        height: 130px;
    }
    .prefooter-links a {
        flex: 0 0 100%; /* 1 cột trên Mobile */
        max-width: 100%;
    }

    .cta-section {
        padding: 40px 0;
    }

    .news-list-grid .news-card {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .office-grid .card-item {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .slide-content h1 {
        font-size: 1.5rem;
    }
    .page-banner-content h1 {
        font-size: 1.5rem;
    }
    .section-title h2 {
        font-size: 1.5rem;
    }
    .flex-footer {
        gap: 0; /* Remove gap when stacking */
    }
}

/* Filter Section (Chips style) */
.filter-section {
    background-color: var(--white);
    border-bottom: 1px solid #f1f1f1;
}

.filter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group {
    display: flex;
    align-items: center; /* Căn giữa label và chips theo chiều dọc */
    gap: 15px;
}

.filter-label {
    font-weight: bold;
    font-size: 13px;
    color: var(--text-color);
    white-space: nowrap;
    min-width: 85px;
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chips .chip {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 12.5px;
    transition: var(--transition);
}

.filter-chips .chip:hover,
.filter-chips .chip.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.filter-actions-inline { /* Container for action buttons (now only toggle) */
    display: flex;
    align-items: center;
    margin-left: auto; /* Pushes this group to the right */
    flex-shrink: 0; /* Prevents buttons from shrinking */
}

.btn-toggle-filters {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px; /* Tăng kích thước font để giống .view-more */
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    text-decoration: none; /* Bỏ gạch chân mặc định của thẻ a */
}

.collapsible-filter-groups {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.collapsible-filter-groups.is-expanded {
    max-height: 500px; /* Độ cao đủ lớn để chứa các nhóm bộ lọc */
    opacity: 1;
}

.btn-toggle-filters:hover { /* Hiệu ứng hover cho nút Mở rộng/Thu gọn */
    color: var(--secondary-color);
    text-decoration: underline;
}

@media (max-width: 1024px) {
    .filter-group {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 10px;
    }
    .filter-label {
        min-width: 80px;
        font-size: 12px;
    }
    .filter-chips {
        flex: 1;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 5px 0;
        -ms-overflow-style: none; /* IE and Edge */
        scrollbar-width: none; /* Firefox */
    }
    .filter-chips::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    .filter-chips .chip {
        white-space: nowrap;
    }
}

.cus_hide {
    display: none !important;
}

/* Grade A Featured Section */
.grade-a-flex {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.grade-a-left {
    flex: 0 0 calc(55% - 10px);
}

.grade-a-right {
    flex: 0 0 calc(45% - 10px);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.grade-a-item {
    position: relative;
    width: 100%;
    height: auto; /* Để aspect-ratio quyết định chiều cao cho hình nhỏ */
    border-radius: 15px;
    overflow: hidden;
    background-color: #eee;
}

.grade-a-left .grade-a-item {
    height: 100%; /* Chỉ hình lớn bên trái mới cần lấp đầy 100% chiều cao cột */
}

.grade-a-right .grade-a-item {
    flex: 0 0 calc(50% - 7.5px);
    height: calc(50% - 7.5px); /* Ép chiều cao mỗi hàng là 50% trừ gap */
    aspect-ratio: unset; /* Bỏ aspect-ratio để tuân thủ height 50% */
}

.grade-a-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.grade-a-item:hover img {
    transform: scale(1.05);
}

.grade-a-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    color: var(--white);
    z-index: 2;
}

.grade-a-overlay .btn-submit {
    width: fit-content; /* Đảm bảo nút không bị stretch hết chiều ngang */
}

.grade-a-right .grade-a-overlay {
    padding: 15px;
}

.grade-a-overlay h3 {
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.2;
}

.grade-a-right .grade-a-overlay h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.grade-a-overlay p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.grade-a-right .grade-a-overlay p {
    display: -webkit-box; /* Hiện lại text giới thiệu */
    -webkit-line-clamp: 1; /* Chỉ để 1 dòng cho gọn vì khung nhỏ */
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 12px;
}

@media (max-width: 1024px) {
    .grade-a-flex { flex-direction: column; }
    .grade-a-left, .grade-a-right { flex: 0 0 100%; }
    .grade-a-left .grade-a-item { aspect-ratio: 16/9; }
    .grade-a-right .grade-a-item { height: auto; aspect-ratio: 4/3; }
}

@media (max-width: 767px) {
    .grade-a-left .grade-a-item { aspect-ratio: 4/3; } /* Đồng bộ tỷ lệ với 4 hình nhỏ */
    .grade-a-right .grade-a-item { flex: 0 0 100%; aspect-ratio: 4/3; }
    .grade-a-overlay { padding: 20px; } /* Đồng bộ khoảng cách lề overlay */
    
    .grade-a-overlay h3, .grade-a-right .grade-a-overlay h3 { 
        font-size: 18px; 
        margin-bottom: 8px;
    }
    .grade-a-overlay p, .grade-a-right .grade-a-overlay p {
        font-size: 14px;
        -webkit-line-clamp: 2; /* Hiện 2 dòng text cho đồng đều */
    }
    .grade-a-overlay .btn-submit, .grade-a-right .grade-a-overlay .btn-submit {
        font-size: 13px;
        padding: 8px 20px;
    }
}


/* ==========================================================================
   Premium Serviced Office Specs Redesign
   ========================================================================== */
.serviced-specs-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
}

.serviced-price-card {
    flex: 1 1 350px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.serviced-price-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.price-card-header {
    background: var(--primary-color);
    padding: 24px;
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-tag {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    opacity: 0.9;
}

.price-amount {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.price-num {
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
}

.price-unit {
    font-size: 14px;
    opacity: 0.85;
}

.price-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-grow: 1;
    justify-content: space-between;
}

.info-flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.info-flex-item {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 10px;
}

.info-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.info-text-group {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: #777;
    text-transform: uppercase;
    font-weight: 600;
}

.info-val {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-color);
}

.price-card-footer {
    border-top: 1px solid #edf2f7;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.price-card-footer span i {
    color: #31b99c; /* Secondary color green/teal check */
    margin-right: 4px;
}

/* Right Column: Amenities Box */
.serviced-amenities-box {
    flex: 1.5 1 450px;
    background: var(--bg-light);
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.amenities-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0;
}

.amenities-flex-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amenity-badge-item {
    flex: 1 1 calc(50% - 6px);
    background: var(--white);
    border: 1px solid #edf2f7;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.amenity-badge-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-light);
}

.amenity-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e6f4ea; /* Xanh lá nhạt premium */
    color: #276749; /* Xanh lá đậm */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.amenity-badge-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
}

@media (max-width: 480px) {
    .info-flex-item {
        flex: 1 1 100%;
    }
    .amenity-badge-item {
        flex: 1 1 100%;
    }
}

/* House Detail Gallery & Info Section */
.gallery-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
}

.gallery-info-left,
.gallery-info-right {
    flex: 1 1 calc(50% - 15px);
    width: 100%;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    object-fit: cover;
    display: block;
}

.building-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.building-detail-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.building-detail-rating .stars {
    color: #ffc107;
}

.building-detail-rating .rating-text {
    font-size: 14px;
    color: var(--text-muted);
}

.building-detail-address {
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.building-detail-sapo {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.building-detail-price-area {
    margin-bottom: 25px;
    background: #f8fafc;
    padding: 15px 20px;
    border-radius: 10px;
    border-left: 4px solid var(--secondary-color);
}

.building-detail-price-area .price-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: bold;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.building-detail-price-area .price-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--secondary-color);
}

.btn-hotline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-hotline:hover {
    background: var(--secondary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .gallery-info-left,
    .gallery-info-right {
        flex: 1 1 100%;
    }
}

/* Premium House Specs Grid & Cards */
.house-specs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.house-specs-column {
    flex: 1 1 calc(50% - 10px);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.house-spec-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #ffffff;
    padding: 18px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid #eef2f6;
    transition: transform 0.2s, box-shadow 0.2s;
    min-height: 118px;
}

.house-spec-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-light);
}

.house-spec-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #f0f7ff;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.house-spec-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.house-spec-title {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.house-spec-val {
    font-size: 17px;
    color: var(--text-color);
    font-weight: 700;
}

@media (max-width: 600px) {
    .house-specs-column {
        flex: 1 1 100%;
    }
    .house-spec-card {
        padding: 15px;
    }
    .house-spec-val {
        font-size: 15px;
    }
}

