#selected-month-title {
    font-size: 30px;
    text-align: center;
    margin-top:0;
}

/* Updated CSS for Previous and Next buttons */
#prev-month, #next-month {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #004137;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 10px;
    color: #fff;
    border: 0;
}

#prev-month:hover, #next-month:hover {
    background-color: #004137;
    color:#FF3503;
}

/* Styling for select fields */
#month-select {
    background-color: #004137;
    color: white;
    border-radius: 8px;
    padding: 5px;
    margin: 5px;
    font-size: 18px; /* Adjust font size if needed */
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 40px;
    border:none;
    min-width: 120px;
    text-align: center;
}

#month-select:hover {
    border:none;
    cursor: pointer;
}

#departure-port:hover {
    background-color: #FF3503;
    border:none;
    cursor: pointer;
}

/* Booking Time */

.booking-time {
    background-color: #fff;
    padding: 5px;
    width: 100%;
    border-radius: 5px;
    overflow-wrap: break-word!important;
}

/* Departure port select element */

.departure-port-select {
    display: flex;
    align-items: center;
    justify-content: center; /* Optional: Center the content horizontally */
    color: #004137;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    padding: 5px 15px 5px 5px;
    border-radius: 10px;
    margin-top: -20px;
}

/* Adjust the label and select styling */
.departure-port-select label {
    margin-right: 10px;
}

.departure-port-select select {
    flex-shrink: 0;
    background-color: #FF3503;
    color: white;
    border-radius: 8px;
    padding: 5px;
    font-size: 18px; /* Adjust font size if needed */
    outline: none;
    transition: border-color 0.3s ease;
    min-height: 40px;
    border: none;
    max-width: 150px;
}

.departure-port-select select:hover {
    background-color: #bc351a;
    border: none;
}


/* Calendar Styles */
#ss-schedule {
    background-color: rgba(235, 235, 235, 0.55);
    border-radius:0.5rem;
    justify-content: center;
    align-items: center;
    min-width: 366px;
    width: 70vw;
    max-width: 1300px;
    margin: 0 auto; /* Center the container horizontally */
    padding: 20px; /* Optional: Add padding for better spacing */
}
#calendar div {
    padding: 10px;
    text-align: center;
    cursor: pointer;
    border-radius: 5px; /* Add border radius for smoother edges */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}
.day.has-schedule {
    background-color: #fff; /* Highlighted color for scheduled days */
    color: #000;
}
.day.past-date {
    background-color: #b5b5b5; /* Lighter color for past dates */
    color: #fff;
    pointer-events: none;
}
.day.prev-month {
    background-color: #b5b5b5; /* Lighter color for other months */
    color: #fff;
    pointer-events: none;
}

.day.next-month {
    background-color: #a0a0a0;
    cursor: pointer;
}

/* Day hover animation */
.day:hover {
    background-color:#FF3503;
}

/* Number content */
.day span {
    position: relative;
    /* z-index: 100; /* Higher z-index to be on top of wave effect */
}

/* Optional: Add some smooth transitions for color changes */
.day {
    transition: all 0.3s ease;
}

/* Night */
.night { 
    background-color:#b5b5b5;
    text-align: center;
    padding: 5px;
    color: #fff;
    border-radius: 5px; 
    min-width: 20px;
    font-size:18px;
    transition: all 0.3s ease;
}

/* Styles for the selected night */
.night.selected {
    background-color: #FF3503;
    color: white;
}

.night.has-schedule {
    background-color: #ffffff; /* Highlighted color for scheduled days */
    color: #000;
}
.night.past-date {
    background-color: #b5b5b5; /* Lighter color for past dates */
    color: #fff;
    pointer-events: none;
}
.night.prev-month, .night.next-month {
    background-color: #b5b5b5; /* Lighter color for other months */
    color: #fff;
    pointer-events: none;
}

/* Night hover animation */
.night:hover {
    background-color: #FF3503;
}

/* Number content */
.night span {
    position: relative;
    z-index: 100; /* Higher z-index to be on top of wave effect */
}

/* Weekday Header Styles */
.header {
    background-color: #004137; /* Background color for headers */
    color: #fff; /* Font color for headers */
}

/* Schedule Details Styles */
#schedule-details a {
    color: #1b1b1b;
    margin-bottom: 5px;
}
#schedule-details {
    margin-top: 20px;
    display: none;
}
#schedule-details h3 {
    margin-bottom: 5px;
    margin-top:0;
}
/* Updated Layout for Calendar */
#calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}
#calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
#month-select {
    flex-grow: 1;
    margin: 0 10px;
}
.nav, .header {
    text-align: center;
    padding: 5px;
    border: 1px solid #ddd;
    background-color: #fff;
    border-radius: 5px;
}
.day { 
    background-color:#b5b5b5;
    text-align: center;
    padding: 5px;
    color: #fff;
    border-radius: 5px; 
}

/* Styles for the selected day */
.day.selected {
    background-color: #FF3503;
    color: white;
}
.header {
    background-color: #004137;
}
.nav {
    background-color: #f7f7f7;
}

/* Mobile View Styles */
@media (max-width: 768px) {
    #ss-schedule {
        min-width: 333px;
        width: 92vw;
        max-width: 750px;
    }

    #calendar {
        min-width: 275px;
    }
    .header-mobile {
        min-width: 20px;
        font-size:13px;
    }
    .day {
        min-width: 20px;
        font-size:13px;
    }
    .night {
        min-width: 20px;
        font-size:13px!important;
    }
    #search-form {
        flex-direction: column;
        padding-left: 1.5rem; /* Adjust padding for smaller screens */
        padding: 1rem;
        border-radius: 2rem;
    }
    #search-form select, #search-form input[type="text"], #search-form button {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    #search-form button {
        margin-left: 0;
        border-radius: 20rem; /* Round button corners for mobile */
    }
    /* Mobile Weekday Header Styles */
    .header {
        display: none;
    }
    .header-mobile {
        display: block;
        background-color: #004137;
        color: #fff;
        text-align: center;
        padding: 5px;
    }
}

