body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    color: #111;
    padding: 20px;
}

h1 {
    text-align: center;
    margin-bottom: 10px;
}

.legend {
    margin: 0 auto 10px;
    max-width: 600px;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border: 1px solid #ccc;
}

.legend-box.available { background: #dfffd8; }
.legend-box.booked    { background: #f8c1c1; }
.legend-box.reserved  { background: #e3c8ff; }
.legend-box.changeover {
    background: linear-gradient(135deg, #f8c1c1 50%, #dfffd8 50%);
}

#status {
    text-align: center;
    margin-bottom: 5px;
    font-size: 13px;
    color: #555;
}

.nav {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}
.nav-btn {
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
}
.nav-btn:hover { background: #eaeaea; }

#rangeLabel { font-weight: bold; }

.calendar-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.month {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    width: 240px;
    overflow: hidden;
}

.month-header {
    background: #fafafa;
    text-align: center;
    padding: 6px 0;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    font-size: 14px;
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    border-top: 1px solid #ddd;
    border-left: 1px solid #ddd;
}

.day-name, .day {
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    padding: 4px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    box-sizing: border-box;
}

.day-name {
    background: #f0f0f0;
    font-weight: bold;
}

.day.empty {
    background: #f9f9f9;
}

.day.available { background: #dfffd8; }
.day.booked    { background: #f8c1c1; }
.day.reserved  { background: #e3c8ff; }

.day-number {
    font-size: 11px;
}

/* Custom instant tooltip */
.tooltip-box {
    position: absolute;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.06s ease-out;
}
