/* ==========================================================================
   BeeGee's Coastal — Listings page hero
   A slow crossfading gulf backdrop, one clear promise, and a booking bar
   that overlaps the edge so the page starts with an action, not a scroll.
   ========================================================================== */

.bghf-hero {
	--bghf-deep: #062A34;
	--bghf-deep-2: #03161D;
	--bghf-text: #F3EFE6;
	--bghf-muted: rgba(243, 239, 230, .70);
	--bghf-brass: #D8A33C;
	--bghf-surf: #39C2B1;
	--bghf-cta-text: #06222B;
	--bghf-container: 1360px;
	--bghf-display: "Fraunces", Georgia, "Times New Roman", serif;
	--bghf-ui: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--bghf-ease: cubic-bezier(.22, .61, .36, 1);
	--bghf-hero-h: 78vh;
	--bghf-hero-min: 560px;
	--bghf-hero-top: 150px;
	--bghf-hero-gap: 40px;

	position: relative;
	width: 100%;
	font-family: var(--bghf-ui);
	color: var(--bghf-text);
	background: var(--bghf-deep);
	isolation: isolate;
}

.bghf-hero *,
.bghf-hero *::before,
.bghf-hero *::after {
	box-sizing: border-box;
}

.bghf-hero .bghf-wrap {
	position: relative;
	width: 100%;
	max-width: var(--bghf-container);
	margin-inline: auto;
	padding-inline: 28px;
}

.bghf-hero a:focus-visible,
.bghf-hero button:focus-visible {
	outline: 2px solid var(--bghf-brass);
	outline-offset: 4px;
	border-radius: 6px;
}

/* ------------------------------------------------------------- backdrop */

/*
 * Height is a floor, never a ceiling. Previously this was a fixed height with
 * bottom-aligned content, so as soon as the copy grew taller than the stage
 * (long headline, big type, short viewport, zoomed-in browser) the overflow
 * ran upward and slid under the header.
 */
.bghf-hero__stage {
	position: relative;
	min-height: max(var(--bghf-hero-min), var(--bghf-hero-h));
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.bghf-hero__media {
	position: absolute;
	inset: 0;
	z-index: -2;
}

.bghf-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transform: scale(1.06);
	transition: opacity 1.6s var(--bghf-ease);
}

.bghf-hero__slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bghf-hero__slide.is-on {
	opacity: 1;
	animation: bghf-kenburns 14s ease-out forwards;
}

@keyframes bghf-kenburns {
	from { transform: scale(1.06); }
	to { transform: scale(1.15); }
}

.bghf-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(4, 26, 34, .78) 0%, rgba(4, 26, 34, .30) 34%, rgba(3, 22, 29, .92) 100%),
		radial-gradient(70% 60% at 12% 90%, rgba(6, 42, 52, .70), transparent 70%);
}

/* a hairline of brass along the horizon */
.bghf-hero__horizon {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	z-index: 1;
	background: linear-gradient(90deg, transparent, var(--bghf-brass), var(--bghf-surf), transparent);
	opacity: .5;
}

/* ---------------------------------------------------------------- copy */

/*
 * --bghf-head-h is written by the header script from the header's measured
 * height, so the clearance is right on every device and every breakpoint
 * without anyone having to guess a number.
 */
.bghf-hero__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	padding-top: max( var(--bghf-hero-top), calc( var(--bghf-head-h, 120px) + var(--bghf-hero-gap) ) );
	padding-bottom: clamp(70px, 9vw, 120px);
}

.bghf-hero.is-centered .bghf-hero__inner {
	text-align: center;
}

.bghf-hero.is-centered .bghf-hero__sub,
.bghf-hero.is-centered .bghf-hero__title {
	margin-inline: auto;
}

.bghf-hero.is-centered .bghf-hero__eyebrow,
.bghf-hero.is-centered .bghf-hero__meta {
	justify-content: center;
}

.bghf-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 20px;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--bghf-brass);
}

.bghf-hero__eyebrow::before {
	content: "";
	width: 32px;
	height: 1px;
	background: linear-gradient(90deg, var(--bghf-brass), transparent);
}

.bghf-hero.is-centered .bghf-hero__eyebrow::before {
	display: none;
}

.bghf-hero__title {
	margin: 0 0 18px;
	max-width: 20ch;
	font-family: var(--bghf-display);
	font-size: clamp(38px, 5.6vw, 76px);
	font-weight: 600;
	line-height: 1.06;
	letter-spacing: -.025em;
	color: var(--bghf-text);
	text-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}

.bghf-hero__mark {
	position: relative;
	display: inline-block;
	padding-bottom: .14em;
	font-style: italic;
	color: var(--bghf-brass);
}

.bghf-hero__mark::after {
	content: "";
	position: absolute;
	left: 0;
	right: .06em;
	bottom: 0;
	height: 1.5px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--bghf-brass), var(--bghf-surf));
	opacity: .9;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 1.1s var(--bghf-ease) .5s;
}

