:root {
    --csb-green: #1e3a1a;
    --csb-green-light: #2a5224;
    --csb-gold: #fab101;
    --csb-gold-dark: #e6a000;
    --csb-white: #ffffff;
    --csb-radius: 10px;
    --csb-radius-sm: 6px;
    --csb-transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* -- LABEL -- */
.csb-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    opacity: 0.85;
    margin-bottom: 6px;
}
.csb-label-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* -- INPUT WRAP + INPUTS -- */
.csb-input-wrap {
    position: relative;
}
.csb-input {
    width: 100%;
    height: 44px;
    border-radius: var(--csb-radius-sm);
    border: 1.5px solid rgb(249 177 2) !important;
    background: rgba(255, 255, 255, 0.15);
    color: var(--csb-green) !important;
    font-size: 14px;
    font-weight: 500;
    padding: 0 15px !important;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition:
        border-color var(--csb-transition),
        background var(--csb-transition),
        box-shadow var(--csb-transition);
    box-sizing: border-box;
}
.csb-input::placeholder {
    color: var(--csb-green) !important;
}
.csb-input:focus,
.csb-input:hover {
    border-color: var(--csb-gold);
    box-shadow: 0 0 0 3px rgba(250, 177, 1, 0.18);
}
input[type='text'].csb-input::-webkit-calendar-picker-indicator {
    display: none;
}

/* -- GUEST BUTTON -- */
.csb-guest-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    background: #fff;
    user-select: none;
}
.csb-guest-btn span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--csb-green);
}
.csb-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
    color: #fff;
    transition: transform var(--csb-transition);
}
.csb-guest-btn[aria-expanded='true'] .csb-chevron {
    transform: rotate(180deg);
}

