/* ==========================================================================
   Property Listing Pro — front-end styles
   Colors / radius / width come from Settings → Design (CSS variables below).
   Override anything in Settings → Advanced → Custom CSS.
   ========================================================================== */

.rpl-wrap,
.rpl-lightbox {
	--rpl-primary: #111111;
	--rpl-accent: #c8a24a;
	--rpl-dark: #16181d;
	--rpl-text: #1f2328;
	--rpl-muted: #6b7280;
	--rpl-border: #e8eaef;
	--rpl-soft: #f6f7f9;
	--rpl-bg: #ffffff;
	--rpl-radius: 12px;
	--rpl-width: 1200px;
	--rpl-card-ratio: 4/3;
	--rpl-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 6px 20px rgba(16, 24, 40, .06);
	--rpl-wa: #22c55e;
}

.rpl-wrap {
	color: var(--rpl-text);
	font-family: var(--rpl-font, inherit);
	font-size: 15px;
	line-height: 1.6;
}
.rpl-wrap *,
.rpl-wrap *::before,
.rpl-wrap *::after { box-sizing: border-box; }
.rpl-wrap img { max-width: 100%; display: block; }
.rpl-wrap h1, .rpl-wrap h2, .rpl-wrap h3 { margin: 0; color: var(--rpl-text); font-family: inherit; letter-spacing: -.01em; }
.rpl-wrap p { margin: 0 0 1em; }
.rpl-wrap a { color: inherit; text-decoration: none; }
.rpl-wrap button { font: inherit; cursor: pointer; }
.rpl-ico { flex: 0 0 auto; vertical-align: middle; }

.rpl-single { background: var(--rpl-bg); padding-bottom: 8px; }
.rpl-container { width: 100%; max-width: var(--rpl-width); margin: 0 auto; padding: 0 20px; }

/* ---------- Buttons ---------- */
.rpl-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 18px; border-radius: calc(var(--rpl-radius) - 4px);
	border: 1px solid transparent; font-size: 14px; font-weight: 600; line-height: 1.2;
	transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease, opacity .2s;
	white-space: nowrap;
}
.rpl-btn:hover { transform: translateY(-1px); }
.rpl-btn--primary { background: var(--rpl-primary); color: #fff !important; }
.rpl-btn--primary:hover { opacity: .9; }
.rpl-btn--accent { background: var(--rpl-accent); color: #fff !important; }
.rpl-btn--wa { background: var(--rpl-wa); color: #fff !important; }
.rpl-btn--line { background: transparent; border-color: var(--rpl-border); color: var(--rpl-text) !important; }
.rpl-btn--line:hover { border-color: var(--rpl-text); }
.rpl-btn--ghost { padding: 9px 14px; border-color: var(--rpl-border); color: var(--rpl-text) !important; background: #fff; }
.rpl-btn--ghost:hover { border-color: var(--rpl-text); }
.rpl-btn--block { width: 100%; }
.rpl-link { display: inline-flex; align-items: center; gap: 6px; color: var(--rpl-accent) !important; font-weight: 600; font-size: 13px; }

/* ---------- Header / title ---------- */
.rpl-head { padding: 22px 0 18px; }
.rpl-head--compact { padding: 0 0 18px; }
.rpl-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--rpl-muted); margin-bottom: 14px; }
.rpl-breadcrumb a:hover { color: var(--rpl-text); }
.rpl-breadcrumb span[aria-current] { color: var(--rpl-text); }
.rpl-head__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.rpl-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rpl-tag { display: inline-block; padding: 4px 10px; font-size: 11.5px; font-weight: 600; border-radius: 999px; background: var(--rpl-soft); color: var(--rpl-text); text-transform: uppercase; letter-spacing: .04em; }
.rpl-tag--accent { background: var(--rpl-accent); color: #fff; }
.rpl-title { font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.2; }
.rpl-meta-line { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font-size: 13.5px; color: var(--rpl-muted); }
.rpl-meta-line span { display: inline-flex; align-items: center; gap: 6px; }
.rpl-head__price { text-align: right; flex: 0 0 auto; }
.rpl-head__price-label { display: block; font-size: 12px; color: var(--rpl-muted); text-transform: uppercase; letter-spacing: .06em; }
.rpl-price { color: var(--rpl-accent); font-weight: 700; font-size: 18px; line-height: 1.1; }
.rpl-price small { font-size: .55em; font-weight: 500; color: var(--rpl-muted); margin-left: 3px; }
.rpl-head__price .rpl-price { font-size: clamp(24px, 3vw, 32px); }

/* ---------- Layout columns ---------- */
.rpl-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 28px; }
.rpl-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.rpl-main--full { margin-top: 6px; }
.rpl-sticky { position: sticky; top: 30px; display: flex; flex-direction: column; gap: 20px; }
.admin-bar .rpl-sticky { top: 62px; }

/* ---------- Boxes ---------- */
.rpl-box { background: #fff; border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); padding: 24px; box-shadow: var(--rpl-shadow); }
.rpl-box__title { font-size: 18px !important; font-weight: 700; margin-bottom: 18px !important; }
.rpl-box__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.rpl-box__head .rpl-box__title { margin-bottom: 4px !important; }
.rpl-muted { color: var(--rpl-muted); font-size: 13.5px; display: flex; gap: 6px; align-items: center; margin: 0 !important; }
.rpl-content { color: #3d434c; }
.rpl-content > *:last-child { margin-bottom: 0; }
.rpl-readmore.is-clamped { max-height: 260px; overflow: hidden; position: relative; }
.rpl-readmore.is-clamped::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 80px; background: linear-gradient(transparent, #fff); }
.rpl-readmore__btn { margin-top: 10px; background: none; border: 0; padding: 0; color: var(--rpl-accent); font-weight: 600; font-size: 14px; }

/* ---------- Chips + stats ---------- */
.rpl-chip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--rpl-soft); color: var(--rpl-text); flex: 0 0 auto; }
.rpl-chip--sm { width: 32px; height: 32px; border-radius: 8px; }
.rpl-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rpl-stat { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--rpl-border); border-radius: calc(var(--rpl-radius) - 2px); }
.rpl-stat small, .rpl-kv__item small { display: block; font-size: 12px; color: var(--rpl-muted); line-height: 1.3; }
.rpl-stat strong, .rpl-kv__item strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; }

.rpl-kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.rpl-kv__item { display: flex; align-items: center; gap: 10px; }

.rpl-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
.rpl-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0; }

