/* Single Room Page Styles */

.qhb-single-room-container p {
    margin: 0;
}

/* Container */
.qhb-single-room-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.qhb-room-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.qhb-room-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}

.qhb-room-type {
    display: flex;
    gap: 10px;
}

.qhb-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

.qhb-badge-type {
    background: #0F766E;
    color: white;
}

.qhb-price-display {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.qhb-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.qhb-price-label {
    font-size: 16px;
    color: #666;
}

.qhb-weekend-price {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Gallery */
.qhb-room-gallery {
    margin-bottom: 40px;
}

.qhb-featured-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.qhb-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qhb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.qhb-gallery-item {
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.qhb-gallery-item:hover {
    transform: scale(1.05);
}

.qhb-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery style: slider (horizontal scroll-snap) */
.qhb-gallery-grid.qhb-gallery-style-slider {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
}
.qhb-gallery-grid.qhb-gallery-style-slider .qhb-gallery-item,
.qhb-gallery-grid.qhb-gallery-style-slider .qhb-gallery-more {
    flex: 0 0 70%;
    max-width: 70%;
    scroll-snap-align: start;
}
@media (min-width: 768px) {
    .qhb-gallery-grid.qhb-gallery-style-slider .qhb-gallery-item,
    .qhb-gallery-grid.qhb-gallery-style-slider .qhb-gallery-more {
        flex-basis: 38%;
        max-width: 38%;
    }
}

/* Gallery style: masonry (CSS columns) */
.qhb-gallery-grid.qhb-gallery-style-masonry {
    display: block;
    column-count: 2;
    column-gap: 15px;
}
@media (min-width: 768px) {
    .qhb-gallery-grid.qhb-gallery-style-masonry {
        column-count: 4;
    }
}
.qhb-gallery-grid.qhb-gallery-style-masonry .qhb-gallery-item,
.qhb-gallery-grid.qhb-gallery-style-masonry .qhb-gallery-more {
    height: auto;
    margin-bottom: 15px;
    break-inside: avoid;
}
.qhb-gallery-grid.qhb-gallery-style-masonry .qhb-gallery-image {
    height: auto;
}

/* Guest reviews */
.qhb-room-reviews {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
}
.qhb-room-reviews h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f766e;
}
.qhb-room-reviews .qhb-review-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.qhb-room-reviews .qhb-no-reviews {
    color: #6b7280;
    margin-bottom: 24px;
}

.qhb-gallery-more {
    position: relative;
    height: 200px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qhb-view-all-btn {
    background: rgba(15, 118, 110, 0.85);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.qhb-view-all-btn:hover {
    background: rgba(15, 118, 110, 1);
}

/* Content Layout */
.qhb-room-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
}

/* Quick Info */
.qhb-quick-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 30px;
}

.qhb-info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.qhb-icon {
    width: 40px;
    height: 40px;
    color: #0F766E;
    flex-shrink: 0;
}

.qhb-info-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.qhb-info-label {
    display: block;
    font-size: 14px;
    color: #666;
}

/* Description */
.qhb-room-description,
.qhb-room-amenities,
.qhb-room-details {
    margin-bottom: 40px;
}

.qhb-room-description h2,
.qhb-room-amenities h2,
.qhb-room-details h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 3px solid #ccfbf1;
    display: inline-block;
}

.qhb-description-content {
    line-height: 1.8;
    color: #4b5563;
}

/* Amenities */
.qhb-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.qhb-amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f0fdfa;
    border-radius: 8px;
    border: 1px solid #ccfbf1;
}

.qhb-icon-check {
    width: 20px;
    height: 20px;
    color: #0F766E;
    flex-shrink: 0;
}

/* Details */
.qhb-details-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qhb-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e5e7eb;
}

.qhb-detail-label {
    font-weight: 600;
    color: #374151;
}

.qhb-detail-value {
    color: #6b7280;
}

.qhb-allowed {
    color: #0F766E;
    font-weight: 600;
}

.qhb-not-allowed {
    color: #ef4444;
}

/* Booking Card */
.qhb-booking-card {
    position: sticky;
    top: 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-top: 4px solid #0F766E;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.qhb-booking-header {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.qhb-booking-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.qhb-booking-price .qhb-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0F766E;
}

