/* ========== Rental Calendar ========== */

.rental-calendar-mini {
    font-size: 0.75rem;
}

.rental-calendar-mini .cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.rental-calendar-mini .cal-header button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.1rem 0.4rem;
    font-size: 0.9rem;
    color: #666;
}

.rental-calendar-mini .cal-header button:hover {
    color: #333;
}

.rental-calendar-mini .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.rental-calendar-mini .cal-day-label {
    text-align: center;
    font-weight: 600;
    color: #888;
    padding: 2px 0;
}

.rental-calendar-mini .cal-day {
    text-align: center;
    padding: 3px 1px;
    border-radius: 3px;
    position: relative;
}

.rental-calendar-mini .cal-day.empty {
    visibility: hidden;
}

.rental-calendar-mini .cal-day.other-month {
    opacity: 0.5;
    color: #999;
}

.rental-calendar-mini .cal-day.other-month.past {
    opacity: 0.35;
}

.rental-calendar-mini .cal-day.past {
    color: #ccc;
}

.rental-calendar-mini .cal-day.booked {
    background-color: #f8d7da;
    color: #842029;
}

.rental-calendar-mini .cal-day.blocked {
    background-color: #e2e3e5;
    color: #6c757d;
}

.rental-calendar-mini .cal-day.available {
    background-color: #d1e7dd;
    color: #0f5132;
}

.rental-calendar-mini .cal-day.handover-start {
    background: linear-gradient(135deg, #d1e7dd 50%, #f8d7da 50%);
}

.rental-calendar-mini .cal-day.handover-end {
    background: linear-gradient(135deg, #f8d7da 50%, #d1e7dd 50%);
}

.rental-calendar-mini .cal-day.selected {
    box-shadow: inset 0 0 0 2px #0d6efd;
}

/* ========== Item Cards ========== */

.rental-item-card .card-img-top,
.rental-item-card .carousel {
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.rental-item-card .carousel-control-prev,
.rental-item-card .carousel-control-next {
    width: 15%;
}

/* ========== Booking page gallery + lightbox ========== */

.rental-booking-gallery .rental-booking-gallery-img {
    cursor: pointer;
}

.rental-booking-gallery .carousel-control-prev,
.rental-booking-gallery .carousel-control-next {
    width: 15%;
}

.rental-gallery-modal-img {
    max-height: 85vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}