/* ---------- Map / video ---------- */
.rpl-map, .rpl-embed-box { border-radius: calc(var(--rpl-radius) - 2px); overflow: hidden; background: var(--rpl-soft); }
.rpl-map iframe { display: block; width: 100%; height: 340px; border: 0; }
.rpl-embed-box iframe, .rpl-embed-box video { display: block; width: 100%; aspect-ratio: 16/9; height: auto; border: 0; }

/* ---------- Tabs (nearby) ---------- */
.rpl-tabs-ui__nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.rpl-tabs-ui__nav button { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rpl-border); background: #fff; font-size: 13px; font-weight: 500; color: var(--rpl-text); }
.rpl-tabs-ui__nav button.is-active { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }
.rpl-nearby { list-style: none; margin: 0; padding: 0; }
.rpl-nearby li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--rpl-border); margin: 0; font-size: 14px; }
.rpl-nearby li:last-child { border-bottom: 0; }
.rpl-nearby__name { flex: 1; font-weight: 500; }
.rpl-nearby__dist { color: var(--rpl-muted); font-size: 13px; }

/* ---------- Agent card ---------- */
.rpl-agent { background: #fff; border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); padding: 20px; box-shadow: var(--rpl-shadow); display: flex; flex-direction: column; gap: 14px; }
.rpl-agent__eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--rpl-muted); font-weight: 600; }
.rpl-agent__top { display: flex; align-items: center; gap: 14px; }
.rpl-agent__photo { width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: var(--rpl-soft); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; color: var(--rpl-muted); }
.rpl-agent__photo img { width: 100%; height: 100%; object-fit: cover; }
.rpl-agent__name { display: block; font-size: 16px; }
.rpl-agent__role { display: block; font-size: 12.5px; color: var(--rpl-muted); }
.rpl-agent__badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; font-size: 11px; font-weight: 600; color: #15803d; background: #dcfce7; padding: 2px 8px; border-radius: 999px; }
.rpl-agent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rpl-agent__btns .rpl-btn:only-child { grid-column: 1 / -1; }
.rpl-agent__mail { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; color: var(--rpl-muted) !important; }
.rpl-agent__form[hidden] { display: none; }

