/* Radio Carousel - front-end styles */

.radio-carousel-shell {
	position: relative;
	width: 100%;
}

.radio-carousel__frame {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-width: 0;
}

.radio-carousel__viewport {
	position: relative;
	flex: 1 1 auto;
	min-width: 0;
	width: 100%;
}

.radio-carousel.swiper {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.radio-carousel > .swiper-wrapper {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.radio-carousel > .swiper-wrapper > .swiper-slide {
	box-sizing: border-box;
	flex-shrink: 0;
	height: auto;
	width: 100%; /* Default; Swiper overrides per slidesPerView once it inits. */
}

.radio-carousel__slide > * {
	height: 100%;
}

/* Elementor Loop Item should span the full slide (cover backgrounds need this). */
.radio-carousel__slide .radio-carousel__elementor-item,
.radio-carousel__slide .elementor,
.radio-carousel__slide .e-con-full {
	width: 100%;
	max-width: 100%;
}

/* Fixed height: stretch shell, viewport, swiper and slides. */
.radio-carousel--fixed-height {
	height: var(--rc-height);
}

.radio-carousel--fixed-height .radio-carousel__frame,
.radio-carousel--fixed-height .radio-carousel__viewport,
.radio-carousel--fixed-height .radio-carousel.swiper {
	height: 100%;
}

.radio-carousel--fixed-height.radio-carousel--pag-below .radio-carousel__viewport,
.radio-carousel--fixed-height.radio-carousel--pag-above .radio-carousel__viewport {
	/* Leave room for the controls row when height is fixed. */
	flex: 1 1 auto;
	min-height: 0;
	height: auto;
}

.radio-carousel--fixed-height.radio-carousel--pag-below .radio-carousel__frame,
.radio-carousel--fixed-height.radio-carousel--pag-above .radio-carousel__frame {
	height: 100%;
}

.radio-carousel--fixed-height .radio-carousel > .swiper-wrapper,
.radio-carousel--fixed-height .radio-carousel > .swiper-wrapper > .swiper-slide {
	height: 100%;
}

/* Pre-init / no-JS fallback: keep slides in a row but only show the first one
   so the page doesn't look completely broken if Swiper never loads. */
.radio-carousel:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide ~ .swiper-slide,
.radio-carousel--no-js > .swiper-wrapper > .swiper-slide ~ .swiper-slide {
	display: none;
}

/* Pagination dots layout (position setting only affects dots). */
.radio-carousel-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	flex-shrink: 0;
}

.radio-carousel-controls--below {
	margin-top: 16px;
}

.radio-carousel-controls--above {
	margin-bottom: 16px;
}

.radio-carousel-controls--hidden {
	display: none !important;
}

/* Side arrows: overlay left/right edges of the viewport. */
.radio-carousel-prev,
.radio-carousel-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.85);
	border-radius: 999px;
	cursor: pointer;
	padding: 0;
	color: #fff;
	line-height: 1;
	font-size: 1.5rem;
	transition: opacity 0.15s ease;
}

.radio-carousel-prev {
	left: 12px;
}

.radio-carousel-next {
	right: 12px;
}

.radio-carousel-prev:hover,
.radio-carousel-next:hover {
	opacity: 0.7;
}

.radio-carousel-prev[aria-disabled="true"],
.radio-carousel-next[aria-disabled="true"],
.radio-carousel-prev.swiper-button-disabled,
.radio-carousel-next.swiper-button-disabled {
	opacity: 0.3;
	cursor: default;
}

.radio-carousel-prev[hidden],
.radio-carousel-next[hidden],
.radio-carousel-prev--hidden,
.radio-carousel-next--hidden {
	display: none !important;
}

.radio-carousel-pagination {
	display: inline-flex;
	gap: 8px;
}

.radio-carousel-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.3;
	display: inline-block;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.radio-carousel-pagination .swiper-pagination-bullet-active {
	opacity: 1;
}

/* Side pagination: vertical column beside the slides. */
.radio-carousel--pag-left .radio-carousel__frame,
.radio-carousel--pag-right .radio-carousel__frame {
	flex-direction: row;
	align-items: stretch;
}

.radio-carousel-controls--side {
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding: 8px;
}

.radio-carousel-controls--left {
	order: 0;
	margin-right: 12px;
}

.radio-carousel--pag-left .radio-carousel__viewport {
	order: 1;
}

.radio-carousel-controls--right {
	order: 2;
	margin-left: 12px;
}

.radio-carousel-controls--side .radio-carousel-pagination {
	flex-direction: column;
	align-items: center;
}

/* Overlay pagination: dots sit on top of the slides at the bottom. */
.radio-carousel-controls--overlay {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 16px;
	z-index: 2;
	margin: 0;
	padding: 0 16px;
	pointer-events: none;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.radio-carousel-controls--overlay .radio-carousel-pagination {
	pointer-events: auto;
}

.radio-carousel-controls--overlay .radio-carousel-pagination .swiper-pagination-bullet {
	background: #fff;
}

/*
 * Default Tall Hero slides (no Elementor Loop Item selected).
 * Reuse Theme Builder markup/classes; constrain them inside Swiper.
 */
.radio-carousel .radio-carousel__tall-hero.tb-core-page__block--tall-hero,
.radio-carousel .tb-core-page__block--tall-hero.radio-carousel__tall-hero {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	min-height: 70vh;
	height: 100%;
	box-sizing: border-box;
}

/* Fixed carousel height: fill the slide instead of forcing 70vh. */
.radio-carousel--fixed-height .radio-carousel .radio-carousel__tall-hero.tb-core-page__block--tall-hero {
	min-height: 100%;
	height: 100%;
}

.radio-carousel .radio-carousel__tall-hero .tb-core-page__block-inner--tall-hero {
	position: relative;
	z-index: 1;
	max-width: var(--cm-content-width, 1140px);
	width: 100%;
	box-sizing: border-box;
}

/* Keep hero overlay below carousel chrome (arrows / overlay dots). */
.radio-carousel .radio-carousel__tall-hero::before {
	z-index: 0;
}

/* Admin-only empty-state messaging */
.radio-carousel__empty {
	padding: 12px 16px;
	background: #fff8e5;
	border: 1px dashed #d4b106;
	border-radius: 4px;
	color: #614700;
}
