/* css/hotel.css */
/* CSS cho Carousel phòng */
.room-carousel-container .carousel-item {
    /* Thêm một khoảng đệm để các card không bị dính vào nhau khi có nhiều card trên 1 slide */
    padding: 0 1rem;
}

.room-carousel-container .carousel-control-prev,
.room-carousel-container .carousel-control-next {
    width: 5%;
    /* Bỏ nền tối, chỉ giữ lại icon */
    background-color: transparent; 
}
/* Đổi màu icon của nút điều khiển để dễ nhìn hơn trên nhiều nền ảnh */
.room-carousel-container .carousel-control-prev-icon,
.room-carousel-container .carousel-control-next-icon {
    filter: invert(1) grayscale(100) brightness(1.5); /* Làm icon màu trắng và sáng hơn */
}

.room-carousel-container .carousel-control-prev {
    left: -2.5%;
}
.room-carousel-container .carousel-control-next {
    right: -2.5%;
}

/* Card phòng bên trong carousel */
.room-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease-in-out, transform 0.3s ease-in-out;
    border: none;
}
.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0,0,0,.15) !important;
}

.room-card-image {
    height: 220px;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    overflow: hidden; /* Đảm bảo ảnh bo góc đúng */
}

.room-card-image img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* CSS cho các khối bổ sung */
.amenity-item-archive {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.amenity-item-archive:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.1);
}
.cta-section {
    background: linear-gradient(45deg, #0d6efd, #6f42c1);
    color: white;
    border-radius: 0.75rem;
}

.qlh-room-item .card-img-top.qlh-room-thumbnail-img {
    height: 200px; /* Chiều cao cố định cho ảnh thumbnail */
    object-fit: cover;
}

.qlh-room-item .qlh-room-title a {
    color: var(--bs-body-color); /* Sử dụng màu mặc định của Bootstrap */
}
.qlh-room-item .qlh-room-title a:hover {
    color: var(--bs-primary); /* Sử dụng màu primary của Bootstrap khi hover */
}

.qlh-specific-room-numbers .badge {
    font-size: 0.85em; /* Điều chỉnh kích thước badge nếu cần */
}

.qlh-gallery-images-detail .qlh-gallery-image-item img {
    transition: transform 0.2s ease-in-out;
}
.qlh-gallery-images-detail .qlh-gallery-image-item:hover img {
    transform: scale(1.05);
}

.qlh-room-finder-shortcode-container{
    background-color: rgb(255 255 255 / .1);
    padding: 25px;
    z-index: 2;
    border-radius: 20px;
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    border: 1px solid rgb(255 255 255 / .2);
    box-shadow: 0 8px 32px 0 rgb(31 38 135 / .2);
    animation: slideInUp 1s ease-out 0.9s;
    animation-fill-mode: backwards;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* Modern frontend layer for SacMau Hotel */
.qlh-plugin-wrapper,
.qlh-room-finder-shortcode-container {
    --qlh-ink: #172033;
    --qlh-muted: #667085;
    --qlh-line: #e6edf5;
    --qlh-surface: #ffffff;
    --qlh-soft: #f6f8fb;
    --qlh-primary: #2563eb;
    --qlh-primary-dark: #1d4ed8;
    --qlh-green: #0f9f6e;
    --qlh-amber: #b7791f;
    color: var(--qlh-ink);
}

.qlh-room-archive-page,
.qlh-single-room-page-v2 {
    max-width: 1180px;
}

.qlh-archive-hero,
.qlh-single-room-hero {
    position: relative;
    padding: clamp(1.75rem, 4vw, 3rem);
    border: 1px solid var(--qlh-line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(15, 159, 110, .08)),
        var(--qlh-surface);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    overflow: hidden;
}

.qlh-archive-hero h1,
.qlh-single-room-title,
.qlh-single-room-hero .entry-title {
    margin: 0;
    color: var(--qlh-ink) !important;
    font-weight: 800;
    letter-spacing: 0;
}

.qlh-archive-hero p {
    max-width: 720px;
    margin: .75rem auto 0;
    color: var(--qlh-muted) !important;
}

.qlh-archive-search .qlh-room-finder-shortcode-container,
.qlh-room-finder-shortcode-container {
    border: 1px solid var(--qlh-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.qlh-room-finder-shortcode-container h3 {
    color: var(--qlh-ink);
    font-weight: 800;
}

.qlh-room-finder-shortcode-container .form-label,
.qlh-booking-widget .form-label {
    color: var(--qlh-ink);
    margin-bottom: .45rem;
}

.qlh-room-finder-shortcode-container .form-control,
.qlh-room-finder-shortcode-container .form-select,
.qlh-booking-widget .form-control,
.qlh-booking-widget .form-select {
    min-height: 46px;
    border-color: var(--qlh-line);
    border-radius: 8px;
    box-shadow: none;
}

.qlh-room-finder-shortcode-container .form-control:focus,
.qlh-room-finder-shortcode-container .form-select:focus,
.qlh-booking-widget .form-control:focus,
.qlh-booking-widget .form-select:focus {
    border-color: var(--qlh-primary);
    box-shadow: 0 0 0 .2rem rgba(37, 99, 235, .14);
}

.qlh-primary-action,
#qlh-check-availability-btn,
.qlh-room-finder-shortcode-container .btn-primary,
.qlh-room-card .btn-primary {
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--qlh-primary), var(--qlh-primary-dark));
    box-shadow: 0 10px 22px rgba(37, 99, 235, .22);
    font-weight: 700;
}

.qlh-primary-action:hover,
#qlh-check-availability-btn:hover,
.qlh-room-finder-shortcode-container .btn-primary:hover,
.qlh-room-card .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, .28);
}

