/* ================================
   CALENDAR CONTAINER
================================ */
#rv-availability-calendar,
#rv-admin-availability-calendar {
    max-width: 320px;
    font-family: system-ui, sans-serif;
}

/* ================================
   HEADER
================================ */
.rv-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 15px;
}

.rv-cal-nav {
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.rv-cal-nav:hover {
    background: #e5e7eb;
}

/* ================================
   TABLE
================================ */
.rv-cal {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.rv-cal th {
    text-align: center;
    padding: 4px 0;
    font-weight: 600;
    color: #374151;
}

.rv-cal td {
    width: 14.28%;
    height: 36px;
    text-align: center;
    vertical-align: middle;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: filter 0.15s ease, transform 0.1s ease;
}

/* ================================
   DAY STATES
================================ */

/* Available */
.rv-available {
    background: #ecfdf3;
    box-shadow: 0 0 0 1px #d1fae5 inset;
    color: #065f46;
}

/* Reserved */
.rv-booked {
    background: #fee2e2;
    box-shadow: 0 0 0 1px #fecaca inset;
    color: #991b1b;
    cursor: not-allowed;
}

/* Maintenance */
.rv-maint {
    background: #fef3c7;
    box-shadow: 0 0 0 1px #fde68a inset;
    color: #92400e;
    cursor: not-allowed;
}

/* Event */
.rv-event {
    background: #e0f2fe;
    box-shadow: 0 0 0 1px #bae6fd inset;
    color: #075985;
}

/* Hover effect (only for clickable days) */
.rv-available:hover,
.rv-event:hover {
    filter: brightness(0.92);
    transform: scale(1.03);
}

/* ================================
   EMPTY CELLS
================================ */
.rv-cal td:empty {
    background: transparent;
    cursor: default;
}

/* ================================
   NOTE TEXT
================================ */
.rv-cal-note {
    padding: 8px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

/* ================================
   LEGEND (public + admin)
================================ */
.rv-calendar-legend {
    font-size: 13px;
    margin: 12px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}

.rv-calendar-legend div {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rv-legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #d1d5db inset;
}

/* Legend colors */
.rv-legend-available { background: #ecfdf3; box-shadow: 0 0 0 1px #d1fae5 inset; }
.rv-legend-booked    { background: #fee2e2; box-shadow: 0 0 0 1px #fecaca inset; }
.rv-legend-maint     { background: #fef3c7; box-shadow: 0 0 0 1px #fde68a inset; }
.rv-legend-event     { background: #e0f2fe; box-shadow: 0 0 0 1px #bae6fd inset; }
