/**
 * Homepage 2 hero — split copy/search + an asymmetric photo collage with a
 * floating price card and an avatar-stack trust chip. The
 * modern-marketplace counterpart to hero.css's full-bleed-photo design.
 */

.rentiva-hero2 {
	/* `.site-main`'s header-clearance padding-top is zeroed out for the
	   front page (layout.css) since Homepage 1's hero goes full-bleed
	   under its transparent header — but Homepage 2's header is solid
	   (not `rentiva-header-on-media`), so this section's own padding-top
	   is what keeps its content, including the avatar-chip badge below,
	   clear of the fixed header (--rentiva-header-height(-lg)). */
	padding-top: 7.5rem;
	padding-bottom: 4.5rem;
	background-color: var(--rentiva-background);
}

@media (min-width: 901px) {
	.rentiva-hero2 {
		padding-top: 8.5rem;
		padding-bottom: 6rem;
	}
}

.rentiva-hero2__grid {
	display: grid;
	gap: 3rem;
	align-items: center;
}

@media (min-width: 901px) {
	.rentiva-hero2__grid {
		grid-template-columns: 1.05fr 0.95fr;
		gap: 4rem;
	}
}

/* Copy column ------------------------------------------------------------ */

.rentiva-hero2__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.45rem 1rem;
	border-radius: var(--rentiva-radius-pill);
	background: var(--rentiva-chip-bg);
}

.rentiva-hero2__eyebrow-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--rentiva-primary);
	flex-shrink: 0;
}

.rentiva-hero2__eyebrow span:last-child {
	font-family: var(--rentiva-font-sans);
	font-size: var(--rentiva-text-xs);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--rentiva-primary);
}

.rentiva-hero2-title {
	font-family: var(--rentiva-font-display);
	font-weight: 800;
	font-size: clamp(2.5rem, 2rem + 2.2vw, 3.4rem);
	line-height: 1.08;
	letter-spacing: -0.02em;
	color: var(--rentiva-foreground);
	margin-top: 1.25rem;
}

.rentiva-hero2-title__accent {
	color: var(--rentiva-primary);
}

.rentiva-hero2__subtitle {
	font-size: var(--rentiva-text-lg);
	line-height: 1.65;
	color: var(--rentiva-muted-foreground);
	max-width: 30rem;
	margin-top: 1.25rem;
}

.rentiva-hero2__search {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	max-width: 32rem;
	margin-top: 2rem;
	background: var(--rentiva-card);
	border: 1px solid var(--rentiva-border);
	border-radius: var(--rentiva-radius-pill);
	padding: 0.4rem 0.4rem 0.4rem 1.15rem;
	box-shadow: var(--rentiva-shadow-card);
}

.rentiva-hero2__search .rentiva-field--autocomplete {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	min-width: 0;
}

.rentiva-hero2__search-icon {
	flex-shrink: 0;
	display: inline-flex;
	color: var(--rentiva-field-muted);
}

.rentiva-hero2__search-input {
	padding-block: 0.65rem;
}

.rentiva-hero2__search-submit {
	flex-shrink: 0;
	padding: 0.75rem 1.5rem;
	background: var(--rentiva-primary);
	color: var(--rentiva-primary-foreground);
	border-radius: var(--rentiva-radius-pill);
	font-family: var(--rentiva-font-sans);
	font-size: var(--rentiva-text-sm);
	font-weight: 700;
	transition: background-color var(--rentiva-transition);
}

.rentiva-hero2__search-submit:hover {
	background: var(--rentiva-primary-dark);
}

.rentiva-hero2__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin-top: 1.25rem;
}

.rentiva-hero2__pill {
	padding: 0.5rem 1rem;
	background: var(--rentiva-card);
	border: 1px solid var(--rentiva-border);
	border-radius: var(--rentiva-radius-pill);
	font-size: var(--rentiva-text-sm);
	font-weight: 600;
	color: var(--rentiva-foreground);
	transition: border-color var(--rentiva-transition), color var(--rentiva-transition);
}

.rentiva-hero2__pill:hover {
	border-color: var(--rentiva-primary);
	color: var(--rentiva-primary);
}

/* Collage column ----------------------------------------------------------- */

.rentiva-hero2__collage {
	position: relative;
}

