/* ============================================================
   Available Units — authoritative React sync (Landing.tsx #units)
   Loads last. Scoped to homepage units section only.
   ============================================================ */

/* Section: bg-[#f1f0eb] px-5 py-12 sm:px-8 sm:py-20 lg:px-10 lg:py-16 */
.vault-home .vault-home__units.vault-units--landing {
	order: 2;
	background: var(--color-section-alt);
	padding: 3rem 1.25rem;
	box-sizing: border-box;
}

@media (min-width: 640px) {
	.vault-home .vault-home__units.vault-units--landing {
		padding: 5rem 2rem;
	}
}

@media (min-width: 1024px) {
	.vault-home .vault-home__units.vault-units--landing {
		padding: 4rem 2.5rem;
	}
}

.vault-home .vault-home__units .vault-container {
	width: 100%;
	max-width: 1240px;
	margin-inline: auto;
	padding-inline: 0;
}

/* Header: flex flex-col gap-5 lg:flex-row lg:items-end lg:justify-between */
.vault-home .vault-units--landing .vault-units__header {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 1.25rem;
	margin-bottom: 0;
	width: 100%;
}

@media (min-width: 1024px) {
	.vault-home .vault-units--landing .vault-units__header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		flex-wrap: nowrap;
	}
}

.vault-home .vault-units--landing .vault-units__header .vault-section-intro {
	margin-bottom: 0;
}

/* SectionIntro align="left" */
.vault-home .vault-units--landing .vault-section-intro--left {
	flex: 0 1 auto;
	min-width: 0;
	max-width: 42rem;
	width: auto;
}

@media (min-width: 1024px) {
	.vault-home .vault-units--landing .vault-section-intro--left {
		flex: 1 1 auto;
	}
}

.vault-home .vault-units--landing .vault-section-intro > p.vault-section-intro__eyebrow {
	margin: 0;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #ab4145;
}

.vault-home .vault-units--landing .vault-section-intro h2 {
	margin: 0.75rem 0 0;
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.04;
	letter-spacing: -0.05em;
	color: var(--color-ink);
}

@media (min-width: 640px) {
	.vault-home .vault-units--landing .vault-section-intro h2 {
		font-size: 2.25rem;
	}
}

.vault-home .vault-units--landing .vault-section-intro > p {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--color-text-muted);
}

@media (min-width: 640px) {
	.vault-home .vault-units--landing .vault-section-intro > p {
		font-size: 1rem;
	}
}

/* Location: text-sm font-bold text-[#3f4a61], MapPin 16px #e5383f */
.vault-home .vault-units--landing .vault-units__location {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	align-self: flex-end;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	color: #3f4a61;
	white-space: nowrap;
}

.vault-home .vault-units--landing .vault-units__location svg {
	display: block;
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	stroke: var(--color-red);
	color: var(--color-red);
}

/* Grid: mt handled on .vault-units__body so empty state shares spacing */
.vault-home .vault-units--landing .vault-units__grid--landing {
	display: grid;
	gap: 0.75rem;
	margin-top: 0;
}

@media (min-width: 640px) {
	.vault-home .vault-units--landing .vault-units__grid--landing {
		grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	}
}

@media (min-width: 1024px) {
	.vault-home .vault-units--landing .vault-units__grid--landing {
		grid-template-columns: repeat(4, 1fr);
		gap: 1rem;
		margin-top: 0;
	}
}

.vault-home .vault-units--landing.is-empty .vault-section-cta {
	display: none !important;
}

/* UnitCard */
.vault-home .vault-unit-card--landing {
	position: relative;
	display: flex;
	overflow: hidden;
	cursor: pointer;
	border: 1px solid var(--color-border-unit);
	border-radius: 1rem;
	background: var(--color-white);
	box-shadow: 0 8px 25px rgba(16, 24, 47, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vault-home .vault-unit-card--landing:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(16, 24, 47, 0.1);
}

.vault-home .vault-unit-card__hit {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.vault-home .vault-unit-card__thumb {
	width: 7rem;
	min-height: 132px;
	flex-shrink: 0;
	object-fit: cover;
	object-position: center;
	background: #f7f5f0;
	align-self: stretch;
}

@media (max-width: 379.98px) {
	.vault-home .vault-unit-card__thumb {
		width: 5.5rem;
		min-height: 120px;
	}
}

.vault-home .vault-unit-card__thumb.is-unit-illustration {
	object-fit: contain;
}

@media (min-width: 1024px) {
	.vault-home .vault-unit-card--landing {
		display: block;
	}

	.vault-home .vault-unit-card__thumb {
		display: block;
		width: 100%;
		height: 11rem;
		min-height: 0;
		object-fit: cover;
		object-position: center;
		background: #f7f5f0;
	}

	.vault-home .vault-unit-card__thumb.is-unit-illustration {
		object-fit: contain;
	}
}

.vault-home .vault-unit-card__body {
	flex: 1;
	min-width: 0;
	padding: 0.75rem;
}

@media (min-width: 1024px) {
	.vault-home .vault-unit-card__body {
		padding: 1rem;
	}
}

.vault-home .vault-unit-card__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 0.5rem;
}

.vault-home .vault-unit-card__title-wrap {
	min-width: 0;
	flex: 1;
}

.vault-home .vault-unit-card__title-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
	min-width: 0;
}

