/*
Theme Name: B On The Sea
Description: Native WordPress block theme foundation for B On The Sea, Anguilla.
Version: 0.1.0
Requires at least: 6.6
Text Domain: b-by-the-sea
*/

/* Global design tokens remain in theme.json. These rules style only this phase. */
.bbs-header,
.bbs-home-intro {
	--bbs-edge: clamp(1.25rem, 12vw, 10.75rem);
	--bbs-navy: var(--wp--preset--color--deep-navy);
	--bbs-white: var(--wp--preset--color--white);
}

.bbs-header *,
.bbs-home-intro * {
	box-sizing: border-box;
}

.bbs-header {
	position: relative;
	z-index: 10;
	background: var(--bbs-white);
	color: var(--bbs-navy);
}

.bbs-header .bbs-header-inner,
.bbs-home-intro .bbs-facts-grid {
	width: min(calc(100% - 2 * var(--bbs-edge)), var(--wp--style--global--wide-size, 80rem));
	max-width: none;
	margin-inline: auto;
}

.bbs-header .bbs-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1rem, 2vw, 2rem);
	padding-block: 1rem;
}

.bbs-header .wp-block-site-logo {
	flex: 0 0 auto;
	line-height: 0;
}

.bbs-header .wp-block-site-logo img {
	width: auto;
	max-width: 6.5rem;
	height: auto;
	max-height: 4.25rem;
	object-fit: contain;
}

.bbs-header .bbs-navigation {
	flex: 1 1 auto;
	min-width: 0;
	font-size: clamp(0.75rem, 0.95vw, 0.9375rem);
}

.bbs-navigation .wp-block-navigation__container {
	gap: clamp(1rem, 2.5vw, 2.5rem);
}

.bbs-navigation .wp-block-navigation-item__content {
	color: inherit;
	text-decoration: none;
	white-space: nowrap;
}

.bbs-navigation .wp-block-navigation-item__content:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.bbs-navigation .wp-block-navigation__responsive-container.is-menu-open {
	background: var(--bbs-white);
	color: var(--bbs-navy);
	padding: clamp(1.5rem, 5vw, 3rem);
}

.bbs-navigation .is-menu-open .wp-block-navigation__container {
	align-items: flex-start;
	gap: 1.5rem;
	font-size: 1.125rem;
}

.bbs-navigation .is-menu-open .wp-block-navigation-item__content {
	white-space: normal;
}

.bbs-header .bbs-header-cta {
	flex: 0 0 auto;
	margin-block: 0;
}

.bbs-header-cta .wp-block-button__link,
.bbs-hero-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.75rem 1.75rem;
	border-radius: 0.125rem;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

/* Overlay only the homepage header when the approved introduction is present. */
.home .wp-site-blocks:has(.bbs-home-hero) {
	position: relative;
}

.home .wp-site-blocks:has(.bbs-home-hero) > header:has(.bbs-header) {
	position: absolute;
	inset: 0 0 auto;
	z-index: 20;
}

.home .wp-site-blocks:has(.bbs-home-hero) > main {
	margin-block-start: 0;
}

.home .wp-site-blocks:has(.bbs-home-hero) .bbs-header {
	background: transparent;
	color: var(--bbs-white);
}

.bbs-header a:focus-visible,
.bbs-navigation button:focus-visible,
.bbs-home-hero a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.bbs-header-cta .wp-block-button__link:focus-visible {
	outline-color: var(--bbs-navy);
}

.home .wp-site-blocks:has(.bbs-home-hero) .bbs-header-cta .wp-block-button__link:focus-visible,
.bbs-home-hero .bbs-hero-cta .wp-block-button__link:focus-visible {
	outline-color: var(--bbs-white);
}

/* Locked static hero. Home's Featured Image remains the only photo source. */
.bbs-home-intro .bbs-home-hero {
	--bbs-hero-paper: color-mix(in srgb, var(--wp--preset--color--warm-gold) 8%, var(--bbs-white));
	position: relative;
	margin: 0;
	padding: 0;
	background: var(--bbs-white);
	color: var(--bbs-navy);
}

.bbs-home-hero .bbs-hero-media {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: clamp(28rem, 43vw, 42rem);
	margin: 0;
	background: var(--bbs-navy);
}

.bbs-home-hero .bbs-hero-image {
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
}

.bbs-home-hero .bbs-hero-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 0% 60%;
	/* Explicitly approved desktop crop; no stretch or aspect-ratio distortion. */
	transform: scale(1.22);
	transform-origin: left center;
}

/* Preserve the shallow scrim supporting the unchanged transparent header. */
.bbs-home-hero::before {
	position: absolute;
	inset: 0 0 auto;
	z-index: 1;
	height: 7rem;
	background: linear-gradient(180deg, rgba(24, 47, 92, 0.45) 0%, rgba(24, 47, 92, 0.45) 60%, rgba(24, 47, 92, 0) 100%);
	content: "";
	pointer-events: none;
}

