/* Custom styling and animations */

html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

@keyframes marqueeMobile {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 0.5rem)); }
}
.animate-marquee-mobile {
    animation: marqueeMobile 15s linear infinite;
}

/* Glassmorphism utilities */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Calendar specifics */
#calendarGrid > div {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calendar-day.available {
    background-color: #f0fdf4; /* green-50 */
    color: #166534; /* green-800 */
    border: 1px solid #bbf7d0; /* green-200 */
}
.calendar-day.available:hover {
    background-color: #bbf7d0;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.calendar-day.sold-out {
    background-color: #fef2f2; /* red-50 */
    color: #991b1b; /* red-800 */
    border: 1px solid #fecaca; /* red-200 */
    opacity: 0.7;
    cursor: not-allowed;
    text-decoration: line-through;
}

.calendar-day.selected {
    background-color: #a38771 !important; /* brand-500 */
    color: white !important;
    border-color: #8c705a !important; /* brand-600 */
    transform: scale(1.05);
    box-shadow: 0 10px 15px -3px rgba(163, 135, 113, 0.4);
}

.calendar-day.empty {
    background: transparent;
    cursor: default;
    border: none;
}

/* Subtle fade-in animation for dynamic elements */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Slider CSS */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.month-page {
    position: absolute;
    inset: 0;
    padding: 0 4px;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
    z-index: 0;
}
.month-page.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.calendar-grid-modern {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: 1fr;
    gap: 0px;
    width: 100%;
    flex: 1;
    border: 1px solid #e2e8f0;
    background: #e2e8f0;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

.day-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 3.5vw, 1.25rem);
    font-weight: 700;
    background: #ffffff;
    border: 0.5px solid #e2e8f0;
    transition: opacity 0.2s;
    user-select: none;
    min-height: 40px;
    height: 100%;
    width: 100%;
}

@media (min-width: 768px) {
    .day-box {
        min-height: 50px;
    }
}

.day-block.vacant { 
    color: #1b5e20; 
    box-shadow: inset 0 0 0 1px #81c784;
    background-color: #f1f8e9;
    cursor: pointer;
}
.day-block.vacant:active { opacity: 0.7; }
.day-block.vacant.selected {
    background-color: #cc5a16 !important;
    color: white !important;
    box-shadow: inset 0 0 0 1.5px #b04408;
}

.day-block.booked { 
    color: #ffffff !important; 
    background-color: #e57373 !important;
    font-size: clamp(0.85rem, 3vw, 1.05rem); 
    letter-spacing: 0.5px;
    box-shadow: none;
    cursor: not-allowed;
}

.empty-cell { background: #f1f5f9; cursor: default; }

.dot {
    width: 6px;
    height: 6px;
    background: #cbd5e1;
    border-radius: 50%;
    transition: all 0.3s ease;
}
.dot.active {
    background: #6b2d15;
    width: 24px;
    border-radius: 4px;
}



