/* ==========================================================================
   Union Real Estate Company (URC) — site stylesheet
   One file, no framework. Sections:
   1. Tokens   2. Base   3. Layout   4. Header & nav   5. Heroes
   6. Components   7. Property pages   8. Forms   9. Lightbox
   10. Footer   11. Utilities & motion   12. Arabic / RTL
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --green: #44a767;          /* brand green, sampled from the URC logo */
  --green-ink: #2b7347;      /* AA-contrast green for text/links on light bg */
  --green-soft: #e9f4ed;
  --ink: #242424;            /* headings, primary text */
  --ink-2: #3d3d3d;          /* body text */
  --muted: #666666;          /* secondary text */
  --line: #e7e7e5;           /* borders & dividers */
  --sand: #f7f7f5;           /* secondary background */
  --stone: #f1f2f0;          /* alternative section background (heroes) */
  --paper: #ffffff;
  --dark: #2a2d2c;           /* charcoal: selected accent sections & footer */
  --dark-2: #343837;
  --on-dark: #eceeed;
  --on-dark-muted: #b9bfbc;

  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-ar: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(36, 36, 36, .05), 0 8px 24px rgba(36, 36, 36, .07);
  --shadow-soft: 0 1px 2px rgba(36, 36, 36, .04), 0 2px 8px rgba(36, 36, 36, .04);
  --container: 1200px;
  --gutter: 16px;
  --header-h: 72px;
  --section: clamp(56px, 8vw, 104px);
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 80px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.2; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--split { max-width: none; display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: end; justify-content: space-between; }
.section-head--split > div { max-width: 680px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--green-ink);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--green); }
.section--dark .eyebrow { color: #8fd3a8; }
.lead { font-size: 1.125rem; color: var(--muted); }
.section--dark .lead { color: var(--on-dark-muted); }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--wide-left { grid-template-columns: 1.15fr .85fr; } }
.prose p, .prose li { max-width: 68ch; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }

