/* ==========================================================================
   رنا العبدالله العقارية — design system
   راسخ · شفّاف · استشاري  (established · transparent · advisory)

   Direction notes, so later sessions extend the site in its own language:
   - Type    Amiri (Arabic serif) for display, IBM Plex Sans Arabic for UI.
             The serif is the point — it reads as an established advisory
             practice rather than a listings app.
   - Colour  Warm neutrals THROUGHOUT (ivory / sand ground), not a dark field
             with one gold accent. Bronze is sampled from the client's own
             logo and behaves like a material: rules, numerals, seals.
   - Layout  Editorial grid + sidebar-driven listings. Deliberately NOT the
             full-bleed alternating bands used elsewhere in the portfolio.
   - Shape   Arch motif on imagery; everything else is near-square (3px).
   - Motion  Near zero, and switched off entirely under reduced-motion.

   Contrast: --bronze is 3.8:1 on ivory, so it is only ever used for large
   text, rules and decoration. Small text and button fills use --bronze-text
   (5.6:1) and --bronze-dark. Do not swap them without re-checking.
   ========================================================================== */

:root {
	/* ground */
	--rana-ivory: #fbf8f3;
	--rana-sand: #f2ece1;
	--rana-sand-2: #e7decd;
	--rana-white: #fff;

	/* ink */
	--rana-ink: #1a1714;
	--rana-ink-2: #4a423a;
	--rana-ink-3: #7a7168;

	/* metal — sampled from the logo artwork */
	--rana-bronze: #9c783c;
	--rana-bronze-dark: #786030;
	--rana-bronze-text: #786030;
	--rana-bronze-light: #c9a961;
	--rana-bronze-pale: #ede2cc;
	--rana-slate: #6c6c6c;

	--rana-line: #ddd2bf;
	--rana-line-soft: #ebe3d5;
	/* #ddd2bf is only 1.5:1 on white — fine as a decorative hairline, but WCAG
	   1.4.11 wants 3:1 for the boundary of a control you have to find and type
	   into. This darker line is used on inputs, selects, chips and outline
	   buttons only. */
	--rana-line-strong: #8f8474;

	--rana-r: 3px;
	--rana-arch: 999px 999px var(--rana-r) var(--rana-r);
	--rana-arch-sm: 110px 110px var(--rana-r) var(--rana-r);

	--rana-wrap: 1180px;
	--rana-gap: clamp(28px, 4vw, 48px);
	--rana-band: clamp(56px, 7vw, 104px);

	--rana-display: "Amiri", "Noto Naskh Arabic", Georgia, serif;
	--rana-body: "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
	/* Tajawal carries the chrome — it is wider and more open than Plex at nav
	   sizes, so the menu reads faster without competing with the Amiri display. */
	--rana-nav: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
	/* Buttons, prices, counters — anything that is an interface label rather
	   than prose. Was referenced in several rules before it was ever defined,
	   which silently left those elements inheriting whatever was above them. */
	--rana-font-ui: var(--rana-nav);

	--rana-ease: cubic-bezier(.22, .61, .36, 1);

	--rana-shadow: 0 1px 2px rgba(26, 23, 20, .04), 0 8px 24px rgba(26, 23, 20, .06);
	--rana-t: .2s ease;
}

/* --------------------------------------------------------------- base ---- */

body.rana-site,
body {
	background: var(--rana-ivory);
	color: var(--rana-ink-2);
	font-family: var(--rana-body);
	font-size: 17px;
	line-height: 1.85;
	-webkit-font-smoothing: antialiased;
}

.rana-main { display: block; }

.rana-wrap {
	width: min(100% - 2.5rem, var(--rana-wrap));
	margin-inline: auto;
}

h1, h2, h3, h4,
.rana-h1, .rana-h2, .rana-h3 {
	font-family: var(--rana-display);
	color: var(--rana-ink);
	font-weight: 700;
	/*
	 * Amiri's own content box is ~1.49em (ascender 1075 + descender 410 over a
	 * 1000 unit em) because it carries space for Arabic diacritics. Setting the
	 * line box tighter than the glyphs need makes wrapped headings collide —
	 * the second line's ascenders run into the first line's descenders. 1.5 is
	 * the floor for this face, not a stylistic preference.
	 */
	line-height: 1.5;
	letter-spacing: 0;
}

.rana-h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); line-height: 1.42; }
.rana-h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); margin-block-end: .8em; }
.rana-h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }

/* Tracking is a Latin-typography device. Applied to Arabic it separates letters
   that are supposed to join, so «رنا العبدالله العقارية» came out as loose
   disconnected glyphs. Weight and colour do the work instead. */
.rana-eyebrow {
	font-family: var(--rana-body);
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: 0;
	color: var(--rana-bronze-text);
	margin-block-end: .7em;
}

/* The hairline rule under a section title is the site's quiet signature. */
.rana-eyebrow::after {
	content: "";
	display: inline-block;
	inline-size: 2.2rem;
	block-size: 1px;
	background: var(--rana-bronze);
	margin-inline-start: .7rem;
	vertical-align: middle;
}

.rana-lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--rana-ink-2); }

a { color: var(--rana-bronze-text); }
a:hover { color: var(--rana-ink); }

.rana-sr {
	position: absolute;
	inline-size: 1px; block-size: 1px;
	overflow: hidden; clip-path: inset(50%);
	white-space: nowrap;
}

:where(a, button, input, select, textarea):focus-visible {
	outline: 2px solid var(--rana-bronze-dark);
	outline-offset: 3px;
}

/* ------------------------------------------------------------ buttons ---- */

.rana-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	font-family: var(--rana-body);
	font-size: .97rem;
	font-weight: 600;
	line-height: 1;
	padding: .95rem 1.7rem;
	border-radius: var(--rana-r);
	border: 1px solid transparent;
	text-decoration: none;
	cursor: pointer;
	transition: background var(--rana-t), color var(--rana-t), border-color var(--rana-t);
}

/* Colours forced: the theme paints bare buttons red and was winning here. */
body.rana-site .rana-btn--solid { background: var(--rana-bronze-dark) !important; color: var(--rana-white) !important; border-color: var(--rana-bronze-dark) !important; }
body.rana-site .rana-btn--solid:hover { background: var(--rana-ink) !important; border-color: var(--rana-ink) !important; }

body.rana-site .rana-btn--outline {
	background: transparent !important;
	color: var(--rana-ink) !important;
	border-color: var(--rana-line-strong) !important;
}
body.rana-site .rana-btn--outline:hover { border-color: var(--rana-bronze) !important; color: var(--rana-bronze-text) !important; }

body.rana-site .rana-btn--ghost {
	background: transparent !important;
	color: var(--rana-bronze-text) !important;
	border-color: var(--rana-line-strong) !important;
	padding-inline: .9rem;
}
body.rana-site .rana-btn--ghost:hover { color: var(--rana-ink) !important; border-color: var(--rana-bronze) !important; }

body.rana-site .rana-filters__reset { color: var(--rana-bronze-text) !important; border: 0 !important; }
body.rana-site .rana-link { color: var(--rana-bronze-text) !important; border: 0 !important; background: transparent !important; }

.rana-btn--block { display: flex; inline-size: 100%; }
.rana-btn--lg { padding: 1.1rem 2.2rem; font-size: 1.03rem; }

.rana-link {
	background: none; border: 0; padding: 0;
	font: inherit; color: var(--rana-bronze-text);
	text-decoration: underline; cursor: pointer;
}

/* -------------------------------------------------------------- cards ---- */

.rana-grid-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
	gap: clamp(20px, 2.5vw, 34px);
}
.rana-grid-cards--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

.rana-card { background: transparent; position: relative; }
.rana-card[hidden] { display: none; }

.rana-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.rana-card__media {
	position: relative;
	aspect-ratio: 4 / 3.2;
	overflow: hidden;
	border-radius: var(--rana-arch-sm);
	background: var(--rana-sand);
	border: 1px solid var(--rana-line-soft);
}

.rana-card__img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.rana-card__link:hover .rana-card__img { transform: scale(1.03); }

.rana-card__img--empty {
	background:
		repeating-linear-gradient(135deg, var(--rana-sand) 0 12px, var(--rana-sand-2) 12px 24px);
}

.rana-tag,
.rana-badge,
.rana-count {
	position: absolute;
	font-family: var(--rana-body);
	font-size: .74rem;
	font-weight: 600;
	line-height: 1;
	padding: .45rem .75rem;
	border-radius: var(--rana-r);
}

.rana-tag {
	inset-block-start: 12px;
	inset-inline-start: 12px;
	background: rgba(251, 248, 243, .94);
	color: var(--rana-ink);
	border: 1px solid var(--rana-line);
}

.rana-badge {
	inset-block-start: 12px;
	inset-inline-end: 12px;
	background: var(--rana-ink);
	color: var(--rana-white);
}
.rana-badge--sold, .rana-badge--rented { background: #6d2f2f; }
.rana-badge--reserved { background: var(--rana-bronze-dark); }

.rana-badge--inline {
	position: static;
	display: inline-block;
	margin-block-start: .6rem;
}

.rana-count {
	inset-block-end: 12px;
	inset-inline-end: 12px;
	display: inline-flex;
	align-items: center;
	gap: .3rem;
	background: rgba(26, 23, 20, .72);
	color: var(--rana-white);
}

.rana-card__body { padding-block-start: 1.05rem; }

.rana-card__eyebrow {
	font-size: .8rem;
	color: var(--rana-ink-3);
	margin: 0 0 .3rem;
	letter-spacing: 0;
}

.rana-card__title {
	font-size: 1.18rem;
	line-height: 1.5;
	margin: 0 0 .45rem;
	color: var(--rana-ink);
}

.rana-card__price {
	font-family: var(--rana-display);
	font-size: 1.32rem;
	font-weight: 700;
	color: var(--rana-bronze-text);
	margin: 0 0 .7rem;
}
.rana-card__price small { font-family: var(--rana-body); font-size: .72rem; color: var(--rana-ink-3); font-weight: 400; }

.rana-specs {
	list-style: none;
	margin: 0;
	padding: .7rem 0 0;
	border-block-start: 1px solid var(--rana-line-soft);
	display: flex;
	flex-wrap: wrap;
	gap: 0 1.4rem;
	font-size: .86rem;
}
.rana-specs li { display: flex; gap: .35rem; align-items: baseline; }
.rana-specs__k { color: var(--rana-ink-3); }
.rana-specs__v { color: var(--rana-ink); font-weight: 600; }

/* ------------------------------------------------------ listing layout ---- */

.rana-listing {
	display: grid;
	grid-template-columns: 268px minmax(0, 1fr);
	gap: var(--rana-gap);
	align-items: start;
	padding-block: clamp(28px, 4vw, 48px) var(--rana-band);
}

.rana-listing__rail { position: sticky; inset-block-start: 96px; }

.rana-listing__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block-end: 1.1rem;
	margin-block-end: 1.6rem;
	border-block-end: 1px solid var(--rana-line);
}

