.yacht-search-entry,
.yacht-search-entry * {
    box-sizing: border-box;
}

.yacht-search-entry {
    background: #eef5f4;
    border-bottom: 1px solid #c7d8d6;
    border-top: 4px solid #087f7a;
    color: #17252b;
    margin-top: -4px;
    position: relative;
    z-index: 2;
}

.yacht-search-entry__inner {
    padding-bottom: 18px;
    padding-top: 18px;
}

.yacht-search-entry__heading {
    align-items: baseline;
    display: flex;
    gap: 14px;
    margin-bottom: 14px;
}

.yacht-search-entry__heading h2 {
    color: #17252b;
    font-size: 26px;
    line-height: 1.15;
    margin: 0;
}

.yacht-search-entry__form {
    --cb-filter-label-background: #eef5f4;
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(250px, 1.5fr) minmax(220px, 1.15fr) minmax(105px, .45fr) minmax(190px, .9fr) auto;
}

.yacht-search-entry__field {
    min-width: 0;
}

.yacht-search-entry__input-icon {
    display: block;
    position: relative;
}

.yacht-search-entry__input-icon > span {
    color: #087f7a;
    height: 18px;
    left: 11px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    z-index: 1;
}

.yacht-search-entry__input-icon svg {
    height: 100%;
    width: 100%;
}

.yacht-search-entry__input-icon input {
    cursor: pointer;
    padding-left: 39px;
}

.yacht-search-entry__submit {
    gap: 8px;
    height: 44px;
    white-space: nowrap;
}

.yacht-search-entry__submit svg {
    height: 18px;
    width: 18px;
}

.yacht-search-entry__form.cb-select-form {
    --cb-select-control-height: 44px;
}

.yacht-search-entry .select2-container--default .select2-selection--multiple {
    border-color: #aebfc2;
    max-height: 44px;
    overflow: hidden;
}

.yacht-search-entry__secondary {
    align-items: center;
    display: flex;
    gap: 12px 24px;
    justify-content: space-between;
    margin-top: 12px;
}

.yacht-search-entry__secondary:not(:has(> a:not([hidden]))) {
    display: none;
}

.yacht-search-entry__secondary a,
.yacht-search-entry__secondary button {
    align-items: center;
    background: transparent;
    border: 0;
    color: #075f5c;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    gap: 8px;
    padding: 2px 0;
    text-align: left;
    text-decoration: none;
}

.yacht-search-entry__secondary a > span:first-child,
.yacht-search-entry__secondary svg {
    height: 18px;
    width: 18px;
}

.yacht-search-entry__secondary a > span:last-child {
    display: grid;
    gap: 1px;
}

.yacht-search-entry__secondary small {
    color: #5e6d73;
    font-size: 11px;
}

.yacht-search-entry__secondary :is(a, button):hover {
    color: #17252b;
    text-decoration: underline;
}

.navigation-item--charter-request > button.navigation-item__content {
    appearance: none;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
}

.yacht-search-start-dialog {
    background: transparent;
    border: 0;
    max-width: 660px;
    padding: 0;
    width: calc(100% - 28px);
    z-index: 11000;
}

.yacht-search-start-dialog:not([open]) {
    display: none !important;
}

.yacht-search-start-dialog::backdrop {
    background: rgb(12 30 35 / 62%);
}

.yacht-search-start-dialog__shell {
    width: 100%;
}

.yacht-search-start-dialog__shell > header span {
    color: #087f7a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.yacht-search-start-dialog__shell > header h2 {
    margin: 2px 0 0;
}

.yacht-search-start-dialog__options {
    display: grid;
    gap: 10px;
}

.yacht-search-start-dialog__options a {
    align-items: center;
    border: 1px solid #c7d8d6;
    border-radius: 5px;
    color: #17252b;
    display: grid;
    gap: 12px;
    grid-template-columns: 28px 1fr 20px;
    padding: 15px;
    text-decoration: none;
}