.bghf-hero.is-ready .bghf-hero__mark::after {
	transform: scaleX(1);
}

.bghf-hero__sub {
	margin: 0 0 28px;
	max-width: 46ch;
	font-size: clamp(15.5px, 1.2vw, 18px);
	line-height: 1.7;
	color: var(--bghf-muted);
}

/* ------------------------------------------------- direct booking panel */

.bghf-hero__save {
	display: inline-flex;
	align-items: stretch;
	gap: 0;
	margin: 0 0 26px;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid rgba(216, 163, 60, .38);
	background: rgba(4, 26, 34, .55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.bghf-hero__savecol {
	padding: 14px 22px;
	display: grid;
	align-content: center;
	gap: 4px;
}

.bghf-hero__savecol + .bghf-hero__savecol {
	border-left: 1px solid rgba(243, 239, 230, .14);
}

.bghf-hero__savecol span {
	font-size: 9.5px;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--bghf-muted);
}

.bghf-hero__savecol strong {
	font-family: var(--bghf-display);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	color: var(--bghf-text);
}

/* the platform column is struck through — the point of the whole panel */
.bghf-hero__savecol--was strong {
	color: rgba(243, 239, 230, .55);
	text-decoration: line-through;
	text-decoration-color: rgba(255, 140, 120, .8);
	text-decoration-thickness: 2px;
}

.bghf-hero__savecol--now {
	background: linear-gradient(120deg, rgba(216, 163, 60, .18), rgba(57, 194, 177, .12));
}

.bghf-hero__savecol--now strong { color: var(--bghf-brass); }

.bghf-hero.is-centered .bghf-hero__save { margin-inline: auto; }

/* trust line */

.bghf-hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bghf-hero__meta li {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--bghf-muted);
}

.bghf-hero__meta li::before {
	content: "";
	width: 14px;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--bghf-brass), var(--bghf-surf));
}

/* ------------------------------------------------------- reveal helper */

.bghf-hero__rv {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .9s var(--bghf-ease), transform .9s var(--bghf-ease);
	transition-delay: var(--d, 0ms);
}

.bghf-hero.is-ready .bghf-hero__rv {
	opacity: 1;
	transform: none;
}

/* --------------------------------------------------------- scroll cue */

.bghf-hero__cue {
	position: absolute;
	right: 34px;
	bottom: 132px;
	z-index: 3;
	display: grid;
	justify-items: center;
	gap: 12px;
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(243, 239, 230, .5);
	writing-mode: vertical-rl;
}

.bghf-hero__cue span {
	display: block;
	width: 1px;
	height: 54px;
	background: linear-gradient(180deg, var(--bghf-brass), transparent);
	position: relative;
	overflow: hidden;
}

.bghf-hero__cue span::after {
	content: "";
	position: absolute;
	left: 0;
	top: -60%;
	width: 100%;
	height: 60%;
	background: var(--bghf-surf);
	animation: bghf-cue 2.4s var(--bghf-ease) infinite;
}

@keyframes bghf-cue {
	0% { top: -60%; }
	100% { top: 110%; }
}

/* ==========================================================================
   BOOKING BAR — overlaps the bottom edge of the image
   ========================================================================== */

.bghf-hero__barwrap {
	position: relative;
	z-index: 4;
	margin-top: -46px;
}

.bghf-hero__bar {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 28px;
	padding: 24px 30px;
	border-radius: 20px;
	border: 1px solid rgba(216, 163, 60, .3);
	background: linear-gradient(120deg, rgba(6, 42, 52, .96), rgba(3, 22, 29, .96));
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .95);
}

.bghf-hero__barlabel {
	display: block;
	margin-bottom: 12px;
	font-size: 10px;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--bghf-brass);
}

/* quick filters */

.bghf-hero__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bghf-hero__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 999px;
	border: 1px solid rgba(243, 239, 230, .16);
	background: rgba(243, 239, 230, .04);
	color: var(--bghf-text);
	font-size: 12.5px;
	letter-spacing: .04em;
	text-decoration: none;
	white-space: nowrap;
	transition: border-color .3s var(--bghf-ease), background .3s var(--bghf-ease),
		color .3s var(--bghf-ease), transform .3s var(--bghf-ease);
}

.bghf-hero__chip::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: var(--bghf-surf);
	opacity: .7;
	transition: transform .3s var(--bghf-ease), background .3s var(--bghf-ease);
}

.bghf-hero__chip:hover {
	border-color: var(--bghf-brass);
	background: rgba(216, 163, 60, .12);
	transform: translateY(-2px);
}

.bghf-hero__chip:hover::before {
	background: var(--bghf-brass);
	transform: scale(1.5);
}

/* the phone is the primary action on this page */
.bghf-hero__phone--primary {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	padding: 12px 24px 12px 14px;
	border-radius: 999px;
	background: var(--bghf-brass);
	color: var(--bghf-cta-text);
	text-align: left;
	text-decoration: none;
	box-shadow: 0 16px 34px -16px rgba(216, 163, 60, .9);
	transition: transform .3s var(--bghf-ease), box-shadow .3s var(--bghf-ease);
}

