/**
 * City-home hero slideshow — same cover + overlay idea as .rt-trip-hero.
 */
.rt-hero-slideshow {
	--rt-water-deep: #0e4a56;
	--rt-font-display: "Literata", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
	--rt-font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
	--rt-slide-fade: 900ms;
	position: relative;
	isolation: isolate;
	width: 100%;
	margin: 0 0 1.75rem;
}

.rt-hero-slideshow__viewport {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
}

.rt-hero-slideshow__track {
	position: relative;
	min-height: clamp(200px, 36vw, 380px);
}

.rt-hero-slideshow__slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: flex-end;
	min-height: 100%;
	background-color: var(--rt-water-deep);
	background-image: var(--rt-hero-image);
	background-size: cover;
	background-position: center 40%;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	z-index: 0;
	transition:
		opacity var(--rt-slide-fade) ease,
		visibility var(--rt-slide-fade) ease;
}

.rt-hero-slideshow__slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 1;
}

.rt-hero-slideshow__slide,
.rt-hero-slideshow a.rt-hero-slideshow__slide,
.rt-hero-slideshow a.rt-hero-slideshow__slide:hover,
.rt-hero-slideshow a.rt-hero-slideshow__slide:focus,
.rt-hero-slideshow a.rt-hero-slideshow__slide:focus-visible,
.rt-hero-slideshow a.rt-hero-slideshow__slide:visited {
	color: #fff;
	text-decoration: none;
}

.rt-hero-slideshow a.rt-hero-slideshow__slide:hover .rt-hero-slideshow__title,
.rt-hero-slideshow a.rt-hero-slideshow__slide:hover .rt-hero-slideshow__subtitle,
.rt-hero-slideshow a.rt-hero-slideshow__slide:focus .rt-hero-slideshow__title,
.rt-hero-slideshow a.rt-hero-slideshow__slide:focus .rt-hero-slideshow__subtitle {
	color: #fff;
	text-decoration: none;
	opacity: inherit;
}

.rt-hero-slideshow__shade {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background:
		linear-gradient(
			180deg,
			rgba(8, 28, 34, 0.12) 0%,
			rgba(8, 28, 34, 0.28) 42%,
			rgba(8, 28, 34, 0.78) 100%
		);
}

.rt-hero-slideshow__content {
	position: relative;
	z-index: 1;
	width: 100%;
	padding: clamp(1.5rem, 4vw, 2.4rem) 1.25rem 1.4rem;
	display: flex;
	flex-direction: column;
	gap: 0.45rem;
}

.rt-hero-slideshow__title {
	font-family: var(--rt-font-display);
	font-weight: 700;
	font-size: clamp(1.65rem, 3.8vw, 2.75rem);
	letter-spacing: -0.025em;
	line-height: 1.12;
	text-wrap: balance;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.rt-hero-slideshow__subtitle {
	font-family: var(--rt-font-body);
	font-weight: 600;
	font-size: clamp(1rem, 1.8vw, 1.3rem);
	line-height: 1.35;
	opacity: 0.8;
	text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.rt-hero-slideshow__nav {
	position: absolute;
	top: 50%;
	z-index: 2;
	transform: translateY(-50%);
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 50%;
	background: rgba(8, 28, 34, 0.45);
	color: #fff;
	font-size: 1.6rem;
	line-height: 1;
	cursor: pointer;
}

.rt-hero-slideshow__nav:hover,
.rt-hero-slideshow__nav:focus-visible {
	background: rgba(8, 28, 34, 0.7);
}

.rt-hero-slideshow__nav--prev { left: 0.75rem; }
.rt-hero-slideshow__nav--next { right: 0.75rem; }

.rt-hero-slideshow__dots {
	display: flex;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.75rem 0 0;
}

.rt-hero-slideshow__dot {
	width: 0.55rem;
	height: 0.55rem;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #c5d4d8;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.25s ease;
}

.rt-hero-slideshow__dot.is-active {
	background: #1a6b7a;
	transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
	.rt-hero-slideshow {
		--rt-slide-fade: 0ms;
	}

	.rt-hero-slideshow__slide,
	.rt-hero-slideshow__dot {
		transition: none;
	}
}
