.calendar-container {
    display: flex;
    gap: 40px; /* Space between the two calendars */
    justify-content: center;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: 1000px; /* Adjust as needed */
    width: 100%;
    margin-bottom: 20px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens if needed */
}

.calendar-month {
    width: 45%; /* Adjust width for two calendars */
    min-width: 350px; /* Minimum width before wrapping */
}

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

.calendar-header h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #333;
}

.calendar-nav a {
    text-decoration: none;
    color: #007bff;
    font-size: 1.5em;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.calendar-nav a:hover {
    background-color: #e9ecef;
}


.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px; /* Creates the thin grid lines */
    background-color: #ffffff; /* Grid line color */
    border: 1px solid #ffffff; /* Outer border */
}

.calendar-grid div {
    background-color: #fff; /* Default cell background */
    padding: 8px 5px;
    text-align: center;
    min-height: 60px; /* Ensure cells have some height */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    position: relative;
}

.day-header {
    font-weight: bold;
    color: #495057;
    background-color: #f8f9fa;
    padding: 10px 5px;
}

.day-number {
    font-size: 1.1em;
    font-weight: 500;
}

.day-price {
    font-size: 0.8em;
    color: #6c757d;
    margin-top: 4px;
}

/* Day States */
.calendar-day.available {
    background-color: #edf6f6; /* Light cyan/blue */
    cursor: default;
}
.calendar-day.available .day-price {
    color: #346a7e;
}

.calendar-day.booked {
    background-color: #e1d5e7; /* Light purple */
    color: #583b66;
    cursor: default;
}
.calendar-day.booked .day-price {
    color: #7a5d8c;
}

.calendar-day.today {
    background-color: #343a40; /* Dark gray */
    color: white;
    font-weight: bold;
}
.calendar-day.today .day-price {
    color: #adb5bd;
}
.calendar-day.today::after { /* Optional: subtle indicator */
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background-color: #ffc107; /* A yellow dot */
    border-radius: 50%;
}

.calendar-day.past {
    background-color: #f8f9fa; /* Very light gray */
    color: #adb5bd;
    cursor: default;
    opacity: 0.7;
}
.calendar-day.past .day-price {
    color: #ced4da;
}
.calendar-day.empty {
    background-color: #f8f9fa; /* Same as past, but no content */
    opacity: 0.5;
}

/* Admin Specific Styles */
.admin-mode .calendar-day:not(.past):not(.empty):not(.today) { /* Allow clicking only on future available/booked */
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.admin-mode .calendar-day:not(.past):not(.empty):not(.today):hover {
   transform: scale(1.05);
   box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
   z-index: 10;
}

/* Range Selection Visual Cue */
.selecting {
    outline: 2px dashed #007bff; /* Blue dashed outline */
    outline-offset: -2px;
    background-color: rgba(0, 123, 255, 0.1); /* Light blue overlay */
}


.legend {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.legend div {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
}
.legend span {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #ccc;
}
.legend .past-key { background-color: #f8f9fa; }
.legend .today-key { background-color: #343a40; }
.legend .booked-key { background-color: #e1d5e7; }
.legend .available-key { background-color: #e0f2f7; } /* Added for consistency */

.admin-info {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    border-radius: 4px;
    text-align: center;
}
.admin-info a {
    color: #0c5460;
    font-weight: bold;
    text-decoration: none;
    margin-left: 15px;
}
.admin-info a:hover {
    text-decoration: underline;
}

/* Global Nav */
.global-nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px; /* Match calendar container width */
    margin-bottom: 20px;
}
.global-nav a {
    text-decoration: none;
    background-color: #6ec1e4;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1.1em;
    transition: background-color 0.2s ease;
}
.global-nav a:hover {
    background-color: #5a9fbc;
}

/* Optional: Add a loading indicator style */
.calendar-container.loading {
    opacity: 0.5;
    pointer-events: none; /* Prevent clicks during load */
}
