﻿/**
 * Free Book page + shared GHL embed chrome (matches Contact / LandFlip brand).
 */

/* -------------------------------------------------------------------------
 * Shared GHL iframe shell
 * ------------------------------------------------------------------------- */

.ls-ghl-form {
	position: relative;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}

.ls-ghl-form iframe {
	display: block;
	width: 100% !important;
	max-width: 100%;
	border: 0 !important;
	border-radius: 10px;
	background: transparent;
}

.ls-ghl-shell {
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

/* Sidebar / map / footer variants */
.ls-ghl-form--sidebar,
.ls-ghl-form--footer {
	border: 1px solid rgba(26, 48, 31, 0.1);
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(26, 48, 31, 0.06);
	background: #fff;
}

.ls-ghl-form--map {
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: #fff;
}

.ls-listings-sidebar__widget--vip .ls-ghl-form--sidebar {
	border-radius: 12px;
	box-shadow: none;
	border-color: rgba(26, 48, 31, 0.12);
}

.ls-site-footer__alerts-stack .ls-ghl-form--footer {
	border-radius: 8px;
	box-shadow: none;
	background: transparent;
	min-height: 0;
}

.es-properties.ls-landflip-split .ls-hfm-map-filler--subscribe {
	margin-top: 12px;
	padding: 0;
	min-height: 0;
	overflow: visible;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.es-properties.ls-landflip-split .ls-hfm-map-filler--subscribe .ls-ghl-form--map {
	min-height: 420px;
}

/* -------------------------------------------------------------------------
 * Free Book page
 * ------------------------------------------------------------------------- */

body.ls-free-book-page,
body.page-id-free-book {
	background: var(--ls-brand-bg, #f5f7f4);
}

body.ls-free-book-page .wp-block-post-title,
body.page-id-free-book .wp-block-post-title {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

body.ls-free-book-page .entry-content > .wp-block-spacer,
body.ls-free-book-page .sharedaddy,
body.ls-free-book-page .sd-sharing-enabled {
	display: none !important;
}

.ls-book-page {
	--ls-book-max: 1120px;
	max-width: var(--ls-book-max);
	margin: 0 auto;
	padding: 0 clamp(1.25rem, 4vw, 2rem) 4rem;
	color: #1a301f;
	font-family: var(--ls-brand-font, "Source Sans 3", sans-serif);
}

.ls-book-page__hero {
	position: relative;
	padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
	text-align: center;
	overflow: hidden;
}

.ls-book-page__hero::before {
	content: "";
	position: absolute;
	inset: -10% -5% auto;
	height: 120%;
	background: radial-gradient(ellipse 70% 55% at 50% 35%, rgba(201, 168, 76, 0.14) 0%, transparent 70%);
	pointer-events: none;
	animation: ls-book-glow 8s ease-in-out infinite alternate;
}

@keyframes ls-book-glow {
	from { opacity: 0.65; }
	to { opacity: 1; }
}

@keyframes ls-book-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: translateY(0); }
}

.ls-book-page__brand {
	position: relative;
	margin: 0 0 0.65rem;
	font-family: var(--ls-brand-font-serif, "Lora", Georgia, serif);
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	font-weight: 700;
	line-height: 1.15;
	color: #1a301f !important;
	letter-spacing: -0.01em;
	animation: ls-book-rise 0.7s ease-out both;
}

.ls-book-page__eyebrow {
	position: relative;
	margin: 0 0 0.55rem;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #8a6e28;
	animation: ls-book-rise 0.7s ease-out 0.06s both;
}

.ls-book-page__title {
	position: relative;
	margin: 0 0 0.85rem;
	font-family: var(--ls-brand-font, "Source Sans 3", sans-serif);
	font-size: clamp(1.15rem, 2.4vw, 1.45rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #1a301f !important;
	animation: ls-book-rise 0.7s ease-out 0.1s both;
}

.ls-book-page__lede {
	position: relative;
	margin: 0 auto;
	max-width: 36rem;
	font-size: 1.05rem;
	line-height: 1.55;
	color: #5a6b60;
	animation: ls-book-rise 0.7s ease-out 0.16s both;
}

.ls-book-page__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
	gap: clamp(1.5rem, 4vw, 2.75rem);
	align-items: start;
	animation: ls-book-rise 0.75s ease-out 0.22s both;
}

.ls-book-page__aside {
	padding: 0.25rem 0 0;
}

.ls-book-page__cover {
	margin: 0 0 1.35rem;
	padding: 0;
}

.ls-book-page__cover img {
	display: block;
	width: 100%;
	max-width: 320px;
	height: auto;
	margin: 0 auto;
	border-radius: 10px;
	box-shadow:
		0 18px 40px rgba(26, 48, 31, 0.18),
		0 2px 0 rgba(201, 168, 76, 0.35);
	transform: rotate(-1.5deg);
	transition: transform 0.35s ease;
}

.ls-book-page__cover:hover img {
	transform: rotate(0deg) translateY(-4px);
}

.ls-book-page__points {
	margin: 0 0 1.25rem;
	padding: 0 0 0 1.15rem;
	list-style: disc;
	color: #5a6b60;
	font-size: 0.98rem;
	line-height: 1.65;
}

.ls-book-page__points li {
	margin: 0 0 0.45rem;
	padding-left: 0.15rem;
}

.ls-book-page__points li::marker {
	color: var(--ls-chrome-accent, #c9a84c);
}

.ls-book-page__browse {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	font-weight: 700;
	font-size: 0.95rem;
	color: #8a6e28 !important;
	text-decoration: none !important;
	border-bottom: 1px solid transparent;
	transition: border-color 0.2s ease, gap 0.2s ease, color 0.2s ease;
}

.ls-book-page__browse:hover {
	border-bottom-color: #8a6e28;
	gap: 0.65rem;
	color: #1a301f !important;
}

.ls-book-page__form-panel {
	background: #fff;
	border: 1px solid rgba(26, 48, 31, 0.12);
	border-radius: 14px;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	box-shadow: 0 8px 28px rgba(26, 48, 31, 0.08);
}

.ls-book-page__form-title {
	margin: 0 0 0.4rem;
	font-family: var(--ls-brand-font-serif, "Lora", Georgia, serif);
	font-size: 1.45rem;
	font-weight: 700;
	color: #1a301f;
}

.ls-book-page__form-lede {
	margin: 0 0 1.15rem;
	font-size: 0.95rem;
	line-height: 1.5;
	color: #5a6b60;
}

.ls-book-page__form {
	width: 100%;
}

.ls-book-page__form .ls-ghl-form {
	border: 0;
	box-shadow: none;
	border-radius: 8px;
	min-height: 920px;
	overflow: hidden;
}

.ls-book-page__form .ls-ghl-form iframe {
	height: 920px !important;
	min-height: 920px;
}

@media (max-width: 900px) {
	.ls-book-page__layout {
		grid-template-columns: 1fr;
	}

	.ls-book-page__aside {
		order: 2;
		text-align: center;
	}

	.ls-book-page__points {
		display: inline-block;
		text-align: left;
		margin-left: auto;
		margin-right: auto;
	}

	.ls-book-page__form-panel {
		order: 1;
	}

	.ls-book-page__cover img {
		max-width: 240px;
		transform: none;
	}
}

@media (max-width: 560px) {
	.ls-book-page {
		padding-bottom: 3rem;
	}

	.ls-book-page__form-panel {
		padding: 1rem;
		border-radius: 12px;
	}

	.ls-book-page__form .ls-ghl-form {
		min-height: 760px;
	}

	.ls-book-page__form .ls-ghl-form iframe {
		height: 760px !important;
		min-height: 760px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ls-book-page__hero::before,
	.ls-book-page__brand,
	.ls-book-page__eyebrow,
	.ls-book-page__title,
	.ls-book-page__lede,
	.ls-book-page__layout,
	.ls-book-page__cover img {
		animation: none !important;
		transition: none !important;
	}
}


