/**
 * Featured realtor luxury panel v1 — prototype skin (scoped).
 * Root: `.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin` so shared templates
 * (`.realtor-card`, `.listing-thumb`) are not affected elsewhere.
 */

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin {
	--regbc-frlp-v2-bg: #002B4B;
	--regbc-frlp-v2-badge: rgba(32, 101, 153, 0.6);
	--regbc-frlp-v2-card-radius: 10px;
	--regbc-frlp-v2-shadow-realtor: 0px 20px 40px #00000080;
	--regbc-frlp-v2-shadow-listing: 0px 10px 20px #0000004d;
	/* Design ratios: listings use aspect-ratio for height; realtor matches their height via flex stretch (see row rules). */
	--regbc-frlp-v2-aspect-realtor: 399 / 399;
	--regbc-frlp-v2-aspect-listing: 3 / 2;
	--regbc-frlp-v2-divider: rgba(147, 180, 210, 0.45);
	/* How far past the track edges the nav buttons sit (negative = outside full-width .swiper) */
	--regbc-frlp-v2-nav-outside: -2.5rem;
	position: relative;
	box-sizing: border-box;
}

/*
 * Full-width track; arrows absolutely positioned outside via negative left/right on the wrap.
 * Parent overflow must allow horizontal bleed (see area panel skin).
 */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: visible;
	box-sizing: border-box;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap .regbc-frlp-v2-swiper {
	position: relative;
	width: 100%;
	min-width: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper .swiper-slide {
	height: auto;
	box-sizing: border-box;
}

/* Arrows only (no dots) — match prototype */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper .swiper-pagination {
	display: none;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap .swiper-button-prev,
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap .swiper-button-next {
	position: absolute;
	top: 50%;
	left: auto;
	right: auto;
	margin-top: 0;
	z-index: 5;
	transform: translateY(-50%);
	color: #fff;
	width: 2rem;
	height: 2rem;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap .swiper-button-prev {
	left: var(--regbc-frlp-v2-nav-outside);
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap .swiper-button-next {
	right: var(--regbc-frlp-v2-nav-outside);
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap .swiper-button-prev::after,
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-swiper-wrap .swiper-button-next::after {
	font-size: 1.25rem;
	font-weight: 700;
}

@media (max-width: 520px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin {
		--regbc-frlp-v2-nav-outside: -1.25rem;
	}
}

/* One row per slide: realtor | listing | listing
   Equal height: listings set row height via aspect-ratio; realtor has no ratio on large screens
   and stretches (align-items: stretch) so all cards share one height. */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row {
	display: flex !important;
	flex-direction: row !important;
	align-items: stretch;
	gap: clamp(0.65rem, 2vw, 1.15rem);
	width: 100%;
	min-height: 0;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card {
	position: relative;
	flex: 0 0 clamp(220px, 28vw, 300px);
	width: clamp(220px, 28vw, 300px);
	max-width: 100%;
	align-self: stretch;
	min-height: 0;
	height: auto;
	margin: 0;
	border-radius: var(--regbc-frlp-v2-card-radius);
	overflow: hidden;
	box-shadow: var(--regbc-frlp-v2-shadow-realtor);
	background-size: cover;
	background-position: center;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .realtor-image {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .realtor-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 0.2rem;
	padding: 1.75rem 1rem 1.1rem;
	margin: 0;
	width: 100% !important;
	min-height: unset !important;
	text-align: left !important;
	background: transparent linear-gradient(180deg, #00000000 0%, #000000 100%) 0 0 no-repeat padding-box;
	color: #fff !important;
	box-sizing: border-box;
	font-family: 'Inter';
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content h4 {
	font-size: var(--font-size-base);
	font-weight: 300;
	margin: 0;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content h4::after {
	content: none;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content span {
    font-size: var(--font-size-base);
	font-weight: 300;
	display: block;
	margin: 0;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .link-cover {
	z-index: 4;
}

/* Listing cards */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	align-self: stretch;
	aspect-ratio: var(--regbc-frlp-v2-aspect-listing);
	min-height: 0;
	margin: 0 !important;
	border-radius: var(--regbc-frlp-v2-card-radius);
	overflow: hidden;
	box-shadow: var(--regbc-frlp-v2-shadow-listing);
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .listing-image {
	position: absolute;
	inset: 0;
	padding-top: 0 !important;
	min-height: 100% !important;
	background-size: cover;
	background-position: center;
	z-index: 0;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb a.link-overlay {
	z-index: 5;
}

/* Footer layout: flex + order so price + thumb-info share one row, left-aligned with address (DOM order differs). */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .listing-details-thumb {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	column-gap: 2rem;
	row-gap: 0.5rem;
	min-height: 0 !important;
	height: auto !important;
	padding: 1.75rem 1rem 1rem clamp(0.85rem, 2.5vw, 1.25rem) !important;
	background: transparent linear-gradient(180deg, #00000000 0%, #000000 100%) 0% 0% no-repeat padding-box !important;
	color: #fff !important;
	text-shadow: none;
	box-sizing: border-box;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .listing-details-thumb .address {
	flex: 1 1 100%;
	order: 1;
	width: 100%;
	text-align: left;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .street {
	font-weight: 500;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .price {
	order: 2;
	flex: 0 0 auto;
	position: relative !important;
	top: auto !important;
	right: auto !important;
	left: auto !important;
	margin: 0 !important;
	padding: 0 !important;
	text-align: left !important;
	font-size: 1rem;
}

/* Vertical rule after price when stats follow (same row via flex order) */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .listing-details-thumb .price::after {
	content: "";
	position: absolute;
	right: -1rem;
	top: 50%;
	transform: translateY(-50%);
	height: 1.2em;
	width: 1px;
	background-color: var(--accent, rgba(255, 255, 255, 0.45));
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin
	.regbc-frlp-v2-row
	.listing-thumb
	.listing-details-thumb:not(:has(.thumb-info))
	.price::after {
	display: none;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .thumb-info {
	order: 3;
	flex: 0 1 auto;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 2rem;
	margin: 0;
	min-width: 0;
	font-size: 1rem;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .thumb-info > div {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin: 0 !important;
	position: relative;
}

/* Vertical rules between bed / bath / sqft (listing_grid layout_2 style) */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .thumb-info > div:not(:last-child)::after {
	content: "";
	position: absolute;
	right: -1rem;
	top: 50%;
	transform: translateY(-50%);
	height: 1.2em;
	width: 1px;
	background-color: var(--accent, rgba(255, 255, 255, 0.45));
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .thumb-info .label {
	opacity: 0.95;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .firm {
	flex: 1 1 100%;
	order: 4;
	max-height: none;
	margin-top: 0.15rem;
	margin-bottom: 0.5rem;
	font-size: 0.68rem !important;
	font-weight: 500;
	text-align: left;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.9;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb .firm:empty {
	display: none;
}

/* Placeholder / advertise card inside row */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb.listing-placeholder {
	background-size: cover;
	background-position: center;
	display: flex;
}

/* When only one listing card is present (2nd child after realtor), prevent extra-tall growth. */
@media (min-width: 1024px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin
		.regbc-frlp-v2-row
		> .listing-thumb:last-child:nth-child(2) {
		aspect-ratio: 3 / 1;
	}
}

/* Around 1200px, rows use a taller single-card ratio (6/5), so the double-width
   single listing card needs a matching double-width ratio to keep equal row height. */
@media (max-width: 1280px) and (min-width: 1024px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin
		.regbc-frlp-v2-row
		> .listing-thumb:last-child:nth-child(2) {
		aspect-ratio: 12 / 5;
	}
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb.listing-placeholder .listing-details-thumb,
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb.listing-placeholder .cta-realtor-content {
	position: relative;
	z-index: 2;
}

/*
 * CTA fallback (no swiper) — same row model as .regbc-frlp-v2-row:
 * narrow realtor column + flex-grow listing thumbs (overrides global .cta-realtor-1 35% / 60vh / calc(65%/3)).
 */
.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: clamp(0.65rem, 2vw, 1.15rem);
	width: 100%;
	min-width: 0;
	min-height: 0;
	box-sizing: border-box;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 .cta-realtor-card {
	position: relative;
	flex: 0 0 clamp(220px, 28vw, 300px);
	width: clamp(220px, 28vw, 300px) !important;
	max-width: 100%;
	min-width: 0;
	min-height: 0;
	height: auto !important;
	align-self: stretch;
	background-size: cover;
	background-position: center;
	border-radius: var(--regbc-frlp-v2-card-radius);
	box-shadow: var(--regbc-frlp-v2-shadow-realtor);
	overflow: hidden;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 .cta-listing-thumb {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	width: auto !important;
	margin: 0 !important;
	align-self: stretch;
	aspect-ratio: var(--regbc-frlp-v2-aspect-listing);
	min-height: 0;
	background-size: cover;
	background-position: center;
	border-radius: var(--regbc-frlp-v2-card-radius);
	box-shadow: var(--regbc-frlp-v2-shadow-listing);
	overflow: hidden;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 .cta-listing-thumb .link-overlay {
	position: absolute;
	inset: 0;
	z-index: 5;
}

.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-content .btn-red {
	min-width: 0;
	border-radius: 10px;
}

/* Match real slides: hide 3rd listing below desktop */
@media (max-width: 1023px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 .cta-listing-thumb:nth-child(3) {
		display: none !important;
	}
}

/* Stack like .regbc-frlp-v2-row; undo global mobile rule that hides CTA thumbs */
@media (max-width: 768px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 {
		flex-direction: column;
		flex-wrap: nowrap;
		align-items: stretch;
		gap: clamp(0.45rem, 2vw, 0.65rem);
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 .cta-realtor-card {
		flex: none;
		width: 100% !important;
		max-width: 100%;
		min-height: clamp(200px, 55vw, 280px);
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-1 .cta-listing-thumb {
		display: block !important;
		flex: none;
		width: 100% !important;
	}
}

/* Keep listing card ratio consistent with featured-area-realtors cards on all breakpoints. */

/* Around ~1200px: make cards taller where height feels compressed. */
@media (max-width: 1280px) and (min-width: 769px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin {
		--regbc-frlp-v2-aspect-listing: 6 / 5;
	}
}

/* Below desktop (1024): realtor + one listing only (row 1 = realtor card, rows 2–3 = listing thumbs). */
@media (max-width: 1023px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row > .listing-thumb:nth-child(3) {
		display: none !important;
	}

	/* Placeholder CTA: keep heading and button only on smaller screens */
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .cta-realtor-content > span {
		display: none;
	}
}

/* Mobile: compact strip [info | photo] above listing — short row, brand blue info, square headshot. */
@media (max-width: 768px) {
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row {
		flex-direction: column !important;
		align-items: stretch;
		gap: clamp(0.45rem, 2vw, 0.65rem);
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card {
		flex: none;
		display: flex;
		flex-direction: row;
		align-items: stretch;
		width: 100% !important;
		max-width: 100%;
		min-height: 0;
		height: auto !important;
		aspect-ratio: unset;
		overflow: hidden;
		background-color: transparent !important;
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content {
		order: 1;
		position: relative !important;
		left: auto !important;
		right: auto !important;
		bottom: auto !important;
		top: auto !important;
		flex: 1 1 0;
		min-width: 0;
		width: auto !important;
		align-self: stretch;
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 0.2rem;
		padding: 0.85rem 0.75rem 0.85rem 0.75rem !important;
		min-height: unset !important;
		text-align: left !important;
		background: #004990 !important;
		color: #fff !important;
		box-sizing: border-box;
		border-radius: var(--regbc-frlp-v2-card-radius) 0 0 var(--regbc-frlp-v2-card-radius);
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content h4,
	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content span {
		color: inherit !important;
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content h4 {
		font-size: 0.9rem;
		font-weight: 600;
		line-height: 1.25;
		margin: 0;
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content h4::after {
		opacity: 0.85;
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .card-content span {
		font-size: 0.75rem;
		font-weight: 400;
		line-height: 1.3;
		opacity: 0.92;
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .realtor-image {
		order: 2;
		position: relative !important;
		inset: auto !important;
		flex: 0 0 clamp(68px, 19vw, 88px);
		width: clamp(68px, 19vw, 88px);
		align-self: stretch;
		min-height: clamp(68px, 19vw, 88px);
		border-radius: 0 var(--regbc-frlp-v2-card-radius) var(--regbc-frlp-v2-card-radius) 0;
		box-shadow: inset 0 0 0 1px rgba(0, 43, 75, 0.08);
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .realtor-image img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center top;
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .realtor-card .link-cover {
		z-index: 6;
	}

	.featured-realtor-luxury-panel-v1.regbc-frlp-v2-skin .regbc-frlp-v2-row .listing-thumb {
		flex: none;
		width: 100%;
	}
}
