:root {
	--resido-surface: #ffffff;
	--resido-surface-alt: #f8f4ee;
	--resido-surface-soft: #fcfaf7;
	--resido-ink: #1d2431;
	--resido-ink-strong: #111827;
	--resido-muted: #707887;
	--resido-border: rgba(29, 36, 49, 0.1);
	--resido-accent: #2f4a86;
	--resido-accent-strong: #243a69;
	--resido-gold: #c6a264;
	--resido-shadow: 0 22px 60px rgba(28, 37, 53, 0.08);
}

.resido-widget {
	width: 100%;
	color: var(--resido-ink);
}

.resido-widget__shell {
	position: relative;
	padding: clamp(24px, 3vw, 42px);
	border: 1px solid var(--resido-border);
	border-radius: 32px;
	background: var(--resido-surface);
	box-shadow: var(--resido-shadow);
	overflow: hidden;
}

.resido-widget__shell::before {
	content: "";
	position: absolute;
	inset: 0 auto auto 0;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(198, 162, 100, 0.14), rgba(198, 162, 100, 0));
	pointer-events: none;
}

.resido-widget__shell--accent {
	background:
		linear-gradient(180deg, rgba(47, 74, 134, 0.05), rgba(47, 74, 134, 0.01)),
		var(--resido-surface-alt);
}

.resido-widget__shell--soft {
	background:
		linear-gradient(180deg, rgba(198, 162, 100, 0.08), rgba(198, 162, 100, 0.015)),
		var(--resido-surface-soft);
}

.resido-widget__shell--feature {
	background:
		linear-gradient(135deg, rgba(47, 74, 134, 0.06), rgba(198, 162, 100, 0.08)),
		var(--resido-surface);
}

.resido-section-header {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 30px;
	padding-bottom: 24px;
	border-bottom: 1px solid rgba(29, 36, 49, 0.08);
}

.resido-section-header__copy {
	max-width: 760px;
}

.resido-section-header__kicker {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 7px 14px;
	margin-bottom: 14px;
	border-radius: 999px;
	background: rgba(47, 74, 134, 0.08);
	color: var(--resido-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
}

.resido-section-header__kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--resido-gold);
	flex: 0 0 auto;
}

.resido-section-header__title {
	margin: 0;
	color: var(--resido-ink-strong);
	font-size: clamp(34px, 4vw, 56px);
	line-height: 0.96;
	letter-spacing: -0.05em;
	text-wrap: balance;
}

.resido-section-header__description {
	max-width: 640px;
	margin: 14px 0 0;
	font-size: 15px;
	line-height: 1.8;
	color: var(--resido-muted);
}

.resido-section-header__button,
.resido-property-showcase__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 22px;
	border-radius: 10px;
	background: var(--resido-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 12px 24px rgba(47, 74, 134, 0.16);
}

.resido-section-header__button {
	flex: 0 0 auto;
	min-height: 48px;
	padding: 12px 20px;
	border: 1px solid transparent;
	font-size: 14px;
	line-height: 1;
}

.resido-section-header__button::after,
.resido-property-showcase__button::after {
	content: "\2192";
	font-size: 15px;
	line-height: 1;
}

.resido-section-header__button:hover,
.resido-property-showcase__button:hover {
	background: var(--resido-accent-strong);
	transform: translateY(-1px);
}

.resido-empty-state {
	padding: 24px;
	border: 1px dashed rgba(47, 74, 134, 0.22);
	border-radius: 20px;
	background: rgba(47, 74, 134, 0.04);
	color: var(--resido-muted);
}

.resido-properties-grid {
	--resido-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--resido-columns), minmax(0, 1fr));
	gap: 24px;
}

.resido-property-card,
.resido-property-showcase {
	background: var(--resido-surface);
	border: 1px solid rgba(29, 36, 49, 0.08);
	border-radius: 26px;
	overflow: hidden;
	box-shadow: 0 18px 44px rgba(17, 24, 39, 0.06);
}

.resido-property-card {
	display: flex;
	flex-direction: column;
}

.resido-property-card__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 11;
	overflow: hidden;
	background: #e7e2d8;
}

.resido-property-card__media::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 40%;
	background: linear-gradient(180deg, rgba(17, 24, 39, 0), rgba(17, 24, 39, 0.22));
	pointer-events: none;
}

.resido-property-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.resido-property-card:hover .resido-property-card__media img {
	transform: scale(1.06);
}

.resido-property-card__badge,
.resido-property-showcase__badge {
	position: absolute;
	top: 16px;
	left: 16px;
	display: inline-flex;
	align-items: center;
	padding: 8px 12px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(10px);
	color: var(--resido-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.resido-property-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 18px 18px 20px;
}

.resido-property-card__topline,
.resido-property-showcase__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.resido-property-card__status,
.resido-property-card__type,
.resido-property-showcase__facts li {
	display: inline-flex;
	align-items: center;
	padding: 7px 11px;
	border-radius: 999px;
	background: rgba(47, 74, 134, 0.06);
	color: var(--resido-accent);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.resido-property-card__title,
.resido-property-showcase__title {
	margin: 16px 0 8px;
	color: var(--resido-ink-strong);
	font-size: 24px;
	line-height: 1.08;
	letter-spacing: -0.04em;
}

.resido-property-card__title a {
	color: inherit;
	text-decoration: none;
}

.resido-property-card__location,
.resido-property-showcase__location {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 14px;
	color: var(--resido-muted);
	font-size: 14px;
}

.resido-property-card__location::before,
.resido-property-showcase__location::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 999px;
	background: var(--resido-gold);
	flex: 0 0 auto;
}

.resido-price {
	margin-bottom: 16px;
	color: var(--resido-accent);
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.03em;
}

.resido-property-card__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 0;
	margin: 0 0 14px;
	list-style: none;
	border-top: 1px solid rgba(29, 36, 49, 0.08);
	border-bottom: 1px solid rgba(29, 36, 49, 0.08);
	color: var(--resido-muted);
	font-size: 13px;
}

