/* HEADER BAR */
body {
    background: #f6f7fc;
    font-family: 'Inter', 'Open Sans', Arial, sans-serif;
}
h1.tieudeh1.leading-tight{
            font-size: 3.25rem;
        line-height: 1.2;
}
h1.tieudeh1.leading-tight .text-secondary {
    color: #d32678 ! IMPORTANT;
}

.main-header {
    background: #5546de;
    height: 54px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    color: #fff;
    font-size: 17px;
    box-shadow: 0 2px 14px 0 rgba(38,34,104,.03);
    justify-content: space-between;
}
.main-header .logo-text {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: 1px;
    color: #fff;
    line-height: 1;
}
.main-header .logo-text span {
    color: #ffbe3d;
    font-weight: 700;
}
.main-header .header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}
.main-header .header-actions .icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px; height: 28px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    transition: background .15s;
    border-radius: 50%;
    position: relative;
}
.main-header .header-actions .icon-btn .count {
    position: absolute;
    top: 2px; right: 2px;
    background: #ffbe3d;
    color: #2a286a;
    font-size: 11px;
    font-weight: bold;
    border-radius: 7px;
    padding: 0 5px;
    min-width: 16px;
    line-height: 15px;
}
.main-header .avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    overflow: hidden;
    margin-left: 14px;
    position: relative;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-header .avatar img {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.main-header .avatar .dots {
    position: absolute;
    bottom: 0px; right: 0px;
    width: 9px; height: 9px;
    background: #37dc68;
    border-radius: 50%;
    border: 2px solid #fff;
}

/* FILTER BAR */
.filter-bar-container {
    margin-top: 44px;
    padding: 0 15px;
}
.filter-bar-box {
    background: #fff;
    border-radius: 18px;
    padding: 22px 30px;
    max-width: 100%;
}

.filter-form { /* Đây là form trong filter-bar-box */
    display: flex; /* Biến form thành flex container */
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap; /* Mặc định: KHÔNG cho phép wrap */
    justify-content: center; /* Căn giữa các item */
    width: 100%; /* Đảm bảo form chiếm toàn bộ chiều rộng của box */
}

.filter-field {
    flex-grow: 1;
    min-width: 205px;
    position: relative;
}
.filter-label {
    font-size: 13px;
    color: #7F81A6;
    font-weight: 500;
    margin-bottom: 3px;
    display: block;
    font-style: italic;
}
.filter-select {
    background: #f4f4fe;
    border: none;
    outline: none;
    border-radius: 10px;
    padding: 8px 34px 8px 14px;
    font-size: 15px;
    color: #2a286a;
    width: 100%;
    cursor: pointer;
    font-weight: 600;
    box-shadow: none;
    height: 44px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}
.filter-select:focus {
    box-shadow: 0 0 0 2px #d4d9fc;
}
.filter-field .bi-chevron-down,
.filter-field .bi-calendar {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #A7A6B6;
    font-size: 16px;
}
.filter-field .bi-calendar {
    right: 12px;
}
.btn-search-room {
    background: #4339F2;
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 32px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 12px rgba(67,57,242,.07);
    transition: background .2s;
    height: 44px;
    line-height: 1;
    flex-shrink: 0;
}
.btn-search-room:hover {
    background: #352dc1;
}
/* Hotline Card */
.hotline-card {
    background: #4339F2;
    border-radius: 17px;
    color: #fff;
    padding: 33px 45px;
    font-weight: 700;
    font-size: 23px;
    min-width: 320px;
    box-shadow: 0 4px 20px rgba(38,34,104,.06);
    margin: 36px 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}
.hotline-label {
    font-size: 15px;
    opacity: 0.96;
    font-weight: 600;
}
.hotline-number {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Media Queries */

/* Cho màn hình máy tính bảng ngang và các màn hình desktop nhỏ hơn: Cho phép wrap khi cần */
@media (max-width: 1024px) {
    .filter-bar-box {
        min-width: unset; /* Cho phép box co lại */
        padding: 18px 20px;
    }
    .filter-form { /* Nhắm mục tiêu form thay vì box */
        flex-wrap: wrap; /* Cho phép wrap */
        justify-content: center;
    }
    .filter-field {
        min-width: unset;
        width: calc(50% - 11px); /* Cố gắng 2 item mỗi hàng */
    }
    .btn-search-room {
        width: calc(50% - 11px);
        min-width: 205px;
    }
}

/* Cho màn hình máy tính bảng dọc và điện thoại: Xếp các trường theo cột dọc */
@media (max-width: 768px) {
    .filter-bar-box {
        padding: 18px 10px;
    }
    .filter-form { /* Nhắm mục tiêu form thay vì box */
        flex-direction: column; /* Buộc xếp theo cột dọc */
        align-items: stretch;
        gap: 15px;
    }
    .filter-field,
    .btn-search-room {
        width: 100%; /* Mỗi item chiếm toàn bộ chiều rộng */
        min-width: unset;
    }
    .hotline-card {
        margin: 22px auto 0 auto;
        min-width: unset;
        width: 100%;
        max-width: 320px;
    }
}

/* Custom Button Styles to match sample color */

/* Override Bootstrap's default primary button color */
/* Áp dụng cho các nút có class .btn-primary */
.btn-primary {
    --bs-btn-bg: #4339F2; /* Màu nền chính */
    --bs-btn-border-color: #4339F2; /* Màu viền */
    --bs-btn-hover-bg: #352dc1; /* Màu nền khi di chuột qua */
    --bs-btn-hover-border-color: #352dc1;
    --bs-btn-active-bg: #2a286a; /* Màu nền khi nhấn */
    --bs-btn-active-border-color: #2a286a;
    --bs-btn-color: #fff; /* Màu chữ */
}

/* Override Bootstrap's default success button color */
/* Áp dụng cho các nút có class .btn-success */
.btn-success {
    --bs-btn-bg: #4339F2; /* Màu nền chính */
    --bs-btn-border-color: #4339F2; /* Màu viền */
    --bs-btn-hover-bg: #352dc1; /* Màu nền khi di chuột qua */
    --bs-btn-hover-border-color: #352dc1;
    --bs-btn-active-bg: #2a286a; /* Màu nền khi nhấn */
    --bs-btn-active-border-color: #2a286a;
    --bs-btn-color: #fff; /* Màu chữ */
}

/* Đảm bảo .btn-search-room cũng sử dụng màu này (nếu chưa) */
/* (Class này đã có màu #4339F2 và hover #352dc1 nên chỉ cần giữ nguyên hoặc xác nhận) */
.btn-search-room {
    background: #4339F2;
    color: #fff;
    /* Giữ nguyên các style khác đã có */
}
.btn-search-room:hover {
    background: #352dc1;
}

/* Room Card Styles (moved from available_rooms.blade.php) */
.room-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #dee2e6;
}
.room-card.selected {
    border: 3px solid #4339F2; /* Cập nhật màu border sang màu primary của bạn */
    box-shadow: 0 .5rem 1rem rgba(67, 57, 242, .2); /* Cập nhật màu shadow sử dụng màu primary của bạn */
    transform: translateY(-5px);
}
.room-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* === FILTER BAR OPTIMIZED === */
.filter-bar-box {
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(38,34,104,.07);
    padding: 18px 24px;
    min-width: 900px;
    max-width: 100%;
}
.filter-bar-container.filter-bar-container-custom .filter-bar-box{
    min-width: 100%;
    max-width: 100%;
    padding: 0px;
    box-shadow: none !important;
}
.filter-bar-container.filter-bar-container-custom .filter-bar-box .filter-form{
   display: inline;
}
.filter-bar-container.filter-bar-container-custom .filter-bar-box .filter-form .filter-field{
       margin: 20px 0;
}
.filter-bar-container.filter-bar-container-custom .filter-bar-box .filter-form .btn-search-room {
    width: 100% ;
}

.filter-form {
    display: flex;
    align-items: flex-end;    /* Sát xuống dưới cùng, giống mẫu */
    gap: 12px;                /* Thu hẹp khoảng cách các trường */
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}

.filter-field {
    flex-grow: 1;
    min-width: 180px;         /* Nhỏ lại cho sát mẫu */
    position: relative;
}

.filter-label {
    font-size: 13px;
    color: #7F81A6;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
    font-style: italic;
    letter-spacing: 0.01em;
}

.filter-select {
    background: #f4f4fe;
    border: none;
    outline: none;
    border-radius: 11px;
    padding: 7px 36px 7px 14px;
    font-size: 16px;         /* Tăng lên 16px */
    color: #19174b;
    width: 100%;
    cursor: pointer;
    font-weight: 700;        /* Đậm hơn */
    height: 40px;            /* Giảm nhẹ chiều cao */
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: border 0.2s, box-shadow 0.2s;
}

.filter-select:focus {
    box-shadow: 0 0 0 2px #e2e7fd;
}

.filter-field .bi-chevron-down,
.filter-field .bi-calendar {
    position: absolute;
    right: 15px;
    top: 71%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #A7A6B6;
    font-size: 18px;
}

.btn-search-room {
    background: #4339F2;
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    padding: 0 26px;          /* Điều chỉnh padding ngang, bỏ padding dọc */
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 12px rgba(67,57,242,.07);
    transition: background .2s;
    height: 40px;             /* Giảm chiều cao, sát mẫu */
    min-width: 210px;
    justify-content: center;
}
.btn-search-room i {
    font-size: 18px;
    margin-right: 5px;
}
.btn-search-room:hover {
    background: #352dc1;
}

.filter-select-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #a7a6b6;
    font-size: 18px;
}

