/* Prevent text selection issues in reserve box but allow clicks */
.reserve-box-top {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.reserve-box-top h2 {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.reserve-form {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
}

/* Allow selection only for input fields */
.reserve-form input {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent text selection on price details */
.price-details-wrap {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Fix double-click behavior */
.reserve-box-top *::selection {
    background: transparent;
}

.reserve-box-top *::-moz-selection {
    background: transparent;
}

/* Override Firebase click blocking */
.reserve-box-top {
    pointer-events: none !important;
}

.check-in-out {
    pointer-events: auto !important;
    position: relative;
    z-index: 9999;
}

#dateInput {
    pointer-events: auto !important;
    position: relative;
    z-index: 99999;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    cursor: pointer;
    caret-color: transparent !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Ensure date input is above all overlays */
.check-in-out {
    z-index: 100000 !important;
}

#dateInput {
    z-index: 100001 !important;
}

/* Re-enable overlays for proper modal functionality */
.overlay-trigger,
.overlay_trigger_two, 
.overlay_trigger_three,
.overlay_trigger_four {
    pointer-events: auto !important;
}

/* Match font styling between dateInput and guest trigger - make both look like plain text */
#dateInput,
.info-box-trigger {
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #333 !important;
    line-height: 1.4 !important;
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

/* Remove all input styling to make it look like plain text */
#dateInput:focus,
#dateInput:active,
#dateInput:hover {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure consistent styling */
.checkin-box {
    cursor: pointer !important;
}

.info-box-trigger {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    cursor: pointer !important;
}

/* Make check-in-out container look consistent with checkin-box */
.check-in-out,
.checkin-box {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    padding: 8px !important;
}

/* Fix spacing and alignment between dateInput and guest trigger */
.reserve-form {
    display: flex !important;
    flex-direction: column !important;
    gap: 15px !important;
}

.check-in-out {
    margin-bottom: 15px !important;
}

.room-info {
    margin-top: 15px !important;
    position: relative !important;
    top: 0 !important;
}

.checkin-box.info-trigger-3 {
    margin-left: 0 !important;
    padding-left: 8px !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 1 !important;
}

.check-in-out {
    margin-left: 0 !important;
}

#dateInput {
    padding-left: 40px !important;
}

.info-box-trigger {
    margin-left: 40px !important;
}

span.info-box-trigger {
    margin-left: 40px !important;
}

/* Ensure proper spacing for icons and text */
.check-in-out .input-icon,
.checkin-box .input-icon {
    margin-right: 8px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
    height: 20px !important;
}

#dateInput {
    margin-left: 0 !important;
    width: calc(100% - 28px) !important;
}

.info-box-trigger {
    margin-left: 0 !important;
}

/* Fix login modal z-index to appear above booking modal */
.register__modal {
    z-index: 2147483648 !important;
    position: fixed !important;
}

.register__modal.show {
    z-index: 2147483648 !important;
    position: fixed !important;
}

.register__modal .modal-dialog {
    z-index: 2147483649 !important;
    position: relative !important;
}

.register__modal .modal-content {
    z-index: 2147483650 !important;
    position: relative !important;
}

/* Ensure login modal backdrop is above booking modal but below login modal */
.modal-backdrop {
    z-index: 2147483646 !important;
}

.modal-backdrop.show {
    z-index: 2147483646 !important;
}

/* Force login modal to be above everything */
.modal.register__modal {
    z-index: 2147483648 !important;
}

.modal.register__modal.show {
    z-index: 2147483648 !important;
}

/* Hide the original booking info box permanently */
.booking-info-box {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.booking-info-box.active {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure our modal trigger works properly */
.checkin-box.info-trigger-3 {
    cursor: pointer !important;
}

.info-box-trigger {
    pointer-events: auto !important;
    cursor: pointer !important;
}