.bghf-hero__phone--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 40px -16px rgba(216, 163, 60, .95);
}

.bghf-hero__phone--primary .bghf-hero__ring {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(6, 34, 43, .16);
	flex: 0 0 auto;
}

.bghf-hero__phone--primary span {
	font-size: 9.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(6, 34, 43, .72);
}

.bghf-hero__phone--primary strong {
	display: block;
	margin-top: 2px;
	font-family: var(--bghf-display);
	font-size: 20px;
	font-weight: 600;
	color: var(--bghf-cta-text);
}

/* secondary action loses its fill so the phone leads */
.bghf-hero .bghf-hero__btn--ghost {
	background: transparent;
	color: var(--bghf-text);
	border: 1px solid rgba(243, 239, 230, .26);
	box-shadow: none;
}

.bghf-hero .bghf-hero__btn--ghost::before { display: none; }

.bghf-hero .bghf-hero__btn--ghost:hover {
	border-color: var(--bghf-brass);
	color: var(--bghf-brass);
	box-shadow: none;
}

/* call side */

.bghf-hero__call {
	display: flex;
	align-items: center;
	gap: 20px;
}

.bghf-hero__phone {
	display: grid;
	text-decoration: none;
	color: var(--bghf-text);
	text-align: right;
}

.bghf-hero__phone span {
	font-size: 9.5px;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--bghf-muted);
}

.bghf-hero__phone strong {
	margin-top: 3px;
	font-family: var(--bghf-display);
	font-size: 19px;
	font-weight: 600;
	transition: color .25s var(--bghf-ease);
}

.bghf-hero__phone:hover strong {
	color: var(--bghf-brass);
}

.bghf-hero .bghf-hero__btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 14px 26px;
	border-radius: 999px;
	background: var(--bghf-brass);
	color: var(--bghf-cta-text);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .13em;
	text-transform: uppercase;
	text-decoration: none;
	overflow: hidden;
	isolation: isolate;
	box-shadow: 0 14px 32px -16px rgba(216, 163, 60, .85);
	transition: transform .3s var(--bghf-ease), box-shadow .3s var(--bghf-ease);
	white-space: nowrap;
}

.bghf-hero .bghf-hero__btn::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(100deg, var(--bghf-surf), var(--bghf-brass) 62%);
	opacity: 0;
	transition: opacity .35s var(--bghf-ease);
}

.bghf-hero .bghf-hero__btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 18px 36px -16px rgba(57, 194, 177, .85);
}

.bghf-hero .bghf-hero__btn:hover::before { opacity: 1; }

/* note under the bar */

.bghf-hero__note {
	margin: 16px 0 0;
	font-size: 12px;
	letter-spacing: .04em;
	color: rgba(243, 239, 230, .5);
}

.bghf-hero__foot {
	padding-bottom: clamp(34px, 4vw, 54px);
	background: linear-gradient(180deg, var(--bghf-deep-2), var(--bghf-deep-2));
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
	.bghf-hero__bar { grid-template-columns: 1fr; gap: 22px; }
	.bghf-hero__call { justify-content: space-between; }
	.bghf-hero__cue { display: none; }
}

@media (max-width: 767px) {
	.bghf-hero {
		--bghf-hero-h: auto;
		--bghf-hero-min: 480px;
		--bghf-hero-top: 96px;
		--bghf-hero-gap: 28px;
	}

	.bghf-hero .bghf-wrap { padding-inline: 18px; }
	.bghf-hero__title { max-width: 100%; }
	.bghf-hero__barwrap { margin-top: -30px; }
	.bghf-hero__bar { padding: 22px 20px; border-radius: 16px; }
	.bghf-hero__call { flex-direction: column; align-items: stretch; gap: 14px; }
	.bghf-hero__phone { text-align: left; }
	.bghf-hero__phone--primary { justify-content: flex-start; }
	.bghf-hero__save { width: 100%; }
	.bghf-hero__savecol { padding: 12px 16px; }
	.bghf-hero__savecol strong { font-size: 18px; }
	.bghf-hero .bghf-hero__btn { justify-content: center; }
	.bghf-hero__meta { gap: 8px 18px; }
	.bghf-hero__meta li { font-size: 11px; letter-spacing: .1em; }
}

@media (prefers-reduced-motion: reduce) {
	.bghf-hero *,
	.bghf-hero *::before,
	.bghf-hero *::after {
		animation: none !important;
		transition-duration: .01ms !important;
	}
	.bghf-hero__rv { opacity: 1; transform: none; }
	.bghf-hero__mark::after { transform: scaleX(1); }
	.bghf-hero__slide.is-on { transform: scale(1.06); }
}

.bghf-hero__phonetext span,
.bghf-hero__phonetext strong { display: block; }
