/* --- 1. BIẾN & THIẾT LẬP CHUNG --- */
:root {
    --primary-color: #002f5f; /* Màu xanh đậm logo */
    --accent-color: #2563eb; /* Màu xanh tương tác */
    --secondary-color: #f8fafc; /* Màu nền nhạt */
    --text-main: #1e293b; /* Màu chữ chính */
    --text-muted: #64748b; /* Màu chữ phụ */
    --border-color: #e2e8f0; /* Màu viền */
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
:root {
    /* Màu sắc chủ đạo từ Logo */
    --primary-color: #1a4d4e; /* Màu xanh Teal đậm - biểu tượng ngôi nhà */
    --accent-color: #d9a336; /* Màu vàng hổ phách - biểu tượng cuốn sổ/bút */
    /* Màu tương tác và trạng thái */
    --primary-hover: #143b3c; /* Xanh đậm hơn khi hover */
    --accent-hover: #c48f2a; /* Vàng đậm hơn khi hover */
    /* Màu nền và giao diện */
    --secondary-color: #f4f7f6; /* Nền xám xanh nhạt, tạo cảm giác sạch sẽ */
    --white: #ffffff;
    /* Màu chữ (Typography) */
    --text-main: #2c3e50; /* Màu chữ chính (Xanh đen) */
    --text-muted: #6b7280; /* Màu chữ phụ cho mô tả, chú thích */
    --text-on-primary: #ffffff; /* Chữ trên nền xanh */
    /* Các thành phần bổ trợ */
    --border-color: #d1d5db; /* Màu viền nhẹ */
    --shadow: 0 4px 6px -1px rgba(26, 77, 78, 0.1); /* Shadow ám sắc xanh của logo */
    --radius: 8px; /* Bo góc hiện đại */
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Inter", sans-serif;
    color: var(--text-main);
    background-color: var(--secondary-color);
    line-height: 1.6;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}
.container-fluid {
    padding: 0 30px;
}
a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}
ul {
    list-style: none;
}
img {
    max-width: 100%;
}
/* --- 2. HEADER --- */
.main-header {
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    height: 72px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo a {
    font-weight: 800;
    font-size: 24px;
    color: var(--primary-color);
}
.logo span {
    color: var(--accent-color);
}
.navbar ul {
    display: flex;
    gap: 25px;
}
.navbar ul li a {
    font-weight: 600;
    font-size: 15px;
}
.navbar ul li.active a, .navbar ul li a:hover {
    color: var(--accent-color);
}
.header-btns {
    display: flex;
    align-items: center;
    gap: 20px;
}
.login-link {
    font-weight: 600;
    font-size: 15px;
}
.login-link:hover {
    color: var(--accent-color);
}
.btn-post-news {
    background: var(--accent-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    align-items: center;
    gap: 5px;
}
.btn-post-news:hover {
    background-color: var(--primary-color);
}
.logo {
    display: flex;
    align-items: center; /* Căn giữa text và ảnh theo chiều dọc */
    gap: 8px; /* Khoảng cách giữa logo và chữ */
}
.logo img {
    object-fit: contain; /* Đảm bảo ảnh không bị biến dạng */
    display: block;
}
.logo a {
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color); /* Sử dụng màu xanh Teal từ logo */
    line-height: 1; /* Loại bỏ khoảng trống thừa của dòng */
    display: flex;
    align-items: center;
}
.logo a span {
    color: var(--accent-color); /* Màu vàng hổ phách cho chữ ĐỊA ỐC */
    margin-left: 5px; /* Khoảng cách nhỏ giữa "SỔ TAY" và "ĐỊA ỐC" */
}
.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}
.logo {
    display: flex;
    order: 1;
}
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
    order: 3;
}
.navbar {
    display: flex;
    order: 3;
}
/* --- MOBILE TOGGLE (HAMBURGER) --- */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    order: 3;
}
.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #333; /* Bạn có thể đổi màu này theo màu chữ hệ thống */
    border-radius: 2px;
}
/* --- RESPONSIVE CHO MOBILE (Dưới 1024px) --- */
@media (max-width: 1023px) {
    /* Ẩn Menu ngang Desktop */
    .navbar, .login-link {
        display: none;
    }
    /* Hiện nút Hamburger */
    .mobile-toggle {
        display: flex;
    }
    .btn-post-news {
        order: 2;
    }
    /* Tối ưu cho màn hình rất nhỏ (dưới 375px) để không bị tràn */
    @media (max-width: 375px) {
        .btn-post-news span {
            display: none; /* Ẩn chữ 'Đăng tin', chỉ giữ Icon để tiết kiệm không gian */
        }
        .header-right {
            gap: 10px;
        }
    }
}
/* --- RESPONSIVE CHO DESKTOP (Trên 1024px) --- */
@media (min-width: 1024px) {
    .navbar {
        display: block;
    }
    .mobile-toggle {
        display: none;
    }
    /* Trên PC, hiển thị đầy đủ các nút */
    .login-link, .btn-post-news {
        display: inline-flex;
    }
}
/* --- CSS CHO MOBILE SIDEBAR (Giữ nguyên logic của bạn) --- */
.mobile-navbar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}
.mobile-navbar.active {
    right: 0;
}
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9998;
}
.menu-overlay.active {
    display: block;
}
/* Container chính cho các link mobile */
.mobile-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    width: 100%;
}
/* Từng dòng menu */
.mobile-links li {
    position: relative;
    border-bottom: 1px solid #f0f0f0; /* Đường kẻ mờ giữa các mục */
    transition: all 0.3s ease;
}
/* Link bên trong */
.mobile-links li a {
    display: block;
    padding: 15px 20px;
    color: #444;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}
/* Hiệu ứng khi lướt qua (Hover) hoặc đang Active */
.mobile-links li:hover a,
.mobile-links li.active a {
    color: var(--accent-color);
    background: #fffafa; /* Nền hồng cực nhạt tạo chiều sâu */
    padding-left: 25px; /* Đẩy nhẹ sang phải tạo cảm giác tương tác */
}
/* Thanh trang trí dọc cho mục Active */
.mobile-links li.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent-color);
}
/* Xử lý mục cuối cùng không có đường kẻ */
.mobile-links li:last-child {
    border-bottom: none;
}
/* Hiệu ứng mượt cho icon (nếu bạn có dùng icon sau này) */
.mobile-links li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}
/* --- 3. HERO SEARCH --- */
.hero-compact {
    background: linear-gradient(rgba(0, 47, 95, 0.8), rgba(0, 47, 95, 0.8)),
    url("../images/hero-bg.webp");
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}
.hero-content h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 30px;
}
.search-bar-modern {
    background: var(--white);
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    border-radius: 12px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 120px;
    gap: 10px;
    box-shadow: var(--shadow);
}
.search-input {
    position: relative;
    display: flex;
    align-items: center;
    padding-left: 15px;
}
.search-input i {
    color: var(--text-muted);
    position: absolute;
}
.search-input input {
    width: 100%;
    padding: 12px 12px 12px 30px;
    border: none;
    outline: none;
    font-size: 14px;
}
.search-select select {
    width: 100%;
    padding: 12px;
    border: none;
    border-left: 1px solid var(--border-color);
    outline: none;
    background: transparent;
    cursor: pointer;
}
.btn-search-main {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}
/* --- 4. MAIN LAYOUT & SIDEBAR --- */
.main-content-wrapper {
    padding: 40px 0;
}
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}
.section-box {
    margin-bottom: 40px;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-left: 4px solid var(--accent-color);
    padding-left: 15px;
}
.section-header h2 {
    font-size: 20px;
    font-weight: 800;
}
.view-all {
    font-size: 14px;
    color: var(--accent-color);
    font-weight: 600;
}
/* Property Grid Card */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(194px, 1fr));
    gap: 20px;
}
.property-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    border: solid 1px var(--accent-color);
}
.card-thumb {
    position: relative;
    text-align: center;
    padding-top: 5px;
}
.card-thumb img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}
.badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    display: none;
}
.badge.sale {
    background: #ef4444;
}
.badge.rent {
    background: #10b981;
}
.badge.project {
    background: #f59e0b;
}
.card-info {
    padding: 15px;
}
.card-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.card-loc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    color: var(--accent-color);
    font-size: 14px;
}
/* Rich List Item */
.property-list-rich {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.rich-item {
    background: var(--white);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    border: 1px solid var(--border-color);
    padding-left: 5px;
}
.rich-item:hover {
    border: solid 1px var(--accent-color);
}
.rich-img {
    width: 100px;
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}
.rich-img img {
    object-fit: cover;
    border-radius: 8px;
}
.rich-content {
    padding: 10px;
    flex-grow: 1;
}
.rich-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--primary-color);
}
.rich-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 10px;
}
.rich-meta .loc {
    color: var(--text-muted);
    font-weight: 400;
}
.rich-foot {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 20px;
}
/* Sidebar Widget */
.widget {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.widget h3 {
    font-size: 16px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}
.widget-list li {
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}
.widget-list li span {
    float: right;
    color: var(--text-muted);
}
.banner-ad {
    background: var(--primary-color);
    color: #fff;
    text-align: center;
}
.btn-sidebar {
    background: var(--white);
    color: var(--primary-color);
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    margin-top: 15px;
    cursor: pointer;
}
/* --- 5. FOOTER --- */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    font-size: 14px;
}
.site-footer {
    padding: 20px 0;
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    font-family: Arial, sans-serif;
    color: var(--white);
}
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 12px;
}
.footer-nav a {
    text-decoration: none;
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}
.footer-nav a:hover {
    opacity: 1;
    color: #fbbf24;
    text-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}
