/* =========================================
   Modern Homepage Styles for Hotel Template 
   Using Bootstrap 5.3.8 classes & custom tokens
   ========================================= */

/* =========================================
   1. CSS Variables & Theme Tokens
   ========================================= */
:root {
    --theme-surface: #fdfbf7; 
    --theme-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --theme-shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --theme-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --theme-shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

/* =========================================
   2. Base & Typography
   ========================================= */


section {
    padding: 100px 0;
    overflow: hidden;
}

.bg-surface {
    background-color: var(--theme-surface);
}

/* Section Titles */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title p {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-title.text-start p {
    margin-left: 0;
}

/* =========================================
   3. About Us Section
   ========================================= */
/* Premium Collage Design */
.about-collage-v2 {
    position: relative;
    padding: 30px;
}

.about-collage-v2 .main-img-v2 {
    width: 85%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.about-collage-v2 .sub-img-v2 {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 280px;
    object-fit: cover;
    border-radius: 12px;
    border: 8px solid #fff;
    box-shadow: var(--theme-shadow-md);
}

.about-collage-v2 .experience-badge-v2 {
    position: absolute;
    bottom: 20px;
    left: 0;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--theme-shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 250px;
}

.experience-badge-v2 .icon-box {
    background: #f8f6f2;
    padding: 10px;
    border-radius: 6px;
    color: var(--theme-primary-color);
}

/* Text Elements */
.about-prefix {
    color: var(--theme-primary-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.about-prefix::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--theme-primary-color);
}

.about-prefix i {
    font-size: 10px;
}

.about-selling-points {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.selling-point {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.selling-point i {
    color: var(--theme-primary-color);
}

/* 4-Image About Us Grid */
.about-gallery-grid {
    display: flex;
    gap: 20px;
    position: relative;
    align-items: center;
    padding: 20px 0;
}

.about-gallery-grid .grid-col {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.about-gallery-grid .grid-col-1 {
    transform: translateY(-30px);
}

.about-gallery-grid .grid-col-2 {
    transform: translateY(30px);
}

.about-gallery-grid img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.6s ease;
}

.about-gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: var(--theme-shadow-lg) !important;
}

.about-gallery-grid .floating-badge {
    position: absolute;
    bottom: -10px;
    left: -20px;
    background: #ffffff;
    padding: 20px 35px;
    border-radius: 16px;
    z-index: 2;
    border-left: 6px solid var(--theme-primary-color);
}

@media (max-width: 991px) {
    .about-gallery-grid {
        max-width: 500px;
        margin: 0 auto 50px auto;
    }
    .about-gallery-grid .grid-col-1 {
        transform: translateY(-15px);
    }
    .about-gallery-grid .grid-col-2 {
        transform: translateY(15px);
    }
    .about-gallery-grid .floating-badge {
        left: 2%;
        width: max-content;
    }
}

/* =========================================
   4. Standard Room Cards
   ========================================= */
.room-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: var(--theme-transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: var(--theme-shadow-sm);
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--theme-shadow-lg);
}

.room-card .card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 24px;
}

.room-card .card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.room-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.room-card:hover img {
    transform: scale(1.05);
}

.room-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--theme-primary-color);
    z-index: 2;
}

.room-description {
    position: relative;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.room-description.truncated {
    max-height: 4.8em; /* Roughly 3 lines */
}

.amenity-icons {
    display: flex;
    gap: 15px;
    margin: 15px 0;
}

.room-card .btn-book {
    margin-top: auto;
    width: 100%;
}

/* =========================================
   5. Premium Rooms Carousel (Fluid Layout)
   ========================================= */
.rooms-premium {
    background-color: var(--theme-surface);
}

#premiumRoomCarousel {
    padding: 0 70px; 
}

.premium-room-layout {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px 0;
}

.room-image-pane {
    width: 65%;
    height: 480px;
    position: relative;
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.room-image-pane img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    object-position: center; 
    pointer-events: none;
}

.room-info-card {
    position: relative;
    z-index: 2;
    background: #ffffff;
    width: 45%; 
    margin-left: -10%; 
    padding: 40px 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

/* Carousel Controls & Arrows */
.premium-arrow {
    width: 70px;
    opacity: 1;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
}

.premium-arrow.carousel-control-prev {
    left: 0;
    justify-content: flex-start;
}

.premium-arrow.carousel-control-next {
    right: 0;
    justify-content: flex-end;
}

.premium-indicators {
    position: relative;
    margin-top: 30px;
    margin-bottom: 0;
}

.premium-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    margin: 0 8px;
    opacity: 1;
    transition: all 0.3s ease;
}