.qhb-booking-price .qhb-period {
    font-size: 14px;
    color: #666;
}

.qhb-booking-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qhb-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.qhb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.qhb-form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.qhb-form-group input,
.qhb-form-group select {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
}

.qhb-form-group input:focus,
.qhb-form-group select:focus {
    outline: none;
    border-color: #0F766E;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15);
}

.qhb-stay-dual-wrap {
    position: relative;
}

.qhb-stay-range-anchor {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.qhb-stay-two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 480px) {
    .qhb-stay-two-fields {
        grid-template-columns: 1fr;
    }
}

.qhb-stay-field-btn {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
}

.qhb-stay-field-lbl {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #4b5563;
}

.qhb-stay-field-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.qhb-stay-field-btn:hover .qhb-stay-field-inner,
.qhb-stay-field-btn:focus-visible .qhb-stay-field-inner {
    border-color: #0F766E;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.qhb-stay-field-btn:focus-visible {
    outline: none;
}

.qhb-stay-cal-ic {
    display: flex;
    color: #0F766E;
    flex-shrink: 0;
}

.qhb-stay-val {
    font-size: 14px;
    color: #9ca3af;
}

.qhb-stay-val.qhb-has-date {
    color: #111827;
    font-weight: 500;
}

.flatpickr-calendar {
    z-index: 10050;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #0F766E;
    border-color: #0F766E;
    color: #fff;
}

.flatpickr-day.inRange {
    background: rgba(15, 118, 110, 0.18);
    border-color: transparent;
    box-shadow: -5px 0 0 rgba(15, 118, 110, 0.18), 5px 0 0 rgba(15, 118, 110, 0.18);
}

.qhb-book-btn {
    background: #0F766E;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.qhb-book-btn:hover {
    background: #115e59;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.qhb-booking-info {
    margin-top: 15px;
    text-align: center;
    color: #6b7280;
}

/* Modal */
.qhb-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
}

.qhb-modal-content {
    position: relative;
    margin: 50px auto;
    max-width: 1200px;
    padding: 20px;
}

.qhb-modal-close {
    position: fixed;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 40px;
    font-weight: 700;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10000;
}

.qhb-modal-close:hover {
    color: #ccc;
}

.qhb-modal-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.qhb-modal-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Room Card (for archives) */
.qhb-room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.qhb-room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.qhb-room-card-link {
    text-decoration: none;
    color: inherit;
}

.qhb-room-card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.qhb-room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.qhb-room-card:hover .qhb-room-card-image img {
    transform: scale(1.1);
}

.qhb-room-card-content {
    padding: 20px;
}

.qhb-room-card-type {
    font-size: 12px;
    text-transform: uppercase;
    color: #0F766E;
    font-weight: 600;
    margin-bottom: 8px;
}

.qhb-room-card-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #1a1a1a;
}

.qhb-room-card-features {
    display: flex;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 15px;
}

.qhb-room-card-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.qhb-price {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.qhb-period {
    font-size: 14px;
    color: #6b7280;
}

/* Responsive */
@media (max-width: 968px) {
    .qhb-room-content {
        grid-template-columns: 1fr;
    }

    .qhb-booking-card {
        position: static;
    }

    .qhb-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .qhb-single-room-container {
        padding: 15px;
    }

    .qhb-room-title {
        font-size: 24px;
    }

    .qhb-price-amount {
        font-size: 28px;
    }

    .qhb-featured-image {
        height: 300px;
    }

    .qhb-gallery-grid {
        grid-template-columns: 1fr;
    }

    .qhb-gallery-item,
    .qhb-gallery-more {
        height: 250px;
    }

    .qhb-quick-info {
        grid-template-columns: repeat(2, 1fr);
        padding: 20px;
        gap: 15px;
    }

    .qhb-amenities-grid {
        grid-template-columns: 1fr;
    }

    .qhb-form-row {
        grid-template-columns: 1fr;
    }

    .qhb-modal-content {
        margin: 20px;
        padding: 10px;
    }

    .qhb-modal-close {
        right: 20px;
    }
}