/* Show Calendar Component - Updated: 2025-10-13 - Version 1.0 */

/* Mobile Calendar Selected Date Styling - High Specificity */
.calendar-date.selected-date,
.calendar-date.bg-blue-600,
.calendar-date.calendar-selected {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
    transform: scale(1.05) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
    z-index: 10 !important;
    transition: all 0.2s ease-in-out !important;
}

/* Ensure text inside selected dates is white */
.calendar-date.selected-date *,
.calendar-date.bg-blue-600 *,
.calendar-date.calendar-selected * {
    color: white !important;
}

/* Price badge styling for selected dates */
.calendar-date.selected-date .bg-green-100,
.calendar-date.bg-blue-600 .bg-green-100,
.calendar-date.calendar-selected .bg-green-100 {
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Calendar container styling */
.calendar-container {
    position: relative;
}

/* Calendar date cells */
.calendar-date {
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.calendar-date:hover:not(.calendar-date--disabled) {
    transform: scale(1.02);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Disabled dates */
.calendar-date--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Mobile calendar specific styles */
.mobile-calendar-drawer {
    max-height: 85vh;
}

.drawer-calendar-content {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile book now button */
#mobile-book-now-button {
    z-index: 1000;
}

/* Calendar overlay */
#mobile-calendar-overlay {
    z-index: 2000;
}

#mobile-calendar-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

#mobile-calendar-overlay.show .mobile-calendar-drawer {
    transform: translateY(0) !important;
}

/* Performance list styling */
.performance-item {
    transition: all 0.2s ease-in-out;
}

.performance-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Loading state */
.calendar-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.calendar-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: calendar-spinner 0.8s linear infinite;
}

@keyframes calendar-spinner {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Smooth transitions */
.calendar-date,
.performance-item,
#mobile-book-now-button button {
    transition: all 0.2s ease-in-out;
}

