/* Calendar container */
.my-bookings-calendar-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 20px 0;
}

/* Property selector */
.calendar-header {
    margin-bottom: 20px;
}

.property-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
}

/* Calendar customization */
.fc .fc-toolbar-title {
    font-size: 1.5em;
    font-weight: 600;
}

.fc .fc-button {
    background-color: #5a7a9a;
    border-color: #4a6a8a;
}

.fc .fc-button:hover {
    background-color: #4a6a8a;
    border-color: #3a5a7a;
}

.fc .fc-button-active {
    background-color: #4a6a8a !important;
    border-color: #3a5a7a !important;
}

/* All bookings - maroon color to match timeline */
.fc-event {
    background-color: #a94442 !important;
    border-color: #a94442 !important;
    cursor: pointer;
}

.fc-event:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Tooltip - matching timeline style, centered on screen */
#calendar-tooltip.tl-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 9999;
    max-width: 280px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: none;
}

#calendar-tooltip .tl-tooltip-title {
    font-weight: 600;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

#calendar-tooltip .tl-tooltip-row {
    display: flex;
    justify-content: space-between;
    margin: 4px 0;
    gap: 15px;
}

#calendar-tooltip .tl-tooltip-label {
    color: #aaa;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

/* Hide monthly calendar on desktop - show timeline instead */
.my-bookings-calendar-container {
    display: none;
}

/* Hide timeline on mobile - show monthly calendar instead */
@media screen and (max-width: 991px) {
    .tl-wrapper {
        display: none !important;
    }
    
    .my-bookings-calendar-container {
        display: block;
        padding: 10px;
        margin: 10px 0;
    }
    
    .fc .fc-toolbar {
        flex-direction: column;
        gap: 8px;
    }
    
    .fc .fc-toolbar-chunk {
        display: flex;
        justify-content: center;
    }
    
    .fc .fc-toolbar-title {
        font-size: 1.1em;
    }
    
    .fc .fc-button {
        padding: 5px 8px;
        font-size: 11px;
    }
    
    .fc .fc-col-header-cell-cushion {
        font-size: 10px;
    }
    
    .fc .fc-daygrid-day-number {
        font-size: 10px;
    }
}
