/* =======================================================
   1. CẤU TRÚC CHUNG & BIẾN (VARIABLES)
   ======================================================= */
:root {
    /* MÀU SẮC */
    --primary-red: #080A52;
    --primary-red-hover: #101485;
    --vip-color: #e03c31;
    --text-black: #2c2c2c;
    --text-gray: #5e5e5e;
    --text-light: #999;
    --bg-gray: #f4f6f9;
    --bg-dark: #000;
    --bg-dark-playlist: #1a1a1a;
    --white: #ffffff;
    --border-color: #e7e7e7;

    /* KÍCH THƯỚC & LAYOUT */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --container-width: 1140px;
    --header-height: 80px;

    /* Z-INDEX LAYERS */
    --z-base: 1;
    --z-nav: 1000;
    --z-dropdown: 1100;
    --z-chat-toggle: 2000;
    --z-chat-box: 2001;
    --z-modal: 99999;
}

/* Reset & Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', Arial, sans-serif;
    background-color: var(--bg-gray);
    color: var(--text-black);
    line-height: 1.5;
    margin: 0;
    display: flex; flex-direction: column; min-height: 100vh;
}

a { text-decoration: none; color: inherit; transition: color 0.2s ease, transform 0.2s ease; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }
button, input, textarea { font-family: inherit; }

/* Utilities Class */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 15px; position: relative; }
.section-title { font-size: 24px; font-weight: 700; margin: 40px 0 20px; text-align: center; color: var(--text-black); }
.hl { color: var(--primary-red); font-weight: bold; }

/* =======================================================
   2. HEADER & MENU (Sử dụng trong header.php)
   ======================================================= */
