/* Amlak Elite - public website. Brand tokens from the brand pack; one family ("Amlak Sans") for Latin and Arabic. */
:root {
    --navy: #0B1530; --midnight: #070D20; --harbour: #1C2B4F;
    --brass: #C9A46A; --brass-deep: #84632D; --brass-light: #E7D3AC;
    --ivory: #F6F2EA; --sand: #ECE4D5; --stone: #D8CFBE; --slate: #98A2BA; --steel: #5A6378; --ink: #161D2E; --white: #FFFFFF;
    --wrap: 1240px; --gutter: 24px; --radius: 2px;
    --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 12px 32px rgba(11, 21, 48, .08);
    --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: 'Amlak Sans', Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
:lang(ar) body, body:lang(ar) { line-height: 1.9; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; text-decoration: none; }
.skip:focus { top: 12px; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.wrap { width: min(var(--wrap), calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* ---------- type ---------- */
.display { font-weight: 300; font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -.01em; color: var(--navy); }
.h1 { font-weight: 300; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.14; color: var(--navy); }
.h2 { font-weight: 300; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1.2; color: var(--navy); }
.h3 { font-weight: 600; font-size: 1.125rem; line-height: 1.4; color: var(--navy); }
:lang(ar) .display, :lang(ar) .h1, :lang(ar) .h2 { font-weight: 700; letter-spacing: 0; line-height: 1.4; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); margin-bottom: 16px; }
.eyebrow--light { color: var(--brass); }
:lang(ar) .eyebrow { letter-spacing: 0; font-size: 14px; font-weight: 700; }
.lede { font-weight: 300; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
:lang(ar) .lede { font-weight: 400; line-height: 1.9; }

/* ---------- icons ---------- */
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic--lg { width: 32px; height: 32px; stroke-width: 1.4; }
.ic--xl { width: 44px; height: 44px; stroke-width: 1.3; }
[dir="rtl"] .ic--dir { transform: scaleX(-1); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border: 1px solid transparent; border-radius: var(--radius);
       font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap;
       transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
:lang(ar) .btn { letter-spacing: 0; text-transform: none; font-size: 15px; font-weight: 700; }
.btn .ic { width: 18px; height: 18px; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 12px; }
:lang(ar) .btn--sm { font-size: 14px; }
.btn--block { width: 100%; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--harbour); }
.btn--brass { background: var(--brass); color: var(--midnight); }
.btn--brass:hover { background: var(--brass-light); }
.btn--line { border-color: var(--stone); background: transparent; color: var(--navy); }
.btn--line:hover { border-color: var(--navy); }
.btn--line-light { border-color: rgba(231, 211, 172, .5); color: #fff; background: transparent; }
.btn--line-light:hover { border-color: var(--brass); background: rgba(201, 164, 106, .1); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 600; font-size: 14px; text-decoration: none; border-bottom: 1px solid var(--brass); padding-bottom: 4px; white-space: nowrap; }
.link-arrow:hover { color: var(--brass-deep); }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover .ic { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover .ic { transform: scaleX(-1) translateX(3px); }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(246, 242, 234, .94); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid var(--stone); }
.hd__in { display: flex; align-items: center; gap: 32px; height: 80px; }
.hd__logo img { height: 52px; width: auto; }
.hd__nav { display: flex; align-items: center; gap: 28px; margin-inline-start: auto; }
.hd__nav a { font-size: 13px; font-weight: 500; letter-spacing: .06em; text-decoration: none; color: var(--navy); padding: 6px 0; position: relative; white-space: nowrap; }
:lang(ar) .hd__nav a { font-size: 15px; letter-spacing: 0; }
.hd__nav a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transition: transform .2s var(--ease); }
.hd__nav a:hover::after, .hd__nav a[aria-current="page"]::after { transform: scaleX(1); }
.hd__end { display: flex; align-items: center; gap: 16px; }
.hd__lang { font-size: 14px; color: var(--navy); text-decoration: none; padding: 8px 4px; }
.hd__lang:hover { color: var(--brass-deep); }
.hd__lang--menu { display: none; }
.hd__burger { display: none; width: 44px; height: 44px; padding: 13px 11px; border: 1px solid var(--stone); background: transparent; border-radius: var(--radius); cursor: pointer; }
.hd__burger span { display: block; height: 1.5px; background: var(--navy); transition: transform .2s var(--ease), opacity .2s; }
.hd__burger span + span { margin-top: 5px; }
.hd__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hd__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--midnight); min-height: min(86vh, 800px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 62% 50%; transform-origin: 66% 52%; animation: drift 34s ease-in-out infinite alternate; z-index: -2; }
[dir="rtl"] .hero__media img { object-position: 38% 50%; transform-origin: 34% 52%; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate3d(-1%, -1.2%, 0); } }
.hero__shade { position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(90deg, rgba(7, 13, 32, .82) 0%, rgba(7, 13, 32, .55) 38%, rgba(7, 13, 32, .05) 70%), linear-gradient(0deg, rgba(7, 13, 32, .85) 0%, rgba(7, 13, 32, 0) 42%); }
[dir="rtl"] .hero__shade { background: linear-gradient(-90deg, rgba(7, 13, 32, .82) 0%, rgba(7, 13, 32, .55) 38%, rgba(7, 13, 32, .05) 70%), linear-gradient(0deg, rgba(7, 13, 32, .85) 0%, rgba(7, 13, 32, 0) 42%); }
.hero__in { padding-top: 120px; }
.hero__title { color: #fff; max-width: 13ch; }
:lang(ar) .hero__title { max-width: 14ch; }
.hero__sub { margin-top: 20px; max-width: 34em; font-size: clamp(1rem, 1.4vw, 1.2rem); font-weight: 300; color: #E6E9F1; line-height: 1.6; }
:lang(ar) .hero__sub { font-weight: 400; line-height: 1.9; }
.hero__search { padding: 40px 0 56px; }

/* ---------- search ---------- */
.search { position: relative; }
.search--hero { background: rgba(255, 255, 255, .98); color: var(--ink); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(7, 13, 32, .35); }
.search__tabs { display: inline-flex; gap: 0; padding: 6px 6px 0; }
.search__tabs label { cursor: pointer; }
.search__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search__tabs span { display: inline-block; padding: 12px 22px 10px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--steel); border-bottom: 2px solid transparent; }
:lang(ar) .search__tabs span { letter-spacing: 0; font-size: 15px; font-weight: 700; }
.search__tabs input:checked + span { color: var(--navy); border-bottom-color: var(--brass); }
.search__tabs input:focus-visible + span { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.search__fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 0; border-top: 1px solid var(--sand); }
.search--bar .search__fields { border-top: 0; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 12px; align-items: end; }
.search__f { display: flex; flex-direction: column; gap: 2px; padding: 14px 20px; border-inline-end: 1px solid var(--sand); min-width: 0; }
.search--bar .search__f { padding: 0; border: 0; }
.search__f > span { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); }
:lang(ar) .search__f > span { letter-spacing: 0; font-size: 13px; font-weight: 700; }
.search__f select { appearance: none; -webkit-appearance: none; width: 100%; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B1530' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 2px center / 11px 8px;
    padding: 4px 22px 4px 0; font-size: 15px; color: var(--navy); cursor: pointer; text-overflow: ellipsis; }
[dir="rtl"] .search__f select { background-position: left 2px center; padding: 4px 0 4px 22px; }
.search--bar .search__f select { border: 1px solid var(--stone); background-color: #fff; padding: 10px 34px 10px 12px; background-position: right 12px center; border-radius: var(--radius); min-height: 46px; }
[dir="rtl"] .search--bar .search__f select { padding: 10px 12px 10px 34px; background-position: left 12px center; }
.search__f select:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.search__go { margin: 10px; min-height: 52px; padding-inline: 28px; }
.search--bar .search__go { margin: 0; min-height: 46px; }

/* ---------- bands and section heads ---------- */
.band { padding-block: clamp(64px, 8vw, 104px); }
.band--tight { padding-block: 40px 88px; }
.band--sand { background: var(--sand); }
.band--navy { background: var(--navy); color: #E6E9F1; }
.band--navy .h1, .band--navy .h2 { color: #fff; }
.sec { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; margin-bottom: 40px; flex-wrap: wrap; }
.sec__sub { margin-top: 10px; color: var(--steel); max-width: 40em; }

/* ---------- listing cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--stone); border-radius: var(--radius); text-decoration: none; color: inherit; overflow: hidden;
        transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brass); }
.card__media { position: relative; }
.card__badge, .card__flag { position: absolute; top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--radius); }
:lang(ar) .card__badge, :lang(ar) .card__flag { letter-spacing: 0; font-size: 13px; font-weight: 700; }
.card__badge { inset-inline-start: 14px; background: var(--navy); color: #fff; }
.card__flag { inset-inline-end: 14px; background: rgba(255, 255, 255, .92); color: var(--navy); }
.card__body { padding: 20px 22px 16px; flex: 1; }
.card__price { font-size: 1.375rem; font-weight: 500; color: var(--navy); line-height: 1.2; }
.card__price span { font-size: 14px; font-weight: 400; color: var(--steel); }
:lang(ar) .card__price { font-weight: 700; }
.card__title { margin-top: 8px; font-size: 16px; font-weight: 500; line-height: 1.45; color: var(--ink); }
:lang(ar) .card__title { font-weight: 700; line-height: 1.7; }
.card__area { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; color: var(--steel); }
.card__area .ic { width: 16px; height: 16px; color: var(--brass-deep); }
.card__specs { display: flex; gap: 6px 18px; flex-wrap: wrap; padding: 14px 22px 18px; border-top: 1px solid var(--sand); font-size: 13.5px; color: var(--steel); }
.card__specs li { display: flex; align-items: center; gap: 7px; }
.card__specs .ic { width: 18px; height: 18px; color: var(--navy); }

/* ---------- photo frames (until photos are uploaded) ---------- */
.ph { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #EFE8DB 0%, var(--sand) 100%); display: grid; place-items: center; overflow: hidden; }
.ph::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(132, 99, 45, .18); }
.ph__icon { width: 44px; height: 44px; fill: none; stroke: var(--brass-deep); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; opacity: .55; }

/* ---------- neighbourhoods ---------- */
.areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--stone); border: 1px solid var(--stone); }
.area { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; min-height: 148px; padding: 24px; background: var(--ivory); text-decoration: none; transition: background .2s var(--ease); }
.area:hover { background: var(--white); }
.area__name { font-size: 1.25rem; font-weight: 300; color: var(--navy); line-height: 1.3; }
:lang(ar) .area__name { font-weight: 700; font-size: 1.2rem; }
.area__count { font-size: 13px; color: var(--steel); }
.area__go { position: absolute; inset-inline-end: 22px; bottom: 24px; width: 18px; height: 18px; color: var(--brass-deep); opacity: 0; transition: opacity .2s; }
.area:hover .area__go { opacity: 1; }

/* ---------- owners ---------- */
.owners { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
.owners__intro .lede { margin: 20px 0 32px; color: #C9CFDD; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: rgba(152, 162, 186, .25); border: 1px solid rgba(152, 162, 186, .25); }
.step { background: var(--navy); padding: 28px; }
.step__n { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--brass); color: var(--brass); font-size: 14px; font-weight: 600; border-radius: 50%; }
.step__t { margin: 16px 0 8px; font-size: 1.05rem; font-weight: 600; color: #fff; }
.step p { color: #B7BFD0; font-size: 15px; }

/* ---------- why ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; }
.why .ic { color: var(--brass-deep); }
.why h3 { margin: 18px 0 8px; font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.why p { color: var(--steel); font-size: 15px; }

/* ---------- search results ---------- */
.phead { padding: 56px 0 24px; }
.crumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--steel); margin-bottom: 14px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--navy); text-decoration: underline; }
.filters { position: sticky; top: 80px; z-index: 20; background: rgba(246, 242, 234, .96); backdrop-filter: blur(8px); border-block: 1px solid var(--stone); padding: 16px 0; }
.count { font-size: 14px; color: var(--steel); margin-bottom: 20px; }
.empty { text-align: center; max-width: 520px; margin: 32px auto; padding: 48px 24px; background: var(--white); border: 1px solid var(--stone); }
.empty > .ic { margin: 0 auto 16px; color: var(--brass-deep); }
.empty p { color: var(--steel); margin-top: 8px; }
.empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------- listing page ---------- */
.listing { padding-top: 28px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 8px; height: clamp(320px, 46vw, 560px); }
.gallery .ph { aspect-ratio: auto; height: 100%; }
.gallery__main { grid-row: span 2; }
.listing__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; margin-top: 40px; padding-bottom: 88px; align-items: start; }
.listing__ref { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); }
:lang(ar) .listing__ref { letter-spacing: 0; font-size: 14px; }
.listing__title { margin-top: 8px; }
.listing__area { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--steel); }
.listing__area .ic { color: var(--brass-deep); }
.listing__price { margin-top: 20px; font-size: 2rem; font-weight: 300; color: var(--navy); }
.listing__price span { font-size: 16px; color: var(--steel); margin-inline-start: 8px; }
:lang(ar) .listing__price { font-weight: 700; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-top: 1px solid var(--stone); border-inline-start: 1px solid var(--stone); }
.facts__item { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 18px; border-bottom: 1px solid var(--stone); border-inline-end: 1px solid var(--stone); background: var(--white); }
.facts__item .ic { grid-row: span 2; color: var(--brass-deep); margin-top: 3px; }
.facts dt { font-size: 12px; color: var(--steel); }
.facts dd { font-weight: 600; color: var(--navy); }
.listing__sec { margin-top: 48px; }
.listing__sec > .h3 { margin-bottom: 14px; }
.listing__text { max-width: 44em; }
.amenities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.amenities li { display: flex; align-items: center; gap: 12px; }
.amenities .ic { color: var(--brass-deep); }
.where { display: flex; gap: 16px; align-items: center; padding: 22px; background: var(--white); border: 1px solid var(--stone); }
.where .ic { color: var(--brass-deep); }
.where__name { font-weight: 600; color: var(--navy); }
.where__note { font-size: 14px; color: var(--steel); }
.enquire { position: sticky; top: 104px; }
.enquire__card { background: var(--white); border: 1px solid var(--stone); padding: 28px; box-shadow: var(--shadow); }
.enquire__sub { margin-top: 6px; color: var(--steel); font-size: 14px; }
.enquire__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0; }
.enquire__form { display: grid; gap: 14px; padding-top: 20px; border-top: 1px solid var(--sand); }
.enquire__form label > span { display: block; font-size: 12px; font-weight: 600; color: var(--steel); margin-bottom: 4px; }
.enquire__form input[type="text"], .enquire__form input[type="tel"], .enquire__form input[type="email"], .enquire__form textarea {
    width: 100%; border: 1px solid var(--stone); border-radius: var(--radius); padding: 11px 12px; background: var(--ivory); font-size: 15px; }
