/* «نموذج للعقار» Namoothaj Real Estate: a SAMPLE design by Khalesni, for a made-up property agency.
   It has its own palette (midnight navy, champagne gold, ivory) and fonts (El Messiri for headings,
   Tajawal for text) on purpose, to show a style that is different from Khalesni's own site and from
   the café sample. Khalesni's colours appear only in the sample banner and the demo note, because
   those are Khalesni speaking.
   The idea: a property brochure. The area is the first thing you read on every listing, the reference
   number sits opposite it like a lot number, prices are set large in El Messiri, and the agency's arch
   (from its mark) returns as a thin gold line. Flat colour, hairlines, nothing floating.
   Type scale: 14 / 17 / 22 / 32–46 / 40–68 px. Spacing runs on a 4 px grid.
   Contrast (WCAG 2.x, checked 28 Oct 2026): ink on ivory 15.9:1; slate on ivory 6.5:1, on stone 5.8:1;
   gold-ink on ivory 5.9:1, on stone 5.3:1, on gold-soft 5.1:1; gold on ink 7.3:1; ink on gold 7.3:1;
   ivory on navy 13.2:1; open green 5.5:1; closed red 5.6:1.
   Icons: drawn for this page or adapted from Lucide (ISC licence). Buildings and scenes: drawn for this page. */

