/**
 * BBW Home — page-specific layouts.
 *
 * Builds exclusively on the bbw-core.css language (tokens, cards, rails,
 * buttons). Loaded only on the front page.
 *
 * Index
 *  1. Hero
 *  2. Intro ("what is BBW")
 *  3. Featured beaches mosaic
 *  4. Browse by type
 *  5. Featured experiences (video tiles)
 *  6. LovExplor CTA band
 */

/* ------------------------------------------------------------------ *
 * 1. Hero
 * ------------------------------------------------------------------ */

.bbw-hero {
	position: relative;
	display: grid;
	align-items: end;
	min-height: min(92svh, 860px);
	margin-top: calc(var(--bbw-header-h) * -1); /* sit under the transparent header */
	overflow: hidden;
	isolation: isolate;
}

.bbw-hero__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.bbw-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bbw-hero__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		linear-gradient(180deg, rgba(10, 24, 48, 0.35) 0%, rgba(10, 24, 48, 0.12) 40%, rgba(10, 24, 48, 0.94) 100%);
}

.bbw-hero__badge {
	position: absolute;
	top: calc(var(--bbw-header-h) + var(--bbw-space-4));
	right: var(--bbw-gutter);
	z-index: 1;
}

.bbw-hero__content {
	position: relative;
	z-index: 1;
	padding-block: var(--bbw-space-7) var(--bbw-space-8);
}

.bbw-hero__eyebrow {
	display: inline-block;
	margin-bottom: var(--bbw-space-3);
	font-family: var(--bbw-font);
	font-size: var(--bbw-text-xs);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bbw-teal);
}

.bbw-hero__title {
	margin: 0 0 var(--bbw-space-3);
	max-width: 17ch;
	font-family: var(--bbw-font-display);
	font-size: var(--bbw-text-2xl);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--bbw-ink);
}

.bbw-hero__subtitle {
	margin: 0 0 var(--bbw-space-5);
	max-width: 52ch;
	font-family: var(--bbw-font);
	font-size: var(--bbw-text-lg);
	line-height: 1.55;
	color: var(--bbw-ink-soft);
}

.bbw-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: var(--bbw-space-3);
}

/* ------------------------------------------------------------------ *
 * 2. Intro — "What is BBW": rich editorial block over a subtle image
 * ------------------------------------------------------------------ */

.bbw-intro {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-block: 1px solid var(--bbw-line);
}

.bbw-intro__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.bbw-intro__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.22;
}

.bbw-intro__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, var(--bbw-bg-deep) 0%, rgba(8, 19, 39, 0.72) 55%, rgba(8, 19, 39, 0.45) 100%);
}

.bbw-intro__text {
	margin: 0 0 var(--bbw-space-5);
	max-width: 62ch;
	font-family: var(--bbw-font);
	font-size: var(--bbw-text-lg);
	line-height: 1.6;
	color: var(--bbw-ink-soft);
}

.bbw-intro__text strong {
	color: var(--bbw-ink);
	font-weight: 650;
}

.bbw-intro__grid {
	display: grid;
	gap: var(--bbw-space-4);
	margin-bottom: var(--bbw-space-5);
}

@media (min-width: 640px) {
	.bbw-intro__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1180px) {
	.bbw-intro__grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

.bbw-intro__item {
	padding: var(--bbw-space-4);
	border: 1px solid var(--bbw-line);
	border-radius: var(--bbw-radius);
	background: rgba(15, 31, 56, 0.75);
	backdrop-filter: blur(4px);
}

.bbw-intro__item-title {
	display: block;
	margin: 0 0 var(--bbw-space-2);
	font-family: var(--bbw-font-display);
	font-size: var(--bbw-text-md);
	font-weight: 600;
	color: var(--bbw-ink);
}

.bbw-intro__item-title::before {
	content: "";
	display: block;
	width: 28px;
	height: 3px;
	margin-bottom: var(--bbw-space-2);
	border-radius: 2px;
	background: var(--bbw-teal);
}

.bbw-intro__item p {
	margin: 0;
	font-size: var(--bbw-text-sm);
	line-height: 1.6;
	color: var(--bbw-ink-soft);
}

/* ------------------------------------------------------------------ *
 * 3. Featured beaches mosaic — one large tile + smaller tiles
 * ------------------------------------------------------------------ */

.bbw-mosaic {
	display: grid;
	gap: var(--bbw-space-4);
	grid-template-columns: repeat(2, 1fr);
}

.bbw-mosaic__item {
	margin: 0;
}

.bbw-mosaic__item--lead {
	grid-column: 1 / -1;
}

.bbw-mosaic .bbw-card__media {
	aspect-ratio: 3 / 2;
}

@media (min-width: 900px) {
	.bbw-mosaic {
		grid-template-columns: repeat(4, 1fr);
		grid-auto-rows: 1fr;
	}

	.bbw-mosaic__item--lead {
		grid-column: 1 / 3;
		grid-row: 1 / 3;
	}

	.bbw-mosaic__item--lead .bbw-card,
	.bbw-mosaic__item--lead .bbw-card__media {
		height: 100%;
	}

	.bbw-mosaic .bbw-card__media {
		aspect-ratio: auto;
		min-height: 100%;
	}

	.bbw-mosaic__item:not(.bbw-mosaic__item--lead) .bbw-card__media {
		aspect-ratio: 16 / 10;
	}
}

/* ------------------------------------------------------------------ *
 * 4. Browse by type — highlighted discovery band
 * ------------------------------------------------------------------ */

.bbw-types {
	background: linear-gradient(180deg, var(--bbw-bg-deep) 0%, var(--bbw-panel) 100%);
	border-block: 1px solid var(--bbw-line);
	padding-block: var(--bbw-space-6);
}

.bbw-types__title {
	margin: 0 0 var(--bbw-space-4);
	font-family: var(--bbw-font-display);
	font-size: var(--bbw-text-lg);
	font-weight: 700;
	color: var(--bbw-ink);
}

.bbw-types__title span {
	color: var(--bbw-teal);
}

.bbw-types__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--bbw-space-3);
}

