﻿
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.cal-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px;
    /* width: 420px; */
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.cal-nav {
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 34px;
    height: 34px;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

    .cal-nav:hover:not(:disabled) {
        background: #f0f0f0;
    }

    .cal-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
    }

.cal-title {
    font-size: 16px;
    font-weight: 600;
    color: #111;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-dow {
    font-size: 11px;
    color: #999;
    text-align: center;
    padding: 4px 0 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.cal-day {
    border-radius: 8px;
    padding: 6px 2px;
    text-align: center;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.12s, border-color 0.12s;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

    .cal-day:not(.disabled):not(.empty):hover {
        background: #f0f6ff;
        border-color: #c0d8f5;
    }

    .cal-day.today {
        border-color: #378ADD;
    }

    .cal-day.selected {
        background: #deeeff;
        border-color: #378ADD;
    }

    /* ── DISABLED: past dates are fully locked ── */
    .cal-day.disabled {
        cursor: not-allowed;
        pointer-events: none; /* no hover, no click, no any event */
        opacity: 0.32;
    }

    .cal-day.empty {
        pointer-events: none;
    }

.day-num {
    font-size: 13px;
    font-weight: 600;
    color: #111;
}

.day-price {
    font-size: 10px;
    color: #888;
}

.cal-day.selected .day-num {
    color: #0C447C;
}

.cal-day.selected .day-price {
    color: #185FA5;
}

.cal-day.today .day-num {
    color: #185FA5;
}

.selected-info {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f7f9fc;
    border-radius: 10px;
    font-size: 13px;
    color: #666;
    min-height: 40px;
    display: flex;
    align-items: center;
    border: 1px solid #eee;
}

