/* 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%;
}
/* Tall: 1 column × 4 rows — all 4 images fill the strip height evenly */
.elementor-widget-rpl-single-gallery .rpl-hero__side--tall {
	grid-template-columns: 1fr;
	grid-template-rows: 1fr 1fr 1fr 1fr;
	height: 100%;
	min-height: 0;
	align-content: stretch;
}
.elementor-widget-rpl-single-gallery .rpl-hero__side--tall > a,
.elementor-widget-rpl-single-gallery .rpl-hero__side--tall > .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;
	}
}
/* ── Contact button mode ── */
.elementor-widget-rpl-single-agents .rpl-agent-card__contacts--btn {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 16px;
	border-radius: 6px;
	background-color: #4caf50;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	box-sizing: border-box;
	border: none;
	transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__btn:hover {
	opacity: 0.85;
	text-decoration: none;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__btn--icon-only {
	padding: 9px;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	font-size: 14px;
}
.elementor-widget-rpl-single-agents .rpl-agent-card__btn-icon i,
.elementor-widget-rpl-single-agents .rpl-agent-card__btn-icon svg {
	display: block;
}

/* ---- 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: center;
	gap: 8px;
}
.elementor-widget-rpl-single-highlights .rpl-single-el__hi-bullet {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}
.elementor-widget-rpl-single-highlights .rpl-single-el__hi-bullet i,
.elementor-widget-rpl-single-highlights .rpl-single-el__hi-bullet svg {
	display: block;
}
.elementor-widget-rpl-single-highlights .rpl-single-el__hi-text {
	flex: 1 1 0;
	min-width: 0;
}

/* =====================================================================
   Single Gallery – Sold/Leased stamp
   Visual styles (color, border, typography) are controlled by Elementor.
   These rules handle structural positioning and the rotation CSS variable.
   ===================================================================== */
.elementor-widget-rpl-single-gallery .rpl-hero__main {
	position: relative;
}
.elementor-widget-rpl-single-gallery .rpl-hero__stamp {
	position: absolute;
	z-index: 10;
	pointer-events: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	white-space: nowrap;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	font-weight: 700;
}
.elementor-widget-rpl-single-gallery .rpl-hero__stamp--center {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(var(--rpl-stamp-rot, -15deg));
}
.elementor-widget-rpl-single-gallery .rpl-hero__stamp--top-left {
	top: 20px;
	left: 20px;
	transform: rotate(var(--rpl-stamp-rot, -15deg));
	transform-origin: top left;
}
.elementor-widget-rpl-single-gallery .rpl-hero__stamp--top-right {
	top: 20px;
	right: 20px;
	transform: rotate(var(--rpl-stamp-rot, -15deg));
	transform-origin: top right;
}
.elementor-widget-rpl-single-gallery .rpl-hero__stamp--bottom-left {
	bottom: 20px;
	left: 20px;
	transform: rotate(var(--rpl-stamp-rot, -15deg));
	transform-origin: bottom left;
}
.elementor-widget-rpl-single-gallery .rpl-hero__stamp--bottom-right {
	bottom: 20px;
	right: 20px;
	transform: rotate(var(--rpl-stamp-rot, -15deg));
	transform-origin: bottom right;
}

/* ── Video slot in side strip ────────────────────────────────────────────── */
/*
 * .rpl-hero__video-slot is an <a> tag that lives inside .rpl-hero__side.
 * It inherits all sizing/overflow/background rules from:
 *   .rpl-hero__side a { aspect-ratio: 16/9; background: #f1f4f7; overflow: hidden; }
 * We only need to add position:relative and pointer styling on top.
 */
.elementor-widget-rpl-single-gallery .rpl-hero__video-slot {
	position: relative;
	cursor: pointer;
	text-decoration: none;
}
.elementor-widget-rpl-single-gallery .rpl-hero__video-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: #1c1c2e;
}

/* ── Video item in gallery grid modal ──────────────────────────────────────── */
/*
 * .rpl-gallery__video-item sits in the same grid as .rpl-gallery__item.
 * Matches .rpl-gallery__item styles: cursor pointer, no border/bg, overflow hidden.
 */
.rpl-gallery__video-item {
	position: relative;
	cursor: pointer;
	overflow: hidden;
	border-radius: 4px;
	background: #1c1c2e;
	break-inside: avoid;
}
.rpl-gallery__video-item img {
	width: 100%;
	display: block;
}
.rpl-gallery__video-placeholder {
	/* Shown when no thumbnail is available (Vimeo / other) */
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #1c1c2e;
}

/* ── Shared play-icon overlay (side strip + gallery grid) ─────────────────── */
.rpl-video-play-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 36px;
	line-height: 1;
	transition: background 0.18s ease;
	pointer-events: none;
}
.rpl-video-play-icon svg {
	display: block;
	filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}
/* Hover states — triggered by parent <a> or <div> */
.elementor-widget-rpl-single-gallery .rpl-hero__video-slot:hover .rpl-video-play-icon,
.rpl-gallery__video-item:hover .rpl-video-play-icon {
	background: rgba(0, 0, 0, 0.55);
}

/* ── Video popup modal ───────────────────────────────────────────────────── */
.rpl-hero__video-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.rpl-hero__video-modal[hidden] {
	display: none;
}
.rpl-hero__video-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	cursor: pointer;
}
.rpl-hero__video-panel {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 960px;
	background: #000;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	animation: rpl-vmod-in 0.22s ease;
}
@keyframes rpl-vmod-in {
	from { opacity: 0; transform: scale(0.94); }
	to   { opacity: 1; transform: scale(1); }
}
.rpl-hero__video-frame {
	position: relative;
	padding-bottom: 56.25%; /* 16:9 */
	height: 0;
}
.rpl-hero__video-frame iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: none;
}
.rpl-hero__video-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	background: rgba(255, 255, 255, 0.15);
	border: 1px solid rgba(255, 255, 255, 0.25);
	color: #fff;
	font-size: 1.4rem;
	line-height: 1;
	padding: 4px 11px 6px;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.15s;
}
.rpl-hero__video-close:hover {
	background: rgba(255, 255, 255, 0.3);
}
/* Prevent body scroll while video modal is open */
body.rpl-vmod-open {
	overflow: hidden;
}
