/* ============================================================
   TOURS SLIDER SECTION — Tours Más Vistos
   Complete rewrite for reliable cross-browser rendering
   ============================================================ */

/* ── Section wrapper ─────────────────────────────────────── */
.tours-slider-section {
	padding: 4rem 0 3.5rem;
	background: #ffffff;
	position: relative;
}

.tours-slider-section::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, #004D40, #009098, #C57143);
}

/* ── Header row ──────────────────────────────────────────── */
.tours-slider-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2rem;
	flex-wrap: wrap;
}

.tours-slider-header-left {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.tours-slider-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #C57143;
	background: rgba(197, 113, 67, 0.1);
	border: 1px solid rgba(197, 113, 67, 0.3);
	padding: 0.28rem 0.9rem;
	border-radius: 9999px;
	width: fit-content;
}

.tours-slider-heading {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	color: #004D40;
	line-height: 1.2;
	margin: 0;
}

.tours-slider-subheading {
	font-size: 0.95rem;
	color: #4b5563;
	margin: 0;
	line-height: 1.55;
}

/* ── Arrow buttons ───────────────────────────────────────── */
.tours-slider-controls-top {
	display: flex;
	gap: 0.6rem;
	flex-shrink: 0;
	align-items: center;
}

.ts-arrow {
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	border-radius: 50% !important;
	border: 2px solid rgba(0, 144, 152, 0.35) !important;
	background: #ffffff !important;
	color: #009098 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease !important;
	padding: 0 !important;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
}

.ts-arrow:hover {
	background: #009098 !important;
	border-color: #009098 !important;
	color: #ffffff !important;
}

.ts-arrow:disabled {
	opacity: 0.3 !important;
	cursor: not-allowed !important;
}

/* ── Slider viewport (clipping container) ────────────────── */
.tours-slider-viewport {
	overflow: hidden !important;
	width: 100% !important;
	position: relative !important;
	border-radius: 16px !important;
}

/* ── Track: horizontal flex strip ───────────────────────── */
.tours-slider-track {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 20px !important;
	transition: transform 0.48s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
	will-change: transform !important;
	align-items: stretch !important;
}

/* ── Each slide ──────────────────────────────────────────── */
.ts-slide {
	flex-shrink: 0 !important;
	/* Width set by JS based on viewport */
}

/* ── Card link reset ─────────────────────────────────────── */
.ts-card-link {
	display: block !important;
	text-decoration: none !important;
	color: inherit !important;
	height: 100% !important;
	border-radius: 16px !important;
	overflow: hidden !important;
}

