/* Keep AJAX-added cards stable while Directories Pro initializes their sliders. */
.drts-view-entity-container.zdt-listing-media-pending {
	position: relative;
	min-height: 220px;
	overflow: hidden;
	background: #f4f6f9;
	border-radius: 20px;
}

.drts-view-entity-container.zdt-listing-media-pending > * {
	visibility: hidden !important;
}

.drts-view-entity-container.zdt-listing-media-pending::after {
	position: absolute;
	inset: 0;
	content: "";
	background: linear-gradient(100deg, #f4f6f9 25%, #e8edf4 42%, #f4f6f9 58%);
	background-size: 220% 100%;
	animation: zdt-listing-media-loading 1.25s ease-in-out infinite;
	pointer-events: none;
}

.drts-view-entity-container.zdt-listing-media-ready {
	animation: zdt-listing-media-reveal 180ms ease-out both;
}

@keyframes zdt-listing-media-loading {
	to {
		background-position-x: -220%;
	}
}

@keyframes zdt-listing-media-reveal {
	from { opacity: 0; }
	to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	.drts-view-entity-container.zdt-listing-media-pending::after,
	.drts-view-entity-container.zdt-listing-media-ready {
		animation: none;
	}
}
