/* ==========================================================
   ESCAPE TOURISMS
   BOOKING POPUP
========================================================== */


/* ==========================================================
   BOOKING OVERLAY
========================================================== */

.bookingSection {

    position: fixed;

    inset: 0;

    z-index: 6000;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 30px;

    background:
        rgba(0, 0, 0, .38);

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity .35s ease,
        visibility .35s ease;

}


/* ==========================================================
   OPEN STATE
========================================================== */

.bookingSection.active {

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

}


/* ==========================================================
   BOOKING CARD
========================================================== */

.bookingCard {

    position: relative;

    width: min(1000px, 100%);

    max-height:
        calc(100vh - 60px);

    overflow-y: auto;

    padding: 42px;

    border:
        1px solid rgba(255, 255, 255, .16);

    border-radius: 32px;

    background:
        rgba(10, 24, 25, .86);

    backdrop-filter:
        blur(30px);

    -webkit-backdrop-filter:
        blur(30px);

    box-shadow:
        0 30px 100px rgba(0, 0, 0, .45);

    color: #fff;

    transform:
        translateY(30px) scale(.97);

    transition:
        transform .45s cubic-bezier(.22, 1, .36, 1);

}


/* OPEN CARD */

.bookingSection.active .bookingCard {

    transform:
        translateY(0) scale(1);

}


/* ==========================================================
   SCROLLBAR
========================================================== */

.bookingCard::-webkit-scrollbar {

    width: 5px;

}

.bookingCard::-webkit-scrollbar-track {

    background: transparent;

}

.bookingCard::-webkit-scrollbar-thumb {

    background:
        rgba(255, 255, 255, .20);

    border-radius: 999px;

}


/* ==========================================================
   HEADER
========================================================== */

.bookingHeader {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 35px;

}


.bookingEyebrow {

    display: inline-block;

    margin-bottom: 10px;

    color: #8dd8d2;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;

}


.bookingHeader h2 {

    margin: 0 0 10px;

    color: #fff;

    font-size:
        clamp(32px, 4vw, 52px);

    line-height: 1;

}


.bookingHeader p {

    max-width: 560px;

    margin: 0;

    color:
        rgba(255, 255, 255, .68);

    font-size: 14px;

    line-height: 1.7;

}


/* ==========================================================
   CLOSE BUTTON
========================================================== */

.bookingClose {

    width: 44px;

    height: 44px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid rgba(255, 255, 255, .16);

    border-radius: 50%;

    background:
        rgba(255, 255, 255, .08);

    color: #fff;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;

}


.bookingClose:hover {

    background:
        rgba(255, 255, 255, .18);

    transform:
        rotate(90deg);

}


/* ==========================================================
   FORM
========================================================== */

#bookingForm {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 20px;

}


/* ==========================================================
   FIELD
========================================================== */

.bookingField {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.bookingFieldFull {

    grid-column: 1 / -1;

}


.bookingField label {

    color:
        rgba(255, 255, 255, .78);

    font-size: 13px;

    font-weight: 600;

}


/* ==========================================================
   INPUTS
========================================================== */

.bookingField input,
.bookingField select,
.bookingField textarea {

    width: 100%;

    border:
        1px solid rgba(255, 255, 255, .14);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, .07);

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease;

}


.bookingField input,
.bookingField select {

    height: 54px;

    padding:
        0 16px;

}


.bookingField textarea {

    min-height: 110px;

    padding:
        15px 16px;

    resize: vertical;

}


.bookingField input::placeholder,
.bookingField textarea::placeholder {

    color:
        rgba(255, 255, 255, .42);

}


.bookingField select option {

    background: #102321;

    color: #fff;

}


/* ==========================================================
   INPUT FOCUS
========================================================== */

.bookingField input:focus,
.bookingField select:focus,
.bookingField textarea:focus {

    border-color:
        rgba(11, 95, 88, .95);

    background:
        rgba(255, 255, 255, .10);

    box-shadow:
        0 0 0 3px rgba(11, 95, 88, .18);

}


/* ==========================================================
   SEND ENQUIRY AREA
========================================================== */

.bookingSubmitArea {

    grid-column: 1 / -1;

    display: flex;

    align-items: center;

    gap: 18px;

    margin-top: 8px;

}


/* ==========================================================
   SEND ENQUIRY BUTTON
========================================================== */

