/**
 * Sentio Property Card — per-widget styles
 * Prefix: .sentio-ppc (collision-checked unique)
 */

.sentio-ppc {
	width: 100%;
}

.sentio-ppc__card {
	background: #fff;
	border: 1px solid #eee9f2;
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	position: relative;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.sentio-ppc__card.is-sold .sentio-ppc__img {
	filter: grayscale(0.6) opacity(0.85);
}

/* ── Media / gallery ────────────────────────────────────────── */
.sentio-ppc__media {
	position: relative;
}

.sentio-ppc__stage {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	position: relative;
}

.sentio-ppc__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.sentio-ppc__img[hidden] {
	display: none;
}

.sentio-ppc__badge {
	border-radius: 6px;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	left: 14px;
	letter-spacing: 0.02em;
	line-height: 1;
	padding: 6px 10px;
	position: absolute;
	text-transform: uppercase;
	top: 14px;
	z-index: 2;
}

.sentio-ppc__badge--for-sale { background: #23a455; }
.sentio-ppc__badge--for-rent { background: #2563eb; }
.sentio-ppc__badge--pending { background: #f59e0b; }
.sentio-ppc__badge--sold { background: #6b7280; }
.sentio-ppc__badge[class*='sentio-ppc__badge--custom-'] { background: #9333ea; }

.sentio-ppc__banner {
	background: #eb3480;
	bottom: 0;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	left: 0;
	letter-spacing: 0.04em;
	padding: 8px 14px;
	position: absolute;
	right: 0;
	text-align: center;
	z-index: 2;
}

.sentio-ppc__arrow {
	appearance: none;
	-webkit-appearance: none;
	align-items: center;
	background: rgba(15, 14, 26, 0.55);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	display: flex;
	font-size: 14px;
	height: 38px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	transition: background-color 0.2s ease;
	width: 38px;
	z-index: 2;
}

.sentio-ppc__arrow--prev {
	left: 12px;
}

.sentio-ppc__arrow--next {
	right: 12px;
}

.sentio-ppc__arrow:hover {
	background: rgba(15, 14, 26, 0.8);
}

.sentio-ppc__arrow:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.sentio-ppc__counter {
	background: rgba(15, 14, 26, 0.55);
	border-radius: 12px;
	bottom: 12px;
	color: #fff;
	font-size: 12px;
	line-height: 1;
	padding: 6px 10px;
	position: absolute;
	right: 12px;
	z-index: 2;
}

/* Counter clears the open-house banner when both render. */
.sentio-ppc__banner ~ .sentio-ppc__counter,
.sentio-ppc__stage:has(.sentio-ppc__banner) .sentio-ppc__counter {
	bottom: 46px;
}

.sentio-ppc__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px 0;
}

.sentio-ppc__thumb {
	appearance: none;
	-webkit-appearance: none;
	background: none;
	border: 2px solid transparent;
	border-radius: 8px;
	cursor: pointer;
	height: 50px;
	overflow: hidden;
	padding: 0;
	transition: border-color 0.2s ease;
	width: 72px;
}

.sentio-ppc__thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sentio-ppc__thumb.is-active {
	border-color: #eb3480;
}

.sentio-ppc__thumb:focus-visible {
	outline: 2px solid #eb3480;
	outline-offset: 2px;
}

/* ── SR announcer ───────────────────────────────────────────── */
.sentio-ppc__announce {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

/* ── Body ───────────────────────────────────────────────────── */
.sentio-ppc__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 20px;
}

.sentio-ppc__price {
	align-items: baseline;
	display: flex;
	gap: 5px;
}

.sentio-ppc__price-amount {
	color: #eb3480;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.2;
}

.sentio-ppc__price-amount--fallback {
	color: #5a566b;
	font-size: 18px;
	font-weight: 600;
}

.sentio-ppc__price-suffix {
	color: #8a8698;
	font-size: 15px;
}

.sentio-ppc__title {
	color: #1e1b2e;
	font-size: 22px;
	line-height: 1.25;
	margin: 0;
}

.sentio-ppc__address {
	align-items: center;
	color: #8a8698;
	display: flex;
	font-size: 14px;
	gap: 6px;
	line-height: 1.4;
}

.sentio-ppc__address-icon {
	display: inline-flex;
	flex: 0 0 auto;
}

.sentio-ppc__address-icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ── Stat strip ─────────────────────────────────────────────── */
.sentio-ppc__stats {
	border-top: 1px solid #eee9f2;
	border-bottom: 1px solid #eee9f2;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	list-style: none;
	margin: 4px 0;
	padding: 12px 0;
}

.sentio-ppc__stat {
	align-items: center;
	color: #5a566b;
	display: inline-flex;
	font-size: 14px;
	gap: 7px;
	margin: 0;
}

.sentio-ppc__stat-icon {
	color: #eb3480;
	display: inline-flex;
}

.sentio-ppc__stat-icon svg {
	width: 15px;
	height: 15px;
	fill: currentColor;
}

.sentio-ppc__stat-unit {
	color: #8a8698;
}

/* ── Description + amenities ────────────────────────────────── */
.sentio-ppc__description {
	color: #5a566b;
	font-size: 14px;
	line-height: 1.65;
}

.sentio-ppc__description p {
	margin: 0 0 0.7em;
}

.sentio-ppc__description p:last-child {
	margin-bottom: 0;
}

.sentio-ppc__features-heading {
	color: #1e1b2e;
	font-size: 15px;
	margin: 6px 0 0;
}

.sentio-ppc__features {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.sentio-ppc__feature {
	align-items: center;
	color: #5a566b;
	display: inline-flex;
	font-size: 14px;
	gap: 8px;
	margin: 0;
}

.sentio-ppc__feature-icon {
	color: #23a455;
	display: inline-flex;
	flex: 0 0 auto;
}

.sentio-ppc__feature-icon svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

/* ── Agent block ────────────────────────────────────────────── */
.sentio-ppc__agent {
	align-items: center;
	border-top: 1px solid #eee9f2;
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 6px;
	padding-top: 16px;
}

.sentio-ppc__agent-photo {
	border-radius: 50%;
	flex: 0 0 auto;
	height: 56px;
	object-fit: cover;
	width: 56px;
}

.sentio-ppc__agent-meta {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.sentio-ppc__agent-name {
	color: #1e1b2e;
	font-size: 15px;
	font-weight: 700;
}

.sentio-ppc__agent-title {
	color: #8a8698;
	font-size: 13px;
}

.sentio-ppc__agent-links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 2px;
}

.sentio-ppc__agent-contact {
	color: #eb3480;
	font-size: 13px;
	text-decoration: none;
}

.sentio-ppc__agent-contact:hover,
.sentio-ppc__agent-contact:focus {
	text-decoration: underline;
}

.sentio-ppc__agent-contact:focus-visible {
	outline: 2px solid #eb3480;
	outline-offset: 2px;
}

/* ── CTA ────────────────────────────────────────────────────── */
.sentio-ppc__cta {
	background: #eb3480;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	display: inline-block;
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 20px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.sentio-ppc__cta:focus-visible {
	outline: 2px solid #1e1b2e;
	outline-offset: 2px;
}

/* ══ Layout: split (media left / right) ═════════════════════ */
@media (min-width: 768px) {
	.sentio-ppc--layout-split-left .sentio-ppc__card,
	.sentio-ppc--layout-split-right .sentio-ppc__card {
		display: grid;
		grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	}

	.sentio-ppc--layout-split-right .sentio-ppc__card {
		grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	}

	.sentio-ppc--layout-split-right .sentio-ppc__media {
		order: 2;
	}

	/* The media cell is a flex column so the stage fills the leftover height
	   above the thumbs. The stage gets BOTH dimensions definite (width 100% +
	   flexed height) — this renders the Image Ratio control's high-specificity
	   `aspect-ratio` inert in split mode, so the stage can never derive an
	   oversized width from a tall body column and overlap the text content. */
	.sentio-ppc--layout-split-left .sentio-ppc__media,
	.sentio-ppc--layout-split-right .sentio-ppc__media {
		display: flex;
		flex-direction: column;
		min-width: 0;
		overflow: hidden;
	}

	.sentio-ppc--layout-split-left .sentio-ppc__stage,
	.sentio-ppc--layout-split-right .sentio-ppc__stage {
		aspect-ratio: auto;
		flex: 1 1 auto;
		height: auto;
		min-height: 320px;
		width: 100%;
	}

	.sentio-ppc--layout-split-left .sentio-ppc__thumbs,
	.sentio-ppc--layout-split-right .sentio-ppc__thumbs {
		flex: 0 0 auto;
		padding: 10px 14px;
	}
}

/* ══ Layout: overlay ════════════════════════════════════════ */
.sentio-ppc--layout-overlay .sentio-ppc__card {
	background: transparent;
	border: 0;
}

.sentio-ppc--layout-overlay .sentio-ppc__media {
	position: static;
}

.sentio-ppc--layout-overlay .sentio-ppc__stage {
	border-radius: inherit;
	inset: 0;
	position: absolute;
}

.sentio-ppc--layout-overlay .sentio-ppc__stage::after {
	background: linear-gradient(to top, rgba(15, 14, 26, 0.78), transparent 60%);
	content: '';
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.sentio-ppc--layout-overlay .sentio-ppc__card {
	aspect-ratio: 4 / 3;
	justify-content: flex-end;
}

.sentio-ppc--layout-overlay .sentio-ppc__thumbs {
	display: none;
}

.sentio-ppc--layout-overlay .sentio-ppc__body {
	position: relative;
	z-index: 1;
}

.sentio-ppc--layout-overlay .sentio-ppc__title,
.sentio-ppc--layout-overlay .sentio-ppc__address,
.sentio-ppc--layout-overlay .sentio-ppc__stat,
.sentio-ppc--layout-overlay .sentio-ppc__description,
.sentio-ppc--layout-overlay .sentio-ppc__feature,
.sentio-ppc--layout-overlay .sentio-ppc__features-heading,
.sentio-ppc--layout-overlay .sentio-ppc__agent-name,
.sentio-ppc--layout-overlay .sentio-ppc__agent-title,
.sentio-ppc--layout-overlay .sentio-ppc__stat-unit,
.sentio-ppc--layout-overlay .sentio-ppc__price-suffix {
	color: #fff;
}

.sentio-ppc--layout-overlay .sentio-ppc__stats,
.sentio-ppc--layout-overlay .sentio-ppc__agent {
	border-color: rgba(255, 255, 255, 0.25);
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
	.sentio-ppc__card,
	.sentio-ppc__img,
	.sentio-ppc__thumb,
	.sentio-ppc__arrow,
	.sentio-ppc__cta {
		transition: none !important;
	}

	.sentio-ppc__card:hover {
		transform: none !important;
	}

	.sentio-ppc__card:hover .sentio-ppc__img.is-active {
		transform: none !important;
	}
}