@media (min-width: 80rem) {
	.bbs-home-hero::before {
		background: linear-gradient(180deg, rgba(24,47,92,0.64) 0%, rgba(24,47,92,0.64) 60%, rgba(24,47,92,0) 100%);
	}
}

.bbs-home-hero .bbs-hero-panel {
	display: grid;
	grid-template-columns: max-content minmax(0, 1fr) max-content;
	align-items: center;
	gap: 1rem;
	position: absolute;
	z-index: 2;
	inset-inline-start: 6%;
	bottom: 2rem;
	width: 88%;
	max-width: none;
	margin: 0;
	padding: 20px 32px;
	background: var(--bbs-hero-paper);
	border: 0;
	border-radius: 0;
	box-shadow: 0 3px 12px rgba(24, 47, 92, 0.06);
	text-align: left;
}

.bbs-home-hero .bbs-hero-title {
	position: relative;
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(2rem, 2.7vw, 2.5rem);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.025em;
}

.bbs-home-hero .bbs-hero-title::after {
	position: absolute;
	inset-inline-end: -0.5rem;
	top: 50%;
	height: 2.625rem;
	border-inline-end: 1px solid #BF9155;
	transform: translateY(-50%);
	content: "";
}

.bbs-home-hero .bbs-hero-description {
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	line-height: 1.55;
	text-wrap: pretty;
}
/* Keep the owner's sentence break on desktop only; allow natural wrapping
 * on narrow tablets and phones where a forced break would waste space. */
.bbs-home-hero .bbs-hero-desktop-break {
	display: none;
}

.bbs-home-hero .bbs-hero-actions { justify-self: end; margin: 0; }

.bbs-home-hero .bbs-hero-cta .wp-block-button__link {
	padding-inline: 1.25rem;
	font-family: var(--wp--preset--font-family--body);
	background: var(--bbs-navy);
	color: var(--bbs-white);
}

.bbs-home-hero .bbs-hero-cta .wp-block-button__link:focus-visible {
	outline-color: var(--bbs-navy);
}

/* Precise desktop hero alignment. The title's 32px end padding matches
 * the panel's 32px left inset, centering its text between the cream bar's
 * outer left edge and the gold divider. With zero grid gap, the paragraph
 * occupies the exact span from divider to button; symmetric inner padding
 * keeps its text centered between those visible boundaries. */
@media (min-width: 64.001rem) {
	.bbs-home-hero .bbs-hero-panel {
		column-gap: 0;
	}
	.bbs-home-hero .bbs-hero-title {
		box-sizing: border-box;
		margin-inline-end: 0;
		padding-inline: 0 32px;
		text-align: center;
		white-space: nowrap;
		/* Newsreader's visible letterforms sit above the line box center. */
		transform: translateY(5px);
	}
	.bbs-home-hero .bbs-hero-title::after {
		inset-inline-end: 0;
		/* Cancel the title's optical adjustment to keep the divider centered. */
		top: calc(50% - 5px);
	}
	.bbs-home-hero .bbs-hero-description {
		box-sizing: border-box;
		padding-inline: 32px;
		text-align: center;
	}
}

@media (width >= 64rem) {
	.bbs-home-hero .bbs-hero-description { white-space: nowrap; }
	.bbs-home-hero .bbs-hero-desktop-break { display: inline; }
}

@media (width > 64rem) {
	.bbs-home-hero .bbs-hero-description { container-type: inline-size; }
	/* The longer sentence takes up about 43em at the approved body font. */
	.bbs-home-hero .bbs-hero-description-copy { font-size: min(1rem, 2.3cqi); }
}

@media (width <= 64rem) {
	.bbs-home-hero .bbs-hero-panel {
		display: block;
		inset-inline-start: 5%;
		bottom: 1rem;
		width: 90%;
		min-height: 0;
		padding: 16px 20px;
		text-align: center;
	}
	.bbs-home-hero .bbs-hero-title { font-size: 30px; line-height: 1.05; }
	.bbs-home-hero .bbs-hero-title::after { content: none; }
	.bbs-home-hero .bbs-hero-description { margin-block-start: 6px; font-size: 14px; line-height: 1.35; }
	.bbs-home-hero .bbs-hero-actions { justify-self: stretch; justify-content: center; width: 100%; margin-block-start: 10px; }
	.bbs-home-hero .bbs-hero-cta .wp-block-button__link { min-height: 40px; padding: 10px 20px; font-size: 12px; }
}

