/* RootedInLebanon. Warm, earthy, calm.
   Radius rule: interactive controls are pills, panels and cards are 14px, inputs are 10px. */

:root {
  /* Aged parchment, old stone and tan: warm, rustic and a little vintage. One theme only; never dark. */
  --bg: #e6d6bb;
  --surface: #f0e4ce;
  --surface-2: #d8c3a0;
  --ink: #2b2016;
  --muted: #4e3d2b;
  --line: #c9b18a;
  --cedar: #2f5d3f;
  --cedar-ink: #fbf6ee;
  --cedar-soft: #d2dbc0;
  --sand: #d6b987;
  --red: #9b382f;      /* Lebanese flag red, muted and deep enough for small text. Accents only. */
  --red-soft: #ecd2c3;
  --red-ink: #fbf3ef;
  --map-fill: #e4d2b2;
  --band: #d5dcc2;
  --band-ink: #22301f;
  --band-muted: #4f5c49;
  --tbd-bg: #fbe5a8;
  --tbd-ink: #4f3b00;
  --focus: #a8433a;
  --shadow: 0 16px 40px rgb(92 60 24 / .2);
  --r-card: 14px;
  --r-input: 10px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Noto Naskh Arabic", serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
/* Components below set display: grid/flex, which would otherwise override the hidden attribute. */
[hidden] { display: none !important; }
/* No scroll-behavior: smooth here. Lenis handles smooth scrolling. */
html { scroll-padding-top: 76px; }
section[id] { scroll-margin-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 {
  font: 600 clamp(2rem, 1.4rem + 2.4vw, 3.1rem)/1.1 var(--serif);
  letter-spacing: -.01em;
}
h3 { font: 600 1.15rem/1.3 var(--sans); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap-narrow { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.08rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 14px; z-index: 100; border-radius: 999px; }
.skip:focus { left: 12px; }

mark.tbd {
  background: var(--tbd-bg);
  color: var(--tbd-ink);
  padding: 0 .35em;
  border-radius: 4px;
  font-size: .85em;
  font-weight: 600;
  white-space: nowrap;
  box-decoration-break: clone;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1rem/1 var(--sans); text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn i { font-size: 1.25em; }
.btn:active { transform: scale(.98) translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cedar); color: var(--cedar-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--cedar) 86%, var(--ink)); }
.btn-outline { border-color: var(--cedar); color: var(--cedar); background: transparent; }
.btn-outline:hover { background: var(--cedar-soft); }
.btn-light { background: #f6f3ea; color: #1b2a22; }
.btn-light:hover { background: #fff; }
.btn-ghost { color: #fff; border-color: rgb(255 255 255 / .7); background: rgb(10 18 14 / .28); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgb(10 18 14 / .45); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 1.05rem/1 var(--sans); letter-spacing: -.01em; }
.logo i { font-size: 1.5rem; color: var(--cedar); }
.logo b { color: var(--red); font-weight: 600; }
.nav-links { display: none; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
@media (min-width: 960px) { .nav-links { display: flex; } }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100dvh - 64px);
  padding: clamp(56px, 10vh, 96px) 0 0;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  display: flex; flex-direction: column;
}
.hero-media, .hero-video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media {
  background-image:
    linear-gradient(180deg, rgb(14 22 18 / .72) 0%, rgb(14 22 18 / .35) 45%, rgb(14 22 18 / .55) 100%),
    url("assets/hero.jpg"),
    radial-gradient(90% 70% at 85% 100%, #e7a961 0%, rgb(231 169 97 / 0) 60%),
    linear-gradient(180deg, #17241f 0%, #2f3a30 38%, #6d5235 72%, #b77a45 100%);
  background-size: cover;
  background-position: center;
}
.hero-arcs {
  order: 2;
  width: 100%; max-width: 1240px; height: auto; max-height: 40vh;
  margin: auto auto 0; padding: 0 12px;
  pointer-events: none;
}
.hero-grid { order: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: center; }

/* 3D globe slot. Only shown when the globe will load (class set by app.js). */
.globe-slot { display: none; }
.globe-on .hero-arcs { display: none; }
.globe-on .hero { padding-bottom: 40px; justify-content: center; }
.globe-on .globe-slot {
  display: block; position: relative;
  width: 100%; max-width: 440px; aspect-ratio: 1; justify-self: center;
}
@media (min-width: 900px) {
  .globe-on .hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); flex: 1; }
  /* Let the globe run a little past the column so it reads as the centerpiece, but still fit the screen height. */
  .globe-on .globe-slot { width: min(calc(100% + 90px), 80dvh); max-width: none; justify-self: end; margin-right: -60px; }
}

/* City names on the globe */
.globe-label { position: relative; width: 0; height: 0; pointer-events: none; transition: opacity .4s var(--ease); }
.globe-label.behind { opacity: 0; }
.gl-dot {
  position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: #f3d9b1; box-shadow: 0 0 0 3px rgb(243 217 177 / .25);
}
.gl-name {
  position: absolute; top: 0; transform: translateY(-50%);
  padding: 3px 9px; border-radius: 999px; white-space: nowrap;
  font: 600 13px/1.2 var(--sans); color: #f6f1e6; letter-spacing: .01em;
  background: rgb(14 28 21 / .72); border: 1px solid rgb(243 217 177 / .3);
  backdrop-filter: blur(4px);
}
.globe-label.right .gl-name { left: 10px; }
.globe-label.left .gl-name { right: 10px; }
.globe-label.up .gl-name { transform: translateY(-115%); }
.globe-label.down .gl-name { transform: translateY(15%); }
.globe-label.on .gl-name { background: #f3d9b1; color: #1b2a22; }
.globe-label.here .gl-dot { width: 12px; height: 12px; left: -6px; top: -6px; background: #c25a4f; box-shadow: 0 0 0 4px rgb(194 90 79 / .3); }
.globe-label.here .gl-name { font-size: 15px; padding: 4px 12px; background: #a8433a; border-color: #c25a4f; color: #fbf3ef; }
@media (max-width: 640px) { .gl-name { font-size: 11px; padding: 2px 7px; } .globe-label.here .gl-name { font-size: 13px; } }
/* Poster while the globe loads: a lit sphere in the same colors. */
.globe-slot::before {
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2c5a43 0%, #163527 55%, #0d2018 100%);
  box-shadow: 0 0 80px 10px rgb(243 217 177 / .18);
  transition: opacity 1.2s var(--ease);
}
.globe-slot canvas { opacity: 0; transition: opacity 1.2s var(--ease); cursor: grab; }
.globe-slot canvas:active { cursor: grabbing; }
.globe-slot.ready canvas { opacity: 1; }
.globe-slot.ready::before { opacity: 0; }
.globe-hint {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  font-size: .8rem; color: rgb(255 255 255 / .6); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity 1s var(--ease) 1.5s;
}
.globe-slot.ready .globe-hint { opacity: 1; }
.hero-inner { position: relative; }
.welcome {
  font: 500 .82rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase;
  color: #f3d9b1; margin-bottom: 20px;
}
.hero h1 {
  font: 600 clamp(2.6rem, 1.6rem + 4.2vw, 4.6rem)/1.08 var(--serif);
  letter-spacing: -.015em;
  max-width: 15ch;
  padding-bottom: .08em;
}
.hero h1 em { font-style: italic; font-weight: 500; color: #f3d9b1; }
.hero-sub { margin-top: 22px; max-width: 54ch; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: rgb(255 255 255 / .88); }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.globe-on .hero-note { flex-direction: column; }
.globe-on .hero-note span + span::before { display: none; }
.hero-note {
  display: flex; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 26px; font-size: .88rem; color: rgb(255 255 255 / .74);
}
.hero-note span { position: relative; }
.hero-note span + span::before {
  content: ""; position: absolute; left: -12px; top: 50%; width: 1px; height: 12px; transform: translateY(-50%);
  background: rgb(255 255 255 / .4);
}
@media (max-width: 640px) {
  .ctas .btn { width: 100%; }
  .hero-note { flex-direction: column; }
  .hero-note span + span::before { display: none; }
  .hero-arcs { margin-top: 28px; }
}

/* Arc graphic */
.arc { fill: none; stroke: #f3d9b1; stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.arc.on { stroke: #fff; stroke-width: 2.4; opacity: 1; }
.city-dot { fill: #f3d9b1; }
.city-label { fill: rgb(255 255 255 / .82); font: 500 13px var(--sans); }
.pin-core { fill: #c25a4f; }
.pin-ring { fill: none; stroke: #c25a4f; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.pin-label { fill: #fff; font: 600 14px var(--sans); }
@media (prefers-reduced-motion: no-preference) {
  .pin-ring { animation: pulse 2.4s var(--ease) infinite; }
  .arc.draw { transition: stroke-dashoffset 2.2s var(--ease); }
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }

/* Trust strip */
.trust { padding: 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: 1fr; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px 0; }
.trust-item + .trust-item { border-top: 1px solid var(--line); }
.trust-item i { font-size: 1.6rem; color: var(--cedar); flex: none; margin-top: 2px; }
.trust-item p { font-size: .96rem; color: var(--muted); }
.trust-item b { color: var(--ink); font-weight: 600; }
@media (min-width: 720px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
  .trust-item + .trust-item { border-top: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (min-width: 1080px) {
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .trust-item { padding: 30px 0; }
  .trust-item:nth-child(n+3) { border-top: 0; }
}

/* Pull */
.pull { padding: 112px 0; text-align: center; }
.pull-lead { margin-top: 26px; font: italic 500 clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem)/1.3 var(--serif); color: var(--cedar); padding-bottom: .1em; }
.pull-body { margin-top: 28px; display: grid; gap: 18px; font-size: 1.1rem; color: var(--muted); }
.pull-close { color: var(--ink); font-weight: 600; }

/* What you can own (bento) */
.own { background: var(--surface); }
.own-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.own-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  padding: 28px; border-radius: var(--r-card);
  background: var(--bg); border: 1px solid var(--line);
}
.own-tile > i { font-size: 2rem; color: var(--cedar); }
.own-tile p { color: var(--muted); max-width: 46ch; }
.own-tile .btn { margin-top: auto; }
.own-tile h3 { font: 600 1.7rem/1.1 var(--serif); }
.own-land {
  color: #f1efe7; border: 0;
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(231 169 97 / .35), transparent 60%),
    linear-gradient(160deg, #24543d, #173527);
  min-height: 340px;
}
.own-land > i { color: #f3d9b1; font-size: 2.6rem; }
.own-land h3 { font-size: 2.6rem; }
.own-land p { color: rgb(241 239 231 / .85); font-size: 1.08rem; }
.own-house { background: var(--sand); border: 0; }
.own-house p { color: color-mix(in srgb, var(--ink) 78%, transparent); }
.own-project { background: repeating-linear-gradient(135deg, var(--bg) 0 14px, color-mix(in srgb, var(--surface-2) 70%, var(--bg)) 14px 15px); }
@media (min-width: 860px) {
  .own-grid { grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: auto auto; }
  .own-land { grid-row: span 2; padding: 40px; }
  .own-project p { max-width: 46ch; }
}

/* Map */
.map-layout { display: grid; gap: 28px; }
.map-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: 16px; display: flex; justify-content: center;
}
#lebMap { width: 100%; max-width: 440px; height: auto; overflow: visible; }
.leb-shape { fill: var(--map-fill); stroke: var(--cedar); stroke-width: 1.5; stroke-linejoin: round; }
.leb-sea { fill: var(--muted); font: italic 500 15px var(--serif); opacity: .7; letter-spacing: .08em; }
.rpin { cursor: pointer; }
.rpin circle.hit { fill: transparent; }
.rpin circle.dot { fill: var(--surface); stroke: var(--cedar); stroke-width: 2.5; transition: r .3s var(--ease), fill .3s var(--ease); }
.rpin text { fill: var(--ink); font: 600 13px var(--sans); paint-order: stroke; stroke: var(--map-fill); stroke-width: 4px; stroke-linejoin: round; }
.rpin:hover circle.dot, .rpin:focus-visible circle.dot { fill: var(--cedar-soft); }
.rpin.active circle.dot { fill: var(--cedar); r: 10; }
.rpin:focus { outline: none; }
.here-label { fill: var(--red); font: 700 12px var(--sans); paint-order: stroke; stroke: var(--map-fill); stroke-width: 4px; }
.map-panel { display: grid; gap: 20px; align-content: start; }
.region-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.region-tabs button {
  min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font: 500 .92rem var(--sans); cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.region-tabs button[aria-selected="true"] { background: var(--cedar); border-color: var(--cedar); color: var(--cedar-ink); }
.region-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 26px; display: grid; gap: 14px; }
.region-card h3 { font: 600 1.9rem/1.1 var(--serif); }
.region-card .here { display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 600; font-size: .9rem; }
.region-card p { color: var(--muted); }
.region-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.region-facts div { background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.region-facts span { display: block; font-size: .8rem; color: var(--muted); }
.region-facts b { font-size: 1.05rem; }
.region-note { font-size: .82rem; }
.from-box { display: grid; gap: 8px; }
.from-box label { font-weight: 600; }
.from-out { font: italic 500 1.3rem/1.35 var(--serif); color: var(--cedar); min-height: 1.4em; }
@media (min-width: 900px) {
  .map-layout { grid-template-columns: 1.05fr 1fr; align-items: start; }
  .map-frame { position: sticky; top: 88px; padding: 28px; }
}

/* Filters */
.filters {
  display: grid; gap: 12px; grid-template-columns: 1fr 1fr;
  padding: 18px; margin-bottom: 28px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
}
.unit-switch { grid-column: 1 / -1; display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); justify-self: start; align-self: end; }
.unit-switch button {
  min-height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--muted); font: 600 .88rem var(--sans); cursor: pointer;
}
.unit-switch button[aria-pressed="true"] { background: var(--cedar); color: var(--cedar-ink); }
@media (min-width: 1000px) {
  .filters { grid-template-columns: repeat(5, 1fr) auto; align-items: end; }
  .unit-switch { grid-column: auto; }
}

/* Form fields (shared) */
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--ink); }
fieldset.field { border: 0; padding: 0; margin: 0; }
fieldset.field legend { padding: 0; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted); font-size: .85em; }
input, select {
  width: 100%; min-height: 46px; padding: 0 14px;
  font: 400 1rem var(--sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: var(--r-input);
}
.filters select, .filters input { background: var(--bg); }
input::placeholder { color: color-mix(in srgb, var(--ink) 58%, transparent); }
input:focus, select:focus { outline: none; border-color: var(--cedar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cedar) 28%, transparent); }
.hint { font-size: .84rem; color: var(--muted); }
.err { display: none; font-size: .86rem; color: var(--red); font-weight: 500; }
.field.invalid .err { display: block; }
.field.invalid input { border-color: var(--red); }

/* Listing grid */
.listing-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  overflow: hidden; text-align: left; color: inherit; font: inherit; padding: 0; cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .ph-camera { font-size: 2rem; opacity: .6; }
.card-media .play { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; border-radius: 999px; background: rgb(15 24 19 / .7); color: #fff; display: grid; place-items: center; font-size: 1.2rem; }
.sample-banner { background: var(--tbd-bg); color: var(--tbd-ink); font-size: .82rem; font-weight: 600; padding: 8px 16px; }
.card-body { padding: 20px; display: grid; gap: 10px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .84rem; color: var(--muted); }
.status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.status-available { background: var(--cedar-soft); color: var(--cedar); }
.status-reserved { background: var(--tbd-bg); color: var(--tbd-ink); }
.status-sold { background: var(--surface-2); color: var(--muted); }
.card h3 { font: 600 1.45rem/1.15 var(--serif); }
.card-area { font-size: .95rem; }
.card-price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.card-price b { font-size: 1.35rem; }
.card-price span { font-size: .86rem; color: var(--muted); }

.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: var(--r-card); }
.empty > i { font-size: 2.2rem; color: var(--cedar); }
.empty h3 { margin-top: 10px; font: 600 1.6rem var(--serif); }
.empty p { margin: 8px auto 0; max-width: 46ch; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 22px; }

/* Listing dialog */
.listing-dialog {
  width: min(880px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: var(--r-card);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
}
.listing-dialog::backdrop { background: rgb(10 16 13 / .6); backdrop-filter: blur(3px); }
@media (prefers-reduced-motion: no-preference) {
  .listing-dialog[open] { animation: dlgIn .45s var(--ease); }
}
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.dlg-close {
  position: sticky; top: 12px; float: right; margin: 12px 12px 0 0; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: var(--bg); color: var(--ink); font-size: 1.2rem; cursor: pointer; display: grid; place-items: center;
}
.dlg-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; background: var(--surface-2); }
.dlg-gallery > * { scroll-snap-align: start; aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.dlg-gallery .slot { border: 0; border-radius: 0; }
.dlg-content { padding: 26px; display: grid; gap: 26px; }
@media (min-width: 720px) { .dlg-content { padding: 34px; } }
.dlg-head { display: grid; gap: 10px; }
.dlg-head h2 { font-size: clamp(1.8rem, 1.4rem + 1.5vw, 2.4rem); }
.dlg-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; }
.dlg-price b { font-size: 1.9rem; }
.dlg-price span { color: var(--muted); }
.facts { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.fact { background: var(--bg); border-radius: 12px; padding: 16px 18px; }
.fact h4 { margin: 0 0 6px; font: 600 .82rem var(--sans); color: var(--muted); }
.fact p { font-size: .98rem; }
.fact .ar { font-family: var(--arabic); font-weight: 500; }
.why h4, .docs h4 { margin: 0 0 8px; font: 600 1.05rem var(--sans); }
.why p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tags span { padding: 4px 12px; border-radius: 999px; background: var(--cedar-soft); color: var(--cedar); font-size: .84rem; font-weight: 600; }
.fine { margin-top: 10px; font-size: .82rem; color: var(--muted); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list li { display: flex; gap: 10px; align-items: center; }
.doc-list .ph-check-circle { color: var(--cedar); font-size: 1.3rem; }
.doc-list .ph-circle-dashed { color: var(--muted); font-size: 1.3rem; }
.doc-list .missing { color: var(--muted); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* How it works */
.how h2 { max-width: 18ch; margin-bottom: 48px; }
.steps-wrap { position: relative; }
.steps-line { position: absolute; left: 21px; top: 22px; bottom: 60px; width: 2px; background: var(--line); }
.steps-fill { position: absolute; inset: 0; background: var(--cedar); transform-origin: top; transform: scaleY(1); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 30px; position: relative; }
.steps li { position: relative; padding-left: 64px; }
.step-n {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 999px;
  display: grid; place-items: center; background: var(--cedar); color: var(--cedar-ink);
  font: 600 1.3rem var(--serif);
}
.steps h3 { margin-bottom: 6px; padding-top: 9px; }
.steps p { color: var(--muted); }
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .steps li { padding-left: 0; padding-top: 64px; }
  .steps-line { left: 22px; right: 18%; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps-fill { transform-origin: left; }
  .steps h3 { padding-top: 0; }
}

/* Promise band */
.promise { background: var(--band); color: var(--band-ink); }
.promise-inner { display: grid; gap: 40px; }
.promise-head p { margin-top: 14px; color: var(--band-muted); font-size: 1.1rem; }
.promise-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.promise-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 22px; border-radius: var(--r-card);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  color: var(--band-muted);
}
.promise-list b { color: var(--band-ink); }
.promise-list i { font-size: 1.6rem; color: #f3d9b1; flex: none; }
.promise-list .promise-key { background: rgb(243 217 177 / .12); border-color: rgb(243 217 177 / .4); }
.promise mark.tbd { background: #fbe5a8; color: #4f3b00; }
@media (min-width: 900px) {
  .promise-inner { grid-template-columns: .9fr 1.1fr; align-items: start; }
  .promise-head { position: sticky; top: 100px; }
}

/* Who */
.who-grid { display: grid; gap: 36px; align-items: center; }
.who-text { display: grid; gap: 18px; }
.who-text p { color: var(--muted); font-size: 1.06rem; }
@media (min-width: 900px) { .who-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; } }

/* Placeholder slots for real media */
.slot {
  margin: 0; display: grid; place-items: center; align-content: center; gap: 10px; text-align: center;
  padding: 24px; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent); border-radius: var(--r-card);
  background: var(--surface-2); color: var(--muted); font-size: .92rem;
}
.slot i { font-size: 2.4rem; color: var(--cedar); }
.slot-tall { aspect-ratio: 4 / 5; }
.slot-wide { aspect-ratio: 16 / 9; margin-top: 36px; }

/* Stories */
.stories { background: var(--surface); }

/* FAQ */
.faq-grid { display: grid; gap: 32px; }
.faq-list { display: grid; gap: 10px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; position: relative;
  font-weight: 600; font-size: 1.04rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font: 400 1.5rem/1 var(--sans); color: var(--cedar); transition: transform .3s var(--ease);
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { padding: 0 22px 22px; color: var(--muted); }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; }
  .faq-grid h2 { position: sticky; top: 100px; align-self: start; }
}

/* Contact */
.contact { background: var(--surface); }
.contact-grid { display: grid; gap: 40px; }
.contact-text { display: grid; gap: 18px; align-content: start; justify-items: start; }
.contact-text p { color: var(--muted); font-size: 1.08rem; }
.form { display: grid; gap: 20px; padding: 26px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); }
.form input, .form select { background: var(--surface); }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
  background: var(--surface); cursor: pointer; font-weight: 500; font-size: .95rem;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.chip input:checked + span { background: var(--cedar); border-color: var(--cedar); color: var(--cedar-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form-note { text-align: center; font-size: .88rem; color: var(--muted); margin-top: -8px; }
.form-error { color: var(--red); font-weight: 500; text-align: center; }
.listing-ref { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 999px; background: var(--cedar-soft); color: var(--cedar); font-weight: 600; font-size: .92rem; }
.listing-ref button { width: 32px; height: 32px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; }
.form-done { padding: 40px 28px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-card); text-align: center; display: grid; gap: 12px; justify-items: center; align-content: center; }
.form-done > i { font-size: 3rem; color: var(--cedar); }
.form-done h3 { font: 600 1.8rem var(--serif); }
.form-done p { color: var(--muted); max-width: 44ch; }
.btn.is-loading { opacity: .7; pointer-events: none; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* Footer */
.footer { padding: 56px 0 110px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.footer-place { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.disclaimer { margin-top: 28px; max-width: 80ch; font-size: .86rem; color: var(--muted); }
.footer-legal { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .86rem; color: var(--muted); }
@media (max-width: 640px) { .footer-links { margin-left: 0; } }
@media (min-width: 900px) { .footer { padding-bottom: 56px; } }

/* WhatsApp button (always on screen) */
.wa-fab {
  position: fixed; right: 16px; bottom: 16px; z-index: 40;
  width: 60px; height: 60px; border-radius: 999px;
  display: grid; place-items: center;
  background: #1f7a4d; color: #fff; font-size: 2rem; text-decoration: none;
  box-shadow: 0 10px 28px rgb(15 40 28 / .35);
  transition: transform .3s var(--ease);
}
.wa-fab:hover { transform: translateY(-2px); }

/* ---------- Relief map ---------- */
/* Tilted like a table model; leans toward the cursor (app.js sets --rx/--ry). */
.map-frame { perspective: 1400px; overflow: hidden; flex-direction: column; align-items: center; }
#lebMap {
  max-width: 560px;
  transform: rotateX(var(--rx, 20deg)) rotateY(var(--ry, 0deg));
  transform-origin: 50% 55%;
  transition: transform .9s var(--ease);
}
.leb-shape { fill: none; stroke: rgb(31 74 54 / .45); stroke-width: 1; stroke-linejoin: round; }
.rpin text { fill: #1b2420; stroke: rgb(246 243 234 / .92); }
.rpin circle.dot { fill: #f6f3ea; stroke: #1f4a36; }
.rpin.active circle.dot { fill: #1f4a36; }
.here-label { stroke: rgb(246 243 234 / .92); fill: #b3261e; }
.map-credit { margin-top: 10px; font-size: .74rem; color: var(--muted); text-align: center; }
.js .map-frame .relief { opacity: 0; transition: opacity 1.1s var(--ease); }
.js .map-frame .rpin { opacity: 0; transition: opacity .5s ease var(--d, 0ms); }
.js .map-frame.drawn .relief, .js .map-frame.drawn .rpin { opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  transform: translate(var(--mx, 0px), var(--my, 0px));
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .3s var(--ease);
}
/* Fill that rises from the bottom (outline and ghost buttons). */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill, transparent);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
/* Light that sweeps across on hover. */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .38) 50%, transparent 65%);
  transform: translateX(-130%);
}
.btn:hover::after { transform: translateX(130%); transition: transform .9s var(--ease); }
.btn:hover { transform: translate(var(--mx, 0px), calc(var(--my, 0px) - 2px)); box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--cedar) 60%, transparent); }
.btn:active { transform: translate(var(--mx, 0px), var(--my, 0px)) scale(.97); transition-duration: .1s; }
.btn i { transition: transform .45s var(--ease); }
.btn:hover i { transform: rotate(-12deg) scale(1.15); }
.btn-outline { --fill: var(--cedar); }
.btn-outline:hover { background: transparent; color: var(--cedar-ink); }
.btn-ghost { --fill: #f3d9b1; }
.btn-ghost:hover { color: #1b2a22; border-color: #f3d9b1; background: rgb(10 18 14 / .28); }
.btn-light:hover { box-shadow: 0 12px 32px -8px rgb(243 217 177 / .55); }
.own-land .btn-light:hover, .hero .btn:hover { box-shadow: 0 12px 32px -8px rgb(243 217 177 / .5); }

/* Nav links: underline grows in. */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- Hover life on tiles and cards ---------- */
.own-tile, .card, .region-card, .promise-list li { position: relative; }
.own-tile::after, .card::after, .region-card::after, .promise-list li::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px circle at var(--sx, -999px) var(--sy, -999px), rgb(243 217 177 / .18), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.own-tile:hover::after, .card:hover::after, .region-card:hover::after, .promise-list li:hover::after { opacity: 1; }
/* The whole tile is clickable: it lifts, glows at the edge, warms in tone, and its button fills in. */
.own-tile {
  cursor: pointer;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease), filter .4s var(--ease);
}
.own-tile:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: var(--cedar);
  box-shadow:
    0 0 0 1.5px var(--cedar),
    0 0 28px -4px color-mix(in srgb, var(--cedar) 45%, transparent),
    0 26px 50px -18px color-mix(in srgb, var(--cedar) 55%, transparent);
}
.own-apt:hover, .own-project:hover, .own-commercial:hover { background-color: var(--cedar-soft); }
.own-house:hover { filter: saturate(1.15) brightness(1.03); }
.own-land:hover {
  box-shadow:
    0 0 0 1.5px #f3d9b1,
    0 0 36px -2px rgb(243 217 177 / .45),
    0 26px 50px -18px rgb(31 74 54 / .7);
}
.own-tile:hover h3 { color: var(--cedar); }
.own-land:hover h3 { color: #f3d9b1; }
.own-tile > i { transition: transform .5s var(--ease), color .4s var(--ease); }
.own-tile:hover > i { transform: translateY(-4px) rotate(-8deg) scale(1.15); }
.own-tile:hover .btn::before { transform: scaleY(1); }
.own-tile:hover .btn-outline { color: var(--cedar-ink); }
.own-tile:hover .btn-light { background: #fff; box-shadow: 0 12px 32px -8px rgb(243 217 177 / .55); }
.own-tile:focus-within { border-color: var(--cedar); }
.card-media { overflow: hidden; }
.card-media img, .card-media > i { transition: transform .9s var(--ease); }
.card:hover .card-media img, .card:hover .card-media > i { transform: scale(1.06); }
.promise-list li { transition: transform .45s var(--ease), border-color .45s var(--ease); }
.promise-list li:hover { transform: translateX(6px); border-color: rgb(243 217 177 / .45); }
summary { transition: color .25s var(--ease); }
summary:hover { color: var(--cedar); }

/* WhatsApp button: a soft ring now and then. */
.wa-fab::after {
  content: ""; position: absolute; inset: 0; border-radius: 999px; border: 2px solid #1f7a4d; pointer-events: none;
}
.wa-fab i { transition: transform .45s var(--ease); }
.wa-fab:hover i { transform: rotate(-12deg) scale(1.1); }

/* ---------- Hero ---------- */
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 80vmax; height: 80vmax; right: -25vmax; bottom: -45vmax;
  background: radial-gradient(circle, rgb(231 169 97 / .32), transparent 60%);
}
.hero h1 em { display: inline-block; }

/* ---------- Reveals ----------
   Full motion: things rise, wipe and pop in.
   Reduced motion (an OS setting): the same things simply fade in, nothing moves. */
.js .reveal { opacity: 0; transition: opacity .8s var(--ease) calc(var(--i, 0) * 80ms), transform .8s var(--ease) calc(var(--i, 0) * 80ms); }
.js .reveal.in { opacity: 1; }
.js .reveal-clip { opacity: 0; transition: opacity 1s var(--ease), clip-path 1.2s var(--ease); }
.js .reveal-clip.in { opacity: 1; }
.js .hero-inner > :not(h1) { opacity: 0; animation: rise 1s var(--ease) forwards; }
.js .hero-inner > :nth-child(2) { animation-delay: .15s; }
.js .hero-inner > :nth-child(3) { animation-delay: .35s; }
.js .hero-inner > :nth-child(4) { animation-delay: .55s; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; opacity: 0; transition: opacity .7s var(--ease) calc(var(--i) * 70ms), transform .9s var(--ease) calc(var(--i) * 70ms); }
.split.in .w > span { opacity: 1; }
.js .trust-item i, .js .promise-list li > i, .js .steps .step-n { opacity: 0; transition: opacity .5s ease calc(var(--i, 0) * 90ms + .15s), transform .7s cubic-bezier(.34, 1.56, .64, 1) calc(var(--i, 0) * 90ms + .15s); }
.js .trust-item.in > i, .js .steps li.in .step-n, .js .promise-list li.in > i { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { transform: translateY(26px); }
  .js .reveal.in { transform: none; }
  .js .reveal-clip { opacity: 1; clip-path: inset(0 0 100% 0 round 14px); }
  .js .reveal-clip.in { clip-path: inset(0 0 0 0 round 14px); }
  .js .hero-inner > :not(h1) { transform: translateY(18px); }
  .js .hero h1 em { animation: wipe 1.3s var(--ease) .25s both; }
  .split .w > span { opacity: 1; transform: translateY(110%); }
  .split.in .w > span { transform: none; }
  .js .trust-item i, .js .promise-list li > i, .js .steps .step-n { transform: scale(.3) rotate(-25deg); }
  .js .trust-item.in > i, .js .steps li.in .step-n, .js .promise-list li.in > i { transform: none; }
  .js .map-frame .relief { transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.4s var(--ease); }
  .js .map-frame.drawn .relief { transform: none; }
  .js .map-frame .rpin { transform: translateY(-16px); transition: opacity .5s ease var(--d, 0ms), transform .7s cubic-bezier(.34, 1.56, .64, 1) var(--d, 0ms); }
  .js .map-frame.drawn .rpin { transform: none; }
  .hero::after { animation: drift 18s ease-in-out infinite alternate; }
  .wa-fab::after { animation: ring 3.2s ease-out infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn:hover, .btn:active { transform: none; }
  .btn::after { display: none; }
  .promise-list li:hover { transform: none; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes wipe { from { clip-path: inset(-20% 100% -25% 0); } to { clip-path: inset(-20% -5% -25% 0); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-12vmax, -8vmax) scale(1.15); } }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Flag red accents (sparing: rules, edges, small details) ---------- */
::selection { background: color-mix(in srgb, var(--red) 24%, transparent); }

/* A short red rule under section headings, drawn in when the heading arrives. */
main h2:not(.hero h2)::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 18px; border-radius: 2px;
  background: var(--red); transform-origin: left;
}
.pull h2::after { margin-left: auto; margin-right: auto; transform-origin: center; }
.promise h2::after { background: #d9877c; }
.split::after { transform: scaleX(0); transition: transform .9s var(--ease) .35s; }
.split.in::after { transform: scaleX(1); }

/* FAQ: the open question gets a soft red edge and a red plus. */
details[open] { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); box-shadow: inset 3px 0 0 var(--red); }
details[open] summary::after { color: var(--red); }

/* The key promise gets a muted red outline on the green band. */
.promise-list .promise-key { border-color: rgb(217 135 124 / .55); background: rgb(217 135 124 / .1); }
.promise-list .promise-key > i { color: #e3a197; }

/* Step numbers: a thin red ring. */
.step-n { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--red) 70%, transparent); }

/* Footer: a thin red, white, red stripe, after the flag. */
.footer { border-top: 0; position: relative; }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: linear-gradient(to bottom, var(--red) 0 2px, #f4efe6 2px 4px, var(--red) 4px 6px);
  opacity: .85;
}

/* Sold listings use the red tone. */
.status-sold { background: var(--red-soft); color: var(--red); }

/* "Find your piece of home": the tile's button turns flag red on hover. */
.own-tile .btn-outline { --fill: var(--red); }
.own-tile:hover .btn-outline { border-color: var(--red); color: var(--red-ink); }
.own-tile:hover .btn-outline:hover { box-shadow: 0 12px 26px -10px color-mix(in srgb, var(--red) 65%, transparent); }
.own-land .btn-light { --fill: #a8433a; }
.own-land:hover .btn-light { background: #f6f3ea; color: #fbf3ef; box-shadow: 0 12px 30px -8px rgb(168 67 58 / .6); }

/* ---------- Red as the action color ----------
   Every button fills with flag red on hover; green stays the resting color. */
.btn:hover { box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--red) 65%, transparent); }
.btn-primary { --fill: var(--red); }
.btn-primary:hover { color: var(--red-ink); }
.btn-outline { --fill: var(--red); }
.btn-outline:hover { border-color: var(--red); color: var(--red-ink); }
.btn-light { --fill: #a8433a; }
.btn-light:hover { color: #fbf3ef; box-shadow: 0 12px 30px -8px rgb(168 67 58 / .6); }
.btn-ghost { --fill: #a8433a; }
.btn-ghost:hover { color: #fbf3ef; border-color: #c25a4f; background: rgb(10 18 14 / .28); }
.hero .btn:hover, .own-land .btn-light:hover { box-shadow: 0 12px 32px -8px rgb(168 67 58 / .6); }

/* More red accents */
.steps-fill { background: var(--red); }
.trust-item i { color: var(--red); }
.pull-lead { color: var(--red); }
.rpin:hover circle.dot { fill: #f1dcd6; }
.rpin.active circle.dot { fill: #a8433a; stroke: #f6f3ea; }
.region-tabs button:hover { border-color: var(--red); }
.card:hover { box-shadow: 0 0 0 1.5px var(--red), 0 18px 40px -16px color-mix(in srgb, var(--red) 55%, transparent); }
.footer-links a:hover, .footer-legal a:hover { color: var(--red); }
summary:hover { color: var(--red); }
.form-error a, .contact-text a:not(.btn) { color: var(--red); }

/* ---------- Contact form: required markers and phone fields ---------- */
.req { color: var(--red); font-weight: 700; }
.req-note { font-size: .84rem; color: var(--muted); margin-bottom: -6px; }
.field.invalid select { border-color: var(--red); }

/* Phone: a country-code picker joined to the number. The real <select> sits invisibly on top of the "+961" label. */
.phone-field { display: flex; min-width: 0; }
.phone-field input { border-top-left-radius: 0; border-bottom-left-radius: 0; min-width: 0; }
.dial-pick { position: relative; flex: none; }
.dial-text {
  display: flex; align-items: center; gap: 6px; height: 100%; min-height: 46px; padding: 0 12px;
  border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent); border-right: 0;
  border-radius: var(--r-input) 0 0 var(--r-input);
  background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: .98rem; white-space: nowrap;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dial-text i { font-size: .8rem; color: var(--muted); }
.dial-pick select {
  position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; padding: 0;
  opacity: 0; cursor: pointer; border: 0;
}
.dial-pick:focus-within .dial-text { border-color: var(--cedar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cedar) 28%, transparent); }
.dial-pick:hover .dial-text { border-color: var(--cedar); }
.field.invalid .dial-text, .field.invalid .phone-field input { border-color: var(--red); }

/* ---------- Footer contacts ---------- */
.footer { padding-top: 64px; }
.footer-main { display: grid; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; gap: 12px; align-content: start; }
.footer-brand p { color: var(--muted); max-width: 34ch; font-size: .95rem; }
.footer-contacts { display: grid; gap: 16px; }
.contact-card {
  display: grid; gap: 4px; padding: 22px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s var(--ease), transform .4s var(--ease);
}
.contact-card:hover { border-color: color-mix(in srgb, var(--red) 55%, var(--line)); transform: translateY(-2px); }
.cc-place { display: flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--red); }
.cc-name { font: 600 1.5rem/1.15 var(--serif); margin-top: 4px; }
.cc-role { font-size: .9rem; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }
.cc-phone { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cc-phone:hover { color: var(--red); }
.footer-top { margin-top: 24px; }
.footer-links { margin-left: 0; }
@media (min-width: 720px) { .footer-contacts { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-main { grid-template-columns: .8fr 2fr; align-items: start; } }

/* ---------- Flags above the globe ----------
   The two flags fly side by side just above the earth, in front of it, fully visible. */
.globe-slot { isolation: isolate; }
.globe-slot canvas.hero-flags {
  position: absolute; z-index: 3; pointer-events: none; cursor: default;
  left: 2%; top: -27%; width: 96%; height: 36%;
  opacity: 0; transition: opacity 1.4s var(--ease), transform 1.4s var(--ease);
  transform: translateY(14px);
  filter: drop-shadow(0 14px 18px rgb(8 16 12 / .45));
}
.globe-slot canvas.hero-flags.on { opacity: 1; transform: none; }
/* Room above the globe for the flags */
.globe-on .globe-slot { margin-top: 24%; }
@media (min-width: 900px) {
  .globe-on .globe-slot { width: min(calc(100% + 40px), 64dvh); margin-top: 17dvh; }
}

/* "Show number" button in the footer contact cards */
.cc-reveal {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1.5px dashed color-mix(in srgb, var(--ink) 30%, transparent);
  background: transparent; color: var(--ink); font: 600 .9rem var(--sans); cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease);
}
.cc-reveal:hover { border-style: solid; border-color: var(--red); color: var(--red); background: var(--red-soft); }
.cc-phone:focus-visible { outline-offset: 4px; }

/* =====================================================================
   Warm and light: a sunlit hero over real Lebanese scenes.
   ===================================================================== */
.hero { color: var(--ink); }
.hero-media { background: var(--bg); overflow: hidden; }
.hero-media .slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 2.4s ease;
  filter: saturate(.95) sepia(.28) brightness(.98) contrast(.95);
}
.hero-media .slide.is-on { opacity: 1; }
/* Warm wash: bright on the text side, letting the photo show through on the globe side. */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 85% 18%, rgb(255 200 130 / .28), transparent 70%),
    linear-gradient(0deg, var(--bg) 0%, rgb(230 214 187 / 0) 24%),
    linear-gradient(90deg, rgb(238 225 202 / .94) 0%, rgb(238 225 202 / .84) 34%, rgb(238 225 202 / .38) 60%, rgb(238 225 202 / .12) 100%);
}
@media (max-width: 899px) {
  .hero-media::after {
    background:
      linear-gradient(180deg, rgb(238 225 202 / .93) 0%, rgb(238 225 202 / .85) 55%, rgb(238 225 202 / .5) 85%, var(--bg) 100%);
  }
}
.hero::after { background: radial-gradient(circle, rgb(255 190 120 / .22), transparent 60%); }
.hero h1 { color: var(--ink); }
.hero h1 em { color: var(--red); }
.hero-sub { color: color-mix(in srgb, var(--ink) 82%, transparent); }
.hero-note { color: var(--muted); }
.hero-note span + span::before { background: color-mix(in srgb, var(--ink) 25%, transparent); }
.globe-hint { color: var(--muted); }
.arc { stroke: var(--red); opacity: .6; }
.arc.on { stroke: var(--cedar); }
.city-dot { fill: var(--red); }
.city-label, .pin-label { fill: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  /* Slow drift while each scene is on screen. */
  .hero-media .slide { transform: scale(1.12); transition: opacity 2.4s ease, transform 10s linear; }
  .hero-media .slide.is-on { transform: scale(1.02) translate3d(-1.5%, -1%, 0); }
  .hero-media .slide:nth-child(even).is-on { transform: scale(1.02) translate3d(1.5%, 1%, 0); }
}

/* The land tile stays the one deep green, a little brighter. */
.own-land {
  background:
    radial-gradient(80% 60% at 100% 0%, rgb(255 205 140 / .35), transparent 60%),
    linear-gradient(160deg, #3d7351, #285a3e);
}

/* Promise band: a light olive-and-sage band instead of dark green. */
.promise { background: linear-gradient(180deg, #d7dec4, #cdd6b8); }
.promise-list li { background: rgb(246 238 222 / .7); border-color: rgb(47 93 63 / .16); color: var(--band-muted); }
.promise-list li:hover { border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.promise-list i { color: var(--cedar); }
.promise-list .promise-key { background: var(--red-soft); border-color: rgb(168 67 58 / .45); }
.promise-list .promise-key > i { color: var(--red); }
.promise h2::after { background: var(--red); }

/* Story section: a faint photo of the old souk in Byblos, drifting slowly as you scroll. */
.pull { position: relative; isolation: isolate; overflow: hidden; }
.pull-photo {
  position: absolute; left: 0; right: 0; top: -12%; bottom: -12%; z-index: -1; pointer-events: none;
  background: url("assets/photos/story-souk.webp") center / cover no-repeat;
  opacity: .1; filter: sepia(.35) saturate(.9);
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 50%, #000 35%, transparent 80%);
  mask-image: radial-gradient(ellipse 72% 66% at 50% 50%, #000 35%, transparent 80%);
}

/* Photo credit line in the footer */
.photo-credit { margin-top: 14px; font-size: .78rem; color: var(--muted); max-width: 90ch; }
.photo-credit a { color: inherit; }

/* =====================================================================
   Rustic touch: a faint paper grain over the page.
   ===================================================================== */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: .32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .31 0 0 0 0 .18 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


/* =====================================================================
   Footer: cedar-bark brown with a faint bark grain. Text is kept light and
   high-contrast (all at least 4.5:1) because contacts and legal lines live here.
   ===================================================================== */
.footer {
  --f-bg: #36261a;          /* cedar bark */
  --f-text: #f3e8d4;        /* about 13:1 on the bark */
  --f-muted: #d4c3a6;       /* about 9:1 */
  --f-soft: #c2ae8e;        /* about 7:1, for the smallest print */
  --f-red: #e8a596;         /* dusty flag red, readable on dark */
  --f-line: rgb(243 232 212 / .16);
  background-color: var(--f-bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='2400' height='300'%3E%3Cfilter id='b'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.005 .09' numOctaves='4' seed='7' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .06 0 0 0 0 .03 0 0 0 .9 -.25'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23b)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, #3d2b1d, #2f2116);
  color: var(--f-text);
  border-top: 0;
}
.footer .logo span { color: var(--f-text); }
.footer .logo i { color: #a9cdb0; }
.footer .logo b { color: var(--f-red); }
.footer-brand p, .disclaimer { color: var(--f-muted); }
.footer-main { border-bottom-color: var(--f-line); }
.contact-card { background: rgb(243 232 212 / .06); border-color: var(--f-line); }
.contact-card:hover { border-color: rgb(232 165 150 / .55); }
.cc-place { color: var(--f-red); }
.cc-name { color: var(--f-text); }
.cc-role { color: var(--f-muted); }
.cc-phone { color: var(--f-text); }
.cc-phone:hover { color: var(--f-red); }
.cc-reveal { color: var(--f-text); border-color: rgb(243 232 212 / .35); }
.cc-reveal:hover { color: var(--f-red); border-color: var(--f-red); background: rgb(232 165 150 / .1); }
.footer .btn-primary { background: #3f7653; color: #f6efe2; }
.footer-links a { color: var(--f-muted); }
.footer-links a:hover, .footer-legal a:hover { color: var(--f-red); }
.photo-credit, .footer-legal { color: var(--f-soft); }
.photo-credit a, .footer-legal a { color: var(--f-muted); }
.footer :focus-visible { outline-color: var(--f-red); }

/* ---------- Film of Lebanon ---------- */
.film-section h2 { margin-bottom: 36px; }
.film-frame {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  aspect-ratio: 16 / 9; background: #2b2016;
  box-shadow: 0 30px 60px -28px rgb(60 38 16 / .55);
}
.film {
  display: block; width: 100%; height: 100%; object-fit: cover;
  filter: sepia(.14) saturate(.96) contrast(.98);  /* a touch of warmth to match the page */
}
/* Soft vignette so the film sits into the parchment, not on top of it */
.film-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 90px rgb(43 32 22 / .45);
}
.film-toggle {
  position: absolute; right: 18px; bottom: 18px; z-index: 2;
  width: 48px; height: 48px; border-radius: 999px; border: 1.5px solid rgb(246 238 222 / .7);
  background: rgb(43 32 22 / .5); color: #f6eedf; backdrop-filter: blur(6px);
  display: grid; place-items: center; font-size: 1.2rem; cursor: pointer;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.film-toggle:hover { background: var(--red); border-color: var(--red); transform: scale(1.06); }
.film-toggle:focus-visible { outline: 2px solid #f6eedf; outline-offset: 3px; }

/* ---------- Brand mark: identical everywhere it appears ---------- */
:root { --brand-red: #a3302a; }   /* one red for "In", from the flag, deep enough for 4.5:1 on the page */
.brand { font-weight: 600; white-space: nowrap; letter-spacing: -.005em; }
.brand-in { color: var(--brand-red); font-weight: 700; }
.logo .brand { font-size: 1.05rem; }
.logo b { color: inherit; }
/* On the dark footer the mark sits on a cream plate, so it keeps exactly the same colors as everywhere else. */
.footer .brand { background: #f3e8d4; color: #2b2016; padding: .05em .4em .1em; border-radius: 5px; box-shadow: 0 1px 0 rgb(0 0 0 / .25); }
.footer .logo .brand { padding: .2em .55em .25em; }
.footer .brand-in { color: var(--brand-red); }

/* ---------- Readability ---------- */
.pull-body { color: var(--ink); }
.pull-lead { color: var(--red); }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--ink) 66%, transparent); }
.region-note, .map-credit, .hint, .opt, .form-note, .req-note { color: var(--muted); }


/* ---------- Where to find us (map panel) ---------- */
.offices { display: grid; gap: 12px; padding: 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.offices h3 { font: 600 1.3rem/1.2 var(--serif); }
.office { display: flex; gap: 12px; align-items: flex-start; }
.office i { color: var(--red); font-size: 1.3rem; margin-top: 2px; }
.office b { display: block; font-size: 1.02rem; }
.office span { color: var(--muted); font-size: .92rem; }

/* ---------- Buyer or seller form ---------- */
.role-block { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 20px; }
.role-pick legend { font-size: 1rem; }
.chips-lg .chip span { min-height: 50px; padding: 0 20px; font-size: 1.02rem; font-weight: 600; gap: 8px; }
.chips-lg .chip span i { font-size: 1.2em; }
textarea {
  width: 100%; min-height: 110px; padding: 12px 14px; resize: vertical;
  font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--ink) 28%, transparent);
  border-radius: var(--r-input);
}
textarea:focus { outline: none; border-color: var(--cedar); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cedar) 28%, transparent); }
.field.invalid textarea { border-color: var(--red); }

/* ---------- "Own land or a home in Lebanon?" band ---------- */
.sell-band { padding: 56px 0; background: linear-gradient(100deg, #ecd2c3, #e3c3b0); border-top: 1px solid rgb(155 56 47 / .2); border-bottom: 1px solid rgb(155 56 47 / .2); }
.sell-inner { display: grid; gap: 20px; align-items: center; }
.sell-icon { font-size: 2.6rem; color: var(--red); }
.sell-text h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); }
.sell-text h2::after { display: none; }
.sell-text p { margin-top: 8px; color: var(--ink); max-width: 60ch; }
@media (min-width: 900px) { .sell-inner { grid-template-columns: auto 1fr auto; gap: 32px; } }
.footer .logo .brand { color: #2b2016; }
.footer .logo .brand-in { color: var(--brand-red); }

/* Commercial tile: a warm clay tint so the five tiles keep their rhythm */
.own-commercial { background: var(--red-soft); border-color: rgb(155 56 47 / .18); }

/* ---------- Who we are: centered text, two team cards ---------- */
.who-text { max-width: 720px; margin: 0 auto; text-align: center; }
.who-text h2 { max-width: 20ch; margin: 0 auto; }
.who-text h2::after { margin-left: auto; margin-right: auto; }
.who-text p { color: var(--ink); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; gap: 28px; margin-top: 48px; }
.member { margin: 0; display: grid; gap: 14px; }
.member img, .member-slot {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card);
  box-shadow: 0 22px 44px -26px rgb(60 38 16 / .55);
}
.member-slot { display: grid; place-items: center; align-content: center; gap: 10px; }
.member-slot span { color: var(--muted); font-size: .92rem; }
.member figcaption { display: grid; gap: 2px; text-align: center; }
.member figcaption b { font: 600 1.45rem/1.2 var(--serif); }
.member-place { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: var(--red); font-weight: 600; font-size: .9rem; }
.member-role { color: var(--muted); font-size: .92rem; }
@media (max-width: 520px) { .team { grid-template-columns: minmax(0, 300px); } }

/* Film controls: sound and play/pause side by side */
.film-controls { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 10px; }
.film-controls .film-toggle { position: static; }
.member img { height: auto; }

.who-text h2 { max-width: none; }
.who-text { max-width: 900px; }
.who-text p { max-width: 720px; margin-left: auto; margin-right: auto; }
@media (min-width: 900px) { .who-text h2 { white-space: nowrap; } }

/* Footer: legal lines, credits and links centered and spread wider */
.footer { background-size: 2400px 300px, auto; }
.footer-top, .disclaimer, .photo-credit, .footer-legal { max-width: 1040px; margin-left: auto; margin-right: auto; text-align: center; }
.footer-links, .footer-legal { justify-content: center; }
.footer-top { display: flex; justify-content: center; }

/* Footer social links with icons */
.footer-links { gap: 10px 14px; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(240, 226, 200, .16); background: rgba(240, 226, 200, .04); transition: color .2s, border-color .2s, background-color .2s; }
.footer-links a i { font-size: 1.2rem; }
.footer-links a[href]:hover { color: #fff3e0; border-color: var(--f-red); background: rgba(196, 72, 60, .22); }

/* Touch hint fades once the globe has been turned */
.globe-slot.touched .globe-hint { opacity: 0; }

/* Phones: a smaller floating WhatsApp button that covers less of the text */
@media (max-width: 640px) {
  .wa-fab { width: 52px; height: 52px; right: 14px; bottom: 14px; font-size: 1.5rem; }
  .footer { padding-bottom: 120px; }
}

/* Small phones: the map column may shrink, and long buttons wrap instead of widening the page */
.map-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .map-layout { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); } }
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } }
.globe-label.dot-only .gl-name { display: none; }

/* ---------- "List your property" page (sell.php) ---------- */
[lang="ar"], .ar { font-family: var(--arabic); }
.bi { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; width: 100%; }
.bi .ar { font-weight: 500; color: var(--muted); font-size: .98em; }
.sell-hero { padding: clamp(36px, 6vw, 64px) 0 28px; }
.sell-hero h1 { font: 600 clamp(2.3rem, 1.6rem + 3vw, 3.6rem)/1.05 var(--serif); letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; }
.sell-hero h1 .ar { font: 600 .62em/1.4 var(--arabic); color: var(--cedar); }
.sell-intro { margin-top: 16px; display: grid; gap: 8px; max-width: 760px; font-size: 1.08rem; }
.sell-intro .ar { color: var(--muted); font-size: 1.02rem; line-height: 1.9; }
.sell-ready { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sell-ready li { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.sell-ready li i { font-size: 1.3rem; color: var(--cedar); }
.sell-ready .bi { width: auto; gap: 2px 10px; }

.sell-layout { display: grid; gap: 28px; padding-bottom: 72px; align-items: start; }
@media (min-width: 1000px) { .sell-layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.sell-form { gap: 0; padding: 0; overflow: hidden; }
.sell-step { display: grid; gap: 20px; padding: 26px 20px; border-top: 1px solid var(--line); min-width: 0; }
.sell-step:first-of-type { border-top: 0; }
@media (min-width: 640px) { .sell-step { padding: 30px 32px; } }
.sell-step h2 { display: flex; align-items: center; gap: 14px; font: 600 1.55rem/1.2 var(--serif); }
.sell-step h2 .bi { align-items: center; }
.sell-step h2 .ar { font-size: .8em; color: var(--cedar); }
.sell-step .num { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--cedar); color: var(--cedar-ink); font: 700 1rem/1 var(--sans); }
.step-wait, .step-lead { color: var(--muted); font-size: .95rem; }
.step-wait span, .step-lead span, .hint span[lang="ar"], .err span[lang="ar"] { display: inline-block; }
.detail-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.detail-grid:empty { display: none; }
.chip .ar { font-weight: 500; margin-inline-start: 6px; opacity: .85; }

.save-note { display: grid; gap: 12px; padding: 14px 16px; border-radius: var(--r-card); background: var(--band); color: var(--band-ink); font-size: .92rem; }
.save-note .ar { display: block; margin-top: 4px; line-height: 1.9; color: var(--band-muted); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-ui { flex: none; position: relative; width: 44px; height: 26px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 30%, transparent); transition: background-color .2s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgb(0 0 0 / .25); }
.switch input:checked + .switch-ui { background: var(--cedar); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--focus); outline-offset: 2px; }
.switch .ar { color: var(--band-muted); }

.map-row { display: flex; flex-wrap: wrap; gap: 10px; }
.map-row input { flex: 1 1 240px; }
.map-row .btn { flex: none; min-height: 46px; }
#sLocateNote i { color: var(--cedar); }

.slots { display: grid; gap: 22px; }
.slots:empty { display: none; }
.upslot-head { font-weight: 600; font-size: .92rem; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 4px; }
.thumb { position: relative; margin: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-pdf { display: grid; place-items: center; align-content: center; gap: 4px; height: 100%; padding: 8px; text-align: center; font-size: .75rem; word-break: break-all; color: var(--muted); }
.thumb-pdf i { font-size: 2rem; color: var(--red); }
.thumb-x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgb(30 22 14 / .72); color: #fff; cursor: pointer; font-size: 1rem; }
.thumb-x:hover { background: var(--red); }
.add-tile { position: relative; display: grid; place-items: center; align-content: center; gap: 6px; aspect-ratio: 1; border-radius: 10px; border: 2px dashed color-mix(in srgb, var(--cedar) 55%, transparent); background: color-mix(in srgb, var(--cedar-soft) 45%, var(--surface)); color: var(--cedar); cursor: pointer; font-weight: 600; font-size: .88rem; text-align: center; transition: background-color .2s, border-color .2s; }
.add-tile i { font-size: 1.8rem; }
.add-tile:hover { background: var(--cedar-soft); border-color: var(--cedar); }
.add-tile:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.file-in { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; min-height: 0; padding: 0; }
.upslot-doc .add-tile { border-color: color-mix(in srgb, var(--red) 45%, transparent); background: color-mix(in srgb, var(--red-soft) 50%, var(--surface)); color: var(--red); }
.upslot.invalid .add-tile { border-color: var(--red); border-style: solid; background: var(--red-soft); color: var(--red); }
.upslot-busy { font-size: .88rem; color: var(--muted); }


.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-weight: 500; font-size: .95rem; }
.check input { flex: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--cedar); }
.check .ar { display: block; margin-top: 4px; color: var(--muted); line-height: 1.9; }
.field.invalid .check { color: var(--red); }

.upload-progress { display: grid; gap: 8px; }
.upload-progress .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.upload-progress .bar span { display: block; height: 100%; width: 0; background: var(--cedar); transition: width .3s var(--ease); }
.upload-progress p { font-size: .9rem; color: var(--muted); text-align: center; }

.resume-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px; background: var(--cedar-soft); border-bottom: 1px solid var(--line); font-size: .92rem; }
.resume-note p { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.resume-note i { font-size: 1.2rem; color: var(--cedar); }

.sell-done h2 { font: 600 1.9rem/1.2 var(--serif); display: grid; gap: 6px; }
.sell-done h2 .ar { font-size: .75em; color: var(--cedar); }
.sell-done p.ar { line-height: 1.9; }

.sell-aside { display: grid; gap: 14px; }
@media (min-width: 1000px) { .sell-aside { position: sticky; top: 84px; } }
.aside-card { padding: 18px 20px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; }
.aside-card h3 { display: flex; gap: 10px; align-items: center; font-size: 1rem; }
.aside-card h3 i { font-size: 1.3rem; color: var(--cedar); }
.aside-card.private h3 i { color: var(--red); }
.aside-card ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 8px; font-size: .92rem; }
.aside-card li .bi { justify-content: flex-start; gap: 0 10px; }
.aside-card.talk { grid-template-columns: 1fr auto; align-items: center; }
.aside-card.talk .bi { display: grid; gap: 2px; font-weight: 600; }
.sell-noscript { padding: 14px 18px; border-radius: var(--r-card); background: var(--tbd-bg); color: var(--tbd-ink); }
.sell-footer { padding: 28px 0; }
.sell-page .nav .btn span { white-space: nowrap; }
@media (max-width: 480px) { .sell-page .nav .btn span { display: none; } .sell-page .nav .btn { padding: 0 12px; } }

/* ---------- Team page (admin.php) ---------- */
.admin-tag { margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--cedar); color: var(--cedar-ink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.admin-main { padding-top: 32px; padding-bottom: 80px; display: grid; gap: 20px; align-content: start; }
.admin-login { max-width: 420px; display: grid; gap: 16px; }
.admin-login h1, .admin-title, .admin-head h1 { font: 600 clamp(1.8rem, 1.4rem + 1.6vw, 2.5rem)/1.15 var(--serif); }
.admin-login pre { white-space: pre-wrap; word-break: break-all; padding: 12px 14px; border-radius: var(--r-input); background: var(--surface); border: 1px solid var(--line); font-size: .85rem; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .92rem; }
.admin-tabs a span { min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); font-size: .8rem; text-align: center; }
.admin-tabs a[aria-current] { background: var(--cedar); border-color: var(--cedar); color: var(--cedar-ink); }
.admin-tabs a[aria-current] span { background: rgb(255 255 255 / .2); }
.admin-sub, .admin-empty { color: var(--muted); }
.admin-list { display: grid; gap: 10px; }
.admin-item { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; align-items: center; padding: 10px 16px 10px 10px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.admin-item:hover { border-color: var(--cedar); }
.admin-item-img { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.admin-item-img img { width: 100%; height: 100%; object-fit: cover; }
.admin-item-body { display: grid; gap: 2px; min-width: 0; }
.admin-item-body b { font-size: 1.05rem; }
.admin-table-wrap { overflow-x: auto; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-contact { display: grid; gap: 4px; }
.admin-contact a { display: inline-flex; align-items: center; gap: 6px; }
.admin-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.admin-status { padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--surface-2); }
.admin-status.s-pending { background: var(--tbd-bg); color: var(--tbd-ink); }
.admin-status.s-published { background: var(--cedar); color: var(--cedar-ink); }
.admin-status.s-rejected, .admin-status.s-unpublished { background: var(--red-soft); color: var(--red); }
.admin-grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .admin-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.admin-col { display: grid; gap: 20px; min-width: 0; }
.admin-card { display: grid; gap: 14px; padding: 20px 22px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.admin-card h2 { font: 600 1.35rem/1.2 var(--serif); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-card h2 .opt { font: 400 .8rem var(--sans); }
.admin-private { border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.admin-private h2 i { color: var(--red); }
.admin-dl { display: grid; grid-template-columns: minmax(90px, auto) 1fr; gap: 8px 16px; margin: 0; font-size: .95rem; }
.admin-dl dt { color: var(--muted); }
.admin-dl dd { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; overflow-wrap: anywhere; }
.admin-dl dd.pre { white-space: pre-line; display: block; }
.admin-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.admin-thumbs a { display: grid; gap: 4px; font-size: .78rem; color: var(--muted); text-decoration: none; }
.admin-thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.admin-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-docs a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.admin-docs i { font-size: 1.3rem; color: var(--red); }
.admin-form { display: grid; gap: 16px; }
.admin-form input, .admin-form select, .admin-form textarea { background: var(--bg); }
.admin-inline { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-inline select { width: auto; min-height: 40px; }
.admin-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.pick { display: grid; gap: 4px; font-size: .85rem; }
.pick img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.pick label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.pick input { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--cedar); }
.btn-danger { background: var(--red); color: var(--red-ink); border-color: var(--red); }
.btn-danger:hover { background: color-mix(in srgb, var(--red) 85%, #000); }

/* Gallery: listings sent by owners (apartments, houses, shops...) */
.card-rooms { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .9rem; color: var(--muted); }
.card-rooms span { display: inline-flex; align-items: center; gap: 4px; }
.card-price .on-request { font-weight: 600; }
.facts .fact .ar, .docs .ar { font-family: var(--arabic); }
.sell-form .sell-step h2::after, .sell-layout .sell-done h2::after, .admin-main .admin-card h2::after { display: none; }
.chip span .ar { display: inline; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.detail-grid { align-items: start; }
.detail-grid .bi { display: grid; gap: 0; }
.aside-card.talk { grid-template-columns: 1fr; justify-items: start; }
.chip span .ar { margin: 0 0 0 7px; }

/* Privacy Policy and other legal pages */
.legal { padding-top: 48px; padding-bottom: 72px; display: grid; gap: 16px; }
.legal h1 { font: 600 clamp(2.3rem, 1.6rem + 3vw, 3.4rem)/1.1 var(--serif); }
.legal h2 { font: 600 1.6rem/1.2 var(--serif); margin-top: 18px; scroll-margin-top: 84px; }
.legal ul { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.legal-date { color: var(--muted); font-size: .92rem; }
.legal .ar { line-height: 1.9; color: var(--muted); }
.legal-page .nav .btn span { white-space: nowrap; }
@media (max-width: 480px) { .legal-page .nav .btn span { display: none; } .legal-page .nav .btn { padding: 0 12px; } }
.step-lead i { color: var(--red); }
