/**
 * Stayfee Hero Slider
 * Lightweight CSS-only transitions, JS controls auto-play + nav.
 */

/* Container */
.stayfee-slider {
	position: relative;
	width: 100%;
	height: clamp(500px, 85vh, 900px);
	overflow: hidden;
	background: #111;
}

/* Track holds all slides side by side */
.stayfee-slider__track {
	display: flex;
	height: 100%;
	transition: none; /* we move slides with opacity, not translate */
}

/* Each slide */
.stayfee-slider__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
	pointer-events: none;
}
.stayfee-slider__slide.is-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

/* Background image */
.stayfee-slider__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

/* Dark overlay for text legibility */
.stayfee-slider__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.45) 50%,
		rgba(0, 0, 0, 0.25) 100%
	);
	z-index: 1;
}

/* Content area */
.stayfee-slider__content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(1.5rem, 5vw, 5rem) clamp(1.5rem, 8vw, 8rem);
	max-width: 860px;

	/* Animate in with active slide */
	transform: translateY(20px);
	opacity: 0;
	transition: transform 0.7s ease 0.2s, opacity 0.7s ease 0.2s;
}
.stayfee-slider__slide.is-active .stayfee-slider__content {
	transform: translateY(0);
	opacity: 1;
}

/* Eyebrow */
.stayfee-slider__eyebrow {
	font-size: clamp(0.75rem, 1.5vw, 0.875rem);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: #FF6B3D;
	margin: 0 0 1rem;
}

/* Headline */
.stayfee-slider__title {
	font-size: clamp(2rem, 5vw, 4rem);
	font-weight: 800;
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: #fff;
	margin: 0 0 1.25rem;
}

/* Description */
.stayfee-slider__desc {
	font-size: clamp(1rem, 1.8vw, 1.25rem);
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.88);
	margin: 0 0 2rem;
	max-width: 560px;
}

/* Buttons */
.stayfee-slider__btns {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}
.stayfee-slider__btn {
	display: inline-flex;
	align-items: center;
	padding: 0.875rem 2rem;
	border-radius: 0.375rem;
	font-weight: 700;
	font-size: 1rem;
	text-decoration: none;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
	cursor: pointer;
	white-space: nowrap;
}
.stayfee-slider__btn--accent {
	background: #FF6B3D;
	color: #1A1A1A;
	border: 2px solid #FF6B3D;
}
.stayfee-slider__btn--accent:hover {
	background: #c99628;
	border-color: #c99628;
}
.stayfee-slider__btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.75);
}
.stayfee-slider__btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
}

/* Prev / Next arrows */
.stayfee-slider__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	width: 48px;
	height: 48px;
	font-size: 1.25rem;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, border-color 0.2s ease;
	backdrop-filter: blur(4px);
}
.stayfee-slider__arrow:hover {
	background: rgba(255, 255, 255, 0.3);
	border-color: #fff;
}
.stayfee-slider__arrow--prev { left: 1.5rem; }
.stayfee-slider__arrow--next { right: 1.5rem; }

/* Dots */
.stayfee-slider__dots {
	position: absolute;
	bottom: 1.75rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	display: flex;
	gap: 0.6rem;
	align-items: center;
}
.stayfee-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.6);
	background: transparent;
	cursor: pointer;
	padding: 0;
	transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.stayfee-slider__dot.is-active {
	background: #fff;
	border-color: #fff;
	transform: scale(1.25);
}

/* Progress bar at bottom */
.stayfee-slider__progress {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 3px;
	background: #FF6B3D;
	z-index: 10;
	transition: width 0.1s linear;
}

/* Mobile adjustments */
@media (max-width: 640px) {
	.stayfee-slider__arrow { display: none; }
	.stayfee-slider__content { padding: 2rem 1.25rem; }
	.stayfee-slider__title { font-size: clamp(1.75rem, 6vw, 2.5rem); }
}

/* Reduced motion — no transitions */
@media (prefers-reduced-motion: reduce) {
	.stayfee-slider__slide,
	.stayfee-slider__content,
	.stayfee-slider__progress { transition: none; }
}
