/* ============================================= */
/* =========== BOOKING PAGE STYLES ============= */
/* ============================================= */

/* Use root variables from the main style.css */
:root {
    --primary-gold: #D4AF37;
    --dark-charcoal: #2c2c2c;
    --soft-cream: #F5F5DC;
    --white: #ffffff;
    --light-gray: #f9f9f9;
    --text-color: #555;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
}

.booking-page-main {
    padding-top: 120px; /* Space for the fixed header */
    background-color: var(--white);
}

/* ============================================= */
/* =========== BOOKING SYSTEM SECTION ========== */
/* ============================================= */
.booking-system-section {
    width: 100%;
    padding: 4rem 5%;
    background-color: var(--light-gray);
}

.booking-container {
    display: flex;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.booking-form-wrapper {
    flex: 1.2; /* Give more space to the form */
}

.booking-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-charcoal);
}

.booking-subtitle {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 2.5rem;
}

.booking-details-form .form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group-booking {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.form-group-booking label {
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group-booking input,
.form-group-booking select {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--body-font);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group-booking input:focus,
.form-group-booking select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.btn-block-booking {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-top: 1rem;
    border-radius: 8px;
}

/* ============================================= */
/* ============= CALENDAR STYLES =============== */
/* ============================================= */
.calendar-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar {
    width: 100%;
    max-width: 400px;
    background: #fdfdfd;
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid #eee;
}

.calendar-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.month-year {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-charcoal);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
}

.day-name {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-color);
}

.day {
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
}

.day:hover {
    background-color: #efefef;
}

.day.other-month {
    color: #ccc;
}

.day.today {
    background-color: var(--dark-charcoal);
    color: var(--white);
}

.day.selected-start, .day.selected-end {
    background-color: var(--primary-gold);
    color: var(--white);
}

.day.selected {
    background-color: rgba(212, 175, 55, 0.2);
    border-radius: 0;
}
.day.selected-start { border-top-left-radius: 50%; border-bottom-left-radius: 50%; }
.day.selected-end { border-top-right-radius: 50%; border-bottom-right-radius: 50%; }


/* ============================================= */
/* ============= OUR ROOMS SECTION ============= */
/* ============================================= */
.our-rooms-section {
    width: 100%;
    height: 55vh; /* Half desktop screen height */
    min-height: 500px;
    display: flex;
    flex-direction: column;
    padding: 3rem 0;
    background: var(--white);
}

.rooms-header {
    padding: 0 5%;
    margin-bottom: 2rem;
}

.rooms-header h2 {
    font-size: 2.5rem;
    color: var(--dark-charcoal);
}

.rooms-horizontal-scroll {
    flex-grow: 1;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 5% 20px 5%; /* Add padding for scrollbar space */
}

/* Custom Scrollbar */
.rooms-horizontal-scroll::-webkit-scrollbar {
    height: 12px;
}
.rooms-horizontal-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.rooms-horizontal-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
.rooms-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary-gold);
}


.rooms-container {
    display: flex;
    gap: 2rem;
    height: 100%;
}

.room-card {
    flex: 0 0 350px; /* Fixed width for each card */
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.room-card img {
    width: 100%;
    height: 80%;
    object-fit: cover;
    display: block;
}

.room-label {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--dark-charcoal);
    background: var(--white);
    padding: 1rem;
    text-align: center;
    height: 20%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ============================================= */
/* ============== MEDIA QUERIES ================ */
/* ============================================= */
@media (max-width: 1200px) {
    .booking-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .booking-page-main {
        padding-top: 100px;
    }
    .booking-container {
        padding: 2rem;
    }
    .booking-details-form .form-row {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 0;
    }
    .booking-details-form .form-group-booking {
        margin-bottom: 1.5rem;
    }
    .room-card {
        flex: 0 0 300px;
    }
    .our-rooms-section {
        height: auto;
    }
}

@media (max-width: 480px) {
    .booking-title {
        font-size: 2.2rem;
    }
    .booking-container {
        padding: 1.5rem;
    }
    .room-card {
        flex: 0 0 260px;
    }
    .room-label {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .booking-container {
        flex-direction: column;
        padding: 1.2rem;
    }

    .booking-form-wrapper {
        width: 100%;
    }

    .booking-title {
        font-size: 2rem;
        line-height: 1.3;
    }

    .booking-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .booking-details-form .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .form-group-booking {
        width: 100%;
    }

    .form-group-booking input,
    .form-group-booking select {
        font-size: 0.95rem;
        padding: 12px;
    }

    .btn-block-booking {
        font-size: 1rem;
        padding: 14px;
    }

    .calendar-wrapper {
        width: 100%;
        margin-top: 2rem;
    }

    .calendar {
        max-width: 100%;
    }

    .calendar-grid {
        gap: 8px;
    }

    .room-card {
        flex: 0 0 240px;
    }

    .room-label {
        font-size: 0.95rem;
        padding: 0.8rem;
    }

    .rooms-horizontal-scroll {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .rooms-container {
        gap: 1rem;
    }
}
@media (max-width: 480px) {
    .calendar {
        max-width: 100%;
        width: 100%;
        padding: 1rem;
        overflow-x: auto;
    }

    .calendar-grid {
        gap: 6px; /* tighter spacing */
    }

    .day, .day-name {
        font-size: 0.8rem;
        padding: 8px;
    }

    .month-year {
        font-size: 1.2rem;
    }
}