/* Custom styles for room cards */
.room-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.room-image {
    width: 100%;
    height: 200px; /* Điều chỉnh chiều cao hình ảnh theo ý muốn */
    object-fit: cover; /* Đảm bảo hình ảnh không bị méo */
    border-bottom: 1px solid #e0e0e0;
}

.room-name {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.5rem;
}

.room-price {
    font-size: 1.2rem;
    color: #e67e22; /* Màu cam nổi bật cho giá */
    font-weight: bold;
    margin-bottom: 1rem;
}

.room-details p {
    margin-bottom: 0.3rem;
    color: #555;
    font-size: 0.95rem;
}

.room-details i {
    margin-right: 8px;
    color: #3498db; /* Màu xanh cho icon */
}

.room-card .btn-primary {
    background-color: #3498db;
    border-color: #3498db;
    font-weight: bold;
    padding: 0.75rem 1rem;
    border-radius: 5px;
}

.room-card .btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .room-image {
        height: 180px;
    }
    .room-name {
        font-size: 1.3rem;
    }
    .room-price {
        font-size: 1.1rem;
    }
}
 .room-list-container {
                background-color: #f8f9fa;
                border-radius: 8px;
                padding: 15px;
            }

            .room-item {
                background-color: #ffffff;
                border: 1px solid #e0e0e0;
                border-radius: 8px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
                align-items: center;
                padding: 1rem 1.5rem;
                margin-bottom: 15px;
            }

            .room-item:hover {
                transform: translateY(-3px);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }

            .room-info {
                display: flex;
                flex-wrap: nowrap;
                align-items: center;
                flex-grow: 1;
                justify-content: space-between;
                gap: 10px;
            }

            .room-column {
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: left;
                box-sizing: border-box;
                flex-grow: 1; 
                flex-shrink: 0; 
                min-width: 100px; 
            }

            /* Tinh chỉnh flex-basis/min-width cụ thể cho từng cột để cân bằng */
            .room-name-col {
                flex-basis: 22%; 
                min-width: 160px;
            }
            .room-type-col {
                flex-basis: 18%;
                min-width: 120px;
            }
            .room-status-col {
                flex-basis: 15%;
                min-width: 90px;
            }
            .room-capacity-col {
                flex-basis: 15%;
                min-width: 90px;
            }
            .room-floor-col {
                flex-basis: 15%;
                min-width: 90px;
            }

            .header-label {
                font-weight: bold;
                color: #888;
                font-size: 0.85rem;
                margin-bottom: 0.1rem;
            }

            .room-column p {
                margin-bottom: 0;
                font-size: 0.95rem;
                color: #555;
            }
            
            .room-name-col h5 {
                font-size: 1.1rem;
                font-weight: bold;
                color: #3498db;
                margin-bottom: 0.2rem;
            }
            .room-price {
                font-size: 0.9rem;
                color: #e67e22;
                font-weight: 500;
            }

            .room-status-badge {
                font-size: 0.8rem;
                padding: .3em .6em;
                border-radius: .25rem;
            }

            .room-actions {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                min-width: 120px;
                flex-shrink: 0;
            }

            .btn-book-now {
                /* Màu sắc mới dựa trên mẫu */
                background-color: #6a0dad; /* Một màu tím đậm */
                border-color: #6a0dad;
                font-weight: bold;
                padding: 0.6rem 1.2rem;
                font-size: 0.95rem;
                white-space: nowrap;
                border-radius: 5px;
            }

            .btn-book-now:hover {
                background-color: #5a0ca0; /* Màu tối hơn khi hover */
                border-color: #5a0ca0;
            }

            /* Responsive adjustments */
            @media (max-width: 992px) {
                .room-info {
                    flex-wrap: wrap; 
                    gap: 10px;
                }
                .room-column {
                    flex-basis: 48%;
                    min-width: unset;
                }
                .room-name-col {
                    flex-basis: 100%;
                }
                .room-actions {
                    width: 100%;
                    justify-content: center;
                    margin-top: 15px;
                }
            }

            @media (max-width: 576px) {
                .filter-bar-box{
                        min-width: 100%;
                }
                .hotline-number{
                        font-size: 27px;
                }
                .room-item {
                    flex-direction: column;
                    align-items: flex-start;
                    padding: 15px;
                }
                .room-info {
                    flex-direction: column;
                    align-items: flex-start;
                    width: 100%;
                    gap: 15px;
                }
                .room-column {
                    min-width: unset;
                    width: 100%;
                    text-align: left;
                    padding-right: 0;
                }
                .room-actions {
                    width: 100%;
                    margin-top: 20px;
                    justify-content: center;
                }
            }
            /* Responsive adjustments */