.footer-nav .divider {
    color: var(--text-muted);
    user-select: none;
}
.footer-info {
    font-size: 13px;
    line-height: 1.6;
}
.footer-info p {
    margin: 4px 0;
    color: var(--secondary-color);
}
.footer-info .hotline {
    color: var(--white);
    font-weight: bold;
}
.footer-info .slogan {
    font-style: italic;
    font-size: 12px;
    opacity: 0.7;
}
@media (max-width: 600px) {
    .footer-nav .divider {
        display: none;
    }
    .footer-nav {
        gap: 8px 15px;
    }
}
/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    .search-bar-modern {
        grid-template-columns: 1fr;
    }
    .rich-item {
        flex-direction: column;
    }
    .rich-img {
        width: 100%;
        height: auto;
        justify-content: center;
        padding-top: 5px;
    }
}
/* --- BREADCRUMB --- */
.breadcrumb {
    margin-bottom: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a:hover {
    color: var(--accent-color);
}
/* --- PROPERTY DETAIL LAYOUT --- */
.property-detail-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    margin-bottom: 50px;
}
/* Gallery System */
.property-gallery {
    margin-bottom: 20px;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 15px;
}
.gallery-grid.gallery-grid-2 {
    /*grid-template-columns: repeat(2, 1fr);*/
}
.gallery-grid.gallery-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}
.gallery-grid a {
    display: block;
    aspect-ratio: 3/4;
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: transform 0.2s ease-in-out;
}
.gallery-grid a.btn-play-video {
    background-color: #000;
    color: #fff;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    justify-content: center;
}
.gallery-grid a.btn-play-video .fa-solid.fa-circle-play {
    color: #fff;
    font-size: 30px;
}
.gallery-grid a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.gallery-thumb {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}
@media (max-width: 767px) {
    .gallery-grid.gallery-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-grid .video-container {
        grid-column: span 3;
        width: 100%;
        margin-bottom: 5px;
    }
}
/* Header Info */
.detail-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
.detail-header .badge-status {
    display: inline-block;
    margin-bottom: 10px;
}
.detail-header h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
}
.detail-pricing {
    display: flex;
    gap: 30px;
    align-items: center;
    margin-top: 15px;
}
.price-tag {
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-color);
}
.area-tag {
    font-size: 18px;
    font-weight: 600;
}
.price-m2 {
    color: var(--text-muted);
    font-size: 14px;
}
/* Specs Table */
.property-specs {
    margin: 25px 0;
}
.specs-title {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 700;
}
.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 40px;
}
.spec-line {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}
.spec-line .label {
    color: var(--text-muted);
}
.spec-line .value {
    font-weight: 600;
}
/* Description Content */
.description-text {
    font-size: 15px;
    color: #444;
    line-height: 1.8;
    word-break: break-word;
}
.description-text p {
    margin-bottom: 15px;
}
/* Contact Sticky Card */
.sticky-sidebar {
    position: sticky;
    top: 90px;
}
.contact-card {
    background: var(--white);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
}
.agent-avatar {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-color);
    border: 1px solid var(--border-color);
}
.agent-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}
.agent-role {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.btn-call {
    background: #00b14f;
    color: var(--white);
    display: block;
    padding: 14px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 12px;
}
.btn-chat {
    background: var(--white);
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    display: block;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 12px;
}
.btn-chat.zalo-chat{
    background: #0068FF;
    color: #ffffff;
    border: 1px solid #0068FF;
}

.post-meta-info {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 12px;
    color: var(--text-muted);
    text-align: left;
}
.post-meta-info div {
    margin-bottom: 5px;
}
/* Map & Related */
.map-placeholder {
    background: #f1f5f9;
    height: 350px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}
@media (max-width: 992px) {
    .property-detail-container {
        grid-template-columns: 1fr;
    }
    .property-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-subs {
        display: none;
    }
    .specs-grid {
        grid-template-columns: 1fr;
    }
}
/* --- RELATED PROPERTIES SECTION --- */
.related-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}
.related-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.related-title i {
    color: var(--accent-color);
}
/* Tái sử dụng grid từ trang chủ nhưng giới hạn hiển thị */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}
/* Cấu trúc List cho "Cùng khu vực" */
.list-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
/* Kế thừa rich-item nhưng tinh chỉnh để dùng chung thông số */
.property-item-row {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    transition: 0.3s;
    align-items: center;
    padding-left: 5px;
    word-break: break-word;
}
.property-item-row:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}
.item-row-img {
    flex-shrink: 0;
    position: relative;
}
.item-row-img img {
    width: 90px;
    height: 120px;
    object-fit: cover;
    border-radius: 5px;
}
.item-row-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.item-row-content h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.item-row-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}
.item-row-meta .price {
    color: var(--accent-color);
    font-weight: 800;
    font-size: 16px;
}
.item-row-meta .area, .item-row-meta .loc {
    font-size: 14px;
    color: var(--text-muted);
}
.item-row-desc {
    font-size: 14px;
    color: var(--text-gray);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
@media (max-width: 768px) {
    .property-item-row {
        flex-direction: column;
    }
    .item-row-img {
        width: 100%;
    }
}
/* --- BLOG LISTING STYLE --- */
.blog-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}
/* Featured Blog Post */
.blog-featured {
    margin-bottom: 40px;
}
.featured-card {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.featured-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.featured-content .category-tag {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.featured-content h2 {
    font-size: 26px;
    margin-bottom: 15px;
    color: var(--primary-color);
    line-height: 1.3;
}
.featured-meta {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--secondary-color);
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 13px;
}
/* Common Blog Items */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.blog-item {
    background: var(--white);
    border-radius: 12px;
    display: flex;
    gap: 20px;
    padding: 15px;
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.blog-item:hover {
    border-color: var(--accent-color);
    transform: translateX(8px);
}
.blog-item-img {
    width: 240px;
    height: 160px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.blog-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.blog-item-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}
.blog-item-body h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}
.blog-item-meta {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}
.blog-item-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* Sidebar Search Widget */
.search-widget-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
}
.search-widget-group input {
    flex-grow: 1;
    padding: 12px;
    border: none;
    outline: none;
    font-size: 14px;
}
.btn-widget-search {
    padding: 0 15px;
    background: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
}
/* Pagination */
.pagination-container {
    margin-top: 40px;
    display: flex;
    gap: 10px;
    justify-content: center;
}
.page-link {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
    background: var(--white);
}
.page-link.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}
/* Responsive */
@media (max-width: 992px) {
    .blog-layout {
        grid-template-columns: 1fr;
    }
    .featured-card {
        grid-template-columns: 1fr;
    }
    .blog-item {
        flex-direction: column;
    }
    .blog-item-img {
        width: 100%;
        height: 200px;
    }
}
/* --- PAGE: BLOG DETAIL --- */
.blog-detail-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}
/* Article Header */
.article-header {
    margin-bottom: 30px;
}
.article-header .category-badge {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}
.article-header h1 {
    font-size: 32px;
    color: var(--primary-color);
    line-height: 1.3;
    margin-bottom: 20px;
    font-weight: 800;
}
.article-meta-top {
    display: flex;
    gap: 25px;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}
