/* Mobile: an Elementor (nested) carousel with CSS class "parko-hscroll" becomes a native, finger-scrolled strip
   (frontend.php destroys its Swiper and adds .is-native) with the design's indicator under it: a thin line, a
   rounded thumb showing the scroll position and "<" / ">" buttons (each only where it can scroll). Desktop / tablet keep the widget as it is.
   Modifiers: parko-hscroll--1 = one card per screen (default two), parko-hscroll--light = light indicator
   for a dark background (parko-hscroll--prev is no longer needed - every strip has "<"). */
@media (max-width: 767px) {
	.parko-hscroll.is-native .swiper {
		overflow-x: auto;
		overflow-y: hidden;
		margin: 0 -16px;
		padding: 0 16px !important;   /* Elementor leaves 64px at the bottom for its bullets */
		scroll-padding-inline: 16px;
		scroll-snap-type: x mandatory;
		overscroll-behavior-x: contain;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	.parko-hscroll.is-native .swiper::-webkit-scrollbar {
		display: none;
	}

	.parko-hscroll.is-native .swiper-wrapper {
		transform: none !important;
		overflow: visible !important;   /* Elementor clips it - the strip scrolls in .swiper instead */
		gap: 24px !important;           /* > the 16px side padding, so no neighbour card peeks in */
	}

	/* two cards per screen, as in the design (and as the carousel had: (width - 24px gap) / 2) */
	.parko-hscroll.is-native .swiper-slide {
		flex: 0 0 calc((100% - 24px) / 2);
		width: auto !important;
		margin: 0 !important;
		scroll-snap-align: start;
	}

	.parko-hscroll--1.is-native .swiper-slide {
		flex-basis: 100%;
	}

	.parko-hscroll.is-native .swiper-slide {
		min-width: 0;   /* the card's content must not widen it past its share */
	}

	/* the "Mažiau rūpesčių" block's own prev / next icons (they drive the desktop carousel) - on mobile the
	   indicator's ">" replaces them, as in the design */
	.e-con:has(> .parko-hscroll.is-native) .testimonials-swiper-left,
	.e-con:has(> .parko-hscroll.is-native) .testimonials-swiper-right {
		display: none !important;
	}

	.parko-hscroll.is-native .swiper-pagination {
		display: none !important;
	}

	.parko-hscroll__bar {
		display: flex;
		align-items: center;
		gap: 16px;
		margin-top: 54px;
		border-bottom: 1px solid #3F513D;
		padding-bottom: 6px;
	}

	.parko-hscroll__track {
		position: relative;
		flex: 1 1 auto;
		height: 10px;
		touch-action: none;
		cursor: pointer;
	}

	.parko-hscroll__thumb {
		position: absolute;
		top: 0;
		left: 0;
		height: 10px;
		border-radius: 5px;
		background: #D3CABB;
	}

	/* the theme styles every <button> (pink border, padding, hover background) - reset for this one */
	.parko-hscroll .parko-hscroll__prev,
	.parko-hscroll .parko-hscroll__next {
		flex: 0 0 auto;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 24px;
		height: 24px;
		margin: -7px -8px -7px 0;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0;
		background: none !important;
		box-shadow: none !important;
		color: #3F513D !important;
		cursor: pointer;
		transition: opacity 0.2s;
	}

	/* as in the design (bugai/Screenshot_1.png): no "<" on the first card, no ">" on the last one - the track
	   takes the freed space */
	.parko-hscroll .parko-hscroll__prev[disabled],
	.parko-hscroll .parko-hscroll__next[disabled] {
		display: none;
	}

	/* "<" at the far left of the bar (mirror of ">") */
	.parko-hscroll .parko-hscroll__prev {
		order: -1;
		margin: -7px 0 -7px -8px;
	}


	.parko-hscroll .parko-hscroll__prev svg,
	.parko-hscroll .parko-hscroll__next svg {
		display: block;
		width: 9px;
		height: 15px;
	}

	/* light variant (dark green block): line and arrow #EDE6DB, the thumb keeps #D3CABB */
	.parko-hscroll--light .parko-hscroll__bar {
		border-bottom-color: #EDE6DB;
	}

	.parko-hscroll--light .parko-hscroll__prev,
	.parko-hscroll--light .parko-hscroll__prev:hover,
	.parko-hscroll--light .parko-hscroll__prev:focus,
	.parko-hscroll--light .parko-hscroll__next,
	.parko-hscroll--light .parko-hscroll__next:hover,
	.parko-hscroll--light .parko-hscroll__next:focus {
		color: #EDE6DB !important;
	}
}