.rana-listing__count { margin: 0; font-size: .95rem; color: var(--rana-ink-3); }
.rana-listing__count #rana-shown { color: var(--rana-ink); font-weight: 700; }

.rana-filters__open { display: none; }

/* --------------------------------------------------------- filter rail ---- */

.rana-filters {
	background: var(--rana-white);
	border: 1px solid var(--rana-line);
	border-radius: var(--rana-r);
	padding: 1.3rem 1.2rem 1.5rem;
}

.rana-filters__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
	margin-block-end: 1.1rem;
	padding-block-end: .8rem;
	border-block-end: 1px solid var(--rana-bronze-pale);
}

.rana-filters__title { font-size: 1.12rem; margin: 0; }

.rana-filters__reset {
	background: none; border: 0; padding: 0;
	font: inherit; font-size: .85rem;
	color: var(--rana-bronze-text);
	text-decoration: underline;
	cursor: pointer;
}

/* Both only exist to get out of the full-screen mobile filter overlay. */
.rana-filters__done,
.rana-filters__apply { display: none; }
body.rana-site .rana-filters__done {
	background: transparent !important;
	border: 1px solid var(--rana-line-strong) !important;
	border-radius: var(--rana-r) !important;
	color: var(--rana-ink) !important;
	font-size: 1.6rem;
	line-height: 1;
	padding: .05rem .6rem .25rem !important;
	cursor: pointer;
}

.rana-field { margin: 0 0 1.05rem; display: block; }
.rana-field > label,
.rana-field > legend,
.rana-field__label {
	display: block;
	font-size: .86rem;
	font-weight: 600;
	color: var(--rana-ink);
	margin-block-end: .4rem;
	padding: 0;
}

.rana-field input[type="text"],
.rana-field input[type="tel"],
.rana-field input[type="url"],
.rana-field input[type="email"],
.rana-field input[type="number"],
.rana-field input[type="search"],
.rana-field select,
.rana-field textarea {
	inline-size: 100%;
	font: inherit;
	font-size: .93rem;
	color: var(--rana-ink);
	background: var(--rana-white);
	border: 1px solid var(--rana-line-strong);
	border-radius: var(--rana-r);
	padding: .62rem .75rem;
	transition: border-color var(--rana-t);
}
.rana-field input:focus,
.rana-field select:focus,
.rana-field textarea:focus { border-color: var(--rana-bronze); }

.rana-field textarea { resize: vertical; line-height: 1.7; }

.rana-field--pair {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: .5rem;
	border: 0;
	padding: 0;
	margin: 0 0 1.05rem;
}
.rana-field--pair legend { grid-column: 1 / -1; }

fieldset.rana-field { border: 0; padding: 0; margin: 0 0 1.05rem; }

.rana-hint {
	display: block;
	font-size: .78rem;
	color: var(--rana-ink-3);
	margin-block-start: .35rem;
	line-height: 1.6;
}

.rana-chips { display: flex; flex-wrap: wrap; gap: .4rem; }

.rana-chip { position: relative; }
.rana-chip input {
	position: absolute;
	opacity: 0;
	inline-size: 100%; block-size: 100%;
	margin: 0; cursor: pointer;
}
.rana-chip span {
	display: block;
	font-size: .85rem;
	padding: .42rem .85rem;
	border: 1px solid var(--rana-line-strong);
	border-radius: var(--rana-r);
	color: var(--rana-ink-2);
	transition: all var(--rana-t);
}
.rana-chip input:checked + span {
	background: var(--rana-ink);
	border-color: var(--rana-ink);
	color: var(--rana-white);
}
.rana-chip input:focus-visible + span { outline: 2px solid var(--rana-bronze-dark); outline-offset: 2px; }

.rana-checks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr));
	gap: .45rem 1rem;
}
.rana-checks label {
	display: flex;
	align-items: center;
	gap: .45rem;
	font-size: .9rem;
	font-weight: 400;
	color: var(--rana-ink-2);
	cursor: pointer;
}

.rana-empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	color: var(--rana-ink-3);
	border: 1px dashed var(--rana-line);
	border-radius: var(--rana-r);
}
.rana-empty--first { padding-block: 4rem; }
.rana-empty--first h3 { font-size: 1.5rem; margin-block-end: .5rem; }
.rana-empty--first p { max-inline-size: 46ch; margin-inline: auto; margin-block-end: 1.4rem; }

/* --------------------------------------------------------- page header ---- */

.rana-pagehead {
	background: var(--rana-sand);
	border-block-end: 1px solid var(--rana-line);
	padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px);
}
.rana-pagehead__title { font-size: clamp(2rem, 4.4vw, 3.1rem); margin: 0 0 .5rem; }
.rana-pagehead__intro { max-inline-size: 62ch; margin: 0; font-size: 1.06rem; }

.rana-crumbs {
	font-size: .84rem;
	color: var(--rana-ink-3);
	padding-block: 1.2rem;
	border-block-end: 1px solid var(--rana-line-soft);
}
.rana-crumbs a { color: var(--rana-ink-3); text-decoration: none; }
.rana-crumbs a:hover { color: var(--rana-bronze-text); }
.rana-crumbs span { margin-inline: .45rem; }

/* ------------------------------------------------------ single property ---- */

.rana-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 336px;
	gap: var(--rana-gap);
	align-items: start;
	padding-block: clamp(30px, 4vw, 52px) var(--rana-band);
}

.rana-single__head { margin-block-end: 1.8rem; }
.rana-single__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0; }

.rana-gallery { margin: 0 0 2.4rem; }

/* The gallery frames are <button> elements, so the theme's hover fill showed
   as a red flash behind the photo. Pinned in every state. */
body.rana-site .rana-gallery__main,
body.rana-site .rana-gallery__main:hover,
body.rana-site .rana-gallery__main:focus,
body.rana-site .rana-gallery__main:active {
	display: block;
	inline-size: 100%;
	padding: 0 !important;
	border: 1px solid var(--rana-line-soft) !important;
	border-radius: var(--rana-arch);
	overflow: hidden;
	background: var(--rana-sand) !important;
	color: inherit !important;
	cursor: zoom-in;
	aspect-ratio: 4 / 3;
}
.rana-gallery__img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }

.rana-gallery__thumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
	gap: .55rem;
	margin-block-start: .7rem;
}
body.rana-site .rana-gallery__thumb,
body.rana-site .rana-gallery__thumb:hover,
body.rana-site .rana-gallery__thumb:focus,
body.rana-site .rana-gallery__thumb:active {
	padding: 0 !important;
	border: 1px solid var(--rana-line-soft) !important;
	border-radius: var(--rana-r) !important;
	overflow: hidden;
	background: var(--rana-sand) !important;
	cursor: pointer;
	aspect-ratio: 1;
	transition: border-color var(--rana-t);
}
body.rana-site .rana-gallery__thumb:hover { border-color: var(--rana-bronze) !important; }
.rana-gallery__thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }
/* Must out-rank the forced reset above, or the selected thumb loses its mark. */
body.rana-site .rana-gallery__thumb.is-active { border-color: var(--rana-bronze) !important; border-width: 2px !important; }

.rana-prose { margin-block-end: 2.6rem; }
.rana-prose p { margin-block-end: 1.1em; }

.rana-spectable {
	margin: 0 0 2.6rem;
	border-block-start: 1px solid var(--rana-line);
}
.rana-spectable__row {
	display: grid;
	grid-template-columns: 11rem minmax(0, 1fr);
	gap: 1rem;
	padding-block: .8rem;
	border-block-end: 1px solid var(--rana-line-soft);
}
.rana-spectable dt { color: var(--rana-ink-3); font-size: .92rem; margin: 0; }
.rana-spectable dd { margin: 0; color: var(--rana-ink); font-weight: 600; }

.rana-features { margin-block-end: 2.6rem; }
.rana-features__list {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr));
	gap: .55rem 1.2rem;
}
.rana-features__list li {
	position: relative;
	padding-inline-start: 1.75rem;
	font-size: .95rem;
	line-height: 1.7;
}

/*
 * A tick, not a diamond. This list answers one question — "does the property
 * have this?" — and a decorative lozenge does not say yes. Drawn as two borders
 * on a rotated box rather than a "✓" character, because the check glyph is
 * missing from the Arabic webfonts and would fall back to a mismatched face.
 */
.rana-features__list li::before {
	content: "";
	position: absolute;
	/* Position follows the reading direction — the tick sits at the start of the
	   line, which is the right-hand side in Arabic. */
	inset-inline-start: .3rem;
	inset-block-start: .45em;
	inline-size: .34rem;
	block-size: .62rem;
	/* The SHAPE, however, must not mirror. A tick is a symbol, not text: it
	   looks the same in every script. Physical borders here on purpose —
	   border-inline-* would flip the stroke in RTL and draw a backwards tick. */
	border-right: 2px solid var(--rana-bronze);
	border-bottom: 2px solid var(--rana-bronze);
	transform: rotate(45deg);
}

/*
 * The rail used to be sticky as a whole. With the price box and the enquiry
 * form together it stands ~950px tall against a 96px offset, so on any laptop
 * the form's submit button sat below the fold for the entire pinned scroll —
 * unreachable without unsticking the rail first. Only the price/CTA box is
 * pinned now; the form scrolls with the page and can be reached normally.
 */