@media (max-width: 48rem) {
	.bbs-home-hero .bbs-hero-media { height: clamp(27rem, 112vw, 30rem); }
	.bbs-home-hero .bbs-hero-image img { object-position: 0% 38%; transform: none; }
	.bbs-home-hero .bbs-hero-panel {
		position: relative;
		inset: auto;
		width: min(90%, calc(100% - 40px));
		margin: -24px auto 0;
		padding: 12px 18px;
	}
	.bbs-home-hero .bbs-hero-title { font-size: 28px; }
}

@media (max-width: 30rem) {
	.bbs-home-hero .bbs-hero-image img { object-position: 31% 38%; }
}

@media (max-width: 22rem) {
	.bbs-home-hero .bbs-hero-image img { object-position: 34% 38%; }
}

.bbs-home-intro .bbs-property-facts {
	margin-block: 0;
	padding: 1.25rem 0;
	/* Keep the saved White block color while warming only this row. */
	background-color: color-mix(in srgb, var(--wp--preset--color--warm-gold) 4%, var(--bbs-white)) !important;
}

.bbs-property-facts .bbs-facts-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 0;
	margin-block: 0;
}

.bbs-facts-grid .bbs-fact {
	--bbs-fact-circle: 2.75rem;
	--bbs-fact-glyph: 1.75rem;
	--bbs-fact-inset: 1rem;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: clamp(0.75rem, 1.5vw, 1.5rem);
	min-width: 0;
	margin: 0;
	padding-inline: var(--bbs-fact-inset);
}

.bbs-facts-grid .bbs-fact + .bbs-fact {
	border-inline-start: 1px solid color-mix(in srgb, var(--wp--preset--color--warm-gold) 28%, transparent);
}

.bbs-facts-grid .bbs-fact::before {
	flex: 0 0 var(--bbs-fact-circle);
	width: var(--bbs-fact-circle);
	height: var(--bbs-fact-circle);
	border-radius: 50%;
	background: color-mix(in srgb, var(--wp--preset--color--blush-pink) 24%, var(--bbs-white));
	content: "";
}

.bbs-facts-grid .bbs-fact::after {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-start: calc(var(--bbs-fact-inset) + (var(--bbs-fact-circle) - var(--bbs-fact-glyph)) / 2);
	width: var(--bbs-fact-glyph);
	height: var(--bbs-fact-glyph);
	transform: translateY(-50%);
	background: var(--wp--preset--color--warm-gold);
	content: "";
	mask: var(--bbs-fact-icon) center / contain no-repeat;
}

.bbs-fact-bed {
	--bbs-fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4 25V10m24 15V10M4 21h24M4 15h24v6H4zM7 10V7h7v8m4 0V7h7v8' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bbs-fact-pools {
	--bbs-fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M3 8q3-4 6 0t6 0 6 0 8 0M3 16q3-4 6 0t6 0 6 0 8 0M3 24q3-4 6 0t6 0 6 0 8 0' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.bbs-fact-views {
	--bbs-fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M2 26 11 9l5 9 6-13 8 21H2Zm6-9 3 2 3-4m5-3 3 3 3-2' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.bbs-fact-location {
	--bbs-fact-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M26 12c0 8-10 17-10 17S6 20 6 12a10 10 0 0 1 20 0Z' fill='none' stroke='black' stroke-width='2'/%3E%3Ccircle cx='16' cy='12' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E");
}

.bbs-fact-copy p {
	margin: 0;
	line-height: 1.35;
}

.bbs-fact-copy .bbs-fact-label {
	color: var(--bbs-navy);
	font-size: 1rem;
}

.bbs-fact-copy .bbs-fact-detail {
	margin-block-start: 0.125rem;
	color: color-mix(in srgb, var(--bbs-navy) 72%, var(--bbs-white));
	font-size: 0.8125rem;
}

/* Use the native Navigation dialog at the width the full menu stops fitting. */
@media (max-width: 68.75rem) {
	.bbs-header,
	.bbs-home-intro {
		--bbs-edge: clamp(1.25rem, 6vw, 4rem);
	}

	.bbs-header .bbs-navigation {
		justify-content: flex-end;
	}

	.bbs-header .bbs-navigation .wp-block-navigation__responsive-container:not(.is-menu-open) {
		display: none;
	}

	.bbs-header .bbs-navigation .wp-block-navigation__responsive-container-open {
		display: flex;
	}
}

@media (max-width: 64rem) {
	.bbs-property-facts .bbs-facts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		row-gap: 1.5rem;
	}

	.bbs-facts-grid .bbs-fact {
		--bbs-fact-inset: 1.25rem;
		justify-content: flex-start;
	}

	.bbs-facts-grid .bbs-fact:nth-child(3) {
		border-inline-start: 0;
	}
}

