/**
 * Property landing page styles — aligned with Sunset Hills / Astra design language.
 */

/* Full-width breakout inside Astra (page-builder layout). */
.ast-page-builder-template.single-sh_prop_landing .site-content > .ast-container,
.ast-page-builder-template.single-sh_prop_landing .site-content #primary {
	max-width: 100%;
	width: 100%;
	padding: 0;
	margin: 0;
}

.ast-page-builder-template.single-sh_prop_landing .spl-page {
	width: 100%;
}

.spl-page {
	--spl-primary: #1a1a1a;
	--spl-secondary: #8b7355;
	--spl-accent: #b8975a;
	--spl-gold: #c8a96e;
	--spl-light: #f8f7f4;
	--spl-border: #e5e2dc;
	--spl-text: #444444;
	--spl-container: 1200px;
	--spl-section-pad: 80px;
	--spl-section-pad-tablet: 60px;
	--spl-section-pad-mobile: 48px;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--spl-text);
}

.spl-page .spl-container {
	max-width: var(--spl-container);
	width: 100%;
	margin: 0 auto;
	padding: 0 25px;
}

.spl-page .spl-section {
	padding: var(--spl-section-pad) 0;
}

/* Homepage Latest Properties section (reused Spectra blocks) */
.spl-page .spl-latest-properties {
	padding: 0;
}

.spl-page .spl-latest-properties > .wp-block-uagb-container:first-child,
.spl-page .spl-latest-properties .uagb-block-f03b9823 {
	padding-top: var(--spl-section-pad);
	padding-bottom: 0;
}

.spl-page .spl-latest-properties .uagb-block-b5d4c85f .uagb-infobox-margin-wrapper,
.spl-page .spl-latest-properties .uagb-block-b5d4c85f.uagb-infobox__content-wrap {
	padding-bottom: 40px;
}

.spl-page .spl-latest-properties .wp-block-uagb-container.alignfull {
	width: 100%;
}

.spl-page .spl-latest-properties .uagb-ifb-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--spl-primary);
}

.spl-page .spl-latest-properties .uagb-ifb-desc {
	max-width: 42rem;
	margin: 0.75rem auto 0;
	color: #777;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.spl-page .spl-latest-properties .uagb-block-b5d4c85f,
.spl-page .spl-latest-properties .wp-block-uagb-info-box {
	text-align: center;
}

.spl-page .spl-latest-properties__grid,
.spl-page .spl-latest-properties .uagb-layout-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
	max-width: 95%;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
	padding: 0 25px;
	align-items: stretch;
}

.spl-page .spl-latest-properties__grid > p:empty,
.spl-page .spl-latest-properties .uagb-layout-grid > p:empty {
	display: none;
}

.spl-page .spl-latest-properties__grid > .resales-card-single,
.spl-page .spl-latest-properties__grid > .resh-card-single,
.spl-page .spl-latest-properties .uagb-layout-grid > .resales-card-single,
.spl-page .spl-latest-properties .uagb-layout-grid > .resh-card-single {
	width: 100%;
	min-width: 0;
	height: 100%;
}

.spl-page .spl-latest-properties .uagb-buttons__wrap {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	width: auto;
}

.spl-page .spl-latest-properties .wp-block-uagb-buttons {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 95%;
	margin: 0 auto;
	padding: 0 25px;
	text-align: center;
}

.spl-page .spl-latest-properties .wp-block-uagb-buttons-child {
	width: auto !important;
	max-width: none;
	display: inline-flex;
}

.spl-page .spl-latest-properties .uagb-button__wrapper {
	margin: 20px 0 60px;
}

.spl-page .spl-latest-properties .uagb-buttons-repeater.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border: 1px solid #333;
	background: transparent;
	color: var(--spl-primary);
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.spl-page .spl-latest-properties .uagb-buttons-repeater.wp-block-button__link:hover {
	background: var(--spl-primary);
	border-color: var(--spl-primary);
	color: #fff;
}

.spl-page .spl-latest-properties .uagb-button__link {
	text-decoration: none;
}

.spl-page .spl-latest-properties__header,
.spl-page .spl-latest-properties__actions {
	text-align: center;
}

.spl-page .spl-latest-properties__actions {
	padding-bottom: 3rem;
}

