/**
 * Single Room Page Custom Styles
 * Glassmorphism, animations, and Litepicker dark mode
 */

/* ========================================
   Glassmorphism Booking Card
   ======================================== */
#booking-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.dark #booking-card {
    background: rgba(17, 24, 39, 0.8);
}

/* ========================================
   Section Animations
   ======================================== */
section {
    scroll-margin-top: 100px;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for sections */
section:nth-child(1) {
    animation-delay: 0.1s;
}

section:nth-child(2) {
    animation-delay: 0.2s;
}

section:nth-child(3) {
    animation-delay: 0.3s;
}

section:nth-child(4) {
    animation-delay: 0.4s;
}

/* ========================================
   Litepicker Dark Mode Styling
   ======================================== */
.litepicker.dark-mode {
    background-color: #1f2937;
    border-color: #374151;
}

.litepicker.dark-mode .container__months {
    background-color: #1f2937;
}

.litepicker.dark-mode .month-item-header,
.litepicker.dark-mode .month-item-weekdays-row {
    color: #f9fafb;
}

.litepicker.dark-mode .day-item {
    color: #d1d5db;
}

.litepicker.dark-mode .day-item:hover {
    background-color: #374151;
    color: #f9fafb;
}

.litepicker.dark-mode .day-item.is-today {
    border-color: #3b82f6;
}

.litepicker.dark-mode .day-item.is-in-range {
    background-color: rgba(59, 130, 246, 0.2);
    color: #f9fafb;
}

.litepicker.dark-mode .day-item.is-start-date,
.litepicker.dark-mode .day-item.is-end-date {
    background-color: #3b82f6;
    color: #ffffff;
}

.litepicker.dark-mode .day-item.is-locked {
    color: #6b7280;
}

/* ========================================
   Hero Gradient Overlay
   ======================================== */
.hero-gradient {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        transparent 100%
    );
}

/* ========================================
   Price Display Animation
   ======================================== */
#price-display {
    transition: transform 0.3s ease;
}

#price-breakdown.hidden {
    display: none;
}

#price-breakdown:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 200px;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 1024px) {
    #booking-card {
        position: relative !important;
        top: auto !important;
    }
}

/* ========================================
   Smooth Transitions
   ======================================== */
* {
    transition-property: background-color, border-color, color, fill, stroke;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* ========================================
   Custom Scrollbar
   ======================================== */
.prose::-webkit-scrollbar {
    width: 8px;
}

.prose::-webkit-scrollbar-track {
    background: transparent;
}

.prose::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.dark .prose::-webkit-scrollbar-thumb {
    background: #475569;
}

.prose::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