.top-nav {
    background: var(--white);
    border-bottom: 1px solid #f2f2f2;
    position: sticky; top: 0; z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-nav .container {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 80px; padding: 10px 15px;
}

/* Logo & Toggle */
.header-row-mobile { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.logo img { height: 60px; width: 100%px; object-fit: contain; }
.menu-toggle { display: none; font-size: 24px; color: var(--primary-red); cursor: pointer; border: 1px solid #ddd; padding: 5px 10px; border-radius: 4px; }

/* Nav Group */
.nav-group { display: flex; align-items: center; justify-content: space-between; flex-grow: 1; margin-left: 40px; }

/* Main Menu */
.main-menu { display: flex; gap: 25px; margin: 0; padding: 0; }
.main-menu > li { position: relative; padding: 10px 0; }
.main-menu > li > a { font-weight: 600; font-size: 15px; color: #333; display: flex; align-items: center; gap: 5px; }
.main-menu > li:hover > a { color: var(--primary-red); }
.arrow-icon { font-size: 10px; opacity: 0.6; }

/* Sub Menu */
.sub-menu {
    display: none; position: absolute; top: 100%; left: 0;
    background: #fff; min-width: 220px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-top: 2px solid var(--primary-red);
    border-radius: 0 0 4px 4px; z-index: 1100;
}
.main-menu > li:hover .sub-menu { display: block; animation: fadeIn 0.2s ease; }
.sub-menu li a { display: block; padding: 10px 15px; font-size: 14px; color: #555; border-bottom: 1px dashed #eee; }
.sub-menu li a:hover { background: #f9f9f9; color: var(--primary-red); padding-left: 20px; }

/* User Actions */
.user-actions { display: flex; align-items: center; gap: 15px; margin-left: auto; }
.btn-post-news {
    background: var(--primary-red); color: #fff;
    padding: 10px 20px; border-radius: 4px; font-weight: bold;
    display: flex; align-items: center; gap: 5px; transition: 0.3s;
}
.btn-post-news:hover { background: #4e2cc9; box-shadow: 0 4px 10px rgba(224,60,49,0.3); }
.badge-new { background: red; color: white; font-size: 9px; padding: 2px 4px; border-radius: 3px; vertical-align: top; margin-left:2px; }

/* =======================================================
   3. HERO SLIDER & SEARCH (Sử dụng trong index.php)
   ======================================================= */
.hero-section {
    position: relative; height: 600px; background: var(--bg-dark);
    overflow: hidden; margin-bottom: 30px;
}
.mySlides { display: none; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
.mySlides img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.overlay { position: absolute; inset: 0; background: rgba(0,0,0, 0.3); z-index: 1; }

.search-box-wrapper {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 900px; max-width: 95%; z-index: 10; text-align: center;
}
.search-title {
    font-size: 30px; font-weight: 700; margin-bottom: 25px; color: var(--white);
    text-transform: uppercase; text-shadow: 0 2px 10px rgba(0,0,0, 0.7);
}

/* Simple Search Form (Dùng cho Index) */
.simple-search-form { display: flex; gap: 10px; background: rgba(255,255,255,0.2); padding: 10px; border-radius: 8px; backdrop-filter: blur(5px); }
.simple-search-input { flex: 1; padding: 15px; border: none; border-radius: 4px; outline: none; }
.simple-search-btn { padding: 0 30px; border: none; background: #101485; color: #fff; font-weight: bold; border-radius: 4px; cursor: pointer; }

/* Advanced Search (Dùng cho Tabs nếu có) */
.search-tabs { display: flex; gap: 5px; margin-bottom: 0; justify-content: flex-start; }
.s-tab {
    background: rgba(0,0,0,0.6); color: #fff; padding: 12px 25px;
    border-radius: 8px 8px 0 0; cursor: pointer; font-weight: 600; font-size: 14px;
    transition: 0.3s; backdrop-filter: blur(5px);
}
.s-tab.active { background: #fff; color: var(--text-black); }

/* =======================================================
   4. BẤT ĐỘNG SẢN & CARDS (Listings & Index)
   ======================================================= */
.property-listings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-bottom: 30px; }

.property-card {
    background: var(--white); border: 1px solid #e0e0e0; border-radius: var(--radius-md);
    overflow: hidden; display: flex; flex-direction: column; position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease; height: 100%;
}
.property-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0, 0.1); }

.img-wrapper { height: 180px; position: relative; overflow: hidden; }
.property-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-image { transform: scale(1.1); }

.badge-vip { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--primary-red); color: var(--white); font-size: 10px; padding: 3px 6px; border-radius: 3px; font-weight: bold; text-transform: uppercase; }
.img-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0, 0.6); color: var(--white); padding: 2px 8px; border-radius: 4px; font-size: 12px; }

.property-info { padding: 15px; display: flex; flex-direction: column; flex-grow: 1; }
.property-title {
    font-size: 14px; font-weight: bold; margin-bottom: 8px; line-height: 1.4;
    height: 40px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.property-title a:hover { color: var(--primary-red); }
.property-details { font-size: 14px; display: flex; gap: 10px; margin-bottom: 10px; }
.property-price { color: var(--primary-red); font-weight: bold; font-size: 16px; }
.property-area { color: #333; font-size: 14px; }
.property-address { font-size: 13px; color: #666; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid #f5f5f5; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-light); }

/* VIP Styles */
.property-card.vip-2 { border: 1px solid #f39c12; }
.property-card.vip-3 { border: 2px solid var(--primary-red); background-color: #fff5f5; }

/* Pagination */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 30px; margin-bottom: 40px; }
.page-link {
    display: flex; justify-content: center; align-items: center;
    width: 40px; height: 40px; border: 1px solid #ddd; border-radius: 4px;
    color: #333; text-decoration: none; font-weight: bold; background: #fff; transition: 0.3s;
}
.page-link:hover, .page-link.active { background: #080A52; color: #fff; border-color: #efe813; }

/* =======================================================
   5. TIN TỨC (News & Index)
   ======================================================= */
.news-section { margin-bottom: 40px; background: var(--white); padding: 25px; border-radius: var(--radius-md); box-shadow: 0 1px 5px rgba(0,0,0, 0.05); }
.section-tabs { display: flex; gap: 30px; border-bottom: 1px solid #eee; margin-bottom: 25px; }
.tab-item { padding-bottom: 15px; cursor: pointer; font-weight: 700; color: #555; font-size: 16px; border-bottom: 3px solid transparent; }
.tab-item.active { color: var(--primary-red); border-bottom-color: var(--primary-red); }
.view-more { margin-left: auto; font-size: 13px; color: #777; font-weight: 500; align-self: center; }
.view-more:hover { color: var(--primary-red); }

/* Grid Layout: Ảnh 45% - List 30% - Quảng cáo 25% */
.news-grid { display: grid; grid-template-columns: 4.5fr 3fr 2.5fr; gap: 30px; }

/* Tin to */
.big-news img { width: 100%; height: 320px; object-fit: cover; border-radius: 8px; margin-bottom: 15px; }
.big-news h3 { font-size: 20px; font-weight: 700; line-height: 1.4; color: #2c2c2c; margin: 0; }
.big-news a:hover h3 { color: var(--primary-red); }

/* List Tin */
.news-list ul { padding-left: 20px; margin: 0; }
.news-list ul li { padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px dashed #eee; list-style-type: disc; color: #555; }
.news-list ul li:last-child { border-bottom: none; }
.news-list ul li a { font-size: 15px; color: #333; font-weight: 500; line-height: 1.4; display: block; transition: color 0.2s; }
.news-list ul li a:hover { color: var(--primary-red); }

/* Quảng cáo */
.ad-banner img { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }

/* =======================================================
   6. ĐỊA ĐIỂM & TIỆN ÍCH
   ======================================================= */
.location-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 180px 180px; gap: 15px; margin-bottom: 40px; }
.loc-item { position: relative; border-radius: var(--radius-md); overflow: hidden; display: block; }
.loc-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.loc-item:hover img { transform: scale(1.1); }
.loc-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0, 0.7)); }
.loc-info { position: absolute; bottom: 15px; left: 15px; color: white; z-index: 2; font-weight: bold; }
.loc-item:first-child { grid-column: 1 / 2; grid-row: 1 / 3; }

/* Utility Grid */
.utility-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin: 20px 0 40px; }
.utility-card-link {
    display: flex; align-items: center; gap: 15px; padding: 20px;
    background: #fff; border: 1px solid #f0f0f0; border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); transition: 0.3s;
}
.utility-icon { width: 50px; height: 50px; font-size: 20px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.utility-text { font-size: 16px; font-weight: 700; color: #333; line-height: 1.4; }
.utility-card-link:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); border-color: transparent; }

/* Utility Colors */
.u-cyan { background: linear-gradient(135deg, #0061ff 0%, #60efff 100%); }
.u-orange { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.u-purple { background: linear-gradient(135deg, #8E2DE2 0%, #4A00E0 100%); }
.u-yellow { background: linear-gradient(135deg, #f12711 0%, #f5af19 100%); }

/* =======================================================
   7. FOOTER & CHATBOT (Sử dụng trong footer.php)
   ======================================================= */
.site-footer { background: var(--text-black, #333); color: #ccc; padding: 50px 0 20px; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h4 { color: #fff; margin-bottom: 15px; font-size: 14px; border-bottom: 1px solid #444; padding-bottom: 10px; }
.footer-col ul li { margin-bottom: 8px; font-size: 13px; }
.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #333; margin-top: 30px; font-size: 12px; }

/* Chatbot */
.chat-toggler {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    background: #080A52; color: #fff; border-radius: 50%;
    font-size: 20px; cursor: pointer; z-index: 999;
    display: flex; justify-content: center; align-items: center; border: none;
    box-shadow: 0 4px 10px rgba(0,0,0, 0.3); transition: transform 0.2s;
}
.chat-toggler:hover { transform: scale(1.1); }

.chatbot-container {
    position: fixed; right: 20px; bottom: 80px; width: 300px;
    background: #fff; border-radius: 10px; box-shadow: 0 5px 25px rgba(0,0,0, 0.2);
    opacity: 0; pointer-events: none; transform: scale(0.9); transition: all 0.3s ease;
    z-index: 1000;
}
.show-chatbot .chatbot-container { opacity: 1; pointer-events: auto; transform: scale(1); }
.chatbot-header { background: #080A52; padding: 10px; text-align: center; color: #fff; font-weight: bold; border-radius: 10px 10px 0 0; }
.chat-box { height: 250px; overflow-y: auto; padding: 10px; background: #f9f9f9; list-style: none; }
.chat-box li { margin-bottom: 10px; font-size: 13px; max-width: 85%; padding: 8px 12px; }
.chat-box .outgoing { margin-left: auto; background: #080A52; color: #fff; border-radius: 10px 10px 0 10px; }
.chat-box .incoming { background: #e9e9e9; color: #333; border-radius: 10px 10px 10px 0; }
.chat-input { display: flex; padding: 10px; border-top: 1px solid #ddd; }
.chat-input textarea { flex: 1; height: 30px; resize: none; border: none; outline: none; background: transparent; }

/* =======================================================
   8. MODALS (Video & Map)
   ======================================================= */
.video-modal, .modal-overlay {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    align-items: center; justify-content: center;
}
.video-modal { background-color: rgba(0,0,0, 0.85); opacity: 0; transition: opacity 0.3s ease; }
.video-modal[style*="display: flex"] { opacity: 1; }
.modal-content.playlist-mode { width: 95%; max-width: 960px; background: #000; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0, 0.6); animation: zoomIn 0.3s ease-out; }
.video-header { padding: 12px 20px; background: #fff; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center; }
.close-btn { font-size: 28px; font-weight: bold; color: #666; cursor: pointer; line-height: 1; }

.modal-overlay { background-color: rgba(0,0,0, 0.6); backdrop-filter: blur(2px); }
.modal-overlay.active { display: flex; animation: fadeIn 0.2s ease-out; }

/* =======================================================
   9. RESPONSIVE MEDIA QUERIES
   ======================================================= */
@media (max-width: 991px) {
    /* Header Mobile */
    .top-nav .container { flex-direction: column; align-items: stretch; padding: 10px 15px; }
    .header-row-mobile { width: 100%; justify-content: space-between; }
    .menu-toggle { display: block; }
    .nav-group { display: none; flex-direction: column; margin-left: 0; margin-top: 15px; border-top: 1px solid #eee; width: 100%; animation: slideDown 0.3s ease; }
    .nav-group.active { display: flex; }
    .main-menu { flex-direction: column; width: 100%; gap: 0; }
    .main-menu > li { width: 100%; border-bottom: 1px solid #f5f5f5; padding: 0; }
    .main-menu > li > a { padding: 15px 0; justify-content: space-between; }
    .sub-menu { position: static; box-shadow: none; border-top: none; background: #fafafa; padding-left: 15px; display: none; }
    .main-menu > li:hover .sub-menu { display: block; }
    .user-actions { flex-direction: column; align-items: flex-start; width: 100%; margin-top: 20px; gap: 15px; }
    .btn-post-news { width: 100%; justify-content: center; }

    /* Utility */
    .utility-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; }
}

@media (max-width: 768px) {
    /* Banner & Search */
    .hero-section { height: auto; min-height: 400px; padding: 40px 0; }
    .search-box-wrapper { width: 95%; position: relative; top: auto; left: auto; transform: none; margin: 0 auto; }
    .search-title { font-size: 20px; }
    .simple-search-form { flex-direction: column; background: #fff; }

    /* News */
    .news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .big-news { grid-column: 1 / -1; margin-bottom: 5px; }
    .big-news img { height: 180px; width: 100%; }
    .news-list { padding-right: 5px; border-right: 1px dashed #eee; }
    .ad-banner { display: flex; align-items: flex-start; }

    /* Property - Mobile 2 Cột (Quan trọng) */
    .property-listings { display: grid; grid-template-columns: repeat(2, 1fr) !important; gap: 10px; padding: 0 5px; }
    .property-card { margin-bottom: 0; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
    .img-wrapper { height: 110px; }
    .property-info { padding: 8px; }
    .property-title { font-size: 13px; height: 36px; margin-bottom: 4px; line-height: 1.3; }
    .property-price { font-size: 14px; display: block; margin-right: 0; }
    .property-area { font-size: 11px; color: #888; }
    .property-address, .card-footer { display: none; } /* Ẩn chi tiết thừa trên mobile */

    /* Location */
    .location-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .location-grid .loc-item:first-child { grid-column: 1 / -1; height: 180px; }
    .loc-item { height: 120px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 20px; }
}

@keyframes fadeIn { from{opacity:0; transform:translateY(5px);} to{opacity:1; transform:translateY(0);} }
@keyframes slideDown { from{opacity:0; transform:translateY(-10px);} to{opacity:1; transform:translateY(0);} }
@keyframes zoomIn { from {transform: scale(0.9); opacity: 0;} to {transform: scale(1); opacity: 1;} }

/* =======================================================
   MOBILE FIX TOÀN DIỆN (INDEX + FOOTER + LISTING)
   ======================================================= */
@media (max-width: 768px) {

    /* --- 1. SEARCH BOX & BANNER --- */
    .hero-section { height: auto; min-height: 400px; padding: 40px 0; }
    .search-box-wrapper { width: 95%; top: auto; left: auto; transform: none; margin: 0 auto; position: relative; }
    .search-title { font-size: 20px; margin-bottom: 15px; }
    .simple-search-form { flex-direction: column; background: #fff; gap: 10px; padding: 10px; }
    .simple-search-btn { width: 100%; padding: 12px; }

    /* --- 2. DANH SÁCH BĐS (Trang Chủ): 2 CỘT GỌN GÀNG --- */
    .property-listings {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* Bắt buộc 2 cột */
        gap: 10px; 
        padding: 0 5px;
    }

    .property-card {
        margin-bottom: 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: flex; flex-direction: column;
        height: 100%; /* Đảm bảo các thẻ cao bằng nhau */
    }

    .img-wrapper {
        height: 110px !important; /* Cố định chiều cao ảnh nhỏ */
    }

    .property-info {
        padding: 8px; /* Thu nhỏ khoảng cách lề */
        flex-grow: 1;
    }

    .property-title {
        font-size: 13px;
        line-height: 1.3;
        height: 34px; /* Giới hạn đúng 2 dòng tiêu đề */
        margin-bottom: 4px;
        font-weight: 700;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .property-price {
        font-size: 14px; color: #d0021b; font-weight: bold;
        display: block; margin-bottom: 2px;
    }
    .property-area { font-size: 11px; color: #888; }

    /* QUAN TRỌNG: Ẩn các phần thừa để thẻ gọn như App */
    .property-address, 
    .card-footer {
        display: none !important; 
    }
    .badge-vip { font-size: 8px; padding: 2px 4px; top: 5px; left: 5px; }
    .img-count { bottom: 5px; right: 5px; font-size: 10px; padding: 2px 6px; }


    /* --- 3. TIN TỨC: BỐ CỤC THÔNG MINH --- */
    .news-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Chia 2 cột dưới */
        gap: 10px;
        margin-top: 15px;
    }

    /* Tin to nhất nằm trên cùng */
    .big-news {
        grid-column: 1 / -1; /* Tràn hết chiều ngang */
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }
    .big-news img {
        height: 180px; width: 100%; object-fit: cover; border-radius: 6px;
    }
    .big-news h3 {
        font-size: 16px; margin-top: 8px; line-height: 1.3;
    }

    /* List tin nằm trái */
    .news-list {
        grid-column: 1 / 2;
        padding-right: 5px; border-right: 1px dashed #eee;
    }
    .news-list ul li {
        padding: 5px 0; font-size: 12px;
        border-bottom: 1px solid #f9f9f9;
    }
    .news-list ul li a {
        display: -webkit-box; -webkit-line-clamp: 2;
        -webkit-box-orient: vertical; overflow: hidden;
    }

    /* Quảng cáo nằm phải */
    .ad-banner {
        grid-column: 2 / 3;
        display: flex; align-items: flex-start;
    }
    .ad-banner img {
        width: 100%; height: auto; border-radius: 6px;
    }
    
    /* Tab tin tức */
    .section-tabs {
        display: flex; gap: 15px; overflow-x: auto; white-space: nowrap;
        border-bottom: 1px solid #eee; padding-bottom: 5px; margin-bottom: 10px;
    }
    .tab-item { font-size: 14px; padding-bottom: 5px; }


    /* --- 4. FOOTER: 2 CỘT (Gọn gàng) --- */
    .footer-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Chia 2 cột đều */
        gap: 20px;
    }
    .footer-col { border-bottom: none; padding-bottom: 0; }
    .footer-col h4 { margin-top: 0; margin-bottom: 10px; font-size: 14px; }
    
    /* Copyright xuống dòng cuối */
    .copyright {
        grid-column: 1 / -1;
        margin-top: 20px; padding-top: 15px; border-top: 1px solid #444;
    }
    
    /* --- 5. CÁC PHẦN KHÁC --- */
    .container { padding: 0 10px; }
    .location-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .location-grid .loc-item:first-child { grid-column: 1 / -1; height: 160px; }
    .loc-item { height: 100px; }
    .utility-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}

/* =======================================================
   OVERRIDE: GIỮ MÀU ĐỎ CHO VIP & GIÁ TIỀN
   ======================================================= */

/* 1. Nhãn VIP trên góc ảnh */
.badge-vip {
    background: var(--vip-color) !important; /* Luôn là màu Đỏ */
}

/* 2. VIP Kim Cương (VIP 3): Viền đỏ & Nền hồng nhạt */
.property-card.vip-3 {
    border: 1px solid var(--vip-color) !important;
    background-color: #fff5f5 !important; /* Nền phớt hồng nhẹ */
}

/* 3. Tiêu đề của tin VIP Kim Cương: Màu đỏ & Viết hoa */
.property-card.vip-3 .property-title a {
    color: var(--vip-color) !important;
    text-transform: uppercase;
}

/* 4. Giá tiền (Giữ màu đỏ cho nổi bật thay vì theo màu chủ đạo xanh) */
.property-price {
    color: var(--vip-color) !important;
}

/* 5. Icon trái tim (Yêu thích) khi active hoặc hover */
.card-footer i:hover, 
.card-footer i.active {
    color: var(--vip-color) !important;
}

/* 6. Nút Đăng tin (Trên header): Thường nút này màu Đỏ hoặc Cam sẽ kích thích hơn Xanh */
.btn-post-news {
    background: #080A52 !important;
}
.btn-post-news:hover {
    background: #c10a53ff!important;
}

/* =======================================================
   MENU CON: CHỈ ĐỔI MÀU CHỮ KHI HOVER (NỀN VẪN TRẮNG)
   ======================================================= */

/* 1. Trạng thái bình thường */
.sub-menu li a {
    color: #333333 !important; /* Chữ đen */
    background-color: #ffffff !important; /* Nền trắng */
    border-bottom: 1px dashed #eee !important;
}

/* 2. Trạng thái khi di chuột (Hover) */
.sub-menu li a:hover {
    background-color: #ffffff !important; /* Nền VẪN LÀ TRẮNG */
    color: #c10a53 !important;            /* Chỉ đổi MÀU CHỮ sang Hồng tím */
    padding-left: 20px;                   /* Hiệu ứng đẩy chữ sang phải nhẹ cho đẹp */
}