/* Homestay Room Detail Template - Modern UI */

/* Container */
.hsb-room-detail-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hsb-quick-booking-wrapper {
    max-width: 1250px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hsb-quick-booking-main-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
    color: #1a1a1a;
}

.hsb-room-detail-container {
    display: grid;
    grid-template-columns: 1fr 450px;
    gap: 40px;
}

/* Left Column */
.hsb-room-left-column {
    min-width: 0;
}

.hsb-room-left-column h1,
.hsb-room-left-column h2,
.hsb-room-left-column h3,
.hsb-room-left-column h4{
    font-family: 'DIN Condensed' !important;
}

/* Gallery Section */
.hsb-gallery-section {
    margin-bottom: 40px;
    border-radius: 16px;
    overflow: hidden;
}

.hsb-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.hsb-gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
    background: #f5f5f5;
}

.hsb-gallery-single {
    grid-column: span 2;
    aspect-ratio: 16/9;
    width: 100%;
    max-height: 200px;
}

.hsb-gallery-half {
    grid-column: span 1;
    aspect-ratio: 1/1;
    max-height: 200px;
    width: 100%;
}

.hsb-gallery-item img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hsb-gallery-item:hover img {
    transform: scale(1.05);
}

.hsb-gallery-overlay,
.hsb-gallery-more-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 0px;
}

.hsb-gallery-more-overlay {
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsb-gallery-overlay .hsb-view-all-btn, .hsb-gallery-more-overlay .hsb-view-all-btn{
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.hsb-view-all-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0px 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--fs-color-primary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--fs-color-primary);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.hsb-view-all-btn:hover {
    background: var(--fs-color-primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Room Info Section */
.hsb-room-info-section {
    background: #fff;
    padding: 0;
}

.hsb-room-header {
    margin-bottom: 30px;
}

.hsb-room-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.hsb-room-address {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 16px;
}

.hsb-room-address svg {
    flex-shrink: 0;
    color: #ff69b4;
}

.hsb-room-description,
.hsb-room-amenities,
.hsb-room-timeslots-info,
.hsb-room-discount-info {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e0e0e0;
}

.hsb-room-description:last-child,
.hsb-room-amenities:last-child,
.hsb-room-timeslots-info:last-child,
.hsb-room-discount-info:last-child {
    border-bottom: none;
}

.hsb-room-info-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.hsb-room-description p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
}

/* Amenities Grid */
.hsb-amenities-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hsb-amenity-item {
    display: flex;
    gap: 8px;
    padding: 5px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.hsb-amenity-item:hover {
    background: #fff;
    border-color: #ffb3d9;
    box-shadow: 0 4px 12px rgba(255, 179, 217, 0.15);
    transform: translateY(-2px);
}

.hsb-amenity-icon {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsb-amenity-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hsb-amenity-icon-default {
    background: linear-gradient(135deg, #ffb3d9 0%, #ff9fcf 100%);
    color: #fff;
}

.hsb-amenity-content {
    flex: 1;
    display: flex;
    align-items: center;
}

.hsb-amenity-title {
    padding-top: 3px;
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}

.hsb-amenity-description {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* Time Slots Info */
.hsb-timeslots-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hsb-timeslot-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.hsb-timeslot-info-item:hover {
    background: #fff;
    border-color: #ffb3d9;
    box-shadow: 0 2px 8px rgba(255, 179, 217, 0.2);
}

.hsb-timeslot-info-time {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hsb-timeslot-info-time svg {
    color: #ffb3d9;
    flex-shrink: 0;
}

.hsb-timeslot-info-time div {
    display: flex;
    flex-direction: column;
}

.hsb-timeslot-info-time strong {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.hsb-timeslot-info-time span {
    font-size: 14px;
    color: #666;
}

.hsb-timeslot-info-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff69b4;
}

/* Discount Info */
.hsb-discount-content {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #fff5fb 0%, #ffe6f0 100%);
    border-radius: 12px;
    border: 2px solid #ffb3d9;
}

.hsb-discount-content svg {
    color: #ff69b4;
    flex-shrink: 0;
    margin-top: 2px;
}

.hsb-discount-content div {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

/* Right Column - Sticky Booking Form */
.hsb-room-right-column {
    position: relative;
}

.hsb-booking-sticky {
    position: sticky;
    top: 40px;
}

/* Override booking wrapper for template */
.hsb-room-right-column .hsb-booking-wrapper {
    margin: 0;
    max-width: none;
}

.hsb-room-right-column .hsb-booking-container {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--fs-color-primary);
}



/* Lightbox Styles */
.hsb-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsb-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
}

.hsb-lightbox-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsb-lightbox-image-container {
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hsb-lightbox-image-container img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.hsb-lightbox-close,
.hsb-lightbox-prev,
.hsb-lightbox-next {
    position: absolute;
    background: rgba(122, 122, 122, 0.2);
    backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 12px;
    border-radius: 999px;
    transition: all 0.3s;
    z-index: 10;
    line-height: 0;
    min-height: 0px;
    margin-right: 0 !important;
    margin-bottom: 0 !important;
}

.hsb-lightbox-close:hover,
.hsb-lightbox-prev:hover,
.hsb-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.hsb-lightbox-close {
    top: 20px;
    right: 20px;
}

.hsb-lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hsb-lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.hsb-lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.hsb-lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.hsb-lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
}

#hsb-booking-form{
    margin-bottom: 0px !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .hsb-room-detail-container {
        grid-template-columns: 1fr 400px;
        gap: 30px;
    }
}

@media (max-width: 992px) {
    .hsb-room-detail-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hsb-booking-sticky {
        position: static;
    }
    
    /* .hsb-room-right-column {
        order: -1;
    } */
}

@media (max-width: 768px) {
    .hsb-room-detail-wrapper {
        padding: 20px 15px;
    }
    
    .hsb-room-title {
        font-size: 24px;
    }
    
    .hsb-room-info-section h2 {
        font-size: 20px;
    }
    
    .hsb-amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .hsb-gallery-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    
    .hsb-gallery-single,
    .hsb-gallery-half {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
    
    .hsb-view-all-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .hsb-gallery-overlay {
        padding: 0px;
    }
    
    .hsb-timeslot-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .hsb-lightbox-prev,
    .hsb-lightbox-next {
        padding: 8px;
    }
    
    .hsb-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hsb-room-info-section > * {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hsb-room-header {
    animation-delay: 0.1s;
}

.hsb-room-description {
    animation-delay: 0.2s;
}

.hsb-room-amenities {
    animation-delay: 0.25s;
}

.hsb-room-timeslots-info {
    animation-delay: 0.3s;
}

.hsb-room-discount-info {
    animation-delay: 0.4s;
}