@media (max-width: 37.5rem) {
	.bbs-header .bbs-header-inner {
		gap: 0.75rem;
		padding-block: 0.75rem;
	}

	.bbs-header .wp-block-site-logo img {
		max-width: 4rem;
		max-height: 3.5rem;
	}

	.bbs-header-cta .wp-block-button__link {
		padding-inline: 1rem;
		font-size: 0.75rem;
	}

	.bbs-facts-grid .bbs-fact {
		--bbs-fact-circle: 2rem;
		--bbs-fact-glyph: 1.25rem;
		--bbs-fact-inset: 0.5rem;
		gap: 0.5rem;
	}

	.bbs-fact-copy .bbs-fact-label {
		font-size: 0.875rem;
	}

	.bbs-fact-copy .bbs-fact-detail {
		font-size: 0.75rem;
	}
}

@media (max-width: 23.75rem) {
	.bbs-property-facts .bbs-facts-grid {
		grid-template-columns: minmax(0, 1fr);
		row-gap: 1rem;
	}

	.bbs-facts-grid .bbs-fact + .bbs-fact {
		border-inline-start: 0;
	}
}

/* Mirrored Life and Local Connection sections share one presentation system. */
.bbs-home-week.wp-block-group,
.bbs-home-local.wp-block-group {
	margin-block: 0;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--deep-navy);
}

.bbs-home-week *,
.bbs-home-local * {
	box-sizing: border-box;
}

.bbs-home-week .bbs-week-layout,
.bbs-home-local .bbs-local-layout {
	align-items: stretch;
	gap: 0;
	margin: 0;
}

.bbs-home-week .bbs-week-copy,
.bbs-home-local .bbs-local-copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0;
	min-width: 0;
	padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.bbs-home-week .bbs-week-copy > *,
.bbs-home-local .bbs-local-copy > * {
	width: 100%;
	max-width: 30rem;
	margin: 0;
}

.bbs-home-week .bbs-week-title + p,
.bbs-home-local .bbs-local-title + p {
	margin-block-start: 0.875rem;
}

.bbs-home-week .bbs-week-copy p + p,
.bbs-home-local .bbs-local-copy p + p {
	margin-block-start: 0.625rem;
}

.bbs-home-week .bbs-week-title,
.bbs-home-local .bbs-local-title {
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.025em;
}

.bbs-home-week .bbs-week-copy p,
.bbs-home-local .bbs-local-copy p {
	font-size: 1rem;
	line-height: 1.35;
	text-wrap: pretty;
}

.bbs-home-week .bbs-week-media,
.bbs-home-local .bbs-local-media {
	position: relative;
	min-width: 0;
	min-height: clamp(18.5rem, 22.9vw, 24rem);
}

.bbs-home-week .bbs-week-photo,
.bbs-home-local .bbs-local-photo {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
}

.bbs-home-week .bbs-week-photo img,
.bbs-home-local .bbs-local-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.bbs-home-week .bbs-week-photo img {
	object-position: 35% 70%;
}

@media (width > 48rem) {
	.bbs-home-week .bbs-week-photo img {
		object-position: 35% 100%;
	}
}

@media (min-width: 80rem) {
	.bbs-home-week .bbs-week-copy {
		padding-inline: clamp(1.25rem, 8.5vw, 7.75rem) clamp(1.25rem, 4vw, 3.75rem);
	}

	.bbs-home-local .bbs-local-copy {
		padding-inline: clamp(1.25rem, 4vw, 3.75rem) clamp(1.25rem, 8.5vw, 7.75rem);
	}
}

@media (max-width: 48rem) {
	.bbs-home-week .bbs-week-layout {
		flex-direction: column;
	}

	.bbs-home-week .bbs-week-layout > .wp-block-column,
	.bbs-home-local .bbs-local-layout > .wp-block-column {
		flex-basis: auto !important;
		width: 100%;
	}

	.bbs-home-week .bbs-week-copy,
	.bbs-home-local .bbs-local-copy {
		padding: 1.25rem clamp(1.25rem, 6vw, 3rem);
	}

	.bbs-home-week .bbs-week-media,
	.bbs-home-local .bbs-local-media {
		min-height: 0;
		aspect-ratio: 16 / 10;
	}
}

/* Photography-led Meet section. Content stays in Home metadata. */
.bbs-home-meet.wp-block-group {
	margin-block: 0;
	padding-block: clamp(1.5rem, 3vw, 2.5rem);
}

.bbs-home-meet .bbs-meet-shell {
	width: min(calc(100% - 2 * clamp(1.25rem, 6vw, 3.75rem)), var(--wp--style--global--wide-size, 80rem));
	max-width: none;
	margin-inline: auto;
}

.bbs-home-meet .bbs-meet-title {
	margin: 0;
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 400;
	line-height: 1.1;
	letter-spacing: -0.025em;
	text-align: center;
}

.bbs-home-meet .bbs-meet-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
	margin-block: 1.25rem 0;
}

.bbs-home-meet .bbs-meet-card {
	min-width: 0;
	margin: 0;
	text-align: center;
}

