/*
 * Side menu — lazy content (inc/side-menu-lazy.php, assets/js/side-menu-lazy.js).
 *
 * 1. The closed menu is display:none. It used to be only moved off screen, so the
 *    browser still downloaded its images (doctor photos, the banner) on every page
 *    and Tab could walk into it. side-menu.js adds body.side-menu-open before the
 *    slide-in starts and removes it after the slide-out ends, so the animation is
 *    unchanged.
 * 2. Placeholder for a doctor carousel until its HTML arrives: two card-sized
 *    blocks + the „Виж всички“ row, the same size as the real list, so nothing
 *    jumps when it is swapped in.
 */

body:not(.side-menu-open) #side-menu {
	display: none;
}

.zd-lazy-doctors {
	padding-left: 16px;
	padding-bottom: 45px; /* the „Виж всички“ row under the carousel (16px gap + 29px) */
	overflow: hidden;
}

.zd-lazy-doctors__skeleton {
	display: flex;
	gap: 24px;
}

.zd-lazy-doctors__skeleton span {
	flex: 0 0 auto;
	width: 280px;
	height: 400px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--wp--preset--color--primary) 6%, transparent);
}

@media (min-width: 768px) {
	.zd-lazy-doctors__skeleton span {
		width: 320px;
		height: 457px;
	}
}

@media (prefers-reduced-motion: no-preference) {
	.zd-lazy-doctors__skeleton span {
		animation: zd-lazy-doctors-pulse 1.2s ease-in-out infinite alternate;
	}
}

@keyframes zd-lazy-doctors-pulse {
	from { opacity: 1; }
	to { opacity: 0.5; }
}
