/**
 * Rhodes Boat — homepage (Phase 5).
 */

.rb-home-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: flex-end;
	color: var(--rb-white);
	overflow: hidden;
	padding: 7rem 0 5rem;
}

.rb-home-hero__media {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse at 70% 40%, rgba(214, 175, 69, 0.12), transparent 50%),
		linear-gradient(160deg, #0a1a28 0%, #102532 40%, #07131c 100%);
	z-index: 0;
}

.rb-home-hero__media::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
		repeating-linear-gradient(
			-12deg,
			transparent,
			transparent 40px,
			rgba(255, 255, 255, 0.015) 40px,
			rgba(255, 255, 255, 0.015) 41px
		);
	opacity: 0.8;
}

.rb-home-hero__gradient {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 19, 28, 0.35) 0%, rgba(7, 19, 28, 0.55) 45%, rgba(7, 19, 28, 0.92) 100%);
}

.rb-home-hero__img {
	object-fit: cover;
	width: 100%;
	height: 100%;
	position: absolute;
	inset: 0;
}

.rb-home-hero__content {
	position: relative;
	z-index: 1;
	padding-bottom: var(--rb-space-6);
}

.rb-home-hero .rb-trust {
	margin-top: var(--rb-space-6);
}

.rb-home-section-cta {
	text-align: center;
	margin: var(--rb-space-6) 0 0;
}

.rb-home-booking-cta {
	display: grid;
	gap: var(--rb-space-5);
	align-items: stretch;
	background: var(--rb-white);
	border: var(--rb-hairline);
	border-radius: var(--rb-radius-lg);
	box-shadow: var(--rb-shadow);
	padding: var(--rb-space-5);
}

@media (min-width: 1024px) {
	.rb-home-booking-cta {
		grid-template-columns: 1.3fr 0.9fr;
		padding: var(--rb-space-6);
		gap: var(--rb-space-6);
	}
}

.rb-home-booking-list {
	list-style: none;
	margin: var(--rb-space-4) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	color: rgba(255, 255, 255, 0.85);
}

.rb-home-booking-list li {
	padding-left: 1.25rem;
	position: relative;
}

.rb-home-booking-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.55rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 50%;
	background: var(--rb-gold);
}

.rb-home-gallery {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--rb-space-3);
}

@media (min-width: 768px) {
	.rb-home-gallery {
		grid-template-columns: repeat(3, 1fr);
		gap: var(--rb-space-4);
	}
}

.rb-home-gallery__item {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	padding: 0;
	border: 0;
	border-radius: var(--rb-radius);
	overflow: hidden;
	cursor: pointer;
	background: var(--rb-secondary-dark);
}

.rb-home-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--rb-duration-slow) var(--rb-ease);
}

.rb-home-gallery__item:hover img,
.rb-home-gallery__item:focus-visible img {
	transform: scale(1.04);
}

.rb-home-location-list {
	list-style: none;
	margin: var(--rb-space-5) 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: var(--rb-space-4);
}

.rb-home-location-label {
	display: block;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--rb-gold-dark);
	margin-bottom: 0.25rem;
}

.rb-home-location__lead {
	margin-left: 0;
}

.rb-home-location__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: var(--rb-space-4);
}

.rb-home-location__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1rem;
	border: 1px solid rgba(11, 42, 53, 0.12);
	border-radius: 999px;
	background: var(--rb-white, #fff);
	color: var(--rb-navy, #0b2a35);
	font-family: var(--rb-font-sans, Manrope, sans-serif);
	font-size: 0.82rem;
	font-weight: 700;
	cursor: pointer;
	transition:
		background-color var(--rb-duration, 0.2s) ease,
		border-color var(--rb-duration, 0.2s) ease,
		color var(--rb-duration, 0.2s) ease;
}

.rb-home-location__tab.is-active,
.rb-home-location__tab[aria-selected='true'] {
	background: var(--rb-navy, #0b2a35);
	border-color: var(--rb-navy, #0b2a35);
	color: #fff;
}

.rb-home-location__tab:focus-visible {
	outline: 2px solid var(--rb-teal, #2a7a86);
	outline-offset: 2px;
}

.rb-home-map {
	min-height: 320px;
	border-radius: var(--rb-radius);
	overflow: hidden;
	background: var(--rb-secondary-dark);
	border: var(--rb-hairline);
}

.rb-home-map__placeholder {
	min-height: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--rb-space-3);
	color: rgba(255, 255, 255, 0.75);
	text-align: center;
	padding: var(--rb-space-4);
}

.rb-home-map iframe {
	width: 100%;
	height: 100%;
	min-height: 320px;
	border: 0;
	display: block;
}

.rb-home-cross-sell__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--rb-space-5);
}

.rb-home-cross-sell__inner .rb-display {
	max-width: 28rem;
}

/* Lightbox */
.rb-lightbox {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: min(96vw, 1100px);
	width: 100%;
}

.rb-lightbox::backdrop {
	background: rgba(7, 19, 28, 0.88);
}

.rb-lightbox__inner {
	position: relative;
	background: var(--rb-navy);
	border-radius: var(--rb-radius);
	overflow: hidden;
	padding: var(--rb-space-4);
}

.rb-lightbox__img {
	width: 100%;
	max-height: 80vh;
	object-fit: contain;
	margin: 0 auto;
}

.rb-lightbox__caption {
	margin: var(--rb-space-3) 0 0;
	text-align: center;
	color: rgba(255, 255, 255, 0.75);
	font-size: var(--rb-text-sm);
}

.rb-lightbox__close,
.rb-lightbox__nav {
	position: absolute;
	z-index: 2;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: var(--rb-white);
	cursor: pointer;
	border-radius: var(--rb-radius-sm);
}

.rb-lightbox__close {
	top: 0.75rem;
	right: 0.75rem;
	width: 2.5rem;
	height: 2.5rem;
	font-size: 1.5rem;
	line-height: 1;
}

.rb-lightbox__nav {
	top: 50%;
	transform: translateY(-50%);
	width: 2.75rem;
	height: 2.75rem;
	font-size: 1.75rem;
	line-height: 1;
}

.rb-lightbox__nav--prev {
	left: 0.75rem;
}

.rb-lightbox__nav--next {
	right: 0.75rem;
}

.rb-lightbox__close:hover,
.rb-lightbox__nav:hover {
	background: var(--rb-gold);
	color: var(--rb-navy);
}

@media (max-width: 768px) {
	.rb-home-hero {
		min-height: 85vh;
		align-items: center;
		padding-top: 6rem;
	}

	.rb-lightbox__nav {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rb-home-gallery__item:hover img {
		transform: none;
	}
}
