* { 
            box-sizing: border-box; 
            margin: 0; 
            padding: 0; 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
        }

        #app-header {
            min-height: 70px;
            width: 100%;
            display: block;
        }
        
        body > div #modalDangTin {
            display: none;
        }

        body { 
            color: #333; 
            background-color: #f9f9f9;
        }

        .anhdautrang { 
            width: 100%; 
            height: 400px; 
            object-fit: cover; 
        }

        /* Bọc ảnh và thanh tìm kiếm */
        .hero-section {
            position: relative;
            width: 100%;
            margin: 0 auto;
        }

        .search-overlay {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 80%;
            max-width: 800px;
        }

        .search-bar {
            display: flex;
            align-items: center;
            background: white;
            border-radius: 8px;
            padding: 8px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        }

        .search-icon {
            padding: 0 15px;
            color: #555;
            font-size: 20px;
        }

        .search-bar input {
            flex: 1;
            border: none;
            outline: none;
            font-size: 16px;
            padding: 12px 0;
            color: #333;
        }

        .search-bar button {
            background-color: #e74c3c;
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 6px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: background 0.3s;
        }

        .search-bar button:hover {
            background-color: #c0392b;
        }

        h1 { 
            text-align: center; 
            margin-bottom: 50px; 
            margin-top: 50px;
            color: #1a4b77; 
        }

        /* Khung danh sách BĐS */
        #bds-list { 
            display: grid; 
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
            gap: 25px; 
            max-width: 1200px; 
            margin: 0 auto; 
            padding: 0 20px; 
            min-height: 800px;
        }

        .bds-card { 
            background-color: white; 
            border-radius: 10px; 
            overflow: hidden; 
            box-shadow: 0 4px 12px rgba(0,0,0,0.08); 
            display: flex; 
            flex-direction: column; 
            transition: transform 0.2s ease;
        }

        .bds-card:hover {
            transform: translateY(-5px);
        }

        .bds-image-container {
            position: relative;
            width: 100%;
            height: 200px;
        }

        .bds-image { 
            width: 100%; 
            height: 100%; 
            object-fit: cover; 
        }

        .bds-content { 
            padding: 15px; 
            margin-top: auto; 
        }

        .bds-title { 
            font-size: 17px; 
            font-weight: bold; 
            margin-bottom: 10px; 
            color: #222; 
            line-height: 1.4;
        }

        .bds-price { 
            color: #e74c3c; 
            font-size: 19px; 
            font-weight: bold; 
            margin-bottom: 5px; 
        }

        /* Nút trái tim lưu tin */
        .btn-luu-tin {
            position: absolute;
            top: 10px;
            right: 10px;
            width: 35px;
            height: 35px;
            background-color: white; 
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
            outline: none;
        }

        .heart-icon { 
            color: transparent; 
            -webkit-text-stroke: 1.5px #333; 
            font-size: 18px;
        }

        .btn-luu-tin:hover .heart-icon {
            -webkit-text-stroke: 1.5px #e74c3c;
        }

        .btn-luu-tin.active .heart-icon {
            color: #e74c3c; 
            -webkit-text-stroke: 1.5px #e74c3c; 
        }

        /* Nút đặt lịch xem nhà */
        .btn-hen { 
            display: block; 
            width: 100%; 
            padding: 11px;
            margin-top: 15px; 
            background-color: #27ae60; 
            color: white; 
            border: none; 
            border-radius: 6px; 
            cursor: pointer; 
            font-weight: bold; 
            font-size: 14px;
            transition: background 0.2s;
        }

        .btn-hen:hover { 
            background-color: #1e8449; 
        }

        /* Xem thêm */
        .divxemthem {
            text-align: center;
            margin: 50px;
            font-size: 18px;
        }

        .xemthem {
            color: #1a4b77;
            text-decoration: none;
            font-weight: bold;
        }

        .xemthem:hover {
            text-decoration: underline;
        }

        /* ==========================================================================
           RESPONSIVE DESIGN (Bổ sung cho các màn hình khác nhau)
           ========================================================================== */

        /* 1. Cho màn hình Tablet (Dưới 992px) */
        @media (max-width: 992px) {
            .anhdautrang {
                height: 320px; /* Giảm chiều cao ảnh banner trên tablet */
            }

            .search-overlay {
                width: 90%; /* Thanh tìm kiếm chiếm rộng hơn */
            }

            h1 {
                font-size: 28px;
                margin-top: 35px;
                margin-bottom: 35px;
            }
        }

        /* 2. Cho màn hình Điện thoại di động (Dưới 600px) */
        @media (max-width: 600px) {
            .anhdautrang {
                height: 240px; /* Thu nhỏ banner phù hợp màn hình dọc */
            }

            /* Chuyển thanh tìm kiếm từ hàng ngang thành hàng dọc */
            .search-bar {
                flex-direction: column; 
                padding: 12px;
                gap: 10px;
                background: rgba(255, 255, 255, 0.95); /* Thêm chút mờ nhẹ */
            }

            .search-icon {
                display: none; /* Ẩn icon kính lúp trên mobile để rộng chỗ */
            }

            .search-bar input {
                width: 100%;
                padding: 10px;
                border: 1px solid #ddd;
                border-radius: 4px;
                text-align: center; /* Căn giữa chữ tìm kiếm cho đẹp */
            }

            .search-bar button {
                width: 100%; /* Nút bấm chiếm hết chiều ngang */
                padding: 12px 0;
                font-size: 16px;
            }

            /* Điều chỉnh lại khoảng cách tiêu đề h1 */
            h1 {
                font-size: 22px;
                margin-top: 25px;
                margin-bottom: 25px;
                padding: 0 15px;
            }

            /* Tối ưu lại padding cho danh sách */
            #bds-list {
                padding: 0 15px;
                gap: 15px; /* Giảm khoảng cách giữa các card trên mobile */
            }
            
            .divxemthem {
                margin: 30px 15px;
            }
        }