/* Maskan marketing site. Tokens match the app: navy ink, Dead Sea teal, saffron accent, stone neutrals. */
:root {
  --ink: #0F1B2D;
  --muted: #5B6779;
  --faint: #98A2B3;
  --brand: #0E7C7B;
  --brand-strong: #0A5F5E;
  --brand-soft: #E3F3F1;
  --saffron: #F5A524;
  --saffron-soft: #FFF3D9;
  --canvas: #F3F5F7;
  --surface: #FFFFFF;
  --line: #E3E7EC;
  --shadow: 0 18px 50px -18px rgba(15, 27, 45, .28);
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --wrap: 1180px;
  --font: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
/* Components set their own display, so the hidden attribute has to win explicitly. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-md);
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 12px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1b2a41; }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-strong); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Logo: the pin stands in for the letter meem and joins the rest of the word ---------- */
.logo { display: inline-flex; align-items: center; direction: rtl; text-decoration: none; font-weight: 700; font-size: 34px; line-height: 1; color: var(--ink); }
.logo img { width: 1.2em; height: 1.2em; margin-inline-end: -.07em; transform: translateY(.1em); }
.logo--sm { font-size: 24px; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--canvas) 86%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 74px; }
.nav__links { display: flex; gap: 26px; margin-inline-start: auto; }
.nav__links a { text-decoration: none; color: var(--muted); font-size: 15.5px; font-weight: 500; padding: 8px 2px; }
.nav__links a:hover { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: center; padding-block: 36px 40px; }
.hero h1 { font-size: clamp(44px, 6.2vw, 84px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.8; color: var(--muted); max-width: 30em; }
.hero__live { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 15px; color: var(--muted); font-feature-settings: "tnum"; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #17A673; box-shadow: 0 0 0 4px rgba(23, 166, 115, .18); flex: none; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stores--center { justify-content: center; }
.store {
  position: relative; display: inline-flex; align-items: center; gap: 12px; min-width: 190px;
  padding: 11px 20px 11px 18px; border-radius: var(--r-md); background: var(--ink); color: #fff; text-decoration: none;
  transition: transform .12s ease, background-color .15s ease;
}
.store:hover { background: #1b2a41; }
.store:active { transform: scale(.97); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: grid; line-height: 1.25; text-align: start; }
.store small { font-size: 12px; opacity: .72; }
.store b { font-size: 18px; font-weight: 600; direction: ltr; text-align: end; white-space: nowrap; }
.store--light { background: #fff; color: var(--ink); }
.store--light:hover { background: var(--brand-soft); }
/* Until the app is live in a store, the button says so instead of leading to a dead page. */
.store.is-soon { cursor: default; }
.store.is-soon::after {
  content: "قريبًا"; position: absolute; top: -10px; inset-inline-end: 12px;
  background: var(--saffron); color: #2B1D00; font-size: 12px; font-weight: 600; padding: 1px 10px; border-radius: 999px;
}

/* ---------- Live map ---------- */
.mapbox { position: relative; height: min(74vh, 700px); min-height: 480px; border-radius: var(--r-xl); overflow: hidden; background: #e6ebf0; box-shadow: var(--shadow); isolation: isolate; }
#map { position: absolute; inset: 0; }
.mapbox__top { position: absolute; top: 16px; inset-inline: 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; pointer-events: none; z-index: 3; }
.mapbox__top > * { pointer-events: auto; }
.seg { display: inline-flex; padding: 4px; background: #fff; border-radius: 999px; box-shadow: 0 6px 20px -6px rgba(15, 27, 45, .3); }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--muted); transition: background-color .15s, color .15s; }
.seg button.is-on { background: var(--ink); color: #fff; }
.mapbox__tag { background: #fff; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; box-shadow: 0 6px 20px -6px rgba(15, 27, 45, .3); font-feature-settings: "tnum"; }
.mapbox__hint { position: absolute; bottom: 16px; inset-inline: 0; margin-inline: auto; width: fit-content; max-width: calc(100% - 32px); background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; font-size: 14.5px; z-index: 3; box-shadow: 0 8px 22px -8px rgba(15, 27, 45, .5); transition: opacity .2s; }
.mapbox__fallback { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; background: #e6ebf0; z-index: 4; color: var(--muted); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-cooperative-gesture-screen { font-family: var(--font); }

/* Price pins: the same pill the app draws. Teal dot = rent, ink dot = sale. */
.pin, .pill {
  --dot: var(--brand);
  display: inline-flex; align-items: center; gap: 6px; direction: ltr;
  height: 30px; padding: 0 11px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-family: var(--font); font-weight: 600; font-size: 13px; color: var(--ink); font-feature-settings: "tnum";
  box-shadow: 0 3px 8px rgba(15, 27, 45, .22); white-space: nowrap;
}
.pin i, .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.pin--sale, .pill--sale { --dot: var(--ink); }
.pin--star, .pill--star { border: 1.8px solid var(--saffron); }
.pin { position: relative; cursor: pointer; transition: transform .12s ease; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 11px; height: 11px; background: inherit; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); border-bottom-right-radius: 2px; }
.pin--star::after { border-color: var(--saffron); border-width: 1.8px; bottom: -7px; }
.pin:hover { transform: scale(1.06); }
.pin.is-on, .pill--on { background: var(--ink); color: #fff; border-color: var(--ink); --dot: #fff; }
.pin.is-on::after { border-color: var(--ink); }
.pill--seen { background: #F7F8FA; color: var(--faint); --dot: var(--faint); }
.cluster {
  display: grid; place-items: center; width: var(--s, 46px); height: var(--s, 46px); border-radius: 50%; cursor: pointer;
  background: var(--brand); color: #fff; font-family: var(--font); font-weight: 700; font-size: 14px; font-feature-settings: "tnum";
  border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(14, 124, 123, .2), 0 4px 10px rgba(15, 27, 45, .25);
}

/* The card that opens when a price is pressed */
.mapcard {
  position: absolute; bottom: 16px; inset-inline: 16px; z-index: 5; display: grid; grid-template-columns: 132px 1fr; height: 132px;
  background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 16px 40px -12px rgba(15, 27, 45, .45);
  animation: rise .22s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.mapcard__photo { background: var(--line) center / cover no-repeat; position: relative; }
.mapcard__tag { position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 500; }
.mapcard__tag--sale { background: var(--ink); }
.mapcard__body { padding: 12px 14px; min-width: 0; display: flex; flex-direction: column; }
.mapcard__price { font-size: 19px; font-weight: 600; font-feature-settings: "tnum"; line-height: 1.3; }
.mapcard__price small { font-size: 13px; font-weight: 400; color: var(--muted); margin-inline-start: 6px; }
.mapcard__title { font-size: 14.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapcard__meta { margin-top: auto; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mapcard__go { align-self: flex-start; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--brand); text-decoration: none; }
.mapcard__close { position: absolute; top: 8px; inset-inline-end: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: var(--canvas); display: grid; place-items: center; font-size: 18px; line-height: 1; color: var(--muted); }

/* ---------- Areas ---------- */
.areas { display: flex; align-items: center; gap: 18px; padding-block: 8px 72px; }
.areas__title { font-size: 16px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.areas__list { display: flex; gap: 8px; overflow-x: auto; padding-block: 6px; scrollbar-width: none; mask-image: linear-gradient(to left, transparent, #000 28px, #000 calc(100% - 28px), transparent); padding-inline: 4px 28px; }
.areas__list::-webkit-scrollbar { display: none; }
.areas__list button { flex: none; border: 1.2px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 18px; font-size: 15px; font-weight: 500; transition: border-color .15s, background-color .15s; }
.areas__list button:hover { border-color: var(--brand); }
.areas__list button.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Features ---------- */
.how { background: var(--surface); padding-block: 96px 40px; }
.h2 { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.25; font-weight: 700; max-width: 16em; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding-block: 64px; border-bottom: 1px solid var(--line); }
.feature:last-child { border-bottom: 0; }
.feature--flip .feature__text { order: 2; }
.feature h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.35; font-weight: 600; }
.feature p { margin-top: 14px; color: var(--muted); max-width: 32em; }
.feature__art { position: relative; min-height: 340px; border-radius: var(--r-xl); background: var(--canvas); overflow: hidden; }

/* a stylised street map behind the sample pins */
.art-pins {
  background:
    linear-gradient(112deg, transparent 47.2%, #fff 47.2% 49.4%, transparent 49.4%),
    linear-gradient(18deg, transparent 61%, #fff 61% 62.8%, transparent 62.8%),
    linear-gradient(74deg, transparent 27%, #fff 27% 28.4%, transparent 28.4%),
    linear-gradient(162deg, transparent 33%, #fff 33% 34.3%, transparent 34.3%),
    radial-gradient(ellipse 34% 26% at 82% 28%, #d5e8dd 98%, transparent),
    radial-gradient(ellipse 22% 18% at 22% 44%, #dfe9e4 98%, transparent),
    #e9edf1;
}
.art-pins > * { position: absolute; left: var(--x); top: var(--y); }
.art-pins .pill { height: 34px; font-size: 15px; padding: 0 14px; }
.bubble { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(14, 124, 123, .2); font-feature-settings: "tnum"; }

/* voice / AI search */
.ask { display: flex; gap: 10px; margin-top: 22px; }
.ask input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1.2px solid var(--line); border-radius: var(--r-md); background: var(--canvas); font-size: 16px; }
.ask input:focus { outline: none; border-color: var(--brand); background: #fff; }
.ask__examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask__examples button { border: 0; background: var(--brand-soft); color: var(--brand-strong); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.ask__examples button:hover { background: #d3ece9; }
.art-voice { display: grid; place-items: center; padding: 32px; }
.voice { width: min(420px, 100%); display: grid; justify-items: start; gap: 16px; }
.voice__mic { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(14, 124, 123, .14), 0 0 0 22px rgba(14, 124, 123, .07); margin: 14px 22px 10px; }
.voice__mic svg { width: 30px; height: 30px; }
.voice.is-busy .voice__mic { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 16px rgba(14, 124, 123, .16), 0 0 0 32px rgba(14, 124, 123, .06); } }
.voice__heard { background: #fff; border-radius: var(--r-md); padding: 14px 16px; font-size: 16.5px; line-height: 1.7; color: var(--ink); width: 100%; margin: 0; }
.voice__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.voice__chips span { background: var(--brand-soft); color: var(--brand-strong); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; font-weight: 500; font-feature-settings: "tnum"; animation: pop .25s ease-out backwards; }
.voice__chips span:nth-child(2) { animation-delay: .05s; } .voice__chips span:nth-child(3) { animation-delay: .1s; }
.voice__chips span:nth-child(4) { animation-delay: .15s; } .voice__chips span:nth-child(5) { animation-delay: .2s; }
.voice__chips span:nth-child(n+6) { animation-delay: .25s; }
@keyframes pop { from { opacity: 0; transform: scale(.85); } }
.voice__note { font-size: 14px; color: var(--muted); margin: 0; }

/* filters illustration */
.art-filter { display: grid; place-items: end center; padding: 36px 28px 0; }
.fsheet { width: min(400px, 100%); background: #fff; border-radius: 26px 26px 0 0; padding: 24px 22px 22px; display: grid; gap: 12px; box-shadow: 0 -10px 40px -18px rgba(15, 27, 45, .3); }
.fsheet b { font-size: 15px; font-weight: 600; margin-top: 4px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchips span { border: 1.2px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; }
.fchips .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.fseg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px; text-align: center; font-size: 14px; font-feature-settings: "tnum"; }
.fseg span { padding: 7px 0; border-radius: 9px; }
.fseg .on { background: var(--ink); color: #fff; }
.fbtn { margin-top: 10px; background: var(--brand); color: #fff; border-radius: var(--r-md); text-align: center; padding: 13px; font-weight: 600; font-feature-settings: "tnum"; }

/* ---------- Owners ---------- */
.owners { background: var(--ink); color: #fff; padding-block: 96px; }
.owners__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 72px; align-items: start; }
.owners .lead { color: rgba(255, 255, 255, .72); }
/* A real sequence, so it is numbered. */
.steps { list-style: none; padding: 0; margin-top: 40px; counter-reset: step; display: grid; gap: 0; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.steps li::before { content: counter(step); grid-row: span 2; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); font-weight: 600; font-size: 18px; font-feature-settings: "tnum"; }
.steps b { font-weight: 600; font-size: 18px; }
.steps span { color: rgba(255, 255, 255, .68); font-size: 15.5px; }
.gets { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.gets li { display: grid; grid-template-columns: 5.5em 1fr; gap: 16px; align-items: baseline; padding-block: 20px; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.gets b { font-size: 22px; font-weight: 600; color: var(--saffron); }
.gets span { color: rgba(255, 255, 255, .78); font-size: 16.5px; }

/* ---------- FAQ ---------- */
.faq { padding-block: 96px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 19px; font-weight: 500; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; border-inline-end: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq details p { padding-bottom: 24px; color: var(--muted); max-width: 40em; }
.faq a { color: var(--brand); }

/* ---------- Download band ---------- */
.cta { background: var(--brand); color: #fff; padding-block: 88px; text-align: center; }
.cta__in { display: grid; justify-items: center; }
.cta img { border-radius: 22px; box-shadow: 0 14px 34px -10px rgba(0, 0, 0, .4); margin-bottom: 26px; }
.cta h2 { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.25; font-weight: 700; }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, .82); }
.cta__soon { font-size: 14.5px; }

/* ---------- Footer ---------- */
.foot { background: var(--surface); border-top: 1px solid var(--line); padding-block: 34px; }
.foot__in { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-inline-start: auto; }
.foot a { text-decoration: none; color: var(--muted); font-size: 15px; }
.foot a:hover { color: var(--ink); }
.foot p { width: 100%; color: var(--faint); font-size: 14px; }

/* ---------- Legal and support pages ---------- */
.doc { background: var(--surface); }
.doc__in { width: min(760px, 100% - 40px); margin-inline: auto; padding-block: 56px 96px; }
.doc h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.25; }
.doc__date { color: var(--muted); margin-top: 8px; font-size: 15px; }
.doc h2 { font-size: 23px; line-height: 1.4; margin-top: 44px; }
.doc p, .doc ul, .doc ol { margin-top: 12px; color: #2b3647; }
.doc ul, .doc ol { padding-inline-start: 22px; display: grid; gap: 6px; }
.doc a { color: var(--brand); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin-block: 64px; }
.doc [lang="en"] { direction: ltr; text-align: left; }
.doc__switch { display: inline-block; margin-top: 18px; font-size: 15px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 30px; padding-block: 20px 28px; }
  .mapbox { height: 68vh; min-height: 440px; border-radius: var(--r-lg); }
  .feature, .owners__in, .faq { grid-template-columns: 1fr; gap: 30px; }
  .feature--flip .feature__text { order: 0; }
  .feature { padding-block: 48px; }
  .how, .owners, .faq { padding-block: 64px; }
  .how { padding-bottom: 16px; }
  .areas { padding-bottom: 48px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav__in { height: 64px; justify-content: space-between; }
  .logo { font-size: 28px; }
  .lead { font-size: 17px; }
  .store { flex: 1; min-width: 0; padding-inline: 14px; }
  .store b { font-size: 15px; }
  .store { gap: 8px; }
  .store svg { width: 22px; height: 22px; }
  .areas { flex-direction: column; align-items: stretch; gap: 6px; }
  .ask { flex-direction: column; }
  .feature__art { min-height: 300px; border-radius: var(--r-lg); }
  .mapcard { grid-template-columns: 112px 1fr; }
  .seg button { padding: 7px 12px; font-size: 14px; }
  .foot nav { margin-inline-start: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
