/**
 * V2 property, article, and neighbourhood card families.
 *
 * Renderer inputs, links, favourites, lazy loading, and directory behavior
 * remain owned by the existing PHP and JavaScript contracts.
 */

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card {
	position: relative;
	display: grid;
	min-width: 0;
	align-content: start;
	border: 1px solid var(--anc-v2-color-line-default);
	border-radius: 0;
	background: transparent;
	color: var(--anc-v2-color-ink);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__header {
	display: flex;
	min-height: 60px;
	align-items: center;
	justify-content: space-between;
	border-bottom: 0;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__eyebrow {
	display: flex;
	min-width: 0;
	align-items: center;
	margin: 0;
	padding: 0 20px;
	color: var(--anc-v2-color-ink);
	font-family: var(--anc-v2-font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: var(--anc-v2-tracking-label);
	line-height: 1.4;
	text-transform: uppercase;
}

body.anc-design-v2 .anc-property-card .anc-property-card__eyebrow,
body.anc-design-v2 .anc-property-card .anc-property-card__location {
	color: var(--anc-v2-color-ink);
	font-family: var(--anc-v2-font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: var(--anc-v2-tracking-label);
	line-height: 1.4;
	text-transform: uppercase;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__favorite {
	position: static;
	display: grid;
	width: 60px;
	height: 59px;
	flex: 0 0 60px;
	place-items: center;
	padding: 0;
	border: 0;
	border-left: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--anc-v2-color-ink);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__favorite::before {
	content: none;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__favorite .anc-icon {
	position: static;
	width: 17px;
	height: 17px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__favorite:is(:hover, .is-favorite) {
	background: var(--anc-v2-color-ink);
	color: var(--anc-v2-color-paper);
	box-shadow: none;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__favorite.is-favorite .anc-icon {
	fill: currentcolor;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__image {
	overflow: hidden;
	width: auto;
	margin-inline: 20px;
	border-radius: 0;
	aspect-ratio: 4 / 3;
	background: var(--anc-v2-color-line-subtle);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__media {
	display: block;
	height: 100%;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__media:focus-visible {
	outline-offset: -3px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__body {
	display: grid;
	min-width: 0;
	padding: 18px 20px 22px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card h3 {
	min-height: 0;
	margin: 0;
	font-family: var(--anc-v2-font-sans);
	font-size: var(--anc-v2-type-h5-size);
	font-weight: 900;
	line-height: 1.18;
	overflow-wrap: anywhere;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card h3 a {
	color: inherit;
	text-decoration: none;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__location {
	display: block;
	margin: 10px 0 0;
	color: var(--anc-v2-color-ink);
	font-family: var(--anc-v2-font-mono);
	font-size: 11px;
	font-weight: 400;
	letter-spacing: var(--anc-v2-tracking-label);
	line-height: 1.4;
	text-transform: uppercase;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__location .anc-icon {
	display: none;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__body > p:not(.anc-property-card__location) {
	margin: 14px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--anc-v2-color-line-subtle);
	color: var(--anc-v2-color-ink);
	font-family: var(--anc-v2-font-sans);
	font-size: var(--anc-v2-type-body-3-size);
	font-weight: 400;
	line-height: var(--anc-v2-leading-body-3);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-card-price {
	display: block;
	margin-top: 12px;
	color: var(--anc-v2-color-ink);
	font-family: var(--anc-v2-font-sans);
	font-size: var(--anc-v2-type-body-2-size);
	font-weight: 400;
	line-height: 1.3;
}

:is(body.anc-design-v2, .editor-styles-wrapper) :is(.anc-directory-grid, .anc-property-grid) {
	gap: 0;
}

:is(body.anc-design-v2, .editor-styles-wrapper) :is(.anc-directory-grid, .anc-property-grid) .anc-property-card + .anc-property-card {
	margin-left: -1px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card {
	min-width: 0;
	color: var(--anc-v2-color-ink);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__image {
	display: block;
	overflow: hidden;
	border-radius: 0;
	background: var(--anc-v2-color-line-subtle);
	aspect-ratio: 1.5 / 1;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__body {
	min-width: 0;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__body > .blog-tag {
	width: max-content;
	min-height: 30px;
	margin-top: 14px;
	padding-inline: 10px;
	border-color: var(--anc-v2-color-brand);
	color: var(--anc-v2-color-brand);
	font-size: 14px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__body > .blog-tag:hover {
	border-color: var(--anc-v2-color-brand);
	background: transparent;
	color: var(--anc-v2-color-brand);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__body :is(h2, h3) {
	margin: 14px 0 0;
	font-family: var(--anc-v2-font-sans);
	font-size: var(--anc-v2-type-h4-size);
	font-weight: 900;
	line-height: 1.12;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__body :is(h2, h3) a {
	color: inherit;
	text-decoration: none;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__excerpt {
	min-height: 0;
	margin: 14px 0 0;
	color: var(--anc-v2-color-ink);
	font-family: var(--anc-v2-font-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__body .blog-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
	margin-top: 18px;
	color: var(--anc-v2-color-muted);
	font-family: var(--anc-v2-font-mono);
	font-size: 10px;
	font-weight: 400;
	letter-spacing: var(--anc-v2-tracking-label);
	line-height: 1.5;
	text-transform: uppercase;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card__body .blog-meta span + span::before {
	margin: 0 8px;
	content: "·";
}

:is(body.anc-design-v2, .editor-styles-wrapper) :is(.blog-card--landscape, .blog-card--compact, .blog-card--portrait) .anc-text-link {
	margin-top: 18px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	align-items: center;
	gap: var(--anc-v2-space-16);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured .blog-card__image {
	aspect-ratio: 1.48 / 1;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured .blog-card__body > .blog-tag {
	margin-top: 0;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured .blog-card__body h2 {
	margin-top: 18px;
	font-size: clamp(32px, 3.15vw, 48px);
	line-height: 1;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured .blog-card__excerpt {
	margin-top: 22px;
	font-size: var(--anc-v2-type-body-3-size);
	line-height: 1.5;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured .anc-text-link {
	margin-top: 20px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--compact {
	display: grid;
	grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.1fr);
	align-items: center;
	gap: var(--anc-v2-space-6);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--compact .blog-card__image {
	min-height: 220px;
	aspect-ratio: auto;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--portrait .blog-card__image {
	aspect-ratio: 0.82 / 1;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .blog-grid {
	gap: var(--anc-v2-space-16) var(--anc-v2-space-8);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card {
	min-width: 0;
	color: var(--anc-v2-color-ink);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card__image {
	display: block;
	overflow: hidden;
	border-radius: 0;
	background: var(--anc-v2-color-line-subtle);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card--large .anc-neighborhood-card__image {
	aspect-ratio: 0.8 / 1;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card--compact .anc-neighborhood-card__image {
	aspect-ratio: 1.5 / 1;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card__body h3 {
	margin: 14px 0 0;
	font-family: var(--anc-v2-font-sans);
	font-size: var(--anc-v2-type-h5-size);
	font-weight: 900;
	line-height: 1.15;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card__body h3 a {
	color: inherit;
	text-decoration: none;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card__body > p {
	margin: 8px 0 0;
	color: var(--anc-v2-color-ink);
	font-family: var(--anc-v2-font-sans);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-card__body .anc-text-link {
	width: max-content;
	margin-top: 12px;
	padding-left: 0;
	font-size: 11px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .neighborhood-directory__grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--anc-v2-space-12) var(--anc-v2-space-5);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-grid--desktop {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--anc-v2-space-2);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-grid--desktop .anc-neighborhood-card__link {
	background: var(--anc-v2-color-ink);
	color: var(--anc-v2-color-paper);
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-grid--desktop .anc-neighborhood-card__image {
	aspect-ratio: 1.62 / 1;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-grid--desktop .anc-neighborhood-card__body {
	padding: 16px;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-grid--desktop .anc-neighborhood-card__body h3 {
	margin-top: 0;
}

:is(body.anc-design-v2, .editor-styles-wrapper) .anc-neighborhood-grid--desktop .anc-neighborhood-card__body > p {
	color: inherit;
}

@media (max-width: 1000px) {
	:is(body.anc-design-v2, .editor-styles-wrapper) .neighborhood-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 700px) {
	:is(body.anc-design-v2, .editor-styles-wrapper) :is(.anc-directory-grid, .anc-property-grid) {
		grid-template-columns: 1fr;
		gap: 0;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) :is(.anc-directory-grid, .anc-property-grid) .anc-property-card + .anc-property-card {
		margin-top: -1px;
		margin-left: 0;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-grid--mobile {
		grid-auto-columns: auto;
		grid-auto-flow: row;
		overflow: visible;
		padding-right: 0;
		scroll-snap-type: none;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__body {
		padding: 14px 12px 18px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__header {
		min-height: 48px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__eyebrow {
		padding-inline: 12px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__favorite {
		width: 48px;
		height: 47px;
		flex-basis: 48px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .anc-property-card__image {
		margin-inline: 12px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured,
	:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--compact {
		grid-template-columns: 1fr;
		gap: 0;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured .blog-card__body > .blog-tag {
		margin-top: 14px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--featured .blog-card__body h2 {
		font-size: 28px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .blog-card--compact .blog-card__image {
		min-height: 0;
		aspect-ratio: 1.5 / 1;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .blog-grid {
		grid-template-columns: 1fr;
		gap: var(--anc-v2-space-12);
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .neighborhood-directory__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: var(--anc-v2-space-10) 14px;
		margin-top: var(--anc-v2-space-8);
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .neighborhood-directory__grid .anc-neighborhood-card__image {
		aspect-ratio: 1.08 / 1;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .neighborhood-directory__grid .anc-neighborhood-card__body h3 {
		font-size: 16px;
	}

	:is(body.anc-design-v2, .editor-styles-wrapper) .neighborhood-directory__grid .anc-neighborhood-card__body > p {
		font-size: 14px;
	}
}
