/**
 * Tahoe A-Frame — component styles.
 * Handles the pieces block markup + theme.json can't express on their own:
 * eyebrow labels, hairline spec rows, the hero overlay, the WiFi/house-info
 * accordion polish, and the sticky booking bar.
 */

/* ---- Eyebrow label (ALL-CAPS letter-spaced, the signature Dwell move) ---- */
.eyebrow,
.is-style-eyebrow {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
	margin-bottom: 0.75rem;
}

/* Eyebrow reversed out on dark pine bands. */
.has-pine-background-color .eyebrow,
.has-pine-deep-background-color .eyebrow,
.has-pine-background-color .is-style-eyebrow,
.has-pine-deep-background-color .is-style-eyebrow {
	color: var(--wp--preset--color--gold);
}

/* ---- Hairline rules instead of boxed cards ---- */
.hairline-top { border-top: 1px solid var(--wp--preset--color--hairline); }
.hairline-bottom { border-bottom: 1px solid var(--wp--preset--color--hairline); }

/* ---- Spec sheet row (6 GUESTS · 3 BEDROOMS · ...) ---- */
.spec-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	font-family: var(--wp--preset--font-family--inter);
}
.spec-row .spec-item {
	flex: 1 1 auto;
	text-align: center;
	padding: 1rem 1.25rem;
	border-left: 1px solid var(--wp--preset--color--hairline);
}
.spec-row .spec-item:first-child { border-left: 0; }
.spec-row .spec-item .spec-num {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 2rem;
	line-height: 1;
	display: block;
	margin-bottom: 0.35rem;
}
.spec-row .spec-item .spec-label {
	font-size: 0.7rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}

/* ---- Hero: brighten the shaded-forest photo, keep only a faint dim ---- */
.tahoeaf-hero .wp-block-cover__image-background {
	filter: brightness(1.38) saturate(1.08) contrast(0.97);
}
.tahoeaf-hero .wp-block-cover__background {
	opacity: 1;
	background: linear-gradient( to top, rgba(28, 33, 24, 0.22) 0%, rgba(28, 33, 24, 0.03) 35%, rgba(28, 33, 24, 0) 100% );
}
.tahoeaf-hero .wp-block-cover__inner-container { max-width: 1280px; }
/* Keep the serif headline legible without a heavy overlay. */
.tahoeaf-hero .wp-block-cover__inner-container h1,
.tahoeaf-hero .wp-block-cover__inner-container p,
.tahoeaf-hero .wp-block-cover__inner-container .eyebrow {
	text-shadow: 0 1px 20px rgba(20, 24, 16, 0.55);
}

/* ---- Great room: a second cinematic beat; copy anchored over a bottom gradient ---- */
.tahoeaf-greatroom .wp-block-cover__image-background {
	/* Bright landscape shot of the glass wall — keep the seating + windows centered. */
	object-position: center 48%;
	filter: saturate(1.04) contrast(1.01);
}
.tahoeaf-greatroom .wp-block-cover__background {
	opacity: 1;
	/* The photo is bright, so darken the lower-left corner for legible copy. */
	background:
		linear-gradient( to top, rgba(20, 24, 16, 0.82) 0%, rgba(20, 24, 16, 0.36) 34%, rgba(20, 24, 16, 0) 62% ),
		linear-gradient( to right, rgba(20, 24, 16, 0.4) 0%, rgba(20, 24, 16, 0) 48% );
}
.tahoeaf-greatroom .greatroom-copy h2,
.tahoeaf-greatroom .greatroom-copy p,
.tahoeaf-greatroom .greatroom-copy .eyebrow {
	text-shadow: 0 1px 24px rgba(12, 14, 9, 0.6);
}
.tahoeaf-greatroom .greatroom-copy h2 { margin-bottom: 0; }

/* ---- Native Details block styled as a quiet accordion (WiFi / house info) ---- */
.wp-block-details {
	border-top: 1px solid var(--wp--preset--color--hairline);
	padding: 1.25rem 0;
}
.wp-block-details:last-of-type { border-bottom: 1px solid var(--wp--preset--color--hairline); }
.wp-block-details > summary {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.375rem;
	cursor: pointer;
	list-style: none;
	position: relative;
	padding-right: 2rem;
}
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after {
	content: "+";
	position: absolute;
	right: 0;
	top: 0;
	font-size: 1.5rem;
	color: var(--wp--preset--color--terracotta);
	transition: transform 0.2s ease;
}
.wp-block-details[open] > summary::after { content: "\2013"; }

/* ---- Sticky booking bar (revealed on scroll by theme.js) ---- */
.tahoeaf-booking-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem clamp(1rem, 4vw, 4rem);
	background: var(--wp--preset--color--base);
	border-top: 1px solid var(--wp--preset--color--hairline);
	transform: translateY(110%);
	transition: transform 0.35s ease;
}
.tahoeaf-booking-bar.is-visible { transform: translateY(0); }
.tahoeaf-booking-bar .price {
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.25rem;
}
.tahoeaf-booking-bar .price small {
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--wp--preset--color--muted);
}
.tahoeaf-booking-bar .btn {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--base);
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.9rem 1.5rem;
	white-space: nowrap;
}
.tahoeaf-booking-bar .btn:hover { background: var(--wp--preset--color--pine); }

/* ---- Lead-capture inline form ---- */
.tahoeaf-lead-form {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	max-width: 560px;
}
.tahoeaf-lead-form input[type="email"] {
	flex: 1 1 240px;
	border: 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
	background: transparent;
	padding: 0.85rem 0.25rem;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 1rem;
	color: inherit;
}
.tahoeaf-lead-form input[type="email"]:focus {
	outline: none;
	border-bottom-color: var(--wp--preset--color--terracotta);
}
.has-pine-background-color .tahoeaf-lead-form input[type="email"] {
	border-bottom-color: rgba(255, 255, 255, 0.4);
	color: var(--wp--preset--color--base);
}
.tahoeaf-lead-form button {
	background: var(--wp--preset--color--terracotta);
	color: var(--wp--preset--color--base);
	border: 0;
	font-family: var(--wp--preset--font-family--inter);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	padding: 0.9rem 1.75rem;
	cursor: pointer;
}
.tahoeaf-lead-form button:hover { background: var(--wp--preset--color--pine); }

/* ---- Getting-here drive-times list (details page) ---- */
.getting-there-list { margin: 0; }
.getting-there-list .gt-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1.5rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--wp--preset--color--hairline);
}
.getting-there-list .gt-row:first-child { border-top: 1px solid var(--wp--preset--color--hairline); }
.getting-there-list dt { font-family: var(--wp--preset--font-family--inter); font-size: 0.95rem; }
.getting-there-list dd {
	margin: 0;
	font-family: var(--wp--preset--font-family--newsreader);
	font-size: 1.05rem;
	white-space: nowrap;
}

/* ---- Small niceties ---- */
.tahoeaf-rule {
	width: 48px;
	height: 2px;
	background: var(--wp--preset--color--terracotta);
	border: 0;
	margin: 0 0 1.5rem;
}

@media (max-width: 600px) {
	.spec-row .spec-item { flex-basis: 50%; border-left: 0; border-top: 1px solid var(--wp--preset--color--hairline); }
	.tahoeaf-booking-bar .price small { display: block; }
}