.schedule-row {
    cursor: pointer;
}

/* Schedule Card Styles */
.ss-schedule-card {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
}
.ss-schedule-time {
    margin-top: 10px;
}
.ss-schedule-time label {
    display: block;
    margin-bottom: 5px;
}
.remove-time, .remove-schedule {
    margin-top: 10px;
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
.remove-time:hover, .remove-schedule:hover {
    background-color: darkred;
}
.add-time, #add-schedule {
    margin-top: 10px;
    background-color: green;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}
.add-time:hover, #add-schedule:hover {
    background-color: darkgreen;
}

/* Weekly Schedule Styles */
#ss-weekly-schedule {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
    margin: 0 auto;
}
.weekly-schedule-card {
    /* background: url('https://hullo.com/wp-content/uploads/2023/07/water-sailing-wash-hullo.png') no-repeat center center; */
    background-color: rgba(235, 235, 235, 0.55);
    background-size: cover;
    border-radius: 8px;
    padding: 20px;
    margin: 0;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    position: relative;
}
.weekly-schedule-card h2, .weekly-schedule-card h3 {
    text-align: center;
    /* margin: 0; */
    padding: 10px 0;
}
.weekly-schedule-card h2 {
    border-bottom: 1px solid white;
}
.weekly-schedule-card h4 {
    text-align: center;
    margin-top:0;
}
.weekly-schedule-card .schedule-table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
    background: none;
}
.weekly-schedule-card .schedule-table th,
.weekly-schedule-card .schedule-table td {
    border: 1px solid white;
    padding: 10px;
    text-align: center;
}
.weekly-schedule-card .schedule-table th {
    background: rgba(16, 47, 39, 0.75);
    color:#fff;
}
.weekly-schedule-card .schedule-table td {
    background: rgba(16, 47, 39, 0.25);
}

/* Daily Schedule Card Styles */
.daily-schedule-card {
    background: url('https://hullo.com/wp-content/uploads/2023/07/water-sailing-wash-hullo.png') no-repeat center center !important;
    background-size: cover !important;
    color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}
.daily-schedule-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 47, 39, 0.55);
    z-index: 1;
    border-radius: 8px;
}
.daily-schedule-card h2, .daily-schedule-card h3 {
    position: relative;
    z-index: 2;
    text-align: center;
    margin: 0;
    padding: 0;
    color: #fff;
}
.daily-schedule-card h2 {
    border-bottom: 1px solid white;
}
.daily-schedule-card .schedule-table {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}
.daily-schedule-card .schedule-table th,
.daily-schedule-card .schedule-table td {
    border: 1px solid white;
    padding: 10px;
    text-align: center;
}
.daily-schedule-card .schedule-table th {
    background: rgba(16, 47, 39, 0.75);
}
.daily-schedule-card .schedule-table td {
    background: rgba(16, 47, 39, 0.25);
}

/* Port Location Styles */
.port-location-daily {
    color: #fff;
    background-color: #FF3503;
    padding: 5px 5px 5px 15px;
    border-radius: 5px;
    margin-top: 20px!important;
}

.port-location-weekly {
    color: #fff;
    background-color: #FF3503;
    padding: 5px 5px 5px 15px;
    border-radius: 5px;
}

/* SCHEDULE TITLE */

.schedule-title {
    font-weight: 900;
    justify-content: flex-start !important;
    color:#1b1b1b !important;
}

/* DOTS */

.red-status-cancelled {
    color: #FF3503;                  /* Base color for the dot */
    text-shadow: 0 0 5px #FF3503;   
  }

.orange-status-be-aware {
    color: orange;
    text-shadow: 0 0 5px orange;   
}

.green-status-normal-services {
    color: #127041;
    text-shadow: 0 0 5px #0db15f;   
}

/* Mobile View Styles */
@media (max-width: 768px) {
    #calendar div { 
        padding: 10px!important;
    }
    .header-mobile {
        min-height: 25px;
        min-width: 35px;
        border-radius: 2px!important;
        margin: 0;
        border: none;
    }
    .day {
        min-height: 25px;
        min-width: 35px;
        border-radius: 2px!important;
        margin: 0;
        border: none;
    }
    .night {
        min-height: 25px;
        min-width: 35px;
        border-radius: 2px!important;
        margin: 0;
        border: none;
    }
    .booking-time {
        font-size: 1rem;
    }
    /* Adjust the label and select styling */
    .departure-port-select label {
        font-size:14px;
        padding-left: 10px;
    }
    .departure-port-select {
        text-align:center;
    }
    #search-form {
        flex-direction: column;
        padding-left: 1.5rem; /* Adjust padding for smaller screens */
        padding: 1rem;
        border-radius: 2.2rem;
    }
    #search-form select, #search-form input[type="text"], #search-form button {
        flex: none;
        width: 100%;
        margin-right: 0;
        margin-bottom: 1rem;
    }
    #search-form button {
        margin-left: 0;
        border-radius: 20rem; /* Round button corners for mobile */
    }
    .schedule-title {
        max-width: 100% !important;
        font-size: 19px !important;
        font-weight: 900;
        justify-content: flex-start !important;
        color:#1b1b1b !important;
    }
}