.room-carousel-container {
    padding: .5rem 0 1rem;
}

.room-carousel-container .carousel-inner {
    overflow: visible;
}

.qlh-room-results-shell {
    margin-top: 1.5rem;
}

.room-card,
.qlh-room-card,
.qlh-room-item-filter,
.qlh-room-list-item {
    border: 1px solid var(--qlh-line);
    border-radius: 8px;
    background: var(--qlh-surface);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.room-card:hover,
.qlh-room-card:hover,
.qlh-room-item-filter:hover,
.qlh-room-list-item:hover {
    border-color: rgba(37, 99, 235, .28);
    transform: translateY(-4px);
    box-shadow: 0 20px 42px rgba(15, 23, 42, .12);
}

.room-card-image,
.qlh-room-item-filter .card-img-top {
    height: 240px;
    background: var(--qlh-soft);
}

.room-card-image img,
.qlh-room-item-filter .card-img-top,
.qlh-room-list-item .room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-card-details h5,
.qlh-room-item-filter .card-title {
    line-height: 1.35;
}

.room-card-details h5 a,
.qlh-room-item-filter .card-title a,
.qlh-room-list-item h5 a {
    color: var(--qlh-ink) !important;
}

.room-card-details h5 a:hover,
.qlh-room-item-filter .card-title a:hover,
.qlh-room-list-item h5 a:hover {
    color: var(--qlh-primary) !important;
}

.qlh-card-price,
.qlh-room-item-filter .text-primary,
.room-price {
    color: var(--qlh-primary) !important;
}

.qlh-card-price span {
    color: var(--qlh-muted);
}

.qlh-room-list-item {
    padding: 1rem !important;
}

.qlh-room-list-item .room-image {
    border-radius: 8px;
    overflow: hidden;
}

.qlh-gallery-panel {
    border: 1px solid var(--qlh-line);
    border-radius: 8px;
    background: var(--qlh-surface);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .1);
    overflow: hidden;
}

.qlh-gallery-panel .room-main-swiper {
    margin-bottom: 0 !important;
}