.vault-home .vault-unit-card__title-row h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-ink);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.vault-home .vault-unit-card__size {
	flex-shrink: 0;
	padding: 0.25rem 0.5rem;
	border-radius: 9999px;
	background: #f1f4f9;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	color: #77746b;
}

.vault-home .vault-unit-card__meta-line {
	margin: 0.25rem 0 0;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--color-text-muted);
}

.vault-home .vault-unit-card__stats {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	margin: 0.25rem 0 0;
}

.vault-home .vault-unit-card__stat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.75rem;
	line-height: 1.4;
	color: var(--color-text-muted);
}

.vault-home .vault-unit-card__stat svg {
	flex-shrink: 0;
	color: #b28e2e;
}

.vault-home .vault-unit-card__available {
	display: none;
	flex-shrink: 0;
	align-items: center;
	padding: 0.25rem 0.5rem;
	border-radius: 9999px;
	background: var(--color-success-bg);
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-success-text);
}

@media (min-width: 1024px) {
	.vault-home .vault-unit-card__available {
		display: inline-flex;
	}
}

/* Price: mt-2 text-lg lg:mt-5 lg:text-xl */
.vault-home .vault-unit-card__price {
	margin: 0.5rem 0 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--color-ink);
}

@media (min-width: 1024px) {
	.vault-home .vault-unit-card__price {
		margin-top: 1.25rem;
		font-size: 1.25rem;
	}
}

.vault-home .vault-unit-card__price span {
	font-size: 0.75rem;
	font-weight: 400;
	color: var(--color-text-subtle);
}

/* Actions: stack on mobile/tablet, side-by-side from lg */
.vault-home .vault-unit-card__actions {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

@media (min-width: 1024px) {
	.vault-home .vault-unit-card__actions {
		flex-direction: row;
		margin-top: 1rem;
	}
}

.vault-home .vault-unit-card__reserve {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 2.5rem;
	padding: 0;
	border: none;
	border-radius: 0.5rem;
	background: var(--color-red);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-white);
	text-decoration: none;
	box-shadow: none;
}

.vault-home .vault-unit-card__reserve:hover,
.vault-home .vault-unit-card__reserve:focus-visible {
	background: var(--color-red-hover);
	color: var(--color-white);
}

.vault-home .vault-unit-card__details {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	width: 100%;
	min-height: 2.5rem;
	padding: 0 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background: transparent;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-red);
	text-decoration: none;
	white-space: nowrap;
}

@media (min-width: 640px) {
	.vault-home .vault-unit-card__reserve,
	.vault-home .vault-unit-card__details {
		min-height: 2.625rem;
	}
}

@media (min-width: 1024px) {
	.vault-home .vault-unit-card__reserve {
		flex: 1 1 0%;
		width: auto;
		min-height: 2.75rem;
	}

	.vault-home .vault-unit-card__details {
		flex: 0 0 auto;
		width: auto;
		min-height: 2.75rem;
	}
}

.vault-home .vault-unit-card__details:hover,
.vault-home .vault-unit-card__details:focus-visible {
	background: var(--color-red-light);
	color: var(--color-red);
}

/* View All: mt-8, min-h-11, px-5, text-sm font-bold */
.vault-home .vault-units--landing .vault-section-cta {
	margin-top: 2rem;
	text-align: center;
}

.vault-home .vault-units--landing .vault-view-all-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 2.75rem;
	padding: 0 1.25rem;
	border: 1px solid #b7c7e4;
	border-radius: 0.5rem;
	background: var(--color-white);
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--color-red);
	text-decoration: none;
	transition: background 0.2s ease;
}

.vault-home .vault-units--landing .vault-view-all-btn:hover,
.vault-home .vault-units--landing .vault-view-all-btn:focus-visible {
	background: #f8fbff;
	color: var(--color-red);
}

.vault-home .vault-units--landing .vault-view-all-btn svg {
	flex-shrink: 0;
}