.premium-indicators .active {
    background-color: var(--theme-primary-color);
    transform: scale(1.3);
}

@media (max-width: 991px) {
    #premiumRoomCarousel {
        padding: 0;
    }
    
    .premium-room-layout {
        flex-direction: column;
        padding: 0;
    }
    
    .room-image-pane {
        width: 100%;
        height: 280px; 
    }
    
    .room-image-pane img {
        border-radius: 8px 8px 0 0;
    }
    
    .room-info-card {
        width: 100%;
        margin-left: 0; 
        padding: 25px 20px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        border: 1px solid #eaeaea;
        border-top: none;
        border-radius: 0 0 8px 8px;
    }

    .premium-indicators,
    .premium-arrow {
        display: none !important;
    }
}

/* =========================================
   6. Amenities Section
   ========================================= */
/* Layout 1: Zig-Zag Alternating Grid */
.amenity-zigzag-row {
    transition: var(--theme-transition);
    border: 1px solid rgba(0,0,0,0.03);
}

.amenity-zigzag-row:hover {
    box-shadow: var(--theme-shadow-lg) !important;
    transform: translateY(-5px);
}

.amenity-zigzag-img-wrapper {
    height: 100%;
    min-height: 400px; 
}

.amenity-zigzag-img-wrapper img {
    height: 100%;
    min-height: 400px;
    object-position: center;
}

.amenity-zigzag-content {
    max-width: 500px;
    margin: 0 auto;
}

/* Layout 2: Icon Cards */
.amenity-icon-card {
    border-radius: 12px;
    overflow: hidden; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--theme-transition);
    position: relative;
}

.amenity-icon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--theme-shadow-lg);
}

.amenity-icon-wrapper {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.amenity-icon-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.amenity-watermark {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 180px;
    height: 180px;
    opacity: 0.03; 
    pointer-events: none; 
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.amenity-watermark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%); 
}

.amenity-icon-card:hover .amenity-watermark {
    transform: translateY(-50%) scale(1.15) rotate(-5deg);
}

@media (max-width: 991px) {
    /* Zig Zag Layout Adjustments */
    .amenity-zigzag-img-wrapper,
    .amenity-zigzag-img-wrapper img {
        min-height: 250px;
    }
    
    .amenity-zigzag-content {
        text-align: center;
        padding-top: 10px;
    }
    
    .amenity-zigzag-content .btn-brown {
        margin-left: auto;
        margin-right: auto;
        display: inline-block;
    }

    /* Icon Card Adjustments */
    .amenity-icon-card {
        padding: 30px !important; 
    }
    
    .amenity-watermark {
        width: 140px;
        height: 140px;
    }
}

/* =========================================
   7. FAQ Section (Accordion)
   ========================================= */
.custom-faq-accordion .accordion-item {
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.03);
    border-radius: 16px !important;
    margin-bottom: 20px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: var(--theme-transition);
}

.custom-faq-accordion .accordion-item:hover {
    box-shadow: var(--theme-shadow-md);
    transform: translateY(-3px);
    border-color: rgba(179, 147, 89, 0.2); 
}

.custom-faq-accordion .accordion-button {
    padding: 25px 30px;
    background-color: transparent;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: none !important;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

.custom-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--theme-primary-color);
    background-color: transparent;
}

.custom-faq-accordion .accordion-button::after {
    background-image: none; 
    content: '\f067'; /* FontAwesome Plus */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.9rem;
    color: var(--theme-primary-color);
    background-color: #f8f6f2; 
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--theme-transition);
    margin-left: auto;
}

.custom-faq-accordion .accordion-button:not(.collapsed)::after {
    background-image: none;
    content: '\f068'; /* FontAwesome Minus */
    transform: rotate(180deg);
    background-color: var(--theme-primary-color);
    color: #ffffff;
}

.custom-faq-accordion .accordion-body {
    padding: 0 30px 25px 30px;
    color: var(--theme-text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

@media (max-width: 991px) {
    .faq-header-sticky {
        position: relative !important;
        top: 0 !important;
        margin-bottom: 20px;
        text-align: center;
    }
    
    .faq-header-sticky .text-muted {
        margin-left: auto;
        margin-right: auto;
    }
    
    .custom-faq-accordion .accordion-button {
        padding: 20px;
        font-size: 1.05rem;
    }
    
    .custom-faq-accordion .accordion-body {
        padding: 0 20px 20px 20px;
    }
    
    .custom-faq-accordion .accordion-button::after {
        min-width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
}