.resido-property-card__facts li {
	padding: 0;
	background: transparent;
	color: var(--resido-ink);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
}

.resido-property-card__facts li::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 8px;
	border-radius: 999px;
	background: var(--resido-gold);
	vertical-align: middle;
}

.resido-property-card__excerpt,
.resido-property-showcase__description {
	margin: 0 0 18px;
	color: var(--resido-muted);
	font-size: 14px;
	line-height: 1.75;
}

.resido-property-card__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 8px;
	font-weight: 700;
	color: var(--resido-accent);
	text-decoration: none;
}

.resido-property-card__button::after {
	content: "\2192";
	line-height: 1;
}

.resido-property-showcase {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
	min-height: 560px;
}

.resido-property-showcase--right {
	grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
}

.resido-property-showcase--right .resido-property-showcase__media {
	order: 2;
}

.resido-property-showcase__media {
	position: relative;
	min-height: 500px;
	background-position: center;
	background-size: cover;
}

.resido-property-showcase__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(36, 58, 105, 0.12), rgba(17, 24, 39, 0.28));
}

.resido-property-showcase__content {
	position: relative;
	padding: clamp(24px, 4vw, 48px);
	display: flex;
	flex-direction: column;
	justify-content: center;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.98)),
		var(--resido-surface);
}

.resido-property-showcase__content::before {
	content: "";
	position: absolute;
	top: 24px;
	right: 24px;
	width: 82px;
	height: 82px;
	border-radius: 20px;
	border: 1px solid rgba(198, 162, 100, 0.26);
	background: linear-gradient(135deg, rgba(198, 162, 100, 0.12), rgba(198, 162, 100, 0.02));
}

.resido-property-showcase__badge {
	position: static;
	align-self: flex-start;
	margin-bottom: 18px;
}

.resido-property-showcase__facts {
	padding: 0;
	margin: 0 0 18px;
	list-style: none;
}

.resido-slider {
	position: relative;
}

.resido-slider__viewport {
	overflow: hidden;
	margin: 0 -2px;
	padding-right: clamp(0px, 4vw, 56px);
}

.resido-slider__track {
	display: flex;
	will-change: transform;
	transition: transform 0.35s ease;
}

.resido-slider__slide {
	min-width: 0;
}

.resido-slider__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid rgba(47, 74, 134, 0.16);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--resido-accent);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.resido-slider__arrow:hover:not(:disabled) {
	background: var(--resido-accent);
	border-color: var(--resido-accent);
	color: #fff;
	transform: translateY(-1px);
}

.resido-slider__arrow:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.resido-slider__dots {
	display: flex;
	align-items: center;
	gap: 8px;
}

.resido-slider__dot {
	width: 10px;
	height: 10px;
	border: 0;
	border-radius: 999px;
	background: rgba(47, 74, 134, 0.18);
	cursor: pointer;
}

.resido-slider__dot.is-active {
	width: 28px;
	background: var(--resido-accent);
}

.resido-slider__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid rgba(29, 36, 49, 0.08);
}

.resido-slider__meta {
	display: grid;
	grid-template-columns: auto 220px auto;
	align-items: center;
	gap: 16px;
	min-width: 0;
}

.resido-slider__eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--resido-muted);
}

.resido-slider__progress {
	position: relative;
	height: 4px;
	border-radius: 999px;
	background: rgba(47, 74, 134, 0.12);
	overflow: hidden;
}

.resido-slider__progress-bar {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--resido-gold), var(--resido-accent));
	transition: width 0.3s ease;
}

.resido-slider__counter {
	display: inline-flex;
	align-items: baseline;
	gap: 8px;
	color: var(--resido-ink-strong);
	font-size: 14px;
	font-weight: 700;
}

.resido-slider__counter-separator {
	color: rgba(29, 36, 49, 0.34);
}

.resido-slider__controls,
.resido-slider__arrows {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

@media (max-width: 1024px) {
	.resido-properties-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.resido-property-showcase,
	.resido-property-showcase--right {
		grid-template-columns: 1fr;
		min-height: 0;
	}

	.resido-property-showcase--right .resido-property-showcase__media {
		order: initial;
	}

	.resido-property-showcase__media {
		min-height: 360px;
	}

	.resido-slider__meta {
		grid-template-columns: auto 1fr auto;
	}
}

@media (max-width: 767px) {
	.resido-widget__shell {
		padding: 18px;
		border-radius: 24px;
	}

	.resido-section-header {
		flex-direction: column;
		align-items: flex-start;
		padding-bottom: 18px;
	}

	.resido-section-header__title {
		font-size: 34px;
	}

	.resido-properties-grid {
		grid-template-columns: 1fr;
	}

	.resido-property-card__body,
	.resido-property-showcase__content {
		padding: 18px;
	}

	.resido-property-showcase__media {
		min-height: 280px;
	}

	.resido-slider__viewport {
		padding-right: 0;
	}

	.resido-slider__footer,
	.resido-slider__meta {
		flex-direction: column;
		grid-template-columns: 1fr;
		align-items: flex-start;
	}

	.resido-slider__controls {
		width: 100%;
		justify-content: space-between;
	}
}
