.listing-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-md);
    margin: var(--spacing-sm) auto;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    animation: fadeIn var(--transition-medium);
}

.media-gallery-scroll {
    display: flex;
    overflow-x: auto;
    gap: var(--spacing-sm);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.media-gallery-scroll::-webkit-scrollbar {
    display: none;
}

.media-gallery-scroll img,
.media-video video {
    flex: 0 0 auto;
    max-height: 200px;
    border-radius: var(--radius-md);
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.media-gallery-scroll img:hover,
.media-video video:hover {
    transform: scale(1.05);
}

.media-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: var(--z-overlay);
}

.media-modal-content img,
.media-modal-content video {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius-md);
}

.close-modal {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--color-white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    padding: 6px 10px;
    cursor: pointer;
}