.bbs-home-meet .bbs-meet-photo {
	margin: 0;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.bbs-home-meet .bbs-meet-photo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 50%;
}

.bbs-home-meet .bbs-meet-card-title {
	margin: 0.625rem 0 0.375rem;
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
}

.bbs-home-meet .bbs-meet-card-copy {
	max-width: 20rem;
	margin: 0 auto;
	font-size: 0.875rem;
	line-height: 1.5;
	text-wrap: pretty;
}

.bbs-home-meet .bbs-meet-actions {
	justify-content: center;
	margin-block: 1.25rem 0;
}

.bbs-home-meet .bbs-meet-cta .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	min-height: 2.75rem;
	padding: 0.75rem 1.75rem;
	border: 1px solid var(--wp--preset--color--deep-navy);
	border-radius: 0.125rem;
	background: transparent;
	color: var(--wp--preset--color--deep-navy);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
}

.bbs-home-meet .bbs-meet-cta .wp-block-button__link:hover {
	background: var(--wp--preset--color--deep-navy);
	color: var(--wp--preset--color--white);
}

.bbs-home-meet .bbs-meet-cta .wp-block-button__link::after {
	flex: 0 0 1rem;
	width: 1rem;
	height: 1rem;
	background: currentColor;
	content: "";
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12h15m-5-5 5 5-5 5' fill='none' stroke='black' stroke-width='1.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (max-width: 68.75rem) {
	.bbs-home-meet .bbs-meet-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 37.5rem) {
	.bbs-home-meet .bbs-meet-grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Local Connection mirrors Life while keeping text first in document order. */
.bbs-home-local .bbs-local-layout {
	display: grid;
	grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
	grid-template-areas: "media copy";
	width: 100%;
	max-width: none;
}

.bbs-home-local .bbs-local-copy {
	grid-area: copy;
}

.bbs-home-local .bbs-local-note {
	font-style: italic;
}

.bbs-home-local .bbs-local-media {
	grid-area: media;
}

@media (max-width: 48rem) {
	.bbs-home-local .bbs-local-layout {
		grid-template-columns: minmax(0, 1fr);
		grid-template-areas: "copy" "media";
	}
}

/* Light review cards keep the beach visible and the social proof compact. */
.bbs-home-reviews.wp-block-group {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-block: 0;
	padding-block: 3.5rem;
}

.bbs-home-local + .bbs-home-reviews.wp-block-group {
	margin-block-start: 1.5rem;
}

.bbs-home-reviews .bbs-reviews-background {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	pointer-events: none;
}

.bbs-home-reviews .bbs-reviews-background img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 30%;
}

.bbs-home-reviews::before {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(254, 254, 254, 0.06);
	content: "";
}

.bbs-home-reviews .bbs-reviews-shell {
	width: min(calc(100% - 2 * clamp(1.25rem, 4vw, 4rem)), var(--wp--style--global--wide-size, 80rem));
	max-width: none;
	margin: 0 auto;
}

.bbs-home-reviews .bbs-reviews-title {
	margin: 0;
	color: var(--wp--preset--color--deep-navy);
	font-size: clamp(2rem, 3vw, 3rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-align: center;
}

.bbs-home-reviews .bbs-reviews-scoreline {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: center;
	gap: 0.25rem 0.5rem;
	margin: 0.375rem 0 0;
}

.bbs-home-reviews .bbs-reviews-rating {
	margin: 0;
	color: color-mix(in srgb, var(--wp--preset--color--warm-gold) 65%, var(--wp--preset--color--white));
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.625rem, 2.4vw, 2rem);
	font-weight: 400;
	line-height: 1;
	text-shadow: 1px 2px 1px rgba(24, 47, 92, 0.95), 2px 4px 5px rgba(24, 47, 92, 0.75);
}

.bbs-home-reviews .bbs-reviews-attribution {
	margin: 0;
	color: var(--wp--preset--color--deep-navy);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.2;
}

.bbs-home-reviews .bbs-reviews-intro::after {
	display: block;
	width: 2rem;
	height: 1px;
	margin: 0.625rem auto 0;
	background: var(--wp--preset--color--warm-gold);
	content: "";
}

.bbs-home-reviews .bbs-review-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	margin: 1.75rem 0 0;
}

.bbs-home-reviews .bbs-review-card {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
	margin: 0;
	padding: 1.25rem clamp(1rem, 1.75vw, 1.5rem);
	border: 1px solid rgba(191, 145, 85, 0.16);
	border-radius: 0.375rem;
	background: rgba(252, 248, 242, 0.96);
	color: var(--wp--preset--color--deep-navy);
}

.bbs-home-reviews .bbs-review-card:nth-child(even) {
	background: rgba(251, 244, 241, 0.96);
}

.bbs-home-reviews .bbs-review-quote {
	position: relative;
	margin: 0;
	padding: 1.875rem 0 0;
	border: 0;
	color: inherit;
}