:root {
  --ink: #0B1B30;
  --navy: #142A4B;
  --navy-2: #1F3B63;
  --slate: #4A5A70;
  --gold: #C9A35E;
  --gold-ink: #775A23;
  --gold-soft: #F0E4C8;
  --ivory: #F8F5EF;
  --stone: #EFE9DE;
  --white: #FFFFFF;
  --line: rgba(11, 27, 48, 0.12);
  --line-gold: rgba(201, 163, 94, 0.35);
  --k-ink: #06323A;   /* Khalesni: sample banner, demo note and WhatsApp preview only */
  --k-teal: #0E6670;
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", "Geeza Pro", Tahoma, Arial, sans-serif;
  --display: "El Messiri", "Tajawal", "Geeza Pro", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 4px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { margin: 0 0 0.5em; font-family: var(--display); font-weight: 700; line-height: 1.35; text-wrap: balance; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol, dl { margin: 0; padding: 0; list-style: none; }
a { color: var(--gold-ink); text-underline-offset: 0.25em; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-ink); outline-offset: 3px; }
.sample-banner :focus-visible { outline-color: #fff; }
.re-hero :focus-visible, .owners :focus-visible, .re-footer :focus-visible { outline-color: var(--gold); }
.owners .owner-form :focus-visible { outline-color: var(--gold-ink); }
[id] { scroll-margin-top: 86px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.wrap { width: min(100% - 32px, 1160px); margin-inline: auto; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 100;
  padding: 0.75rem 1rem; border-radius: var(--radius); background: var(--ink); color: var(--ivory);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Sample banner (Khalesni's note, same as the café sample) ---------- */
.sample-banner { background: var(--k-ink); color: #fff; font-size: 0.875rem; }
.banner-inner { display: flex; align-items: center; gap: 0.75rem; padding-block: 0.5rem; }
.banner-inner img { flex: none; width: 32px; height: 32px; padding: 4px; border-radius: 8px; background: #fff; }
.banner-inner p { flex: 1; margin: 0; line-height: 1.5; }
.banner-inner p span { display: block; font-size: 0.875em; opacity: 0.88; }
.banner-inner a {
  flex: none;
  padding: 0.25rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  white-space: nowrap;
}
.banner-inner a:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Header: plain ivory with one hairline ---------- */
.re-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: var(--ivory);
}
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 70px; }
.re-logo { display: inline-flex; align-items: center; gap: 0.75rem; margin-inline-end: auto; color: var(--ink); text-decoration: none; }
.logo-mark { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 23px 23px 4px 4px; background: var(--ink); color: var(--gold); }
.logo-mark svg { width: 34px; height: 34px; }
.logo-text b { display: block; font-family: var(--display); font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.logo-text small { display: block; margin-top: 0.25rem; color: var(--gold-ink); font-size: 0.5625rem; font-weight: 700; letter-spacing: 0.16em; line-height: 1.2; text-align: right; }
.re-header nav ul { display: flex; gap: 0.25rem; }
.re-header nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.75rem;
  color: var(--navy); font-weight: 700; text-decoration: underline; text-decoration-color: transparent;
  text-decoration-thickness: 1px; transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}
.re-header nav a:hover { color: var(--ink); text-decoration-color: var(--gold); }
@media (max-width: 879px) { .re-header nav { display: none; } }
@media (max-width: 370px) { .logo-text small { letter-spacing: 0.08em; } .header-row .r-btn-sm { padding-inline: 0.75rem; } }
@media (max-width: 340px) { .logo-text small { display: none; } }

/* ---------- Buttons ---------- */
.r-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.r-btn svg { flex: none; }
.r-btn-gold { background: var(--gold); color: var(--ink); }
.r-btn-gold:hover { background: #D6B472; color: var(--ink); }
.r-btn-ghost { border-color: rgba(248, 245, 239, 0.42); color: var(--ivory); }
.r-btn-ghost:hover { border-color: var(--ivory); background: rgba(248, 245, 239, 0.08); color: var(--ivory); }
.r-btn-navy, .r-btn-wa { background: var(--ink); color: var(--ivory); }
.r-btn-navy:hover, .r-btn-wa:hover { background: var(--navy-2); color: var(--ivory); }
.r-btn-ghost svg, .r-btn-navy svg, .r-btn-wa svg { color: var(--gold); }
.r-btn-outline { border-color: rgba(11, 27, 48, 0.25); background: transparent; color: var(--ink); }
.r-btn-outline:hover { border-color: var(--ink); background: var(--white); color: var(--ink); }
.r-btn-outline svg { color: var(--gold-ink); }
.r-btn-sm { min-height: 44px; padding: 0.5rem 1rem; font-size: 0.9375rem; }
.r-btn:active { transform: translateY(1px); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .r-btn:hover { transform: translateY(-1px); } }

/* ---------- Hero ---------- */
.re-hero { padding-block: clamp(2.5rem, 1.5rem + 4.5vw, 6rem); background: var(--ink); color: var(--ivory); }
.re-hero-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .re-hero-inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 4rem; } }
.kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; max-width: 34rem; margin-bottom: 1.5rem;
  color: var(--gold); font-size: 0.9375rem; font-weight: 700; line-height: 1.6;
}
.kicker::after { content: ""; flex: 1; min-width: 2rem; height: 1px; margin-inline-start: 0.5rem; background: var(--line-gold); }
.kicker [lang="en"] { font-weight: 500; }
.re-hero h1 { margin-bottom: 0.25em; color: var(--ivory); font-size: clamp(2.5rem, 1.4rem + 4.8vw, 4.25rem); line-height: 1.3; }
.re-hero h1 em { color: var(--gold); font-style: normal; }
.en-line { margin-bottom: 1.5rem; color: var(--gold); font-size: 1.125rem; font-weight: 500; }
.lead { max-width: 34rem; color: rgba(248, 245, 239, 0.9); font-size: 1.125rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2rem 0; }
@media (max-width: 520px) { .hero-actions { display: grid; } }
.hero-points { display: grid; gap: 0.5rem; max-width: 34rem; padding-top: 1rem; border-top: 1px solid var(--line-gold); }
@media (min-width: 640px) { .hero-points { grid-template-columns: repeat(3, auto); justify-content: start; gap: 0 1.5rem; } }
.hero-points li { display: inline-flex; align-items: center; gap: 0.5rem; color: rgba(248, 245, 239, 0.88); font-size: 0.875rem; font-weight: 500; }
.hero-points svg { flex: none; color: var(--gold); }

.hero-art { position: relative; justify-self: center; width: min(80%, 300px); }
@media (min-width: 900px) { .hero-art { width: min(100%, 420px); } }
.arch-art { width: 100%; height: auto; }
/* One printed listing tag hanging at the foot of the arch */
.float-card {
  position: absolute; display: flex; align-items: center; gap: 0.75rem; padding: 0.5rem 0.75rem;
  border-radius: var(--radius); font-size: 0.8125rem; line-height: 1.4; white-space: nowrap;
}
.float-card b { display: block; font-weight: 800; }
.float-card small { display: flex; align-items: center; gap: 0.375rem; font-size: 0.95em; }
.float-card em { color: var(--gold-ink); font-size: 0.85em; font-style: normal; font-weight: 700; }
.fc-ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 16px 16px 2px 2px; }
.fc-1 { bottom: 12%; inset-inline-start: -10%; border: 1px solid var(--gold); background: var(--ivory); color: var(--ink); }
.fc-1 .fc-ico { background: var(--ink); color: var(--gold); }
.fc-1 small { color: var(--slate); }
@media (max-width: 899px) { .fc-1 { inset-inline-start: -6%; } }

/* ---------- Sections and headings ---------- */
.re-section { padding-block: clamp(4rem, 2.5rem + 6vw, 7rem); }
/* Heads read from the start of the line: a numbered caption on a hairline, the title, then the note */
.r-head { display: grid; gap: 0.75rem 3rem; margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }
@media (min-width: 900px) { .r-head { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; } .r-head .eyebrow { grid-column: 1 / -1; } }
.eyebrow {
  display: flex; align-items: baseline; gap: 0.75rem; margin: 0 0 0.25rem; padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line); color: var(--gold-ink); font-size: 0.875rem; font-weight: 800;
}
.eyebrow .num { font-family: var(--display); font-size: 1.125rem; font-weight: 700; line-height: 1; }
.r-head h2, .ig-copy h2 { margin: 0; font-size: clamp(2rem, 1.5rem + 2.2vw, 2.875rem); line-height: 1.3; }
.ig-copy h2 { margin-bottom: 0.5em; }
h2 [lang="en"], h3 [lang="en"] { font-family: var(--font); font-weight: 700; color: var(--gold-ink); }
h2 [lang="en"] { display: block; margin-top: 0.25em; font-size: 0.38em; }
h3 [lang="en"] { margin-inline-start: 0.5em; font-size: 0.55em; }
.example-note {
  margin: 0; padding-inline-start: 0.75rem; border-inline-start: 2px solid var(--gold);
  color: var(--ink); font-size: 0.875rem; line-height: 1.6;
}
.example-note span { display: block; color: var(--slate); }
.small-note { color: var(--slate); font-size: 0.875rem; }

/* ---------- Filters ---------- */
.filters { display: none; }
.js .filters { display: block; }
.filter-card {
  display: grid; gap: 1rem; padding: 1.25rem 0;
  border-block: 1px solid var(--line);
}
@media (min-width: 900px) { .filter-card { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 1.5rem; } }
.seg { min-width: 0; margin: 0; padding: 0; border: 0; }
.seg legend, .f-field label { display: block; margin-bottom: 0.375rem; padding: 0; color: var(--slate); font-size: 0.875rem; font-weight: 700; line-height: 1.5; }
.f-field label span { font-weight: 500; }
.seg-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1.5px solid rgba(11, 27, 48, 0.2); border-radius: var(--radius); }
.seg label { position: relative; display: block; }
.seg label + label { border-inline-start: 1px solid var(--line); }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg span {
  display: flex; align-items: center; justify-content: center; min-height: 45px; padding: 0.25rem 0.5rem;
  color: var(--slate); font-weight: 700; transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.seg input:hover + span { color: var(--ink); }
.seg input:checked + span { background: var(--ink); color: var(--ivory); }
.seg input:focus-visible + span { outline: 3px solid var(--gold-ink); outline-offset: 2px; }
.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 900px) { .f-row { display: contents; } }
.f-field { min-width: 0; }
select, .owner-form input[type="text"], .owner-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.5rem 1rem;
  border: 1.5px solid rgba(11, 27, 48, 0.2);
  border-radius: var(--radius);
  background-color: var(--white);
  color: var(--ink);
  font-weight: 600;
}
select {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.75rem center;
  background-size: 18px;
  cursor: pointer;
}
@media (max-width: 360px) { select { padding-inline: 0.5rem 2rem; background-position: left 0.5rem center; } }
select:hover, .owner-form input[type="text"]:hover, .owner-form textarea:hover { border-color: rgba(11, 27, 48, 0.4); }
select:focus-visible, .owner-form input:focus-visible, .owner-form textarea:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.f-reset {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; justify-self: end;
  min-height: 48px; padding: 0.5rem 0.25rem; border: 0; background: transparent; color: var(--ink);
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.35em; cursor: pointer;
}
.f-reset:hover { color: var(--gold-ink); }
.f-reset svg { color: var(--gold-ink); }