.enquire__form input:focus, .enquire__form textarea:focus { outline: 2px solid var(--brass-deep); outline-offset: 0; border-color: transparent; background: #fff; }
[dir="rtl"] .enquire__form input[dir="ltr"] { text-align: right; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--steel); line-height: 1.5; }
.check input { margin-top: 3px; accent-color: var(--navy); width: 16px; height: 16px; flex: none; }
.check span { margin: 0; font-weight: 400 !important; font-size: 13px !important; color: var(--steel) !important; }

/* ---------- footer ---------- */
.ft { background: var(--midnight); color: #B7BFD0; padding-top: 72px; }
.ft__cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(152, 162, 186, .2); flex-wrap: wrap; }
.ft__title { color: #fff; }
.ft__sub { margin-top: 8px; }
.ft__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.ft__cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding: 56px 0; }
.ft__brand img { height: 64px; width: auto; }
.ft__brand p { margin-top: 18px; font-size: 14px; }
.ft__addr { color: var(--slate); }
.ft__map { display: inline-flex; align-items: center; gap: 8px; color: var(--brass-light); text-decoration: none; }
.ft__map .ic { width: 18px; height: 18px; }
.ft__map:hover span, .ft__map:focus-visible span { text-decoration: underline; }
.ft h3 { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }
:lang(ar) .ft h3 { letter-spacing: 0; font-size: 14px; font-weight: 700; }
.ft li + li { margin-top: 10px; }
.ft a { text-decoration: none; font-size: 15px; }
.ft a:hover { color: #fff; }
.ft__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 28px; border-top: 1px solid rgba(152, 162, 186, .2); font-size: 13px; color: var(--slate); }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
    .hd__nav { gap: 20px; }
    .hd__wa span { display: none; }
    .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .owners { grid-template-columns: 1fr; gap: 40px; }
    .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search__f:nth-child(2) { border-inline-end: 0; }
    .search__f:nth-child(-n+2) { border-bottom: 1px solid var(--sand); }
    .search__go { grid-column: 1 / -1; }
    .search--bar .search__fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .search--bar .search__f { border: 0; }
    .listing__grid { grid-template-columns: 1fr; gap: 40px; }
    .enquire { position: static; }
    .ft__cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 920px) {
    .hd__burger { display: block; }
    .hd__lang:not(.hd__lang--menu) { display: none; }
    .hd__nav { position: fixed; inset: 80px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 24px; background: var(--ivory); border-bottom: 1px solid var(--stone);
               box-shadow: 0 24px 40px rgba(11, 21, 48, .12); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
    .hd__nav.is-open { transform: none; opacity: 1; visibility: visible; }
    .hd__nav a { padding: 14px 0; border-bottom: 1px solid var(--sand); font-size: 16px; }
    .hd__nav a::after { display: none; }
    .hd__lang--menu { display: block; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
    :root { --gutter: 16px; }
    body { font-size: 15.5px; }
    .hd__in { height: 68px; gap: 12px; }
    .hd__logo img { height: 44px; }
    .hd__nav { inset: 68px 0 auto 0; }
    html { scroll-padding-top: 80px; }
    .hero { min-height: 0; display: block; background: var(--navy); }
    .hero__media { position: relative; display: block; height: 58vh; min-height: 360px; max-height: 520px; }
    .hero__media img { position: absolute; }
    .hero__shade { bottom: auto; height: 58vh; min-height: 360px; max-height: 520px; background: linear-gradient(0deg, rgba(7, 13, 32, .92) 0%, rgba(7, 13, 32, .35) 45%, rgba(7, 13, 32, .1) 100%) !important; }
    .hero__in { position: absolute; top: 0; left: 0; right: 0; height: 58vh; min-height: 360px; max-height: 520px; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0 28px; width: auto; margin: 0 var(--gutter); }
    .hero__title { max-width: none; }
    .hero__sub { margin-top: 12px; font-size: 15px; }
    .hero__search { padding: 0 0 32px; }
    .search--hero { margin-top: -4px; }
    .search__tabs { display: flex; padding: 4px 4px 0; }
    .search__tabs label { flex: 1; text-align: center; }
    .search__tabs span { display: block; }
    .search__fields { grid-template-columns: 1fr 1fr; }
    .search__f { padding: 12px 14px; }
    .search__go { margin: 8px; }
    .filters { position: static; }
    .search--bar .search__fields { grid-template-columns: 1fr 1fr; gap: 10px; }
    .search--bar .search__go { grid-column: 1 / -1; }
    .cards { grid-template-columns: 1fr; gap: 20px; }
    .sec { margin-bottom: 28px; }
    .areas { grid-template-columns: 1fr 1fr; }
    .area { min-height: 116px; padding: 18px; gap: 18px; }
    .area__name { font-size: 1.05rem; }
    .steps { grid-template-columns: 1fr; }
    .why { grid-template-columns: 1fr; gap: 28px; }
    .phead { padding: 32px 0 16px; }
    .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
    .gallery__main { grid-column: 1 / -1; grid-row: auto; }
    .gallery .ph { aspect-ratio: 4 / 3; height: auto; }
    .gallery__thumb:nth-child(n+4) { display: none; }
    .facts { grid-template-columns: 1fr 1fr; }
    .amenities { grid-template-columns: 1fr; }
    .enquire__card { padding: 22px; }
    .ft { padding-top: 48px; }
    .ft__cols { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
    .ft__buttons .btn { width: 100%; }
}

/* ---------- forms, owners page, pagination (day 2) ---------- */
.hp { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-error { background: #FBEBEB; color: #8C1D18; padding: 10px 12px; font-size: 14px; border-inline-start: 3px solid #B3261E; }
.field-error { display: block; margin-top: 4px; color: #B3261E; font-size: 13px; }
.enquire__form [aria-invalid="true"] { border-color: #B3261E !important; }
.enquire__form select { width: 100%; border: 1px solid var(--stone); border-radius: var(--radius); padding: 11px 34px 11px 12px; background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230B1530' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 12px center / 11px 8px; appearance: none; -webkit-appearance: none; font-size: 15px; }
[dir="rtl"] .enquire__form select { padding: 11px 12px 11px 34px; background-position: left 12px center; }
.enquire__form input[type="number"] { width: 100%; border: 1px solid var(--stone); border-radius: var(--radius); padding: 11px 12px; background: var(--ivory); font-size: 15px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 0; padding: 0; margin: 0; }
.seg legend { font-size: 12px; font-weight: 600; color: var(--steel); margin-bottom: 4px; padding: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 11px 8px; border: 1px solid var(--stone); font-size: 14px !important; font-weight: 600 !important; color: var(--navy) !important; margin: 0 !important; background: var(--ivory); }
.seg label + label span { border-inline-start: 0; }
.seg input:checked + span { background: var(--navy); color: #fff !important; border-color: var(--navy); }
.seg input:focus-visible + span { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.sent { text-align: center; padding: 28px 8px 8px; border-top: 1px solid var(--sand); }
.sent .ic { margin: 0 auto 12px; color: #2E7D5B; }
.sent__title { font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.sent p:last-child { color: var(--steel); font-size: 14px; }
.owners-page { padding-top: 48px; }
.owners-page .owners { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; }
.crumb--light { color: var(--slate); }
.crumb--light a:hover { color: #fff; }
.steps--stack { grid-template-columns: 1fr; margin-top: 8px; }
.owners__form { color: var(--ink); }
.owners__alt { margin-top: 16px; font-size: 14px; color: var(--steel); text-align: center; }
.owners__alt a { color: var(--navy); font-weight: 600; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 40px; font-size: 14px; color: var(--steel); }
.card__badge--muted { background: var(--steel); }
.ph--img { width: 100%; object-fit: cover; display: block; }
.ph--img::before { display: none; }
.gallery { position: relative; }
.gallery .ph--img { height: 100%; }
.gallery__more { position: absolute; inset-inline-end: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; background: rgba(7, 13, 32, .82); color: #fff; font: inherit; font-size: 13px; padding: 8px 14px; border: 1px solid rgba(201, 164, 106, .55); border-radius: var(--radius); cursor: pointer; }
.gallery__more .ic { width: 16px; height: 16px; }
.gallery__more:hover, .gallery__more:focus-visible { background: var(--navy); outline: none; }
.gallery__open { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; min-width: 0; min-height: 0; }
.gallery__open .ph { width: 100%; height: 100%; transition: transform .4s ease; }
.gallery__open:hover .ph, .gallery__open:focus-visible .ph { transform: scale(1.02); }
.gallery__open:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(7, 13, 32, .97); color: #fff; }
.viewer::backdrop { background: rgba(7, 13, 32, .9); }
.viewer[open] { display: grid; grid-template-rows: auto 1fr; }
.viewer__bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; font-size: 14px; color: #D5DAE5; }
.viewer__close { background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; padding: 0 6px; }
.viewer__stage { margin: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px 24px; min-height: 0; }
.viewer__stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 1px solid rgba(201, 164, 106, .5); background: rgba(11, 21, 48, .6); color: #fff; font-size: 34px; cursor: pointer; }
.viewer__nav--prev { inset-inline-start: 10px; }
.viewer__nav--next { inset-inline-end: 10px; }
[dir="rtl"] .viewer__nav { transform: translateY(-50%) scaleX(-1); }
@media (max-width: 760px) { .viewer__stage { padding: 0 8px 16px; } .viewer__nav { width: 40px; height: 52px; font-size: 28px; } }
@media (max-width: 1080px) { .owners-page .owners { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr 1fr; } .gallery .ph--img { aspect-ratio: 4 / 3; height: auto; } }
.filters__btn { display: none; }
@media (max-width: 760px) {
    .filters { padding: 12px 0; }
    .filters__btn { display: inline-flex; width: 100%; }
    .filters .search--bar { display: none; margin-top: 12px; }
    .filters .search--bar.is-open { display: block; }
}

/* ---------- text pages (privacy, terms) ---------- */
.wrap--text { width: min(820px, calc(100% - 2 * var(--gutter))); }
.page__date { margin-top: 12px; font-size: 14px; color: var(--steel); }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
:lang(ar) .prose { line-height: 2; }
.prose h2 { font-size: 1.25rem; font-weight: 600; color: var(--navy); margin: 40px 0 12px; }
.prose h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-inline-start: 22px; margin: 12px 0; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 8px; }
.prose a { color: var(--navy); text-decoration-color: var(--brass); text-underline-offset: 3px; }
.ft__legal { display: inline-flex; gap: 20px; }
.ft__legal a { font-size: 13px; }
.check a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); }
/* Consent link: terms and privacy answer */
.consent { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
:lang(ar) .consent { line-height: 2; }
.consent p { margin: 0 0 16px; }
.consent__hello { font-size: 1.25rem; color: var(--navy); }
.consent__title { font-size: 1.15rem; font-weight: 600; color: var(--navy); margin: 28px 0 10px; }
.consent__read a, .consent__contact a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--brass); }
.consent__text { margin: 20px 0; padding: 18px 22px; background: var(--sand); border-inline-start: 3px solid var(--brass); color: var(--navy); font-size: 15px; }
.consent__marketing { margin: 4px 0 24px; }
.consent__marketing span { font-size: 14px !important; }
.consent__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent__actions .btn { min-width: 160px; justify-content: center; }
.consent__note { margin-top: 16px !important; font-size: 13px; color: var(--steel); }
.consent__saved { margin: 8px 0 20px; padding: 14px 18px; border: 1px solid var(--stone); background: var(--white); color: var(--navy); }
.consent__saved--agreed { border-inline-start: 3px solid var(--brass); }
.consent__saved--declined { border-inline-start: 3px solid var(--steel); }