.rana-single__rail { position: static; display: grid; gap: 1.2rem; align-content: start; }
.rana-single__rail .rana-actionbox { position: sticky; inset-block-start: 96px; }

.rana-actionbox {
	background: var(--rana-white);
	border: 1px solid var(--rana-line);
	border-radius: var(--rana-r);
	padding: 1.5rem 1.35rem;
	box-shadow: var(--rana-shadow);
}
.rana-actionbox__price {
	font-family: var(--rana-display);
	font-size: 1.85rem;
	font-weight: 700;
	color: var(--rana-ink);
	margin: 0;
	line-height: 1.3;
}
.rana-actionbox__price small { font-family: var(--rana-body); font-size: .72rem; color: var(--rana-ink-3); }
.rana-actionbox__note { font-size: .85rem; color: var(--rana-ink-3); margin: .2rem 0 0; }
.rana-actionbox__ref {
	font-size: .82rem;
	color: var(--rana-ink-3);
	margin: .9rem 0 1.2rem;
	padding-block-end: 1.1rem;
	border-block-end: 1px solid var(--rana-line-soft);
}
.rana-actionbox__ref code { background: var(--rana-sand); padding: .15rem .45rem; border-radius: 2px; color: var(--rana-ink); }
.rana-actionbox .rana-btn { margin-block-end: .6rem; }
.rana-actionbox__fine {
	font-size: .82rem;
	line-height: 1.7;
	color: var(--rana-ink-3);
	margin: .9rem 0 0;
	padding-block-start: .9rem;
	border-block-start: 1px solid var(--rana-line-soft);
}

.rana-related {
	background: var(--rana-sand);
	border-block-start: 1px solid var(--rana-line);
	padding-block: var(--rana-band);
}

/* ---------------------------------------------------------- lightbox ---- */

.rana-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: rgba(26, 23, 20, .94);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vmin;
}
.rana-lightbox[hidden] { display: none; }
.rana-lightbox__img { max-inline-size: 100%; max-block-size: 88vh; object-fit: contain; }
/* Colours forced: the theme paints these #CC3366. Positions are physical on
   purpose — a photo viewer is not text flow. */
body.rana-site .rana-lightbox__close,
body.rana-site .rana-lightbox__nav {
	position: absolute;
	inline-size: 48px;
	block-size: 48px;
	display: grid;
	place-items: center;
	background: rgba(26, 23, 20, .55) !important;
	border: 1px solid rgba(255, 255, 255, .28) !important;
	border-radius: 50% !important;
	color: #fff !important;
	cursor: pointer;
	padding: 0 !important;
	opacity: .92;
	transition: background var(--rana-t), opacity var(--rana-t), transform var(--rana-t);
}
.rana-lightbox__close svg,
.rana-lightbox__nav svg { inline-size: 20px; block-size: 20px; fill: currentColor; }

body.rana-site .rana-lightbox__close { inset-block-start: 1.2rem; right: 1.4rem; left: auto; }
body.rana-site .rana-lightbox__nav--prev { left: 1.2rem; right: auto; }
body.rana-site .rana-lightbox__nav--next { right: 1.2rem; left: auto; }

body.rana-site .rana-lightbox__close:hover,
body.rana-site .rana-lightbox__nav:hover {
	opacity: 1;
	background: rgba(156, 120, 60, .85) !important;
	border-color: var(--rana-bronze-light) !important;
	transform: scale(1.06);
}

/* ------------------------------------------------------------- forms ---- */

/* Browsers give <fieldset> a min-inline-size of min-content, so a fieldset
   refuses to shrink below its widest child and pushes the page sideways.
   Measured: the submit form overflowed to 346px inside a 320px viewport. */
body.rana-site fieldset { min-inline-size: 0; }

.rana-form__group { border: 0; padding: 0; margin: 0 0 2.2rem; min-inline-size: 0; }
.rana-form__legend {
	max-inline-size: 100%;
	overflow-wrap: break-word;
	font-family: var(--rana-display);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--rana-ink);
	padding: 0 0 .7rem;
	margin-block-end: 1.2rem;
	inline-size: 100%;
	border-block-end: 1px solid var(--rana-bronze-pale);
}

.rana-form__grid {
	display: grid;
	/* minmax(0, …) so a long label or a wide select cannot push the track out. */
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
	gap: 0 1.2rem;
	min-inline-size: 0;
}
.rana-form__grid > * { min-inline-size: 0; }
.rana-field--wide { grid-column: 1 / -1; }
.rana-field--check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; }

.rana-req { color: #a33; }

.rana-hp { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); }

.rana-form__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .8rem;
	margin-block-start: 1.5rem;
}

.rana-terms {
	background: var(--rana-sand);
	border: 1px solid var(--rana-line);
	border-radius: var(--rana-r);
	padding: 1.6rem 1.5rem;
	margin-block-end: 1.6rem;
}
.rana-terms__title { font-size: 1.2rem; margin: 0 0 .9rem; }
.rana-terms__list { margin: 0 0 1.2rem; padding-inline-start: 1.2rem; }
.rana-terms__intro { margin: 0 0 1.1rem; font-size: .95rem; color: var(--rana-ink-2); }
/* Each clause is a heading plus its text, so the reader can scan the six topics
   without reading six paragraphs to find the one they care about. */
.rana-terms__list li { margin-block-end: 1rem; font-size: .95rem; line-height: 1.75; }
.rana-terms__head { display: block; color: var(--rana-ink); margin-block-end: .15rem; }
.rana-terms__list li span { display: block; color: var(--rana-ink-2); }
.rana-terms .rana-field--check { margin-block-start: 1.4rem; padding-block-start: 1.1rem; border-block-start: 1px solid var(--rana-line-strong); }
.rana-terms .rana-field--check label { display: flex; gap: .6rem; align-items: flex-start; }
.rana-terms .rana-field--check input { margin-block-start: .35rem; flex: none; }
.rana-notice__sign { margin-block-start: .8rem; font-family: var(--rana-display); font-size: 1.02rem; }

.rana-notice {
	border-radius: var(--rana-r);
	padding: 1.2rem 1.3rem;
	margin-block-end: 1.6rem;
	border: 1px solid;
}
.rana-notice h3 { margin: 0 0 .35rem; font-size: 1.25rem; }
.rana-notice p { margin: 0; }
.rana-notice--ok { background: #f1f6f0; border-color: #b9d0b2; color: #2c4426; }
.rana-notice--ok h3 { color: #2c4426; }
.rana-notice--err { background: #fbf1f1; border-color: #ddb4b4; color: #7a2d2d; }

/* Appended by the draft-restore script, inside the error notice. */
.rana-hint--restored {
	margin: .6rem 0 0;
	padding-block-start: .6rem;
	border-block-start: 1px solid currentColor;
	opacity: .8;
}

.rana-leadform {
	background: var(--rana-white);
	border: 1px solid var(--rana-line);
	border-radius: var(--rana-r);
	padding: 1.4rem 1.35rem;
}
.rana-leadform__title { font-size: 1.2rem; margin: 0 0 .3rem; }
.rana-leadform__intro { font-size: .9rem; color: var(--rana-ink-3); margin: 0 0 1rem; }
.rana-leadform--compact .rana-form__grid { grid-template-columns: 1fr; }

/* ------------------------------------------------------- hero search ---- */

.rana-hero-search {
	background: var(--rana-white);
	border: 1px solid var(--rana-line);
	border-radius: var(--rana-r);
	padding: 1.1rem 1.2rem 1.3rem;
	box-shadow: var(--rana-shadow);
}
.rana-hero-search__row {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
	gap: .8rem;
	align-items: end;
}
.rana-hero-search .rana-field { margin: 0; }
.rana-hero-search .rana-btn { block-size: 2.9rem; }

/* ------------------------------------------------------------- stats ---- */

.rana-stats {
	list-style: none;
	margin: 0; padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
	gap: 1px;
	background: var(--rana-line);
	border: 1px solid var(--rana-line);
}
.rana-stat {
	background: var(--rana-ivory);
	padding: 1.5rem 1.2rem;
	text-align: center;
}
.rana-stat__n {
	display: block;
	font-family: var(--rana-display);
	font-size: clamp(1.9rem, 3.4vw, 2.7rem);
	font-weight: 700;
	color: var(--rana-bronze-text);
	line-height: 1.15;
}
.rana-stat__k {
	display: block;
	font-size: .85rem;
	color: var(--rana-ink-3);
	margin-block-start: .35rem;
}

/* --------------------------------------------------------------- blog ---- */

.rana-postgrid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
	gap: clamp(24px, 3vw, 40px);
}

.rana-post__link { display: block; color: inherit; text-decoration: none; }

.rana-post__media {
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: var(--rana-arch-sm);
	border: 1px solid var(--rana-line-soft);
	background: var(--rana-sand);
	margin-block-end: 1rem;
}
.rana-post__media img { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }

.rana-post__date { font-size: .8rem; color: var(--rana-ink-3); margin: 0 0 .3rem; }
.rana-post__title { font-size: 1.22rem; line-height: 1.5; margin: 0 0 .5rem; }
.rana-post__excerpt { font-size: .94rem; margin: 0 0 .7rem; color: var(--rana-ink-2); }
.rana-post__more { font-size: .88rem; font-weight: 600; color: var(--rana-bronze-text); }
.rana-post__link:hover .rana-post__more { text-decoration: underline; }

/* Hello Elementor ships an intentionally bare blog. Style its markup rather
   than overriding the templates — far less code to keep in step. */
.blog .site-main,
.archive .site-main,
.single-post .site-main,
.search .site-main {
	width: min(100% - 2.5rem, 780px);
	margin-inline: auto;
	padding-block: clamp(40px, 6vw, 76px);
}

.blog .site-main article,
.archive .site-main article {
	padding-block-end: clamp(28px, 4vw, 44px);
	margin-block-end: clamp(28px, 4vw, 44px);
	border-block-end: 1px solid var(--rana-line);
}

.site-main .entry-title { font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.4; margin-block-end: .4rem; }
.site-main .entry-title a { color: var(--rana-ink); text-decoration: none; }
.site-main .entry-title a:hover { color: var(--rana-bronze-text); }
.site-main .entry-meta { font-size: .84rem; color: var(--rana-ink-3); margin-block-end: 1rem; }
.site-main .post-thumbnail { display: block; margin-block-end: 1.3rem; }
.site-main .post-thumbnail img {
	inline-size: 100%;
	block-size: auto;
	border-radius: var(--rana-arch-sm);
	border: 1px solid var(--rana-line-soft);
}
.site-main .entry-content > * + * { margin-block-start: 1.1em; }
.site-main .entry-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-block-start: 1.8em; }
.site-main .entry-content h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin-block-start: 1.5em; }
.site-main .entry-content ul,
.site-main .entry-content ol { padding-inline-start: 1.4rem; }
.site-main .entry-content li { margin-block-end: .5em; }
.site-main .entry-content blockquote {
	margin-inline: 0;
	padding-inline-start: 1.2rem;
	border-inline-start: 2px solid var(--rana-bronze);
	font-family: var(--rana-display);
	font-size: 1.15rem;
	color: var(--rana-ink);
}
.site-main .pagination, .site-main .nav-links { padding-block: 1.5rem; }