.qlh-gallery-panel .swiper-button-next,
.qlh-gallery-panel .swiper-button-prev {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(15, 23, 42, .18);
    color: var(--qlh-primary);
}

.qlh-gallery-panel .swiper-button-next::after,
.qlh-gallery-panel .swiper-button-prev::after {
    font-size: 1rem;
    font-weight: 800;
}

.qlh-gallery-panel .room-thumb-swiper {
    padding: .75rem !important;
    background: var(--qlh-surface);
}

.qlh-room-feature-strip,
.qlh-content-panel,
.qlh-booking-widget {
    border: 1px solid var(--qlh-line);
    border-radius: 8px;
    background: var(--qlh-surface);
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.qlh-room-feature-strip {
    padding: 1rem;
}

.qlh-room-feature-strip .col {
    padding: 1rem .75rem;
    border-radius: 8px;
    background: var(--qlh-soft);
}

.qlh-room-feature-strip i {
    color: var(--qlh-primary);
}

.qlh-content-panel {
    padding: clamp(1.1rem, 3vw, 1.5rem);
}

.qlh-content-panel h3 {
    border-bottom: 1px solid var(--qlh-line);
    color: var(--qlh-ink);
    font-weight: 800;
}

.qlh-content-panel .entry-content {
    color: #344054;
    line-height: 1.75;
}

.qlh-booking-widget {
    padding: clamp(1.1rem, 3vw, 1.5rem);
}

.qlh-booking-price {
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(15, 159, 110, .1));
}

.qlh-booking-price .h4 {
    color: var(--qlh-primary);
}

.qlh-booking-price span:last-child {
    color: var(--qlh-muted);
}

.qlh-price-breakdown {
    padding: .25rem .25rem 0;
}

.qlh-price-breakdown .list-group-item {
    border-color: var(--qlh-line);
}

.qlh-related-rooms {
    border-top: 1px solid var(--qlh-line);
}

.qlh-related-rooms .card {
    border: 1px solid var(--qlh-line);
    border-radius: 8px;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease;
}

.qlh-related-rooms .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, .12) !important;
}

.qlh-amenities-section {
    border-top: 1px solid var(--qlh-line);
}

.amenity-item-archive {
    min-height: 142px;
    border: 1px solid var(--qlh-line);
    background: var(--qlh-surface);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
}

.amenity-item-archive i {
    color: var(--qlh-green) !important;
}

.qlh-cta-section {
    border-radius: 8px;
    background: linear-gradient(135deg, #1f4fd8, #0f9f6e);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .16);
}

#qlh-filter-results-placeholder {
    border: 1px dashed var(--qlh-line);
    color: var(--qlh-muted) !important;
}

#qlh-availability-result .alert,
#qlh-filter-results-placeholder .alert {
    border-radius: 8px;
}

#qlh-availability-result .badge,
.qlh-specific-room-numbers .badge,
.qlh-room-item-filter .badge {
    border-radius: 999px;
    padding: .45rem .65rem;
}

@media (max-width: 991.98px) {
    .qlh-booking-widget.position-sticky {
        position: static !important;
    }

    .room-carousel-container .carousel-control-prev {
        left: .25rem;
    }

    .room-carousel-container .carousel-control-next {
        right: .25rem;
    }
}

@media (max-width: 767.98px) {
    .qlh-archive-hero,
    .qlh-single-room-hero {
        padding: 1.35rem;
    }

    .room-card-image,
    .qlh-room-item-filter .card-img-top {
        height: 210px !important;
    }

    .qlh-room-list-item .room-image {
        width: 100% !important;
        max-height: none;
    }

    .qlh-room-feature-strip .col {
        flex: 0 0 100%;
    }

    .qlh-gallery-panel .swiper-button-next,
    .qlh-gallery-panel .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .qlh-cta-section {
        padding: 1.5rem !important;
    }
}