/* 4. Header & navigation ---------------------------------------------------- */
.topbar { background: var(--sand); color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; gap: 8px 24px; align-items: center; justify-content: space-between; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: var(--ink); text-decoration: none; }
.topbar a:hover { color: var(--green-ink); text-decoration: underline; }
.topbar .icon { color: var(--green-ink); }
.topbar__webmail {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-weight: 500; transition: border-color .2s, background .2s, color .2s;
}
.topbar__webmail .icon { transition: transform .25s ease; }
.topbar a.topbar__webmail:hover { text-decoration: none; border-color: var(--green); background: var(--green-soft); color: var(--green-ink); }
.topbar__webmail:hover .icon { transform: translateY(-2px); }
.nav-webmail {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px;
  border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; text-decoration: none;
  transition: border-color .2s, color .2s, background .2s;
}
.nav-webmail .icon { color: var(--green-ink); }
.nav-webmail:hover { border-color: var(--green); background: var(--green-soft); color: var(--green-ink); }
.topbar__list { display: flex; flex-wrap: wrap; gap: 4px 20px; list-style: none; margin: 0; padding: 0; }
.topbar__list li { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 899px) { .topbar { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent; transition: box-shadow .25s, border-color .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(36, 36, 36, .05); }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header.is-scrolled { background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }
}
.site-header .brand img { transition: transform .25s ease; }
.site-header .brand:hover img { transform: scale(1.02); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 40px; width: auto; }
@media (min-width: 768px) { .brand img { height: 46px; } }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer;
}
.nav-toggle .icon { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-menu { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.site-nav { display: none; }
.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list a, .nav-list button {
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink); text-decoration: none;
  background: none; border: 0; cursor: pointer;
}
.nav-list a[aria-current="page"], .nav-list .is-current > button { color: var(--green-ink); }
.submenu { list-style: none; margin: 0; padding: 0; }
.nav-cta, .header-actions .nav-cta { display: none; }

/* Mobile nav panel */
@media (max-width: 1099px) {
  .nav-open .site-nav {
    display: block; position: fixed; inset: var(--header-h) 0 0 0; background: #fff;
    overflow-y: auto; padding: 8px var(--gutter) 32px; border-top: 1px solid var(--line);
  }
  .nav-open { overflow: hidden; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li > a, .nav-list > li > button {
    display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 1.05rem; text-align: left;
  }
  .submenu { display: none; padding: 0 0 12px 12px; }
  .has-sub.is-open > .submenu { display: block; }
  .submenu a { display: block; padding: 9px 4px; color: var(--ink-2); }
  .has-sub.is-open > button .chev { transform: rotate(180deg); }
  .site-nav .nav-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
  .site-nav .nav-cta > * { flex: 1 1 200px; }
  .nav-open .site-nav { animation: nav-in .28s ease both; }
  .submenu { animation: fade-up .25s ease both; }
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Desktop nav */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .nav-list { display: flex; align-items: center; gap: 4px; }
  .nav-list > li { position: relative; }
  .nav-list > li > a, .nav-list > li > button {
    display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--radius);
  }
  .nav-list > li > a:hover, .nav-list > li > button:hover { color: var(--green-ink); background: var(--green-soft); }
  .nav-list > li > a[aria-current="page"]::after {
    content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--green);
  }
  .submenu {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .has-sub.is-open > .submenu, .has-sub:hover > .submenu, .has-sub:focus-within > .submenu { opacity: 1; visibility: visible; transform: none; }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px; } /* hover bridge */
  .submenu a { display: block; padding: 9px 12px; border-radius: var(--radius); font-size: .92rem; }
  .submenu a:hover, .submenu a[aria-current="page"] { background: var(--green-soft); color: var(--green-ink); }
  .submenu .submenu-all { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 6px; }
  .header-actions .nav-cta { display: inline-flex; }
}
.chev { width: 14px; height: 14px; transition: transform .2s; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* 5. Heroes ---------------------------------------------------------------- */
.hero { background: var(--sand); color: var(--ink-2); position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.hero::before { /* subtle brand-mark texture, no gradients-as-decoration */
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px;
  background: url("../images/fav-icon.png") center / contain no-repeat; opacity: .05; pointer-events: none;
}
.hero .container { display: grid; gap: 40px; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(48px, 7vw, 96px); position: relative; }
@media (min-width: 1000px) { .hero .container { grid-template-columns: 1fr 1.05fr; align-items: center; gap: 56px; } }
.hero h1 { color: var(--ink); }
.hero h1 span { color: var(--green-ink); }
.hero__lead { font-size: 1.125rem; color: var(--muted); max-width: 54ch; }
.hero__ar { font-family: var(--font-ar); font-size: 1.05rem; color: var(--muted); margin-bottom: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Homepage hero slider — five complexes. Without JS only the first slide shows. */
.hero-slider {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--stone);
  box-shadow: var(--shadow); aspect-ratio: 4 / 4.9; isolation: isolate; touch-action: pan-y;
}
@media (min-width: 640px) and (max-width: 999px) { .hero-slider { aspect-ratio: 16 / 11; } }
@media (min-width: 1000px) { .hero-slider { aspect-ratio: 1 / 1.08; } }
.hero-slider:focus-visible { outline-offset: 4px; }
.hero-slider__track { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; transition: opacity .9s ease, visibility 0s; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after { /* readability gradient, bottom only */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(22, 24, 23, .82) 0%, rgba(22, 24, 23, .45) 38%, rgba(22, 24, 23, 0) 66%);
}
.hero-slide__caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 24px 24px 76px; color: #fff; }
@media (min-width: 640px) { .hero-slide__caption { padding: 32px 32px 80px; } }
.hero-slide__caption > * { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.hero-slide.is-active .hero-slide__caption > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__caption > :nth-child(1) { transition-delay: .25s; }
.hero-slide.is-active .hero-slide__caption > :nth-child(2) { transition-delay: .35s; }
.hero-slide.is-active .hero-slide__caption > :nth-child(3) { transition-delay: .45s; }
.hero-slide.is-active .hero-slide__caption > :nth-child(4) { transition-delay: .55s; }
.hero-slide__loc { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #cdebd8; margin-bottom: 6px; }
.hero-slide__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: #fff; margin: 0 0 6px; }
.hero-slide__caption p { color: rgba(255, 255, 255, .9); font-size: .96rem; max-width: 44ch; margin: 0 0 16px; }
.hero-slider__controls { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 8px; }
@media (min-width: 640px) { .hero-slider__controls { left: 24px; right: 24px; bottom: 20px; } }
.hero-slider__dots { display: flex; align-items: center; gap: 2px; margin-right: auto; }
.hero-slider__dot { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hero-slider__dot::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); transition: width .3s ease, background .3s ease; }
.hero-slider__dot:hover::before { background: #fff; }
.hero-slider__dot[aria-current="true"]::before { width: 22px; background: #fff; }
.hero-slider__btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(22, 24, 23, .28);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .2s, color .2s, transform .2s, border-color .2s;
}
.hero-slider__btn:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero-slider__btn:active { transform: scale(.94); }
.hero-slider__btn .icon { width: 18px; height: 18px; }
.hero-slider__btn .icon-play { display: none; }
.hero-slider.is-stopped .hero-slider__btn .icon-pause { display: none; }
.hero-slider.is-stopped .hero-slider__btn .icon-play { display: block; }
.hero-slider__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(255, 255, 255, .18); }
.hero-slider__progress span { display: block; height: 100%; background: var(--green); transform-origin: left center; transform: scaleX(0); }
.hero-slider__progress span.is-running { animation: slider-progress var(--slide-ms, 6000ms) linear forwards; }
.hero-slider.is-paused .hero-slider__progress span { animation-play-state: paused; }
.hero-slider.is-stopped .hero-slider__progress { display: none; }
@keyframes slider-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.page-hero { background: var(--stone); color: var(--ink-2); position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); position: relative; }
.page-hero h1 { color: var(--ink); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 62ch; font-size: 1.08rem; margin: 0; }
.page-hero--image .container { display: grid; gap: 32px; }
@media (min-width: 960px) { .page-hero--image .container { grid-template-columns: 1.2fr .8fr; align-items: center; } }
.page-hero__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; max-width: 520px; background: var(--sand); box-shadow: var(--shadow); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .88rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--green-ink); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; color: var(--ink); }