.bookingSubmit {

    min-height: 54px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    padding:
        0 28px;

    border: 0;

    border-radius: 999px;

    background:
        linear-gradient(135deg,
            #0b5f58,
            #15803c);

    color: #fff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 10px 30px rgba(11, 95, 88, .20);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}


.bookingSubmit:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 16px 38px rgba(11, 95, 88, .38);

}


.bookingSubmit:active {

    transform:
        translateY(0);

}


.bookingSubmit i {

    font-size: 18px;

}


.bookingSubmitArea small {

    color:
        rgba(255, 255, 255, .48);

    font-size: 12px;

}


/* ==========================================================
   MOBILE BOOK NOW → HIDE WHEN BOOKING OPEN
========================================================== */

/*
   JS will add .bookingOpen to body.
   This hides only the mobile external Book Now.
*/

body.bookingOpen .mobileBookBtn {

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transform:
        translateY(20px);

}


/* ==========================================================
   FLOATING BUTTONS BEHIND BOOKING
========================================================== */

body.bookingOpen .floatingButtons {

    z-index: 100;

    pointer-events: none;

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .bookingSection {

        align-items: flex-end;

        justify-content: center;

        padding:
            0 12px 86px;

        background:
            rgba(0, 0, 0, .30);

    }


    .bookingCard {

        width: 100%;

        max-height:
            calc(100svh - 100px);

        padding:
            26px 18px;

        border-radius:
            28px 28px 20px 20px;

        transform:
            translateY(110%);

    }


    .bookingSection.active .bookingCard {

        transform:
            translateY(0);

    }


    /* HEADER */

    .bookingHeader {

        gap: 15px;

        margin-bottom: 24px;

    }


    .bookingEyebrow {

        font-size: 10px;

        margin-bottom: 8px;

    }


    .bookingHeader h2 {

        font-size: 30px;

    }


    .bookingHeader p {

        font-size: 13px;

        line-height: 1.55;

    }


    /* CLOSE */

    .bookingClose {

        width: 40px;

        height: 40px;

    }


    /* FORM */

    #bookingForm {

        grid-template-columns: 1fr;

        gap: 15px;

    }


    .bookingFieldFull {

        grid-column: auto;

    }


    /* SUBMIT */

    .bookingSubmitArea {

        grid-column: auto;

        flex-direction: column;

        align-items: stretch;

        gap: 10px;

        margin-top: 5px;

        padding-bottom: 4px;

    }


    .bookingSubmit {

        width: 100%;

        min-height: 54px;

    }


    .bookingSubmitArea small {

        text-align: center;

    }

}


/* ==========================================================
   VERY SMALL MOBILE
========================================================== */

@media (max-width: 380px) {

    .bookingSection {

        padding:
            0 8px 78px;

    }


    .bookingCard {

        padding:
            22px 14px;

    }


    .bookingHeader h2 {

        font-size: 27px;

    }


    .bookingField input,
    .bookingField select {

        height: 50px;

    }

}

/* ==========================================================
   MOBILE BOOK NOW → SEND ENQUIRY INSIDE FORM
========================================================== */