/* ------------------------------------------------------------ mobile ---- */

@media (max-width: 1024px) {
	.rana-single__layout { grid-template-columns: 1fr; }
	.rana-single__rail .rana-actionbox { position: static; }
}

@media (max-width: 860px) {
	.rana-listing { grid-template-columns: 1fr; }
	.rana-listing__rail {
		position: fixed;
		inset: 0;
		z-index: 500;
		background: var(--rana-ivory);
		padding: 1.2rem;
		overflow-y: auto;
		display: none;
	}
	.rana-listing__rail.is-open { display: block; }
	.rana-filters__open { display: inline-flex; }
	.rana-filters { border: 0; padding: 0; }
	.rana-filters__done { display: block; }
	.rana-filters__apply { display: block; position: sticky; inset-block-end: 0; padding-block: .8rem; background: var(--rana-ivory); }
	.rana-hero-search__row { grid-template-columns: 1fr; }
	.rana-spectable__row { grid-template-columns: 8.5rem minmax(0, 1fr); }
}

@media (max-width: 480px) {
	body { font-size: 16px; }
	.rana-wrap { width: min(100% - 1.6rem, var(--rana-wrap)); }
	.rana-spectable__row { grid-template-columns: 1fr; gap: .1rem; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
		transition-delay: 0ms !important;
		scroll-behavior: auto !important;
	}
	.rana-card__link:hover .rana-card__img,
	.rana-card__link:hover,
	.rana-btn:hover { transform: none; }
	/* Reveal targets must not be left invisible when motion is switched off. */
	.rana-rv { opacity: 1 !important; transform: none !important; clip-path: none !important; }
	.rana-drawer.is-open,
	.rana-drawer.is-open .rana-drawer__nav li { animation: none !important; opacity: 1 !important; transform: none !important; }
	.rana-eyebrow::after,
	.rana-header::after { transform: scaleX(1) !important; }
	.rana-card__link:hover .rana-card__media { border-radius: var(--rana-arch-sm); }
}

@media print {
	.rana-listing__rail, .rana-lightbox, .rana-leadform { display: none !important; }
}

/* ==========================================================================
   Header and footer.
   These live here rather than inside the Theme Builder HTML widgets so the
   chrome is cache-busted by RANA_VER along with everything else, and a restyle
   is one file instead of two template edits.
   ========================================================================== */

/* Hello Elementor's own header/footer. The plugin always emits a replacement
   (ours, or Elementor Pro's Theme Builder output on a paid plan), so the
   theme's plain logo bar is always redundant. */
body.rana-site #site-header,
body.rana-site #site-footer { display: none !important; }

/*
 * Template bleed-through.
 * Hello Elementor and Elementor both style bare <button> elements, and those
 * rules were reaching our controls — the favourite heart rendered with the
 * theme's pink button fill, and the hamburger stayed visible on desktop. Every
 * control we own is reset explicitly here rather than fought one property at a
 * time further down the file.
 */
/*
 * Every control we own, in one list. Chasing these one at a time kept missing
 * cases — the filter "مسح الكل" and "تصفية النتائج" and the contact form's
 * "إرسال" all came back red because they were not on the previous list. Any
 * new button must be added here.
 */
body.rana-site .rana-btn,
body.rana-site .rana-fav,
body.rana-site .rana-navtoggle,
body.rana-site .rana-drawer__close,
body.rana-site .rana-filters__reset,
body.rana-site .rana-filters__done,
body.rana-site .rana-share__btn,
body.rana-site .rana-link,
body.rana-site .rana-gallery__main,
body.rana-site .rana-gallery__thumb,
body.rana-site .rana-lightbox__close,
body.rana-site .rana-lightbox__nav,
body.rana-site .rana-form button,
body.rana-site .rana-form input[type="submit"],
body.rana-site .rana-filters button {
	appearance: none;
	-webkit-appearance: none;
	background-image: none;
	box-shadow: none;
	text-shadow: none;
	font-family: inherit;
	letter-spacing: normal;
	text-transform: none;
	min-block-size: 0;
	min-inline-size: 0;
	/* The theme paints button borders red; nothing in this palette is red. */
	border-color: var(--rana-line) !important;
	outline-color: var(--rana-bronze-dark);
}

/* Same for form controls — the theme's focus/invalid styling is red too. */
body.rana-site .rana-field input,
body.rana-site .rana-field select,
body.rana-site .rana-field textarea {
	border-color: var(--rana-line-strong) !important;
	box-shadow: none !important;
}
body.rana-site .rana-field input:focus,
body.rana-site .rana-field select:focus,
body.rana-site .rana-field textarea:focus {
	border-color: var(--rana-bronze) !important;
}
body.rana-site .rana-field input:invalid,
body.rana-site .rana-field textarea:invalid { border-color: var(--rana-line) !important; }

/* Required marker: bronze rather than the conventional red, to keep the page
   to a single accent. */
.rana-req { color: var(--rana-bronze-text); }
.rana-opt { color: var(--rana-ink-3); font-weight: 400; font-size: .82em; }

.rana-filecount {
	display: block;
	font-size: .84rem;
	font-weight: 600;
	color: var(--rana-bronze-text);
	margin-block-start: .4rem;
}
.rana-filecount[hidden] { display: none; }
.rana-filecount.is-warn { color: #8a4b1e; }

/* A disabled select must still look like a field, not like broken chrome. */
body.rana-site .rana-field select:disabled {
	background: var(--rana-sand) !important;
	color: var(--rana-ink-3) !important;
	cursor: not-allowed;
}

.rana-header {
	position: sticky;
	inset-block-start: 0;
	z-index: 400;
	/* Background lives on ::before, NOT here — see the note below. */
	background: transparent;
	font-family: var(--rana-nav);
	/* A permanent hairline closes the header off from the section below — the
	   sticky shadow only appears once the page has actually scrolled. */
	border-block-end: 1px solid var(--rana-line);
	transition: box-shadow .3s var(--rana-ease);
}

/*
 * The frosted layer MUST stay on this pseudo-element.
 * backdrop-filter turns the element it is applied to into a containing block
 * for its fixed-position descendants. The mobile nav drawer is a child of the
 * header and is `position: fixed; inset: 0`, so putting the filter on
 * .rana-header made the open drawer resolve against the 74px header box
 * instead of the viewport — measured at 73px tall on a 780px screen, i.e. the
 * menu was unusable on any scrolled phone. Keeping the filter on ::before
 * leaves the header itself an ordinary box and the drawer fills the screen.
 */
.rana-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--rana-ivory);
	transition: background .3s var(--rana-ease);
}
.rana-header.is-stuck::before {
	background: rgba(251, 248, 243, .93);
	-webkit-backdrop-filter: saturate(140%) blur(8px);
	backdrop-filter: saturate(140%) blur(8px);
}
.rana-header.is-stuck { box-shadow: 0 2px 18px rgba(26, 23, 20, .07); }

/* Bronze accent laid over the hairline, drawn in from the leading edge. */
.rana-header::after {
	content: "";
	position: absolute;
	inset-block-end: -1px;
	inset-inline-start: 0;
	block-size: 1px;
	inline-size: 100%;
	background: linear-gradient(to left, var(--rana-bronze), rgba(156, 120, 60, 0) 62%);
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform .9s var(--rana-ease);
}
html[dir="ltr"] .rana-header::after { transform-origin: left center; }
.rana-header.is-ready::after { transform: scaleX(1); }

/* The header keeps a constant height on scroll — only the shadow changes.
   A shrinking header was distracting on the way down the page. */
.rana-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: .85rem;
}

.rana-brand { display: flex; align-items: center; flex-shrink: 0; }
.rana-brand img {
	block-size: clamp(46px, 5.4vw, 62px);
	inline-size: auto;
	display: block;
}

/* --------------------------------------------------------------- drawer ---
   A sibling of the header, never a child — see the note in inc/chrome.php.
   Hidden entirely on desktop; the header's own nav serves that width. */
.rana-drawer {
	position: fixed;
	inset: 0;
	z-index: 600;
	background: var(--rana-ivory);
	padding: 1rem 1.5rem 2rem;
	overflow-y: auto;
	overscroll-behavior: contain;
	display: none;
	flex-direction: column;
}
.rana-drawer[hidden] { display: none; }
.rana-drawer.is-open { display: flex; animation: rana-drawer-in .28s var(--rana-ease) both; }

@keyframes rana-drawer-in {
	from { opacity: 0; transform: translateY(-8px); }
	to { opacity: 1; transform: none; }
}

.rana-drawer__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block-end: 1rem;
	margin-block-end: .5rem;
	border-block-end: 1px solid var(--rana-line);
}
.rana-drawer__brand img { block-size: 54px; inline-size: auto; display: block; }

