#yacht-search-form {
    background-color: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 20px;
}

#yacht-search-form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding-top: 13px;
}

.search-fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.field-group {
    flex: 0 0 calc(33.33% - 10px);
    box-sizing: border-box;
}

.field-group:last-child {
    margin-right: 0;
}

.field-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

/* Remove the general styling for all inputs */
.field-group input,
.field-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
    height: 36px;
}

/* Add specific styling for select elements */
.field-group select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px; /* Add some padding on the right to prevent text from going under the chevron */
}

.field-group select::-ms-expand {
    display: none;
}

/* Add specific styling for input elements if needed */
.field-group input[type="text"],
.field-group input[type="number"] {
    /* Add any specific styles for text and number inputs */
}

/* Style for range inputs */
.field-group.range input {
    /* Add any specific styles for range inputs */
}

.field-group.range {
    display: flex;
    flex-direction: column;
}

.range-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.range-inputs {
    display: flex;
    gap: 10px;
}

.field-group.range input {
    width: calc(50% - 5px);
}

.length-unit {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}

.length-unit span {
    padding: 5px 10px;
    cursor: pointer;
    display: inline-block;
}

.length-unit span.active {
    background-color: #007bff;
    color: white;
}

.length-unit-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 5px;
}

.unit-label {
    font-size: 14px;
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0056b3;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.search-fields::after {
    content: "";
    flex: 0 0 calc(66.66% - 20px);
    order: 1;
}

.search-button-container {
    flex: 0 0 calc(33.33% - 10px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    order: 2;
    margin-right: 0;
    padding-right: 0;
    position: relative;
}

#yacht-search-button {
    width: 100%;
    background-color: #0056b3;
    border: none;
    color: white;
    padding: 15px 32px;
    text-align: center;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    border-radius: 5px;
    margin: 4px 2px;
    cursor: pointer;
    transition: background-color 0.3s;
    box-sizing: border-box;
    min-height: 50px;
    position: relative;
}

#yacht-search-button:hover {
    background-color: #003d82;
}

#yacht-search-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

.button-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.button-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.field-group.range {
    display: flex;
    flex-direction: column;
}

.range-inputs-container {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.range-inputs {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.field-group.range input {
    width: calc(50% - 5px);
}

.length-unit-toggle {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    margin-top: 5px;
}

.unit-label {
    font-size: 14px;
    cursor: pointer;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #0056b3;
}

input:checked + .slider:before {
    transform: translateX(20px);
}

#yacht-region {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 20px;
    height: 36px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 30px;
}

#yacht-region::-ms-expand {
    display: none;
}

.multi-select-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-header {
    padding: 10px;
    background-color: #f8f8f8;
    border: 1px solid #ddd;
    cursor: pointer;
}

.multi-select-dropdown .dropdown-options {
    max-height: 200px;
    overflow-y: auto;
    display: none; /* Add this line to hide the options by default */
}

.multi-select-dropdown .dropdown-options label {
    display: flex;
    align-items: center;
    padding-left: 5px;
    box-sizing: border-box;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 0px !important;
    letter-spacing: normal;
    color: #636363;
    font-family: Hind Guntur, sans-serif;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    font-weight: 600;
    line-height: normal;
}

.multi-select-dropdown .dropdown-options label:hover {
    background-color: #f0f0f0;
}

.multi-select-dropdown .dropdown-options input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 20px;
}

.multi-select-dropdown .dropdown-options span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

#yacht-secondary-type-dropdown {
    position: relative;
    width: 100%;
}

#yacht-secondary-type-dropdown .dropdown-header {
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    height: 36px;
    font-size: 16px;
    font-family: Hind Guntur, sans-serif;
    font-weight: 400;
    line-height: 1.5em;
    letter-spacing: normal;
    color: #636363;
    background-color: #f9f9f9;
    opacity: .95;
    padding: 7px;
    overflow: none;
}

#yacht-secondary-type-dropdown .dropdown-options {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
}

#yacht-secondary-type-dropdown .dropdown-options label {
    display: flex;
    align-items: center;
    padding: 0px 10px;
    box-sizing: border-box;
    font-size: 12px;
    cursor: pointer;
    margin-bottom: 0px !important;
    letter-spacing: normal;
    color: #636363;
    font-family: Hind Guntur, sans-serif;
    text-transform: none;
    text-indent: 0px;
    text-shadow: none;
    font-weight: 600;
    line-height: normal;
}

#yacht-secondary-type-dropdown .dropdown-options label:hover {
    background-color: #f0f0f0;
}

#yacht-secondary-type-dropdown .dropdown-options input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
    width: 24px;
    height: 16px;
}

#yacht-secondary-type-dropdown .dropdown-options span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

#yacht-region-dropdown {
    position: relative;
    width: 100%;
}

#yacht-region-dropdown .dropdown-header {
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    height: 36px;
    font-size: 16px;
    font-family: Hind Guntur, sans-serif;
    font-weight: 400;
    line-height: 1.5em;
    letter-spacing: normal;
    color: #636363;
    background-color: #f9f9f9;
    opacity: .95;
    padding: 7px;
    overflow: none;
}

#yacht-region-dropdown .dropdown-options {
    max-height: 200px;
    overflow-y: auto;
    display: none;
    position: absolute;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    z-index: 1000;
}

#yacht-region-dropdown .dropdown-options label {
    display: flex;
    align-items: center;
    padding: 0px 10px;
    box-sizing: border-box;
    font-size: 12px;
    cursor: pointer;
    line-height: normal;
}

#yacht-region-dropdown .dropdown-options label:hover {
    background-color: #f0f0f0;
}

#yacht-region-dropdown .dropdown-options input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
    width: 24px;
    height: 16px;
}

#yacht-region-dropdown .dropdown-options span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.field-group.collapsible .field-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.field-group.collapsible .field-header::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    transition: transform 0.3s ease;
}

.field-group.collapsible.collapsed .field-header::after {
    transform: rotate(-90deg);
}

.field-group.collapsible .collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.field-group.collapsible:not(.collapsed) .collapsible-content {
    max-height: 200px; /* Adjust this value as needed */
}
