.category-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.listings-carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
}

.listings-carousel {
    display: flex;
    gap: 15px;
    overflow-x: hidden;
    scroll-behavior: smooth;
    flex: 1;
    padding: 5px 0;
}

.listing-card-small {
    flex: 0 0 200px; /* Fixed width for each card */
    min-width: 200px;
}

.listing-thumbnail-small {
    height: 120px;
    object-fit: cover;
}

.carousel-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    flex-shrink: 0;
}

.carousel-nav-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.carousel-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .listing-card-small {
        flex: 0 0 160px;
        min-width: 160px;
    }

    .listing-thumbnail-small {
        height: 100px;
    }

    .carousel-nav-btn {
        width: 35px;
        height: 35px;
    }
}