/* Article Body Content */
.article-content {
    font-size: 17px;
    line-height: 1.8;
    color: #334155;
}
.article-content p {
    margin-bottom: 20px;
}
.article-content h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin: 35px 0 15px;
    font-weight: 700;
}
.article-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 25px 0 12px;
    font-weight: 700;
}
.article-content img {
    border-radius: 12px;
    margin: 20px 0;
    width: 100%;
    height: auto;
}
.article-content blockquote {
    margin: 30px 0;
    padding: 25px;
    background: var(--secondary-color);
    border-left: 5px solid var(--accent-color);
    font-style: italic;
    font-size: 18px;
    color: var(--primary-color);
}
/* Article Tags & Share */
.article-footer {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.tag-item {
    padding: 6px 15px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.tag-item:hover {
    background: var(--accent-color);
    color: var(--white);
}
/* Related Posts (Dưới bài viết) */
.blog-related-box {
    margin-top: 60px;
}
.blog-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.related-post-card {
    display: flex;
    gap: 15px;
    align-items: center;
}
.related-post-card img {
    width: 100px;
    height: 70px;
    border-radius: 8px;
    object-fit: cover;
}
.related-post-card h4 {
    font-size: 15px;
    line-height: 1.4;
    color: var(--primary-color);
}
@media (max-width: 992px) {
    .blog-detail-layout {
        grid-template-columns: 1fr;
    }
    .article-header h1 {
        font-size: 26px;
    }
    .blog-related-grid {
        grid-template-columns: 1fr;
    }
}
/* --- PAGE: AUTHENTICATION (REGISTER/LOGIN) --- */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
    min-height: calc(100vh - 144px); /* Trừ đi height của header/footer */
}
.auth-container {
    background: var(--white);
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.auth-header {
    text-align: center;
    margin-bottom: 30px;
}
.auth-header h2 {
    font-size: 24px;
    color: var(--primary-color);
    font-weight: 800;
}
.auth-header p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}
/* Form Group Layout */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}
.form-group label span {
    color: #ef4444; /* Dấu * bắt buộc */
}
.input-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: 0.3s;
    background: var(--secondary-color);
}
.input-control:focus {
    border-color: var(--accent-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Checkbox Group */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    cursor: pointer;
}
.form-check input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
/* Auth Buttons */
.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}
.btn-auth-submit:hover {
    background: var(--primary-color);
}
.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}
.auth-divider span {
    background: var(--white);
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-size: 13px;
}
/* Social Auth */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}
.btn-social:hover {
    background: var(--secondary-color);
}
.auth-footer-text {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}
.auth-footer-text a {
    color: var(--accent-color);
    font-weight: 700;
}
/* Error/Success Message (Dùng cho sau này) */
.form-feedback {
    font-size: 12px;
    margin-top: 5px;
    display: none; /* Hiện khi cần bằng JS/Backend */
}
.form-feedback.error {
    color: #ef4444;
    display: block;
}
/* --- PAGE: MEMBER DASHBOARD --- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 1fr; /* 1 cột duy nhất trên mobile */
    gap: 20px;
}
/* Sidebar Navigation */
.db-sidebar {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    height: fit-content;
}
.db-user-brief {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary-color);
    margin-bottom: 20px;
}
.db-avatar {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}
.db-nav-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.db-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-main);
    transition: 0.3s;
}
.db-nav-item:hover, .db-nav-item.active {
    background: var(--secondary-color);
    color: var(--accent-color);
}
.db-nav-item i {
    width: 20px;
    font-size: 18px;
}
/* Data Table (Danh sách BĐS) */
.db-main-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 25px;
}
.db-main-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
    color: var(--primary-color);
}
.table-responsive {
    overflow-x: auto;
}
.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.db-table th {
    text-align: left;
    background: var(--secondary-color);
    padding: 12px 15px;
    color: var(--text-muted);
    font-weight: 700;
    border-bottom: 1px solid var(--border-color);
}
.db-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}
.db-prop-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}
.status-label {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}
.property-status-1 {
    background: #dcfce7;
    color: #166534;
}
.property-status-2 {
    background: #fef9c3;
    color: #854d0e;
}
.property-status-3 {
    background: #fee2e2;
    color: #991b1b;
}
.property-status-4 {
    background: #f1f5f9;
    color: #475569;
}
.action-btns {
    display: flex;
    gap: 10px;
}
.btn-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--white);
    cursor: pointer;
    transition: 0.2s;
}
.btn-icon:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
/* Responsive */
@media (max-width: 992px) {
    .dashboard-layout {
        grid-template-columns: 3fr 1fr;
    }
}
/* --- PAGE: SEARCH RESULTS --- */
.search-results-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}
/* Layout Đảo ngược: Content (Trái) - Sidebar (Phải) */
.search-results-layout.layout-sidebar-right {
    grid-template-columns: 1fr 320px; /* Nội dung chính rộng ra, Sidebar thu gọn lại */
}
/* Tinh chỉnh lại ô input trong Sidebar cho nhỏ gọn */
.filter-sidebar .input-control {
    padding: 10px 12px;
    font-size: 14px;
}
.filter-sidebar .btn-auth-submit {
    padding: 10px;
    font-size: 15px;
}
/* Responsive cho mobile: Luôn đẩy Sidebar xuống dưới nội dung */
@media (max-width: 992px) {
    .search-results-layout,
    .search-results-layout.layout-sidebar-right {
        grid-template-columns: 1fr;
    }
    /* Trên mobile, nội dung chính nên hiện trước */
    .results-main {
        order: 1;
    }
    .filter-sidebar {
        order: 2;
    }
}
/* Filter Sidebar */
.filter-sidebar {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 90px;
}
.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--secondary-color);
}
.filter-group:last-child {
    border-bottom: none;
}
.filter-group-title {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-options-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.filter-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
}
.filter-check-item input {
    width: 16px;
    height: 16px;
}
/* Results Header & Sorting */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.results-count span {
    font-weight: 800;
    color: var(--accent-color);
}
.sort-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}
.sort-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    outline: none;
}
/* View Mode Toggle (Nếu bạn muốn thêm chọn Grid/List) */
.view-mode-btns {
    display: flex;
    gap: 5px;
}
.btn-view-mode {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 4px;
    cursor: pointer;
}
.btn-view-mode.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}
/* Responsive */
@media (max-width: 992px) {
    .search-results-layout {
        grid-template-columns: 1fr;
    }
    .filter-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}
