/* ============================================
   Hotel Booking Landing Page
============================================ */

#hotel-booking-page {

    /* Section Header (Reusable) */
    .section-header {
        text-align: center;
        margin-bottom: 40px;

        h2 {
            color: var(--fc-title);
            font-size: var(--fs-xxxl);
            font-weight: var(--fw-bold);
            margin-bottom: 10px;

            span {
                color: var(--orange);
            }
        }

        p {
            color: var(--text-muted);
            font-size: var(--fs-md);
            margin-bottom: 0;
        }

        @media (max-width: 768px) {
            & {
                margin-bottom: 30px;
            }

            h2 {
                font-size: var(--fs-xxl);
            }
        }

        @media (max-width: 576px) {
            h2 {
                font-size: var(--fs-xl);
            }

            p {
                font-size: var(--fs-sm);
            }
        }
    }

    /* ============================================
       Section: Hero + Search Widgets
    ============================================ */
    .hotel-hero {
        position: relative;
        /* ให้ dropdown ของ widget ลอยทับ section ถัดไปได้ */
        z-index: 10;

        .hero-wrapper {
            position: relative;
            background-image: linear-gradient(180deg, rgba(20, 20, 30, 0.55), rgba(20, 20, 30, 0.35)), url('../images/banner/banner-hotel-3.webp');
            background-size: cover;
            background-position: center;
            padding: 80px 0 60px;

            .hero-content {
                text-align: center;
                max-width: 1100px;
                margin: 0 auto 35px;

                h1 {
                    color: var(--white);
                    font-size: 36px;
                    font-weight: var(--fw-bold);
                    margin-bottom: 15px;
                    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);

                    span:first-of-type {
                        color: var(--orange);
                    }

                    .brand {
                        color: var(--white);

                        span {
                            color: var(--orange);
                        }
                    }
                }

                p {
                    color: rgba(255, 255, 255, 0.9);
                    font-size: var(--fs-md);
                    margin-bottom: 0;
                    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
                }
            }

            @media (max-width: 992px) {
                & {
                    padding: 60px 0 45px;
                }

                .hero-content {
                    h1 {
                        font-size: var(--fs-xxxl);
                    }
                }
            }

            @media (max-width: 768px) {
                & {
                    padding: 45px 0 35px;
                }

                .hero-content {
                    margin-bottom: 25px;

                    h1 {
                        font-size: var(--fs-xxl);
                    }

                    p {
                        font-size: var(--fs-sm);
                    }
                }
            }
        }

        /* Search Card (Booking / Agoda Widgets) */
        .hotel-search-card {
            position: relative;
            z-index: 20;
            max-width: 1100px;
            margin: 0 auto;
            background-color: var(--white);
            border-radius: 15px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
            /* ห้ามใช้ overflow: hidden — จะตัด dropdown รายชื่อโรงแรมของ widget */
            overflow: visible;

            .card-header {
                display: flex;
                justify-content: center;
                padding: 16px 16px 0;
                background-color: var(--white);
                border-bottom: none;
                border-radius: 15px 15px 0 0;

                .header-tabs {
                    display: flex;
                    gap: 8px;
                    background-color: var(--bg-color);
                    border: 1px solid var(--border-light);
                    border-radius: 50px;
                    padding: 5px;

                    .tab-button {
                        display: flex;
                        align-items: center;
                        gap: 8px;
                        padding: 9px 28px;
                        border: none;
                        border-radius: 50px;
                        background-color: transparent;
                        color: var(--text-light);
                        font-size: var(--fs-sm);
                        font-weight: var(--fw-bold);
                        white-space: nowrap;
                        cursor: pointer;
                        transition: all 0.25s ease;

                        i {
                            font-size: var(--fs-md);
                        }

                        &:hover {
                            color: var(--orange);
                        }

                        &.active {
                            background-color: var(--orange);
                            color: var(--white);
                        }
                    }
                }
            }

            .card-body {
                padding: 20px;
                min-height: 200px;

                .widget-panel {
                    display: none;

                    &.active {
                        display: block;
                    }

                    .widget-loading {
                        display: flex;
                        flex-direction: column;
                        align-items: center;
                        justify-content: center;
                        gap: 12px;
                        min-height: 170px;
                        color: var(--text-muted);
                        font-size: var(--fs-sm);

                        .spinner-border {
                            color: var(--orange);
                        }
                    }
                }

                .card-note {
                    display: flex;
                    align-items: flex-start;
                    gap: 8px;
                    margin-top: 14px;
                    padding-top: 12px;
                    border-top: 1px dashed var(--border-light);
                    color: var(--text-muted);
                    font-size: var(--fs-xs);
                    line-height: 1.6;

                    i {
                        color: var(--orange);
                        flex-shrink: 0;
                        margin-top: 1px;
                    }
                }
            }

            @media (max-width: 768px) {
                .card-header {
                    .header-tabs {
                        width: 100%;

                        .tab-button {
                            flex: 1;
                            justify-content: center;
                        }
                    }
                }

                .card-body {
                    padding: 14px;
                }
            }
        }
    }

    /* ============================================
       Section: Trust Stats
    ============================================ */
    .hotel-stats {
        background-color: var(--white);
        padding: 40px 0;
        border-bottom: 1px solid var(--border-color);

        .stat-list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;

            .stat-item {
                display: flex;
                align-items: center;
                justify-content: center;
                gap: 14px;

                .stat-icon {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 52px;
                    height: 52px;
                    background-color: var(--pearl);
                    border-radius: 50%;
                    flex-shrink: 0;

                    i {
                        color: var(--orange);
                        font-size: var(--fs-xxl);
                    }
                }

                .stat-content {
                    display: flex;
                    flex-direction: column;

                    strong {
                        color: var(--fc-title);
                        font-size: var(--fs-xl);
                        font-weight: var(--fw-bold);
                        line-height: 1.2;
                    }

                    span {
                        color: var(--text-muted);
                        font-size: var(--fs-xs);
                    }
                }
            }

            @media (max-width: 992px) {
                & {
                    grid-template-columns: repeat(2, 1fr);
                }

                .stat-item {
                    justify-content: flex-start;
                }
            }

            @media (max-width: 576px) {
                & {
                    gap: 16px;
                }
            }
        }

        @media (max-width: 768px) {
            & {
                padding: 30px 0;
            }
        }
    }

    /* ============================================
       Section: Popular Destinations
    ============================================ */
    .hotel-destinations {
        background-color: var(--bg-color);
        padding: 70px 0;

        .card-list {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;

            .card-item {
                display: block;
                background-color: var(--white);
                border: 1px solid var(--border-light);
                border-radius: 12px;
                overflow: hidden;
                text-decoration: none;
                transition: all 0.25s ease;

                &:hover {
                    transform: translateY(-4px);
                    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

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

                    .card-content {
                        .card-link {
                            gap: 10px;
                        }
                    }
                }

                .card-image {
                    position: relative;
                    height: 180px;
                    overflow: hidden;

                    img {
                        width: 100%;
                        height: 100%;
                        object-fit: cover;
                        transition: transform 0.4s ease;
                    }
                }

                .card-content {
                    padding: 16px;

                    h3 {
                        color: var(--fc-title);
                        font-size: var(--fs-lg);
                        font-weight: var(--fw-bold);
                        margin-bottom: 6px;
                    }

                    p {
                        color: var(--text-light);
                        font-size: var(--fs-sm);
                        margin-bottom: 10px;
                    }

                    .card-link {
                        display: inline-flex;
                        align-items: center;
                        gap: 6px;
                        color: var(--orange);
                        font-size: var(--fs-sm);
                        font-weight: var(--fw-bold);
                        transition: gap 0.2s ease;
                    }
                }
            }

            @media (max-width: 992px) {
                & {
                    grid-template-columns: repeat(2, 1fr);
                    gap: 20px;
                }
            }

            @media (max-width: 576px) {
                & {
                    grid-template-columns: 1fr;
                    gap: 16px;
                }

                .card-item {
                    .card-image {
                        height: 160px;
                    }
                }
            }
        }

        @media (max-width: 768px) {
            & {
                padding: 45px 0;
            }
        }
    }

    /* ============================================
       Section: Accommodation Types
    ============================================ */
    .hotel-types {
        background-color: var(--white);
        padding: 70px 0;

        .type-list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 24px;

            .type-item {
                text-align: center;
                padding: 30px 20px;
                background-color: var(--bg-color);
                border-radius: 12px;
                transition: all 0.25s ease;

                &:hover {
                    transform: translateY(-4px);
                    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
                }

                .type-icon {
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    width: 64px;
                    height: 64px;
                    margin: 0 auto 16px;
                    background-color: var(--white);
                    border: 1px solid var(--border-light);
                    border-radius: 50%;

                    i {
                        color: var(--orange);
                        font-size: var(--fs-xxl);
                    }
                }

                .type-content {
                    h3 {
                        color: var(--fc-title);
                        font-size: var(--fs-md);
                        font-weight: var(--fw-bold);
                        margin-bottom: 8px;
                    }

                    p {
                        color: var(--text-light);
                        font-size: var(--fs-sm);
                        margin-bottom: 0;
                    }
                }
            }

            @media (max-width: 992px) {
                & {
                    grid-template-columns: repeat(2, 1fr);
                    gap: 16px;
                }
            }

            @media (max-width: 576px) {
                & {
                    grid-template-columns: 1fr;
                }

                .type-item {
                    display: flex;
                    align-items: center;
                    text-align: left;
                    gap: 16px;
                    padding: 16px;

                    .type-icon {
                        margin: 0;
                        flex-shrink: 0;
                    }
                }
            }
        }

        @media (max-width: 768px) {
            & {
                padding: 45px 0;
            }
        }
    }

    /* ============================================
       Section: Bus + Hotel Connect
    ============================================ */
    .hotel-connect {
        background-color: var(--bg-color);
        padding: 70px 0;

        .connect-wrapper {
            display: grid;
            grid-template-columns: 1.2fr 1fr;
            gap: 40px;
            align-items: center;
            background-color: var(--white);
            border: 1px solid var(--border-light);
            border-radius: 14px;
            padding: 40px;

            .connect-content {
                .eyebrow {
                    display: inline-block;
                    color: var(--orange);
                    font-size: var(--fs-sm);
                    font-weight: var(--fw-bold);
                    text-transform: uppercase;
                    letter-spacing: 1px;
                    margin-bottom: 10px;
                }

                h2 {
                    color: var(--fc-title);
                    font-size: var(--fs-xxl);
                    font-weight: var(--fw-bold);
                    margin-bottom: 12px;
                }

                p {
                    color: var(--text-light);
                    font-size: var(--fs-md);
                    margin-bottom: 0;
                }
            }

            .connect-links {
                display: flex;
                flex-direction: column;
                gap: 12px;

                .link-item {
                    display: flex;
                    align-items: center;
                    gap: 12px;
                    padding: 14px 18px;
                    background-color: var(--bg-color);
                    border: 1px solid var(--border-light);
                    border-radius: 10px;
                    color: var(--text-color);
                    font-size: var(--fs-sm);
                    font-weight: var(--fw-bold);
                    text-decoration: none;
                    transition: all 0.2s ease;

                    i:first-child {
                        color: var(--orange);
                        font-size: var(--fs-lg);
                    }

                    .link-arrow {
                        margin-left: auto;
                        color: var(--text-muted);
                        transition: transform 0.2s ease;
                    }

                    &:hover {
                        border-color: var(--orange);
                        color: var(--orange);

                        .link-arrow {
                            color: var(--orange);
                            transform: translateX(4px);
                        }
                    }
                }
            }

            @media (max-width: 992px) {
                & {
                    grid-template-columns: 1fr;
                    gap: 24px;
                    padding: 24px;
                }
            }

            @media (max-width: 576px) {
                .connect-content {
                    h2 {
                        font-size: var(--fs-xl);
                    }

                    p {
                        font-size: var(--fs-sm);
                    }
                }
            }
        }

        @media (max-width: 768px) {
            & {
                padding: 45px 0;
            }
        }
    }

    /* ============================================
       Section: FAQ
    ============================================ */
    .hotel-faq {
        background-color: var(--white);
        padding: 70px 0;

        .faq-list {
            max-width: 860px;
            margin: 0 auto;
            display: flex;
            flex-direction: column;
            gap: 12px;

            .faq-item {
                background-color: var(--bg-color);
                border: 1px solid var(--border-light);
                border-radius: 10px;
                overflow: hidden;

                .faq-question {
                    display: flex;
                    justify-content: space-between;
                    align-items: center;
                    gap: 16px;
                    width: 100%;
                    padding: 18px 20px;
                    border: none;
                    background: none;
                    text-align: left;
                    color: var(--fc-title);
                    font-size: var(--fs-md);
                    font-weight: var(--fw-bold);
                    cursor: pointer;

                    i {
                        color: var(--text-muted);
                        transition: transform 0.25s ease;
                        flex-shrink: 0;
                    }
                }

                .faq-answer {
                    display: none;
                    padding: 0 20px 18px;

                    p {
                        color: var(--text-light);
                        font-size: var(--fs-sm);
                        line-height: 1.7;
                        margin-bottom: 0;
                    }
                }

                &.active {
                    border-color: var(--orange);

                    .faq-question {
                        color: var(--orange);

                        i {
                            color: var(--orange);
                            transform: rotate(180deg);
                        }
                    }

                    .faq-answer {
                        display: block;
                    }
                }
            }

            @media (max-width: 576px) {
                .faq-item {
                    .faq-question {
                        padding: 14px 16px;
                        font-size: var(--fs-sm);
                    }

                    .faq-answer {
                        padding: 0 16px 14px;
                    }
                }
            }
        }

        @media (max-width: 768px) {
            & {
                padding: 45px 0;
            }
        }
    }

    /* ============================================
       Section: Intro (SEO Content)
    ============================================ */
    .hotel-intro {
        /* Overlay มืดโทนเดียวกับ Hero เพื่อให้ตัวอักษรสีขาวอ่านง่ายบนภาพ */
        background-image: linear-gradient(180deg, rgba(20, 20, 30, 0.7), rgba(20, 20, 30, 0.55)), url('../images/banner/banner-hotel-0.webp');
        background-size: cover;
        background-position: center;
        padding: 70px 0;

        .intro-body {
            max-width: 860px;
            margin: 0 auto;
            text-align: center;

            .eyebrow {
                display: inline-block;
                color: var(--orange);
                font-size: var(--fs-sm);
                font-weight: var(--fw-bold);
                text-transform: uppercase;
                letter-spacing: 1px;
                margin-bottom: 10px;
                text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
            }

            h2 {
                color: var(--white);
                font-size: var(--fs-xxl);
                font-weight: var(--fw-bold);
                margin-bottom: 18px;
                text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
            }

            p {
                color: rgba(255, 255, 255, 0.88);
                font-size: var(--fs-md);
                line-height: 1.8;
                text-align: left;
                margin-bottom: 16px;
                text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);

                &:last-child {
                    margin-bottom: 0;
                }
            }
        }

        @media (max-width: 768px) {
            & {
                padding: 45px 0;
            }

            .intro-body {
                h2 {
                    font-size: var(--fs-xl);
                }

                p {
                    font-size: var(--fs-sm);
                }
            }
        }
    }
}