.spl-page .spl-section--alt {
	background: var(--spl-light);
}

.spl-page .spl-section__tag {
	color: var(--spl-secondary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.8125rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.spl-page .spl-section__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 2.25rem);
	line-height: 1.25;
	color: var(--spl-primary);
	margin: 0 0 1.25rem;
	font-weight: 400;
}

.spl-page .spl-section__title::after {
	content: "";
	display: block;
	width: 3.5rem;
	height: 3px;
	margin-top: 1rem;
	background: var(--spl-gold);
}

.spl-page .spl-section__content {
	max-width: 52rem;
}

.spl-page .spl-section__content p {
	font-size: 1rem;
	line-height: 1.7;
	margin: 0 0 1rem;
}

/* Buttons */
.spl-page .spl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 3.125rem;
	padding: 0 1.75rem;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 4px;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.spl-page .spl-btn--primary {
	background: var(--spl-secondary);
	color: #fff;
	border: 2px solid var(--spl-secondary);
}

.spl-page .spl-btn--primary:hover {
	background: var(--spl-accent);
	border-color: var(--spl-accent);
	color: #fff;
}

.spl-page .spl-btn--outline {
	background: transparent;
	color: #fff;
	border: 2px solid rgba(255, 255, 255, 0.85);
}

.spl-page .spl-btn--outline:hover {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

/* Hero — full-bleed background, content in container */
.spl-page .spl-hero {
	position: relative;
	width: 100%;
	min-height: 68vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	text-align: center;
	padding: 5rem 0;
}

.spl-page .spl-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(26, 26, 26, 0.35) 0%, rgba(26, 26, 26, 0.65) 100%);
}

.spl-page .spl-hero__inner {
	position: relative;
	z-index: 1;
}

.spl-page .spl-hero__content {
	max-width: 52rem;
	margin: 0 auto;
}

.spl-page .spl-hero__title {
	font-family: 'Playfair Display', Georgia, serif;
	color: #fff;
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1.12;
	margin: 0 0 1rem;
	font-weight: 400;
}

.spl-page .spl-hero__subtitle {
	color: rgba(255, 255, 255, 0.92);
	font-size: clamp(0.9375rem, 1.8vw, 1.0625rem);
	line-height: 1.65;
	max-width: 42rem;
	margin: 0 auto 1.75rem;
}

.spl-page .spl-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	align-items: stretch;
}

/* Intro — full-bleed background image with centered overlay */
.spl-page .spl-intro--media {
	position: relative;
	padding: 0;
	min-height: min(52vh, 480px);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #fff;
	overflow: hidden;
}

.spl-page .spl-intro__media {
	position: absolute;
	inset: 0;
	background-color: #1a1a1a;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.spl-page .spl-intro__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(26, 26, 26, 0.5) 0%,
		rgba(26, 26, 26, 0.72) 100%
	);
}

.spl-page .spl-intro__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 3.5rem 25px;
	max-width: 52rem;
}

.spl-page .spl-intro__tag {
	color: var(--spl-gold);
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.8125rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.spl-page .spl-intro__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.75rem, 3.5vw, 2.5rem);
	line-height: 1.2;
	color: #fff;
	margin: 0 0 1rem;
	font-weight: 400;
}

.spl-page .spl-intro__content {
	max-width: 42rem;
	margin: 0 auto;
}

.spl-page .spl-intro__content p {
	color: rgba(255, 255, 255, 0.92);
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
}

/* Zigzag */
.spl-page .spl-zigzag__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.spl-page .spl-zigzag__inner--reverse .spl-zigzag__media {
	order: -1;
}

.spl-page .spl-zigzag__image {
	width: 100%;
	height: auto;
	border-radius: 4px;
	display: block;
	object-fit: cover;
	aspect-ratio: 4 / 3;
}

/* Area highlights — image on top, content below */
.spl-page .spl-area-highlight__inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.spl-page .spl-area-highlight__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	aspect-ratio: 21 / 9;
	border-radius: 4px;
}

.spl-page .spl-area-highlight__content {
	width: 100%;
	max-width: 52rem;
	margin: 0 auto;
	text-align: center;
}

.spl-page .spl-area-highlight__content .spl-section__title::after {
	margin-left: auto;
	margin-right: auto;
}