/* --- PAGE: CATEGORY LISTING --- */
.category-intro {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}
.category-intro h1 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 800;
}
.category-description {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}
/* Tinh chỉnh Item trong danh sách để hiển thị chuyên nghiệp hơn */
.listing-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.property-item-row .item-tags {
    display: flex;
    gap: 8px;
    margin-top: auto;
}
.tag-spec {
    font-size: 12px;
    background: var(--secondary-color);
    color: var(--text-main);
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
}
/* Badge cho từng loại hình */
.badge-category {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    z-index: 2;
    display: none;
}
.bg-apartment {
    background: #8b5cf6;
}
/* Màu tím cho chung cư */
.bg-house {
    background: #06b6d4;
}
/* Màu xanh dương cho nhà đất */
.bg-project {
    background: #f59e0b;
}
/* Màu cam cho dự án */
/* --- Bổ sung cho AUTHENTICATION --- */
.auth-utils {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}
.forgot-password {
    color: var(--accent-color);
    font-weight: 600;
}
.forgot-password:hover {
    text-decoration: underline;
}
.auth-info-box {
    margin-top: 20px;
    padding: 15px;
    background: #eff6ff;
    border-radius: 8px;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 13px;
    line-height: 1.5;
}
/* --- Bổ sung cho Form trong Dashboard --- */
.db-main-area .auth-form {
    max-width: 500px; /* Thu hẹp form lại để dễ nhìn trong vùng nội dung rộng */
    margin: 0;
}
.password-note {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 4px;
    font-size: 14px;
    color: #856404;
}
.password-note ul {
    margin-top: 8px;
    margin-left: 20px;
}
.password-note li {
    margin-bottom: 4px;
}
/* Các trạng thái thông báo sau khi Submit */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}
.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
/* --- Bổ sung cho AUTHENTICATION: FORGOT PASSWORD --- */
.auth-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 25px;
    font-size: 14px;
    color: var(--text-muted);
    transition: 0.3s;
}
.auth-back-link:hover {
    color: var(--accent-color);
}
.instruction-text {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 25px;
}
/* --- PAGE: MEMBER PROFILE --- */
.profile-upload-section {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}
.profile-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}
.upload-btn-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.btn-upload-avatar {
    padding: 8px 16px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
.btn-upload-avatar:hover {
    background: var(--border-color);
}
.upload-note {
    font-size: 12px;
    color: var(--text-muted);
}
/* Lưới cho form thông tin */
.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}
/* --- PAGE: PROJECT LISTING --- */
.project-card-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.project-item {
    display: flex;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: 0.3s;
}
.project-item:hover {
    box-shadow: var(--shadow);
    border-color: var(--accent-color);
}
.project-img {
    width: 300px;
    height: 200px;
    flex-shrink: 0;
    position: relative;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    text-transform: uppercase;
}
.project-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.project-content h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 12px;
}
.project-info-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-main);
}
.project-info-row span i {
    color: var(--accent-color);
    margin-right: 5px;
}
/* Sidebar Specific */
.sidebar-search-box {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}
.sidebar-search-box .form-group {
    margin-bottom: 15px;
}
.project-location-list {
    list-style: none;
    margin-top: 15px;
}
.project-location-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    font-size: 14px;
}
.project-location-list li a {
    display: flex;
    justify-content: space-between;
    color: var(--text-main);
}
.project-location-list li a span {
    color: var(--text-muted);
}
.project-location-list li a:hover {
    color: var(--accent-color);
}
@media (max-width: 768px) {
    .project-item {
        flex-direction: column;
    }
    .project-img {
        width: 100%;
        height: 200px;
    }
}
/* --- PAGE: PROJECT DETAIL --- */
.project-detail-header {
    margin-bottom: 30px;
}
.project-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 10px;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.gallery-main img, .gallery-sub img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-sub {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 10px;
}
/* Tabs Navigation cho Dự án */
.project-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid var(--secondary-color);
    margin-bottom: 25px;
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 10;
}
.tab-item {
    padding: 15px 0;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}