.bbs-home-reviews .bbs-review-quote::before {
	position: absolute;
	inset-block-start: 0;
	inset-inline-start: 0;
	width: 1.75rem;
	height: 1.5rem;
	background: var(--wp--preset--color--warm-gold);
	content: "";
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 28'%3E%3Cpath d='M13 1C5 3 1 9 1 17c0 6 3 10 8 10 4 0 7-3 7-7s-3-7-7-7H7c1-5 3-8 7-10L13 1Zm17 0c-8 2-12 8-12 16 0 6 3 10 8 10 4 0 7-3 7-7s-3-7-7-7h-2c1-5 3-8 7-10L30 1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bbs-home-reviews .bbs-review-excerpt {
	margin: 0;
	font-size: 1rem;
	font-style: normal;
	line-height: 1.45;
	text-wrap: pretty;
}

.bbs-home-reviews .bbs-review-credit {
	margin-block-start: auto;
}

.bbs-home-reviews .bbs-review-credit::before {
	display: block;
	width: 2.25rem;
	height: 1px;
	margin-block-end: 0.75rem;
	background: var(--wp--preset--color--warm-gold);
	content: "";
}

.bbs-home-reviews .bbs-review-guest {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.2;
}

.bbs-home-reviews .bbs-review-stay {
	margin: 0.25rem 0 0;
	color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 72%, var(--wp--preset--color--white));
	font-size: 0.8125rem;
	line-height: 1.4;
}

@media (max-width: 68.75rem) {
	.bbs-home-reviews.wp-block-group {
		padding-block: 2.5rem;
	}

	.bbs-home-local + .bbs-home-reviews.wp-block-group {
		margin-block-start: 1.25rem;
	}

	.bbs-home-reviews .bbs-review-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 37.5rem) {
	.bbs-home-reviews.wp-block-group {
		padding-block: 2rem;
	}

	.bbs-home-local + .bbs-home-reviews.wp-block-group {
		margin-block-start: 1rem;
	}

	.bbs-home-reviews .bbs-reviews-shell {
		width: calc(100% - 2.5rem);
	}

	.bbs-home-reviews .bbs-review-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.75rem;
		margin-block-start: 1.5rem;
	}

	.bbs-home-reviews .bbs-review-card {
		gap: 0.625rem;
		padding: 1rem;
	}

	.bbs-home-reviews .bbs-review-quote {
		padding: 0 0 0 1.75rem;
	}

	.bbs-home-reviews .bbs-review-quote::before {
		width: 1.25rem;
		height: 1.125rem;
	}

	.bbs-home-reviews .bbs-review-credit {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		align-items: baseline;
		gap: 0.25rem 0.5rem;
	}

	.bbs-home-reviews .bbs-review-credit::before {
		grid-column: 1 / -1;
		margin-block-end: 0.25rem;
	}

	.bbs-home-reviews .bbs-review-stay {
		margin: 0;
	}
}

/* Inquiry presentation is shared by the real form slot and read-only editor preview. */
.bbs-home-inquiry.wp-block-group {
	margin-block: 0;
	padding-block: clamp(2.5rem, 4.5vw, 4rem);
}

.bbs-home-inquiry *,
.bbs-inquiry-form * {
	box-sizing: border-box;
}

.bbs-home-inquiry .bbs-inquiry-shell {
	width: min(calc(100% - 2 * clamp(1.25rem, 6vw, 3.75rem)), 48rem);
	max-width: none;
	margin: 0 auto;
}

.bbs-home-inquiry .bbs-inquiry-title {
	margin: 0;
	font-size: clamp(2rem, 3.5vw, 3.25rem);
	font-weight: 400;
	line-height: 1.05;
	letter-spacing: -0.025em;
	text-align: center;
}

.bbs-home-inquiry .bbs-inquiry-intro {
	max-width: 42rem;
	margin: 1rem auto 0;
	font-size: 1rem;
	line-height: 1.5;
	text-align: center;
	text-wrap: pretty;
}

.bbs-home-inquiry .bbs-inquiry-availability-note {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: center;
}

.bbs-inquiry-form-slot:empty {
	display: none;
}

.bbs-inquiry-form-slot:not(:empty) {
	margin-block-start: 2rem;
}

.bbs-inquiry-form {
	color: var(--wp--preset--color--deep-navy);
	font-family: var(--wp--preset--font-family--body);
}

.bbs-inquiry-form :is(.bbs-inquiry-fields, nf-fields-wrap) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.125rem 1.5rem;
}

.bbs-inquiry-form :is(.nf-form-content, .nf-field-container) {
	max-width: none;
	margin: 0;
	padding: 0;
}

.bbs-inquiry-form :is(.bbs-inquiry-field, nf-field) {
	min-width: 0;
}

