/* Layout Container */
.re-list-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Thẻ Card */
.re-card {
    display: flex; /* Sử dụng Flexbox cho bố cục ngang */
    background: #fff;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 8px;
    transition: box-shadow 0.3s ease;
    gap: 20px;
}

.re-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Cột 1: Hình ảnh */
.re-card-image {
    width: 25%;
    flex-shrink: 0;
}

.re-image-wrapper {
    position: relative;
    padding-top: 75%; /* Tỉ lệ 4:3 */
    overflow: hidden;
    border-radius: 4px;
}

.re-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cột 2: Thông tin */
.re-card-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px; /* Khoảng cách giữa các dòng */
}

.re-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 700;
}

.re-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.re-title a:hover {
    color: #e03c31;
}

.re-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

.re-highlights .re-item-bold {
    color: #e03c31;
    font-weight: 700;
    font-size: 16px;
}

.re-amenities .re-item {
    font-size: 15px;
    color: #555;
}

.re-amenities i {
    margin-right: 5px;
    color: #888;
    width: 20px;
    text-align: center;
}

/* Dòng 4: Địa chỉ */
/* Đã sửa: Bỏ margin-top: auto để không bị đẩy xuống đáy */
.re-address {
    font-size: 14px;
    color: #777;
    margin-top: 0; 
}

/* RESPONSIVE CARD */
@media (max-width: 768px) {
    .re-card {
        flex-direction: column;
        padding: 10px;
        gap: 12px;
    }
    .re-card-image { width: 100%; }
    .re-image-wrapper { padding-top: 60%; }
    .re-title { font-size: 16px; }
    .re-row { gap: 15px; }
}

/* ========================================
   FORM TÌM KIẾM - LAYOUT NGANG CHO PC
   ======================================== */
.bds-search-wrapper {
    margin-bottom: 20px;
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

/* Mobile & Default (Dọc) */
.bds-form-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.bds-form-field {
    width: 100%;
}

.bds-select-wrapper select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 42px;
}

.bds-btn-submit {
    width: 100%;
    padding: 10px;
    background: #e03c31;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    height: 42px;
    font-weight: bold;
}

.bds-btn-submit:hover {
    background: #c93026;
}

/* PC Screens (Ngang) */
@media (min-width: 992px) {
    #bds-search-form.bds-form-grid {
        flex-direction: row; /* Chuyển sang ngang */
        align-items: flex-end; /* Căn đáy */
        gap: 10px;
    }

    .bds-form-field {
        flex: 1; /* Chia đều độ rộng */
        min-width: 0;
    }

    .bds-submit-field {
        flex: 0 0 auto; /* Nút bấm không giãn */
        width: auto;
    }
    
    .bds-btn-submit {
        padding: 0 25px;
        white-space: nowrap;
    }

    .bds-form-field label {
        font-size: 13px;
        margin-bottom: 5px;
        display: block;
        font-weight: 600;
        white-space: nowrap;
    }
}