.tab-item.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}
/* Thông tin tổng quan dạng lưới */
.project-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}
.overview-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.overview-item .label {
    font-size: 13px;
    color: var(--text-muted);
}
.overview-item .value {
    font-weight: 700;
    color: var(--primary-color);
}
@media (max-width: 768px) {
    .project-gallery {
        grid-template-columns: 1fr;
        height: auto;
    }
    .gallery-sub {
        display: none;
    }
    .project-tabs {
        gap: 15px;
        font-size: 14px;
        overflow-x: auto;
    }
}
/* --- PAGE: STATIC PAGES (Giới thiệu, Chính sách, Bảo mật...) --- */
.static-page-wrapper {
    max-width: 900px; /* Thu hẹp lại để đọc văn bản không bị mỏi mắt */
    margin: 0 auto 60px;
}
.static-header {
    text-align: center;
    padding: 60px 0 40px;
}
.static-header h1 {
    font-size: 36px;
    color: var(--primary-color);
    font-weight: 800;
    margin-bottom: 15px;
}
.static-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    line-height: 1.8;
    color: var(--text-main);
}
.static-content h2 {
    font-size: 22px;
    color: var(--primary-color);
    margin: 30px 0 15px;
    font-weight: 700;
}
.static-content p {
    margin-bottom: 20px;
}
.static-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}
.static-content li {
    margin-bottom: 10px;
}
/* Trang Liên hệ (Cấu trúc 2 cột đặc thù) */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}
.contact-info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.contact-info-item i {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .static-content {
        padding: 25px;
    }
}
/* Mặc định nút mobile sẽ ẩn */
.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-color);
}
.navbar ul li.mobile-only {
    display: none;
}
/* --- RESPONSIVE BREAKPOINT (992px) --- */
@media (max-width: 992px) {
    .header-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: relative;
        padding: 10px 15px;
    }
    /* Đổi Logo sang vị trí số 1 */
    .logo {
        order: 1;
    }
    /* HIỆN LẠI CỤM NÚT VÀ ĐƯA VÀO GIỮA */
    .header-btns {
        display: flex !important; /* Ghi đè lệnh display: none cũ */
        order: 2; /* Vị trí nằm giữa logo và hamburger */
        margin-left: auto; /* Đẩy cụm này về phía bên phải */
        margin-right: 15px; /* Khoảng cách với nút Hamburger */
        gap: 0;
    }
    /* ẨN DUY NHẤT NÚT ĐĂNG NHẬP */
    .login-link {
        display: none !important;
    }
    /* Tối ưu nút Đăng tin cho mobile */
    .btn-post-news {
        padding: 8px 12px;
        font-size: 13px;
        white-space: nowrap;
        border-radius: 6px;
    }
    /* NÚT HAMBURGER (Vị trí ngoài cùng bên phải) */
    .mobile-menu-toggle {
        display: block;
        order: 3;
        font-size: 22px;
        cursor: pointer;
    }
    /* --- PHẦN MENU XỔ XUỐNG --- */
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        display: none;
        z-index: 1000;
    }
    .navbar.active {
        display: block;
    }
    .navbar ul {
        flex-direction: column;
        padding: 10px 0;
    }
    .navbar ul li {
        width: 100%;
        margin: 0;
        border-bottom: 1px solid var(--secondary-color);
    }
    .navbar ul li a {
        padding: 15px 20px;
        display: block;
    }
    .navbar ul li.mobile-only {
        display: block;
    }
}
/* Màn hình cực nhỏ: Ẩn chữ "Đăng tin" chỉ để lại Icon */
@media (max-width: 400px) {
    .btn-post-news span {
        display: none;
    }
    .btn-post-news i {
        margin: 0;
        font-size: 16px;
    }
}
/* --- PAGE: POST PROPERTY --- */
.error-messages-box {
    background: #fef2f2;
    border: 1px solid #fee2e2;
    border-left: 5px solid #ef4444;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}
.error-messages-box h4 {
    color: #991b1b;
    margin-bottom: 10px;
    font-size: 16px;
}
.error-messages-box ul {
    list-style: disc;
    padding-left: 20px;
    color: #b91c1c;
    font-size: 14px;
}
.post-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
}
.post-step-title i {
    color: var(--accent-color);
}
.image-upload-wrapper {
    border: 2px dashed var(--border-color);
    padding: 40px;
    text-align: center;
    border-radius: 12px;
    background: #f9fafb;
    cursor: pointer;
    transition: 0.3s;
}
.image-upload-wrapper:hover {
    border-color: var(--accent-color);
    background: #f0f7ff;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }
}
/* --- HERO COMPACT: ADVANCED SEARCH --- */
.hero-compact {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url("../images/hero-bg.webp");
    background-size: cover;
    background-position: center;
    padding: 20px 0;
    text-align: center;
    color: var(--white);
}
.search-box-advanced {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    max-width: 1100px;
    margin: 30px auto 0;
}
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr 1fr; /* Tối ưu lại tỷ lệ */
    gap: 15px;
    margin-bottom: 15px;
}
.search-row-bottom {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 150px;
    gap: 15px;
    align-items: flex-end;
}
.search-box-advanced .input-control {
    border: 1px solid #ddd;
    height: 45px;
    font-size: 14px;
    color: var(--text-main);
}
.search-box-advanced label {
    display: block;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}