.bbs-inquiry-form :is(.bbs-inquiry-field--no-dates, .bbs-inquiry-field--trip, .bbs-inquiry-field--submit),
.bbs-inquiry-form nf-field:has(.bbs-inquiry-field--no-dates, .bbs-inquiry-field--trip, .bbs-inquiry-field--submit) {
	grid-column: 1 / -1;
}

.bbs-inquiry-form label {
	display: block;
	margin: 0 0 0.5rem;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.4;
}

.bbs-inquiry-form .bbs-inquiry-optional {
	font-weight: 400;
}

.bbs-inquiry-form .bbs-inquiry-field--no-dates label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	margin: 0;
	font-weight: 400;
	cursor: pointer;
}

.bbs-inquiry-form input[type="checkbox"] {
	flex: 0 0 auto;
	width: 1.125rem;
	height: 1.125rem;
	margin: 0;
	accent-color: var(--wp--preset--color--deep-navy);
}

.bbs-inquiry-form .bbs-inquiry-preview-notice {
	margin: 1rem 0 0;
	color: color-mix(in srgb, var(--wp--preset--color--deep-navy) 75%, var(--wp--preset--color--white));
	font-size: 0.8125rem;
	line-height: 1.5;
	text-align: center;
}

.bbs-inquiry-form :is(input[type="date"], input[type="text"], input[type="email"], input[type="tel"], input[type="number"], select, textarea) {
	display: block;
	width: 100%;
	min-width: 0;
	max-width: 100%;
	min-height: 3rem;
	margin: 0;
	padding: 0.75rem;
	border: 1px solid rgba(24, 47, 92, 0.52);
	border-radius: 0.25rem;
	background: var(--wp--preset--color--white);
	color: var(--wp--preset--color--deep-navy);
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
}

.bbs-inquiry-form .bbs-inquiry-field--trip textarea {
	min-height: 8rem;
	resize: vertical;
}

.bbs-inquiry-form .bbs-inquiry-field--submit {
	margin-block-start: 0.5rem;
	text-align: center;
}

.bbs-inquiry-form .bbs-inquiry-field--submit :is(button, input) {
	width: min(100%, 16rem);
	min-height: 3rem;
	padding: 0.875rem 1.5rem;
	border: 1px solid var(--wp--preset--color--deep-navy);
	border-radius: 0.25rem;
	background: var(--wp--preset--color--deep-navy);
	color: var(--wp--preset--color--white);
	font: inherit;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	cursor: pointer;
}

.bbs-inquiry-form :is(input, select, textarea, button):focus-visible {
	outline: 2px solid var(--wp--preset--color--deep-navy);
	outline-offset: 3px;
	box-shadow: 0 0 0 3px rgba(225, 170, 167, 0.35);
}

.bbs-inquiry-form :is(input, select, textarea)[aria-invalid="true"] {
	border: 2px solid var(--wp--preset--color--deep-navy);
}

.bbs-inquiry-form :is(.bbs-inquiry-error, .nf-error-msg) {
	color: var(--wp--preset--color--deep-navy);
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
}

.bbs-inquiry-form :disabled,
.bbs-inquiry-calendar [aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}

.bbs-inquiry-calendar [data-bbs-range="inside"] {
	background: rgba(225, 170, 167, 0.35);
	color: var(--wp--preset--color--deep-navy);
}

.bbs-inquiry-calendar [data-bbs-range="start"],
.bbs-inquiry-calendar [data-bbs-range="end"] {
	background: var(--wp--preset--color--deep-navy);
	color: var(--wp--preset--color--white);
}

@media (max-width: 37.5rem) {
	.bbs-inquiry-form :is(.bbs-inquiry-fields, nf-fields-wrap) {
		grid-template-columns: minmax(0, 1fr);
	}

	.bbs-inquiry-form .bbs-inquiry-field--submit :is(button, input) {
		width: 100%;
	}
}


/*
 * Tablet Home hero: keep most of the villa photograph visible. The stacked
 * title/description/CTA used at tablet widths must not occupy a large strip
 * over the image. Let the panel follow the photo with only a 24px overlap.
 * Existing phone (<=48rem) and desktop (>64rem) hero layouts are unchanged.
 */
@media (min-width: 48.001rem) and (max-width: 64rem) {
	.bbs-home-hero .bbs-hero-panel {
		display: block;
		position: relative;
		inset: auto;
		width: 90%;
		max-width: none;
		margin: -24px auto 0;
		padding: 16px 20px;
		text-align: center;
	}
	.bbs-home-hero .bbs-hero-title {
		font-size: 30px;
		line-height: 1.05;
	}
	.bbs-home-hero .bbs-hero-title::after {
		content: none;
	}
	.bbs-home-hero .bbs-hero-description {
		margin-block-start: 6px;
		font-size: 14px;
		line-height: 1.35;
	}
	.bbs-home-hero .bbs-hero-actions {
		width: 100%;
		justify-content: center;
		margin-block-start: 10px;
	}
	.bbs-home-hero .bbs-hero-cta .wp-block-button__link {
		min-height: 40px;
		padding: 10px 20px;
		font-size: 12px;
	}
}