body.rana-site .rana-drawer__close {
	inline-size: 44px;
	block-size: 44px;
	display: grid;
	place-items: center;
	padding: 0 !important;
	border: 1px solid var(--rana-line-strong) !important;
	border-radius: var(--rana-r) !important;
	background: transparent !important;
	color: var(--rana-ink) !important;
	cursor: pointer;
	transition: border-color var(--rana-t), color var(--rana-t);
}
body.rana-site .rana-drawer__close:hover { border-color: var(--rana-bronze) !important; color: var(--rana-bronze-text) !important; }
.rana-drawer__close svg { inline-size: 18px; block-size: 18px; fill: currentColor; }

.rana-drawer__nav ul { list-style: none; margin: 0; padding: 0; }
.rana-drawer__nav li { border-block-end: 1px solid var(--rana-line-soft); }
.rana-drawer__nav a {
	display: block;
	font-family: var(--rana-nav);
	font-size: 1.15rem;
	font-weight: 500;
	color: var(--rana-ink);
	text-decoration: none;
	padding-block: 1rem;
}
.rana-drawer__nav .rana-nav__cta a { color: var(--rana-bronze-text); font-weight: 700; }
.rana-drawer__nav a:active { color: var(--rana-bronze-text); }
.rana-drawer__cta { margin-block-start: auto; }
.rana-drawer__call { margin: .7rem 0 0; text-align: center; }
.rana-drawer__call a {
	font-family: var(--rana-font-ui);
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--rana-bronze-text);
	text-decoration: none;
}

/* Staggered entrance for the drawer rows. */
.rana-drawer.is-open .rana-drawer__nav li {
	animation: rana-drawer-row .32s var(--rana-ease) both;
	animation-delay: calc(var(--i, 0) * 35ms + 60ms);
}
@keyframes rana-drawer-row {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: none; }
}

.rana-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	align-items: center;
	gap: clamp(.9rem, 2vw, 1.9rem);
}

.rana-nav a {
	position: relative;
	display: block;
	font-family: var(--rana-nav);
	font-size: 1rem;
	font-weight: 500;
	color: var(--rana-ink);
	text-decoration: none;
	padding-block: .35rem;
	transition: color var(--rana-t);
}
.rana-nav a:hover { color: var(--rana-bronze-text); }

/* A drawn hairline instead of a colour swap — the site's one recurring motion. */
.rana-nav a::after {
	content: "";
	position: absolute;
	inset-block-end: 0;
	inset-inline-start: 0;
	inline-size: 0;
	block-size: 1px;
	background: var(--rana-bronze);
	transition: inline-size .25s ease;
}
.rana-nav a:hover::after,
.rana-nav .is-current a::after { inline-size: 100%; }
.rana-nav .is-current a { color: var(--rana-bronze-text); }

.rana-header__cta { display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }

.rana-header__phone {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	font-family: var(--rana-nav);
	font-size: .95rem;
	font-weight: 700;
	color: var(--rana-ink);
	text-decoration: none;
	white-space: nowrap;
}
.rana-header__phone:hover { color: var(--rana-bronze-text); }

/*
 * The hamburger was appearing on desktop even though the max-width rule below
 * does not match — measured at 1920px, computed display was `block` with no
 * matching rule in the CSSOM that could explain it. Rather than keep chasing
 * it, desktop is asserted explicitly with a min-width query and a specificity
 * bump, which was verified live to fix it.
 */
.rana-navtoggle {
	display: none;
	background: none;
	border: 1px solid var(--rana-line);
	border-radius: var(--rana-r);
	padding: .55rem .7rem;
	cursor: pointer;
	line-height: 0;
}

@media (min-width: 1001px) {
	.rana-header .rana-navtoggle { display: none !important; }
}
/* The theme colours :hover/:focus/:active on bare buttons red — the hamburger
   flashed red every time it was tapped. Pinned in all four states. */
body.rana-site .rana-navtoggle,
body.rana-site .rana-navtoggle:hover,
body.rana-site .rana-navtoggle:focus,
body.rana-site .rana-navtoggle:active,
body.rana-site .rana-navtoggle[aria-expanded="true"] {
	background: transparent !important;
	border-color: var(--rana-line-strong) !important;
	color: var(--rana-ink) !important;
}
body.rana-site .rana-navtoggle:hover { border-color: var(--rana-bronze) !important; }

.rana-navtoggle span {
	display: block;
	inline-size: 20px;
	block-size: 2px;
	background: var(--rana-ink);
	margin: 4px 0;
	transition: background var(--rana-t);
}
body.rana-site .rana-navtoggle:hover span { background: var(--rana-bronze-dark); }

/* The "add your property" CTA is a header button on desktop and a menu row
   inside the drawer on mobile — never both. */
.rana-nav__cta { display: none; }

@media (max-width: 1200px) {
	.rana-favlink__t { display: none; }
}

.rana-header__phone-i { inline-size: 17px; block-size: 17px; color: var(--rana-bronze-text); }

/* Desktop keeps the full CTA pair, so the icon-only WhatsApp is phone-only. */
.rana-header__wa { display: none; }

@media (max-width: 1000px) {
	.rana-navtoggle { display: block; }
	.rana-header__cta .rana-btn { display: none; }
	.rana-nav__cta { display: block; }
	.rana-nav__cta a { color: var(--rana-bronze-text); font-weight: 600; }

	/* The header's own nav is desktop-only now; phones get .rana-drawer. */
	.rana-nav { display: none; }

	/* The shortlist counter is the reason a returning visitor came back — it
	   has to survive the breakpoint. Icon only, so it costs ~34px. */
	.rana-header__cta .rana-favlink { display: inline-flex; }
	.rana-header__wa {
		display: grid;
		place-items: center;
		inline-size: 34px;
		block-size: 34px;
		border-radius: 50%;
		background: #25d366;
	}
	.rana-header__wa svg { inline-size: 19px; block-size: 19px; fill: #fff; }
}

/* -------------------------------------------------------------- footer ---- */

.rana-footer {
	background: var(--rana-ink);
	color: #cfc7bd;
	padding-block: clamp(48px, 6vw, 76px) 0;
	font-family: var(--rana-nav);
	font-size: .94rem;
}

.rana-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: clamp(28px, 4vw, 56px);
	padding-block-end: clamp(32px, 4vw, 52px);
}

/* No letter-spacing: Arabic is cursive, and tracking pulls the joins apart so
   «خدماتنا» renders as loose disconnected glyphs. Size and colour carry the
   hierarchy instead. */
.rana-footer h3 {
	font-family: var(--rana-body);
	font-size: .9rem;
	font-weight: 700;
	color: var(--rana-bronze-light);
	margin: 0 0 1.1rem;
}

/* Logo shown in its original colours — the gold and grey read fine on ink, and
   the previous white filter flattened the brand mark. */
.rana-footer__brand img {
	block-size: 78px;
	inline-size: auto;
	margin-block-end: 1rem;
	/* The wordmark under the R is black in the artwork, so a soft light backing
	   keeps it legible without recolouring the mark itself. */
	background: rgba(255, 255, 255, .93);
	border-radius: var(--rana-r);
	padding: 8px 12px;
}

.rana-footer__slogan {
	font-family: var(--rana-display);
	font-size: 1.12rem;
	line-height: 1.75;
	color: #e8e0d4;
	margin: 0 0 1rem;
	max-inline-size: 34ch;
}

