    /* FLATPICKR - CALENDAR HANDLER */
    /* Style for available dates */
    .flatpickr-calendar.open {
        z-index: 9997;
    }
    .flatpickr-day.available {
        cursor: pointer;
    }
    .flatpickr-day.nextMonthDay.available,
    .flatpickr-day.prevMonthDay.available {
        color: #393939;
        cursor: pointer;
        font-weight: 400;
    }
    .flatpickr-disabled.available,
    .flatpickr-day.past-date-disabled {
        color: rgba(57,57,57,0.1)!important;
        cursor: not-allowed;
        font-weight: 400;
    }
    /* REMOVE THE COMICS BUBBLE */
    .flatpickr-calendar::after,
    .flatpickr-calendar::before {
        display: none !important;
    }

    @media (max-width: 768px) {
        .flatpickr-calendar {
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -60%) !important;
            max-width: 370px;
            min-width: 333px;
            width: 365px;
            max-height: 370px;
            min-height: 333px;
            height: 365px;
            padding: 1rem 0 1.3rem 0!important; 
        }
        .flatpickr-innerContainer {
            width: 100%!important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
        }
        .flatpickr-rContainer {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }
        span.flatpickr-weekday {
            font-size: 17px!important;
        }
        .flatpickr-day {
            font-size: 17px!important;
        }
        .flatpickr-day.nextMonthDay.available,
        .flatpickr-day.prevMonthDay.available {
            color: #000000;
            background-color: #00000000!important;
            border-color: #00000000!important;
            cursor: pointer;
            font-weight: 400;
        }
        .flatpickr-disabled.available,
        .flatpickr-day.past-date-disabled {
            color: rgba(57, 57, 57, 0.1)!important;
            background-color: #00000000!important;
            border-color: #00000000!important;
            cursor: not-allowed;
            font-weight: 400;
        }
        /* REMOVE THE COMICS BUBBLE */
        .flatpickr-calendar::after,
        .flatpickr-calendar::before {
            display: none !important;
        }
        .flatpickr-months .flatpickr-month {
            min-height: 40px;
            height: 40px;
            font-size: 100%!important;
            overflow: visible;
        }
        .flatpickr-monthDropdown-months {
            -webkit-appearance: none!important; /* Remove native styling on iOS */
            appearance: none!important;
            background-color: #F7F6F1!important;
            border-radius: 2rem!important;
            margin: -1.1rem 0 0 .5rem!important;
            left: -.5rem!important;
            line-height: 1.5rem!important;
            padding: .5rem 1.5rem!important;    /* Eliminate extra inner padding */
            overflow: visible!important;        /* Prevent content clipping */
            z-index: 100!important;             /* Ensure the element is above other layers if needed */
            min-width: 100%!important;          /* Give enough room for month names */
            text-align: center;
            text-align-last: center;
          }
        .flatpickr-current-month .flatpickr-monthDropdown-months {
            min-height: 40px;
            height: 40px
        }
        .flatpickr-innerContainer { 
            margin-top: 1rem;
        }
        .flatpickr-current-month .numInputWrapper {
            display: none;
        }
        .flatpickr-day.inRange, 
        .flatpickr-day.prevMonthDay.inRange, 
        .flatpickr-day.nextMonthDay.inRange, 
        .flatpickr-day.today.inRange, 
        .flatpickr-day.prevMonthDay.today.inRange, 
        .flatpickr-day.nextMonthDay.today.inRange, 
        .flatpickr-day:hover, 
        .flatpickr-day.prevMonthDay:hover, 
        .flatpickr-day.nextMonthDay:hover, 
        .flatpickr-day:focus, 
        .flatpickr-day.prevMonthDay:focus, 
        .flatpickr-day.nextMonthDay:focus {
            /* Disable iOS tap highlight */
            /* -webkit-tap-highlight-color: transparent !important; */
            outline: none !important;
            background-color: #00000000!important;
            border-color: #00000000!important;
        }
    }

 /* BOOKING BAR STYLE */
        /* Container */
        #hullo-booking {
            max-width: 1300px;
            min-width: 769px;
            margin: 1rem auto;
            padding: 0;
            background: #fff;
            border-radius: 1rem;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }

        /* =============== DESKTOP LAYOUT (default) =============== */
        #hullo-booking-form {
            display: grid;
            /* 3 columns: left-col (ports), middle-col (2 rows inside), right-col (Go!) */
            grid-template-columns: 1fr 2fr auto;
            align-items: center;
        }

        /* Left Col: Ports */
        .port-selection {
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: 400px;
        margin-right: 3rem;
        }

        #from-port, #to-port {
        background: transparent !important;
        color: #282828 !important;
        border: none !important;
        cursor: pointer;
        font-size: 25px;
        font-weight: bold;
        text-align: center;
        -webkit-text-align-last: center; /* For WebKit-based browsers */
        text-align-last: center;         /* Standard property */
        max-width: 48%!important;
        appearance: none;
        }

        .port-arrow {
            font-size: 25px;
            font-weight: bold;
            color: #282828;
            cursor: pointer;
        }

        /* Middle Col: 2 rows */
        .middle-col {
        display: grid;
        grid-template-rows: auto auto;
        margin-right: 3rem;
        }

        /* Row 1: Trip & Guests side by side */
        /* Row 1 (Trip type left, Guests right) */
        .row-1 {
        display: flex;
        align-items: center;
        /* Spread them evenly (left side at 50%, right side at 50%) */
        justify-content: space-between;
        margin: 0;  /* Remove extra margins/padding if any */
        padding: .7rem 0 0 0;
        border-bottom: 1.5px solid #000000; 
        }
        .trip-type-container {
            border-right: 1.5px solid #000000;
        }
        .row-1 > div {
        flex: 1;           /* Take up 50% each */
        margin: 0;
        text-align: left;  /* Left side: left‐aligned */
        }
        .row-1 > div:last-child {
        text-align: right; /* Right side: right‐aligned */
        }
        /* Row 2 (Departure left, Return right) */
        .row-2 {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 0;
        padding: 0 0 .7rem 0;
        }
        .row-2 input {
        flex: 1;
        margin: 0;
        padding: .5rem .5rem .5rem .95rem;
        text-align: left;
        border-right: 1.5px solid #000000;
        }
        .row-2 input:last-child {
            text-align: right;
            padding: .5rem 1.2rem .5rem .3rem;
        }
        .row-2 .dates-container {
            min-width: 100%;
        }
        /* .row-1 {
        display: flex;
        justify-content: space-between;
        } */
        .trip-type-btn, .guest-btn {
        background: transparent !important;
        color: #7C7C7C !important;
        border: none !important;
        cursor: pointer;
        font-size: 21px;
        appearance: none;
        }
        .guest-container button {
            cursor: pointer;
            font-size: 21px;
            padding: 0.5rem 1.2rem!important;
            width: 100%;
            text-align: right;
        }
        /* Row 2: Departure & Return side by side
        .row-2 {
        display: flex;
        } */
        #return-date {
            display: none;
        }
        .dates-container.oneway #return-date {
            visibility: hidden;
        }
        .date-range-picker {
        background: transparent !important;
        border: none !important;
        font-size: 21px;
        text-align: center;
        cursor: pointer;
        /* max-width: 48%!important; */
        }
        .date-range-picker::placeholder {
        color: #7C7C7C !important;
        opacity: 1 !important;
        }

        /* Right Col: Go! button */
        .go-button-container {
            display: flex;
            justify-content: flex-end;
            width: 150px;
            height: 100%;
        }

        #hullo-go-button {
            color: #ffffff;
            background-color: #FF3503;
            width: 100%;
            padding: 10px;
            border: none;
            border-radius: 0 1rem 1rem 0;
            font-size: 25px;
            cursor: pointer;
        }

        #hullo-go-button:hover {
            color: #ffffff;
            background-color: #004137;
        }

    /* Guest & Error Popups */
    .guest-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    }
    .guest-popup {
        background: #ffffff;
    }
    .guest-popup label {
        display: block;
        margin-top: 10px;
    }
    .guest-popup input {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    .guest-popup-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        border: 1px solid #ddd;
        border-radius: .5rem;
        padding: 10px;
        background: #fff;
    }

    .guest-popup-item label {
        font-size: 20px;
        margin-bottom: 8px;
        color: #444;
    }

    .guest-popup-item .sub-label {
        font-size: 16px;
        margin-bottom: 8px;
        color:rgb(147, 147, 147);
    }

    .guest-input-control {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .guest-popup-item input[type="number"] {
        text-align: center;
        border: none;
        background: transparent;
        font-size: 16px;
        width: 40px;
        color: #000;
        -moz-appearance: textfield;
        appearance: none;
        padding: 0 .5rem!important;
    }

    .quantity-btn {
        background-color:rgba(0, 0, 0, 0)!important;
        padding: 0 .3rem!important;
        margin-bottom: .89rem!important;
        font-size:30px!important;
        border: none!important;
        /* border-radius: 50%; */
        /* border: 1px solid #aaa; */
        color: #393939!important;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        /* transition: background 0.2s, color 0.2s; */
    }

    .quantity-btn:hover {
        background: #ddd;
    }

    input[type="number"]::-webkit-inner-spin-button,
    input[type="number"]::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    #close-guest-popup {
        background-color: #FF3503!important;
        color: #ffffff!important;
        min-width: 100%;
        margin-top: 15px;
        border-radius: .3rem;
    }

    #close-guest-popup:hover {
        background-color: #004137!important;
    }

    .guest-popup {
            display: none;
            border-radius: 0.3rem;
            padding: 15px;
            width: 300px;
            z-index: 1000;
            text-align: center;
    }

    #close-error-popup {
        background-color: #282828!important;
        color:#ffffff!important;
        background-color: #282828 !important;
        border-radius: 2rem;
        padding: 0.1rem 1.2rem;
    }
    .error-popup {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* box-shadow: 0 4px 8px rgba(0,0,0,0.2); */
        border-radius: 0.3rem;
        padding: 15px;
        width: 370px;
        z-index: 1000;
        text-align: center;
        background: #ffffff;
        color: #282828;
        border: 1px solid #282828;
        padding: 1rem;
    }

        /* =============== MOBILE LAYOUT (media query) =============== */
        @media (max-width: 768px) {
        #hullo-booking {
            padding:0;
            border-radius: 0.4rem;
            max-width: 370px;
            min-width: 333px;
            width: 365px;
        }
        /* We stack everything vertically */
        #hullo-booking-form {
            display: grid;
            grid-template-columns: 1fr;
            grid-template-rows: auto auto auto auto;
            /* Named grid areas for clarity */
            grid-template-areas:
            "row1"    /* Trip & Guests */
            "ports"   /* Nanaimo, Vancouver */
            "row2"    /* Departure, Return */
            "goBtn";  /* The Go! button */
            max-width: 370px!important;
            min-width: 333px;
            width: 365px;
        }
        .port-selection {
            justify-content: space-between !important;
            width: 100%;
            min-width: 100%;
            padding: 0 1rem;
            box-sizing: border-box;
            margin-right: 0;
        }

        #from-port {
            flex: 1;
            text-align: left !important;
            padding: 0.5rem 0.2rem !important;
            max-width: 49% !important;
            font-size: 25px !important;
            appearance: none;
            /* max-width: 120px!important; */
            -webkit-text-align-last: left; /* For WebKit-based browsers */
            text-align-last: left;         /* Standard property */
        }

        #to-port {
            flex: 1;
            padding: 0.5rem 0.2rem !important;
            max-width: 49% !important;
            font-size: 25px !important;
            -webkit-appearance: none !important;
            appearance: none !important;
            text-align: right !important;
            text-align-last: right; /* Forces the last line (or selected option) to align right on iOS */
            /* max-width: 120px!important; */
        }

        .port-arrow {
            flex: 0 0 auto;
            padding: 0 0.5rem;
            font-size: 25px !important;
        }

        .guest-popup,
        .error-popup {
            top: 8rem;
            left: auto;
            transform: none;
        }
        /* .left-col, .port-selection {
            min-width:300px;
        } */
        .middle-col {
            display: contents;  /* so .row-1 and .row-2 can be placed in the parent's grid */
            max-width: 370px;
            min-width: 333px;
            width: 365px;
        }
        /* Row 1 (Mobile): Trip Select & Guests side-by-side */
        .row-1 {
            grid-area: row1;
            /* display: flex; */
            /* justify-content: space-between; */
            margin-left: .5rem;
            margin-right: .5rem;
            padding-top: .5rem;
            border-bottom: 1.5px solid #000000; 
        }

        /* Row 2 (Mobile): Ports (full width) */
        .left-col.port-selection {
            grid-area: ports;
            /* border-bottom: 1px solid #eee; */
            justify-content: center;
        }
        .trip-type-container {
            border-right: 1.5px solid #000000;
        }
        #trip-type {
            padding: .5rem .5rem .5rem .7rem!important;
            appearance: none;
            
        }
        /* Row 3 (Mobile): “Departure” (and “Return” if round-trip) */
        .row-2 {
            grid-area: row2;
            /* display: flex; */
            /* gap: 1rem; */
            padding-bottom: .1!important;
        }
        .row-2 input {
            padding: .5rem .5rem .5rem .7rem!important;
        }
        .row-2, .dates-container {
            margin-left: .5rem;
            margin-right: .5rem;
            border-top: 1.5px solid #000000;        
        }
        #return-date {
            display: none;
        }
        /* Example if you want each input 100% unless you hide one in JS. 
            Or do dynamic classes to switch from 100% to 50/50. */
        .dates-container.oneway #return-date {
            visibility: hidden;
        }
        .dates-container.oneway #departure-date {
            width: 48%;
            padding: 0.5rem 1rem!important;
        }
        .dates-container.roundtrip #departure-date {
            width: 48%;
            padding: .5rem 1rem!important;
        }
        .dates-container.roundtrip #return-date {
            width: 48%;
            padding: .5rem 1.2rem .5rem .5rem!important;
        }
        /* Row 4 (Mobile): Go! (full width) */
        .go-button-container {
            grid-area: goBtn;
            width: 100%;
            bottom: 0;
        }
        #hullo-go-button {
            color: #ffffff;
            background-color: #FF3503;
            width: 100%;
            padding: 10px;
            border-radius: 0 0 0.4rem 0.4rem!important;
            font-size: 25px;
            cursor: pointer;
        }
        .guest-popup {
            display: none;
            /* position: fixed; */
            top: 50%;
            left: 50%;
            transform: translate(-50%, -60%); /* Adjust -60% to move upwards */
            border-radius: 0.3rem;
            padding: 15px;
            max-width: 370px;
            min-width: 333px;
            width: 365px;
            max-height: 370px;
            min-height: 333px;
            height: 365px;
            z-index: 1000;
            text-align: center;
        }
        .guest-container button {
            cursor: pointer;
            font-size: 21px;
            padding: 0.5rem 0.7rem!important;
            width: 100%;
            text-align: right;
        }
        .error-popup {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); /* Adjust -60% to move upwards */
            border-radius: 0.3rem;
            padding: 15px;
            max-width: 370px;
            min-width: 333px;
            width: 365px;
            z-index: 1000;
            text-align: center;
        }
    }