/* ================================================
   Elementor Carousel Addon - Main Stylesheet
   ================================================ */

/* --- Wrapper --- */
.eca-carousel-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 15px;
	width: 100%;
}

.eca-swiper-wrap {
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.eca-swiper-wrap .swiper {
	width: 100%;
	overflow: visible;
}

/* --- Slide Image --- */
.eca-carousel-slide {
	position: relative;
	overflow: hidden;
	display: block;
}

.eca-carousel-slide img {
	width: 100%;
	height: 400px;
	object-fit: cover;
	display: block;
}

/* --- Caption --- */
.eca-slide-caption {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 12px 18px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	text-align: center;
}

/* --- Navigation Arrows --- */
.eca-nav-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
	flex-shrink: 0;
	z-index: 10;
	user-select: none;
	-webkit-user-select: none;
}

.eca-nav-arrow:hover {
	background: rgba(0, 0, 0, 0.8);
	transform: scale(1.05);
}

.eca-nav-arrow i {
	font-size: 22px;
	line-height: 1;
}

/* Inside position */
.eca-swiper-wrap .eca-nav-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
}

.eca-swiper-wrap .eca-nav-arrow.eca-prev {
	left: 15px;
}

.eca-swiper-wrap .eca-nav-arrow.eca-next {
	right: 15px;
}

.eca-swiper-wrap .eca-nav-arrow:hover {
	transform: translateY(-50%) scale(1.05);
}

/* Bottom arrows */
.eca-bottom-nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-bottom: 15px;
}

.eca-bottom-nav .eca-nav-arrow {
	position: static;
	transform: none;
}

.eca-bottom-nav .eca-nav-arrow:hover {
	transform: scale(1.05);
}

/* Disabled arrow */
.eca-nav-arrow.swiper-button-disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* --- Dots / Pagination --- */
.eca-dots-wrap {
	text-align: center;
	margin-top: 20px;
}

.eca-dots-wrap .swiper-pagination {
	position: static;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.eca-dots-wrap .swiper-pagination-bullet {
	width: 10px;
	height: 10px;
	background: #ccc;
	opacity: 1;
	border-radius: 50%;
	cursor: pointer;
	transition: background 0.3s ease, transform 0.2s ease;
	margin: 0 !important;
}

.eca-dots-wrap .swiper-pagination-bullet-active {
	background: #000;
	transform: scale(1.3);
}

/* --- Media Carousel --- */
.eca-media-item {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 450px;
}

.eca-media-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.eca-media-item iframe,
.eca-media-item video {
	width: 100%;
	height: 100%;
	display: block;
	border: 0;
}

.eca-media-info {
	padding: 15px 0 5px;
}

.eca-media-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 600;
	color: #222;
	line-height: 1.3;
}

.eca-media-desc {
	margin: 0;
	font-size: 14px;
	color: #666;
	line-height: 1.6;
}

/* --- Template Carousel --- */
.eca-template-slide {
	width: 100%;
}

.eca-template-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #f5f5f5;
	border: 2px dashed #ddd;
	border-radius: 8px;
}

.eca-template-placeholder p {
	color: #888;
	font-size: 14px;
	margin: 0;
	text-align: center;
	padding: 20px;
}

/* --- Shortcode Carousel --- */
.eca-shortcode-slide {
	width: 100%;
}

/* --- Swiper overrides --- */
.eca-swiper-wrap .swiper {
	overflow: hidden;
}

/* Clipping for outside arrows */
.eca-carousel-wrapper.eca-arrows-outside .eca-swiper-wrap {
	overflow: visible;
}

/* Fix overflow for loop */
.eca-carousel-wrapper .swiper-wrapper {
	box-sizing: border-box;
}

/* --- Responsive --- */
@media ( max-width: 768px ) {
	.eca-carousel-wrapper {
		gap: 10px;
	}

	.eca-nav-arrow {
		width: 38px;
		height: 38px;
	}

	.eca-nav-arrow i {
		font-size: 16px;
	}

	.eca-carousel-slide img {
		height: 250px;
	}

	.eca-media-item {
		height: 250px;
	}
}

/* --- Editor Placeholder --- */
.elementor-editor-active .eca-template-placeholder {
	background: #eef3ff;
	border-color: #a0b4e8;
}

/* --- Fade Effect Fix --- */
.swiper-fade .swiper-slide {
	pointer-events: none;
}

.swiper-fade .swiper-slide-active {
	pointer-events: auto;
}
