/* ==========================================================================
   StayNomix Frontend Layout — app.css
   ========================================================================== */

/* Page Loading Progress Bar */
.js-loading body {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}
.js-loading body.page-loaded {
    opacity: 1;
}
#top-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3.5px;
    background: linear-gradient(90deg, #FFAF36 0%, #1EBEA5 50%, #FF7D41 100%);
    width: 0%;
    z-index: 999999;
    transition: width 0.35s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.15s ease-in-out;
    box-shadow: 0 0 10px rgba(30, 190, 165, 0.6);
    pointer-events: none;
}

/* Common Layout Utilities */
.d-none { display: none !important; }
.mr-2 { margin-right: 0.5rem; }
.text-xl { font-size: 1.25rem; }
.hover-text-dark:hover { color: var(--text-dark) !important; }
@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
}

.user-menu-pill:hover + #logoutForm, #logoutForm:hover {
    display: block !important;
}

/* Check-in Now Toggle Switch Styles */
.checkin-now-switch {
    width: 56px;
    height: 24px;
    background: #cbd5e1;
    border-radius: 99px;
    position: relative;
    transition: all 0.3s ease;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.08);
}

.checkin-now-switch .switch-bolt {
    color: white;
    font-size: 0.72rem;
    margin-left: 7px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.checkin-now-switch .switch-handle {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: absolute;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7.5px;
    font-weight: 800;
    color: #64748b;
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
}

/* Active State (ON) */
.checkin-now-switch.active {
    background: linear-gradient(135deg, #c5a059 0%, #b38938 100%);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.15), 0 4px 10px rgba(179,137,56,0.2);
}

.checkin-now-switch.active .switch-bolt {
    opacity: 1;
}

.checkin-now-switch.active .switch-handle {
    left: 34px;
    color: #b38938;
}

/* Locking / disabled states inside the flexible stay picker dropdown */
.slider-disabled-mask {
    pointer-events: none !important;
    opacity: 0.4 !important;
    user-select: none !important;
}

