#yacht-search-container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: Arial, sans-serif;
}

#yacht-search-container h1 {
    font-style: normal;
    font-weight: 900;
    font-size: 24px;
    line-height: 122%;
    color: #303030;
    text-shadow: 0 4px 4px hsla(0, 0%, 100%, .83);
    margin-top: -2px;
    margin-bottom: 20px;
    font-family: "Lato", Arial, Helvetica, sans-serif;
}

.yacht-search-layout {
    display: flex;
    transition: margin-left 0.3s ease;
    width: 100%;
    max-width: 1200px;  /* Adjust this value based on your design preferences */
    margin: 0 auto;
}

.yacht-search-sidebar-container {
    width: 300px;
    transition: width 0.3s ease;
    position: relative; /* Add this line */
    padding-right: 25px;
}

.yacht-search-sidebar-container.collapsed {
    width: 50px;
}

.yacht-search-sidebar {
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    transition: opacity 0.3s ease, visibility 0.3s ease, width 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
    overflow: hidden;
}

.toggle-filters-btn {
    position: absolute;
    right: 15px;
    transform: translateY(-50%);
    background: #fff;
    border: none !important;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: right 0.3s ease;
    margin: auto 0;
    top: auto !important;
}

.expand-filters-btn {
    height: 75px;
    position: absolute;
    top: 50%;
}

.yacht-search-sidebar-container.collapsed .toggle-filters-btn {
    right: -30px;
    margin: auto 30px; 
}

.yacht-search-sidebar-container.collapsed #yacht-search-form {
    opacity: 0;
}

.yacht-search-sidebar-container.collapsed .yacht-search-sidebar {
    box-shadow: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, width 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease 0.1s;
}

.yacht-search-sidebar-container.collapsed .filter-header {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.toggle-filters-btn i {
    font-size: 20px;
    color: #0056b3;
}

.yacht-search-sidebar-container.collapsed .toggle-filters-btn i {
    transform: rotate(180deg);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    transition: opacity 0.2s ease;
}

.yacht-search-sidebar-container.collapsed .toggle-filters-btn {
    right: -30px;
}

.toggle-filters-btn i {
    font-size: 20px;
    color: #0056b3;
}

.yacht-search-sidebar-container.collapsed .toggle-filters-btn i {
    transform: rotate(180deg);
}

.yacht-search-results-container {
    flex: 1;
    transition: margin-left 0.3s ease;
}

#yacht-search-form .search-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-header {
    font-size: 14px;
    font-weight: 700;
    color: #676767;
    line-height: 110%;
    font-family: "Lato", Arial, Helvetica, sans-serif;
}

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

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

#yacht-search-button {
    width: 100%;
    background-color: #0056b3;
    border: none;
    color: white;
    padding: 10px 15px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

@media (max-width: 1024px) {
    .yacht-search-layout {
        flex-direction: column;
    }

    .yacht-search-sidebar {
        position: static;
        width: 100%;
        max-height: none;
    }
}

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

#yacht-search-results {
    display: grid;
    gap: 20px;
    transition: all 0.3s ease;
    width: 100%;
}

.yacht-results-list {
    display: contents;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.yacht-results-list > li {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.yacht-image-container img {
    width: 100%;
    height: auto;
    object-fit: unset !important;
}

/* Remove any media queries related to grid-template-columns here */
@media (max-width: 767px) {
    #yacht-search-results {
        grid-template-columns: 1fr !important;
    }
}

.loading-indicator,
.no-featured-yachts,
.error-message {
    text-align: center;
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.loading-indicator {
    color: #666;
    font-size: 18px;
}

.no-featured-yachts {
    color: #333;
}

.no-featured-yachts h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 24px;
}

.no-featured-yachts p {
    color: #666;
    margin: 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.error-message {
    border-left: 4px solid #e74c3c;
}

.error-message h3 {
    color: #e74c3c;
    margin-bottom: 15px;
    font-size: 20px;
}

.error-message p {
    color: #666;
    font-size: 16px;
}