.rana-footer ul { list-style: none; margin: 0; padding: 0; }
.rana-footer li { margin-block-end: .6rem; }
.rana-footer a { color: #cfc7bd; text-decoration: none; transition: color var(--rana-t); }
.rana-footer a:hover { color: var(--rana-bronze-light); }

/* The number is LTR inside an RTL column, so it is aligned explicitly to the
   same edge as the text above it rather than floating to the logical start. */
.rana-footer__phone { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; }
.rana-footer__phone a {
	display: block;
	font-size: 1.3rem;
	font-weight: 700;
	color: #fff;
	text-align: right;
	unicode-bidi: isolate;
}
.rana-footer__phone a:hover { color: var(--rana-bronze-light); }
.rana-footer__phone span { font-size: .86rem; color: #9a938a; }

.rana-social { display: flex; gap: .6rem; margin-block-start: 1.1rem; }
.rana-social a {
	inline-size: 38px;
	block-size: 38px;
	display: grid;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	transition: border-color var(--rana-t), background var(--rana-t), transform .25s var(--rana-ease);
}
.rana-social a:hover { border-color: var(--rana-bronze-light); background: rgba(201, 169, 97, .12); transform: translateY(-2px); }
.rana-social svg { inline-size: 17px; block-size: 17px; fill: #cfc7bd; }
.rana-social a:hover svg { fill: var(--rana-bronze-light); }

/* Copyright bar. Structure as supplied by the client; the navy gradient and
   orange link were dropped at their request so the whole footer reads as one
   black field, with the bronze accent instead of an out-of-palette orange. */
.custom-copyright-footer {
	background: var(--rana-ink);
	border-block-start: 1px solid rgba(255, 255, 255, .1);
	font-family: var(--rana-nav), system-ui, sans-serif;
	text-align: center;
	padding: 22px 0;
	color: rgba(255, 255, 255, .62);
	font-size: 14px;
	inline-size: 100%;
	box-sizing: border-box;
}
.custom-copyright-footer p {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	line-height: 1.6;
}
.custom-copyright-footer .separator { margin: 0 10px; color: #888; }
.custom-copyright-footer .designed-by {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	direction: ltr;
}
.custom-copyright-footer .boom-media-link {
	color: #f26a21;
	font-weight: 700;
	text-decoration: none;
	transition: color .3s ease;
	letter-spacing: .5px;
}
.custom-copyright-footer .boom-media-link:hover { color: #fff; }

@media (max-width: 768px) {
	.custom-copyright-footer p { font-size: 13px; flex-direction: column; gap: 6px; }
	.custom-copyright-footer .separator { display: none; }
}

@media (max-width: 900px) {
	.rana-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
	.rana-footer__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion.
   The direction calls for restraint, so this is deliberately one idea applied
   consistently: content rises a short distance into place as it enters view,
   staggered along a row. Nothing loops, nothing bounces, nothing moves on the
   page after it has settled. All of it collapses under prefers-reduced-motion.
   ========================================================================== */

.rana-rv {
	opacity: 0;
	transition: opacity .7s var(--rana-ease), transform .7s var(--rana-ease);
	transition-delay: calc(var(--rana-i, 0) * 70ms);
}
.rana-rv.is-in { opacity: 1; transform: none; }

/*
 * Motion vocabulary. One effect repeated everywhere read as a tic, so each
 * kind of content now enters in the way that suits it: text rises, imagery
 * settles in from scale, side columns slide in along the reading axis, list
 * rows wipe open, and figures count up. Still restrained — nothing loops, and
 * all of it collapses under prefers-reduced-motion.
 */
.rana-rv--up { transform: translateY(22px); }
.rana-rv--side { transform: translateX(28px); }          /* RTL: enters from the start edge */
html[dir="ltr"] .rana-rv--side { transform: translateX(-28px); }
.rana-rv--scale { transform: scale(.965); }
.rana-rv--rise { transform: translateY(34px) scale(.98); }

/*
 * There is deliberately no clip-path wipe here any more. It shipped once and
 * left the homepage services rows clipped to zero height — present in the DOM,
 * occupying 108px, rendering nothing. A reveal that can hide content
 * permanently is the wrong trade on a site that has to sell property, so every
 * variant now only ever animates opacity and transform, both of which degrade
 * to "visible" rather than to "gone".
 */
.rana-rv--wipe { transform: translateY(14px); }

/* The arch on hero imagery opens as it arrives. */
.rana-rv--arch { border-radius: 999px 999px var(--rana-r) var(--rana-r); transform: translateY(16px); }

/* Cards lift in sequence along their row. */
.rana-card.rana-rv { transform: translateY(26px) scale(.985); }

/* Cards lift and their arch deepens slightly on hover. */
.rana-card__link { transition: transform .35s var(--rana-ease); }
.rana-card__link:hover { transform: translateY(-4px); }
.rana-card__media { transition: border-radius .45s var(--rana-ease), box-shadow .35s var(--rana-ease); }
.rana-card__link:hover .rana-card__media {
	border-radius: 140px 140px var(--rana-r) var(--rana-r);
	box-shadow: 0 12px 30px rgba(26, 23, 20, .10);
}

.rana-btn { transition: background var(--rana-t), color var(--rana-t), border-color var(--rana-t), transform .25s var(--rana-ease); }
.rana-btn--solid:hover, .rana-btn--outline:hover { transform: translateY(-2px); }

.rana-stat__n { transition: color .4s var(--rana-ease); }

/* Section headings draw their bronze rule as they arrive. */
.rana-eyebrow::after { transform: scaleX(0); transform-origin: right center; transition: transform .8s var(--rana-ease) .15s; }
.rana-rv.is-in .rana-eyebrow::after,
.is-in .rana-eyebrow::after,
.rana-eyebrow.is-in::after { transform: scaleX(1); }

/* -------------------------------------------------------------- share ---- */

.rana-share {
	margin-block: 1rem 0;
	padding-block-start: 1rem;
	border-block-start: 1px solid var(--rana-line-soft);
}
.rana-share__label { display: block; font-size: .82rem; color: var(--rana-ink-3); margin-block-end: .6rem; }
.rana-share__row { display: flex; gap: .5rem; }

body.rana-site .rana-share__btn {
	inline-size: 40px;
	block-size: 40px;
	display: grid;
	place-items: center;
	padding: 0 !important;
	border: 1px solid var(--rana-line) !important;
	border-radius: var(--rana-r) !important;
	background: var(--rana-white) !important;
	color: var(--rana-ink-2) !important;
	cursor: pointer;
	transition: border-color var(--rana-t), background var(--rana-t), transform .25s var(--rana-ease);
}
body.rana-site .rana-share__btn:hover {
	border-color: var(--rana-bronze) !important;
	background: var(--rana-sand) !important;
	transform: translateY(-2px);
}
.rana-share__btn svg { inline-size: 18px; block-size: 18px; fill: currentColor; }
body.rana-site .rana-share__btn--wa:hover { background: #25d366 !important; border-color: #25d366 !important; color: #fff !important; }
.rana-share__done { display: block; font-size: .8rem; color: var(--rana-bronze-text); margin-block-start: .6rem; }
.rana-share__done[hidden] { display: none; }

/* ---------------------------------------------------------- favourites ---- */

/* Colour and shape are forced: the theme's button rules were overriding the
   fill and turning the heart into a solid pink chip. */
body.rana-site .rana-fav {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	z-index: 2;
	inline-size: 36px;
	block-size: 36px;
	display: grid;
	place-items: center;
	padding: 0 !important;
	border: 1px solid var(--rana-line) !important;
	border-radius: 50% !important;
	background: rgba(251, 248, 243, .94) !important;
	color: var(--rana-ink-2) !important;
	cursor: pointer;
	transition: background .25s var(--rana-ease), transform .25s var(--rana-ease), border-color .25s var(--rana-ease);
}
body.rana-site .rana-fav:hover { transform: scale(1.08); border-color: var(--rana-bronze) !important; }
body.rana-site .rana-fav svg { inline-size: 17px; block-size: 17px; fill: none; stroke: var(--rana-ink-2); stroke-width: 1.7; transition: fill .25s var(--rana-ease), stroke .25s var(--rana-ease); }
body.rana-site .rana-fav.is-on { border-color: var(--rana-bronze) !important; background: var(--rana-ivory) !important; }
body.rana-site .rana-fav.is-on svg { fill: var(--rana-bronze); stroke: var(--rana-bronze-dark); }

/* The tag sits beside the heart rather than under it. */
.rana-card__media .rana-tag { inset-inline-start: 58px; }

.rana-favcount {
	display: inline-grid;
	place-items: center;
	min-inline-size: 1.25rem;
	block-size: 1.25rem;
	padding-inline: .3rem;
	margin-inline-start: .35rem;
	border-radius: 999px;
	background: var(--rana-bronze-dark);
	color: #fff;
	font-size: .72rem;
	font-weight: 700;
	line-height: 1;
}
.rana-favcount[hidden] { display: none; }

.rana-favlink {
	display: inline-flex;
	align-items: center;
	font-family: var(--rana-nav);
	font-size: .95rem;
	font-weight: 500;
	color: var(--rana-ink);
	text-decoration: none;
	white-space: nowrap;
}
.rana-favlink:hover { color: var(--rana-bronze-text); }
.rana-favlink svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; margin-inline-end: .35rem; }

/* --------------------------------------------------- floating whatsapp ---- */

.rana-wa {
	position: fixed;
	inset-block-end: 20px;
	inset-inline-start: 20px;
	z-index: 450;
	inline-size: 54px;
	block-size: 54px;
	border-radius: 50%;
	background: #25d366;
	display: grid;
	place-items: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
	transition: transform var(--rana-t);
}
.rana-wa:hover { transform: translateY(-2px); }
.rana-wa svg { inline-size: 28px; block-size: 28px; fill: #fff; }

/* ------------------------------------------------------- skip link ---- */

/* The theme parks it at the left edge, which in an RTL layout is the far side
   of the screen from where reading starts. */
body.rana-site .skip-link:focus {
	inset-inline-start: 12px;
	inset-inline-end: auto;
	inset-block-start: 12px;
	z-index: 1000;
	padding: .7rem 1.1rem;
	background: var(--rana-ink);
	color: #fff;
	border-radius: 6px;
	font-family: var(--rana-font-ui);
	font-weight: 600;
	text-decoration: none;
	clip: auto;
	clip-path: none;
	inline-size: auto;
	block-size: auto;
}

/* ---------------------------------------------- mobile property action ---- */

/*
 * Price + both CTAs pinned to the bottom of a phone viewport. Desktop keeps the
 * sticky rail instead, so this is off above 900px.
 */
.rana-mobilebar { display: none; }

@media (max-width: 900px) {
	.rana-mobilebar {
		position: fixed;
		inset-inline: 0;
		inset-block-end: 0;
		z-index: 460;
		display: grid;
		grid-template-columns: 1fr auto auto;
		align-items: center;
		gap: .5rem;
		padding: .6rem .8rem calc(.6rem + env(safe-area-inset-bottom));
		background: var(--rana-ink);
		box-shadow: 0 -4px 20px rgba(0, 0, 0, .22);
	}
	.rana-mobilebar__price {
		color: #fff;
		font-family: var(--rana-font-ui);
		font-weight: 700;
		font-size: 1.02rem;
		line-height: 1.2;
		min-inline-size: 0;
	}
	.rana-mobilebar__price small { font-weight: 400; opacity: .75; }
	.rana-mobilebar__btn {
		display: inline-grid;
		grid-auto-flow: column;
		align-items: center;
		gap: .35rem;
		padding: .55rem .85rem;
		border-radius: 10px;
		font-family: var(--rana-font-ui);
		font-weight: 600;
		font-size: .85rem;
		text-decoration: none;
		color: #fff !important;
		background: rgba(255, 255, 255, .14);
		border: 1px solid rgba(255, 255, 255, .3);
	}
	.rana-mobilebar__btn--wa { background: #25d366; border-color: #25d366; }
	.rana-mobilebar__btn svg { inline-size: 18px; block-size: 18px; fill: #fff; }

	/* Keep the bar from covering the last of the page, and get the floating
	   button out of its way on listings. */
	body.rana-site.single-property { padding-block-end: 72px; }
	body.rana-site.single-property .rana-wa { inset-block-end: 84px; }
}


/* ------------------------------------------ theme red, interactive states ---- */

/*
 * hello-elementor's reset.css carries:
 *     button:hover, button:focus, [type="button"]:hover, [type="button"]:focus
 *     { background-color: #CC3366; color: #fff; }
 *
 * The coloured buttons survive it because .rana-btn--solid and friends declare
 * their background with !important. The plain ones did not: the only background
 * declaration for «مسح الكل» was `.rana-filters__reset { background: initial }`
 * at specificity (0,1,0), which loses to the theme's (0,1,1) the moment a
 * pointer touches it. Its text colour stayed correct — which is exactly why the
 * button looked fine at rest and went crimson on hover.
 *
 * Below: the five controls that had no state styling of their own, each given a
 * real hover, and a focus ring for every control we own so a keyboard user gets
 * a visible cue instead of a red flash.
 */
body.rana-site .rana-filters__reset:hover,
body.rana-site .rana-filters__reset:focus,
body.rana-site .rana-filters__done:hover,
body.rana-site .rana-filters__done:focus {
	background: transparent !important;
	color: var(--rana-ink) !important;
}

body.rana-site .rana-link:hover,
body.rana-site .rana-link:focus {
	background: transparent !important;
	color: var(--rana-bronze-dark) !important;
	text-decoration: underline;
}

body.rana-site .rana-header__wa:hover,
body.rana-site .rana-header__wa:focus {
	background: #1ebe5b !important;
	color: #fff !important;
}

body.rana-site .rana-mobilebar__btn:hover,
body.rana-site .rana-mobilebar__btn:focus {
	background: rgba(255, 255, 255, .24) !important;
	color: #fff !important;
}
body.rana-site .rana-mobilebar__btn--wa:hover,
body.rana-site .rana-mobilebar__btn--wa:focus {
	background: #1ebe5b !important;
}

/*
 * Focus must not repaint a control, only ring it. Declared per state so the
 * theme's background never lands, while each variant keeps the colours its own
 * !important rules already set.
 */
body.rana-site .rana-fav:focus,
body.rana-site .rana-navtoggle:focus,
body.rana-site .rana-drawer__close:focus,
body.rana-site .rana-share__btn:focus,
body.rana-site .rana-lightbox__close:focus,
body.rana-site .rana-lightbox__nav:focus,
body.rana-site .rana-gallery__main:focus,
body.rana-site .rana-gallery__thumb:focus {
	background: transparent !important;
	color: inherit !important;
}

body.rana-site .rana-btn:focus-visible,
body.rana-site .rana-fav:focus-visible,
body.rana-site .rana-navtoggle:focus-visible,
body.rana-site .rana-drawer__close:focus-visible,
body.rana-site .rana-filters__reset:focus-visible,
body.rana-site .rana-filters__done:focus-visible,
body.rana-site .rana-share__btn:focus-visible,
body.rana-site .rana-link:focus-visible,
body.rana-site .rana-header__wa:focus-visible,
body.rana-site .rana-mobilebar__btn:focus-visible,
body.rana-site .rana-lightbox__close:focus-visible,
body.rana-site .rana-lightbox__nav:focus-visible,
body.rana-site .rana-gallery__main:focus-visible,
body.rana-site .rana-gallery__thumb:focus-visible,
body.rana-site .rana-form button:focus-visible,
body.rana-site .rana-form input[type="submit"]:focus-visible {
	outline: 2px solid var(--rana-bronze-dark);
	outline-offset: 2px;
}


/* ----------------------------------------------------- section index ---- */

/*
 * One door per category. Every type and purpose already had its own archive;
 * nothing linked to them, so they may as well not have existed. This sits above
 * the listing on every archive page and doubles as sideways navigation — from
 * «شقق» straight to «فلل» without going back up.
 */
.rana-sections {
	margin-block-end: clamp(24px, 3vw, 40px);
	padding-block-end: clamp(20px, 2.5vw, 30px);
	border-block-end: 1px solid var(--rana-line);
}
.rana-sections__title {
	font-family: var(--rana-display);
	font-size: clamp(1.15rem, 2vw, 1.4rem);
	margin: 0 0 1.1rem;
}
.rana-sections__group + .rana-sections__group { margin-block-start: 1.1rem; }
.rana-sections__label {
	font-family: var(--rana-font-ui);
	font-size: .8rem;
	font-weight: 600;
	color: var(--rana-ink-3);
	margin: 0 0 .55rem;
}
.rana-sections__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}

.rana-section {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	padding: .5rem .95rem;
	border: 1px solid var(--rana-line-strong);
	border-radius: 999px;
	font-family: var(--rana-font-ui);
	font-size: .92rem;
	color: var(--rana-ink);
	text-decoration: none;
	background: var(--rana-white);
	transition: background var(--rana-t), color var(--rana-t), border-color var(--rana-t);
}
.rana-section__n {
	font-size: .78rem;
	font-weight: 700;
	padding: .05rem .42rem;
	border-radius: 999px;
	background: var(--rana-sand);
	color: var(--rana-bronze-text);
}
body.rana-site .rana-section:hover,
body.rana-site .rana-section:focus {
	background: var(--rana-bronze-dark) !important;
	border-color: var(--rana-bronze-dark) !important;
	color: #fff !important;
}
.rana-section:hover .rana-section__n,
.rana-section:focus .rana-section__n { background: rgba(255, 255, 255, .22); color: #fff; }
body.rana-site .rana-section:focus-visible { outline: 2px solid var(--rana-bronze-dark); outline-offset: 2px; }

/* The page you are already on is marked, not linked away to. */
.rana-section.is-current {
	background: var(--rana-ink);
	border-color: var(--rana-ink);
	color: #fff;
	pointer-events: none;
}
.rana-section.is-current .rana-section__n { background: rgba(255, 255, 255, .2); color: #fff; }

/*
 * The chips filter the grid in place rather than navigating, so the pressed
 * state is the only feedback the visitor gets that anything happened. It has to
 * be unmistakable — and since the click no longer leaves the page, the chip must
 * stay clickable so the section can be turned back off.
 */
.rana-section--all { border-style: dashed; }
.rana-section.is-current {
	background: var(--rana-ink);
	border-color: var(--rana-ink);
	color: #fff;
	pointer-events: auto;
}
body.rana-site .rana-section.is-current:hover,
body.rana-site .rana-section.is-current:focus {
	background: var(--rana-ink) !important;
	border-color: var(--rana-ink) !important;
	color: #fff !important;
}

/* ------------------------------------------------------ language ---- */

/*
 * The English site.
 *
 * The layout needs no mirroring work: every rule in this file was already
 * written with logical properties (inset-inline, padding-inline, margin-block),
 * so setting dir="ltr" — which Polylang does from the language's own RTL flag —
 * flips the entire design correctly on its own. What does need saying is the
 * typography: Amiri and IBM Plex Sans Arabic carry Latin glyphs, but they are
 * the afterthought half of an Arabic face and set badly at display sizes.
 */
body.rana-lang-en {
	--rana-display: "Cormorant Garamond", "Amiri", Georgia, serif;
	--rana-body: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--rana-nav: "Inter", "Tajawal", system-ui, sans-serif;
}

/* Amiri needs a 1.5 line box for Arabic diacritics; a Latin serif does not, and
   at that height English headings look loose and disconnected. */
body.rana-lang-en h1,
body.rana-lang-en h2,
body.rana-lang-en h3,
body.rana-lang-en .rana-h1,
body.rana-lang-en .rana-h2,
body.rana-lang-en .rana-h3 { line-height: 1.24; }
body.rana-lang-en .rana-h1 { line-height: 1.1; }

/* Latin numerals no longer need bidi isolation, and the isolate adds a hairline
   of space that reads as a typo in English. */
body.rana-lang-en [dir="ltr"] { unicode-bidi: normal; }

.rana-lang {
	display: inline-grid;
	place-items: center;
	min-inline-size: 34px;
	block-size: 34px;
	padding-inline: .5rem;
	border: 1px solid var(--rana-line-strong);
	border-radius: 999px;
	font-family: var(--rana-font-ui);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--rana-ink);
	text-decoration: none;
	transition: background var(--rana-t), color var(--rana-t), border-color var(--rana-t);
}
body.rana-site .rana-lang:hover,
body.rana-site .rana-lang:focus {
	background: var(--rana-bronze-dark) !important;
	border-color: var(--rana-bronze-dark) !important;
	color: #fff !important;
}
body.rana-site .rana-lang:focus-visible { outline: 2px solid var(--rana-bronze-dark); outline-offset: 2px; }

/* ------------------------------------------------------ LTR repair ---- */

/*
 * The page blocks carry `direction: rtl` inside their own <style> tags — they
 * were authored for an Arabic-only site, and every English page is a copy of
 * that markup. Measured on /en/: <html> and <body> were correctly ltr while the
 * hero computed rtl, so the headline, the buttons and the photo all laid out
 * backwards inside an otherwise left-to-right page.
 *
 * Overriding here rather than editing each page's HTML: the rule is one place,
 * it covers pages that do not exist yet, and it cannot drift out of step when a
 * block is copied again. Specificity (0,2,1) beats the inline block's (0,1,0)
 * whatever order the stylesheets load in.
 */
body.rana-lang-en .h2,
body.rana-lang-en .hp,
body.rana-lang-en .ab,
body.rana-lang-en .sv,
body.rana-lang-en .rana-main,
body.rana-lang-en .rana-listing,
body.rana-lang-en .rana-single,
body.rana-lang-en .elementor-widget-html { direction: ltr; }

/*
 * Number isolation is an Arabic need. `dir="ltr"` on a price inside English
 * text creates a bidi boundary the browser then has to resolve, which adds a
 * hairline of space before the currency and can reorder adjacent punctuation.
 * Neutralised for English while the attribute stays in the markup for Arabic.
 */
body.rana-lang-en [dir="ltr"] { unicode-bidi: normal; }

/* Arabic sets these to start from the right; in English they must start left,
   which `start` already does — this only undoes any explicit right alignment
   inherited from the block styles. */
body.rana-lang-en .h2 h1,
body.rana-lang-en .h2 .h2__lede,
body.rana-lang-en .h2 .h2__kicker,
body.rana-lang-en .rana-pagehead__title,
body.rana-lang-en .rana-pagehead__intro { text-align: start; }

/* The footer credit bar and the brand column both read from the right in the
   Arabic design. Direction handles the flow; these put the two halves of the
   copyright line on the sides an English reader expects. */
body.rana-lang-en .custom-copyright-footer p { flex-direction: row; }
body.rana-lang-en .rana-footer,
body.rana-lang-en .rana-footer__grid,
body.rana-lang-en .rana-footer__contact { direction: ltr; text-align: start; }

/* ================================================================ blog ====
 * The card grid and the article layout follow the shape the client picked out
 * on a reference site; the vocabulary is this site's own. Where the reference
 * uses a 20px radius, a coloured drop shadow and a 900-weight sans, this uses
 * the same hairline-and-arch language as the property cards — otherwise the
 * blog reads as another company's page wearing our header.
 * ------------------------------------------------------------------------- */

.rana-blog .rana-wrap,
.rana-article .rana-wrap { padding-block: clamp(36px, 5vw, 64px); }

.rana-pcard { position: relative; }

.rana-pcard__link {
	display: flex;
	flex-direction: column;
	block-size: 100%;
	color: inherit;
	text-decoration: none;
}

.rana-pcard__media {
	position: relative;
	aspect-ratio: 4 / 2.6;
	overflow: hidden;
	border-radius: var(--rana-arch-sm);
	background: var(--rana-sand);
	border: 1px solid var(--rana-line-soft);
}

.rana-pcard__img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.rana-pcard__link:hover .rana-pcard__img { transform: scale(1.03); }

.rana-pcard__img--empty {
	background:
		repeating-linear-gradient(135deg, var(--rana-sand) 0 12px, var(--rana-sand-2) 12px 24px);
}

/* The badge sits on the photo, so it carries its own opaque plate rather than
   trusting the image to be light enough underneath. */
.rana-pcard__cat {
	position: absolute;
	inset-block-start: 12px;
	inset-inline-start: 12px;
	background: var(--rana-ivory);
	border: 1px solid var(--rana-line);
	color: var(--rana-bronze-text);
	font-family: var(--rana-font-ui);
	font-size: .74rem;
	font-weight: 700;
	padding: .28rem .7rem;
	border-radius: var(--rana-r);
	z-index: 2;
}

.rana-pcard__body {
	padding-block-start: 1.05rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.rana-pcard__date {
	font-family: var(--rana-font-ui);
	font-size: .78rem;
	color: var(--rana-ink-3);
	margin: 0 0 .35rem;
}

.rana-pcard__title {
	font-family: var(--rana-display);
	font-size: 1.24rem;
	line-height: 1.5;
	font-weight: 700;
	color: var(--rana-ink);
	margin: 0 0 .5rem;
	transition: color var(--rana-t);
}
.rana-pcard__link:hover .rana-pcard__title { color: var(--rana-bronze-text); }

/* Three lines, then stop. Excerpt lengths differ by a factor of four, and
   without the clamp the cards in a row stop lining up. */
.rana-pcard__excerpt {
	font-size: .94rem;
	line-height: 1.75;
	color: var(--rana-ink-2);
	margin: 0 0 1rem;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rana-pcard__more {
	margin-block-start: auto;
	padding-block-start: .85rem;
	border-block-start: 1px solid var(--rana-line-soft);
	font-family: var(--rana-font-ui);
	font-size: .86rem;
	font-weight: 600;
	color: var(--rana-bronze-text);
	display: inline-flex;
	align-items: center;
	gap: .4rem;
}
.rana-pcard__more svg {
	inline-size: 1.05em;
	block-size: 1.05em;
	flex: none;
	transition: transform var(--rana-t);
}
/* The arrow points the way the language runs, and steps in that direction. */
[dir="rtl"] .rana-pcard__more svg { transform: scaleX(-1); }
.rana-pcard__link:hover .rana-pcard__more svg { transform: translateX(4px); }
[dir="rtl"] .rana-pcard__link:hover .rana-pcard__more svg { transform: scaleX(-1) translateX(4px); }

.rana-pagination { margin-block-start: clamp(32px, 4vw, 52px); }
.rana-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .5rem;
}
.rana-pagination .page-numbers {
	font-family: var(--rana-font-ui);
	font-size: .92rem;
	min-inline-size: 40px;
	block-size: 40px;
	display: inline-grid;
	place-items: center;
	padding-inline: .7rem;
	border: 1px solid var(--rana-line-strong);
	border-radius: var(--rana-r);
	color: var(--rana-ink);
	text-decoration: none;
	transition: background var(--rana-t), color var(--rana-t), border-color var(--rana-t);
}
body.rana-site .rana-pagination a.page-numbers:hover {
	background: var(--rana-sand);
	border-color: var(--rana-bronze);
	color: var(--rana-bronze-text);
}
.rana-pagination .page-numbers.current {
	background: var(--rana-bronze);
	border-color: var(--rana-bronze);
	color: #fff;
}
.rana-pagination .page-numbers.dots { border-color: transparent; }

/* ------------------------------------------------------------ article ---- */

.rana-article__head { margin-block: 1rem 1.4rem; }

.rana-article__title {
	font-size: clamp(1.85rem, 3.8vw, 2.7rem);
	line-height: 1.35;
	margin: 0 0 .8rem;
	color: var(--rana-ink);
	max-inline-size: 24ch;
}
body.rana-lang-en .rana-article__title { max-inline-size: 30ch; }

.rana-article__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1.1rem;
	font-family: var(--rana-font-ui);
	font-size: .86rem;
	color: var(--rana-ink-3);
}
.rana-article__meta li { display: inline-flex; align-items: center; gap: .38rem; }
.rana-article__meta svg { inline-size: 1.05em; block-size: 1.05em; color: var(--rana-bronze); flex: none; }

.rana-article__cover {
	margin: 0 0 clamp(28px, 4vw, 44px);
	aspect-ratio: 16 / 7;
	overflow: hidden;
	border-radius: var(--rana-arch-sm);
	border: 1px solid var(--rana-line-soft);
	background: var(--rana-sand);
}
.rana-article__coverimg { inline-size: 100%; block-size: 100%; object-fit: cover; display: block; }

.rana-article__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: clamp(28px, 4vw, 56px);
	align-items: start;
}

/* Prose gets a measure, not the full column — around 90 Arabic characters at
   this size is where a reader starts losing the return sweep. */
.rana-article__body { max-inline-size: 72ch; }
.rana-article__body > p,
.rana-article__body > ul,
.rana-article__body > ol {
	font-size: 1.06rem;
	line-height: 1.95;
	color: var(--rana-ink-2);
	margin-block: 0 1.25rem;
}
.rana-article__body > h2 {
	font-family: var(--rana-display);
	font-size: clamp(1.4rem, 2.4vw, 1.75rem);
	line-height: 1.45;
	color: var(--rana-ink);
	margin-block: 2.4rem .8rem;
	padding-block-end: .5rem;
	border-block-end: 1px solid var(--rana-line-soft);
	/* An anchored heading has to clear the sticky header when jumped to. */
	scroll-margin-block-start: 96px;
}
.rana-article__body > h3 {
	font-size: 1.16rem;
	font-weight: 700;
	color: var(--rana-ink);
	margin-block: 1.8rem .6rem;
	scroll-margin-block-start: 96px;
}
.rana-article__body > ul,
.rana-article__body > ol { padding-inline-start: 1.3rem; }
.rana-article__body li { margin-block-end: .5rem; }
.rana-article__body img { max-inline-size: 100%; block-size: auto; border-radius: var(--rana-r); }
.rana-article__body a { color: var(--rana-bronze-text); text-underline-offset: .18em; }
.rana-article__body blockquote {
	margin: 1.6rem 0;
	padding-inline-start: 1.1rem;
	border-inline-start: 2px solid var(--rana-bronze);
	color: var(--rana-ink);
	font-family: var(--rana-display);
	font-size: 1.15rem;
	line-height: 1.7;
}

.rana-article__share {
	margin-block-start: 2.4rem;
	padding-block-start: 1.4rem;
	border-block-start: 1px solid var(--rana-line);
}

.rana-article__rail {
	position: sticky;
	inset-block-start: 96px;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.rana-toc,
.rana-railcta {
	background: var(--rana-sand);
	border: 1px solid var(--rana-line);
	border-radius: var(--rana-r);
	padding: 1.15rem 1.2rem;
}

.rana-toc__title,
.rana-railcta__title {
	font-family: var(--rana-font-ui);
	font-size: .82rem;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--rana-ink-3);
	margin: 0 0 .75rem;
}

/* The list can outrun the viewport on a ten-heading article, so it scrolls
   inside its own card rather than pushing the CTA below the fold. */
.rana-toc__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-block-size: min(52vh, 460px);
	overflow-y: auto;
}
.rana-toc__list li { margin-block-end: .1rem; }
.rana-toc__list a {
	display: block;
	font-size: .9rem;
	line-height: 1.55;
	color: var(--rana-ink-2);
	text-decoration: none;
	padding: .34rem .5rem;
	border-inline-start: 2px solid transparent;
	border-radius: var(--rana-r);
	transition: color var(--rana-t), background var(--rana-t), border-color var(--rana-t);
}
body.rana-site .rana-toc__list a:hover {
	color: var(--rana-bronze-text);
	background: var(--rana-ivory);
	border-inline-start-color: var(--rana-bronze);
}
.rana-toc__l3 a { padding-inline-start: 1.25rem; font-size: .85rem; color: var(--rana-ink-3); }
.rana-toc__list a.is-current {
	color: var(--rana-bronze-text);
	background: var(--rana-ivory);
	border-inline-start-color: var(--rana-bronze);
	font-weight: 600;
}

.rana-railcta__text { font-size: .9rem; line-height: 1.7; margin: 0 0 .9rem; color: var(--rana-ink-2); }
.rana-railcta .rana-btn { margin-block-start: .5rem; }

.rana-readnext {
	margin-block-start: clamp(48px, 6vw, 80px);
	padding-block-start: clamp(32px, 4vw, 48px);
	border-block-start: 1px solid var(--rana-line);
}
.rana-readnext .rana-h2 { margin-block-end: 1.4rem; }

@media (max-width: 900px) {
	.rana-article__grid { grid-template-columns: 1fr; }
	/* The contents list drops under the article on a phone: sticking it above
	   the text would put a screenful of links between the headline and the
	   first paragraph. */
	.rana-article__rail { position: static; order: 2; }
	.rana-article__body { max-inline-size: none; }
	.rana-toc__list { max-block-size: none; }
	.rana-article__cover { aspect-ratio: 16 / 9; }
}
