/* Stay Here Real Estate — main stylesheet (works for English LTR and Arabic RTL) */

:root {
  --navy: #083D5D;
  --navy-dark: #062F48;
  --navy-700: #0F5279;
  --gray: #808080;
  --ink: #1D2733;
  --ink-2: #3A4550;
  --muted: #5A6570;
  --line: #E3E7EB;
  --line-2: #D5DBE0;
  --bg: #F4F6F8;
  --white: #FFFFFF;
  --wa: #1F8F4E;
  --wa-dark: #187340;
  --red: #B42318;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(8, 61, 93, .08);
  --shadow-lg: 0 12px 32px rgba(8, 61, 93, .16);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.lang-ar, :lang(ar) { font-family: var(--font-ar); }
body.lang-ar { line-height: 1.8; }
body.lang-ar h1, body.lang-ar h2 { font-weight: 700; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-family: var(--font-head); letter-spacing: -.02em; }
body.lang-ar h1, body.lang-ar h2, body.lang-ar h3 { font-family: var(--font-ar); letter-spacing: 0; line-height: 1.35; }
h1 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; }
h2 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 700; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #5FA8D3; outline-offset: 2px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 20px; }
.page-narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 9px; border: 1px solid transparent; font-weight: 600; font-size: 14px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-outline { background: #fff; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: #EEF4F8; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { background: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #EAF1F6; color: var(--navy-dark); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-dark); color: #fff; }
.btn-tiktok { background: #111; color: #fff; }
.btn-instagram { background: #C13584; color: #fff; }
.btn-facebook { background: #1877F2; color: #fff; }
.btn-tiktok:hover, .btn-instagram:hover, .btn-facebook:hover { color: #fff; filter: brightness(1.1); }
.btn-lg { min-height: 48px; padding: 12px 22px; font-size: 15px; }
.btn-block { width: 100%; white-space: normal; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; }

/* ---------- header ---------- */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 16px; min-height: 62px; }
.brand img { height: 42px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.main-nav a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; padding: 8px 11px; border-radius: 7px; }
.main-nav a:hover { background: var(--bg); color: var(--navy); }
.main-nav a.active { color: var(--navy); background: #EAF1F6; }
.main-nav .nav-list-btn { color: var(--navy); font-weight: 600; border: 1px solid var(--line-2); margin-inline-start: 6px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { min-height: 38px; padding: 7px 13px; font-size: 13px; }
.lang-btn { text-decoration: none; font-weight: 600; font-size: 14px; color: var(--navy); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; min-height: 38px; display: inline-flex; align-items: center; }
.lang-btn:lang(ar) { font-family: var(--font-ar); }
.lang-btn:lang(en) { font-family: var(--font); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--navy); cursor: pointer; }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .header-wa span { display: none; }
  .header-wa { padding: 10px 12px; }
  .main-nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 12px; font-size: 15px; }
  .main-nav .nav-list-btn { margin: 8px 0 0; text-align: center; }
  .header-actions { margin-inline-start: auto; }
}
@media (max-width: 480px) {
  .brand img { height: 36px; }
  .header-row { gap: 8px; min-height: 56px; }
  .lang-btn { padding: 5px 10px; min-height: 36px; font-size: 13px; }
  .menu-btn { width: 38px; height: 38px; }
  .header-wa { display: none; } /* the floating WhatsApp button is always there on phones */
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: 540px; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,32,50,.72) 0%, rgba(4,32,50,.38) 50%, rgba(4,32,50,0) 85%); }
[dir="rtl"] .hero-shade { background: linear-gradient(270deg, rgba(4,32,50,.72) 0%, rgba(4,32,50,.38) 50%, rgba(4,32,50,0) 85%); }
.hero-inner { position: relative; padding-top: 80px; padding-bottom: 120px; }
.hero h1 { color: #fff; white-space: nowrap; overflow: hidden; font-size: min(50px, calc((100vw - 44px) / 13)); letter-spacing: -.02em; max-width: none; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
body.lang-ar .hero h1 { font-size: min(50px, calc((100vw - 44px) / 12)); letter-spacing: 0; }
.hero-text { font-size: clamp(15px, 1.6vw, 17px); max-width: 560px; color: #EAF1F6; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .16em; color: #CFDDE7; margin-bottom: 12px; }
.kicker.dark { color: var(--gray); }
body.lang-ar .kicker { letter-spacing: 0; font-size: 15px; }
@media (max-width: 640px) {
  .hero { min-height: 340px; }
  .hero-inner { padding-top: 26px; padding-bottom: 60px; }
  .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(4,32,50,.5) 0%, rgba(4,32,50,.08) 40%, rgba(4,32,50,0) 75%, rgba(4,32,50,.15) 100%); }
  .hero h1 { margin-bottom: 0; }
  .hero .kicker, .hero-text { display: none; }
}

/* ---------- search box ---------- */
.search-box .seg { align-self: flex-start; }
.search-box { position: relative; margin-top: -64px; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 2; }
.search-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
@media (max-width: 960px) { .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .btn-search { grid-column: 1 / -1; } }
.btn-search { min-height: 46px; }
.more-filters { display: none; flex-basis: 100%; align-items: center; justify-content: center; gap: 6px; background: none; border: 0; color: var(--navy); font-weight: 600; font-size: 12.5px; padding: 2px 0 0; cursor: pointer; min-height: 26px; }
.more-filters svg { transition: transform .15s; }
.search-box.open .more-filters svg { transform: rotate(45deg); }
/* Phones: one compact line — Buy/Rent · Location · search. More filters live on the Properties page. */
@media (max-width: 600px) {
  .search-box { flex-direction: row; align-items: center; gap: 8px; padding: 8px; margin-top: -46px; border-radius: 12px; }
  .search-box .seg { align-self: center; flex: none; padding: 3px; gap: 2px; }
  .search-box .seg span { padding: 8px 10px; font-size: 13px; }
  .search-fields { flex: 1; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .search-fields .field:not(.field-area) { display: none; }
  .search-fields .field > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .search-fields .field select { min-height: 42px; padding: 8px 10px; font-size: 14px; }
  .btn-search { grid-column: auto !important; width: 44px; min-height: 42px; padding: 0; }
  .btn-search .btn-search-label { display: none; }
  .more-filters { display: flex; }
  .search-box { flex-wrap: wrap; }
  .search-box.open { flex-direction: column; align-items: stretch; padding: 12px; }
  .search-box.open .seg { align-self: flex-start; }
  .search-box.open .search-fields { grid-template-columns: 1fr 1fr; }
  .search-box.open .search-fields .field { display: flex; }
  .search-box.open .search-fields .field > span { position: static; width: auto; height: auto; clip: auto; font-size: 12px; }
  .search-box.open .field-area { grid-column: 1 / -1; }
  .search-box.open .btn-search { grid-column: 1 / -1 !important; width: auto; min-height: 44px; padding: 0 16px; }
  .search-box.open .btn-search .btn-search-label { display: inline; }
}

.seg { display: inline-flex; background: #EEF1F4; border-radius: 10px; padding: 4px; gap: 4px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 18px; border-radius: 7px; font-weight: 600; font-size: 13px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.seg input:focus-visible + span { outline: 3px solid #5FA8D3; }
.seg-3 { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
.seg-3 span { padding: 9px 6px; text-align: center; }

/* ---------- form fields ---------- */
.field { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.field input, .field select, .field textarea, .input-icon input { width: 100%; font-size: 15px; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: #fff; color: var(--ink); min-height: 44px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(8,61,93,.15); outline-offset: 0; }
.input-icon { position: relative; display: block; }
.input-icon svg { position: absolute; top: 50%; transform: translateY(-50%); inset-inline-start: 12px; color: var(--muted); }
.input-icon input { padding-inline-start: 40px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* ---------- chips ---------- */
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; text-decoration: none; color: var(--navy); font-weight: 500; font-size: 13px; min-height: 34px; }
.chip:hover { border-color: var(--navy); }

/* ---------- sections ---------- */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-alt { background: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; }

.page-hero { background: var(--navy); color: #fff; padding: 40px 0 36px; }
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: #D7E2EA; margin: 0; font-size: 16px; max-width: 640px; }

/* ---------- property cards (compact) ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(8,61,93,.13); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #DCE5EC; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #9DB2C2; }
.badge { position: absolute; top: 8px; inset-inline-start: 8px; color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 4px 8px; border-radius: 6px; text-transform: uppercase; }
body.lang-ar .badge { text-transform: none; letter-spacing: 0; font-size: 12px; }
.badge.static { position: static; display: inline-block; font-size: 12px; padding: 5px 10px; }
.badge-sale { background: var(--navy); }
.badge-rent { background: #5F6B75; }
.badge-closed { background: var(--red); inset-inline-start: auto; inset-inline-end: 8px; }
.card-meta-tags { position: absolute; bottom: 8px; inset-inline-start: 8px; display: flex; gap: 5px; }
.chip-dark { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.62); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; }
.card-body { padding: 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.card-price { margin: 0; font-size: 17px; font-weight: 700; color: var(--navy); font-family: var(--font-head); line-height: 1.25; letter-spacing: -.01em; }
.card-title { margin: 0; font-size: 14px; font-weight: 600; font-family: var(--font); letter-spacing: 0; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--navy); }
.card-loc { margin: 0; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; min-width: 0; }
.card-loc svg { flex: none; }
.card-loc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.specs { list-style: none; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid #EDF0F2; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--ink-2); min-height: 22px; }
.specs li { display: inline-flex; align-items: center; gap: 4px; }
.specs svg { color: var(--muted); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 10px; }
.btn-sm { min-height: 38px; padding: 7px 10px; font-size: 13px; border-radius: 8px; gap: 5px; }
.card.is-closed .card-media img { filter: grayscale(.6); opacity: .85; }

/* Phones: 2 cards per row, smaller text */
@media (max-width: 600px) {
  .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 9px; }
  .card-price { font-size: 15px; }
  .card-title { font-size: 13px; }
  .card-loc { font-size: 12px; }
  .specs { font-size: 12px; gap: 3px 9px; }
  .specs svg { width: 12px; height: 12px; }
  .card-actions { grid-template-columns: 1fr auto; gap: 6px; }
  .card-actions .btn-sm { min-height: 36px; font-size: 12px; padding: 6px 8px; }
  .card-actions .btn-wa { width: 40px; padding: 0; }
  .card-actions .wa-label { display: none; }
  .badge { font-size: 10px; padding: 3px 6px; top: 6px; inset-inline-start: 6px; }
  body.lang-ar .badge { font-size: 11px; }
  .badge-closed { inset-inline-end: 6px; }
}

/* ---------- swipe rows ---------- */
.section-tight { padding-top: 30px; padding-bottom: 4px; }
.section-tight .section-head { margin-bottom: 14px; }
.swiper { position: relative; }
.cards-row { display: grid; grid-auto-flow: column; grid-auto-columns: 232px; gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 2px; padding: 4px 2px 14px; scrollbar-width: thin; scrollbar-color: #C3CFD8 transparent; -webkit-overflow-scrolling: touch; }
.cards-row::-webkit-scrollbar { height: 6px; }
.cards-row::-webkit-scrollbar-thumb { background: #C3CFD8; border-radius: 6px; }
.cards-row > .card { scroll-snap-align: start; }
.cards-row:focus-visible { outline-offset: 4px; }
.swipe-btn { position: absolute; top: calc(50% - 30px); transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--navy); box-shadow: var(--shadow-lg); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.swipe-btn:hover { background: #EEF4F8; }
.swipe-btn:disabled { opacity: 0; pointer-events: none; }
.swipe-prev { inset-inline-start: -14px; }
.swipe-next { inset-inline-end: -14px; }
@media (max-width: 860px), (hover: none) { .swipe-btn { display: none; } }
@media (max-width: 600px) {
  /* edge-to-edge so the next card peeks in and invites a swipe */
  .cards-row { grid-auto-columns: 45%; gap: 10px; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .cards-row::-webkit-scrollbar { display: none; }
  .section-tight { padding-top: 20px; }
  .section-tight .section-head { margin-bottom: 10px; }
  .area-chips { padding-top: 12px; }
  .section:not(.section-tight) { padding-top: 40px; padding-bottom: 40px; }
  .page-hero { padding: 28px 0 24px; }
}
@media (max-width: 380px) { .cards-row { grid-auto-columns: 47%; } }

.empty { background: #fff; border-radius: var(--radius); padding: 48px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty p { margin: 0; max-width: 420px; }

/* ---------- services ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.service-tile { display: flex; flex-direction: column; gap: 10px; background: var(--bg); border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--ink); border-top: 4px solid var(--navy); }
.section-alt .service-tile { background: var(--bg); }
.service-tile:nth-child(even) { border-top-color: var(--gray); }
.service-tile:hover { background: #EAF1F6; color: var(--ink); }
.service-name { font-weight: 700; font-size: 17px; }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: #EAF1F6; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.service-icon.lg { width: 68px; height: 68px; border-radius: 16px; }
.services-list { display: flex; flex-direction: column; gap: 18px; }
.service-row { display: flex; gap: 22px; align-items: flex-start; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); scroll-margin-top: 100px; }
.service-row h2 { font-size: 22px; }
.service-row p { color: var(--ink-2); max-width: 640px; }
@media (max-width: 560px) { .service-row { flex-direction: column; } }

.why { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.why h3 { margin-top: 12px; }
.why p { margin: 0; }

/* ---------- testimonials ---------- */
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); color: var(--gray); }
.testimonial blockquote { margin: 10px 0 14px; color: var(--ink); font-size: 16px; }
.testimonial figcaption { font-weight: 700; color: var(--navy); }

/* ---------- CTA band ---------- */
.cta-band { margin: 24px 0 64px; background: var(--navy); color: #fff; border-radius: 18px; padding: 36px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { margin: 0; color: #D7E2EA; }

/* ---------- properties page ---------- */
.list-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; padding-top: 32px; padding-bottom: 64px; }
.filters { flex: 0 0 300px; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.filters form { display: flex; flex-direction: column; gap: 20px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; }
.filters-title { margin: 0; font-weight: 700; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; font-size: 17px; }
.fset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fset legend { font-weight: 700; font-size: 14px; margin-bottom: 10px; padding: 0; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; min-height: 30px; }
.check input { width: 18px; height: 18px; accent-color: var(--navy); flex: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; cursor: pointer; }
.pills input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pills span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); font-weight: 600; font-size: 14px; }
.pills input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid #5FA8D3; }
.results { flex: 999 1 560px; min-width: 0; }
.results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; margin-bottom: 22px; }
.results-head h1 { margin: 0 0 4px; font-size: clamp(24px, 3vw, 30px); }
.results-head p { margin: 0; }
.results-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sort-label { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort-label select { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; min-height: 44px; }
.filters-toggle { display: none; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 32px; }
.pager-n { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; text-decoration: none; font-weight: 700; background: #fff; border: 1px solid var(--line-2); }
.pager-n.on { background: var(--navy); color: #fff; border-color: var(--navy); }

@media (max-width: 860px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; position: fixed; inset: 0; max-width: none; max-height: none; height: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border-radius: 0; z-index: 80; padding: 16px 20px 96px; top: 0; }
  body.filters-open { overflow: hidden; }
  .filters-head { position: sticky; top: -16px; background: #fff; padding: 12px 0; margin-top: -12px; z-index: 2; }
  .filters.open { display: block; }
  .filters .btn-block { position: fixed; bottom: 16px; inset-inline: 20px; width: auto; box-shadow: var(--shadow-lg); }
  .list-layout { padding-top: 22px; }
}

/* ---------- property page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; margin: 22px 0 8px; text-decoration: none; font-weight: 600; }
.prop-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); grid-template-areas: "media info" "content info"; gap: 28px 32px; padding-bottom: 32px; align-items: start; }
.prop-media { grid-area: media; display: flex; flex-direction: column; gap: 14px; }
.prop-info { grid-area: info; position: sticky; top: 96px; }
.prop-content { grid-area: content; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 900px) {
  .prop-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "info" "media" "content"; }
  .prop-info { position: static; }
}
.info-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.prop-price { margin: 4px 0 0; font-size: clamp(26px, 3.4vw, 32px); font-weight: 700; color: var(--navy); font-family: var(--font-head); letter-spacing: -.01em; }
.prop-title { font-size: clamp(19px, 2.4vw, 23px); font-weight: 600; color: var(--ink); margin: 0; }
.specs-lg { font-size: 15px; gap: 10px; border-top: 0; padding-top: 4px; }
.specs-lg li { background: var(--bg); border-radius: 8px; padding: 7px 11px; }
.watch-box, .contact-box { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 6px; display: flex; flex-direction: column; gap: 10px; }
.box-label { margin: 0; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.social-btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.social-btns .btn { padding-inline: 10px; }

.video-box { background: #0B2233; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.video-tabs { display: flex; gap: 8px; flex-wrap: wrap; align-self: stretch; }
.video-tab { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; cursor: pointer; min-height: 40px; }
.video-tab.on { background: #fff; color: var(--navy); }
.video-frame { width: 100%; max-width: 420px; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: #000; }
.video-frame.video-instagram { aspect-ratio: auto; height: 720px; max-height: 85vh; background: #fff; }
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.video-fallback { height: 100%; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: #fff; text-align: center; padding: 20px; }
.video-fallback p { margin: 0; color: #D7E2EA; }
.video-fallback-icon { width: 80px; height: 80px; border-radius: 999px; background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-item { padding: 0; border: 0; background: #DCE5EC; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-main { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
@media (max-width: 560px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
.no-photos { background: #fff; border-radius: 16px; padding: 60px 20px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }

.content-block { background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.content-block h2 { font-size: 20px; }
.prose { color: var(--ink-2); font-size: 16px; }
.prose.lead { font-size: 19px; color: var(--ink); }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 8px; }
.feature-list svg { color: var(--wa); flex: none; }
.details-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 24px; margin: 0 0 18px; }
.details-table div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid #EDF0F2; }
.details-table dt { color: var(--muted); }
.details-table dd { margin: 0; font-weight: 700; text-align: end; }

.lightbox { position: fixed; inset: 0; background: rgba(4,20,31,.94); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 60px 16px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-close { top: 14px; inset-inline-end: 14px; }
.lb-prev { inset-inline-start: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { inset-inline-end: 14px; top: 50%; transform: translateY(-50%); }
[dir="rtl"] .lb-prev svg, [dir="rtl"] .lb-next svg { transform: scaleX(-1); }
.lb-count { position: absolute; bottom: 12px; inset-inline: 0; text-align: center; color: #D7E2EA; margin: 0; }

/* ---------- about / CEO ---------- */
.ceo { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.ceo-photo { aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.ceo-photo img { width: 100%; height: 100%; object-fit: cover; }
.ceo-initials { font-family: var(--font-head); font-size: 88px; font-weight: 700; color: #fff; letter-spacing: .04em; }
.ceo-role { font-weight: 700; color: var(--gray); margin-top: -6px; }
.ceo-quote { margin: 0 0 22px; padding-inline-start: 18px; border-inline-start: 4px solid var(--navy); font-size: 18px; color: var(--ink-2); }
@media (max-width: 760px) { .ceo { grid-template-columns: 1fr; } .ceo-photo { max-width: 260px; } }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 17px; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--gray); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 0; padding: 0 22px 20px; color: var(--ink-2); }
.faq-cta { margin-top: 32px; text-align: center; }

/* ---------- forms pages ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.contact-info { order: 2; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } .contact-info { order: 0; } }
.form-card, .side-card { background: #fff; border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.side-card { display: flex; flex-direction: column; gap: 14px; }
.side-card h2 { font-size: 22px; margin: 0; }
.side-card p { margin: 0; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form .btn { align-self: flex-start; }
.alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-ok { background: #E6F4EC; color: #14532D; }
.alert-err { background: #FDECEC; color: #8A1C14; }
.info-list { margin: 6px 0 0; display: flex; flex-direction: column; gap: 14px; }
.info-list dt { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); font-size: 14px; }
.info-list dd { margin: 4px 0 0; color: var(--ink-2); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-dark); color: #C9D7E1; padding-top: 32px; font-size: 13.5px; line-height: 1.5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 28px; padding-bottom: 22px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; text-decoration: none; }
.footer-icon { background: #fff; border-radius: 8px; padding: 3px; height: 40px; width: auto; flex: none; }
.footer-name { margin: 0; font-weight: 700; color: #fff; letter-spacing: .03em; font-size: 14px; font-family: var(--font-head); line-height: 1.2; }
.footer-ar { margin: 2px 0 0; font-family: var(--font-ar); color: #C9D7E1; font-size: 12.5px; line-height: 1.3; }
.site-footer .muted { color: #A9BDCB; margin: 0 0 12px; max-width: 340px; }
.footer-h { color: #fff; font-weight: 600; font-size: 13px; letter-spacing: .02em; margin: 0 0 8px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-links.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; }
.footer-links a, .footer-links span { color: #C9D7E1; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; padding: 3px 0; }
.footer-links a:hover { color: #fff; }
.social-row { display: flex; gap: 8px; }
.social-btn { width: 36px; height: 36px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.social-btn svg { width: 17px; height: 17px; }
.social-btn:hover { background: rgba(255,255,255,.22); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; padding-bottom: 14px; font-size: 12.5px; color: #93A9B9; }
.footer-bottom p { margin: 0; }
@media (max-width: 760px) {
  .site-footer { padding-top: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-bottom: 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .site-footer .muted { display: none; }
  .footer-brand-row { margin-bottom: 0; }
  .footer-links.two-col { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 88px; text-align: center; }
}

.wa-float { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 54px; height: 54px; border-radius: 999px; background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 60; }
.wa-float:hover { background: var(--wa-dark); color: #fff; }
.filters-open .wa-float { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Area buttons: one swipeable line on phones */
@media (max-width: 600px) {
  .area-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin-inline: 0; scroll-padding-inline: 20px; }
  .area-chips::-webkit-scrollbar { display: none; }
  .area-chips .chip { flex: none; }
}

/* Home page services: one compact line (swipe on phones) */
.services-strip { padding-bottom: 28px; }
.services-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.service-chip { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 60px; }
.service-chip:hover { border-color: var(--navy); color: var(--navy); }
.service-chip .service-name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.service-icon.sm { width: 38px; height: 38px; border-radius: 10px; }
@media (max-width: 760px) {
  .services-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding: 2px 20px 8px; scroll-padding-inline: 20px; scrollbar-width: none; gap: 8px; }
  .services-row::-webkit-scrollbar { display: none; }
  .service-chip { scroll-snap-align: start; min-height: 50px; padding: 7px 12px 7px 8px; gap: 8px; }
  .service-icon.sm { width: 34px; height: 34px; }
  .service-chip .service-name { font-size: 13px; white-space: nowrap; }
  .services-strip { padding-bottom: 20px; }
}

/* Services page */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.svc-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); scroll-margin-top: 90px; transition: border-color .15s, box-shadow .15s; }
.svc-card:hover { border-color: #B9CCDA; box-shadow: 0 10px 28px rgba(8,61,93,.1); }
.svc-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.svc-num { font-family: var(--font-head); font-weight: 700; font-size: 28px; color: #DCE5EC; letter-spacing: -.02em; }
.svc-card h2 { font-size: 19px; margin: 0; }
.svc-text { color: var(--ink-2); margin: 0; }
.svc-points { list-style: none; margin: 4px 0 6px; padding: 12px 0 0; border-top: 1px solid #EDF0F2; display: flex; flex-direction: column; gap: 7px; font-size: 14px; color: var(--ink-2); }
.svc-points li { display: flex; align-items: center; gap: 8px; }
.svc-points svg { color: var(--wa); flex: none; }
.svc-link { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--wa); text-decoration: none; padding: 8px 0; }
.svc-link:hover { color: var(--wa-dark); text-decoration: underline; }
.how-steps { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: none; }
.how-steps li { background: var(--bg); border-radius: 14px; padding: 22px; }
.how-steps h3 { margin: 12px 0 6px; }
.how-steps p { margin: 0; font-size: 14px; }
.how-n { width: 36px; height: 36px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.footer-name { display: block; }
@media (max-width: 760px) {
  .svc-grid { grid-template-columns: 1fr; gap: 12px; }
  .svc-card { padding: 18px; gap: 8px; }
  .svc-num { font-size: 22px; }
  .how-steps { grid-template-columns: 1fr; gap: 10px; margin-top: 14px; }
  .how-steps li { padding: 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: start; }
  .how-steps li .how-n { grid-row: span 2; }
  .how-steps h3 { margin: 4px 0 2px; }
}
@media (min-width: 861px) {
  .filters { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
}

@media (min-width: 641px) and (max-width: 1024px) { .hero { min-height: 440px; } }

/* Hero on phones: centered title with the short text under it */
@media (max-width: 640px) {
  .hero-inner { text-align: center; align-items: center; display: flex; flex-direction: column; }
  .hero h1 { width: 100%; margin-bottom: 8px; }
  .hero-text { display: block; font-size: 13px; line-height: 1.55; max-width: 330px; margin: 0 auto; color: #F1F6FA; }
  body.lang-ar .hero-text { font-size: 13.5px; }
  .hero-shade, [dir="rtl"] .hero-shade { background: linear-gradient(180deg, rgba(4,32,50,.55) 0%, rgba(4,32,50,.25) 38%, rgba(4,32,50,0) 70%, rgba(4,32,50,.15) 100%); }
}

/* Arabic banner sentence on the English page: keep it lined up with the title */
body.lang-en .hero-text { text-align: left; font-family: var(--font-ar); font-size: clamp(15px, 1.5vw, 18px); }
@media (max-width: 640px) { body.lang-en .hero-text { text-align: center; font-size: 14px; } }

/* Phones: title + text in the middle of the photo (above the search box) */
@media (max-width: 640px) {
  .hero-inner { min-height: 340px; justify-content: center; padding-top: 10px; padding-bottom: 56px; }
  .hero-shade, [dir="rtl"] .hero-shade { background: radial-gradient(ellipse 90% 45% at 50% 46%, rgba(4,32,50,.5) 0%, rgba(4,32,50,.22) 60%, rgba(4,32,50,.05) 100%); }
}

/* Don't cut Arabic dots/letters below the line in the big title */
.hero h1 { overflow: visible; padding-block: .06em .14em; }
body.lang-ar .hero h1 { line-height: 1.55; }
