/* --- 1. SETTINGS & RESET --- */
:root {
    --brand-gold: #c5a059;
    --brand-dark: #1a1a1a;
    --brand-paper: #f9f7f4;
    --brand-white: #ffffff;
    --brand-gray-100: #f8f9fa;
    --brand-gray-200: #dee2e6;
    --text-muted: #6c757d;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- 2. LAYOUT & SPACING --- */
.reservation-page {
    padding: 80px 0 100px; /* Hapësira e jashtme e faqes */
    background-color: var(--brand-paper);
    min-height: 100vh;
    margin-top: 80px;
}

.title-reservations {
    padding-top: 40px; /* Titulli ngjitet më lart */
    text-align: center;
}

.reservation-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 15px;
}

.reservation-subtitle {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 50px;
    font-size: 16px;
}

/* --- 3. THE BOOKING CARD --- */
.booking-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--brand-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
}

.card-header {
    background: var(--brand-dark);
    color: #fff;
    padding: 25px;
}

.live-summary {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* --- 4. COMPACT CALENDAR (KORRIGJIMI KRYESOR) --- */
.calendar-wrapper {
    background: #fff;
    padding: 15px;
    border: 1px solid var(--brand-gray-200);
    border-radius: 12px;
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-current-month {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.nav-link-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-gray-100);
    color: var(--brand-dark);
    transition: var(--transition);
}

.nav-link-btn:hover:not(.disabled-grey) {
    background: var(--brand-gold);
    color: white;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    height: auto !important; /* Hiqet 100vh */
    gap: 2px;
}

.calendar-day-label {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    padding-bottom: 10px;
}

.calendar-day {
    height: 42px !important; /* Lartësi e vogël kompakte */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    position: relative;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
}

.calendar-day:hover:not(.disabled-grey) {
    background: var(--brand-gray-100);
}

.calendar-day.selected {
    background: var(--brand-gold) !important;
    color: white !important;
}

.calendar-day.disabled-grey {
    color: #ccc !important;
    background: transparent !important;
    cursor: not-allowed;
    opacity: 0.4;
}

.avail-dot {
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #2ecc71;
}

.calendar-day.selected .avail-dot {
    background: white;
}

/* --- 5. GUESTS & TIME SLOTS --- */
.booking-section {
    border-bottom: 1px solid var(--brand-gray-100);
}

.section-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 15px;
}

.stepper-btn-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--brand-gray-200);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stepper-btn-small:hover {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.time-slot-btn {
    border: 1px solid var(--brand-gray-200);
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: var(--brand-gray-100);
}

.time-slot-btn:hover {
    border-color: var(--brand-gold);
}

.time-slot-btn.selected {
    background: var(--brand-dark);
    color: white;
    border-color: var(--brand-dark);
}

/* --- 6. MODAL STYLING --- */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal.active { display: flex; }

.modal-content {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

.btn-gold {
    background: var(--brand-gold);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-gold:hover {
    background: #af8b4a;
    transform: translateY(-2px);
}
/* Stili për slotin që zgjidhet (përputhet me klasën selected-slot në JS) */
.time-slot-btn.selected-slot {
    background: var(--brand-dark) !important;
    color: var(--brand-white) !important;
    border-color: var(--brand-dark) !important;
    transform: scale(1.05); /* Një efekt i vogël zmadhimi */
}

/* Kur një orar është i zënë (Full) */
.time-slot-btn.disabled-slot {
    background: #f2f2f2 !important;
    color: #ccc !important;
    cursor: not-allowed !important;
    border: 1px dashed #ddd !important;
    opacity: 0.6;
}

/* Pak animacion kur shfaqen slotet */
#time-slots div {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
.btn-collapse[aria-expanded="true"] .arrow-icon {
    transform: rotate(180deg);
}
.arrow-icon {
    transition: transform 0.3s ease;
    display: inline-block;
}