/*
 * Desktop editorial polish only: use available column space before wrapping,
 * and remove gaps between adjacent full-width homepage sections.
 * Phone and tablet rules above remain unchanged.
 */
@media (min-width: 64.001rem) {
	.bbs-home-week .bbs-week-copy > *,
	.bbs-home-local .bbs-local-copy > * {
		max-width: min(100%, 36rem);
	}
	/* Preserve the existing text-wrap: pretty rules for desktop paragraphs,
	 * preventing avoidable isolated last-line words. */
	.bbs-home-reviews.wp-block-group {
		padding-block: 2.75rem;
	}
	.bbs-home-meet.wp-block-group {
		padding-block: 1.5rem 2rem;
	}
	.bbs-home-inquiry.wp-block-group {
		padding-block: 2.75rem 3rem;
	}
}

/* Site footer: matching the site's light warm-beige panels, with navy text. */
.wp-site-blocks > footer:has(.bbs-site-footer) {
	margin-block-start: 0;
}
.bbs-site-footer.wp-block-group {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin-block: 0;
	padding: 0;
	background: #f8f5f1; /* Same warm beige as the site's Rates and Inquire sections */
	color: var(--wp--preset--color--deep-navy, #182f5c);
	font-family: var(--wp--preset--font-family--body);
}
.bbs-site-footer *,
.bbs-site-footer *::before,
.bbs-site-footer *::after {
	box-sizing: border-box;
}
.bbs-site-footer .bbs-site-footer-inner {
	width: min(calc(100% - 2 * clamp(1.25rem, 6vw, 4rem)), 80rem);
	max-width: none;
	margin-inline: auto;
	padding-block: clamp(2.25rem, 3vw, 3rem) 1.125rem;
}
.bbs-site-footer .bbs-site-footer-main {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
	gap: clamp(2rem, 6vw, 6rem);
	margin: 0;
}
.bbs-site-footer .bbs-site-footer-identity,
.bbs-site-footer .bbs-site-footer-explore {
	min-width: 0;
	margin: 0;
}
.bbs-site-footer .bbs-site-footer-name {
	margin: 0;
	font-family: var(--wp--preset--font-family--heading);
	font-size: clamp(1.75rem, 2.6vw, 2.125rem);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.015em;
}
.bbs-site-footer .bbs-site-footer-tagline {
	margin: 0.3rem 0 0;
	font-size: 0.9375rem;
}
.bbs-site-footer .bbs-site-footer-location {
	margin: 0.875rem 0 0;
	font-size: 0.875rem;
}
.bbs-site-footer .bbs-site-footer-contact {
	margin: 0.35rem 0 0;
	font-size: 0.875rem;
	line-height: 1.55;
}
.bbs-site-footer a {
	color: inherit;
	text-decoration: none;
	text-underline-offset: 0.25em;
}
.bbs-site-footer a:hover {
	text-decoration: underline;
}
.bbs-site-footer a:focus-visible {
	outline: 2px solid var(--wp--preset--color--deep-navy, #182f5c);
	outline-offset: 4px;
}
.bbs-site-footer .bbs-site-footer-links-title {
	margin: 0 0 0.875rem;
	color: #75512d; /* Dark warm-gold accent for legibility on champagne */
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}
.bbs-site-footer .bbs-site-footer-links {
	display: grid;
	gap: 0.625rem;
	margin: 0;
	padding: 0;
	list-style: none;
}
.bbs-site-footer .bbs-site-footer-links li {
	margin: 0;
	padding: 0;
	font-size: 0.875rem;
	line-height: 1.55;
}
.bbs-site-footer .bbs-site-footer-bottom {
	margin-block-start: 2rem;
	padding-block-start: 0.875rem;
	border-top: 1px solid rgba(117, 81, 45, 0.38);
}
.bbs-site-footer .bbs-site-footer-bottom .wp-block-shortcode {
	margin: 0;
}
.bbs-site-footer .bbs-footer-legal-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	flex-wrap: wrap;
	column-gap: 2rem;
	row-gap: 0.5rem;
	color: rgba(24, 47, 92, 0.82);
	font-size: 0.75rem;
	line-height: 1.6;
}
@media (max-width: 42rem) {
	.bbs-site-footer .bbs-site-footer-main {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.75rem;
	}
	.bbs-site-footer .bbs-site-footer-inner {
		padding-block: 2.125rem 1rem;
	}
	.bbs-site-footer .bbs-site-footer-bottom {
		margin-block-start: 1.75rem;
	}
}