.yacht-search-start-dialog__options a:hover,
.yacht-search-start-dialog__options a:focus-visible {
    background: #eef5f4;
    border-color: #087f7a;
    outline: 0;
}

.yacht-search-start-dialog__options a > span:first-child,
.yacht-search-start-dialog__options a > span:last-child,
.yacht-search-start-dialog__options svg {
    color: #087f7a;
    height: 22px;
    width: 22px;
}

.yacht-search-start-dialog__options a > span:nth-child(2) {
    display: grid;
    gap: 2px;
}

.yacht-search-start-dialog__options small {
    color: #5e6d73;
    font-size: 12px;
}

.yacht-search-entry-dropdown .select2-results__option--highlighted.select2-results__option--selectable,
.yacht-search-entry-dropdown .select2-results__option--selected.select2-results__option--highlighted {
    background: #075f5c !important;
    color: #fff !important;
}

.yacht-search-entry-dropdown .select2-results__option--highlighted * {
    color: inherit !important;
}

@media (min-width: 781px) {
    .yacht-search-entry-dropdown {
        min-width: min(420px, calc(100vw - 32px)) !important;
    }
}

@media (max-width: 1100px) {
    .yacht-search-entry__form {
        grid-template-columns: minmax(240px, 1.35fr) minmax(210px, 1fr) 105px minmax(180px, .9fr);
    }

    .yacht-search-entry__submit {
        grid-column: 1 / -1;
        justify-self: end;
        min-width: 180px;
    }
}

@media (min-width: 761px) and (min-aspect-ratio: 4 / 5) {
    .slideshow:has(+ .yacht-search-entry) .slideshow__media {
        height: clamp(360px, min(33.333vw, calc(100dvh - 365px)), 640px);
    }
}

@media (min-width: 761px) and (max-width: 899px) {
    .yacht-search-entry__form {
        grid-template-columns: minmax(200px, 1fr) minmax(225px, 1.1fr) 90px minmax(130px, .75fr);
    }
}

@media (min-width: 761px) and (max-width: 899px) and (min-height: 700px) and (min-aspect-ratio: 1 / 1) {
    .slideshow:has(+ .yacht-search-entry) .slideshow__media {
        height: clamp(340px, min(33.333vw, calc(100dvh - 365px)), 640px);
    }

    .yacht-search-entry__inner {
        padding-bottom: 14px;
        padding-top: 14px;
    }

    .yacht-search-entry__heading {
        margin-bottom: 10px;
    }

    .yacht-search-entry__secondary {
        margin-top: 8px;
    }
}

@media (min-width: 900px) and (max-width: 1100px) and (max-height: 850px) {
    .yacht-search-entry__inner {
        padding-bottom: 14px;
        padding-top: 14px;
    }

    .yacht-search-entry__heading {
        margin-bottom: 10px;
    }

    .yacht-search-entry__form {
        gap: 8px;
        grid-template-columns: minmax(190px, 1.35fr) minmax(185px, 1.05fr) 90px minmax(150px, .9fr) auto;
    }

    .yacht-search-entry__submit {
        grid-column: auto;
        justify-self: stretch;
        min-width: 0;
        padding-left: 14px;
        padding-right: 14px;
    }

    .yacht-search-entry__secondary {
        margin-top: 8px;
    }
}

@media (max-width: 760px) {
    .yacht-search-entry__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .yacht-search-entry__form {
        grid-template-columns: 1fr 1fr;
    }

    .yacht-search-entry__field--destination,
    .yacht-search-entry__field--dates,
    .yacht-search-entry__submit {
        grid-column: 1 / -1;
    }

    .yacht-search-entry__submit {
        justify-self: stretch;
    }
}

@media (max-width: 480px) {
    .yacht-search-entry__form {
        grid-template-columns: 1fr;
    }

    .yacht-search-entry__field,
    .yacht-search-entry__submit {
        grid-column: 1;
    }

    .yacht-search-entry__secondary {
        align-items: flex-start;
        flex-direction: column;
    }
}