/* ------------------------------------------------------------------ *
 * 5. Featured experiences — video tiles that hand off to LovExplor
 * ------------------------------------------------------------------ */

.bbw-experiences__grid {
	display: grid;
	gap: var(--bbw-space-4);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.bbw-experiences__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.bbw-experiences__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.bbw-tile {
	position: relative;
}

.bbw-tile__label {
	position: absolute;
	left: var(--bbw-space-3);
	top: var(--bbw-space-3);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.25em 0.7em;
	border-radius: var(--bbw-radius-pill);
	background: rgba(8, 19, 39, 0.75);
	border: 1px solid var(--bbw-line);
	font-family: var(--bbw-font);
	font-size: var(--bbw-text-xs);
	font-weight: 600;
	color: var(--bbw-ink-soft);
	backdrop-filter: blur(4px);
}

.bbw-tile__label .bbw-badge--4k {
	padding: 0;
	border: 0;
	background: none;
}

/* Play affordance, revealed stronger on hover. */
.bbw-tile__play {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: grid;
	place-items: center;
	pointer-events: none;
}

.bbw-tile__play::before {
	content: "";
	width: 62px;
	height: 62px;
	border-radius: 50%;
	background: rgba(8, 19, 39, 0.66);
	border: 1px solid var(--bbw-line-strong);
	backdrop-filter: blur(4px);
	transition: transform var(--bbw-speed) var(--bbw-ease),
		background-color var(--bbw-speed) var(--bbw-ease);
}

.bbw-tile__play::after {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent #fff;
}

.bbw-tile:hover .bbw-tile__play::before,
.bbw-tile:focus-within .bbw-tile__play::before {
	transform: scale(1.08);
	background: rgba(30, 127, 255, 0.85);
}

.bbw-experiences__more {
	margin-top: var(--bbw-space-5);
	text-align: center;
}

/* ------------------------------------------------------------------ *
 * 5b. Explore more places — straight post grid with load-more
 * ------------------------------------------------------------------ */

.bbw-places__grid {
	display: grid;
	gap: var(--bbw-space-4);
	grid-template-columns: 1fr;
}

@media (min-width: 640px) {
	.bbw-places__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 900px) {
	.bbw-places__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.bbw-places__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: var(--bbw-space-3);
	margin-top: var(--bbw-space-5);
}

.bbw-places__load-more[disabled] {
	opacity: 0.6;
	pointer-events: none;
}

/* ------------------------------------------------------------------ *
 * 6. LovExplor CTA band
 * ------------------------------------------------------------------ */

.bbw-lovexplor {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	text-align: center;
	padding-block: var(--bbw-space-8);
}

.bbw-lovexplor__media {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.bbw-lovexplor__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	opacity: 0.55; /* the image must stay visible, copy readable via text shadow */
}

.bbw-lovexplor__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse at center, rgba(10, 24, 48, 0.42) 0%, rgba(10, 24, 48, 0.85) 100%);
}

.bbw-lovexplor__title,
.bbw-lovexplor__text {
	text-shadow: 0 2px 18px rgba(8, 19, 39, 0.85);
}

.bbw-lovexplor__kicker {
	display: inline-block;
	margin-bottom: var(--bbw-space-3);
	font-family: var(--bbw-font);
	font-size: var(--bbw-text-xs);
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--bbw-teal);
}

.bbw-lovexplor__title {
	margin: 0 auto var(--bbw-space-3);
	max-width: 22ch;
	font-family: var(--bbw-font-display);
	font-size: var(--bbw-text-2xl);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--bbw-ink);
}

.bbw-lovexplor__text {
	margin: 0 auto var(--bbw-space-5);
	max-width: 52ch;
	font-family: var(--bbw-font);
	font-size: var(--bbw-text-lg);
	line-height: 1.6;
	color: var(--bbw-ink-soft);
}

.bbw-lovexplor__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--bbw-space-3);
}