/* ── Tour card ───────────────────────────────────────────── */
.ts-card {
	background: #ffffff !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	border: 1px solid rgba(0, 144, 152, 0.12) !important;
	display: flex !important;
	flex-direction: column !important;
	height: 100% !important;
	min-height: 380px !important;
	transition: transform 0.28s ease, box-shadow 0.28s ease !important;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

.ts-card-link:hover .ts-card {
	transform: translateY(-5px) !important;
	box-shadow: 0 16px 48px rgba(0, 80, 90, 0.16), 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

/* ── Card image (fixed-height photo area) ────────────────── */
.ts-card-image {
	position: relative !important;
	height: 210px !important;
	min-height: 210px !important;
	max-height: 210px !important;
	background-size: cover !important;
	background-position: center center !important;
	background-repeat: no-repeat !important;
	background-color: #e5e7eb !important;
	flex-shrink: 0 !important;
	overflow: hidden !important;
	display: block !important;
	width: 100% !important;
}

/* Gradient overlay ON the image div */
.ts-card-image::after {
	content: '' !important;
	position: absolute !important;
	inset: 0 !important;
	background: linear-gradient(
		to bottom,
		rgba(0, 0, 0, 0.04) 0%,
		rgba(0, 20, 30, 0.48) 100%
	) !important;
	pointer-events: none !important;
}

.ts-card-overlay {
	display: none !important; /* Using ::after instead for reliability */
}

/* Badges on top of the image */
.ts-card-badges {
	position: absolute !important;
	top: 12px !important;
	left: 12px !important;
	right: 12px !important;
	display: flex !important;
	gap: 6px !important;
	flex-wrap: wrap !important;
	z-index: 2 !important;
}

.ts-badge-cat {
	display: inline-block !important;
	font-size: 0.68rem !important;
	font-weight: 700 !important;
	letter-spacing: 0.07em !important;
	text-transform: uppercase !important;
	color: #ffffff !important;
	background: rgba(0, 77, 64, 0.8) !important;
	padding: 3px 10px !important;
	border-radius: 9999px !important;
	border: 1px solid rgba(255,255,255,0.2) !important;
}

.ts-badge-dur {
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
	font-size: 0.68rem !important;
	font-weight: 600 !important;
	color: rgba(255,255,255,0.92) !important;
	background: rgba(0, 0, 0, 0.45) !important;
	padding: 3px 9px !important;
	border-radius: 9999px !important;
	border: 1px solid rgba(255,255,255,0.15) !important;
}

/* ── Card text body ──────────────────────────────────────── */
.ts-card-body {
	padding: 1.1rem 1.2rem 1rem !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 0.45rem !important;
	flex: 1 !important;
}

.ts-card-title {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 1rem !important;
	font-weight: 700 !important;
	color: #004D40 !important;
	line-height: 1.3 !important;
	margin: 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

.ts-card-excerpt {
	font-size: 0.84rem !important;
	color: #4b5563 !important;
	line-height: 1.5 !important;
	margin: 0 !important;
	flex: 1 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
}

/* Card footer: price + CTA */
.ts-card-footer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 8px !important;
	padding-top: 0.7rem !important;
	border-top: 1px solid rgba(0, 144, 152, 0.1) !important;
	margin-top: auto !important;
	flex-wrap: wrap !important;
}

.ts-price {
	font-size: 0.8rem !important;
	color: #6b7280 !important;
	font-weight: 400 !important;
}

.ts-price strong {
	font-family: 'Montserrat', sans-serif !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	color: #009098 !important;
}

.ts-cta-btn {
	display: inline-block !important;
	font-size: 0.75rem !important;
	font-weight: 700 !important;
	color: #ffffff !important;
	background: #009098 !important;
	padding: 0.32rem 0.85rem !important;
	border-radius: 9999px !important;
	white-space: nowrap !important;
	transition: background 0.2s ease !important;
	text-transform: uppercase !important;
	letter-spacing: 0.05em !important;
}

.ts-card-link:hover .ts-cta-btn {
	background: #004D40 !important;
}

/* ── Dot navigation ──────────────────────────────────────── */
.ts-dots {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px !important;
	margin-top: 1.75rem !important;
}

.ts-dot {
	display: block !important;
	height: 8px !important;
	width: 8px !important;
	border-radius: 9999px !important;
	background: rgba(0, 144, 152, 0.22) !important;
	border: none !important;
	cursor: pointer !important;
	padding: 0 !important;
	transition: background 0.25s ease, width 0.28s ease !important;
}

.ts-dot.is-active {
	background: #009098 !important;
	width: 26px !important;
}

/* ── View all button ─────────────────────────────────────── */
.ts-view-all-row {
	display: flex !important;
	justify-content: center !important;
	margin-top: 2.25rem !important;
}

.ts-view-all-btn {
	display: inline-flex !important;
	align-items: center !important;
	gap: 8px !important;
	font-size: 0.92rem !important;
	font-weight: 700 !important;
	color: #009098 !important;
	border: 2px solid #009098 !important;
	padding: 0.75rem 2rem !important;
	border-radius: 9999px !important;
	text-decoration: none !important;
	transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease !important;
}

.ts-view-all-btn:hover {
	background: #009098 !important;
	color: #ffffff !important;
	box-shadow: 0 8px 24px rgba(0, 144, 152, 0.28) !important;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
	.tours-slider-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.tours-slider-controls-top {
		align-self: flex-end;
	}
}
