/* Full-screen logo preloader (PJAX listing navigation). */

body.motorplug-pjax-active {
	overflow: hidden;
	position: fixed;
	width: 100%;
	left: 0;
	right: 0;
}

.motorplug-pjax-preloader {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.18);
	-webkit-backdrop-filter: blur(20px) saturate(165%);
	backdrop-filter: blur(20px) saturate(165%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition:
		opacity 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		visibility 0.32s cubic-bezier(0.4, 0, 0.2, 1),
		backdrop-filter 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.motorplug-pjax-preloader::before {
	content: '';
	position: absolute;
	inset: 0;
	background:
		linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 45%, rgba(255, 9, 38, 0.04) 100%);
	pointer-events: none;
}

.motorplug-pjax-preloader.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: all;
}

.motorplug-pjax-preloader__panel {
	position: relative;
	width: 132px;
	height: 132px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.32);
	-webkit-backdrop-filter: blur(14px) saturate(150%);
	backdrop-filter: blur(14px) saturate(150%);
	border: 1px solid rgba(255, 255, 255, 0.55);
	box-shadow:
		0 12px 40px rgba(15, 23, 42, 0.12),
		inset 0 1px 0 rgba(255, 255, 255, 0.72);
	transform: scale(0.92);
	opacity: 0;
	transition:
		transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
		opacity 0.28s ease;
}

.motorplug-pjax-preloader.is-visible .motorplug-pjax-preloader__panel {
	transform: scale(1);
	opacity: 1;
}

.motorplug-pjax-preloader__ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	border: 2px solid rgba(255, 9, 38, 0.14);
	border-top-color: #ff0926;
	animation: motorplug-pjax-spin 0.85s cubic-bezier(0.55, 0.1, 0.35, 0.9) infinite;
}

.motorplug-pjax-preloader__logo {
	position: relative;
	z-index: 1;
	width: 76px;
	height: auto;
	max-height: 76px;
	object-fit: contain;
	animation: motorplug-pjax-logo-pulse 1.15s cubic-bezier(0.45, 0, 0.55, 1) infinite;
	filter: drop-shadow(0 6px 18px rgba(255, 9, 38, 0.12));
}

@keyframes motorplug-pjax-spin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes motorplug-pjax-logo-pulse {
	0%,
	100% {
		transform: scale(1);
		opacity: 0.9;
	}

	50% {
		transform: scale(1.07);
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.motorplug-pjax-preloader__ring,
	.motorplug-pjax-preloader__logo,
	.motorplug-pjax-preloader,
	.motorplug-pjax-preloader__panel {
		animation: none !important;
		transition-duration: 0.01ms !important;
	}
}

/* Search results carousel: stable layout before/while Swiper initializes */
.motors-elementor-search-results-wrap.swiper-container {
	overflow: hidden;
}

.motors-elementor-search-results-wrap.swiper-container:not(.swiper-initialized) .stm-isearch-results-carousel.swiper-wrapper {
	overflow: hidden !important;
	display: flex !important;
	flex-wrap: nowrap;
	gap: 10px;
	padding-left: 10px;
	padding-right: 10px;
}

.motors-elementor-search-results-wrap.swiper-container:not(.swiper-initialized) .stm-isearch-results-carousel .swiper-slide {
	flex: 0 0 260px;
	width: 260px !important;
	max-width: 270px;
	height: auto;
}

@media (min-width: 768px) {
	.motors-elementor-search-results-wrap.swiper-container:not(.swiper-initialized) .stm-isearch-results-carousel .swiper-slide {
		flex: 0 0 calc(33.333% - 10px);
		width: calc(33.333% - 10px) !important;
	}
}

@media (min-width: 1024px) {
	.motors-elementor-search-results-wrap.swiper-container:not(.swiper-initialized) .stm-isearch-results-carousel .swiper-slide {
		flex: 0 0 calc(25% - 10px);
		width: calc(25% - 10px) !important;
	}
}

.motors-elementor-search-results-wrap.swiper-initialized .stm-isearch-results-carousel .swiper-slide {
	height: auto;
}

/* Single thumbnail only — do not force display on brazzers gallery images */
.motors-elementor-search-results-wrap.swiper-initialized .stm-isearch-results-carousel .swiper-slide .stm-template-front-loop .image > img {
	display: block;
	width: 100%;
	height: 133px;
	object-fit: cover;
}

.motors-elementor-search-results-wrap.swiper-initialized .stm-isearch-results-carousel .swiper-slide .brazzers-wrap {
	height: 133px;
	overflow: hidden;
}

.motors-elementor-search-results-wrap.swiper-initialized .stm-isearch-results-carousel .swiper-slide .brazzers-daddy .image-wrap {
	position: relative;
	height: 133px;
	overflow: hidden;
}

.motors-elementor-search-results-wrap.swiper-initialized .stm-isearch-results-carousel .swiper-slide .brazzers-daddy .image-wrap img {
	width: 100%;
	height: 133px;
	max-height: 133px;
	object-fit: cover;
}
