.boats-listing-container {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.boats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    grid-auto-rows: 1fr;
}

.boat-listing {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.boat-listing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.boat-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.boat-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.boat-details {
    padding: 15px;
    padding-bottom: 0;
    flex: 1 1 auto;
}

.boat-name {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: bold;
}

.boat-info {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 14px;
}

.boat-price {
    margin: 0 0 8px 0;
    color: #D92128;
    font-size: 20px;
    font-weight: bold;
}

.boat-location,
.boat-length,
.boat-engines,
.boat-dealer {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 14px;
}

.boat-actions {
    margin-top: auto;
    padding-left: 15px;
    padding-bottom: 15px;
}

.boat-status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    margin: 0;
    flex-shrink: 0;
}

.status-active {
    background-color: #d4edda;
    color: #155724;
}

.status-sale-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-sold {
    background-color: #f8d7da;
    color: #721c24;
}

.boat-link {
    display: inline-block;
    background-color: #D92128;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin: 0;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.boat-link:hover {
    background-color: #A7141A !important;
    color: white !important;
}

.boats-error,
.boats-no-results {
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #6c757d;
    text-align: center;
}

@media (max-width: 768px) {
    .boats-grid {
        grid-template-columns: 1fr;
    }
}

