/* Resty24 2026-11-08: R24 Slider widget (includes/class-r24-slider-widget.php).
   Colors default to the Resty24 → Design / theme variables; every value can be changed in the widget's Style tab. */
.r24-sl {
	--r24sl-h: 600px;
	--r24sl-shade: rgba(0, 0, 0, .6);
	--r24sl-title: #fff;
	--r24sl-ink: rgba(255, 255, 255, .92);
	--r24sl-price: #fff;
	--r24sl-btn: var(--r24-button, var(--theme-palette-color-1, #79a230));
	--r24sl-btn-ink: var(--r24-button-ink, #fff);
	--r24sl-nav: #fff;
	--r24sl-box: var(--r24-page-max, 1390px); /* same box as the system pages (includes/r24-elementor-width.php) */
	position: relative;
	overflow: hidden;
	height: var(--r24sl-h);
	background: #111;
}
.r24-sl__swiper,
.r24-sl__swiper .swiper-wrapper,
.r24-sl__slide { height: 100%; }
.r24-sl__swiper { overflow: hidden; }

/* before Swiper starts: show the first slide only (no flash of all slides) */
.r24-sl:not(.is-ready) .r24-sl__slide ~ .r24-sl__slide { display: none; }

.r24-sl__slide { position: relative; overflow: hidden; }
.r24-sl__bg { position: absolute; inset: 0; }
.r24-sl .r24-sl__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; object-fit: cover; } /* beats the theme / Elementor img { height: auto } */
.r24-sl-kb-yes .swiper-slide-active .r24-sl__img,
.r24-sl-kb-yes .r24-sl--single .r24-sl__img { animation: r24-sl-kb 9s ease-out forwards; }
@keyframes r24-sl-kb { from { transform: scale(1); } to { transform: scale(1.12); } }

.r24-sl__shade { position: absolute; inset: 0; pointer-events: none; }
.r24-sl-shade-full .r24-sl__shade { background: var(--r24sl-shade); }
.r24-sl-shade-side .r24-sl__shade { background: linear-gradient(90deg, var(--r24sl-shade) 0%, transparent 75%); }

.r24-sl__body {
	position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start;
	height: 100%; padding: 40px 70px; box-sizing: border-box;
}
.r24-sl-boxed-yes .r24-sl__body { max-width: var(--r24sl-box); margin: 0 auto; padding-left: 70px; padding-right: 70px; }
.r24-sl__content { max-width: 620px; text-align: left; }

.r24-sl__title { margin: 0 0 14px; color: var(--r24sl-title); font-size: clamp(28px, 4.4vw, 56px); line-height: 1.1; }
.r24-sl__text { margin: 0 0 18px; color: var(--r24sl-ink); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.5; }
.r24-sl__price { margin: 0 0 18px; color: var(--r24sl-price); font-size: 22px; font-weight: 700; }
.r24-sl__price small { font-size: .65em; font-weight: 400; opacity: .85; }
.r24-sl__btn {
	display: inline-flex; align-items: center; justify-content: center; padding: 14px 32px; border-radius: 6px;
	background: var(--r24sl-btn); color: var(--r24sl-btn-ink) !important; font-size: 17px; font-weight: 700; line-height: 1.2;
	text-decoration: none !important; transition: filter .2s, transform .1s;
}
.r24-sl__btn:hover,
.r24-sl__btn:focus-visible { filter: brightness(1.1); }
.r24-sl__btn:active { transform: translateY(1px); }

/* text comes in with the slide */
.r24-sl__content > * { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.swiper-slide-active .r24-sl__content > *,
.r24-sl--single .r24-sl__content > *,
.r24-sl:not(.is-ready) .r24-sl__content > * { opacity: 1; transform: none; }
.swiper-slide-active .r24-sl__content > :nth-child(2) { transition-delay: .12s; }
.swiper-slide-active .r24-sl__content > :nth-child(3) { transition-delay: .24s; }
.swiper-slide-active .r24-sl__content > :nth-child(4) { transition-delay: .36s; }

/* arrows + dots */
.r24-sl__nav {
	position: absolute; top: 50%; z-index: 3; display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-top: -24px; padding: 0; border: 2px solid var(--r24sl-nav); border-radius: 50%;
	background: rgba(0, 0, 0, .25); color: var(--r24sl-nav); cursor: pointer; opacity: .8; transition: opacity .2s, background-color .2s;
}
.r24-sl__nav:hover,
.r24-sl__nav:focus-visible { opacity: 1; background: rgba(0, 0, 0, .5); }
.r24-sl__nav svg { width: 24px; height: 24px; fill: currentColor; }
.r24-sl__nav--prev { left: 14px; }
.r24-sl__nav--next { right: 14px; }
.r24-sl__dots { position: absolute; left: 0; right: 0; bottom: 18px !important; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.r24-sl__dots .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 !important; background: var(--r24sl-nav); opacity: .45; }
.r24-sl__dots .swiper-pagination-bullet-active { opacity: 1; width: 26px; border-radius: 5px; transition: width .3s; }

@media (max-width: 767px) {
	.r24-sl__body,
	.r24-sl-boxed-yes .r24-sl__body { padding: 30px 22px 50px; }
	.r24-sl__nav { display: none; }
	.r24-sl-shade-side .r24-sl__shade { background: linear-gradient(0deg, var(--r24sl-shade) 0%, transparent 85%); }
}

.r24-sl__empty { padding: 24px; border: 2px dashed currentColor; border-radius: 8px; text-align: center; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
	.r24-sl__img { animation: none !important; }
	.r24-sl__content > * { transition: none; }
}
