.cfe-tour-loop {
	position: relative;
}

.cfe-tour-loop.is-loading .cfe-tour-loop-items {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.15s ease;
}

.cfe-tour-loop.is-loading::after {
	content: '';
	position: absolute;
	top: 48px;
	left: 50%;
	width: 36px;
	height: 36px;
	margin-left: -18px;
	border: 3px solid #e5e7f0;
	border-top-color: #374151;
	border-radius: 50%;
	animation: cfe-tour-loop-spin 0.7s linear infinite;
	z-index: 1;
}

@keyframes cfe-tour-loop-spin {
	to {
		transform: rotate(360deg);
	}
}

.cfe-tour-loop-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 20px;
}

.cfe-tour-loop-count {
	font-size: 15px;
	font-weight: 700;
}

.cfe-tour-loop-count-label {
	color: #20263a;
}

.cfe-tour-loop-count-value {
	color: #3a4b98;
}

.cfe-tour-loop-sort {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	gap: 8px;
	font-size: 14px;
	color: #6b7280;
	white-space: nowrap;
}

.cfe-tour-loop-sort-select {
	border: 1px solid #e5e7f0;
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #20263a;
	background: #ffffff;
}

.cfe-tour-loop-grid .cfe-tour-loop-items {
	display: grid;
	grid-template-columns: repeat(var(--cfe-tl-cols, 3), 1fr);
	gap: var(--cfe-tl-gap, 24px);
}

@media (max-width: 1024px) {
	.cfe-tour-loop-grid .cfe-tour-loop-items {
		grid-template-columns: repeat(var(--cfe-tl-cols-tablet, 2), 1fr);
	}
}

@media (max-width: 767px) {
	.cfe-tour-loop-grid .cfe-tour-loop-items {
		grid-template-columns: repeat(var(--cfe-tl-cols-mobile, 1), 1fr);
	}
}

.cfe-tour-loop-empty {
	grid-column: 1 / -1;
	padding: 32px;
	text-align: center;
	color: #6b7280;
}

.cfe-tour-loop-sentinel {
	text-align: center;
	margin-top: 28px;
	padding: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #6b7280;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.cfe-tour-loop-sentinel.is-loading {
	opacity: 1;
}

/* Carousel */
.cfe-tour-loop-carousel {
	position: relative;
	padding: 0 4px;
}

.cfe-tour-loop-swiper {
	overflow: hidden;
}

.cfe-tour-loop-swiper .swiper-wrapper {
	gap: 0;
}

.cfe-tour-loop-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid #e5e7f0;
	background: #ffffff;
	color: #20263a;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(20, 25, 60, 0.1);
}

.cfe-tour-loop-nav:hover {
	background: #3a4b98;
	color: #ffffff;
	border-color: #3a4b98;
}

.cfe-tour-loop-prev {
	left: -20px;
}

.cfe-tour-loop-next {
	right: -20px;
}

.cfe-tour-loop-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.cfe-tour-loop-pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #e5e7f0;
	opacity: 1;
	cursor: pointer;
}

.cfe-tour-loop-pagination .swiper-pagination-bullet-active {
	background: #3a4b98;
}

@media (max-width: 600px) {
	.cfe-tour-loop-nav {
		display: none;
	}
}