.btn-search-submit {
    height: 45px;
    width: 100%;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}
.btn-search-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}
/* Responsive cho mobile */
@media (max-width: 992px) {
    .search-grid, .search-row-bottom {
        grid-template-columns: 1fr 1fr;
    }
    .search-row-bottom {
        grid-template-columns: 1fr;
    }
    .btn-search-submit {
        margin-top: 10px;
    }
}
/* Container chính */
.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 30px 0;
    justify-content: center;
    gap: 8px; /* Khoảng cách giữa các ô số */
}
/* Định dạng các thẻ li */
.pagination li {
    display: inline-block;
}
/* Định dạng thẻ a bên trong li */
.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    text-decoration: none;
    color: #555;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px; /* Bo góc hiện đại */
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}
/* Hiệu ứng khi Hover */
.pagination li a:hover {
    border-color: #007bff;
    color: #007bff;
    background-color: #f0f7ff;
}
/* Trạng thái trang hiện tại (Active) */
/* Nhắm mục tiêu vào thẻ li có class active, rồi đổi màu thẻ a bên trong */
.pagination li.active a {
    background-color: var(--primary-color) !important; /* Màu xanh Teal đậm từ logo */
    border-color: var(--primary-color) !important;
    color: var(--white) !important;
    cursor: default;
}
/* Đảm bảo link trong active không bị đổi màu khi hover */
.pagination li.active a:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--border-color);
}
/* CSS cho các nút chữ (Đầu, Cuối, Trước, Sau) nếu có */
.pagination li a[aria-label] {
    font-size: 13px;
    background-color: #f8f9fa;
}
.sort-select-group {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    width: fit-content;
}
.sort-select-group label {
    font-weight: 600;
    font-size: 14px;
    color: #555;
    margin-bottom: 0; /* Đảm bảo không bị lệch dòng */
}
.sort-select {
    border: 1px solid #ced4da;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
}
.sort-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.1);
}
/* --- SIDEBAR SEARCH LAYOUT (1 dòng 2 input) --- */
.filter-sidebar .main-search-form {
    display: block;
    background: #fff;
}
.filter-sidebar .search-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr; /* Chia đôi cột */
    gap: 12px; /* Khoảng cách giữa các ô */
    margin-bottom: 15px;
}
/* Các ô cần chiếm trọn 1 dòng (Từ khóa, Nút bấm) */
.filter-sidebar .form-item.full-width,
.filter-sidebar .search-row-bottom {
    grid-column: span 2;
    display: block;
}
.filter-sidebar .form-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px;
}
.filter-sidebar .form-item label {
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
}
/* Định dạng Input/Select trong Sidebar */
.filter-sidebar .input-control {
    width: 100% !important;
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    background-color: #f9f9f9;
}
/* Nút bấm lọc trong Sidebar */
.filter-sidebar .btn-search-submit {
    width: 100%;
    height: 42px;
    background-color: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}
