/**
 * Plugin-owned city homepage layout (no TT4 is-layout-constrained wrappers).
 * Scoped under .plf-city-home-page — pairs with class-plf-city-homepage-renderer.php profiles.
 */

/* Break TT4 post-content child width cap (~620px) for plugin homepage root. */
body.plf-city-home-renderer .entry-content,
body.plf-city-home-renderer .wp-block-post-content {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.plf-city-home-renderer .entry-content > .plf-city-home-page,
body.plf-city-home-renderer .wp-block-post-content > .plf-city-home-page,
body.plf-city-home-renderer .is-layout-flow > .plf-city-home-page {
	max-width: none !important;
	width: 100% !important;
}

.plf-city-home-page {
	--plf-city-home-gutter: clamp(1.25rem, 4vw, 2.25rem);
	--plf-city-home-inner-max: min(1320px, calc(100vw - var(--plf-city-home-gutter) * 2));
	--plf-city-home-hero-inner-max: min(1440px, calc(100vw - 96px));
	--plf-city-home-narrow-max: min(920px, calc(100vw - var(--plf-city-home-gutter) * 2));
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	clear: both;
}

.plf-city-home-page *,
.plf-city-home-page *::before,
.plf-city-home-page *::after {
	box-sizing: border-box;
}

.plf-city-home-page .plf-city-inner {
	width: 100%;
	max-width: var(--plf-city-home-inner-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--plf-city-home-gutter);
	padding-right: var(--plf-city-home-gutter);
}

.plf-city-home-page .plf-city-inner--hero {
	max-width: min(var(--plf-city-home-inner-max), var(--plf-city-home-hero-inner-max));
}

/* Production skin: hero matches featured shell width (ignore legacy 1120px hero cap). */
body.plf-city-home-renderer .plf-city-home-page--production-skin .plf-city-inner--hero,
body.plf-city-home-renderer .plf-city-home-page--production-skin .plf-city-hero-panel__inner {
	max-width: var(--plf-city-home-inner-max) !important;
	margin-left: max(24px, calc((100vw - var(--plf-city-home-inner-max)) / 2)) !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
}

.plf-city-home-page .plf-city-inner--narrow {
	max-width: var(--plf-city-home-narrow-max);
}

/* Full-width hero band with photo overlay (same tokens as plf-city-platform-surface.css). */
body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel--premium {
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: none;
	margin: 0;
	min-height: clamp(360px, 44vh, 500px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(2.25rem, 6vw, 3.25rem) 0 clamp(2rem, 5vw, 2.75rem);
	box-sizing: border-box;
	background-color: var(--plf-pwu-navy, #0f172a);
	background-image: linear-gradient(
			180deg,
			var(--plf-pwu-hero-overlay-top, rgba(15, 23, 42, 0.72)) 0%,
			var(--plf-pwu-hero-overlay-bottom, rgba(15, 23, 42, 0.88)) 100%
		),
		var(--plf-city-hero-photo, var(--plf-city-hero-texture, none));
	background-size: cover;
	background-position: center 35%;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__inner {
	text-align: left;
	max-width: min(var(--plf-city-home-inner-max), calc(100vw - 2rem));
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__headline {
	margin: 0 0 0.9rem;
	font-size: clamp(2.35rem, 5.5vw, 3.65rem);
	font-weight: 800;
	line-height: 1.06;
	color: #f8fafc;
	max-width: 22ch;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__subhead {
	margin: 0 0 1rem;
	max-width: 58ch;
	font-size: clamp(1.1rem, 1.55vw, 1.28rem);
	line-height: 1.55;
	color: #e2e8f0;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-chips {
	justify-content: flex-start;
	margin-top: 1rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-chip {
	font-size: 0.88rem;
	padding: 0.45rem 0.95rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__ctas {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 0.85rem;
	margin-top: 1.25rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	text-decoration: none;
	line-height: 1.3;
}

@media (max-width: 767px) {
	body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__inner {
		text-align: center;
	}

	body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__headline,
	body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__subhead {
		margin-left: auto;
		margin-right: auto;
	}

	body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-chips,
	body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel__ctas {
		justify-content: center;
	}
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-cta-primary {
	background: #38bdf8;
	color: #0f172a;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-cta-secondary {
	border: 1px solid #f8fafc;
	color: #f8fafc;
	background: transparent;
}

/* Featured band — full viewport width, inner content capped */
body.plf-city-home-renderer .plf-city-home-page .plf-city-home-featured-band {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #fff;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-main-stack {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0.35rem 0 clamp(1.35rem, 3vw, 2rem);
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-hero-panel--premium + .plf-city-home-featured-band {
	margin-top: 0;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-featured-shell {
	padding-top: 0;
	padding-bottom: 0;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-featured-section-title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.75rem, 3.2vw, 2.15rem);
	font-weight: 700;
	color: #0f172a;
	line-height: 1.15;
}

body.plf-city-home-renderer .plf-city-home-page .plf-home-featured__intro--template {
	margin: 0 0 1.15rem;
	max-width: 48rem;
	color: #475569;
	font-size: 1.08rem;
	line-height: 1.55;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-placement-slot {
	width: 100%;
	max-width: 100%;
	margin-bottom: clamp(0.85rem, 2vw, 1.35rem);
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-placement-slot .plf-feature-placement,
body.plf-city-home-renderer .plf-city-home-page .plf-city-home-placement-slot .plf-home-featured {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	padding-left: 0;
	padding-right: 0;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement__inner,
body.plf-city-home-renderer .plf-city-home-page .plf-home-featured__grid {
	width: 100%;
	max-width: 100%;
}

body.plf-city-home-renderer .plf-city-home-page .plf-home-featured {
	padding-left: 0;
	padding-right: 0;
}

/* Positioning + lower sections */
body.plf-city-home-renderer .plf-city-home-page .plf-city-positioning-band {
	margin-top: 0.5rem;
	margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
	padding-top: 2rem;
	padding-bottom: 2rem;
	background: #f0f9ff;
	border-radius: 0.35rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-positioning-band__title {
	margin: 0 0 0.75rem;
	font-weight: 700;
	font-size: 1.35rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-section-title {
	margin: 0 0 1.25rem;
	font-weight: 700;
	font-size: clamp(1.35rem, 2.5vw, 1.65rem);
	color: #0f172a;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-columns {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-column {
	padding: 1.25rem 1.15rem;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	border-radius: 0.35rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-column h3 {
	margin: 0 0 0.65rem;
	font-size: 1.1rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-community {
	margin-bottom: 1.5rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-brokerage-note {
	font-size: 0.95rem;
	color: #475569;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-cta-band {
	margin-bottom: 1.5rem;
	padding: 1.75rem var(--plf-city-home-gutter);
	background: #eff6ff;
	border-radius: 0.35rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-city-home-compliance {
	margin-top: 1.5rem;
	padding-bottom: 0.5rem;
}

/* TT4 shell: fluid main — post content is full width (with or without --fluid class on main). */
body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main,
body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main--fluid,
body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main.is-layout-constrained,
body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main.has-global-padding {
	max-width: none !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	--wp--style--global--content-size: min(1240px, calc(100vw - 2rem)) !important;
	--wp--style--global--wide-size: min(1320px, calc(100vw - 2rem)) !important;
}

body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main > .wp-block-post-content,
body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main > .entry-content,
body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main--fluid > .wp-block-post-content,
body.plf-city-home-renderer.plf-front-platform-home main.plf-city-factory-page-main--fluid > .entry-content {
	max-width: none !important;
	width: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
}

body.plf-city-home-renderer.plf-front-platform-home main .wp-block-shortcode {
	max-width: none !important;
	width: 100% !important;
}

/* Featured grid: 3-up desktop with wider cards (beats platform-surface 4-col @1280px). */
body.plf-city-home-renderer.plf-front-platform-home.plf-city-platform-surface .plf-city-home-page .plf-city-home-featured-band .plf-feature-placement--homepage-featured.plf-feature-placement--layout-grid .plf-feature-placement__inner {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)) !important;
	gap: clamp(1.15rem, 2.2vw, 1.5rem) !important;
}

@media (min-width: 900px) {
	body.plf-city-home-renderer.plf-front-platform-home.plf-city-platform-surface .plf-city-home-page .plf-city-home-featured-band .plf-feature-placement--homepage-featured.plf-feature-placement--layout-grid .plf-feature-placement__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1280px) {
	body.plf-city-home-renderer.plf-front-platform-home.plf-city-platform-surface .plf-city-home-page .plf-city-home-featured-band .plf-feature-placement--homepage-featured.plf-feature-placement--layout-grid .plf-feature-placement__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

body.plf-city-home-renderer.plf-front-platform-home.plf-city-platform-surface .plf-city-home-page .plf-city-home-featured-band .plf-feature-placement--homepage-secondary.plf-feature-placement--layout-grid .plf-feature-placement__inner {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)) !important;
	gap: clamp(1rem, 2vw, 1.35rem) !important;
}

@media (min-width: 900px) {
	body.plf-city-home-renderer.plf-front-platform-home.plf-city-platform-surface .plf-city-home-page .plf-city-home-featured-band .plf-feature-placement--homepage-secondary.plf-feature-placement--layout-grid .plf-feature-placement__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (min-width: 1280px) {
	body.plf-city-home-renderer.plf-front-platform-home.plf-city-platform-surface .plf-city-home-page .plf-city-home-featured-band .plf-feature-placement--homepage-secondary.plf-feature-placement--layout-grid .plf-feature-placement__inner {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 900px) {
	body.plf-city-home-renderer .plf-city-home-page .plf-city-home-columns {
		grid-template-columns: 1fr;
	}
}

/*
 * Plugin renderer (Option B): featured shell must follow --plf-city-home-inner-max on .plf-city-home-page,
 * not the legacy 1100px shell cap from plf-city-platform-surface critical CSS @ wp_head 999.
 */
body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-home-main-stack {
	width: 100% !important;
	max-width: none !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-inner.plf-city-home-featured-shell,
body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-home-featured-shell {
	width: min(100%, var(--plf-city-home-inner-max)) !important;
	max-width: var(--plf-city-home-inner-max) !important;
	margin-left: max(24px, calc((100vw - var(--plf-city-home-inner-max)) / 2)) !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	--wp--style--global--content-size: var(--plf-city-home-inner-max) !important;
}

body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-home-placement-slot,
body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-feature-placement,
body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-feature-placement__inner {
	width: 100% !important;
	max-width: 100% !important;
}

/* —— Featured area visual scale (typography + spacing; widths unchanged) —— */
body.plf-city-home-renderer .plf-city-home-page .plf-city-home-featured-band {
	padding-top: 0.5rem !important;
	padding-bottom: 0.25rem !important;
	margin-top: 0 !important;
}

/* Spotlight: full-width wide feature card */
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-placement__inner {
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) !important;
	gap: 0 !important;
	max-width: 100% !important;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero {
	margin-bottom: 0.15rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-placement__title {
	font-size: 0.82rem;
	letter-spacing: 0.08em;
	margin-bottom: 0.65rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
	margin-right: 0;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
	border: 1px solid rgba(15, 23, 42, 0.08);
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero .plf-feature-card__media {
	aspect-ratio: 2 / 1;
	min-height: clamp(280px, 36vw, 400px);
	max-height: min(440px, 48vh);
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero .plf-feature-card__body {
	padding: clamp(1.25rem, 2.8vw, 1.6rem) clamp(1.35rem, 3.2vw, 1.75rem) clamp(1.25rem, 2.5vw, 1.55rem);
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero .plf-feature-card__price {
	font-size: clamp(1.5rem, 2.8vw, 1.85rem);
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero .plf-feature-card__title {
	font-size: clamp(1.15rem, 2.1vw, 1.45rem);
	line-height: 1.22;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero .plf-feature-card__loc,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero .plf-feature-card__mls,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-hero .plf-feature-card--hero .plf-feature-card__meta-text {
	font-size: 1rem;
}

/* Featured grid cards: taller images, roomier type */
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card {
	border-radius: 10px;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__media,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__media {
	aspect-ratio: 4 / 3;
	min-height: clamp(280px, 28vw, 340px);
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__body,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__body {
	padding: 1.15rem 1.25rem 1.35rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__price,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__price {
	font-size: 1.28rem;
	line-height: 1.2;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__title,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__title {
	font-size: 1.08rem;
	line-height: 1.28;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__loc,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__mls,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__loc,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__mls {
	font-size: 0.95rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__meta-text,
body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__meta-text {
	font-size: 0.92rem;
}

body.plf-city-home-renderer .plf-city-home-page .plf-feature-placement__title {
	font-size: clamp(1.5rem, 2.6vw, 1.9rem);
	margin-bottom: 0.75rem;
}

/* Beat platform-surface hero/section !important when both apply */
body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-hero-panel--premium .plf-city-hero-panel__headline {
	font-size: clamp(2.35rem, 5.5vw, 3.65rem) !important;
	max-width: 22ch !important;
}

body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-hero-panel--premium .plf-city-hero-panel__subhead {
	font-size: clamp(1.1rem, 1.55vw, 1.28rem) !important;
	max-width: 58ch !important;
}

body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-featured-section-title {
	font-size: clamp(1.75rem, 3.2vw, 2.15rem) !important;
}

body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-home-featured__intro--template {
	font-size: 1.08rem !important;
	line-height: 1.55 !important;
}

body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-city-home-featured-band {
	padding-top: 0.5rem !important;
}

body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-feature-placement--homepage-featured .plf-feature-card__media,
body.plf-city-home-renderer.plf-front-platform-home .plf-city-home-page .plf-feature-placement--homepage-secondary .plf-feature-card__media {
	min-height: clamp(280px, 28vw, 340px) !important;
}
