.cruise-search-block {
    background-color: #0d1e34;
    padding: 20px 0;
    width: 100%;
}

#cruise-search-form {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.search-field {
    flex: 1;
    position: relative;
}

.search-field label {
    display: none; /* Labels are hidden in the screenshot */
}

.search-field select {
    display: none; /* Keep hidden as we use the custom UI */
}

.arrow-icon {
    display: block;
    width: 26px;
    height: 26px;
    background-image: url("../../../images/common-icon/arrow-bottom-blue.png");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.5s;
    transform: rotate(0deg);
}

.custom-select-wrapper.open .arrow-icon {
    transform: rotate(180deg);
}
.search-submit {
    width: 45px;
    height: 45px;
    background-color: #4a6a8a;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.2s;
}

.search-submit:hover {
    background-color: #3a5a7a;
}

/* Icon for the submit button */
.search-submit::before {
    content: "";
    width: 45px;
    height: 45px;
    background-image: url("../../../images/common-icon/search-white.png");
    background-color: #456580;
    background-size: 18px;
    background-position: center;
    background-repeat: no-repeat;
}

/* Hide text inside submit button to show only icon */
.search-submit {
    font-size: 0;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    height: 45px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    cursor: pointer;
}

.custom-options {
    position: absolute;
    bottom: 100%; /* Forces it to open UP */
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    margin-bottom: 2px; /* Gap between trigger and menu */
}

.custom-select-wrapper.open .custom-options {
    display: block;
}

.custom-option {
    padding: 10px 15px;
    cursor: pointer;
    color: #333;
}

.custom-option:hover {
    background-color: #f0f0f0;
}

.calendar-options {
    padding: 16px;
    width: 276px;
}

.calendar-year {
    margin-bottom: 18px;
}

.calendar-year-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.calendar-month {
    text-align: center;
    font-size: var(--bs-body-font-size);
    cursor: pointer;
    padding: 0.5rem;
}

.calendar-month.disabled {
    opacity: 0.35;
    pointer-events: none;
}

.calendar-month:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    #cruise-search-form {
        flex-direction: column;
        padding: 0 20px;
    }
    .search-field, .search-submit {
        width: 100%;
    }
    .search-submit {
        font-size: 16px;
    }
    .search-submit::before {
        margin-right: 10px;
    }
}