.result-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; margin: 1.25rem 0 1.5rem; }
.result-count { margin: 0; font-family: var(--display); font-size: 1.125rem; font-weight: 700; }
.result-hint { display: inline-flex; align-items: flex-start; gap: 0.5rem; margin: 0; color: var(--slate); font-size: 0.875rem; line-height: 1.6; }
.result-hint svg { flex: none; margin-top: 0.125rem; color: var(--gold-ink); }

/* ---------- Listings: area first, reference opposite, price set large ---------- */
.listing-grid { display: grid; gap: 3rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.listing { display: flex; flex-direction: column; background: transparent; }
.listing:focus-within .l-media { outline: 3px solid rgba(119, 90, 35, 0.45); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .listing:hover .l-media svg { transform: scale(1.03); }
}
.listing.is-fresh { animation: rise 0.45s var(--ease) both; }
@keyframes rise { from { opacity: 0; translate: 0 10px; } }

.l-media {
  --sky: #E4ECF4;
  --sun: rgba(255, 255, 255, 0.75);
  --win: #F3DFAF;
  --acc: #C9A35E;
  --ground: #E6DBC7;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  background: var(--sky);
  color: var(--navy-2);
}
.l-media::before {
  content: ""; position: absolute; top: 11%; inset-inline-start: 15%; width: 12%; aspect-ratio: 1;
  border-radius: 50%; background: var(--sun);
}
.l-media svg { position: relative; width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform 0.6s var(--ease); }
.l-media .hl { fill: rgba(255, 255, 255, 0.1); stroke: var(--acc); stroke-width: 3; stroke-dasharray: 8 6; }
/* Each scene is two flat bands at most: sky, and sea where there is one */
.sc-sea { --sky: linear-gradient(180deg, #D2E1EE 0 56%, #A3BFD4 56% 100%); --sun: #FFF4DA; --ground: #E9DCC4; color: #1F3B63; }
.sc-dusk { --sky: #3E4766; --sun: #F7D9A0; --win: #F2C978; --ground: #0B1A2E; color: #0C1C33; }
.sc-dawn { --sky: #F3E6D8; --sun: #F3C9A1; --ground: #E8D9C3; color: #2B4468; }
.sc-sage { --sky: #E2E9DF; --sun: #FFFFFF; --acc: #946F2E; --ground: #CFD9C9; color: #2F4A5F; }
.sc-sand { --sky: #F4E7CF; --sun: #FFF8EA; --win: #FFF1D0; --acc: #1F3B63; --ground: #E5D0AA; color: #5B4630; }
.sc-gold { --sky: #EDD3A4; --sun: #FFF4D8; --ground: #DCC08E; color: #1B3254; }
.sc-lilac { --sky: #E8E5EF; --sun: #FFFFFF; --ground: #DDD5C8; color: #3A4170; }
.sc-sky { --sky: #D9E6F1; --sun: #FFFFFF; --ground: #DFD6C5; color: #24456B; }

.tag { position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; padding: 0 0.5rem; border-radius: 2px; font-size: 0.8125rem; font-weight: 800; line-height: 1.7; }
.tag-rent { background: var(--ink); color: var(--ivory); }
.tag-sale { background: var(--gold); color: var(--ink); }

.l-body { display: flex; flex: 1; flex-direction: column; gap: 0.5rem; padding-top: 1rem; }
.l-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 0.75rem;
  margin: 0; padding-bottom: 0.5rem; border-bottom: 1px solid var(--line); color: var(--slate); font-weight: 700;
}
.l-area { display: inline-flex; align-items: center; gap: 0.375rem; color: var(--gold-ink); font-family: var(--display); font-size: 1.125rem; font-weight: 700; }
.l-area svg { width: 14px; height: 14px; color: var(--gold-ink); }
.l-ref { font-size: 0.8125rem; font-weight: 500; }
.l-ref bdi { color: var(--ink); font-weight: 800; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.listing h3 { margin: 0.25rem 0 0; font-size: 1.375rem; line-height: 1.45; }
/* «غرفتين · حمامين · ١٢٠ م²» as one typeset line */
.l-specs { display: flex; flex-wrap: wrap; color: var(--slate); font-size: 0.9375rem; font-weight: 600; }
.l-specs li + li::before { content: "·"; margin-inline: 0.5rem; color: var(--gold); font-weight: 800; }
.l-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.5rem; margin: auto 0 0; padding-top: 0.75rem; }
.l-price b { font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1.3; }
.l-price span { color: var(--slate); font-size: 0.9375rem; font-weight: 600; }
.l-price em { margin-inline-start: auto; color: var(--gold-ink); font-size: 0.75rem; font-style: normal; font-weight: 800; }
.listing .r-btn-wa { width: 100%; margin-top: 0.25rem; }

.no-results {
  display: grid; justify-items: start; gap: 0.5rem; max-width: 40rem; padding: 2rem 0;
  border-block: 1px solid var(--line);
}
.nr-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 0.25rem; border-radius: 26px 26px 4px 4px; background: var(--gold-soft); color: var(--ink); }
.no-results h3 { margin: 0; font-size: 1.5rem; }
.no-results p { margin: 0 0 0.5rem; color: var(--slate); }
.nr-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- List your property ---------- */
.owners {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(4rem, 2.5rem + 6vw, 7rem);
  background: var(--navy);
  color: var(--ivory);
}
/* The arch from the agency's mark, drawn as two gold hairlines */
.owners::before, .owners::after {
  content: ""; position: absolute; z-index: -1; border: 1px solid rgba(201, 163, 94, 0.28); border-bottom: 0;
}
.owners::before { top: -90px; inset-inline-start: -140px; width: 420px; height: 620px; border-radius: 210px 210px 0 0; }
.owners::after { top: -30px; inset-inline-start: -80px; width: 300px; height: 520px; border-radius: 150px 150px 0 0; }
.owners-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .owners-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 4rem; } }
.owners .eyebrow { border-bottom-color: var(--line-gold); color: var(--gold); }
.owners h2 { color: var(--ivory); font-size: clamp(2rem, 1.5rem + 2.2vw, 2.875rem); }
.owners h2 [lang="en"] { color: var(--gold); }
.owners-copy > p { max-width: 34rem; color: rgba(248, 245, 239, 0.9); font-size: 1.0625rem; }
.owner-steps { display: grid; margin-top: 2rem; counter-reset: step; border-top: 1px solid var(--line-gold); }
.owner-steps li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding-block: 1rem; border-bottom: 1px solid var(--line-gold); }
.owner-steps li::before {
  counter-increment: step; content: counter(step, arabic-indic);
  color: var(--gold); font-family: var(--display); font-size: 1.75rem; font-weight: 700; line-height: 1;
}
.owner-steps b { display: block; font-family: var(--display); font-size: 1.125rem; font-weight: 700; line-height: 1.5; }
.owner-steps span { display: block; color: rgba(248, 245, 239, 0.84); font-size: 0.9375rem; line-height: 1.65; }

.owner-form { padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); border-top: 4px solid var(--gold); border-radius: var(--radius); background: var(--ivory); color: var(--ink); }
.owner-form h3 { margin-bottom: 0.125rem; font-size: 1.5rem; }
.form-sub { margin-bottom: 1rem; color: var(--slate); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 0.75rem; margin-bottom: 1.25rem; }
.form-grid .full { grid-column: 1 / -1; }
.owner-form textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.owner-form ::placeholder { color: #66748A; opacity: 1; }
.owner-form .r-btn { width: 100%; }
.form-note { margin: 0.75rem 0 0; color: var(--slate); font-size: 0.875rem; line-height: 1.6; }

/* ---------- Instagram ---------- */
.ig-layout { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .ig-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; } }
.ig-copy > p { max-width: 32rem; color: var(--slate); }
.ig-handle { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; margin: 1.25rem 0; }
.ig-handle svg { color: var(--gold-ink); }
.ig-handle bdi { color: var(--ink); font-weight: 800; }
.ig-handle span { color: var(--slate); font-size: 0.8125rem; font-weight: 700; }
.ig-card { width: 100%; max-width: 420px; justify-self: center; padding: 1.25rem; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.ig-top { display: flex; align-items: center; gap: 1rem; }
.ig-avatar { display: grid; place-items: center; flex: none; width: 72px; height: 72px; border: 1.5px solid var(--gold); border-radius: 50%; }
.ig-avatar span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: var(--ink); color: var(--gold); }
.ig-avatar svg { width: 40px; height: 40px; }
.ig-id { min-width: 0; }
.ig-id b { display: block; font-size: 1rem; font-weight: 800; line-height: 1.4; }
.ig-id span { display: block; color: var(--slate); font-size: 0.875rem; line-height: 1.5; }
.ig-bio { margin: 0.75rem 0; font-size: 0.9375rem; line-height: 1.65; }
.ig-follow {
  display: flex; align-items: center; justify-content: center; min-height: 44px; margin-bottom: 1rem;
  border-radius: var(--radius); background: var(--ink); color: var(--ivory); font-weight: 700; text-decoration: none;
}
.ig-follow:hover { background: var(--navy-2); color: var(--ivory); }
.ig-highlights { display: flex; justify-content: space-around; gap: 0.5rem; margin-bottom: 1rem; }
.ig-highlights li { display: grid; justify-items: center; gap: 0.25rem; color: var(--slate); font-size: 0.75rem; font-weight: 700; }
.hl-ring { display: grid; place-items: center; width: 54px; height: 54px; border: 1.5px solid var(--gold); border-radius: 50%; background: var(--ivory); color: var(--ink); }
.hl-ring svg { width: 22px; height: 22px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.tile {
  --win: #F3DFAF; --acc: #C9A35E; --ground: transparent;
  position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; padding: 0.5rem;
  text-align: center;
}
.tile > svg { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: auto; }
.tile > svg.sq { inset: 0; height: 100%; }
.tile-label {
  position: absolute; top: 0.375rem; inset-inline-start: 0.375rem; z-index: 1; max-width: calc(100% - 0.75rem);
  padding: 0 0.375rem; overflow: hidden; border-radius: 2px; background: var(--white); color: var(--ink);
  font-size: 0.6875rem; font-weight: 700; line-height: 1.6; white-space: nowrap; text-overflow: ellipsis;
}
.tile b { position: relative; font-family: var(--display); font-size: clamp(0.8125rem, 0.7rem + 0.5vw, 1.0625rem); font-weight: 700; line-height: 1.45; }
.t-new { background: var(--navy-2); color: var(--gold); --win: rgba(11, 27, 48, 0.85); --acc: #F8F5EF; }
.t-tip { background: var(--gold-soft); color: var(--ink); }
.t-reel { background: #3E4766; color: #0C1C33; --win: #F2C978; }
.play { position: relative; display: grid; place-items: center; width: 40%; aspect-ratio: 1; border-radius: 50%; background: var(--white); color: var(--ink); margin-bottom: 18%; }
.play svg { width: 45%; height: 45%; margin-inline-start: -6%; }
.t-area { background: #E9E2D4; }
.t-key { align-content: center; gap: 0.25rem; background: var(--gold); color: var(--ink); }
.t-key > svg { position: relative; inset: auto; width: 42%; height: auto; }
.t-key span { font-size: 0.75rem; font-weight: 800; }
.t-q { background: var(--ink); color: var(--gold); }
.t-sale { background: #F4E7CF; color: #5B4630; --win: #FFF1D0; --acc: #1F3B63; }
.t-plan { background: var(--white); color: var(--navy-2); box-shadow: inset 0 0 0 1px var(--line); }
.t-view { background: #F3E6CC; }

/* ---------- Visit: hours and location ---------- */
.re-section.visit { background: var(--stone); }
.visit-grid { display: grid; gap: 3rem; }
@media (min-width: 860px) { .visit-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; align-items: start; } }
.visit-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; font-size: 1.5rem; }
.visit-card h3 svg { color: var(--gold-ink); }
.open-pill { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0 0 0.75rem; font-size: 0.875rem; font-weight: 800; line-height: 1.6; }
.open-pill::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-pill.is-open { color: #1E6B45; }
.open-pill.is-closed { color: #9A3B2E; }
.open-pill.is-appt { color: var(--gold-ink); }
.hours { border-top: 2px solid var(--ink); }
.hours div { display: flex; justify-content: space-between; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; font-weight: 700; text-align: end; }
.hours .is-today dt { color: var(--gold-ink); }
.hours .is-today dt::after { content: "· اليوم"; margin-inline-start: 0.5rem; font-size: 0.8125rem; font-weight: 700; }
.visit-card .small-note { margin: 1rem 0; }
.map { position: relative; overflow: hidden; aspect-ratio: 16 / 9; margin-bottom: 1rem; border-radius: var(--radius); }
.map svg { width: 100%; height: 100%; }
.map-tag { position: absolute; top: 0.75rem; inset-inline-start: 0.75rem; padding: 0.125rem 0.5rem; border-radius: 2px; background: var(--white); color: var(--ink); font-size: 0.75rem; font-weight: 700; }
.place { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem 1rem; }
.place-name { margin: 0; font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.4; }
.place-sub { margin: 0; color: var(--slate); font-size: 0.9375rem; }
.place .open-pill { margin: 0; }
.place-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; border-block: 1px solid var(--line); }
.place-actions li + li { border-inline-start: 1px solid var(--line); }
.place-actions a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem; min-height: 64px; padding: 0.5rem 0.25rem;
  color: var(--ink); font-size: 0.875rem; font-weight: 700; line-height: 1.3; text-decoration: none;
  transition: background-color 0.25s var(--ease);
}
.place-actions a:hover { background: var(--ivory); }
.place-actions svg { color: var(--gold-ink); }
.visit-card .place-actions + .small-note { margin-bottom: 0; }

/* ---------- Looking for something else ---------- */
.cta-band { padding-block: clamp(3rem, 2.25rem + 3.5vw, 5rem) 0; }
.cta-card {
  position: relative; display: grid; gap: 1.5rem; align-items: center; overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem); border-radius: var(--radius);
  background: var(--gold); color: var(--ink);
}
.cta-card::after { content: ""; position: absolute; inset-inline-end: -60px; bottom: -120px; width: 240px; height: 300px; border: 1px solid rgba(11, 27, 48, 0.22); border-bottom: 0; border-radius: 120px 120px 0 0; pointer-events: none; }
@media (min-width: 820px) { .cta-card { grid-template-columns: minmax(0, 1fr) auto; gap: 3rem; } }
.cta-card h2 { margin-bottom: 0.25em; font-size: clamp(1.75rem, 1.35rem + 2vw, 2.5rem); }
.cta-card h2 [lang="en"] { color: var(--ink); opacity: 0.8; }
.cta-card p { max-width: 36rem; margin: 0; font-size: 1.0625rem; }
.cta-card .r-btn { position: relative; z-index: 1; }

/* ---------- Demo note (Khalesni's note, same as the café sample) ---------- */
.demo-note { padding-block: clamp(2.5rem, 2rem + 3vw, 4rem); }
.demo-card {
  display: flex; align-items: flex-start; gap: 1rem; max-width: 52rem; margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2rem);
  border: 2px dashed rgba(6, 50, 58, 0.25); border-radius: 16px; background: #fff; color: var(--k-ink);
}
.demo-card img { flex: none; width: 44px; height: 44px; }
.demo-card h2 { font-family: var(--font); font-size: 1.25rem; color: var(--k-ink); }
.demo-card h2 [lang="en"] { display: block; margin-top: 0.25em; color: #46636A; font-size: 0.75em; font-weight: 600; }
.demo-card p { color: #46636A; }
.demo-en { font-size: 0.9375rem; }
.k-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.5rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 999px; background: var(--k-teal); color: #fff;
  font: inherit; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; cursor: pointer;
}
.k-btn:hover { background: #0A4F57; color: #fff; }
.k-btn .k-nw { white-space: nowrap; }
.k-btn-outline { border-color: rgba(14, 102, 112, 0.45); background: transparent; color: var(--k-teal); }
.k-btn-outline:hover { border-color: var(--k-teal); background: #EEF5F5; color: var(--k-ink); }
.demo-card :focus-visible { outline-color: var(--k-ink); }
@media (max-width: 520px) { .demo-card { flex-direction: column; } }

/* ---------- Footer ---------- */
.re-footer { padding-block: 2rem; background: var(--ink); color: rgba(248, 245, 239, 0.86); font-size: 0.875rem; }
.footer-row { display: grid; gap: 1rem; }
@media (min-width: 820px) { .footer-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.f-brand { display: flex; align-items: flex-start; gap: 0.75rem; }
.f-brand .logo-mark { width: 40px; height: 40px; border-radius: 20px 20px 4px 4px; }
.f-brand .logo-mark svg { width: 30px; height: 30px; }
.f-brand p { margin: 0; }
.f-brand p > span { display: block; margin-top: 0.25rem; opacity: 0.9; }
.re-footer a { color: var(--gold); }
.credit { margin: 0; }
.credit a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0.25rem 1rem;
  border: 1px solid rgba(201, 163, 94, 0.45); border-radius: var(--radius); font-weight: 700; text-decoration: none;
}
.credit a:hover { background: rgba(201, 163, 94, 0.12); }
@media (max-width: 819px) { .re-footer { padding-bottom: 6.25rem; } }

/* ---------- Sticky WhatsApp bar on phones (realestate.js hides it while another WhatsApp button is on screen) ---------- */
.wa-bar {
  position: fixed; z-index: 50; inset-inline: 16px; bottom: max(16px, env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 54px;
  border-radius: var(--radius); background: var(--gold); color: var(--ink); font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 24px -8px rgba(11, 27, 48, 0.55);
  transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0s;
}
.wa-bar.is-hidden { transform: translateY(calc(100% + 24px)); opacity: 0; visibility: hidden; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease), visibility 0s 0.35s; }
@media (min-width: 820px) { .wa-bar { display: none; } }

/* ---------- Scroll reveal (only when ../script.js runs and motion is allowed): a short rise, once ---------- */
.reveal-ready [data-reveal] { transition: opacity 0.6s var(--ease) var(--rd, 0s), translate 0.6s var(--ease) var(--rd, 0s); }
.reveal-ready [data-reveal]:not(.is-in) { opacity: 0; translate: 0 16px; }
[data-reveal="1"] { --rd: 0.08s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
}
@media print {
  .reveal-ready [data-reveal] { opacity: 1 !important; translate: none !important; }
  .wa-bar, .filters { display: none !important; }
  .re-header { position: static; }
}