.spl-page .spl-area-highlight__content .spl-section__content {
	max-width: none;
	margin: 0 auto;
}

/* Related searches — dark band, centered chips */
.spl-page .spl-related {
	background: linear-gradient(160deg, #141414 0%, #252018 55%, #1a1714 100%);
	border: none;
	color: #fff;
}

.spl-page .spl-related__inner {
	max-width: 56rem;
	text-align: center;
}

.spl-page .spl-related__header {
	margin: 0 auto;
}

.spl-page .spl-related__tag {
	color: var(--spl-gold);
	text-transform: uppercase;
	letter-spacing: 0.16em;
	font-size: 0.6875rem;
	font-weight: 600;
	margin: 0 0 1rem;
}

.spl-page .spl-related__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.15;
	color: #fff;
	margin: 0 0 1rem;
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.spl-page .spl-related__intro {
	max-width: 36rem;
	margin: 0 auto;
	color: rgba(255, 255, 255, 0.76);
	font-size: 0.9375rem;
	line-height: 1.65;
}

.spl-page .spl-related__intro p {
	margin: 0;
}

.spl-page .spl-related__links {
	list-style: none;
	margin: 2.5rem auto 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.625rem;
	max-width: 52rem;
}

.spl-page .spl-related__pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.625rem;
	padding: 0.5rem 1rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 2px;
	font-size: 0.625rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.92);
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.spl-page .spl-related__pill:hover {
	background: var(--spl-gold);
	border-color: var(--spl-gold);
	color: #1a1a1a;
}

/* Why choose — white zigzag, image left */
.spl-page .spl-why {
	background: #fff;
}

.spl-page .spl-why__tag {
	color: var(--spl-secondary);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.8125rem;
	font-weight: 600;
	margin: 0 0 0.75rem;
}

.spl-page .spl-why__title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: clamp(1.5rem, 2.5vw, 2.125rem);
	line-height: 1.25;
	color: var(--spl-primary);
	margin: 0 0 1.25rem;
	font-weight: 400;
}

.spl-page .spl-why__body {
	max-width: 34rem;
	font-size: 1rem;
	line-height: 1.75;
	color: var(--spl-text);
}

.spl-page .spl-why__body p {
	margin: 0;
}

.spl-page .spl-why__image {
	aspect-ratio: 4 / 5;
	box-shadow: 0 24px 48px rgba(26, 26, 26, 0.12);
}

.spl-page .spl-why .spl-zigzag__inner--reverse .spl-why__media {
	order: -1;
}

/* FAQ */
.spl-page .spl-faq__inner {
	max-width: 52rem;
}

.spl-page .spl-faq__header .spl-section__title {
	font-family: 'Playfair Display', Georgia, serif;
}

.spl-page .spl-faq__list {
	margin-top: 1.75rem;
	display: grid;
	gap: 0.75rem;
}

.spl-page .spl-faq__item {
	border: 1px solid var(--spl-border);
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.spl-page .spl-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1rem 1.25rem;
	cursor: pointer;
	list-style: none;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--spl-primary);
}

.spl-page .spl-faq__question::-webkit-details-marker {
	display: none;
}

.spl-page .spl-faq__icon::before {
	content: "+";
	font-size: 1.25rem;
	color: var(--spl-secondary);
}

.spl-page .spl-faq__item[open] .spl-faq__icon::before {
	content: "−";
}

.spl-page .spl-faq__answer {
	padding: 0 1.25rem 1rem;
	font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 1rem;
	line-height: 1.7;
	color: var(--spl-text);
}

.spl-page .spl-faq__answer p {
	margin: 0;
	font-family: inherit;
	font-size: inherit;
	line-height: inherit;
}

/* Homepage contact CTA (reused Spectra + SureForms section) */
.spl-page .spl-homepage-contact-cta {
	padding: 0;
}