@media (max-width: 992px) { /* Cho tablet và màn hình nhỏ hơn */
    .room-info {
        flex-wrap: wrap; /* Cho phép các cột xuống dòng */
        gap: 10px;
    }
    .room-column {
        flex-basis: 48%; /* Chia 2 cột trên mỗi hàng */
        min-width: unset; /* Bỏ min-width để linh hoạt hơn */
    }
    .room-name-col {
        flex-basis: 100%; /* Tên phòng chiếm toàn bộ hàng */
    }
    .room-actions {
        width: 100%;
        justify-content: center;
        margin-top: 15px;
    }
}

@media (max-width: 576px) { /* Cho điện thoại */
    .room-item {
        flex-direction: column; /* Xếp chồng các phần tử */
        align-items: flex-start;
        padding: 15px;
    }
    .room-info {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 15px; /* Tăng khoảng cách khi xếp chồng */
    }
    .room-column {
        min-width: unset;
        width: 100%;
        text-align: left;
        padding-right: 0;
    }
    .room-actions {
        width: 100%;
        margin-top: 20px;
        justify-content: center;
    }
}

/* Bootstrap variables override - apply these globally if possible, e.g., in public/css/frontend.css */
            /* Để màu nút Đặt ngay khớp với mẫu */
            :root {
                --bs-primary: #6a0dad; /* Màu tím đậm cho primary */
                --bs-primary-rgb: 106,13,173;
                --bs-success: #28a745; /* Giữ màu xanh cho badge trạng thái */
            }

            .btn-primary {
                --bs-btn-bg: var(--bs-primary);
                --bs-btn-border-color: var(--bs-primary);
                --bs-btn-hover-bg: #5a0ca0; /* Màu tối hơn khi hover */
                --bs-btn-hover-border-color: #5a0ca0;
                --bs-btn-active-bg: #4a0b80; /* Màu tối hơn khi active */
                --bs-btn-active-border-color: #4a0b80;
                --bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
            }

            .room-list-container {
                background-color: #f8f9fa;
                border-radius: 8px;
                padding: 15px;
            }

            .room-item {
                background-color: #ffffff;
                border: 1px solid #e0e0e0;
                border-radius: 8px;
                box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
                transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
                align-items: center;
                padding: 1rem 1.5rem;
                margin-bottom: 15px;
            }

            .room-item:hover {
                transform: translateY(-3px);
                box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            }

            .room-info {
                display: flex;
                flex-wrap: nowrap;
                align-items: center;
                flex-grow: 1;
                justify-content: space-between;
                gap: 10px;
            }

            .room-column {
                display: flex;
                flex-direction: column;
                justify-content: center;
                text-align: left;
                box-sizing: border-box;
                flex-grow: 1; 
                flex-shrink: 0; 
                min-width: 100px; 
            }

            /* Tinh chỉnh flex-basis/min-width cụ thể cho từng cột để cân bằng */
            .room-name-col {
                flex-basis: 22%; 
                min-width: 160px;
            }
            .room-type-col {
                flex-basis: 18%;
                min-width: 120px;
            }
            .room-status-col {
                flex-basis: 15%;
                min-width: 90px;
            }
            .room-capacity-col {
                flex-basis: 15%;
                min-width: 90px;
            }
            .room-floor-col {
                flex-basis: 15%;
                min-width: 90px;
            }

            .header-label {
                font-weight: bold;
                color: #888;
                font-size: 0.85rem;
                margin-bottom: 0.1rem;
            }

            .room-column p {
                margin-bottom: 0;
                font-size: 0.95rem;
                color: #555;
            }
            
            .room-name-col h5 {
                font-size: 1.1rem;
                font-weight: bold;
                color: #3498db;
                margin-bottom: 0.2rem;
            }
            .room-price {
                font-size: 0.9rem;
                color: #e67e22;
                font-weight: 500;
            }

            .room-status-badge {
                font-size: 0.8rem;
                padding: .3em .6em;
                border-radius: .25rem;
            }

            .room-actions {
                display: flex;
                align-items: center;
                justify-content: flex-end;
                min-width: 120px;
                flex-shrink: 0;
            }

            .btn-book-now {
                /* Sử dụng màu từ biến Bootstrap primary đã định nghĩa ở trên */
                background-color: var(--bs-primary);
                border-color: var(--bs-primary);
                font-weight: bold;
                padding: 0.6rem 1.2rem;
                font-size: 0.95rem;
                white-space: nowrap;
                border-radius: 5px;
            }

            .btn-book-now:hover {
                background-color: var(--bs-btn-hover-bg);
                border-color: var(--bs-btn-hover-border-color);
            }

            /* Responsive adjustments */
            @media (max-width: 992px) {
                .room-info {
                    flex-wrap: wrap; 
                    gap: 10px;
                }
                .room-column {
                    flex-basis: 48%;
                    min-width: unset;
                }
                .room-name-col {
                    flex-basis: 100%;
                }
                .room-actions {
                    width: 100%;
                    justify-content: center;
                    margin-top: 15px;
                }
            }

            @media (max-width: 576px) {
                .room-item {
                    flex-direction: column;
                    align-items: flex-start;
                    padding: 15px;
                }
                .room-info {
                    flex-direction: column;
                    align-items: flex-start;
                    width: 100%;
                    gap: 15px;
                }
                .room-column {
                    min-width: unset;
                    width: 100%;
                    text-align: left;
                    padding-right: 0;
                }
                .room-actions {
                    width: 100%;
                    margin-top: 20px;
                    justify-content: center;
                }
            }
            .logo-text img {
    max-height: 8vh;
}