.rpl-agent--dark { background: var(--rpl-dark); border-color: var(--rpl-dark); color: #e5e7eb; }
.rpl-agent--dark .rpl-agent__name { color: #fff; }
.rpl-agent--dark .rpl-agent__role, .rpl-agent--dark .rpl-agent__eyebrow, .rpl-agent--dark .rpl-agent__mail { color: #9ca3af !important; }
.rpl-agent--dark .rpl-agent__photo { background: rgba(255,255,255,.08); }
.rpl-agent--dark .rpl-btn--line { border-color: rgba(255,255,255,.2); color: #fff !important; }
.rpl-agent--dark .rpl-btn--primary { background: #fff; color: var(--rpl-dark) !important; }
.rpl-agent--dark .rpl-form input, .rpl-agent--dark .rpl-form textarea { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }

/* ---------- Forms ---------- */
.rpl-form { display: flex; flex-direction: column; gap: 10px; }
.rpl-form input, .rpl-form textarea, .rpl-search input, .rpl-search select {
	width: 100%; padding: 11px 12px; font: inherit; font-size: 14px; color: var(--rpl-text);
	border: 1px solid var(--rpl-border); border-radius: calc(var(--rpl-radius) - 4px); background: #fff; margin: 0; box-shadow: none;
}
.rpl-form input:focus, .rpl-form textarea:focus, .rpl-search input:focus, .rpl-search select:focus { outline: 2px solid var(--rpl-accent); outline-offset: -1px; }
.rpl-hp { position: absolute !important; left: -9999px !important; }
.rpl-notice { padding: 10px 12px; border-radius: 8px; font-size: 13.5px; margin: 0 !important; }
.rpl-notice--ok { background: #dcfce7; color: #166534; }
.rpl-notice--err { background: #fee2e2; color: #991b1b; }

/* ---------- Layout 1: gallery grid ---------- */
.rpl-ggrid { position: relative; display: grid; grid-template-columns: 1.65fr 1fr; gap: 12px; height: 470px; }
.rpl-ggrid--single { grid-template-columns: 1fr; }
.rpl-ggrid button { padding: 0; border: 0; background: var(--rpl-soft); border-radius: var(--rpl-radius); overflow: hidden; position: relative; }
.rpl-ggrid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rpl-ggrid button:hover img { transform: scale(1.04); }
.rpl-ggrid__main { height: 100%; width: 100%; border-radius: var(--rpl-radius); overflow: hidden; }
.rpl-ggrid--single .rpl-ggrid__main img { width: 100%; height: 100%; object-fit: cover; }
.rpl-ggrid__thumbs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 12px; min-height: 0; }
.rpl-ggrid__thumbs--n1 > *, .rpl-ggrid__thumbs--n3 > :last-child, .rpl-ggrid__thumbs--n5 > :last-child { grid-column: span 2; }
.rpl-ggrid__thumbs button { border-radius: calc(var(--rpl-radius) - 2px); }
.rpl-ggrid__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.5); color: #fff; font-size: 22px; font-weight: 700; }
.rpl-gallery-btn, .rpl-ggrid .rpl-gallery-btn { position: absolute; right: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px !important; border-radius: 999px !important; border: 0; background: rgba(255,255,255,.95) !important; color: var(--rpl-text); font-size: 13px; font-weight: 600; box-shadow: 0 4px 16px rgba(0,0,0,.15); width: auto !important; height: auto !important; }

/* ---------- Layout 2: hero ---------- */
.rpl-hero { position: relative; height: clamp(320px, 52vw, 560px); overflow: hidden; background: var(--rpl-dark); }
.rpl-hero__img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; }
.rpl-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.45)); }
.rpl-hero__bar { position: absolute; left: 0; right: 0; bottom: 120px; margin: 0 auto; }
.rpl-hero__bar .rpl-gallery-btn { position: static; float: right; }
.rpl-cols--overlap { margin-top: -90px; position: relative; z-index: 3; }
.rpl-headcard { padding: 26px; }
.rpl-headcard .rpl-head__price .rpl-price { font-size: 26px; }

/* ---------- Layout 3: hero slider ---------- */
.rpl-hslider { margin-top: 22px; }
.rpl-hslider__ph img { width: 100%; aspect-ratio: 16/7; object-fit: cover; border-radius: var(--rpl-radius); }
.rpl-slider--hero { border-radius: var(--rpl-radius); overflow: hidden; background: var(--rpl-soft); }
.rpl-slider--hero .rpl-slider__track { gap: 0 !important; }
.rpl-slider--hero .rpl-slider__slide { flex: 0 0 100% !important; }
.rpl-slider--hero .rpl-slider__slide button { padding: 0; border: 0; display: block; width: 100%; background: none; }
.rpl-slider--hero img { width: 100%; aspect-ratio: 16/7; object-fit: cover; }
.rpl-slider--hero .rpl-slider__nav { width: 46px; height: 46px; opacity: .92; }
.rpl-slider--hero .rpl-slider__prev { left: 16px; }
.rpl-slider--hero .rpl-slider__next { right: 16px; }
.rpl-hslider__count { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12.5px; }
.rpl-hslider__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rpl-hslider__thumbs::-webkit-scrollbar { display: none; }
.rpl-hslider__thumbs button { flex: 0 0 auto; width: 110px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--rpl-soft); opacity: .6; transition: opacity .2s, border-color .2s; }
.rpl-hslider__thumbs button.is-active, .rpl-hslider__thumbs button:hover { opacity: 1; border-color: var(--rpl-accent); }
.rpl-hslider__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rpl-layout-3 .rpl-main .rpl-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rpl-layout-3 .rpl-main .rpl-stats, .rpl-layout-3 .rpl-main .rpl-kv { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- CTA banner ---------- */
.rpl-cta { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: center; padding: 34px; border-radius: var(--rpl-radius); background: var(--rpl-dark); color: #d1d5db; }
.rpl-cta h2 { color: #fff !important; font-size: clamp(22px, 2.6vw, 30px); text-transform: uppercase; letter-spacing: .01em; margin-bottom: 10px; }
.rpl-cta p { margin: 0; max-width: 520px; }
.rpl-cta .rpl-agent { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }

/* ---------- Cards ---------- */
.rpl-card { background: #fff; border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); overflow: hidden; display: flex; flex-direction: column; height: 100%; transition: box-shadow .25s ease, transform .25s ease; }
.rpl-card:hover { box-shadow: 0 14px 34px rgba(16,24,40,.12); transform: translateY(-3px); }
.rpl-card__media { position: relative; display: block; aspect-ratio: var(--rpl-card-ratio); overflow: hidden; background: var(--rpl-soft); }
.rpl-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rpl-card:hover .rpl-card__media img { transform: scale(1.06); }
.rpl-card__badge { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; background: var(--rpl-accent); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rpl-card__star { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--rpl-accent); display: inline-flex; align-items: center; justify-content: center; }
.rpl-card__star svg { fill: currentColor; }
.rpl-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rpl-card__type { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--rpl-muted); }
.rpl-card__title { font-size: 16.5px !important; font-weight: 700; line-height: 1.3; }
.rpl-card__title a:hover { color: var(--rpl-accent); }
.rpl-card__addr { display: flex; gap: 5px; align-items: center; font-size: 13px; color: var(--rpl-muted); margin: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpl-card__stats { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 0; padding: 0; font-size: 12.5px; color: #4b5563; }
.rpl-card__stats li { display: inline-flex; align-items: center; gap: 5px; margin: 0; }
.rpl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rpl-border); }
.rpl-card__more { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--rpl-soft); transition: background .2s, color .2s; }
.rpl-card:hover .rpl-card__more { background: var(--rpl-primary); color: #fff; }

/* ---------- Grid + slider ---------- */
.rpl-listing { --rpl-gap: 24px; --rpl-c: var(--rpl-cols, 3); }
.rpl-listing__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rpl-listing__title { font-size: clamp(20px, 2.4vw, 28px) !important; font-weight: 700; }
.rpl-eyebrow { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--rpl-accent); font-weight: 700; margin-bottom: 6px; }
.rpl-grid { display: flex; flex-wrap: wrap; gap: var(--rpl-gap); }
.rpl-grid > * { width: calc((100% - (var(--rpl-c) - 1) * var(--rpl-gap)) / var(--rpl-c)); height: auto; }
.rpl-empty { padding: 30px; text-align: center; color: var(--rpl-muted); border: 1px dashed var(--rpl-border); border-radius: var(--rpl-radius); }

.rpl-slider { position: relative; }
.rpl-slider__track { display: flex; gap: var(--rpl-gap, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 4px 2px 10px; }
.rpl-slider__track::-webkit-scrollbar { display: none; }
.rpl-slider__slide { flex: 0 0 calc((100% - (var(--rpl-c, 1) - 1) * var(--rpl-gap, 24px)) / var(--rpl-c, 1)); scroll-snap-align: start; min-width: 0; }
.rpl-slider--hero .rpl-slider__track { padding: 0; }
.rpl-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--rpl-border); background: #fff; color: var(--rpl-text); display: inline-flex; align-items: center; justify-content: center; padding: 0; box-shadow: 0 6px 18px rgba(0,0,0,.12); transition: opacity .2s, background .2s, color .2s; }
.rpl-slider__nav:hover { background: var(--rpl-primary); color: #fff; border-color: var(--rpl-primary); }
.rpl-slider__prev { left: -14px; }
.rpl-slider__next { right: -14px; }
.rpl-listing--slider .rpl-slider__nav { top: 32%; }
.rpl-slider.is-static .rpl-slider__nav, .rpl-slider.is-static .rpl-slider__dots { display: none; }
.rpl-slider__dots { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.rpl-slider__dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--rpl-border); transition: width .25s, background .25s; }
.rpl-slider__dots button.is-active { width: 22px; background: var(--rpl-primary); }
.rpl-slider--hero .rpl-slider__dots { display: none; }

.rpl-related { padding: 46px 0 30px; }

/* ---------- Pagination ---------- */
.rpl-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 30px 0 10px; }
.rpl-pagination .page-numbers { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--rpl-border); font-size: 14px; color: var(--rpl-text); text-decoration: none; }
.rpl-pagination .page-numbers.current, .rpl-pagination a.page-numbers:hover { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }

/* ---------- Search ---------- */
.rpl-search { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); box-shadow: var(--rpl-shadow); margin-bottom: 28px; }
.rpl-search__f { flex: 1 1 150px; display: flex; flex-direction: column; gap: 5px; margin: 0; }
.rpl-search__f--grow { flex: 2 1 220px; }
.rpl-search__f--sm { flex: 1 1 110px; max-width: 240px; }
.rpl-search__f span { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--rpl-muted); }
.rpl-search .rpl-btn { padding: 12px 22px; }
.rpl-search--stacked { flex-direction: column; align-items: stretch; }
.rpl-search--stacked .rpl-search__f { flex: none; }
.rpl-archive { padding: 30px 0 50px; }
.rpl-archive__head { margin-bottom: 20px; }
.rpl-archive__desc { color: var(--rpl-muted); margin-top: 6px; }