.filter-sidebar .btn-search-submit:hover {
    background-color: var(--primary-color);
}
/* Container chính của thông báo */
.alert-success-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    margin-bottom: 25px;
    background-color: #ecfdf5; /* Màu nền xanh nhẹ */
    border: 1px solid #10b981; /* Viền xanh Emerald */
    border-radius: 8px;
    color: #065f46; /* Màu chữ xanh đậm */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.4s ease-out; /* Hiệu ứng xuất hiện */
}
/* Phần nội dung bên trái (Icon + Text) */
.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    font-size: 15px;
}
.alert-content i {
    font-size: 18px;
    color: #10b981;
}
/* Nút đóng (X) */
.close-alert {
    background: transparent;
    border: none;
    font-size: 22px;
    line-height: 1;
    color: #059669;
    cursor: pointer;
    padding: 0;
    margin-left: 15px;
    transition: transform 0.2s, color 0.2s;
    display: flex;
    align-items: center;
}
.close-alert:hover {
    color: #047857;
    transform: scale(1.1);
}
/* Hiệu ứng trượt từ trên xuống khi hiển thị */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Tùy chỉnh cho mobile */
@media (max-width: 480px) {
    .alert-success-box {
        padding: 12px 15px;
        font-size: 14px;
    }
}
.video-container {
    border-radius: 8px;
    background: #000;
    display: flex;
}
.video-container iframe {
    width: 100%;
    height: auto;
}
.ratio-16-9 {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
}
.ratio-9-16 {
    aspect-ratio: 9 / 16;
    max-width: 400px;
    margin: 0 auto;
    height: 100%;
    width: auto;
}
/* Riêng cho TikTok thường là video dọc */
.video-container:has(iframe[src*="tiktok"]) {
    padding-bottom: 177%; /* Tỷ lệ dọc cho TikTok */
    max-width: 350px;
    margin: 0 auto;
}
img[loading="lazy"] {
    transition: opacity 0.3s;
}
.project-detail-header .title {
    font-size: 32px;
    color: var(--primary-color);
    margin: 10px 0;
}
.text-danger {
    color: #e53e3e;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}
.input-control.is-invalid {
    border-color: #e53e3e;
    background-color: #fffafb;
}
.auth-divider {
    text-align: center;
    position: relative;
    margin: 25px 0;
}
.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 1;
}
.auth-divider span {
    background: #fff;
    padding: 0 15px;
    color: #888;
    font-size: 13px;
    position: relative;
    z-index: 2;
}
.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-social:hover {
    background: #f9f9f9;
}
input[readonly],
textarea[readonly] {
    background-color: #f8f9fa;
    color: #6c757d;
    border-color: #dee2e6;
    cursor: not-allowed;
    opacity: 0.8;
    user-select: none;
}
input[readonly]:focus,
textarea[readonly]:focus {
    outline: none;
    border-color: #dee2e6;
    box-shadow: none;
}
.alert.alert-danger {
    padding: 15px;
    background: #f8d7da;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 20px;
}
.alert.alert-success {
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 20px;
}
/* --- Cấu hình chung cho Desktop --- */
.db-list-container {
    width: 100%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}
.db-list-header {
    display: flex;
    background: #f1f5f9;
    padding: 15px 20px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}
.db-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}
.db-item:hover {
    background: #f8fafc;
}
/* Chia tỷ lệ các cột trên Desktop */
.col-main {
    flex: 1;
}
.col-date {
    width: 150px;
    text-align: center;
    color: #64748b;
}
.col-status {
    width: 150px;
    text-align: center;
}
.col-actions {
    width: 150px;
    text-align: right;
}
/* Chi tiết nội dung */
.prop-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}
.db-prop-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}
.prop-title {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px 0;
    word-break: break-word;
}
.prop-location {
    font-size: 12px;
    color: #94a3b8;
    margin: 0;
}
.mobile-label {
    display: none;
}
/* Ẩn nhãn mobile trên desktop */
/* Nút thao tác */
.action-btns {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}
.btn-icon {
    border: none;
    background: none;
    cursor: pointer;
    color: #64748b;
    font-size: 16px;
    transition: 0.2s;
}
/* --- RESPONSIVE CHO MOBILE (Dưới 768px) --- */
@media (max-width: 768px) {
    .db-list-header {
        display: none;
    }
    /* Ẩn tiêu đề bảng */
    .db-item {
        flex-direction: column; /* Xếp chồng nội dung */
        align-items: flex-start;
        padding: 12px;
        margin-bottom: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
    }
    /* Reset toàn bộ cột về auto height, xóa khoảng cách 150px thừa */
    .col-main, .col-date, .col-status, .col-actions {
        width: 100% !important;
        flex: none !important;
        text-align: left !important;
        margin: 0 !important;
        padding: 4px 0 !important;
        min-height: auto !important;
    }
    /* Phần Ảnh và Tiêu đề cho khít nhau */
    .prop-flex {
        align-items: flex-start;
        gap: 12px;
    }
    .db-prop-thumb {
        width: 70px;
        height: 50px;
    }
    .prop-title {
        font-size: 14px;
        line-height: 1.4;
    }
    /* Ngày đăng và Trạng thái: Nằm trên 2 dòng sát nhau */
    .mobile-label {
        display: inline-block;
        width: 80px; /* Cố định độ rộng nhãn để các giá trị thẳng hàng */
        font-weight: 600;
        font-size: 12px;
        color: #94a3b8;
    }
    .col-date, .col-status {
        font-size: 13px;
        border-bottom: none !important;
    }
    /* Thao tác: Chỉ hiện icon, dàn hàng ngang dưới cùng */
    .col-actions {
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px dashed #e2e8f0 !important;
    }
    .action-btns {
        justify-content: space-around; /* Chia đều các nút bấm */
        width: 100%;
    }
    .btn-icon {
        padding: 8px;
        font-size: 18px; /* To hơn để dễ chạm tay */
    }
}
/* Layout mặc định cho Mobile */
.dashboard-layout {
    display: flex;
    flex-direction: column; /* Xếp chồng lên nhau theo chiều dọc */
}
.db-main-area {
    order: 1; /* Hiện đầu tiên */
}
.db-sidebar {
    order: 2;
    margin-top: 20px;
}
.grid-property-spec {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.grid-property-spec.extend-info {
    grid-template-columns: 1fr;
    gap: 10px;
}
.grid-property-price {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 992px) {
    .grid-property-spec {
        grid-template-columns: repeat(3, auto);
        gap: 15px;
    }
    /* Trên desktop, thông tin mở rộng sẽ dàn hàng ngang 3 cột */
    .grid-property-spec.extend-info {
        grid-template-columns: repeat(3, auto);
        gap: 15px;
    }
    /* Giá cả trên desktop nằm dàn hàng ngang 2 cột */
    .grid-property-price {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
}
@media (min-width: 992px) {
    .dashboard-layout {
        flex-direction: row;
        gap: 30px;
    }
    .db-main-area {
        flex: 1; /* Chiếm phần lớn diện tích */
        order: 1; /* Main bên trái */
    }
    .db-sidebar {
        width: 300px; /* Độ rộng cố định cho sidebar */
        order: 2; /* Sidebar bên phải */
        margin-top: 0;
    }
}
.form-section {
    background: #fcfcfc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}
.section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}
.upload-label:hover {
    border-color: var(--accent-color);
    background: #f0f7ff;
}
.btn-submit-post {
    width: 100%;
    padding: 15px;
    background: #166534;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}
.btn-submit-post:hover {
    background: #14532d;
}
@media (max-width: 768px) {
    .form-section {
        padding: 15px;
    }
    .grid-layout {
        grid-template-columns: 1fr !important;
    }
}
.image-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.image-preview-grid img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}
.temp-thumb-upload {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin: 5px;
}
.grid-3col {
    display: grid;
    grid-template-columns: repeat(1, auto);
    gap: 15px;
}
.grid-2col {
    display: grid;
    grid-template-columns: repeat(1, auto);
    gap: 15px;
}
@media (min-width: 767px) {
    .grid-2col {
        grid-template-columns: repeat(2, auto);
    }
}
@media (min-width: 991px) {
    .grid-3col {
        grid-template-columns: repeat(3, auto);
    }
}
#post-property-form .grid-layout {
    margin-bottom: 0;
}
.description-trim {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}
/* Container chính */
.image-upload-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Chia 3 cột đều nhau */
    gap: 15px;
    margin-top: 15px;
}
/* Từng ô upload */
.upload-box {
    aspect-ratio: 3 / 4;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #f8fafc;
    overflow: hidden;
    position: relative;
}
.upload-box:first-child {
    border-color: #4a5568; /* Viền đậm hơn một chút */
    background-color: #ffffff;
}
/* Hiệu ứng khi di chuột qua hoặc chọn ảnh */
.upload-box:hover {
    border-color: #3182ce;
    background-color: #ebf8ff;
}
/* Khu vực hiển thị icon và chữ bên trong */
.preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #718096;
    width: 100%;
    height: 100%;
    padding: 10px;
}
.preview-area i {
    font-size: 24px;
}
.preview-area span {
    font-size: 13px;
    font-weight: 500;
}
/* Style cho ảnh sau khi đã chọn (Preview) */
.preview-area img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Đảm bảo ảnh lấp đầy khung vuông mà không bị méo */
    border-radius: 10px;
}
/* Tối ưu cho màn hình điện thoại (Dưới 600px) */
@media (max-width: 600px) {
    .image-upload-container {
        grid-template-columns: repeat(2, 1fr); /* Chuyển thành 2 cột để không bị quá nhỏ */
    }
    /* Nếu muốn trên điện thoại xếp dọc hết thì dùng: grid-template-columns: 1fr; */
}
.btn-chat-fb {
    display: block;
    align-items: center;
    background-color: #0084FF; /* Màu Messenger */
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}
.btn-chat-fb i {
    margin-right: 8px;
    font-size: 1.2em;
}
.btn-chat-fb:hover {
    background-color: #0066cc;
    color: white;
}
.card-legal.small {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 5px;
}
/* Container chính cho nội dung trang tĩnh */
.cms-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    line-height: 1.8;
    color: var(--text-main);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