.mobileBookingSubmit {

    width: 100% !important;

    min-height: 54px !important;

    display: inline-flex !important;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding: 0 24px;

    border: 0 !important;

    border-radius: 999px !important;

    background:
        linear-gradient(135deg,
            #0b5f58,
            #15803c) !important;

    color: #fff !important;

    font-family: inherit;

    font-size: 25px;

    font-weight: 700;

    box-shadow:
        0 10px 30px rgba(11, 95, 88, .20);

}


/* Hide original desktop-style submit on mobile
   because Book Now itself becomes Send Enquiry */

@media (max-width: 768px) {

    .bookingSubmitArea .bookingSubmit {

        display: none;

    }


    .bookingSubmitArea {

        display: flex;

        flex-direction: column;

        align-items: stretch;

    }

}

/* ==========================================================
   MOBILE BOOK NOW → SEND ENQUIRY
   FINAL OVERRIDE
========================================================== */

@media (max-width: 768px) {

    /* The Book Now button is moved inside the form by JS */

    body.bookingOpen .bookingSubmitArea .mobileBookBtn {

        position: static !important;

        display: inline-flex !important;

        width: 100% !important;

        height: 54px !important;

        min-height: 54px !important;

        margin: 0 !important;

        padding: 0 24px !important;

        align-items: center !important;

        justify-content: center !important;

        gap: 10px !important;

        border: 0 !important;

        border-radius: 999px !important;

        background:
            linear-gradient(135deg,
                #0b5f58,
                #15803c) !important;

        color: #fff !important;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: none !important;

        cursor: pointer !important;

        box-shadow:
            0 10px 30px rgba(11, 95, 88, .20);

    }


    /* Text */

    body.bookingOpen .bookingSubmitArea .mobileBookBtn .bookingBtnText {

        color: #fff !important;

        font-size: 14px !important;

        font-weight: 700 !important;

    }


    /* Calendar icon */

    body.bookingOpen .bookingSubmitArea .mobileBookBtn i {

        color: #fff !important;

        font-size: 17px !important;

    }


    /* Original desktop submit stays hidden on mobile */

    .bookingSubmitArea>.bookingSubmit {

        display: none !important;

    }

}

/* ==========================================================
   MOBILE BOOKING — FINAL BOTTOM SHEET
========================================================== */

@media (max-width: 768px) {

    /* ------------------------------------------
       BOOKING SHEET AT EXACT SCREEN BOTTOM
    ------------------------------------------ */

    .bookingSection {

        align-items: flex-end !important;

        justify-content: center !important;

        padding: 0 !important;

        background:
            rgba(0, 0, 0, .30);

    }


    /* ------------------------------------------
       BOOKING CARD
    ------------------------------------------ */

    .bookingCard {

        position: relative !important;

        width: 100% !important;

        max-width: 100% !important;

        height: 100svh !important;

        max-height: 100svh !important;

        margin: 0 !important;

        padding:
            26px 18px 0 !important;

        border-radius:
            28px 28px 0 0 !important;

        overflow-y: auto !important;

        overscroll-behavior: contain;

    }


    /* ------------------------------------------
       FORM CONTENT
       Leave space for fixed Send Enquiry
    ------------------------------------------ */

    #bookingForm {

        padding-bottom: 92px !important;

    }


    /* ------------------------------------------
       SEND ENQUIRY — ALWAYS AT BOTTOM
    ------------------------------------------ */

    .bookingSubmitArea {

        position: sticky !important;

        bottom: 0 !important;

        z-index: 20 !important;

        width: calc(100% + 36px) !important;

        margin-left: -18px !important;

        margin-right: -18px !important;

        margin-top: 0 !important;

        padding:
            12px 18px 14px !important;

        display: flex !important;

        flex-direction: column !important;

        align-items: stretch !important;

        gap: 8px !important;

        background:
            linear-gradient(to bottom,
                rgba(10, 24, 25, .15),
                rgba(10, 24, 25, .96) 35%) !important;

        backdrop-filter:
            blur(16px);

        -webkit-backdrop-filter:
            blur(16px);

    }


    /* ------------------------------------------
       MOBILE BOOK NOW → SEND ENQUIRY
    ------------------------------------------ */

    body.bookingOpen .bookingSubmitArea .mobileBookBtn {

        position: static !important;

        width: 100% !important;

        height: 54px !important;

        min-height: 54px !important;

        margin: 0 !important;

        display: inline-flex !important;

        align-items: center !important;

        justify-content: center !important;

        gap: 10px !important;

        padding: 0 24px !important;

        border: 0 !important;

        border-radius: 999px !important;

        background:
            linear-gradient(135deg,
                #0b5f58,
                #15803c) !important;

        color: #fff !important;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events: auto !important;

        transform: none !important;

        box-shadow:
            0 10px 30px rgba(11, 95, 88, .28);

    }


    /* ------------------------------------------
       HIDE ORIGINAL SUBMIT
    ------------------------------------------ */

    .bookingSubmitArea>.bookingSubmit {

        display: none !important;

    }


    /* ------------------------------------------
       SMALL WHATSAPP NOTE
    ------------------------------------------ */

    .bookingSubmitArea small {

        margin: 0 !important;

        padding: 0 !important;

        text-align: center !important;

        font-size: 14px !important;

    }

}

/* ==========================================================
   ESCAPE PLAN SUMMARY
========================================================== */

.bookingEscapeSummary {
    margin-top: 6px;
}

.bookingEscapeSummaryCard {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    padding: 16px;

    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 18px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, .065),
            rgba(255, 255, 255, .025));

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        inset 0 -1px 0 rgba(0, 0, 0, .18);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.bookingSummaryItem {
    min-width: 0;
    padding: 11px 12px;

    border: 1px solid rgba(255, 255, 255, .065);
    border-radius: 13px;

    background: rgba(255, 255, 255, .025);
}

.bookingSummaryItem span {
    display: block;

    margin-bottom: 5px;

    color: rgba(255, 255, 255, .35);

    font-size: 8px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.bookingSummaryItem strong {
    display: block;

    color: rgba(255, 255, 255, .82);

    font-size: 11px;
    line-height: 1.45;
    font-weight: 700;

    overflow-wrap: anywhere;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 768px) {

    .bookingEscapeSummaryCard {
        grid-template-columns: 1fr;
        gap: 8px;

        padding: 12px;
        border-radius: 16px;
    }

    .bookingSummaryItem {
        padding: 10px 11px;
    }

}