/* ============================================================
   Booking Bar — Always fixed, snapped below header
   ============================================================ */

.booking-bar {
    position: fixed;
    right: 0;
    z-index: 9999;
    text-align: right;
    font-family: var(--primary-font, 'Roboto', sans-serif);
}

/* ---- Inner wrapper ---- */
.booking-bar-inner {
    /* contains just the button */
}

/* ---- Toggle Button ---- */
.booking-bar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #0e4d97;
    color: #fff;
    border: none;
    cursor: pointer;
    padding: 10px 18px 10px 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    line-height: 1.4;
    border-radius: 0;
    box-shadow: -3px 3px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.3s;
}

.booking-bar-btn:hover {
    background: #0a3a75;
    color: #fff;
}

.booking-bar-btn i {
    font-size: 14px;
}

/* ---- Dropdown Panel ---- */
.booking-bar-panel {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    width: 320px;
    z-index: 9999;
    animation: bookingPanelDrop 0.25s ease;
}

.booking-bar-panel.open {
    display: block;
}

@keyframes bookingPanelDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.booking-bar-panel-inner {
    position: relative;
    background: #0e4d97;
    color: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: -4px 6px 24px rgba(0, 0, 0, 0.3);
    padding: 20px;
    overflow-y: auto;
    /* Hide scrollbar but keep scrolling */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.booking-bar-panel-inner::-webkit-scrollbar {
    display: none;
}

/* ---- Title ---- */
.bm-title {
    text-align: center;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 16px;
    text-transform: uppercase;
}

/* ---- Close button ---- */
.booking-close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.booking-close:hover {
    opacity: 1;
}

/* ---- Date fields row ---- */
.bm-dates-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.bm-date-field {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.bm-date-field.active {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

.bm-date-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2px;
    cursor: pointer;
}

.bm-date-field input {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
    outline: none;
    cursor: pointer;
}

.bm-date-field input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ---- Inline calendar ---- */
#bm-calendar {
    margin-bottom: 14px;
}

#bm-calendar .datepicker {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

#bm-calendar .datepicker table {
    width: 100%;
}

#bm-calendar .datepicker thead tr th {
    color: #fff !important;
    font-size: 12px;
}

#bm-calendar .datepicker thead tr th.prev,
#bm-calendar .datepicker thead tr th.next,
#bm-calendar .datepicker thead tr th.datepicker-switch {
    color: #fff !important;
    background: transparent !important;
}

#bm-calendar .datepicker thead tr th.prev:hover,
#bm-calendar .datepicker thead tr th.next:hover,
#bm-calendar .datepicker thead tr th.datepicker-switch:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

#bm-calendar .datepicker thead tr th.dow {
    color: rgba(255, 255, 255, 0.6) !important;
    font-size: 11px;
    font-weight: 600;
}

#bm-calendar .datepicker tbody td {
    color: #fff !important;
    background: transparent !important;
    border-radius: 4px;
}

#bm-calendar .datepicker tbody td:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
}

#bm-calendar .datepicker .datepicker-months td span,
#bm-calendar .datepicker .datepicker-years td span {
    color: #fff !important;
    background: transparent !important;
}

#bm-calendar .datepicker .datepicker-months td span:hover,
#bm-calendar .datepicker .datepicker-years td span:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

#bm-calendar .datepicker .datepicker-months td span.disabled,
#bm-calendar .datepicker .datepicker-months td span.disabled:hover,
#bm-calendar .datepicker .datepicker-years td span.disabled,
#bm-calendar .datepicker .datepicker-years td span.disabled:hover {
    color: rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
}

#bm-calendar .datepicker .datepicker-months td span.old,
#bm-calendar .datepicker .datepicker-months td span.new,
#bm-calendar .datepicker .datepicker-years td span.old,
#bm-calendar .datepicker .datepicker-years td span.new {
    color: rgba(255, 255, 255, 0.5) !important;
}

#bm-calendar .datepicker tbody td.active,
#bm-calendar .datepicker tbody td.active:hover {
    background: #fff !important;
    color: #0e4d97 !important;
    font-weight: 700;
}

#bm-calendar .datepicker tbody td.today {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

#bm-calendar .datepicker tbody td.today.active {
    background: #fff !important;
    color: #0e4d97 !important;
}

#bm-calendar .datepicker tbody td.disabled,
#bm-calendar .datepicker tbody td.disabled:hover {
    color: rgba(255, 255, 255, 0.25) !important;
    background: transparent !important;
}

#bm-calendar .datepicker tbody td.old,
#bm-calendar .datepicker tbody td.new {
    color: rgba(255, 255, 255, 0.3) !important;
}

/* ---- Guests row ---- */
.bm-guests-row {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
}

.bm-guest-field {
    flex: 1;
}

.bm-guest-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.bm-guest-field select {
    width: 100%;
    padding: 7px 10px;
    font-size: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    background: #0a3f80 !important;
    color: #fff !important;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    padding-right: 28px;
}

.bm-guest-field select option {
    background: #0a3f80;
    color: #fff;
}

/* ---- Submit button ---- */
.booking-submit {
    width: 100%;
    padding: 12px;
    background: #052d5c;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s, border-color 0.3s;
}

.booking-submit:hover {
    background: #021530;
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* ---- Responsive ---- */

/* Tablet (768px – 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    .booking-bar-panel {
        width: 290px;
    }

    .booking-bar-panel-inner {
        padding: 16px;
    }

    .bm-title { font-size: 13px; margin-bottom: 10px; }

    #bm-calendar .datepicker table td,
    #bm-calendar .datepicker table th {
        padding: 2px 1px !important;
        font-size: 11px !important;
    }

    .bm-dates-row { gap: 5px; }
    .bm-date-field { padding: 6px 8px; }
    .bm-date-field input { font-size: 12px; }
    .bm-guests-row { gap: 5px; }
    .bm-guest-field select { padding: 5px 8px; font-size: 13px; }
    .booking-submit { padding: 10px; font-size: 13px; }

    .booking-bar-btn {
        font-size: 11px;
        padding: 8px 14px 8px 16px;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    .booking-bar-btn {
        padding: 8px 12px 8px 14px;
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .booking-bar-panel {
        width: calc(100vw - 20px);
        right: 0;
    }

    .booking-bar-panel-inner {
        border-radius: 0 0 8px 8px;
    }
}

/* ---- Move chat popup icons to LEFT side ---- */
#button-contact-vr {
    right: auto !important;
    left: 20px !important;
}

/* ---- Position Link360 Chat Bot below contact icons (left side) ---- */
#cs-live-chat,
.cs-live-chat,
[id^="chat-init"],
.link360-widget {
    right: auto !important;
    left: 20px !important;
}

/* ---- Move scrollUp button a bit left to avoid Chat Bot overlap ---- */
#scrollUp {
    inset-inline-end: 100px !important;
}

/* ---- Keep cookie consent actions tappable on mobile ---- */
@media (max-width: 767px) {
    .site-notice.site-notice--visible ~ #scrollUp {
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ---- Hide datepicker dropdown popups triggered by hidden inputs ---- */
#bm-start-date + .datepicker,
#bm-end-date + .datepicker,
body > .datepicker.datepicker-dropdown {
    /* only hide dropdowns from the hidden inputs, not the inline calendar */
}

#booking-form > .bm-dates-row .datepicker-dropdown {
    display: none !important;
}