/* Tiêu đề chính H1 */
.cms-content h1 {
    color: var(--primary-color);
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}
/* Đường gạch chân trang trí dưới H1 */
.cms-content h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 2px;
}
/* Các tiêu đề mục H2 */
.cms-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
/* Thêm biểu tượng trang trí nhẹ trước mỗi H2 */
.cms-content h2::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 24px;
    background-color: var(--accent-color);
    margin-right: 12px;
    border-radius: 2px;
}
/* Đoạn văn bản */
.cms-content p {
    margin-bottom: 20px;
    text-align: justify;
}
/* Danh sách (UL/LI) */
.cms-content ul {
    margin-bottom: 25px;
    padding-left: 20px;
    list-style: none; /* Bỏ chấm tròn mặc định để tùy chỉnh */
}
.cms-content ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
}
/* Tùy chỉnh dấu chấm đầu dòng */
.cms-content ul li::before {
    content: "\2713"; /* Dấu tích xanh hoặc dùng \2022 cho dấu chấm */
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}
/* Nhấn mạnh văn bản */
.cms-content strong {
    color: var(--primary-color);
    font-weight: 600;
}
/* Phần cam kết/kết nối cuối trang */
.cms-content p:last-of-type {
    background-color: var(--secondary-color);
    padding: 20px;
    border-left: 4px solid var(--primary-color);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .cms-content {
        margin: 20px auto;
    }
    .cms-content h1 {
        font-size: 1.8rem;
    }
    .cms-content h2 {
        font-size: 1.3rem;
    }
    .cms-content p {
        text-align: left;
    }
}
/* Container bên ngoài */
.db-nav-pwa-wrapper {
    margin-bottom: 5px;
}
/* Nút Sổ tay phiên bản nhỏ gọn */
.pwa-compact-link {
    display: flex !important;
    flex-direction: row !important; /* Dàn hàng ngang */
    align-items: center;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 10px 12px !important; /* Giảm padding để nút mỏng hơn */
    border-radius: 8px !important;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* Icon nằm bên trái */
.pwa-compact-link i {
    font-size: 1.2rem;
    margin-right: 12px; /* Khoảng cách với chữ */
    color: #fbbf24;
    flex-shrink: 0;
}
/* Nhóm chữ bên phải icon */
.pwa-text-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}
/* Dòng tiêu đề chính */
.pwa-main-title {
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
}
/* Dòng mô tả khảo sát thực địa */
.pwa-sub-title {
    font-size: 0.7rem;
    opacity: 0.85;
    font-weight: normal;
    margin-top: 1px;
    white-space: nowrap; /* Tránh xuống dòng làm vỡ khung */
}
/* Hiệu ứng tương tác */
.pwa-compact-link:hover {
    background-color: var(--accent-color) !important;
    box-shadow: var(--shadow);
}

