#yacht-search-results {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

#yacht-search-results ul {
    display: grid;
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

#yacht-search-results li {
    width: 100%;
    height: 350px;
    padding: 0;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #404040;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, .2);
}

#yacht-search-results .yacht-image-container {
    width: 100%;
    padding-top: 56.25%;
    position: relative;
    overflow: hidden;
    background-color: #f0f0f0;
}

#yacht-search-results .yacht-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#yacht-search-results .spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

#yacht-search-results .yacht-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    margin: 0;
}

#yacht-search-results .yacht-main-info {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 0;
    justify-content: flex-start;
    line-height: 0;
    padding: 8px 8px 0;
    width: 100%;
    margin-bottom: 10px;
}

#yacht-search-results .yacht-location-info {
    align-items: flex-start;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-size: 0;
    justify-content: flex-start;
    line-height: 0;
    max-width: 100%;
    padding: 0 8px 8px;
    margin-top: auto;
}

#yacht-search-results .yacht-location-info p {
    font-family: Roboto;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: normal;
    line-height: normal;
    text-decoration: none;
    text-transform: none;
}

#yacht-search-results .yacht-details {
    margin-top: 10px;
}

#yacht-search-results .yacht-footer {
    padding: 10px 15px;
    height: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

#yacht-search-results .request-info-btn {
    margin-left: auto;
    background-color: transparent;
    border: 1px solid #0056b3;
    color: #0056b3;
    padding: 6px 12px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    height: 30px;
    line-height: 16px;
}

#yacht-search-results .request-info-btn:hover {
    background-color: #0056b3;
    color: white;
}

#yacht-search-results h3 {
    font-family: Roboto, Arial, sans-serif;
    letter-spacing: normal;
    line-height: normal;
    text-decoration: none;
    text-transform: none;
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
    flex-basis: 100%;
    margin-bottom: 4px;
}

#yacht-search-results .yacht-year {
    font-size: 16px;
    color: #666;
    margin-right: 10px;
    font-weight: normal;
}

#yacht-search-results p {
    margin: 3px 0;
    color: #666;
    font-size: 14px;
}

#yacht-search-results .yacht-price {
    box-sizing: border-box;
    font-size: 16px;
    line-height: 24px;
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #404040;
    font-weight: 400;
    margin-right: 4px;
}

#yacht-search-results .yacht-location {
    font-size: 12px;
    color: #888;
    margin: 0;
}

#yacht-search-results .yacht-title {
    display: flex;
    align-items: baseline;
    margin-bottom: 5px;
}

#yacht-search-results .yacht-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

#yacht-search-results .yacht-card-border {
    border: solid #e0e0e0;
    border-width: 1px 0 0;
    margin: 0;
    width: 100%;
}

.yacht-results-list {
    display: grid;
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

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

@media (max-width: 767px) {
    .yacht-results-list {
        grid-template-columns: 1fr !important;
    }
}

.pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.page-btn {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-weight: 700;
    color: #A5A5A5;
    font-size: 16px;
}

.page-btn.active {
    text-decoration: underline;
    font-weight: bold;
}

.page-btn.arrow {
    font-size: 16px;
    color: #A5A5A5;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
}

.page-btn.arrow:hover {
    color: #0056b3;
}

.page-btn.arrow {
    font-size: 20px;
    color: #A5A5A5;
}

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

@media (max-width: 1024px) {
    #yacht-search-results li {
        width: 100%;
    }
}

.yacht-search-layout {
    display: flex;
    transition: margin-left 0.3s ease;
}

.yacht-search-sidebar-container {
    width: 300px;
    transition: width 0.3s ease;
}

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

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

.yacht-search-layout.filters-collapsed .yacht-search-results-container {
    margin-left: 50px;
}

/* Default to 1 column for mobile */
#yacht-search-results ul {
    grid-template-columns: 1fr;
}

/* 2 columns for tablets and up */
@media (min-width: 768px) {
    #yacht-search-results ul {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 3 columns for large screens when filters are collapsed */
@media (min-width: 1200px) {
    .yacht-search-layout.filters-collapsed #yacht-search-results ul {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Adjust margins when filters are collapsed */
.yacht-search-layout.filters-collapsed .yacht-search-results-container {
    margin-left: 50px;
}

.yacht-image-container {
    position: relative;
}

.featured-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 86, 179, 0.8); /* Blue color with 80% opacity */
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    z-index: 1;
}