﻿/* Container and Calendar Styling */
#container {
    position: relative;
    max-width: 410px; /* Limit the calendar width */
    width: 100%;
}

#calendar {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 12px; /* Slight padding reduction */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    width: 100%;
    max-width: 100%;
    font-size: 14px; /* Base font size related to dateInput */
}

/* Header */
#header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

#monthYear {
    font-size: 16px; /* Match with dateInput font-size */
    font-weight: 500;
    margin: 0;
}

#prevMonth, #nextMonth {
    background-color: #191970;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

/* Day Names and Days */
.day-names {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
}

.day-name {
    font-size: 13px;
    color: #333;
    text-align: center;
    flex: 1;
}

#days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
}

.day {
    display: flex;
    flex-direction: column; /* Align content vertically */
    justify-content: center;
    align-items: center;
    background-color: #555;
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    font-size: 14px;
    max-height: 50px; /* Increase height slightly for space */
}

.price {
    font-size: 11px;
    color: #fff; /* Match the text color */
    margin-top: 2px; /* Space between day number and price */
}

.available {
    background-color: #191970;
}

.not-available {
    background-color: #ccc;
    color: #777;
    cursor: not-allowed;
}



.selected {
    border: 2px solid #ffcc00;
}

/* Date Input */
#dateInput {
    width: 100%;
    height: 54px;
    border: 1px solid var(--bordertwo);
    padding: 11px;
    width: 100%;
    border-radius: 5px;
    font-size: 12px;
    height: 48px;
}

/* Responsive adjustments */
@media (min-width: 1200px) {
    #calendar {
        font-size: 16px; /* Slightly larger font for large screens */
    }

    .day {
        font-size: 16px; /* Larger day font size */
        height: 40px;
    }
}

@media (max-width: 768px) {
    #calendar {
        font-size: 13px; /* Smaller font for mobile screens */
        padding: 10px;
    }

    .day {
        font-size: 12px;
        height: 35px;
    }

    #prevMonth, #nextMonth {
        font-size: 12px;
        padding: 3px 6px;
    }
}