/* 6. Components ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border-radius: var(--radius); border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--green-ink); color: #fff; }
.btn--primary:hover { background: var(--ink); color: #fff; }
.section--dark .btn--primary { background: var(--green); color: #14241a; }
.section--dark .btn--primary:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.section--dark .btn--ghost { color: #fff; }
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .9rem; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--green-soft); color: var(--green-ink); }
/* Button feedback: lift on hover, press on active, arrow nudge, loading + disabled states */
.btn { transition: background .2s, color .2s, border-color .2s, transform .18s ease, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(36, 36, 36, .12); }
.btn--ghost:hover { box-shadow: none; }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.btn > .icon:last-child { transition: transform .2s ease; }
.btn:hover > .icon:last-child:not(:first-child) { transform: translateX(3px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .65; cursor: not-allowed; transform: none; box-shadow: none; }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .icon { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* Facts strip — only verified facts, no counters */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.fact { background: #fff; padding: 22px 20px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; color: var(--ink); line-height: 1.1; margin-bottom: 6px; }
.fact span { font-size: .9rem; color: var(--muted); }
.hero + .facts-wrap { margin-top: -1px; }
.facts-wrap { background: var(--sand); padding: 28px 0; }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.card--pad { padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.icon-badge { width: 48px; height: 48px; border-radius: 10px; background: var(--green-soft); color: var(--green-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.icon-badge .icon { width: 24px; height: 24px; }
/* Icon micro-interactions */
.icon-badge { transition: transform .25s ease, background .25s ease, color .25s ease; }
.card:hover .icon-badge, .contact-list li:hover .icon-badge { transform: translateY(-2px) rotate(-4deg); background: var(--green-ink); color: #fff; }
.contact-list li:hover .icon-badge .icon, .card:hover .icon-badge .icon { transition: transform .25s ease; }
.footer-contact li .icon, .check-list .icon { transition: transform .25s ease; }
.footer-contact li:hover .icon, .check-list li:hover .icon { transform: scale(1.15); }
.section--dark .card { background: var(--dark-2); border-color: #454a48; }
.section--dark .card p { color: var(--on-dark-muted); }
.section--dark .icon-badge { background: #3a4540; color: #8fd3a8; }

/* Property card */
.property-card { position: relative; box-shadow: var(--shadow-soft); transition: box-shadow .25s, transform .25s; }
.property-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.property-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.property-card:hover .property-card__media img { transform: scale(1.03); }
.property-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.property-card__loc { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
.property-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.55rem; margin-bottom: 8px; }
.property-card h3 a { color: inherit; text-decoration: none; }
.property-card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.property-card p { font-size: .95rem; }
.property-card__specs { list-style: none; padding: 14px 0 0; margin: auto 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.property-card__specs li { display: inline-flex; align-items: center; gap: 6px; }
.property-card__specs .icon { color: var(--green-ink); transition: transform .25s ease; }
.property-card:hover .property-card__specs .icon { transform: scale(1.15); }
.property-card:hover .link-arrow .icon { transform: translateX(3px); }
.property-card .link-arrow { margin-top: 14px; position: relative; z-index: 1; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--green-soft); color: var(--green-ink); }
.tag--neutral { background: var(--sand); color: var(--ink-2); }
.tag--amber { background: #fdf3dc; color: #7a5300; }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--green-ink); margin-top: .2em; }
.check-list--cols { grid-template-columns: 1fr; }
@media (min-width: 640px) { .check-list--cols { grid-template-columns: repeat(2, 1fr); gap: 10px 24px; } }
.section--dark .check-list .icon { color: #8fd3a8; }

/* Media frame */
.frame { border-radius: var(--radius-lg); overflow: hidden; background: var(--sand); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.frame-stack .frame:first-child { grid-column: span 2; aspect-ratio: 16 / 10; }
.frame-stack .frame { aspect-ratio: 4 / 3; }

/* Callouts & notices */
.notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius-lg); background: var(--green-soft); color: var(--ink); border: 1px solid #cfe6d7; }
.notice .icon { color: var(--green-ink); width: 22px; height: 22px; margin-top: 2px; }
.notice p { margin: 0; }
.notice p + p { margin-top: .4em; }
.notice--amber { background: #fdf7e8; border-color: #f0dfb4; }
.notice--amber .icon { color: #8a5d00; }

.cta-band { background: var(--green-ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 48px); display: grid; gap: 20px; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: 8px; }
.cta-band p { margin: 0; color: #d9efe1; }
.cta-band .btn--primary { background: #fff; color: var(--ink); }
.cta-band .btn--primary:hover { background: var(--ink); color: #fff; }
.cta-band .btn--ghost { color: #fff; }
.cta-band .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Contact blocks */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon-badge { margin: 0; width: 44px; height: 44px; }
.contact-list strong { display: block; color: var(--ink); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { text-decoration: underline; }
.phone-list { display: flex; flex-wrap: wrap; gap: 2px 14px; }

/* Data tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.data-table caption { text-align: left; padding: 16px 18px 0; font-weight: 600; color: var(--ink); }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--sand); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table td .btn { white-space: nowrap; }

/* Stacked table for small screens (vacancy table) */
@media (max-width: 719px) {
  .table-stack { min-width: 0; }
  .table-stack thead { display: none; }
  .table-stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack th, .table-stack td { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border: 0; text-align: right; }
  .table-stack th { font-size: 1.1rem; text-align: left; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--muted); text-align: left; }
  .table-stack td:last-child { padding-top: 12px; }
  .table-stack td:last-child::before { content: none; }
  .table-stack td:last-child .btn { width: 100%; }
}

/* Steps (share transfer) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding: 20px 20px 20px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 18px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.steps h3 { margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* 7. Property detail pages -------------------------------------------------- */
.property-nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h); z-index: 50; }
.property-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.property-nav ul::-webkit-scrollbar { display: none; }
.property-nav a { display: block; padding: 14px 14px; white-space: nowrap; font-weight: 500; font-size: .93rem; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; }
.property-nav a:hover, .property-nav a.is-active { color: var(--green-ink); border-bottom-color: var(--green); }
.key-specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .key-specs { grid-template-columns: repeat(4, 1fr); } }
.key-specs li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.key-specs strong { display: block; color: var(--ink); font-size: 1.05rem; }
.key-specs span { font-size: .82rem; color: var(--muted); }

.spec-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-table { width: 100%; border-collapse: collapse; }
.feature-table th, .feature-table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; font-size: .95rem; }
.feature-table td { text-align: right; font-weight: 600; color: var(--ink); }
.feature-table tr:last-child > * { border-bottom: 0; }

.facility-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.facility-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: .95rem; transition: border-color .2s, transform .2s; }
.facility-list li:hover { border-color: #b9dcc6; transform: translateY(-1px); }
.facility-list .icon { color: var(--green-ink); transition: transform .25s ease; }
.facility-list li:hover .icon { transform: scale(1.15); }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--sand); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .2s; }
.gallery a:hover img { transform: scale(1.04); }
.gallery a:focus-visible { outline-offset: 3px; }
.gallery-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.gallery-filter button { font: inherit; font-size: .9rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; }
.gallery-filter button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.gallery a[hidden] { display: none; }

.property-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.property-pager a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; background: #fff; }
.property-pager a:hover { border-color: var(--green); }
.property-pager span { display: block; font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.property-pager strong { font-family: var(--font-display); font-weight: 400; font-size: 1.3rem; color: var(--ink); }
.property-pager .next { text-align: right; }

.source-note { font-size: .85rem; color: var(--muted); margin-top: 16px; }

/* 8. Forms ---------------------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 600; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field .req { color: #b42318; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1.5px solid #d0d0cc;
  border-radius: var(--radius); padding: 12px 14px; min-height: 48px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-ink); box-shadow: 0 0 0 3px rgba(68, 167, 103, .25); }
.field [aria-invalid="true"] { border-color: #b42318; }
.field-error { display: none; color: #b42318; font-size: .85rem; margin-top: 6px; }
.field [aria-invalid="true"] ~ .field-error { display: block; }
.form-hint { font-size: .88rem; color: var(--muted); margin: 0; }
.form-status[hidden] { display: none; }
.form-status { animation: fade-up .35s ease both; }
.form-status:focus { outline: none; }
.form-status--success { border-color: #b9dcc6; }
.notice--error { background: #fdf0ef; border-color: #f2c9c5; }
.notice--error .icon { color: #b42318; }
.field-hint { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.field-error { animation: fade-up .25s ease both; }
.field input:not([type="checkbox"]):hover, .field select:hover, .field textarea:hover { border-color: #b9b9b5; }
.field.is-valid input:not([type="checkbox"]), .field.is-valid textarea { border-color: #9fcdb0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; }
.field--check input { width: 20px; height: 20px; min-height: 0; margin: 3px 0 0; padding: 0; accent-color: var(--green-ink); cursor: pointer; }
.field--check label { font-weight: 400; font-size: .93rem; color: var(--ink-2); margin: 0; cursor: pointer; }
.field--check .field-error { grid-column: 2; margin-top: 0; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form[aria-busy="true"] { cursor: progress; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 36px); }

/* 9. Lightbox --------------------------------------------------------------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(24, 26, 25, .94); display: none; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox.is-open { display: flex; }
.lightbox figure { margin: 0; max-width: min(1000px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; border-radius: var(--radius); background: #222; }
.lightbox figcaption { color: #dfe7e2; font-size: .92rem; margin-top: 12px; text-align: center; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s;
}
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox button .icon { width: 22px; height: 22px; }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; transform: none; } .lightbox .lb-prev { left: calc(50% - 60px); } .lightbox .lb-next { right: calc(50% - 60px); } }

/* 10. Footer ---------------------------------------------------------------- */
.site-footer { background: var(--dark); color: var(--on-dark-muted); font-size: .95rem; }
.site-footer .container { padding-top: clamp(48px, 6vw, 72px); }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr .8fr .9fr 1.2fr; gap: 40px; } }
.footer-brand img { height: 46px; width: auto; margin-bottom: 18px; }
.footer-ar { font-family: var(--font-ar); color: var(--on-dark); margin-bottom: 8px; }
.site-footer h2 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #fff; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { color: #8fd3a8; margin-top: .25em; }
.footer-bottom { margin-top: 48px; padding: 20px 0 28px; border-top: 1px solid #434846; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .85rem; }
.footer-bottom p { margin: 0; }

.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  background: var(--ink); color: #fff; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-ink); }
.to-top.is-visible:hover { transform: translateY(-2px); }

/* 11. Utilities & motion ----------------------------------------------------- */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: 24px; } .mt-6 { margin-top: 40px; } .mb-4 { margin-bottom: 24px; }
.text-center { text-align: center; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 40px 0; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* 12. Arabic / RTL ----------------------------------------------------------- */
[lang="ar"] { font-family: var(--font-ar); }
.ar-block { direction: rtl; text-align: right; font-family: var(--font-ar); font-size: 1.08rem; line-height: 1.95; color: var(--ink-2); }
.ar-block h2, .ar-block h3 { font-family: var(--font-ar); font-weight: 700; }
.ar-block ul { padding-left: 0; padding-right: 1.2em; }
.ar-block .ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

@media print {
  .site-header, .topbar, .site-footer, .to-top, .property-nav, .nav-toggle, .hero-slider__controls, .hero-slider__progress { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
  .page-hero h1, .hero h1 { color: #000; }
}
