/* Popular Destinations carousel — 4 visible, 1-card step, pause on hover */

.turasly-pdest {
	--tpd-gap: 16px;
	--tpd-visible: 4;
}

.turasly-pdest__viewport {
	overflow: hidden;
	margin: 0 calc(var(--tpd-gap) / -2);
}

.turasly-pdest__track {
	display: flex;
	gap: var(--tpd-gap);
	transition: transform 0.6s cubic-bezier(0.45, 0.05, 0.25, 1);
	will-change: transform;
}

.turasly-pdest__card {
	position: relative;
	flex: 0 0 calc((100% - (var(--tpd-visible) - 1) * var(--tpd-gap)) / var(--tpd-visible));
	height: 340px;
	border-radius: 12px;
	overflow: hidden;
	display: block;
	text-decoration: none;
	isolation: isolate;
}

.turasly-pdest__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	transition: transform 0.7s ease;
	z-index: -2;
}

.turasly-pdest__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(20, 35, 35, 0.85) 0%, rgba(20, 35, 35, 0.15) 45%, rgba(20, 35, 35, 0) 70%);
	z-index: -1;
	transition: background 0.4s ease;
}

.turasly-pdest__card:hover .turasly-pdest__bg {
	transform: scale(1.07);
}

.turasly-pdest__label {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 14px;
	color: #fff;
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

.turasly-pdest__label strong {
	display: inline-block;
	align-self: flex-start;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
	background-color: var(--turasly-green, #1d3a3a);
	padding: 6px 14px;
	border-radius: 6px;
}

.turasly-pdest__label em {
	font-style: normal;
	font-size: 13px;
	opacity: 0.95;
	padding: 3px 10px;
	border-radius: 4px;
	background: rgba(20, 35, 35, 0.55);
	align-self: flex-start;
}

/* Dot navigation */
.turasly-pdest__dots {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.turasly-pdest__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(29, 58, 58, 0.25);
	cursor: pointer;
	transition: background 0.25s ease, transform 0.25s ease;
}

.turasly-pdest__dot:hover {
	background: rgba(29, 58, 58, 0.55);
}

.turasly-pdest__dot.is-active {
	background: #e58a4a;
	transform: scale(1.25);
}

.turasly-pdest__dot:focus-visible {
	outline: 2px solid #e58a4a;
	outline-offset: 2px;
}

/* Responsive visibility */
@media (max-width: 1100px) {
	.turasly-pdest { --tpd-visible: 3; }
}
@media (max-width: 768px) {
	.turasly-pdest { --tpd-visible: 2; }
	.turasly-pdest__card { height: 280px; }
}
@media (max-width: 520px) {
	.turasly-pdest { --tpd-visible: 1; }
	.turasly-pdest__card { height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
	.turasly-pdest__track { transition: none; }
}
