/* ============================= */
/* ### START #### LISTINGS */
/* ============================= */
.listings {
    padding: var(--spacing-sm);
}

/* ============================= */
/* ### START #### LISTING CARD */
/* ============================= */

.listing-card {
    border: 1px solid var(--color-border);
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    border-radius: var(--radius-md);
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeIn 0.4s ease-in-out;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.listing-card img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

.listing-card video {
    width: 100%;
    max-height: 240px;
    border-radius: var(--radius-sm);
    margin-bottom: var(--spacing-xs);
}

/* Image gallery for multiple images */
.image-gallery {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-sm);
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.image-gallery img {
    flex: 0 0 auto;
    width: 140px;
    height: auto;
    border-radius: var(--radius-sm);
    object-fit: cover;
    scroll-snap-align: start;
}

/* Tags */
.tag-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: var(--spacing-xs);
}

.tag {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}


/* Fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton loader for listings */
.skeleton {
    background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}


/* ============================= */
/* ### PROFILE THUMBNAIL & POSTER INFO */
/* ============================= */

.profile-thumb {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.poster-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--spacing-xs);
}

/* Booted Listings */
.carousel-section {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    padding: 10px;
    background: #f9f9f9;
    margin-bottom: 20px;
}

.boosted-slide {
    min-width: 200px;
    flex-shrink: 0;
    border: 2px solid gold;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}



/* ============================= */
/* ### PROFILE THUMBNAIL & POSTER INFO */
/* ============================= */