.rentiva-hero2__collage-large {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	border-radius: var(--rentiva-radius-xl);
	/* No overflow: hidden here — the floating price card (below) is a child
	   of this box, positioned to hang past its bottom edge; clipping this
	   box would clip the card too. The image itself carries the rounding
	   instead (a replaced element clips its own content to its own
	   border-radius, so the corners still round without it). */
	background: linear-gradient(135deg, var(--rentiva-primary) 0%, var(--rentiva-dark) 100%);
}

.rentiva-hero2__collage-image {
	width: 100%;
	/* !important: overrides Elementor's own `.elementor img { height: auto }` reset
	   (specificity 0,1,1 beats this single class) — see docs/elementor.md. */
	height: 100% !important;
	object-fit: cover;
	display: block;
}

.rentiva-hero2__collage-large .rentiva-hero2__collage-image {
	border-radius: var(--rentiva-radius-xl);
}

.rentiva-hero2__collage-image--placeholder {
	display: block;
}

.rentiva-hero2__floating-card {
	position: absolute;
	left: 1.25rem;
	bottom: -1.5rem;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	background: var(--rentiva-card);
	border-radius: var(--rentiva-radius-lg);
	padding: 0.75rem 1rem;
	box-shadow: var(--rentiva-shadow-floating);
}

.rentiva-hero2__floating-card-thumb {
	width: 42px;
	height: 42px;
	border-radius: 0.75rem;
	background: var(--rentiva-chip-bg);
	flex-shrink: 0;
	display: block;
}

.rentiva-hero2__floating-card-title,
.rentiva-hero2__floating-card-meta {
	display: block;
}

.rentiva-hero2__floating-card-title {
	font-family: var(--rentiva-font-display);
	font-weight: 700;
	font-size: var(--rentiva-text-sm);
	color: var(--rentiva-foreground);
}

.rentiva-hero2__floating-card-meta {
	font-size: var(--rentiva-text-xs);
	color: var(--rentiva-muted-foreground);
	margin-top: 0.15rem;
}

.rentiva-hero2__collage-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
	margin-top: 2.5rem;
}

.rentiva-hero2__collage-tile {
	position: relative;
	aspect-ratio: 1 / 1;
	border-radius: var(--rentiva-radius-lg);
	overflow: hidden;
	background: var(--rentiva-secondary);
}

.rentiva-hero2__avatar-chip {
	position: absolute;
	/* Floats clear above the large photo's top edge, with room to spare
	   below the fixed header (unlike the floating price card, which
	   intentionally tucks half into the photo's bottom edge) — the
	   section's own padding-top above is sized to fit this. Pulled up less
	   below 901px, where `.rentiva-hero2__grid` stacks to one column: its
	   3rem row-gap is the chip's only buffer above the stacked content
	   before it (the search pills), so a -3rem pull here would leave zero
	   room to spare. */
	top: -2rem;
	right: 0.5rem;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.6rem;
	background: var(--rentiva-card);
	border-radius: var(--rentiva-radius-pill);
	padding: 0.5rem 1rem 0.5rem 0.5rem;
	box-shadow: var(--rentiva-shadow-card-hover);
}

@media (min-width: 901px) {
	.rentiva-hero2__avatar-chip {
		/* The grid's row-gap is 4rem here (vs. 3rem stacked below 901px),
		   so a fuller pull still leaves a clear 1rem buffer above the chip. */
		top: -3rem;
	}
}

.rentiva-hero2__avatar-stack {
	display: flex;
}

.rentiva-hero2__avatar {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: 2px solid var(--rentiva-card);
	color: #FFFFFF;
	font-size: 0.6rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.rentiva-hero2__avatar--1 { background: var(--rentiva-primary); }
.rentiva-hero2__avatar--2 { background: var(--rentiva-star); }
.rentiva-hero2__avatar--3 { background: var(--rentiva-muted-foreground); margin-left: -8px; }
.rentiva-hero2__avatar--2 { margin-left: -8px; }

.rentiva-hero2__avatar-chip span:last-child {
	font-size: var(--rentiva-text-xs);
	font-weight: 700;
	color: var(--rentiva-foreground);
}

@media (max-width: 480px) {
	.rentiva-hero2__search {
		flex-wrap: wrap;
		border-radius: var(--rentiva-radius-lg);
	}

	.rentiva-hero2__search-submit {
		width: 100%;
	}
}