.spl-page .spl-homepage-contact-cta > .wp-block-uagb-container {
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* Contact CTA — match homepage SureForms/Spectra styling; only fix phone CTA height */
.spl-page .spl-homepage-contact-cta .uagb-button__wrapper {
	margin: 0;
}

.spl-page .spl-homepage-contact-cta .uagb-buttons-repeater.wp-block-button__link {
	box-sizing: border-box;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-height: var(--srfm-input-height, 40px) !important;
	height: var(--srfm-input-height, 40px) !important;
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	line-height: 1.2 !important;
}

/* Dropdown + name fields — match other inputs on landing contact form */
.spl-page .spl-homepage-contact-cta select.srfm-dropdown-common,
.spl-page .spl-homepage-contact-cta .srfm-dropdown-common,
.spl-page .spl-homepage-contact-cta .srfm-dropdown-input {
	background-color: var(--srfm-color-input-background, hsl(0 0% 100% / 0.02)) !important;
	color: var(--srfm-color-input-text, #fff) !important;
	border-color: var(--srfm-color-input-border, hsl(0 0% 100% / 0.25)) !important;
	-webkit-appearance: none;
	appearance: none;
}

.spl-page .spl-homepage-contact-cta .srfm-dropdown-placeholder {
	color: var(--srfm-color-input-placeholder, hsl(0 0% 100% / 0.5)) !important;
}

/* Let Spectra/SureForms control form column + field widths (same as homepage). */

/* Tablet: Spectra keeps desktop side margins + 420px infobox offset above 767px */
@media (max-width: 976px) {
	.spl-page .spl-homepage-contact-cta > .wp-block-uagb-container {
		flex-direction: column !important;
		align-items: stretch !important;
		flex-wrap: wrap !important;
		padding-left: 25px !important;
		padding-right: 25px !important;
	}

	.spl-page .spl-homepage-contact-cta > .wp-block-uagb-container > .wp-block-uagb-container {
		width: 100% !important;
		max-width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	.spl-page .spl-homepage-contact-cta > .wp-block-uagb-container > .wp-block-uagb-container:first-child {
		margin-bottom: 2rem !important;
	}

	.spl-page .spl-homepage-contact-cta .uagb-infobox__content-wrap.wp-block-uagb-info-box--has-margin .uagb-infobox-margin-wrapper {
		margin-right: 0 !important;
		margin-left: 0 !important;
	}

	.spl-page .spl-homepage-contact-cta .uagb-ifb-desc {
		max-width: none;
	}

	.spl-page .spl-homepage-contact-cta .uagb-infobox__content-wrap {
		text-align: center;
	}

	.spl-page .spl-homepage-contact-cta .uagb-buttons__wrap {
		justify-content: center !important;
	}
}

/* Responsive */
@media (max-width: 921px) {
	.spl-page .spl-section {
		padding: var(--spl-section-pad-tablet) 0;
	}

	.spl-page .spl-latest-properties > .wp-block-uagb-container:first-child,
	.spl-page .spl-latest-properties .uagb-block-f03b9823 {
		padding-top: var(--spl-section-pad-tablet);
	}

	.spl-page .spl-latest-properties .uagb-block-b5d4c85f .uagb-infobox-margin-wrapper,
	.spl-page .spl-latest-properties .uagb-block-b5d4c85f.uagb-infobox__content-wrap {
		padding-bottom: 25px;
	}

	.spl-page .spl-latest-properties__grid,
	.spl-page .spl-latest-properties .uagb-layout-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.spl-page .spl-zigzag__inner,
	.spl-page .spl-zigzag__inner--reverse {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.spl-page .spl-zigzag__inner--reverse .spl-zigzag__media {
		order: 0;
	}

	.spl-page .spl-area-highlight__image {
		aspect-ratio: 16 / 10;
	}

	.spl-page .spl-btn--outline {
		margin-left: 0;
	}
}

@media (max-width: 544px) {
	.spl-page .spl-section {
		padding: var(--spl-section-pad-mobile) 0;
	}

	.spl-page .spl-latest-properties__grid,
	.spl-page .spl-latest-properties .uagb-layout-grid {
		grid-template-columns: 1fr;
	}

	.spl-page .spl-container {
		padding: 0 20px;
	}

	.spl-page .spl-hero {
		min-height: 60vh;
		padding: 3.5rem 0;
	}

	.spl-page .spl-hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.spl-page .spl-intro--media {
		min-height: min(58vh, 420px);
	}

	.spl-page .spl-intro__inner {
		padding: 2.75rem 20px;
	}

	.spl-page .spl-area-highlight__image {
		aspect-ratio: 4 / 3;
	}
}
