#calendars {
    position: fixed;
    left: 350px; /* Adjust based on where you want the calendars to be fixed */
    top: 100px;
    margin: 0;
    z-index: 1000; /* Ensure the calendars are above other elements */
    background: white; /* Optional: To ensure the background of calendars is visible */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for better visibility */
    padding: 20px; /* Reduced padding for a more compact layout */
    display: none;
}

.calendar-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#calendar1, #calendar2 {
    margin: 10px; /* Reduced margin for a more compact look */
}

#month-header1, #month-header2 {
    text-align: center;
    margin-bottom: 5px; /* Reduced margin */
    font-weight: bold;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.day-header {
    border: 1px solid #ccc;
    text-align: center;
    width: 45px; /* Reduced width */
    height: 45px; /* Reduced height */
    cursor: pointer;
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center text vertically */
    justify-content: center;
    margin: 10px 0 20px 0;
    font-weight: bold;
}

.day {
    border: 1px solid #ccc;
    text-align: center;
    width: 45px; /* Reduced width */
    height: 45px; /* Reduced height */
    cursor: pointer;
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center text vertically */
    justify-content: center;
    font-weight: bold;
}

.selected {
    background-color: lightblue;
}

.navigation {
    margin-top: 10px; /* Reduced margin */
    display: flex;
    justify-content: space-between;
    margin-bottom: 0px;
}

.navigation button {
    margin: 0 3px; /* Reduced margin */
}

.prenex {
    cursor: pointer;
    padding: 0 20px;
}

.triangle {
    width: 0;
    height: 0;
    border: 8px solid transparent;
    background-color: transparent;
    outline: none;
    padding: 0;
}

.prev {
    border-right: 8px solid black; /* Triangle pointing left */
}

.next {
    border-left: 8px solid black; /* Triangle pointing right */
}

.day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.blocked {
    background-color: red;
    color: white;
}

.weekend {
    color: red;
}

.holiday {
    color: orange;
}

.holidays {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.6;
    width: 600px;
    overflow-x: auto; /* Enables horizontal scrolling if content overflows */
    white-space: nowrap;
}

.holiday-item {
    display: inline-block;
    border: 2px solid orange; /* Orange border */
    background-color: #ffebcc; /* Light orange background */
    color: #333; /* Dark text for better readability */
    padding: 10px;
    margin: 5px;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding and border are included in the total width/height */
    text-align: center; /* Center align text inside the item */
}

.mobile-search-section {
    display: none;
}

@media only screen and (min-width: 768px) {
    
    .mobile-search-div {
        display: none;
    }
    
}

@media only screen and (max-width: 768px) {

.mobile-search-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; /* Background color */
    z-index: 1000; /* Ensure it is on top of other elements */
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 50px; /* Adjust padding as needed */
}

.mobile-inner-search {
    width: 100%;
    max-width: 600px; /* Adjust max width as needed */
}

#hide_button {
    position: absolute;
    left: 10px;
    top: 10px;
}

#mobile_calendars {
    position: fixed;
    left: 5px; /* Adjust based on where you want the calendars to be fixed */
    top: 80px;
    margin: 0;
    z-index: 1000; /* Ensure the calendars are above other elements */
    background: white; /* Optional: To ensure the background of calendars is visible */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Optional: Adds a subtle shadow for better visibility */
    padding: 20px; /* Reduced padding for a more compact layout */
    display: none;
}

.mobile-calendar-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

#mobile_calendar2 {
    display: none;
}

#mobile_month-header1, #mobile_month-header2 {
    text-align: center;
    margin-bottom: 5px; /* Reduced margin */
    font-weight: bold;
}

.mobile-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.mobile-day-header {
    border: 1px solid #ccc;
    text-align: center;
    width: 45px; /* Reduced width */
    height: 45px; /* Reduced height */
    cursor: pointer;
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center text vertically */
    justify-content: center;
    margin: 10px 0 20px 0;
    font-weight: bold;
}

.mobile-day {
    border: 1px solid #ccc;
    text-align: center;
    width: 45px; /* Reduced width */
    height: 45px; /* Reduced height */
    cursor: pointer;
    display: flex; /* Use flexbox for centering */
    align-items: center; /* Center text vertically */
    justify-content: center;
    font-weight: bold;
}

.mobile-selected {
    background-color: lightblue;
}

.mobile-navigation {
    margin-top: 10px; /* Reduced margin */
    display: flex;
    justify-content: space-between;
}

.mobile-navigation button {
    margin: 0 3px; /* Reduced margin */
}

.mobile-prenex {
    cursor: pointer;
    padding: 0 20px;
}

.mobile-triangle {
    width: 0;
    height: 0;
    border: 8px solid transparent;
    background-color: transparent;
    outline: none;
    padding: 0;
}

.mobile-prev {
    border-right: 8px solid black; /* Triangle pointing left */
}

.mobile-next {
    border-left: 8px solid black; /* Triangle pointing right */
}

.mobile-day.disabled {
    color: #ccc;
    cursor: not-allowed;
}

.mobile-blocked {
    background-color: red;
    color: white;
}

.mobile-weekend {
    color: red;
}

.mobile-holiday {
    color: orange;
}

.mobile-holidays {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.6;
    width: 300px;
    overflow-x: auto; /* Enables horizontal scrolling if content overflows */
    white-space: nowrap;
}

.mobile-holiday-item {
    display: inline-block;
    border: 2px solid orange; /* Orange border */
    background-color: #ffebcc; /* Light orange background */
    color: #333; /* Dark text for better readability */
    padding: 10px;
    margin: 5px;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding and border are included in the total width/height */
    text-align: center; /* Center align text inside the item */
}

}