/* -- BOOK BUTTON -- */
.csb-book-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 44px;
    padding: 0 24px;
    background: var(--csb-gold);
    color: var(--csb-green);
    border: none;
    border-radius: var(--csb-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition:
        background var(--csb-transition),
        transform var(--csb-transition),
        box-shadow var(--csb-transition);
    box-shadow: 0 2px 8px rgba(250, 177, 1, 0.25);
}
.csb-book-btn:hover {
    background: var(--csb-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(250, 177, 1, 0.35);
}
.csb-book-btn:active {
    transform: translateY(0);
}
.csb-book-btn--full {
    width: 100%;
    justify-content: center;
    height: 52px;
    font-size: 15px;
}

/* -- FIELD DIVIDER -- */
.csb-hero-form .csb-field-divider,
.csb-sticky-bar .csb-field-divider {
    display: flex;
    align-items: flex-end;
    padding-bottom: 11px;
    color: rgb(191 191 191);
    flex-shrink: 0;
}

.csb-sticky-bar .csb-field-divider {
    color: rgb(191 191 191);
}

/* -- GUEST POPUP -- */
.csb-popup-wrap {
    position: relative;
}
.csb-popup {
    display: none;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) !important;
    z-index: 10000;
    background: #fff;
    border-radius: var(--csb-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 20px;
    min-width: 260px;
    border: 1px solid #f0f0f0;
    animation: csbPopIn 0.18s ease;
}
.csb-popup--up {
    top: auto;
    bottom: calc(100% + 8px);
}
.csb-popup.open {
    display: block;
}
@keyframes csbPopIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.csb-popup-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--csb-green);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}
.csb-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}
.csb-counter-row:last-of-type {
    border-bottom: none;
}
/* FIX 1: removed .csb-counter-info sub-label, just show label */
.csb-counter-label {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.csb-ctrl {
    display: flex;
    align-items: center;
}
.csb-c-btn {
    width: 32px;
    height: 32px;
    border: 1.5px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color var(--csb-transition),
        background var(--csb-transition);
}
.csb-c-btn:first-child {
    border-radius: 6px 0 0 6px;
}
.csb-c-btn:last-child {
    border-radius: 0 6px 6px 0;
}
.csb-c-btn:hover {
    border-color: var(--csb-green);
    color: var(--csb-green);
    background: #f5faf5;
}
.csb-c-val {
    width: 36px;
    height: 32px;
    border-top: 1.5px solid #ddd;
    border-bottom: 1.5px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}
.csb-done-btn {
    margin-top: 14px;
    width: 100%;
    padding: 10px;
    background: var(--csb-gold);
    color: var(--csb-green);
    border: none;
    border-radius: var(--csb-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--csb-transition);
}
.csb-done-btn:hover {
    background: var(--csb-gold-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(250, 177, 1, 0.35);
}

/* -- HERO / INLINE FORM -- */
.csb-hero-form {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}
.csb-hero-form .csb-field {
    flex: 1;
    min-width: 130px;
}

/* -- DESKTOP STICKY BAR -- */
.csb-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 20px;
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.csb-sticky-bar.visible {
    transform: translateY(0);
}
.csb-sticky-inner {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    max-width: 1280px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.csb-sticky-inner .csb-field {
    flex: 1;
    min-width: 120px;
}

/* -- MOBILE FAB + DRAWER  (≤768px) -- */
.csb-mobile-fab {
    display: none;
}

@media (max-width: 768px) {
    .csb-hero-form {
        display: none !important;
    }
    .csb-sticky-bar {
        display: none !important;
    }

    /* -- FAB: centered pill, full-width below 500px -- */
    .csb-mobile-fab {
        display: block;
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 9998;
        /* FIX 3: full-width on ≤500px handled below */
    }
    .csb-fab-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        height: 50px;
        padding: 0 28px;
        background: var(--csb-gold);
        color: var(--csb-green);
        border: none;
        border-radius: 999px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        box-shadow:
            0 4px 24px rgba(250, 177, 1, 0.45),
            0 2px 8px rgba(0, 0, 0, 0.18);
        transition:
            transform var(--csb-transition),
            box-shadow var(--csb-transition),
            background var(--csb-transition);
        white-space: nowrap;
    }
    .csb-fab-btn:hover {
        background: var(--csb-gold-dark);
        transform: translateY(-2px);
    }
    .csb-fab-btn:active {
        transform: translateY(0);
    }

    /* -- OVERLAY -- */
    .csb-drawer-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9999;
        background: rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.35s ease;
    }
    .csb-drawer-overlay.active {
        opacity: 1;
        pointer-events: all;
    }

    /* -- DRAWER: slides DOWN from top, 80% width, centered -- */
    /* FIX 4 + partial: top-down slide, not full-width */
    .csb-drawer {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        position: fixed;
        top: 50%;
        left: 50%;
        /* starts above viewport */
        transform: translate(-50%, -100%);
        opacity: 0;
        width: 80%;
        min-height: 39vh;
        max-height: 90vh;
        z-index: 10000;
        background: var(--csb-green);
        border-radius: 8px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
        transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .csb-drawer.open {
        transform: translate(-50%, -30%); /* slides into view from top */
        opacity: 1;
    }

    .csb-drawer-handle {
        display: none;
    } /* handle was for bottom-sheet; not needed for top-down */

    .csb-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        flex-shrink: 0;
    }
    .csb-drawer-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 16px;
        font-weight: 700;
        color: #fff;
    }
    .csb-drawer-close {
        width: 34px;
        height: 34px;
        background: rgba(255, 255, 255, 0.12);
        border: none;
        border-radius: 50%;
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background var(--csb-transition);
        flex-shrink: 0;
    }
    .csb-drawer-close:hover {
        background: rgba(255, 255, 255, 0.22);
    }

    .csb-drawer-body {
        padding: 40px 20px;
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    /* FIX 5: check-in + check-out in one row */
    .csb-drawer-dates-row {
        display: flex;
        gap: 10px;
    }
    .csb-drawer-dates-row .csb-drawer-field {
        flex: 1;
    }

    .csb-drawer-field {
        display: flex;
        flex-direction: column;
    }

    /* FIX 2: solid white background so text is always visible */
    .csb-drawer .csb-input {
        height: 46px;
        background: rgba(255, 255, 255, 0.18);
        border-color: rgba(255, 255, 255, 0.35) !important;
        color: #fff !important;
        font-size: 14px;
    }

    .csb-guest-btn span {
        color: #fff;
    }

    .csb-drawer .csb-input::placeholder {
        color: #fff !important;
    }
    .csb-drawer .csb-input:focus,
    .csb-drawer .csb-input:hover {
        border-color: var(--csb-gold);
        background: rgba(255, 255, 255, 0.26);
        box-shadow: 0 0 0 3px rgba(250, 177, 1, 0.18);
    }
    .csb-drawer .csb-label {
        font-size: 11px;
    }
}

/* FIX 3: full-width FAB at ≤500px */
@media (max-width: 500px) {
    .csb-mobile-fab {
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
    }
    .csb-fab-btn {
        width: 100%;
        justify-content: center;
        border-radius: 0;
    }
    /* Drawer also goes full-width on small phones */
    .csb-drawer {
        width: 94%;
    }
}

/* -- Hide mobile elements on desktop -- */
@media (min-width: 769px) {
    .csb-drawer-overlay,
    .csb-drawer,
    .csb-mobile-fab {
        display: none !important;
    }
}

.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
    color: #cccccc !important;
}

.flatpickr-day.today {
    color: #f9b102;
    border-color: #f9b102 !important;
}

.flatpickr-day.today:hover,
.flatpickr-day.today:focus,
.flatpickr-day:hover,
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: #f9b102 !important;
    border-color: #f9b102 !important;
}

.flatpickr-day:is(.flatpickr-disabled):hover {
    background: unset !important;
    border-color: unset !important;
}
