/*
 * Apartment detail page in the New Developments design (framework/apartment-detail.php,
 * Elementor template elementor/templates/apartment-detail.json). Colours, fonts, eyebrows and the CTA
 * banner come from dev-cards.css (loaded first). Settings made in Elementor override these rules.
 */

.rj-apt-detail { font-family: var(--rj-nd-body); }
.elementor .e-con.rj-apt-section { --padding-top: 28px; --padding-bottom: 28px; }
.elementor .e-con.rj-apt-section--hero { --padding-top: 16px; --padding-bottom: 8px; }
.rj-apt-section .e-con { --padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0; }
.rj-apt-section h3.elementor-heading-title { font-family: var(--rj-nd-heading); font-size: 31px; font-weight: var(--rj-nd-heading-weight-strong); display: flex; align-items: center; }

/* Buttons (Elementor Button widgets with these classes, and the widgets' own links). */
.rj-apt-button .elementor-button,
.rj-apt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 999px;
	font-family: var(--rj-nd-body); font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
	transition: filter .2s ease, transform .2s ease;
}
.rj-apt-button .elementor-button:hover,
.rj-apt-btn:hover { filter: brightness(.94); }
.rj-apt-button .elementor-button-content-wrapper { gap: 8px; align-items: center; }
.rj-apt-button--accent .elementor-button,
.rj-apt-btn--accent { background: var(--rj-nd-accent); color: var(--rj-nd-accent-text); }
.rj-apt-button--light .elementor-button { background: var(--rj-nd-tint); color: var(--rj-nd-ink); }
.rj-apt-button--teal .elementor-button { background: var(--rj-nd-teal-dark); color: #fff; }
.rj-apt-button--white .elementor-button { background: #fff; color: var(--rj-nd-ink); }
.rj-apt-button .elementor-button,
.rj-apt-btn { color: inherit; }
.rj-apt-button--accent .elementor-button,
.rj-apt-btn--accent,
.rj-apt-button--teal .elementor-button { color: #fff; }
.rj-apt-button--block,
.rj-apt-button--block .elementor-button { width: 100%; }
.rj-apt-btn--small { padding: 6px 12px; font-size: 11px; }
/* Button icons from the design (assets/images/apartment-detail/icon-*.svg): add the class in Advanced > CSS Classes. */
[class*="rj-apt-button--icon-"] .elementor-button-text::before {
	content: ""; display: inline-block; width: 18px; height: 18px; margin-inline-end: 8px; vertical-align: -4px;
	background: center / contain no-repeat;
}
.rj-apt-button--icon-eye .elementor-button-text::before { width: 20px; background-image: url(images/apartment-detail/icon-eye.svg); }
.rj-apt-button--icon-download .elementor-button-text::before { background-image: url(images/apartment-detail/icon-download.svg); }
.rj-apt-button--icon-check .elementor-button-text::before { background-image: url(images/apartment-detail/icon-check-circle.svg); }
/* "Sales Dashboard" button (framework/sales-dashboard.php): only for admins and the apartment's assigned users
   (body class rj-sales-access); always visible in the Elementor editor. */
.rj-apt-button--sales { display: none; }
body.rj-sales-access .rj-apt-button--sales,
body.elementor-editor-active .rj-apt-button--sales,
body.elementor-editor-preview .rj-apt-button--sales { display: block; }
.elementor .e-con.rj-apt-buttons { --gap: 12px; --column-gap: 12px; --row-gap: 12px; --flex-wrap: wrap; --align-items: center; margin-top: 8px; }
.elementor .e-con.rj-apt-buttons--center { --justify-content: center; }
.rj-apt-buttons > .elementor-widget { width: auto; }

/* ---------- Hero: apartment photo, teal fade from the text side ---------- */
.rj-apt-hero {
	--rj-apt-hero-fade: var(--rj-nd-teal);
	position: relative; display: flex; align-items: center; min-height: 440px; overflow: hidden;
	border-radius: var(--rj-nd-radius); background: var(--rj-nd-teal) center / cover no-repeat;
}
.rj-apt-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, var(--rj-apt-hero-fade) 0%, color-mix(in srgb, var(--rj-apt-hero-fade) 80%, transparent) 35%, transparent 70%);
}
[dir="rtl"] .rj-apt-hero::before { background: linear-gradient(270deg, var(--rj-apt-hero-fade) 0%, color-mix(in srgb, var(--rj-apt-hero-fade) 80%, transparent) 35%, transparent 70%); }
.rj-apt-hero__content { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 640px; padding: 56px; color: #fff; }
.rj-apt-hero__title { margin: 0; color: #fff; font-family: var(--rj-nd-heading); font-size: clamp(32px, 3.8vw, 52px); font-weight: var(--rj-nd-heading-weight); line-height: 1.08; }
.rj-apt-hero__text { margin: 0; color: #fff; font-size: 16px; font-weight: 300; line-height: 1.5; }
.rj-apt-hero__location { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 0; color: #fff; font-size: 14px; font-weight: 500; }
.rj-apt-hero__location .rj-dev-cards__icon { height: 18px; color: var(--rj-nd-accent); }

/* ---------- Partner logos + Sales Dashboard ---------- */
.elementor .e-con.rj-apt-brand { --justify-content: space-between; --align-items: center; --flex-wrap: wrap; --row-gap: 16px; }
.elementor .e-con.rj-apt-brand__logos { --align-items: center; --gap: 20px; --column-gap: 20px; width: auto; }
.elementor .e-con.rj-apt-brand__presented { --gap: 2px; --row-gap: 2px; width: auto; padding-inline-start: 20px; border-inline-start: 1px solid var(--rj-nd-line); }
.rj-apt-brand__label .elementor-heading-title { color: var(--rj-nd-accent); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.elementor .rj-apt-brand__logo img { display: block; width: auto; height: 56px; object-fit: contain; }
.elementor .rj-apt-brand__logo--main img { height: 64px; }
.elementor .rj-apt-brand .elementor-widget-button { width: auto; }

/* ---------- Project logo + At A Glance ---------- */
.elementor .e-con.rj-apt-glance-row { --align-items: center; --gap: 48px; --column-gap: 48px; --flex-wrap: nowrap; }
.elementor .rj-apt-glance-row .rj-apt-project-logo { flex: 0 0 auto; width: auto; }
.rj-apt-project-logo img { display: block; width: auto; max-width: 300px; height: 120px; object-fit: contain; }
/* Boxed containers wrap their children in .e-con-inner, hence descendant selectors. */
.elementor .rj-apt-glance-row .elementor-widget-rj_apt_glance { flex: 1 1 0; width: auto; min-width: 0; }
.rj-apt-glance__heading { margin: 0 0 12px; color: var(--rj-nd-teal-dark); font-family: var(--rj-nd-heading); font-size: clamp(26px, 2.6vw, 34px); font-weight: var(--rj-nd-heading-weight); line-height: 1.1; }
.rj-apt-glance__items { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0; }
.rj-apt-glance__item { padding: 4px 24px; border-inline-start: 1px solid var(--rj-nd-line); }
.rj-apt-glance__item:first-child { padding-inline-start: 0; border: 0; }
.rj-apt-glance__label { margin: 0 0 6px; color: var(--rj-nd-accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.rj-apt-glance__value { margin: 0; color: var(--rj-nd-ink); font-family: var(--rj-nd-heading); font-size: clamp(30px, 3vw, 40px); font-weight: var(--rj-nd-heading-weight); line-height: 1.05; }
.rj-apt-glance__sub { margin: 6px 0 0; color: var(--rj-nd-muted); font-size: 11px; line-height: 1.4; text-transform: uppercase; }

/* ---------- Tab bar ---------- */
/* Elementor editor: every tab's section stays visible, so its content can be edited (overrides the tab script's hiding). */
body.elementor-editor-active [id^="tab-"].e-con,
body.elementor-editor-preview [id^="tab-"].e-con { display: var(--display, flex) !important; }
.rj-apt-tabs {
	display: flex; gap: 6px; padding: 6px; overflow-x: auto; border-radius: 999px; background: var(--rj-nd-tint);
	scrollbar-width: none;
}
.rj-apt-tabs::-webkit-scrollbar { display: none; }
.rj-apt-tabs__tab {
	flex: 1 0 auto; padding: 12px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--rj-nd-ink);
	font-family: var(--rj-nd-body); font-size: 15px; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.rj-apt-tabs__tab:hover { background: rgba(50, 103, 117, .08); }
.rj-apt-tabs__tab.is-active { background: var(--rj-nd-teal-dark); color: #fff; }
.rj-apt-tabs__tab.is-empty { cursor: default; }
.rj-apt-tabs__tab.is-empty:hover { background: transparent; }
.rj-apt-tabs__tab:focus-visible { outline: 2px solid var(--rj-nd-accent); outline-offset: 2px; }
.rj-apt-tabs__short { display: none; } /* Shorter tab label, phones only (see the 767px rules). */

/* ---------- Overview: welcome ---------- */
.elementor .e-con.rj-apt-panel { --gap: 56px; --row-gap: 56px; }
.elementor .e-con.rj-apt-welcome { --align-items: center; --gap: 40px; --column-gap: 40px; --flex-wrap: nowrap; }
.rj-apt-welcome > .rj-apt-welcome__image { flex: 0 0 46%; }
.elementor .rj-apt-image,
.rj-apt-image { display: block; width: 100%; height: 360px; object-fit: cover; border-radius: var(--rj-nd-radius); }
.elementor .e-con.rj-apt-welcome__text { --gap: 12px; --row-gap: 12px; flex: 1 1 0; }
.rj-apt-welcome__desc { color: var(--rj-nd-muted); font-family: var(--rj-nd-body); font-size: 15px; font-weight: 400; line-height: 1.6; }
.rj-apt-welcome__desc p { margin: 0 0 .8em; }
.rj-apt-welcome__desc p:last-child { margin-bottom: 0; }

/* ---------- Overview: advantage cards ---------- */
.elementor .e-con.rj-apt-advantage { --gap: 28px; --row-gap: 28px; }
.elementor .e-con.rj-apt-advantage__top { --gap: 40px; --column-gap: 40px; --align-items: flex-end; --flex-wrap: nowrap; }
.elementor .e-con.rj-apt-advantage__heading { --gap: 10px; --row-gap: 10px; flex: 1 1 0; }
.rj-apt-advantage__top > .rj-apt-advantage__text { flex: 1 1 0; }
.elementor .e-con.rj-apt-advantage__grid { --gap: 20px; --column-gap: 20px; --row-gap: 20px; --flex-wrap: wrap; }
.elementor .e-con.rj-apt-adv-card {
	--gap: 16px; --column-gap: 16px; --flex-wrap: nowrap; --align-items: stretch;
	--padding-top: 0; --padding-bottom: 0; --padding-left: 0; --padding-right: 0;
	width: calc(50% - 10px); padding: 0; overflow: hidden; border-radius: var(--rj-nd-radius-sm); background: var(--rj-nd-card); box-shadow: 0 6px 18px rgba(50, 103, 117, .08);
}
/* The photo touches the card's top, bottom and start edges; the card's rounded corners clip it. */
.elementor .rj-apt-adv-card > .rj-apt-adv-card__image { position: relative; flex: 0 0 44%; min-height: 150px; margin: 0; }
.elementor .rj-apt-adv-card__image .elementor-widget-container { position: absolute; inset: 0; }
.elementor .rj-apt-adv-card__image img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.elementor .e-con.rj-apt-adv-card__body { --gap: 6px; --row-gap: 6px; --justify-content: center; flex: 1 1 0; padding: 16px 16px 16px 0; }
[dir="rtl"] .elementor .e-con.rj-apt-adv-card__body { padding: 16px 0 16px 16px; }
.rj-apt-adv-card__title .elementor-heading-title { display: flex; align-items: flex-start; gap: 8px; line-height: 1.15; } /* Size: the h3 rule at the top. */
.rj-apt-adv-card__title .elementor-heading-title::before {
	content: ""; flex: 0 0 22px; height: 22px; margin-top: 1px;
	background: url(images/apartment-detail/icon-check.svg) center / contain no-repeat;
}
.rj-apt-adv-card__text { color: var(--rj-nd-muted); font-size: 13px; line-height: 1.5; }
.rj-apt-adv-card__text p { margin: 0; }

/* ---------- Overview: gallery (photos run to the screen edges) ---------- */
.elementor .e-con.rj-apt-gallery-section { --gap: 10px; --row-gap: 10px; --align-items: center; text-align: center; }
/* The row runs the full screen width out of the boxed section (Elementor caps widgets at max-width: 100%).
   The full-width section around it clips it, so the 100vw row (it includes the scroll bar) adds no sideways scroll. */
.elementor .e-con:has(> .e-con-inner > .rj-apt-gallery-section),
.elementor .e-con:has(> .rj-apt-gallery-section) { overflow-x: clip; }
.elementor .e-con.rj-apt-gallery-section > .elementor-widget-rj_apt_gallery { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
/* Nearly square photos with a narrow gap; the row opens centred (assets/apartment-detail.js), so a photo is cut
   off at each side of the screen, with the arrows over those photos. */
.rj-apt-gallery { --rj-apt-slide-w: min(29.7vw, 430px); --rj-apt-slide-h: calc(var(--rj-apt-slide-w) * 1.06); }
.rj-apt-gallery__full-wrap { margin: 4px 0 20px; text-align: center; }
.rj-apt-gallery__frame { position: relative; }
.rj-apt-gallery__track {
	display: flex; justify-content: safe center; gap: 10px; padding: 0; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none;
}
.rj-apt-gallery__track::-webkit-scrollbar { display: none; }
.rj-apt-gallery__slide { flex: 0 0 var(--rj-apt-slide-w); height: var(--rj-apt-slide-h); overflow: hidden; border-radius: var(--rj-nd-radius-sm); }
.rj-apt-gallery__slide img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.rj-apt-gallery__slide:hover img { transform: scale(1.03); }
.rj-apt-gallery__arrow {
	position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
	background: #fff center / 18px no-repeat; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); transform: translateY(-50%); cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5M12 19l-7-7 7-7'/%3E%3C/svg%3E");
}
.rj-apt-gallery__arrow--prev { inset-inline-start: 6%; }
.rj-apt-gallery__arrow--next { inset-inline-end: 6%; transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .rj-apt-gallery__arrow--prev { transform: translateY(-50%) scaleX(-1); }
[dir="rtl"] .rj-apt-gallery__arrow--next { transform: translateY(-50%); }

/* ---------- Contact Reuven: teal panel ---------- */
.elementor .e-con.rj-apt-contact {
	--gap: 12px; --row-gap: 12px; --align-items: center; --padding-top: 36px; --padding-bottom: 36px; --padding-left: 24px; --padding-right: 24px;
	text-align: center; border-radius: var(--rj-nd-radius);
	background: radial-gradient(ellipse at 15% 50%, rgba(255, 255, 255, .55), transparent 55%), radial-gradient(ellipse at 90% 40%, rgba(81, 170, 186, .9), transparent 60%), linear-gradient(90deg, #bfe3e9, #7cc6d2);
}
.rj-apt-contact .elementor-heading-title { color: var(--rj-nd-ink); }
.rj-apt-btn--whatsapp { background: var(--rj-nd-teal-dark); color: #fff; padding: 6px 20px 6px 6px; }
[dir="rtl"] .rj-apt-btn--whatsapp { padding: 6px 6px 6px 20px; }
.rj-apt-btn--whatsapp img { flex: none; display: block; width: 30px; height: 30px; }

/* ---------- Visiting Israel ---------- */
.elementor .e-con.rj-apt-visit { --flex-wrap: nowrap; --gap: 0; --column-gap: 0; --align-items: stretch; overflow: hidden; border-radius: var(--rj-nd-radius); background: var(--rj-nd-tint); }
.elementor .e-con.rj-apt-visit__text { --gap: 14px; --row-gap: 14px; --justify-content: center; --padding-top: 40px; --padding-bottom: 40px; --padding-left: 40px; --padding-right: 40px; flex: 1 1 0; }
/* The photo fills the panel next to the text, whatever its own proportions. */
.elementor .rj-apt-visit > .rj-apt-visit__image { position: relative; flex: 1 1 0; min-height: 320px; }
.elementor .rj-apt-visit .rj-apt-image { position: absolute; inset: 0; height: 100%; }

/* ---------- Blog ---------- */
.elementor .e-con.rj-apt-blog { --gap: 24px; --row-gap: 24px; }
.elementor .e-con.rj-apt-blog__top { --justify-content: space-between; --align-items: flex-end; --flex-wrap: wrap; --row-gap: 12px; }
.elementor .e-con.rj-apt-blog__heading { --gap: 10px; --row-gap: 10px; width: auto; }
.rj-apt-blog__top > .elementor-widget-button { width: auto; }
.rj-blog-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; font-family: var(--rj-nd-body); }
.rj-blog-cards__card { display: flex; gap: 16px; padding: 10px; border-radius: var(--rj-nd-radius-sm); background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .07); }
.rj-blog-cards__media { flex: 0 0 42%; overflow: hidden; border-radius: 10px; }
.elementor .rj-blog-cards__media img,
.rj-blog-cards__media img { display: block; width: 100%; height: 100%; min-height: 120px; max-height: 150px; object-fit: cover; }
.rj-blog-cards__body { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; }
.rj-blog-cards__cat { margin: 0; color: var(--rj-nd-muted); font-size: 12px; }
.rj-blog-cards__title { margin: 0 0 4px; font-family: var(--rj-nd-heading); font-size: 18px; font-weight: var(--rj-nd-heading-weight-strong); line-height: 1.2; }
.rj-blog-cards__title a { color: var(--rj-nd-ink); text-decoration: none; }
.rj-blog-cards__title a:hover { color: var(--rj-nd-teal-dark); }

/* ---------- Apartments tab: intro + floor plans & availability ---------- */
.elementor .e-con.rj-apt-units-intro { --gap: 40px; --column-gap: 40px; --align-items: flex-end; --flex-wrap: nowrap; }
.elementor .e-con.rj-apt-units-intro__heading { --gap: 10px; --row-gap: 10px; flex: 1 1 0; }
.rj-apt-units-intro > .rj-apt-units-intro__text { flex: 1 1 0; }
/* Tinted panel that runs a little wider than the content, as in the design. */
.elementor .rj-apt-units-panel .elementor-widget-rj_apt_floorplans { margin-inline: -40px; width: calc(100% + 80px); max-width: none; }

.rj-fp {
	--rj-fp-available: var(--rj-nd-teal);
	--rj-fp-reserved: #f08a4b;
	--rj-fp-sold: var(--rj-nd-accent);
	padding: 40px; border-radius: var(--rj-nd-radius); background: var(--rj-nd-tint); font-family: var(--rj-nd-body); color: var(--rj-nd-ink);
}
.rj-fp button { font-family: inherit; }
.rj-fp [hidden] { display: none !important; }
.rj-fp__title { margin: 0 0 20px; font-family: var(--rj-nd-heading); font-size: clamp(24px, 2.4vw, 32px); font-weight: var(--rj-nd-heading-weight); line-height: 1.15; }
.rj-fp__step {
	display: flex; align-items: center; gap: 10px; margin: 32px 0 16px; padding-inline-start: 18px; border-inline-start: 3px solid var(--rj-nd-accent);
	color: var(--rj-nd-teal-dark); font-family: var(--rj-nd-heading); font-size: clamp(18px, 1.8vw, 22px); font-weight: var(--rj-nd-heading-weight); line-height: 1.2;
}
.rj-fp__title + .rj-fp__step { margin-top: 0; }
.rj-fp__step-num { padding: 3px 12px; border-radius: 8px; background: var(--rj-nd-teal-dark); color: #fff; font-size: 13px; font-weight: 700; }
.rj-fp__step-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 32px 0 16px; }
.rj-fp__step-row .rj-fp__step { margin: 0; }

/* Step 1: floors */
.rj-fp__floors { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.rj-fp__floor {
	display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 2px; min-width: 116px; padding: 10px 16px; border: 0; border-radius: 999px;
	background: #fff; color: var(--rj-nd-ink); cursor: pointer; box-shadow: 0 2px 8px rgba(50, 103, 117, .06);
}
.rj-fp__floor-name { font-family: var(--rj-nd-heading); font-size: 17px; font-weight: 500; line-height: 1.1; }
.rj-fp__floor-count { color: var(--rj-nd-muted); font-size: 11px; }
.rj-fp__floor.is-active { background: var(--rj-nd-teal); color: #fff; }
.rj-fp__floor.is-active .rj-fp__floor-count { color: rgba(255, 255, 255, .85); }

/* Step 2: apartments */
.rj-fp__legend { display: flex; gap: 18px; margin: 0; padding: 0; list-style: none; color: var(--rj-nd-muted); font-size: 12px; }
.rj-fp__legend-item { display: inline-flex; align-items: center; gap: 6px; }
.rj-fp__legend-item::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rj-fp-available); }
.rj-fp__legend-item--reserved::before { background: var(--rj-fp-reserved); }
.rj-fp__legend-item--sold::before { background: var(--rj-fp-sold); }
.rj-fp__units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rj-fp__unit {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border: 0; border-radius: var(--rj-nd-radius-sm);
	background: #fff; color: var(--rj-nd-ink); text-align: start; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.rj-fp__unit:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(50, 103, 117, .12); }
.rj-fp__unit-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.rj-fp__unit-apt { font-size: 20px; font-weight: 500; }
.rj-fp__unit-num { color: var(--rj-nd-teal-dark); font-family: var(--rj-nd-heading); font-size: 48px; font-style: italic; font-weight: 600; line-height: 1.05; }
.rj-fp__unit-rooms { margin-top: 6px; font-size: 18px; font-weight: 500; }
.rj-fp__unit-size { color: var(--rj-nd-muted); font-size: 13px; }
.rj-fp__unit.is-active { background: var(--rj-nd-teal-dark); color: #fff; }
.rj-fp__unit.is-active .rj-fp__unit-num,
.rj-fp__unit.is-active .rj-fp__unit-size { color: #fff; }
.rj-fp__unit.is-active .rj-fp__badge { background: #fff; color: var(--rj-nd-ink); }
.rj-fp__badge { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--rj-fp-available); color: #fff; font-family: var(--rj-nd-body); font-size: 11px; font-style: normal; font-weight: 600; line-height: 1.6; }
.rj-fp__badge--reserved { background: var(--rj-fp-reserved); }
.rj-fp__badge--sold { background: var(--rj-fp-sold); }

/* Step 3: details */
.rj-fp__detail {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; padding: 12px 20px 16px 12px;
	border-top: 4px solid var(--rj-nd-teal-dark); border-radius: var(--rj-nd-radius-sm); background: #fff;
}
.rj-fp__detail-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 10px; background: var(--rj-nd-tint); }
.rj-fp__detail-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; font-family: var(--rj-nd-heading); font-size: 13px; font-weight: 600; }
.rj-fp__detail-rooms { margin: 0 0 4px; color: var(--rj-nd-teal-dark); font-family: var(--rj-nd-heading); font-size: clamp(28px, 3vw, 38px); font-weight: 600; line-height: 1.05; }
.rj-fp__btn { width: 100%; }
.rj-fp__btn--dark { background: var(--rj-nd-teal-dark); color: #fff; }
.rj-fp__btn .rj-fp__icon { width: 18px; height: 18px; }
.rj-fp__note { margin: 10px 2px 0; color: var(--rj-nd-muted); font-size: 11px; line-height: 1.5; }
.rj-fp__specs { margin: 0; }
.rj-fp__spec { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rj-nd-line); font-size: 13px; }
.rj-fp__spec dt { display: inline-flex; align-items: center; gap: 8px; color: var(--rj-nd-muted); font-weight: 400; }
.rj-fp__spec dt .rj-fp__icon { color: var(--rj-nd-teal-dark); }
.rj-fp__spec dt .rj-fp__icon--design { flex: none; width: 22px; height: 22px; color: var(--rj-nd-teal); }
.rj-fp__spec dd { margin: 0; font-weight: 600; }
.rj-fp__spec--sub { padding: 2px 0 2px 34px; border: 0; }
[dir="rtl"] .rj-fp__spec--sub { padding: 2px 34px 2px 0; }
.rj-fp__spec--sub dt::before { content: "\2514"; margin-inline-end: 2px; color: var(--rj-nd-muted); }
.rj-fp__spec--plain { padding-top: 14px; }
.rj-fp__spec--total { border: 0; padding-top: 12px; }
.rj-fp__spec--total dt,
.rj-fp__spec--total dd { color: var(--rj-nd-accent); font-weight: 700; font-size: 14px; }
.rj-fp__dollar { width: 20px; color: var(--rj-nd-accent); font-size: 22px; font-weight: 700; text-align: center; line-height: 1; }

/* Step 4: plan */
.rj-fp__types { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #fff; }
.rj-fp__type { padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--rj-nd-ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.rj-fp__type.is-active { background: var(--rj-nd-teal-dark); color: #fff; }
.rj-fp__plan { position: relative; margin: 20px 48px 0; }
.rj-fp__plan-frame { overflow: hidden; border: 3px solid var(--rj-nd-teal); border-radius: var(--rj-nd-radius); background: #fff; }
.rj-fp__plan-img img { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; margin-inline: auto; }
.rj-fp__plan-empty { display: grid; place-items: center; min-height: 260px; margin: 0; color: var(--rj-nd-muted); font-size: 14px; }
.rj-fp__arrow {
	position: absolute; top: 50%; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
	background: #fff; color: var(--rj-nd-ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .12); transform: translateY(-50%); cursor: pointer;
}
.rj-fp__arrow--prev { inset-inline-start: -20px; }
.rj-fp__arrow--next { inset-inline-end: -20px; }
[dir="rtl"] .rj-fp__arrow .rj-fp__icon { transform: scaleX(-1); }
.rj-fp__plan-note { margin: 14px 0 0; color: var(--rj-nd-muted); font-size: 12px; text-align: center; }
.rj-fp__floor:focus-visible,
.rj-fp__unit:focus-visible,
.rj-fp__type:focus-visible,
.rj-fp__arrow:focus-visible { outline: 2px solid var(--rj-nd-accent); outline-offset: 2px; }

/* ---------- Specifications tab ---------- */
/* "Make it yours": project photo (Image widget) + text, like the Overview's welcome row. */
.elementor .rj-apt-welcome .rj-apt-finishes__image { flex: 0 0 46%; }
.elementor .rj-apt-finishes__image img { display: block; width: 100%; height: 340px; object-fit: cover; border-radius: var(--rj-nd-radius); }
/* Tinted panel with the specification cards; runs a little wider than the content, like the floor plans panel. */
.elementor .e-con.rj-apt-specs-panel {
	--gap: 32px; --row-gap: 32px; --padding-top: 40px; --padding-bottom: 40px; --padding-left: 40px; --padding-right: 40px;
	margin-inline: -40px; width: calc(100% + 80px); max-width: none; border-radius: var(--rj-nd-radius); background: var(--rj-nd-tint);
}

.rj-specs__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.rj-specs__col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.rj-specs__card { border-radius: var(--rj-nd-radius-sm); background: #fff; box-shadow: 0 6px 18px rgba(50, 103, 117, .08); }
.rj-specs__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; list-style: none; }
.rj-specs__head::-webkit-details-marker { display: none; }
.rj-specs__head:focus-visible { outline: 2px solid var(--rj-nd-accent); outline-offset: 2px; border-radius: var(--rj-nd-radius-sm); }
.rj-specs__icon { display: inline-flex; flex: none; color: var(--rj-nd-accent); font-size: 18px; }
.rj-specs__icon svg { width: 20px; height: 20px; fill: currentColor; }
/* Design icons (spec-*.svg): their own fill / stroke, in currentColor. */
.rj-specs__icon--design svg { width: 26px; height: 26px; fill: none; }
.rj-specs__title { flex: 1 1 auto; margin: 0; color: var(--rj-nd-ink); font-family: var(--rj-nd-heading); font-size: clamp(18px, 1.6vw, 21px); font-weight: var(--rj-nd-heading-weight-strong); line-height: 1.2; }
.rj-specs__chevron {
	flex: none; width: 18px; height: 18px; transition: transform .2s ease; /* Down while closed, up while open. */
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke-width='2' stroke-linecap='round' stroke='%23000'/%3E%3C/svg%3E") center / contain no-repeat;
}
.rj-specs__card[open] .rj-specs__chevron { transform: rotate(180deg); }
.rj-specs__list { margin: 0; padding: 0 18px 16px 44px; color: var(--rj-nd-muted); font-family: var(--rj-nd-body); font-size: 13px; line-height: 1.5; }
[dir="rtl"] .rj-specs__list { padding: 0 44px 16px 18px; }
.rj-specs__list li { margin: 0 0 8px; }
.rj-specs__list li:last-child { margin-bottom: 0; }
.rj-specs__list li::marker { color: var(--rj-nd-teal-dark); }
.rj-specs__download { margin: 24px 0 0; text-align: center; }

/* ---------- Location tab ---------- */
.elementor .e-con.rj-apt-location { --align-items: stretch; --gap: 32px; --column-gap: 32px; --flex-wrap: nowrap; }
/* Tall map photo beside the text, filling the row's height; the pin sits right of centre in the source photo. */
.elementor .rj-apt-location > .rj-apt-location__image { position: relative; flex: 0 0 42%; min-height: 420px; }
.elementor .rj-apt-location__image .elementor-widget-container { position: absolute; inset: 0; }
.elementor .rj-apt-location__image img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 70% center; border-radius: var(--rj-nd-radius); }
.elementor .e-con.rj-apt-location__text { --gap: 12px; --row-gap: 12px; flex: 1 1 0; }
.rj-apt-location__text .elementor-widget-button { width: auto; align-self: flex-start; margin-top: 8px; }

.rj-area-path {
	display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 14px 6px 10px; border-radius: 999px;
	background: var(--rj-nd-pill); color: var(--rj-nd-ink); font-family: var(--rj-nd-body); font-size: 16px; line-height: 1.3;
}
.rj-area-path .rj-dev-cards__icon { height: 18px; color: var(--rj-nd-accent); }
.rj-area-path__sep { color: var(--rj-nd-accent); font-weight: 600; }
.rj-area-path strong { font-weight: 700; }

.rj-distances { margin: 0; font-family: var(--rj-nd-body); font-size: 14px; }
.rj-distances__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 6px; border-bottom: 1px dashed #cfd8da; }
.rj-distances__row:first-child { border-top: 1px dashed #cfd8da; }
.rj-distances dt { margin: 0; color: var(--rj-nd-ink); font-weight: 400; }
.rj-distances dd { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--rj-nd-ink); font-weight: 600; white-space: nowrap; }
.rj-distances__icon { color: var(--rj-nd-teal-dark); }

/* ---------- Financials tab: closing costs calculator ---------- */
/*
 * Tinted band around the calculator, as in the design: almost as wide as the window (8px from the section's edges),
 * while the two cards stay lined up with the page content above it. The section is the size reference (cqw), so
 * nothing gets wider than the page. Where the content already fills the section (tablet, phone): content width.
 */
.elementor .e-con#tab-financials { container-type: inline-size; }
.elementor .e-con.rj-apt-fin-panel {
	--rj-fin-bleed: calc((100cqw - 100%) / 2 - 8px);
	--padding-top: 32px; --padding-bottom: 32px;
	--padding-left: max(16px, var(--rj-fin-bleed)); --padding-right: max(16px, var(--rj-fin-bleed));
	--width: auto; width: auto; max-width: none; align-self: stretch;
	margin-inline: min(0px, calc(var(--rj-fin-bleed) * -1));
	border-radius: var(--rj-nd-radius); background: #e6f2f4; /* light teal band of the design */
}
.rj-fin {
	--rj-fin-pink: #fdebe7;
	display: grid; grid-template-columns: minmax(0, 9fr) minmax(0, 11fr); gap: 20px; align-items: start;
	font-family: var(--rj-nd-body); color: var(--rj-nd-ink); font-size: 13px; line-height: 1.45;
}
.rj-fin button { font-family: inherit; }
.rj-fin [hidden] { display: none !important; }
.rj-fin p { margin: 0; }
.rj-fin dl, .rj-fin dd { margin: 0; }
.rj-fin__icon { flex: none; }
.rj-fin__pick,
.rj-fin__costs { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 22px; border-radius: 20px; }
/* Teal colour under the gradient: Elementor's lazy-loaded backgrounds remove background images in a section
   (a tab's section is hidden at first) until it has been on screen. */
.rj-fin__pick { background: var(--rj-nd-teal) linear-gradient(160deg, #5db3c2, var(--rj-nd-teal) 55%, #4799a8); color: #fff; }
.rj-fin__costs { background: #fff; box-shadow: 0 10px 30px rgba(50, 103, 117, .1); }
.rj-fin__card-title {
	margin: 0 0 4px; padding-inline-start: 12px; border-inline-start: 4px solid var(--rj-nd-accent);
	font-family: var(--rj-nd-heading); font-size: clamp(20px, 1.8vw, 24px); font-weight: var(--rj-nd-heading-weight); line-height: 1.15; color: inherit;
}
.rj-fin__step { margin: 6px 0 0; font-family: var(--rj-nd-body); font-size: 13px; font-weight: 600; line-height: 1.3; color: inherit; }
.rj-fin__costs .rj-fin__step { color: var(--rj-nd-teal-dark); }
.rj-fin__step-num { font-weight: 700; }
.rj-fin__label { color: var(--rj-nd-muted); font-size: 12px; }
.rj-fin__lead { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.rj-fin__small { color: var(--rj-nd-muted); font-size: 10.5px; line-height: 1.5; }
.rj-fin__pick .rj-fin__small { color: rgba(255, 255, 255, .85); }
.rj-fin__small--indent { padding-inline-start: 18px; }

/* Left card: floors and apartments */
.rj-fin__floors { display: flex; flex-wrap: wrap; gap: 8px; }
.rj-fin__floor {
	min-width: 46px; padding: 6px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .25); color: #fff;
	font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s ease;
}
.rj-fin__floor:hover { background: rgba(255, 255, 255, .4); }
.rj-fin__floor.is-active { background: #fff; color: var(--rj-nd-ink); }
.rj-fin__units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rj-fin__unit {
	display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 8px 10px; border: 2px solid transparent; border-radius: 12px;
	background: rgba(255, 255, 255, .92); color: var(--rj-nd-ink); text-align: start; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.rj-fin__unit:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0, 0, 0, .1); }
.rj-fin__unit.is-active { border-color: var(--rj-nd-teal-dark); background: #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .12); }
.rj-fin__unit:disabled { cursor: not-allowed; opacity: .6; }
.rj-fin__unit-num { font-family: var(--rj-nd-heading); font-size: 22px; font-style: italic; font-weight: 600; line-height: 1; color: var(--rj-nd-teal-dark); }
.rj-fin__unit-facts { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--rj-nd-muted); font-size: 11px; }
.rj-fin__unit-facts > span { display: inline-flex; align-items: center; gap: 3px; }
.rj-fin__unit-facts .rj-fin__icon { color: var(--rj-nd-teal); }
.rj-fin__unit-side { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.rj-fin__unit-status { color: #2f9e57; font-size: 10px; font-weight: 700; }
.rj-fin__unit--sold .rj-fin__unit-status { color: var(--rj-nd-accent); }
.rj-fin__unit--reserved .rj-fin__unit-status { color: #f08a4b; }
.rj-fin__unit-price { font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Left card: chosen apartment and Madad */
.rj-fin__step-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 6px 16px; }
.rj-fin__meta { display: flex; gap: 14px; font-size: 12px; font-weight: 600; }
.rj-fin__meta > span { display: inline-flex; align-items: center; gap: 5px; }
.rj-fin__info { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 12px; background: #fff; color: var(--rj-nd-ink); font-size: 11.5px; }
.rj-fin__info .rj-fin__icon { color: var(--rj-nd-accent); }
.rj-fin__chosen { display: flex; align-items: center; gap: 18px; padding: 4px 2px; }
/* The apartment number inside the design's frame (fin-apartment.svg). */
.rj-fin__chosen-apt { position: relative; display: grid; flex: none; place-items: center; width: 34px; height: 44px; font-weight: 700; font-size: 12px; line-height: 1; }
.rj-fin__chosen-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.rj-fin__chosen-apt .rj-fin__out { position: relative; }
.rj-fin__chosen-facts { display: flex; flex: 1 1 auto; gap: 24px; }
.rj-fin__chosen-facts dt { font-size: 12px; font-weight: 400; opacity: .9; }
.rj-fin__chosen-facts dd { font-family: var(--rj-nd-heading); font-size: clamp(18px, 1.7vw, 22px); font-weight: 600; line-height: 1.2; }
.rj-fin__madad { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 14px; background: rgba(23, 74, 87, .28); }
.rj-fin__madad-top { display: flex; flex-direction: column; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.rj-fin__madad-head { font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.rj-fin__madad-rate { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; opacity: .95; cursor: pointer; }
.rj-fin__madad-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.rj-fin__madad-row small { display: block; margin-top: 2px; font-size: 11px; font-weight: 400; text-transform: none; opacity: .9; }
.rj-fin__madad-base { font-weight: 400; text-transform: none; }
.rj-fin__madad-num { flex: none; font-family: var(--rj-nd-heading); font-size: clamp(20px, 2vw, 26px); font-weight: 600; line-height: 1; white-space: nowrap; }

/* Small editable values (Madad rate, fee rates) */
.rj-fin__input {
	display: inline-flex; align-items: center; gap: 2px; padding: 3px 10px; border-radius: 999px; background: var(--rj-nd-tint);
	color: var(--rj-nd-ink); font-size: 12px; font-weight: 600;
}
.rj-fin__input--light { background: #fff; }
.rj-fin__input input {
	width: 3.2em; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: end; -moz-appearance: textfield; appearance: textfield;
}
.rj-fin__input--wide input { width: 4.4em; }
.rj-fin__input input::-webkit-outer-spin-button,
.rj-fin__input input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.rj-fin__input:focus-within { outline: 2px solid var(--rj-nd-accent); outline-offset: 1px; }
.rj-fin__input input:focus { outline: none; box-shadow: none; }

/* Right card */
.rj-fin__currencies { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--rj-nd-line); }
.rj-fin__currency {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 999px; background: var(--rj-nd-tint);
	color: var(--rj-nd-ink); font-size: 12px; font-weight: 600; cursor: pointer;
}
.rj-fin__currency img { display: block; width: 24px; height: 16px; border-radius: 3px; }
.rj-fin__currency.is-active { background: var(--rj-nd-teal); color: #fff; }
.rj-fin__block { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--rj-nd-line); }
.rj-fin__block:last-child { padding-bottom: 0; border-bottom: 0; }
.rj-fin__statuses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rj-fin__status {
	display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px;
	background: var(--rj-nd-tint); color: var(--rj-nd-ink); text-align: start; cursor: pointer; transition: background .15s ease;
}
.rj-fin__status:hover { background: var(--rj-nd-pill); }
.rj-fin__status-title { font-family: var(--rj-nd-heading); font-size: 15px; font-weight: 600; line-height: 1.2; }
.rj-fin__status-sub { color: var(--rj-nd-muted); font-size: 11px; }
.rj-fin__status.is-active { background: var(--rj-nd-teal); color: #fff; }
.rj-fin__status.is-active .rj-fin__status-sub { color: rgba(255, 255, 255, .9); }

.rj-fin__payments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rj-fin__pay { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--rj-nd-pill); border-radius: 12px; background: var(--rj-nd-card); }
.rj-fin__pay--later { border-color: #f8d3ca; background: var(--rj-fin-pink); }
.rj-fin__pay-title { font-family: var(--rj-nd-heading); font-size: 15px; font-weight: 700; line-height: 1.2; }
.rj-fin__pay dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 0; font-size: 11.5px; }
.rj-fin__pay dt { color: var(--rj-nd-muted); font-weight: 400; }
.rj-fin__pay dd { font-weight: 600; white-space: nowrap; }
.rj-fin__pay-total { margin-top: 4px; padding-top: 8px !important; border-top: 1px solid rgba(0, 0, 0, .08); }
.rj-fin__pay-total dt { color: var(--rj-nd-ink); font-weight: 700; }
.rj-fin__pay-total dd { font-size: 14px; font-weight: 700; }

.rj-fin__fees > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rj-nd-line); }
.rj-fin__fee dt { display: inline-flex; align-items: center; gap: 8px; color: var(--rj-nd-ink); font-weight: 400; }
.rj-fin__fee dt label { cursor: pointer; }
.rj-fin__fee dt::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rj-nd-teal); }
.rj-fin__fee--tax dt::before { background: #f29a8c; }
.rj-fin__fee--lawyer dt::before { background: #8fd0dc; }
.rj-fin__fee--developer dt::before { background: var(--rj-nd-teal); }
.rj-fin__fee--agent dt::before { background: var(--rj-nd-teal-dark); }
/* "Estimate only..." under the whole calculator. */
.rj-fin__estimate { grid-column: 1 / -1; margin: 0; color: var(--rj-nd-muted); font-size: 12px; text-align: center; }
.rj-fin__fee dd { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; white-space: nowrap; }
.rj-fin__fee dd .rj-fin__out { min-width: 6.5em; text-align: end; }
.rj-fin__fees > .rj-fin__fee--total { padding-inline-start: 15px; border-bottom: 0; }
.rj-fin__fee--total dt { font-weight: 700; }
.rj-fin__fee--total dt::before { display: none; }
.rj-fin__fee--total dd { color: var(--rj-nd-teal-dark); font-size: 15px; font-weight: 700; }

.rj-fin__grand { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rj-fin__grand .rj-fin__step { margin: 0; }
.rj-fin__grand .rj-fin__lead { margin-top: 4px; color: var(--rj-nd-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.rj-fin__grand-num { flex: none; color: var(--rj-nd-ink); font-family: var(--rj-nd-heading); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; line-height: 1; white-space: nowrap; }
.rj-fin__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 10px 14px; border-radius: 12px; background: var(--rj-nd-tint); }
.rj-fin__sum dt { color: var(--rj-nd-muted); font-size: 11px; font-weight: 400; }
.rj-fin__sum dd { font-size: 14px; font-weight: 700; }
.rj-fin__sum > div:last-child { text-align: end; }

.rj-fin__floor:focus-visible,
.rj-fin__unit:focus-visible,
.rj-fin__status:focus-visible,
.rj-fin__currency:focus-visible { outline: 2px solid var(--rj-nd-accent); outline-offset: 2px; }

/* ---------- The Builder tab ---------- */
/* Builder photo + "About" text (the Overview's welcome row), then the three features (New Developments style). */
.elementor .e-con.rj-apt-builder { --align-items: flex-start; }
.elementor .rj-apt-welcome .rj-apt-builder__image { flex: 0 0 46%; }
.elementor .rj-apt-builder__image img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 13; object-fit: cover; border-radius: var(--rj-nd-radius-sm); }
.rj-apt-panel .rj-nd-why__features .elementor-icon-box-title { max-width: 220px; }
/* Icon beside the text on every screen size, in the accent colour (Elementor's own icon-box rules put the icon
   on top on phones and colour it with the kit's primary colour, and are more specific than dev-cards.css). */
.elementor .rj-apt-panel .elementor-widget-icon-box.rj-nd-feature .elementor-icon-box-wrapper { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; text-align: start; }
.elementor .rj-apt-panel .elementor-widget-icon-box.rj-nd-feature .elementor-icon-box-icon { margin: 0; }
.elementor .rj-apt-panel .elementor-widget-icon-box.rj-nd-feature .elementor-icon { color: var(--rj-nd-accent); fill: var(--rj-nd-accent); font-size: 22px; }
.elementor .rj-apt-panel .elementor-widget-icon-box.rj-nd-feature .elementor-icon svg { width: 22px; height: 22px; fill: currentColor; }
.elementor .rj-apt-panel .elementor-widget-icon-box.rj-nd-feature .elementor-icon-box-content { flex: 1 1 auto; text-align: start; }
/* Feature icons from the design (assets/images/apartment-detail/icon-*.svg): add the class in Advanced > CSS Classes
   and leave the Icon Box's own icon empty. */
[class*="rj-apt-feature--icon-"] .elementor-icon-box-wrapper::before {
	content: ""; flex: 0 0 26px; height: 26px; margin-top: 2px; background: center / contain no-repeat;
}
.rj-apt-feature--icon-track-record .elementor-icon-box-wrapper::before { background-image: url(images/apartment-detail/icon-track-record.svg); }
.rj-apt-feature--icon-community .elementor-icon-box-wrapper::before { background-image: url(images/apartment-detail/icon-community.svg); }
.rj-apt-feature--icon-craftsmanship .elementor-icon-box-wrapper::before { flex-basis: 29px; background-image: url(images/apartment-detail/icon-craftsmanship.svg); }

/* ---------- Brochure popup (framework/apartment-brochure.php) ---------- */
.rj-brochure {
	width: min(460px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 32px 28px 28px; overflow: auto;
	border: 0; border-radius: var(--rj-nd-radius); background: #fff; color: var(--rj-nd-ink); font-family: var(--rj-nd-body);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.rj-brochure::backdrop { background: rgba(18, 52, 61, .55); }
.rj-brochure[open] { animation: rj-brochure-in .2s ease-out; }
@keyframes rj-brochure-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rj-brochure [hidden] { display: none !important; }
.rj-brochure__step { display: flex; flex-direction: column; gap: 12px; }
.rj-brochure__close {
	position: absolute; top: 14px; inset-inline-end: 14px; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: var(--rj-nd-tint) center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M1 1l12 12M13 1 1 13'/%3E%3C/svg%3E");
}
.rj-brochure__close:hover { background-color: var(--rj-nd-pill); }
.rj-brochure__title { margin: 0; color: var(--rj-nd-ink); font-family: var(--rj-nd-heading); font-size: clamp(24px, 3vw, 30px); font-weight: var(--rj-nd-heading-weight); line-height: 1.15; }
.rj-brochure__text { margin: 0; color: var(--rj-nd-muted); font-size: 14px; line-height: 1.55; }
.rj-brochure__text a { color: var(--rj-nd-teal-dark); font-weight: 600; }
.rj-brochure__form { display: flex; flex-direction: column; gap: 14px; margin-top: 6px; }
.rj-brochure__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; }
.rj-brochure__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot, for bots only */
.rj-brochure__field em { color: var(--rj-nd-accent); font-style: normal; }
.rj-brochure__field input {
	width: 100%; height: 46px; padding: 0 14px; border: 1px solid #cfd8da; border-radius: 12px; background: #fff;
	color: var(--rj-nd-ink); font: 400 15px var(--rj-nd-body); box-shadow: none;
}
.rj-brochure__field input:focus { border-color: var(--rj-nd-teal); outline: 2px solid color-mix(in srgb, var(--rj-nd-teal) 30%, transparent); outline-offset: 0; }
.rj-brochure__form.is-checked input:invalid { border-color: var(--rj-nd-accent); }
.rj-brochure__error { margin: -4px 0 0; color: var(--rj-nd-accent); font-size: 13px; }
.rj-brochure__submit,
.rj-brochure [data-rj-brochure-done] .rj-apt-btn { width: 100%; margin-top: 4px; padding: 14px 22px; font-size: 15px; }
.rj-brochure .rj-apt-btn:focus-visible,
.rj-brochure__close:focus-visible { outline: 2px solid var(--rj-nd-accent); outline-offset: 2px; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 1024px) {
	.rj-fin { grid-template-columns: minmax(0, 1fr); }
	.elementor .e-con.rj-apt-specs-panel { margin-inline: 0; width: 100%; }
	.rj-fp__units { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.elementor .rj-apt-units-panel .elementor-widget-rj_apt_floorplans { margin-inline: 0; width: 100%; }
	.elementor .e-con.rj-apt-glance-row { --gap: 24px; --column-gap: 24px; }
	.rj-apt-project-logo img { height: 90px; max-width: 200px; }
	.elementor .e-con.rj-apt-adv-card { width: 100%; }
	.rj-apt-gallery { --rj-apt-slide-w: 42vw; }
}
@media (max-width: 767px) {
	.elementor .elementor-element.e-con.rj-apt-location { --flex-direction: column; flex-direction: column; }
	.elementor .rj-apt-location > .rj-apt-location__image { flex-basis: auto; min-height: 300px; }
	.rj-specs__grid { grid-template-columns: minmax(0, 1fr); }
	.elementor .e-con.rj-apt-fin-panel { --padding-top: 16px; --padding-bottom: 16px; --padding-left: 12px; --padding-right: 12px; border-radius: var(--rj-nd-radius-sm); }
	.rj-fin__pick,
	.rj-fin__costs { padding: 16px; border-radius: 16px; }
	.rj-fin__units,
	.rj-fin__statuses,
	.rj-fin__payments { grid-template-columns: minmax(0, 1fr); }
	.rj-fin__sum { grid-template-columns: minmax(0, 1fr); }
	.rj-fin__sum > div { display: flex; justify-content: space-between; gap: 8px; }
	.rj-fin__sum > div:last-child { text-align: start; }
	.rj-fin__fee dd { gap: 8px; margin-inline-start: auto; }
	.rj-fin__fee dd .rj-fin__out { min-width: 0; }
	.rj-fin__fees > div { flex-wrap: wrap; }
	.rj-fin__grand { flex-direction: column; }
	.elementor .e-con.rj-apt-specs-panel { --padding-top: 24px; --padding-bottom: 24px; --padding-left: 16px; --padding-right: 16px; border-radius: var(--rj-nd-radius-sm); }
	.elementor .rj-apt-finishes__image img { height: 240px; }
	.elementor .rj-apt-builder__image img { aspect-ratio: 4 / 3; object-position: center top; }
	.rj-apt-panel .rj-nd-why__features .elementor-icon-box-title { max-width: none; }
	.elementor .elementor-element.e-con.rj-apt-units-intro { --flex-direction: column; flex-direction: column; --align-items: stretch; }
	.rj-fp { padding: 24px 16px; border-radius: var(--rj-nd-radius-sm); }
	.rj-fp__floor { flex: 0 0 auto; min-width: 96px; }
	.rj-fp__unit-num { font-size: 38px; }
	.rj-fp__detail { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 12px; }
	.rj-fp__plan { margin-inline: 0; }
	.rj-fp__arrow--prev { inset-inline-start: 6px; }
	.rj-fp__arrow--next { inset-inline-end: 6px; }
	.rj-fp__types { display: flex; }
	.rj-fp__type { flex: 1 1 0; padding: 10px 12px; }
	.elementor .elementor-element.e-con.rj-apt-glance-row,
	.elementor .elementor-element.e-con.rj-apt-welcome,
	.elementor .elementor-element.e-con.rj-apt-advantage__top,
	.elementor .elementor-element.e-con.rj-apt-visit { --flex-direction: column; flex-direction: column; --align-items: stretch; }
	.rj-apt-glance-row { text-align: center; }
	.rj-apt-project-logo img { margin-inline: auto; }
	.rj-apt-glance__items { grid-auto-flow: row; gap: 16px; }
	.rj-apt-glance__item,
	.rj-apt-glance__item:first-child { padding: 0; border: 0; }
	.rj-apt-hero { min-height: 420px; align-items: flex-end; }
	.rj-apt-hero::before { background: linear-gradient(0deg, var(--rj-apt-hero-fade) 0%, color-mix(in srgb, var(--rj-apt-hero-fade) 80%, transparent) 45%, transparent 85%); }
	.rj-apt-hero__content { padding: 28px 20px; }
	.rj-apt-tabs { border-radius: 16px; }
	.rj-apt-tabs { gap: 8px; padding: 8px; }
	.rj-apt-tabs__tab { flex: 0 0 auto; min-height: 50px; padding: 14px 22px; font-size: 16px; }
	/* Shorter labels on phones ("Builder", "Specs"); the full label stays for screen readers. */
	.rj-apt-tabs__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.rj-apt-tabs__short { display: inline; }
	.rj-apt-welcome > .rj-apt-welcome__image { flex-basis: auto; }
	.elementor .rj-apt-image { height: 240px; }
	.elementor .e-con.rj-apt-adv-card { --flex-direction: column; flex-direction: column; }
	/* Phones: photo on top, touching the top and both sides. */
	.elementor .rj-apt-adv-card > .rj-apt-adv-card__image { flex-basis: auto; height: 200px; }
	.elementor .e-con.rj-apt-adv-card__body,
	[dir="rtl"] .elementor .e-con.rj-apt-adv-card__body { padding: 0 16px 16px; }
	/* Phones: one photo at a time, snapped to the centre. */
	.rj-apt-gallery { --rj-apt-slide-w: 80vw; --rj-apt-slide-h: 260px; }
	.rj-apt-gallery__track { scroll-snap-type: x mandatory; }
	.rj-apt-gallery__slide { scroll-snap-align: center; }
	.rj-apt-gallery__arrow--prev { inset-inline-start: 12px; }
	.rj-apt-gallery__arrow--next { inset-inline-end: 12px; }
	.elementor .e-con.rj-apt-visit__text { --padding-top: 28px; --padding-bottom: 28px; --padding-left: 20px; --padding-right: 20px; }
	.rj-blog-cards { grid-template-columns: minmax(0, 1fr); }
	.rj-apt-brand__logo img { height: 40px; }
	.rj-apt-brand__logo--main img { height: 34px; }
}

/* ---------- Phones: Overview tab as in the mobile design (HOMEPAGE DESIGN.pdf) ---------- */
@media (max-width: 767px) {
	.rj-apt-section h3.elementor-heading-title { font-size: 26px; line-height: 1.15; }

	/* Site header (Elementor header 18230) as in the design: transparent, over the hero; logo on the start side,
	   then white round buttons (language flag, search, menu). Only on pages with the apartment hero. */
	body:has(.rj-apt-hero) #header-hz-elementor { position: absolute; top: 0; left: 0; right: 0; z-index: 1000; background: transparent; }
	body.admin-bar:has(.rj-apt-hero) #header-hz-elementor { top: 46px; }
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-top-section {
		padding: 0 20px !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
	}
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-top-section > .elementor-container { min-height: 58px; }
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-top-section .elementor-widget-wrap { padding: 0 !important; }
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-widget-houzez_site_logo > .elementor-widget-container { margin: 0 !important; padding: 0 !important; }
	body:has(.rj-apt-hero) #header-hz-elementor .favethemes-site-logo { text-align: start !important; }
	body:has(.rj-apt-hero) #header-hz-elementor .favethemes-site-logo img { width: 142px; max-width: 100%; height: auto; }
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-social-icons-wrapper { gap: 9px; }
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-social-icon {
		display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border-radius: 50%;
		background: #fff !important; color: #000 !important; font-size: 17px;
	}
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-social-icon svg { width: 17px; height: 17px; fill: #000 !important; }
	body:has(.rj-apt-hero) #header-hz-elementor .rj-mobile-lang img { width: 22px; height: 16px; border-radius: 2px; }
	body:has(.rj-apt-hero) #header-hz-elementor .elementor-widget-houzez_site_menu { max-width: none !important; margin-inline-start: 9px; }
	body:has(.rj-apt-hero) #header-hz-elementor .houzez-menu-toggle-button {
		display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
		border: 1px solid #edeef0; border-radius: 50%; background: #fff !important; color: var(--rj-nd-teal) !important;
	}
	body:has(.rj-apt-hero) #header-hz-elementor .houzez-menu-toggle-button .houzez-icon {
		width: auto; height: auto; background: none !important; color: var(--rj-nd-teal) !important; font-size: 18px;
	}

	/* Hero: full width from the top of the screen (the header sits on it), teal on the text side fading into the photo. */
	.elementor .e-con.rj-apt-section--hero { --padding-top: 0; }
	.rj-apt-hero {
		width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); min-height: 300px; align-items: flex-start; border-radius: 0;
	}
	.rj-apt-hero::before { background: linear-gradient(90deg, var(--rj-apt-hero-fade) 0%, color-mix(in srgb, var(--rj-apt-hero-fade) 85%, transparent) 45%, color-mix(in srgb, var(--rj-apt-hero-fade) 35%, transparent) 100%); }
	[dir="rtl"] .rj-apt-hero::before { background: linear-gradient(270deg, var(--rj-apt-hero-fade) 0%, color-mix(in srgb, var(--rj-apt-hero-fade) 85%, transparent) 45%, color-mix(in srgb, var(--rj-apt-hero-fade) 35%, transparent) 100%); }
	.rj-apt-hero__content { gap: 12px; padding: 82px 20px 48px; }
	.rj-apt-hero__title { font-size: 38px; }
	.rj-apt-hero__text { font-size: 12px; line-height: 1.5; }
	.rj-apt-hero__location { padding: 5px 12px 5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); font-size: 12px; }

	/* Nothing on the page may make it wider than the screen (else a gallery arrow tap pans the whole page). */
	html:has(.rj-apt-section),
	body:has(.rj-apt-section) { overflow-x: clip; }
	.rj-apt-gallery__track { overscroll-behavior-x: contain; }

	/* Partner logos and Sales Dashboard on one row, inside the screen: the logos shrink, the button keeps its size. */
	.elementor .e-con.rj-apt-brand,
	.elementor .rj-apt-brand > .e-con-inner { --flex-wrap: nowrap; --gap: 10px; --column-gap: 10px; --justify-content: space-between; flex-wrap: nowrap; max-width: 100%; padding-top: 0; padding-bottom: 0; }
	.elementor .e-con.rj-apt-brand__logos { --gap: 8px; --column-gap: 8px; --flex-wrap: nowrap; flex: 1 1 auto; min-width: 0; max-width: 100%; }
	.elementor .e-con.rj-apt-brand__presented { flex: 0 1 auto; min-width: 0; padding-inline-start: 8px; }
	.elementor .rj-apt-brand .rj-apt-brand__logo { flex: 0 1 auto; width: auto; min-width: 0; }
	.rj-apt-brand__label .elementor-heading-title { font-size: 8px; white-space: nowrap; }
	.elementor .rj-apt-brand__logo img { width: auto; max-width: 100%; height: auto; max-height: 28px; }
	.elementor .rj-apt-brand__logo--main img { max-height: 26px; }
	.elementor .rj-apt-brand .elementor-widget-button { flex: 0 0 auto; margin-inline-start: auto; }
	.rj-apt-brand .rj-apt-button .elementor-button { padding: 8px 12px; font-size: 11px; white-space: nowrap; }
	.rj-apt-brand [class*="rj-apt-button--icon-"] .elementor-button-text::before { width: 14px; height: 14px; margin-inline-end: 4px; vertical-align: -3px; }

	/* Project logo on the start (left) side, the figures in two columns under it. */
	.rj-apt-glance-row { text-align: start; }
	.elementor .rj-apt-glance-row .elementor-widget.rj-apt-project-logo { align-self: flex-start; width: auto; text-align: start; }
	.elementor .rj-apt-glance-row .rj-apt-project-logo .elementor-widget-container,
	.elementor .rj-apt-glance-row .rj-apt-project-logo a { display: block; text-align: start; }
	.elementor .rj-apt-glance-row .rj-apt-project-logo img { height: 64px; max-width: 160px; margin-inline: 0; }
	.rj-apt-glance__items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rj-apt-glance__value { font-size: 26px; }

	/* Tabs: all six in one row that fits the screen (no sideways scrolling); the text scales with the screen width. */
	.rj-apt-tabs { gap: 0; padding: 3px; overflow: hidden; border-radius: 999px; }
	.rj-apt-tabs__tab { flex: 1 1 auto; min-width: 0; padding: 8px clamp(3px, 1.2vw, 10px); font-size: clamp(8px, 2.35vw, 13px); letter-spacing: -.01em; }

	/* Welcome: photo, then text, then the two buttons side by side. */
	.elementor .e-con.rj-apt-panel { --gap: 40px; --row-gap: 40px; }
	.elementor .e-con.rj-apt-welcome { --gap: 20px; --row-gap: 20px; }
	.elementor .rj-apt-welcome .rj-apt-image { height: 220px; }
	.rj-apt-welcome__desc { font-size: 14px; }
	.elementor .rj-apt-welcome .e-con.rj-apt-buttons { --flex-wrap: nowrap; --gap: 8px; --column-gap: 8px; }
	.rj-apt-welcome .rj-apt-buttons > .elementor-widget { flex: 1 1 0; min-width: 0; }
	.rj-apt-welcome .rj-apt-buttons .elementor-button { width: 100%; padding: 12px 10px; font-size: 12px; }
	.rj-apt-welcome .rj-apt-buttons [class*="rj-apt-button--icon-"] .elementor-button-text::before { width: 15px; height: 15px; margin-inline-end: 5px; vertical-align: -3px; }

	/* Advantage: centred heading, cards keep the photo on the start side. */
	.rj-apt-advantage__top,
	.rj-apt-advantage__top .elementor-widget { text-align: center; }
	.elementor .e-con.rj-apt-advantage__top { --gap: 12px; --row-gap: 12px; }
	.elementor .e-con.rj-apt-advantage__heading { --align-items: center; }
	.rj-apt-advantage__text { font-size: 14px; }
	.elementor .e-con.rj-apt-advantage__grid { --gap: 14px; --row-gap: 14px; }
	.elementor .elementor-element.e-con.rj-apt-adv-card { --flex-direction: row; flex-direction: row; --gap: 12px; --column-gap: 12px; }
	.elementor .rj-apt-adv-card > .rj-apt-adv-card__image { flex: 0 0 40%; height: auto; min-height: 120px; }
	.elementor .e-con.rj-apt-adv-card__body { padding: 12px 12px 12px 0; }
	[dir="rtl"] .elementor .e-con.rj-apt-adv-card__body { padding: 12px 0 12px 12px; }
	.rj-apt-section .rj-apt-adv-card__title h3.elementor-heading-title { font-size: 19px; gap: 6px; }
	.rj-apt-adv-card__title .elementor-heading-title::before { flex-basis: 18px; height: 18px; }
	.rj-apt-adv-card__text { font-size: 12px; line-height: 1.4; }

	/* Gallery: a centred photo with its neighbours peeking in at both sides. */
	.rj-apt-gallery { --rj-apt-slide-w: 64vw; --rj-apt-slide-h: calc(64vw * 1.15); }
	.rj-apt-gallery__arrow { width: 36px; height: 36px; background-size: 15px; }
	.rj-apt-gallery__full-wrap .rj-apt-btn { padding: 10px 18px; font-size: 13px; }

	/* Contact Reuven */
	.elementor .e-con.rj-apt-contact { --padding-top: 32px; --padding-bottom: 32px; --padding-left: 20px; --padding-right: 20px; border-radius: var(--rj-nd-radius-sm); }

	/* Visiting Israel: photo on top, then the text and a normal-width button. */
	.elementor .rj-apt-visit > .rj-apt-visit__image { order: -1; flex-basis: auto; min-height: 220px; }
	.elementor .e-con.rj-apt-visit__text { --gap: 12px; --row-gap: 12px; }
	.rj-apt-visit .rj-apt-button--block { width: auto; align-self: flex-start; }
	.rj-apt-visit .rj-apt-button--block .elementor-button { width: auto; }

	/* Blog: centred heading, compact cards with the photo on the start side. */
	.elementor .e-con.rj-apt-blog__top { --flex-direction: column; flex-direction: column; --align-items: center; text-align: center; }
	.elementor .e-con.rj-apt-blog__heading { --align-items: center; }
	.rj-blog-cards { gap: 14px; }
	.rj-blog-cards__card { gap: 12px; padding: 8px; }
	.rj-blog-cards__media { flex-basis: 40%; }
	.elementor .rj-blog-cards__media img,
	.rj-blog-cards__media img { min-height: 110px; max-height: 130px; }
	.rj-blog-cards__cat { font-size: 11px; }
	.rj-blog-cards__title { font-size: 15px; }
}

/* ---------- Phones: Apartments tab as in the mobile design ---------- */
@media (max-width: 767px) {
	/* Intro: centred heading and text, smaller text. */
	.elementor .elementor-element.e-con.rj-apt-units-intro { --align-items: center; --gap: 10px; --row-gap: 10px; text-align: center; }
	.elementor .e-con.rj-apt-units-intro__heading { --align-items: center; align-items: center; }
	.rj-apt-units-intro .elementor-heading-title { text-align: center; }
	.rj-apt-units-intro .elementor-widget-text-editor,
	.rj-apt-units-intro .elementor-widget-text-editor p,
	.rj-apt-units-intro .rj-apt-text { font-size: 13px; line-height: 1.45; text-align: center; }

	/* Panel almost edge to edge (8px from the screen sides). */
	.elementor .rj-apt-units-panel .elementor-widget-rj_apt_floorplans { margin-inline: 0; width: 100%; }
	.rj-fp { padding: 20px 12px 24px; border-radius: 24px; }
	.rj-fp__title { margin-bottom: 18px; font-size: 20px; }

	/* Steps: red bar on the left, then the dark "Step N" pill and the title. */
	.rj-fp__step { font-size: 15px; white-space: nowrap; }
	.rj-fp__step-num { font-size: 12px; }
	.rj-fp__step-row { flex-wrap: nowrap; gap: 8px; margin: 28px 0 14px; }
	.rj-fp__legend { flex: none; gap: 6px; font-size: 7px; }
	.rj-fp__legend-item { gap: 3px; }
	.rj-fp__legend-item::before { width: 7px; height: 7px; }

	/* Step 1: floors in a 4-column grid of small pills (no sideways scroll). */
	.rj-fp__floors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; overflow: visible; padding: 0; }
	.rj-fp__floor { justify-content: center; min-width: 0; padding: 6px 2px; box-shadow: none; }
	.rj-fp__floor-name { font-family: var(--rj-nd-body); font-size: clamp(10px, 3vw, 12px); font-weight: 500; line-height: 1.15; text-align: center; overflow-wrap: anywhere; }
	.rj-fp__floor-count { font-size: 8px; }

	/* Step 2: two cards per row, big upright number. */
	.rj-fp__units { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.rj-fp__unit { padding: 12px 12px 14px; border-radius: 12px; }
	.rj-fp__unit-apt { font-size: 18px; }
	.rj-fp__unit-num { font-size: 56px; font-style: normal; font-weight: 700; line-height: 1; margin: 2px 0 6px; }
	.rj-fp__unit-rooms { margin-top: 0; font-size: 18px; }
	.rj-fp__unit-size { font-size: 12px; }

	/* Step 3: grey top box, larger rooms, buttons on one line each, dashed dividers. */
	.rj-fp__detail { padding: 14px 10px 16px; }
	.rj-fp__detail-card { padding: 12px; border-radius: 14px; background: #f4f4f4; }
	.rj-fp__detail-name { font-size: 12px; }
	.rj-fp__detail-rooms { font-size: 36px; font-weight: 700; }
	.rj-fp__btn { padding: 10px 14px; font-size: 13px; white-space: nowrap; }
	.rj-fp__note { font-size: 10px; }
	.rj-fp__spec { padding: 9px 2px; border-bottom: 1px dashed var(--rj-nd-line); font-size: 13px; }
	.rj-fp__spec--sub { padding: 2px 2px 2px 52px; border: 0; }
	.rj-fp__spec dt .rj-fp__icon--design { width: 24px; height: 24px; }

	/* Step 4: compact 2D / 3D / Entire floor switch (not full width), plan with arrows on its edges. */
	.rj-fp__types { display: inline-flex; }
	.rj-fp__type { flex: none; padding: 8px 14px; font-size: 13px; font-weight: 500; }
	.rj-fp__plan { margin: 14px 4px 0; }
	.rj-fp__plan-frame { border-width: 2px; border-radius: 12px; }
	.rj-fp__arrow { width: 32px; height: 32px; }
	.rj-fp__arrow--prev { inset-inline-start: -12px; }
	.rj-fp__arrow--next { inset-inline-end: -12px; }
	.rj-fp__plan-note { font-size: 10px; line-height: 1.4; }
}

/* ---------- Phones: no "At A Glance" figures (project logo stays); banner starts at the very top ---------- */
@media (max-width: 767px) {
	.elementor .rj-apt-glance-row .elementor-widget-rj_apt_glance { display: none !important; }
	.elementor .e-con.rj-apt-section--hero,
	.elementor .e-con.rj-apt-section--hero > .e-con-inner { --padding-top: 0px; padding-top: 0 !important; }
}

/* ---------- Financials: currency choice at the top on phones, in the costs card elsewhere ---------- */
.rj-fin__currency-box { display: flex; flex-direction: column; gap: 12px; }
.rj-fin__currency-box--top { display: none; }
@media (max-width: 767px) {
	.rj-fin__currency-box--top {
		display: flex; padding: 16px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(50, 103, 117, .1);
	}
	.rj-fin__currency-box--in-card { display: none; }
	.rj-fin__currency-box--top .rj-fin__currencies { padding-bottom: 0; border-bottom: 0; }
}
/* Financials: "3 · Purchase tax" keeps its typed case (the theme title-cases h4 headings). */
.rj-fin .rj-fin__step--as-typed { text-transform: none; }

/* Phones: step 6 title across the full width; "Everything included…" on the left and the total on the right, as in the design. */
@media (max-width: 767px) {
	.rj-fin .rj-fin__grand { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; row-gap: 4px; }
	.rj-fin__grand > div { display: contents; }
	.rj-fin__grand .rj-fin__step { grid-column: 1 / -1; }
	.rj-fin__grand .rj-fin__lead { grid-column: 1; margin-top: 0; font-size: 12px; }
	.rj-fin__grand-num { grid-column: 2; grid-row: 2; font-size: 22px; text-align: end; }
}

/* ---------- "Download the brochure" button: light teal background ---------- */
/* !important: the colour set on the button in Elementor (per-element CSS) is more specific than these classes. */
.rj-apt-button--brochure .elementor-button,
a.rj-apt-button--brochure { background-color: #51AABA24 !important; }

/* ---------- Mobile: "Sales Dashboard" button reads "Sales Dash" ---------- */
/* English pages only (the Hebrew label is already short). The full text stays in the page for screen readers;
   it is hidden with font-size 0 and the short label is drawn after it. The icon (::before) keeps its own size. */
@media (max-width: 767px) {
	html[lang^="en"] .rj-apt-button--sales .elementor-button-text { font-size: 0; }
	html[lang^="en"] .rj-apt-button--sales .elementor-button-text::after { content: "Sales Dash"; font-size: 13px; }
	html[lang^="en"] .rj-apt-brand .rj-apt-button--sales .elementor-button-text::after { font-size: 11px; }
}

/* ---------- Tabs: no space under the tab bar, none above each tab's content ---------- */
/* !important: also wins over padding set on these sections in Elementor (per-element CSS). */
.elementor .e-con.rj-apt-section--tabs { --padding-bottom: 0px; padding-bottom: 0 !important; }
.elementor .e-con.rj-apt-section[id^="tab-"] { --padding-top: 0px; padding-top: 0 !important; }
/* ---------- Brochure popup: first and last name side by side (stacked on narrow phones) ---------- */
.rj-brochure__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 380px) {
	.rj-brochure__row { grid-template-columns: minmax(0, 1fr); }
}
