/**
 * Rental date-range picker.
 *
 * Theme-aware throughout: every colour comes from a Bootstrap CSS variable so
 * the calendar follows the site's light/dark switch without a second palette.
 */

.rental-picker__dow,
.rental-picker__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.rental-picker__dow {
    margin-bottom: 4px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--bs-secondary-color, #6c757d);
    text-align: center;
}

.rental-picker__day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bs-border-color, #dee2e6);
    border-radius: 0.5rem;
    background: var(--bs-body-bg, #fff);
    color: var(--bs-body-color, #212529);
    font-size: 0.875rem;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    transition: background-color .12s, border-color .12s, color .12s;
}

.rental-picker__day.is-empty {
    border: none;
    background: none;
    cursor: default;
}

.rental-picker__day:hover:not(.is-disabled):not(.is-empty) {
    border-color: var(--bs-primary, #0d6efd);
    background: var(--bs-primary-bg-subtle, #cfe2ff);
}

/* Taken, closed or in the past. Struck through rather than merely faded, so
   the reason reads as "not on offer" instead of "loading". */
.rental-picker__day.is-disabled {
    cursor: not-allowed;
    color: var(--bs-secondary-color, #6c757d);
    background: var(--bs-secondary-bg, #e9ecef);
    border-color: transparent;
    text-decoration: line-through;
    opacity: 0.65;
}

.rental-picker__day.is-picked {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
    color: #fff;
    font-weight: 600;
}

.rental-picker__day.is-inrange {
    background: var(--bs-primary-bg-subtle, #cfe2ff);
    border-color: var(--bs-primary-border-subtle, #9ec5fe);
    color: var(--bs-primary-text-emphasis, #052c65);
}

.rental-picker__month {
    font-size: 0.95rem;
}

.rental-picker__summary {
    min-height: 3rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Legend swatches */
.rental-legend {
    display: inline-block;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.2rem;
    vertical-align: -1px;
    border: 1px solid var(--bs-border-color, #dee2e6);
}

.rental-legend--free {
    background: var(--bs-body-bg, #fff);
}

.rental-legend--taken {
    background: var(--bs-secondary-bg, #e9ecef);
    border-color: transparent;
}

.rental-legend--picked {
    background: var(--bs-primary, #0d6efd);
    border-color: var(--bs-primary, #0d6efd);
}

/* Cards ------------------------------------------------------------------ */

.rental-card {
    transition: transform .12s, box-shadow .12s;
}

.rental-card:hover {
    transform: translateY(-2px);
}

.rental-card--horizontal:hover {
    transform: none;
}
