/* ==========================================================================
   Villa Rasovic – Availability Calendar
   ========================================================================== */

/* ---- Container ---- */
.vr-calendar-wrap {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    max-width: 720px;
    margin: 2rem auto;
    padding: 32px 30px 24px;
    position: relative;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ---- Navigation arrows ---- */
.vr-calendar-nav {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 32px;
    left: 16px;
    right: 16px;
    pointer-events: none;
    z-index: 2;
}

.vr-cal-prev,
.vr-cal-next {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    background: #ffffff;
    color: #333;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 0;
}

.vr-cal-prev:hover:not(:disabled),
.vr-cal-next:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #ccc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.vr-cal-prev:active:not(:disabled),
.vr-cal-next:active:not(:disabled) {
    background: #eee;
    transform: scale(0.95);
}

.vr-cal-prev:disabled,
.vr-cal-next:disabled {
    cursor: default;
    opacity: 0.3;
}

/* ---- Months container (side by side) ---- */
.vr-calendar-months {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.vr-cal-month-panel {
    flex: 1 1 0;
    min-width: 0;
    max-width: 310px;
}

/* ---- Single month ---- */
.vr-cal-month {
    /* Wrapper for header + grid */
}

.vr-cal-header {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    color: #222;
    padding: 0 0 14px;
    letter-spacing: 0.02em;
}

/* ---- 7-column grid ---- */
.vr-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    justify-items: center;
}

/* ---- Day name headers ---- */
.vr-cal-day-name {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 0 6px;
    width: 36px;
    user-select: none;
}

/* ---- Day cells ---- */
.vr-cal-day {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
    user-select: none;
    position: relative;
}

/* Subtle hover on normal (future, non-occupied) day cells */
.vr-cal-day:not(.vr-cal-empty):not(.vr-cal-past):not(.vr-cal-occupied):hover {
    background: #f0f0f0;
}

/* ---- Empty (padding) cells ---- */
.vr-cal-empty {
    background: transparent !important;
    cursor: default;
}

/* ---- Past dates ---- */
.vr-cal-past {
    color: #ccc;
    cursor: default;
}

.vr-cal-past:hover {
    background: transparent !important;
}

/* ---- Today ---- */
.vr-cal-today {
    border: 2px solid #1a5f3f;
    font-weight: 600;
    color: #1a5f3f;
}

/* Past + today combination */
.vr-cal-today.vr-cal-past {
    border-color: #b0b0b0;
    color: #b0b0b0;
}

/* ---- Occupied (fully blocked) dates ---- */
.vr-cal-occupied {
    background: #d4564a;
    color: #fff;
    font-weight: 500;
    cursor: default;
    text-decoration: line-through;
}

.vr-cal-occupied:hover {
    background: #c0463b !important;
}

/* Occupied + today */
.vr-cal-occupied.vr-cal-today {
    border-color: #1a5f3f;
}

/* ---- Checkin day (guest arrives - left half free, right half occupied) ---- */
.vr-cal-checkin {
    background: linear-gradient(135deg, transparent 50%, #d4564a 50%);
    color: #555;
    font-weight: 500;
    cursor: default;
    text-decoration: line-through;
}

.vr-cal-checkin:hover {
    background: linear-gradient(135deg, #f0f0f0 50%, #c0463b 50%) !important;
}

/* ---- Checkout day (guest leaves next morning - left half occupied, right half free) ---- */
.vr-cal-checkout {
    background: linear-gradient(135deg, #d4564a 50%, transparent 50%);
    color: #555;
    font-weight: 500;
    cursor: default;
    text-decoration: line-through;
}

.vr-cal-checkout:hover {
    background: linear-gradient(135deg, #c0463b 50%, #f0f0f0 50%) !important;
}

/* ---- Single night (both checkin and checkout) ---- */
.vr-cal-single {
    background: linear-gradient(135deg, transparent 25%, #d4564a 25%, #d4564a 75%, transparent 75%);
    color: #555;
    font-weight: 500;
    cursor: default;
    text-decoration: line-through;
}

/* Checkin/checkout + today */
.vr-cal-checkin.vr-cal-today,
.vr-cal-checkout.vr-cal-today,
.vr-cal-single.vr-cal-today {
    border-color: #1a5f3f;
}

/* ---- Legend ---- */
.vr-calendar-legend {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.vr-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.vr-legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.vr-legend-occupied {
    background: #d4564a;
}

.vr-legend-checkin {
    background: linear-gradient(135deg, transparent 50%, #d4564a 50%);
}

/* ==========================================================================
   Responsive: single column on narrow screens
   ========================================================================== */
@media (max-width: 600px) {
    .vr-calendar-wrap {
        padding: 20px 14px 18px;
        border-radius: 8px;
        margin: 1rem auto;
    }

    .vr-calendar-months {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }

    .vr-cal-month-panel {
        max-width: 100%;
    }

    .vr-calendar-nav {
        top: 22px;
        left: 8px;
        right: 8px;
    }

    .vr-cal-prev,
    .vr-cal-next {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .vr-cal-day,
    .vr-cal-day-name {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .vr-cal-day-name {
        height: auto;
        padding-bottom: 4px;
        font-size: 10px;
    }

    .vr-cal-header {
        font-size: 1rem;
        padding-bottom: 10px;
    }
}

/* Medium screens: tighten spacing a bit */
@media (min-width: 601px) and (max-width: 750px) {
    .vr-calendar-wrap {
        padding: 24px 18px 20px;
    }

    .vr-calendar-months {
        gap: 16px;
    }

    .vr-cal-day,
    .vr-cal-day-name {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .vr-cal-day-name {
        height: auto;
        font-size: 10px;
    }
}

/* ==========================================================================
   Pricing Table & Booking Terms
   ========================================================================== */
.vr-pricing-wrap {
    max-width: 720px;
    margin: 2rem auto 0;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vr-pricing-title {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 20px;
    letter-spacing: 0.02em;
}

/* Table */
.vr-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.vr-pricing-table thead th {
    background: #1a5f3f;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 14px 18px;
    text-align: left;
}

.vr-pricing-table thead th:not(:first-child) {
    text-align: right;
}

.vr-pricing-table tbody td {
    padding: 12px 18px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
}

.vr-pricing-table tbody td:not(:first-child) {
    text-align: right;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.vr-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.vr-pricing-table tbody tr:hover {
    background: #f8faf8;
}

/* Alternate row subtle color */
.vr-pricing-table tbody tr:nth-child(even) {
    background: #fafbfa;
}

.vr-pricing-table tbody tr:nth-child(even):hover {
    background: #f0f5f0;
}

/* Booking Terms */
.vr-booking-terms {
    background: #ffffff;
    border-radius: 10px;
    padding: 24px 28px;
    margin-top: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.vr-booking-terms h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a5f3f;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e8f0ea;
}

.vr-booking-terms p {
    font-size: 13.5px;
    line-height: 1.7;
    color: #444;
    margin: 0 0 10px;
}

.vr-booking-terms p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .vr-pricing-wrap {
        margin-top: 1.5rem;
    }

    .vr-pricing-title {
        font-size: 1rem;
    }

    .vr-pricing-table thead th {
        font-size: 11px;
        padding: 10px 10px;
    }

    .vr-pricing-table tbody td {
        font-size: 13px;
        padding: 10px 10px;
    }

    .vr-booking-terms {
        padding: 18px 18px;
    }

    .vr-booking-terms p {
        font-size: 13px;
    }
}