/* ---------- Embeds via shortcode ---------- */
.rpl-embed { margin: 0 0 24px; }

/* ---------- Lightbox ---------- */
.rpl-lightbox { position: fixed; inset: 0; z-index: 999999; background: rgba(10, 11, 14, .94); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.rpl-lightbox.is-open { opacity: 1; }
.rpl-lightbox img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 8px; }
.rpl-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.1); color: #fff; width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.rpl-lightbox button:hover { background: rgba(255,255,255,.22); }
.rpl-lightbox__close { top: 18px; right: 18px; }
.rpl-lightbox__prev { left: 18px; top: 50%; transform: translateY(-50%); }
.rpl-lightbox__next { right: 18px; top: 50%; transform: translateY(-50%); }
.rpl-lightbox__count { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #d1d5db; font: 500 13px/1 system-ui, sans-serif; }
body.rpl-noscroll { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.rpl-cols { grid-template-columns: minmax(0, 1fr) 300px; }
	.rpl-listing { --rpl-c: min(var(--rpl-cols, 3), 3); }
}
@media (max-width: 960px) {
	.rpl-cols { grid-template-columns: 1fr; }
	.rpl-sticky { position: static; }
	.rpl-cols--overlap { margin-top: -60px; }
	.rpl-hero__bar { bottom: 80px; }
	.rpl-ggrid { height: 380px; grid-template-columns: 1.4fr 1fr; }
	.rpl-cta { grid-template-columns: 1fr; padding: 26px; }
	.rpl-listing { --rpl-c: min(var(--rpl-cols, 3), 2); }
	.rpl-layout-3 .rpl-main .rpl-list, .rpl-layout-3 .rpl-main .rpl-stats, .rpl-layout-3 .rpl-main .rpl-kv { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rpl-slider__prev { left: 6px; }
	.rpl-slider__next { right: 6px; }
}
@media (max-width: 680px) {
	.rpl-wrap { font-size: 14.5px; }
	.rpl-container { padding: 0 16px; }
	.rpl-head__row { flex-direction: column; align-items: flex-start; }
	.rpl-head__price { text-align: left; }
	.rpl-box { padding: 18px; }
	.rpl-ggrid { grid-template-columns: 1fr; height: auto; }
	.rpl-ggrid__main { aspect-ratio: 4/3; height: auto; }
	.rpl-ggrid__thumbs { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 70px; }
	.rpl-ggrid__thumbs > * { grid-column: auto !important; }
	.rpl-ggrid__thumbs > :nth-child(n+4) { display: none; }
	.rpl-ggrid .rpl-gallery-btn { top: 12px; right: 12px; bottom: auto; }
	.rpl-stats, .rpl-kv, .rpl-list,
	.rpl-layout-3 .rpl-main .rpl-list, .rpl-layout-3 .rpl-main .rpl-stats, .rpl-layout-3 .rpl-main .rpl-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rpl-stat { padding: 10px; gap: 10px; }
	.rpl-chip { width: 34px; height: 34px; }
	.rpl-slider--hero img, .rpl-hslider__ph img { aspect-ratio: 4/3; }
	.rpl-hslider__thumbs button { width: 80px; height: 56px; }
	.rpl-hero { height: 300px; }
	.rpl-hero__bar { bottom: 70px; }
	.rpl-cols--overlap { margin-top: -50px; }
	.rpl-listing { --rpl-c: 1; }
	.rpl-listing--slider .rpl-slider__slide { flex-basis: 85%; }
	.rpl-listing__head { align-items: flex-start; flex-direction: column; }
	.rpl-map iframe { height: 260px; }
	.rpl-lightbox__prev, .rpl-lightbox__next { top: auto; bottom: 14px; transform: none; }
}

/* ---------- Theme-proofing (some themes style every <button>) ---------- */
.rpl-wrap button { text-transform: none; letter-spacing: normal; text-shadow: none; min-height: 0; line-height: 1.2; }
.rpl-wrap .rpl-btn--primary { background: var(--rpl-primary) !important; color: #fff !important; }
.rpl-wrap .rpl-btn--accent { background: var(--rpl-accent) !important; color: #fff !important; }
.rpl-wrap .rpl-agent--dark .rpl-btn--primary { background: #fff !important; color: var(--rpl-dark) !important; }
.rpl-wrap .rpl-gallery-btn { color: var(--rpl-text) !important; }
.rpl-wrap .rpl-slider__nav { background: #fff !important; color: var(--rpl-text) !important; }
.rpl-wrap .rpl-slider__nav:hover { background: var(--rpl-primary) !important; color: #fff !important; }
.rpl-wrap .rpl-tabs-ui__nav button { background: #fff !important; color: var(--rpl-text) !important; }
.rpl-wrap .rpl-tabs-ui__nav button.is-active { background: var(--rpl-primary) !important; color: #fff !important; }
.rpl-wrap .rpl-ggrid button, .rpl-wrap .rpl-hslider__thumbs button, .rpl-wrap .rpl-slider--hero .rpl-slider__slide button { background-color: var(--rpl-soft) !important; }
.rpl-wrap .rpl-readmore__btn { background: none !important; color: var(--rpl-accent) !important; }
.rpl-wrap .rpl-slider__dots button { background: var(--rpl-border) !important; }
.rpl-wrap .rpl-slider__dots button.is-active { background: var(--rpl-primary) !important; }
.rpl-wrap .rpl-content h2, .rpl-wrap .rpl-content h3, .rpl-wrap .rpl-content h4 { font-size: 16.5px; font-weight: 700; line-height: 1.35; margin: 18px 0 6px; }
.rpl-wrap .rpl-content ul { margin: 0 0 1em; padding-left: 20px; }
.rpl-wrap .rpl-content li { margin: 0 0 4px; }

/* ==========================================================================
   v1.1 — new card, listing page filters, hero search, bottom arrows, showcase
   ========================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Card (new) ---------- */
.rpl-wrap .rpl-card { border: 1px solid var(--rpl-border); border-radius: var(--rpl-radius); box-shadow: 0 2px 10px rgba(16,24,40,.06); }
.rpl-wrap .rpl-card:hover { box-shadow: 0 14px 30px rgba(16,24,40,.12); }
.rpl-card__pill { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(17, 20, 28, .58); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 11.5px; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpl-card__pill .rpl-ico { color: #fff; }
.rpl-wrap .rpl-card__badge { top: 10px; left: 10px; padding: 4px 9px; border-radius: 4px; font-size: 10.5px; letter-spacing: .06em; }
.rpl-wrap .rpl-card__body { padding: 14px 16px 16px; gap: 6px; }
.rpl-card__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rpl-wrap .rpl-card__title { font-size: 16px !important; font-weight: 700; line-height: 1.3; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rpl-wrap .rpl-card__more { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--rpl-border); background: #fff; color: var(--rpl-text); }
.rpl-wrap .rpl-card:hover .rpl-card__more { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }
.rpl-wrap .rpl-card__addr { font-size: 12.5px; gap: 4px; }
.rpl-card__addr .rpl-ico { color: var(--rpl-accent); }
.rpl-card__addr span { overflow: hidden; text-overflow: ellipsis; }
.rpl-card .rpl-price { font-size: 17px; margin-top: 2px; }
.rpl-wrap .rpl-card__stats { margin-top: 6px; gap: 6px 14px; font-size: 12px; color: var(--rpl-muted); }
.rpl-card__stats .rpl-ico { color: var(--rpl-text); opacity: .75; }

/* ---------- Heading row (eyebrow line, description, text link) ---------- */
.rpl-listing__intro { min-width: 0; }
.rpl-eyebrow--line { display: inline-flex; align-items: center; gap: 12px; letter-spacing: .16em; font-weight: 600; font-size: 11.5px; margin-bottom: 10px; }
.rpl-eyebrow--line::before { content: ""; width: 34px; height: 1.5px; background: currentColor; }
.rpl-listing__desc { margin: 10px 0 0 !important; max-width: 620px; color: var(--rpl-muted); font-size: 14.5px; }
.rpl-viewall { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1.5px solid currentColor; color: var(--rpl-accent) !important; font-weight: 600; font-size: 14px; white-space: nowrap; transition: gap .2s; }
.rpl-viewall:hover { gap: 12px; }

/* ---------- Slider arrows below (centered) ---------- */
.rpl-slider__navbar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; }
.rpl-slider__navbar .rpl-slider__dots { margin: 0; }
.rpl-wrap .rpl-slider--nav-bottom .rpl-slider__nav { position: static; transform: none; width: 40px; height: 40px; box-shadow: none; border: 1px solid var(--rpl-border); }
.rpl-slider--nav-bottom.is-static .rpl-slider__navbar { display: none; }

/* ---------- Showcase (Properties Worth Owning) ---------- */
.rpl-listing--showcase .rpl-listing__head { margin-bottom: 28px; }
.rpl-listing--showcase .rpl-listing__title { font-size: clamp(24px, 3vw, 34px) !important; }
.rpl-listing--showcase .rpl-slider__track { padding: 10px 4px 22px; }
.rpl-listing--showcase .rpl-slider__slide { flex: 0 0 min(760px, 72%); }
.rpl-wcard { display: grid; grid-template-columns: 44% 1fr; gap: 0; height: 100%; background: #fff; border-radius: 6px; box-shadow: 0 10px 34px rgba(16,24,40,.10); overflow: hidden; }
.rpl-wcard__media { position: relative; display: block; min-height: 250px; background: var(--rpl-soft); overflow: hidden; margin: 18px 0 18px 18px; border-radius: 4px; }
.rpl-wcard__media img { position: absolute; inset: 0; width: 100% !important; height: 100% !important; object-fit: cover; transition: transform .6s ease; }
.rpl-wcard:hover .rpl-wcard__media img { transform: scale(1.05); }
.rpl-wcard__body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.rpl-wcard .rpl-price { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; }
.rpl-wrap .rpl-wcard__title { font-size: clamp(18px, 1.8vw, 22px) !important; font-weight: 600; line-height: 1.3; }
.rpl-wcard__title a:hover { color: var(--rpl-accent); }
.rpl-wrap .rpl-wcard .rpl-card__addr { white-space: normal; font-size: 13.5px; align-items: flex-start; }
.rpl-wcard .rpl-card__addr .rpl-ico { margin-top: 2px; }
.rpl-wcard__stats { list-style: none; margin: 10px 0 0; padding: 14px 6px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--rpl-soft); border-radius: 8px; }
.rpl-wcard__stats li { margin: 0; padding: 0 12px; border-left: 1px solid var(--rpl-border); min-width: 0; }
.rpl-wcard__stats li:first-child { border-left: 0; }
.rpl-wcard__stats small { display: block; font-size: 12px; color: var(--rpl-muted); margin-bottom: 4px; }
.rpl-wcard__stats strong { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.rpl-wcard__stats .rpl-ico { color: var(--rpl-muted); }

/* ---------- Form fields (filters + hero) ---------- */
.rpl-f { position: relative; display: block; margin: 0; min-width: 0; }
.rpl-wrap .rpl-f select, .rpl-wrap .rpl-f input {
	display: block; width: 100%; height: 46px; margin: 0; padding: 0 38px 0 14px;
	font: inherit; font-size: 14px; line-height: 44px; color: var(--rpl-text);
	background: #fff !important; border: 1px solid var(--rpl-border) !important; border-radius: 8px !important; box-shadow: none !important;
	-webkit-appearance: none; -moz-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.rpl-wrap .rpl-f input { cursor: text; line-height: normal; }
.rpl-wrap .rpl-f input::placeholder { color: var(--rpl-muted); opacity: 1; }
.rpl-wrap .rpl-f--select select { color: var(--rpl-muted); }
.rpl-wrap .rpl-f--select.has-value select, .rpl-wrap .rpl-f--sort select { color: var(--rpl-text); }
.rpl-wrap .rpl-f select option { color: var(--rpl-text); }
.rpl-wrap .rpl-f select:focus, .rpl-wrap .rpl-f input:focus { outline: none; border-color: var(--rpl-accent) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--rpl-accent) 18%, transparent) !important; }
.rpl-f__icon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--rpl-muted); }

/* ---------- Listing page ---------- */
.rpl-wrap .rpl-archive__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.rpl-archive__count { margin: 4px 0 0 !important; font-size: 13.5px; color: var(--rpl-muted); }
.rpl-archive__sort { flex: 0 0 210px; }
.rpl-filters { margin: 0 0 26px; }
.rpl-filters__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 14px; }
.rpl-filters__actions { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.rpl-filters__actions:empty { display: none; }
.rpl-filters.is-auto .rpl-filters__submit { display: none; }
.rpl-filters__reset { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; color: var(--rpl-muted) !important; }
.rpl-filters__reset:hover { color: var(--rpl-text) !important; }
.rpl-explore { padding: 50px 0 10px; }
.rpl-explore .rpl-listing__title { font-size: clamp(22px, 2.6vw, 30px) !important; }

/* ---------- Pagination (circles) ---------- */
.rpl-wrap .rpl-pagination { gap: 8px; margin: 34px 0 6px; align-items: center; }
.rpl-wrap .rpl-pagination .page-numbers { min-width: 36px; width: auto; height: 36px; padding: 0 6px; border-radius: 999px; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--rpl-text); }
.rpl-wrap .rpl-pagination .page-numbers.current { background: var(--rpl-primary); color: #fff; }
.rpl-wrap .rpl-pagination a.page-numbers:hover { background: var(--rpl-soft); color: var(--rpl-text); }
.rpl-wrap .rpl-pagination .prev, .rpl-wrap .rpl-pagination .next { width: 36px; padding: 0; border: 1px solid var(--rpl-border); background: #fff; }
.rpl-wrap .rpl-pagination .prev:hover, .rpl-wrap .rpl-pagination .next:hover { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }
.rpl-wrap .rpl-pagination .dots { min-width: 20px; }

/* ---------- Hero search (home page) ---------- */
.rpl-hsearch { width: 100%; max-width: 920px; margin: 0 auto; }
.rpl-hsearch--left { margin-left: 0; }
.rpl-hsearch__form { display: flex; flex-direction: column; align-items: center; margin: 0; }
.rpl-hsearch--left .rpl-hsearch__form { align-items: flex-start; }
.rpl-hsearch__tabs { display: inline-flex; gap: 0; }
.rpl-wrap .rpl-hsearch__tab { min-width: 92px; padding: 12px 26px; border: 0; border-radius: 6px 6px 0 0; background: rgba(255,255,255,.16) !important; color: #fff !important; font-size: 15px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.rpl-wrap .rpl-hsearch__tab:hover { background: rgba(255,255,255,.28) !important; }
.rpl-wrap .rpl-hsearch__tab.is-active { background: #fff !important; color: var(--rpl-text) !important; }
.rpl-hsearch__bar { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.rpl-hsearch__bar .rpl-f { flex: 1 1 0; }
.rpl-wrap .rpl-hsearch__bar .rpl-f select { height: 48px; line-height: 46px; border-radius: 4px !important; border-color: transparent !important; color: var(--rpl-text); }
.rpl-wrap .rpl-hsearch__btn { flex: 0 0 auto; height: 48px; padding: 0 26px; border-radius: 4px; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }

/* ---------- v1.1 responsive ---------- */
@media (max-width: 1100px) {
	.rpl-listing--showcase .rpl-slider__slide { flex-basis: 82%; }
}
@media (max-width: 960px) {
	.rpl-filters__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rpl-hsearch__bar { flex-wrap: wrap; }
	.rpl-hsearch__bar .rpl-f { flex: 1 1 calc(50% - 10px); }
	.rpl-wrap .rpl-hsearch__btn { flex: 1 1 100%; }
	.rpl-wcard { grid-template-columns: 1fr; }
	.rpl-wcard__media { margin: 14px 14px 0; min-height: 0; aspect-ratio: 16/10; }
	.rpl-wcard__body { padding: 18px 20px 22px; }
}
@media (max-width: 680px) {
	.rpl-wrap .rpl-archive__head { flex-direction: column; align-items: stretch; }
	.rpl-archive__sort { flex: none; }
	.rpl-filters__grid { gap: 10px; }
	.rpl-wrap .rpl-f select, .rpl-wrap .rpl-f input { height: 44px; line-height: 42px; font-size: 13.5px; padding: 0 32px 0 12px; }
	.rpl-wrap .rpl-hsearch__tab { padding: 10px 20px; min-width: 80px; }
	.rpl-hsearch__bar { padding: 10px; gap: 8px; }
	.rpl-hsearch__bar .rpl-f { flex: 1 1 calc(50% - 8px); }
	.rpl-listing--showcase .rpl-slider__slide { flex-basis: 90%; }
	.rpl-wcard__stats { padding: 12px 2px; }
	.rpl-wcard__stats li { padding: 0 8px; }
	.rpl-wcard__stats strong { font-size: 13px; gap: 4px; }
	.rpl-wcard__stats .rpl-ico { display: none; }
	.rpl-listing__head { gap: 12px; }
}

/* ---------- Size by the box itself (works in narrow Elementor columns too) ---------- */
.rpl-hsearch, .rpl-listing--showcase { container-type: inline-size; }
@container (max-width: 760px) {
	.rpl-hsearch__bar { flex-wrap: wrap; }
	.rpl-hsearch__bar .rpl-f { flex: 1 1 calc(50% - 10px); }
	.rpl-wrap .rpl-hsearch__btn { flex: 1 1 100%; }
}
@container (max-width: 860px) {
	.rpl-listing--showcase .rpl-slider__slide { flex-basis: 88%; }
	.rpl-wcard { grid-template-columns: 1fr; }
	.rpl-wcard__media { margin: 14px 14px 0; min-height: 0; aspect-ratio: 16/10; }
	.rpl-wcard__body { padding: 18px 20px 22px; }
	.rpl-listing--showcase .rpl-listing__head { flex-direction: column; align-items: flex-start; }
}


/* ==========================================================================
   v1.3 — Layout 4: gallery + agent card on top, full-width cards below
   ========================================================================== */
.rpl-layout-4 { padding: 26px 0 10px; }
.rpl-layout-4 .rpl-box { background: #fff; border: 1px solid #eef0f3; border-radius: 14px; box-shadow: 0 2px 14px rgba(16,24,40,.05); padding: 26px 28px; }
.rpl-layout-4 .rpl-box__title { font-size: 19px !important; font-weight: 600; margin-bottom: 20px !important; }

/* Top: gallery + agent */
.rpl4-top { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rpl4-top > * { min-width: 0; }
.rpl4-gallery .rpl-hslider { margin: 0; }
.rpl4-gallery .rpl-slider--hero { border-radius: 4px; }
.rpl4-gallery .rpl-slider--hero img, .rpl4-gallery .rpl-hslider__ph img { aspect-ratio: 16/11; border-radius: 4px; }
.rpl-wrap .rpl4-gallery .rpl-slider__nav { width: 38px; height: 38px; background: rgba(0,0,0,.18) !important; border: 0; box-shadow: none; color: #fff !important; opacity: .9; }
.rpl-wrap .rpl4-gallery .rpl-slider__nav:hover { background: rgba(0,0,0,.4) !important; }
.rpl4-gallery .rpl-slider__prev { left: 10px; }
.rpl4-gallery .rpl-slider__next { right: 10px; }
.rpl4-gallery .rpl-hslider__count { opacity: 0; transition: opacity .2s; }
.rpl4-gallery .rpl-slider--hero:hover .rpl-hslider__count { opacity: 1; }
.rpl4-gallery .rpl-hslider__thumbs { gap: 6px; margin-top: 8px; }
.rpl-wrap .rpl4-gallery .rpl-hslider__thumbs button { width: calc((100% - 30px) / 6); height: auto; aspect-ratio: 3/2; border: 0; border-radius: 3px; opacity: 1; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.rpl-wrap .rpl4-gallery .rpl-hslider__thumbs button.is-active { outline: 2px solid var(--rpl-accent); outline-offset: -2px; }
.rpl-wrap .rpl4-gallery .rpl-hslider__thumbs button:hover { opacity: .85; }

.rpl4-agent { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px 22px; background: #fff; border: 1px solid #eef0f3; border-radius: 14px; box-shadow: 0 4px 22px rgba(16,24,40,.07); }
.rpl4-agent__eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #9aa1ab; margin-bottom: 14px; }
.rpl4-agent__photo { width: 86px; height: 86px; border-radius: 50%; overflow: hidden; background: var(--rpl-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--rpl-muted); box-shadow: 0 0 0 4px #fff, 0 2px 10px rgba(0,0,0,.12); margin-bottom: 14px; }
.rpl4-agent__photo img { width: 100%; height: 100%; object-fit: cover; }
.rpl4-agent__name { display: block; font-size: 17px; font-weight: 700; color: var(--rpl-text); line-height: 1.3; }
.rpl-wrap .rpl4-agent__mail { display: block; margin-top: 3px; font-size: 13px; color: var(--rpl-muted) !important; word-break: break-all; }
.rpl4-agent__badge { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 2px 9px; border-radius: 4px; background: #dcfce7; color: #15803d; font-size: 11px; font-weight: 600; }
.rpl4-agent__box { width: 100%; display: flex; flex-direction: column; gap: 12px; margin-top: 20px; padding: 18px; border-radius: 10px; background: #f6f7f9; text-align: left; }
.rpl-wrap .rpl4-btn { padding: 14px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.rpl-wrap .rpl4-btn--wa { background: #25d366; color: #fff !important; }
.rpl-wrap .rpl4-btn--wa:hover { background: #1fbe5b; }
.rpl-wrap .rpl4-btn--line { background: #fff !important; border: 1px solid #d9dde3; color: var(--rpl-text) !important; }
.rpl-wrap .rpl4-btn--line:hover { border-color: var(--rpl-text); }
.rpl-wrap .rpl4-btn--dark { background: #1d2025 !important; border: 0; color: #fff !important; }
.rpl-wrap .rpl4-btn--dark:hover { background: #000 !important; }
.rpl4-agent .rpl-agent__form { margin-top: 2px; }
.rpl-layout-4 .rpl4-agent.is-flash { animation: rpl4-flash 1.2s ease; }
@keyframes rpl4-flash { 0%, 100% { box-shadow: 0 4px 22px rgba(16,24,40,.07); } 30% { box-shadow: 0 0 0 4px var(--rpl-accent); } }

/* Title + price card */
.rpl-layout-4 .rpl4-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 34px; padding: 22px 28px; }
.rpl4-title__main { min-width: 0; }
.rpl4-title__eyebrow { display: block; font-size: 12px; color: #9aa1ab; margin-bottom: 4px; }
.rpl-wrap .rpl4-title .rpl-title { font-size: clamp(22px, 2.4vw, 28px); font-weight: 600; letter-spacing: -.01em; }
.rpl4-title__addr { display: flex; align-items: center; gap: 5px; margin: 4px 0 0 !important; font-size: 12.5px; color: var(--rpl-muted); }
.rpl4-title__addr .rpl-ico { color: var(--rpl-text); }
.rpl4-title__price { flex: 0 0 auto; text-align: right; }
.rpl4-title__price .rpl-price { display: inline-block; font-size: clamp(24px, 2.6vw, 30px); font-weight: 600; }
.rpl4-title__price .rpl-price small { display: block; margin: 4px 0 0; font-size: 12px; text-align: right; }

/* Main column (full width) */
.rpl4-main { margin-top: 20px; gap: 20px; }
.rpl-layout-4 .rpl-sec, .rpl-layout-4 #rpl-enquiry { scroll-margin-top: 30px; }

/* Key facts card */
.rpl4-facts__icons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; }
.rpl4-fact { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rpl4-fact__ico { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid #e3e6eb; border-radius: 8px; background: #fff; color: var(--rpl-text); }
.rpl4-fact small { display: block; font-size: 11.5px; color: #9aa1ab; line-height: 1.3; }
.rpl4-fact strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.rpl4-facts__plain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 20px; padding: 0 12px; }
.rpl4-facts__icons + .rpl4-facts__plain { margin-top: 26px; }
.rpl4-kv { min-width: 0; }
.rpl4-kv strong { display: block; font-size: 14px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.rpl4-kv small { display: block; font-size: 11.5px; color: #9aa1ab; line-height: 1.35; }

/* About */
.rpl-layout-4 .rpl-sec--about .rpl-content { font-size: 14px; color: #6b7280; line-height: 1.75; }

/* Amenities / Common Facilities: plain icon + text, 3 columns */
.rpl-layout-4 .rpl-list { gap: 22px 20px; padding: 0 12px; }
.rpl-layout-4 .rpl-list li { font-size: 13.5px; color: #4b5563; }
.rpl-layout-4 .rpl-list .rpl-chip { width: auto; height: auto; background: none; border-radius: 0; color: var(--rpl-text); }

/* Location + What's Nearby in one card */
.rpl4-locbox > .rpl-sec { border: 0; box-shadow: none; padding: 0; background: none; border-radius: 0; }
.rpl4-locbox > .rpl-sec + .rpl-sec { margin-top: 30px; }
.rpl-layout-4 .rpl-sec--location .rpl-box__head { align-items: center; }
.rpl-layout-4 .rpl-sec--location .rpl-muted { font-size: 12.5px; }
.rpl-layout-4 .rpl-map { border-radius: 10px; }
.rpl-layout-4 .rpl-map iframe { height: 320px; }
.rpl-layout-4 .rpl-sec--nearby .rpl-box__title { margin-bottom: 14px !important; }
.rpl-wrap.rpl-layout-4 .rpl-tabs-ui__nav { gap: 8px; margin-bottom: 18px; }
.rpl-wrap.rpl-layout-4 .rpl-tabs-ui__nav button { padding: 9px 18px; border: 0; border-radius: 6px; background: #eef0f3 !important; color: #6b7280 !important; font-size: 13px; font-weight: 500; }
.rpl-wrap.rpl-layout-4 .rpl-tabs-ui__nav button.is-active { background: #16181d !important; color: #fff !important; }
.rpl-layout-4 .rpl-nearby li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 1px; align-items: center; padding: 10px 0; border: 0; }
.rpl-layout-4 .rpl-nearby .rpl-chip { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid #e3e6eb; box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.rpl-layout-4 .rpl-nearby__name { font-size: 14px; font-weight: 600; align-self: end; }
.rpl-layout-4 .rpl-nearby__dist { font-size: 12px; color: #9aa1ab; align-self: start; }

/* Properties Worth Exploring */
.rpl-layout-4 .rpl-related { padding: 40px 0 30px; }
.rpl-layout-4 .rpl-related .rpl-listing__head .rpl-btn { display: none; }
.rpl-layout-4 .rpl-related .rpl-listing__title { font-size: clamp(20px, 2.2vw, 24px) !important; font-weight: 600; }
.rpl-wrap .rpl-card__badge--for-sale { background: #16181d; }

/* Mobile contact bar */
.rpl4-mbar { display: none; }

@media (max-width: 1100px) {
	.rpl4-top { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 960px) {
	.rpl4-top { grid-template-columns: minmax(0, 1fr); }
	.rpl4-agent { max-width: 520px; width: 100%; margin: 0 auto; }
	.rpl-layout-4 { padding-bottom: 78px; }
	.rpl4-mbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rpl-border); box-shadow: 0 -6px 24px rgba(16,24,40,.08); }
	.rpl4-mbar__price .rpl-price { font-size: 19px; }
	.rpl4-mbar__price .rpl-price small { display: inline; }
	.rpl4-mbar__btns { display: flex; gap: 8px; margin-left: auto; }
	.rpl4-mbar__btns .rpl-btn { padding: 11px 14px; }
	.rpl4-mbar__btns .rpl-btn--primary { padding: 11px 20px; }
}
@media (max-width: 680px) {
	.rpl-layout-4 { padding-top: 14px; }
	.rpl-layout-4 .rpl-box { padding: 18px; }
	.rpl4-gallery .rpl-slider--hero img, .rpl4-gallery .rpl-hslider__ph img { aspect-ratio: 4/3; }
	.rpl-wrap .rpl4-gallery .rpl-hslider__thumbs button { width: 74px; flex: 0 0 auto; }
	.rpl-layout-4 .rpl4-title { flex-direction: column; align-items: flex-start; margin-top: 22px; padding: 18px; }
	.rpl4-title__price { text-align: left; }
	.rpl4-title__price .rpl-price small { text-align: left; }
	.rpl4-facts__icons, .rpl4-facts__plain, .rpl-layout-4 .rpl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }
	.rpl-layout-4 .rpl-sec--location .rpl-box__head { flex-direction: column; align-items: flex-start; }
	.rpl-layout-4 .rpl-map iframe { height: 240px; }
}

/* ==========================================================================
   v1.3 — [rpl_home_slider] home page carousel
   ========================================================================== */
.rpl-listing--home .rpl-slider__track { padding: 6px 4px 18px; }
.rpl-listing--home .rpl-card { border: 0 !important; border-radius: 14px; box-shadow: 0 4px 18px rgba(16,24,40,.08) !important; }
.rpl-listing--home .rpl-card:hover { box-shadow: 0 14px 30px rgba(16,24,40,.14) !important; }
.rpl-listing--home .rpl-card__media { aspect-ratio: 1 / .96; border-radius: 14px 14px 0 0; }
.rpl-listing--home .rpl-card__pill { left: 12px; bottom: 12px; padding: 5px 11px 5px 9px; border-radius: 6px; background: rgba(17, 20, 28, .62); font-size: 12px; }
.rpl-wrap.rpl-listing--home .rpl-card__body { padding: 14px 16px 14px; gap: 7px; }
.rpl-wrap.rpl-listing--home .rpl-card__title { font-size: 17px !important; font-weight: 700; }
.rpl-wrap.rpl-listing--home .rpl-card__more { width: 32px; height: 32px; }
.rpl-wrap.rpl-listing--home .rpl-card__addr { font-size: 12px; }
.rpl-listing--home .rpl-card .rpl-price { font-size: 16px; font-weight: 700; }
.rpl-wrap.rpl-listing--home .rpl-card__stats { margin-top: 4px; padding-top: 11px; border-top: 1px solid #eceef2; flex-wrap: nowrap; gap: 10px; font-size: 12px; white-space: nowrap; overflow: hidden; }
.rpl-listing--home .rpl-slider__navbar { margin-top: 14px; gap: 18px; }
.rpl-wrap.rpl-listing--home .rpl-slider--nav-bottom .rpl-slider__nav { width: 44px; height: 44px; background: #fff; border: 1px solid #e3e6eb; color: var(--rpl-text); box-shadow: 0 2px 8px rgba(16,24,40,.06); }
.rpl-wrap.rpl-listing--home .rpl-slider--nav-bottom .rpl-slider__nav:hover { background: var(--rpl-primary); border-color: var(--rpl-primary); color: #fff; }
.rpl-listing--home { container-type: inline-size; }
@container (max-width: 1100px) { .rpl-listing--home .rpl-slider__slide { flex-basis: calc((100% - 3 * var(--rpl-gap, 18px)) / 4); } }
@container (max-width: 860px)  { .rpl-listing--home .rpl-slider__slide { flex-basis: calc((100% - 2 * var(--rpl-gap, 18px)) / 3); } }
@container (max-width: 620px)  { .rpl-listing--home .rpl-slider__slide { flex-basis: calc((100% - var(--rpl-gap, 18px)) / 2); } }
@container (max-width: 440px)  { .rpl-listing--home .rpl-slider__slide { flex-basis: 82%; } }
