/* Scoped helpers for Reprecinct Single widgets (Elementor). */
.elementor-widget-rpl-single-car-space .rpl-single-el__car-space-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.elementor-widget-rpl-single-breadcrumbs .rpl-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.elementor-widget-rpl-single-breadcrumbs .rpl-breadcrumbs a {
	text-decoration: none;
}
.elementor-widget-rpl-single-breadcrumbs .rpl-breadcrumbs__sep {
	list-style: none;
	user-select: none;
}
/*
 * Gallery row: flex (not % grid tracks) so main/side width controls map to the correct column.
 * Weight defaults 50 : 50 via Elementor NUMBER → flex: {n} 1 0%.
 */
.elementor-widget-rpl-single-gallery .rpl-hero__grid:not(.rpl-hero__grid--single) {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	/* Fixed default row height; Elementor "Grid height" control overrides this.
	 * Prevents tall portrait images from making the whole row huge. */
	height: 600px;
}
.elementor-widget-rpl-single-gallery .rpl-hero__grid:not(.rpl-hero__grid--single) .rpl-hero__main,
.elementor-widget-rpl-single-gallery .rpl-hero__grid:not(.rpl-hero__grid--single) .rpl-hero__side {
	min-width: 0;
	box-sizing: border-box;
}
/* Main: image fills the flex cell */
.elementor-widget-rpl-single-gallery .rpl-hero__main {
	position: relative;
	width: 100%;
	max-width: 100%;
}
.elementor-widget-rpl-single-gallery .rpl-hero__main > a {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
}
.elementor-widget-rpl-single-gallery .rpl-hero__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
/* Side strip fills cell; thumbs fill cells */
.elementor-widget-rpl-single-gallery .rpl-hero__side {
	align-self: stretch;
	min-height: 0;
	height: 100%;
	width: 100%;
	max-width: 100%;
}
.elementor-widget-rpl-single-gallery .rpl-hero__side a {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 0;
}
.elementor-widget-rpl-single-gallery .rpl-hero__side .rpl-hero__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}
/* Tablet: optional stack */
@media (max-width: 1024px) {
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-tl--stack:not(.rpl-hero__grid--single) {
		flex-direction: column;
		/* Release fixed height when stacking so each image gets its own row. */
		height: auto;
	}
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-tl--stack:not(.rpl-hero__grid--single) .rpl-hero__main,
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-tl--stack:not(.rpl-hero__grid--single) .rpl-hero__side {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		height: auto;
	}
}
/* Mobile: stack or compact (main + 2 thumbs in one row) */
@media (max-width: 767px) {
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--stack:not(.rpl-hero__grid--single) {
		flex-direction: column;
		height: auto;
	}
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--stack:not(.rpl-hero__grid--single) .rpl-hero__main,
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--stack:not(.rpl-hero__grid--single) .rpl-hero__side {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		height: auto;
	}
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--compact:not(.rpl-hero__grid--single) {
		flex-direction: column;
		height: auto;
	}
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--compact:not(.rpl-hero__grid--single) .rpl-hero__main {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
	}
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--compact:not(.rpl-hero__grid--single) .rpl-hero__side {
		flex: 1 1 auto;
		width: 100%;
		max-width: 100%;
		height: auto;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		grid-auto-rows: auto;
		align-content: start;
	}
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--compact:not(.rpl-hero__grid--single) .rpl-hero__side > a,
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--compact:not(.rpl-hero__grid--single) .rpl-hero__side > .rpl-ph {
		aspect-ratio: 16 / 9;
		height: auto;
		min-height: 0;
	}
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--compact:not(.rpl-hero__grid--single) .rpl-hero__side > a:nth-child(n + 3),
	.elementor-widget-rpl-single-gallery .rpl-hero__grid.rpl-g-mo--compact:not(.rpl-hero__grid--single) .rpl-hero__side > .rpl-ph:nth-child(n + 3) {
		display: none;
	}
}
/* Gallery: main + side column share row height; 2×2 side cells fill the strip */
.elementor-widget-rpl-single-gallery .rpl-hero__grid {
	align-items: stretch;
}
.elementor-widget-rpl-single-gallery .rpl-hero__side--stack {
	grid-template-columns: 1fr;
}
.elementor-widget-rpl-single-gallery .rpl-hero__side--grid {
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	height: 100%;
	min-height: 0;
	align-content: stretch;
}
.elementor-widget-rpl-single-gallery .rpl-hero__side--grid > a,
.elementor-widget-rpl-single-gallery .rpl-hero__side--grid > .rpl-ph {
	aspect-ratio: unset;
	min-height: 0;
	height: 100%;
}
.elementor-widget-rpl-single-title .rpl-single-el__title {
	margin: 0;
}
.elementor-widget-rpl-single-badges .rpl-single-el__badges {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.elementor-widget-rpl-single-badges .rpl-single-el__badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
}
.elementor-widget-rpl-single-areas .rpl-single-el__areas-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.elementor-widget-rpl-single-brochure .rpl-single-el__btn-wrap,
.elementor-widget-rpl-single-enquiry .rpl-single-el__btn-wrap {
	text-align: inherit;
}
/* Map iframe: classic single.css adds margin/border on .rpl-map-embed; keep Elementor style controls predictable. */
.elementor-widget-rpl-single-map .rpl-map-embed {
	display: block;
	width: 100%;
	margin-top: 0;
	vertical-align: top;
}

/* ---- Agent Cards ---- */
.elementor-widget-rpl-single-agents .rpl-agentlist-el {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}
.elementor-widget-rpl-single-agents .rpl-agent-card {
	display: flex;
	flex-direction: row;
	align-items: flex-start;
	gap: 16px;
	background: #fff;
	border: 1px solid #e8edf3;
	border-radius: 6px;
	box-sizing: border-box;
	padding: 20px;
}
/* Photo circle */
.elementor-widget-rpl-single-agents .rpl-agent-card__photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	flex: 0 0 auto;
	background: #dde8ee;
	box-sizing: border-box;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
/* Info column */
.elementor-widget-rpl-single-agents .rpl-agent-card__body {
	flex: 1 1 0;
	min-width: 0;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__name {
	font-weight: 700;
	margin: 0 0 2px;
	word-break: break-word;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__role {
	color: #8795a1;
	font-size: 13px;
	margin: 0 0 10px;
}
/* Contact list */
.elementor-widget-rpl-single-agents .rpl-agent-card__contacts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__contact {
	display: flex;
	align-items: baseline;
	gap: 6px;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__clabel {
	font-size: 12px;
	color: #8795a1;
	white-space: nowrap;
	min-width: 52px;
	flex: 0 0 auto;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__cval {
	word-break: break-all;
	min-width: 0;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__cval a {
	text-decoration: none;
	color: inherit;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__cval a:hover {
	text-decoration: underline;
}
/* Responsive: stack to 1 column on mobile */
@media (max-width: 767px) {
	.elementor-widget-rpl-single-agents .rpl-agentlist-el {
		grid-template-columns: 1fr;
	}
}

/* ---- Highlights list ---- */
.elementor-widget-rpl-single-highlights .rpl-single-el__highlights-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}
.elementor-widget-rpl-single-highlights .rpl-single-el__highlight {
	display: flex;
	flex-direction: row;
	align-items: baseline;
	gap: 8px;
}
.elementor-widget-rpl-single-highlights .rpl-single-el__hi-bullet {
	flex: 0 0 auto;
	line-height: inherit;
}
.elementor-widget-rpl-single-highlights .rpl-single-el__hi-text {
	flex: 1 1 0;
	min-width: 0;
}
