/* Atlas Homes — style.css · tokens → base → components (BEM) → sections → utilities · mobile-first (640 / 960 / 1280) */
:root {
  --color-bg: #FAF8F4; --color-surface: #FFFFFF; --color-surface-2: #F1ECE3; --color-dark: #0F1E2E; --color-border: #E3DCD0;
  --color-text: #142231; --color-text-muted: #5E6B78; --color-text-on-dark: #F4F1EA;
  --color-primary: #0F1E2E; --color-primary-hover: #1D3349; --color-gold: #B8925A; --color-gold-dark: #8A6A3C; --color-teal: #2B7A8C;
  --color-whatsapp: #25D366; --color-success: #2E7D5B; --color-error: #B3261E;
  --color-overlay: linear-gradient(180deg, rgba(15, 30, 46, .55) 0%, rgba(15, 30, 46, .25) 35%, rgba(15, 30, 46, .80) 100%);
  --tag-ready: #2E7D5B; --tag-offplan: #8A6A3C; --tag-rent: #2B7A8C; --tag-golden: #B8925A;
  --font-heading: "DM Serif Display", Georgia, serif; --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar-heading: "Noto Kufi Arabic", Tahoma, sans-serif; --font-ar-body: "Noto Sans Arabic", Tahoma, sans-serif;
  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1rem; --fs-lg: 1.125rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); --fs-2xl: clamp(1.875rem, 1.3rem + 2.2vw, 3rem); --fs-hero: clamp(2.5rem, 1.6rem + 4.5vw, 5rem);
  --lh-tight: 1.1; --lh-body: 1.65;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem; --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6.5rem;
  --section-pad-y: clamp(var(--space-7), 8vw, var(--space-9)); --gutter: 1rem; --container: 1240px;
  --radius-sm: 4px; --radius-md: 10px; --radius-lg: 18px; --radius-pill: 999px;
  --shadow-soft: 0 6px 20px rgba(15, 30, 46, .06); --shadow-card: 0 18px 44px rgba(15, 30, 46, .12);
  --ease-out: cubic-bezier(.22, 1, .36, 1); --dur-fast: 150ms; --dur-base: 300ms; --dur-slow: 650ms;
  --z-filters: 90; --z-header: 100; --z-fab: 200; --z-modal: 300;
  --header-h: 68px; --fbar-h: 0px;
}
@media (min-width: 640px) { :root { --gutter: 1.5rem; } }
@media (min-width: 960px) { :root { --gutter: 2rem; --header-h: 76px; } }
@media (prefers-reduced-motion: reduce) { :root { --dur-fast: 0ms; --dur-base: 0ms; --dur-slow: 0ms; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--fbar-h) + 12px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body { margin: 0; font: 400 var(--fs-base)/var(--lh-body) var(--font-body); color: var(--color-text); background: var(--color-bg); }
html[dir="rtl"] body { font-family: var(--font-ar-body); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; color: var(--color-text); line-height: var(--lh-tight); margin: 0 0 .5em; }
html[dir="rtl"] :is(h1, h2, h3) { font-family: var(--font-ar-heading); font-weight: 600; line-height: 1.35; }
h1 { font-size: var(--fs-hero); letter-spacing: -.01em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 1em; }
ul, ol, dl, dd { padding: 0; margin: 0; list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
.footer :focus-visible, .hero :focus-visible, .call :focus-visible, .fbar :focus-visible { outline-color: var(--color-gold); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: middle; }
.price, .size, .stat { font-variant-numeric: tabular-nums; }
bdi { unicode-bidi: isolate; }
.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: calc(780px + 2 * var(--gutter)); }
.center { text-align: center; margin-top: var(--space-5); }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 999; background: var(--color-dark); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* ---------- components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.5em; border-radius: var(--radius-pill); border: 1px solid transparent; font: 600 var(--fs-sm)/1.2 var(--font-body); text-decoration: none; text-align: center; transition: background var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast); }
html[dir="rtl"] .btn { font-family: var(--font-ar-body); }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: #fff; }
.btn--primary:hover { background: var(--color-primary-hover); }
.btn--gold { background: var(--color-gold); color: var(--color-dark); }
.btn--gold:hover { background: #C9A46C; }
.btn--whatsapp { background: var(--color-whatsapp); color: var(--color-dark); }
.btn--whatsapp:hover { background: #3BE07A; }
.btn--outline { border-color: var(--color-primary); color: var(--color-primary); background: transparent; }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--color-text-muted); text-decoration: underline; padding-inline: .6em; }
.btn--sm { min-height: 44px; padding: .5em 1.1em; font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; color: inherit; }
.icon-btn:hover { background: rgba(15, 30, 46, .06); }
.eyebrow { font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--color-gold-dark); margin-bottom: var(--space-3); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--font-ar-body); }
.eyebrow--light { color: var(--color-gold); }
.section { padding-block: var(--section-pad-y); }
.section--alt { background: var(--color-surface-2); }
.section__head { max-width: 760px; margin-bottom: var(--space-6); }
.section__lead { color: var(--color-text-muted); font-size: var(--fs-lg); max-width: 60ch; }
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.note { display: flex; gap: .6em; align-items: flex-start; padding: .85em 1em; border-radius: var(--radius-md); background: var(--color-surface-2); color: var(--color-text); font-size: var(--fs-sm); margin: var(--space-5) 0 0; }
.section--alt .note { background: var(--color-surface); }
.note .icon { color: var(--color-gold-dark); margin-top: .15em; }
.note--small { font-size: var(--fs-xs); margin-top: var(--space-3); }
.tag { display: inline-block; padding: .3em .7em; border-radius: var(--radius-pill); font: 700 .6875rem/1.2 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: var(--tag-ready); }
html[dir="rtl"] .tag { letter-spacing: 0; font-family: var(--font-ar-body); }
.tag--offplan { background: var(--tag-offplan); }
.tag--rent { background: var(--tag-rent); }
.tag--golden { background: var(--tag-golden); color: var(--color-dark); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chips--tight .chip { min-width: 44px; justify-content: center; padding-inline: .8em; }
.chips--col { flex-direction: column; align-items: stretch; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: .45em; min-height: 44px; padding: .45em 1em; border-radius: var(--radius-pill); border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"], .chip--radio:has(input:checked) { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.chip--static { min-height: 0; padding: .25em .75em; font-size: var(--fs-xs); background: var(--color-surface-2); border-color: transparent; font-weight: 600; white-space: normal; }
.chip--radio { position: relative; cursor: pointer; }
.chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip--radio:has(input:focus-visible) { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.chip--win { border-radius: var(--radius-md); padding-block: .5em; }
.chip--win > span { display: flex; flex-direction: column; }
.chip__sub { font-weight: 400; font-size: var(--fs-xs); opacity: .8; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: var(--color-surface-2); border: 1px solid var(--color-border); }
.seg button { min-height: 40px; padding: 0 1em; border: 0; border-radius: var(--radius-pill); background: transparent; font-weight: 600; font-size: var(--fs-sm); color: var(--color-text-muted); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
.seg--sm button { min-height: 36px; padding: 0 .8em; }
.seg--dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
.seg--dark button { color: var(--color-text-on-dark); }
.seg--dark button[aria-pressed="true"] { background: var(--color-gold); color: var(--color-dark); }
.input { width: 100%; min-height: 48px; padding: .6em .85em; border: 1px solid #C9BFAE; border-radius: var(--radius-md); background: var(--color-surface); }
.input:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(15, 30, 46, .15); }
.input--sm { min-height: 40px; padding: .4em .6em; font-size: var(--fs-sm); }
.input[aria-invalid="true"], [aria-invalid="true"] .chip { border-color: var(--color-error); }
textarea.input { resize: vertical; }
.toggle { display: inline-flex; align-items: center; gap: .6em; cursor: pointer; min-height: 44px; font-weight: 600; font-size: var(--fs-sm); position: relative; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle__ui { width: 42px; height: 24px; border-radius: 12px; background: #C9BFAE; position: relative; flex: none; transition: background var(--dur-fast); }
.toggle__ui::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: inset-inline-start var(--dur-fast); }
.toggle input:checked + .toggle__ui { background: var(--color-teal); }
.toggle input:checked + .toggle__ui::after { inset-inline-start: 21px; }
.toggle input:focus-visible + .toggle__ui { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--color-primary); flex: none; }
.stars { display: inline-flex; gap: 2px; color: var(--color-gold); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.status__dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #9AA5B1; margin-inline-end: .5em; }
.status--open .status__dot { background: var(--color-success); box-shadow: 0 0 0 4px rgba(46, 125, 91, .18); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
html:not(.js) .reveal, .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- header ---------- */
.header { position: fixed; top: 0; inset-inline: 0; z-index: var(--z-header); color: var(--color-text-on-dark); transition: color var(--dur-base); }
.header::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15, 30, 46, .55), rgba(15, 30, 46, 0)); transition: background var(--dur-base), box-shadow var(--dur-base); }
.header--scrolled { color: var(--color-text); }
.header--scrolled::before { background: rgba(255, 255, 255, .96); box-shadow: 0 1px 0 var(--color-border), var(--shadow-soft); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; margin: 0; }
.logo__icon { width: 34px; height: 34px; color: currentColor; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-body); }
.logo__name { font-weight: 700; letter-spacing: .18em; font-size: .95rem; }
.logo__sub { font-size: .625rem; letter-spacing: .12em; opacity: .75; margin-top: 4px; }
.logo--light { color: var(--color-text-on-dark); }
.header__actions { display: flex; align-items: center; gap: var(--space-2); }
.header__clock, .header__cta, .lang-switch.header__langs { display: none; }
.header__clock { margin: 0; font-size: var(--fs-xs); opacity: .8; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lang-switch { display: inline-flex; border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 2px; }
.lang-switch button { min-width: 38px; min-height: 38px; border: 0; border-radius: var(--radius-pill); background: none; font-weight: 700; font-size: var(--fs-xs); color: inherit; }
.lang-switch button[aria-pressed="true"] { background: var(--color-gold); color: var(--color-dark); }
.cur-select { position: relative; }
.cur-select__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 1px solid currentColor; border-radius: var(--radius-pill); background: transparent; color: inherit; font-weight: 700; font-size: var(--fs-xs); }
.cur-select__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.cur-select__list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 210px; background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-card); padding: 6px; z-index: 5; }
.cur-select__list:focus { outline: none; }
.cur-select__list [role="option"] { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: var(--fs-sm); }
.cur-select__list .is-active, .cur-select__list [role="option"]:hover { background: var(--color-surface-2); }
.cur-select__list [aria-selected="true"] { font-weight: 700; }
.burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 5px; color: inherit; }
.burger span { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--dur-base), opacity var(--dur-base); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(88vw, 360px); background: var(--color-surface); color: var(--color-text); padding: calc(var(--header-h) + 8px) 22px 24px; display: flex; flex-direction: column; gap: var(--space-5); overflow-y: auto; opacity: 0; visibility: hidden; transition: opacity var(--dur-base) var(--ease-out), visibility var(--dur-base); z-index: -1; box-shadow: var(--shadow-card); }
.nav--open { opacity: 1; visibility: visible; }
.nav__list a { display: block; padding: 12px 2px; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; font-weight: 600; }
.nav__drawer-only { display: grid; gap: var(--space-3); justify-items: start; }
.nav__label { margin: 0; font-size: var(--fs-xs); color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .12em; }
.nav__clock { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--color-text-muted); font-size: var(--fs-sm); }
.nav .lang-switch { color: var(--color-text); }
.nav { overflow-x: hidden; }
.nav .seg { flex-wrap: wrap; max-width: 100%; }
.nav .seg button { padding: 0 .75em; }
@media (max-width: 399px) {
  .header__inner { gap: 6px; }
  .header__actions { gap: 4px; }
  .logo { gap: 6px; }
  .logo__icon { width: 28px; height: 28px; }
  .logo__name { font-size: .8rem; letter-spacing: .1em; }
  .logo__sub { font-size: .55rem; }
  .cur-select__btn { padding: 0 8px; }
}
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 30, 46, .5); z-index: calc(var(--z-header) - 1); }

/* ---------- hero ---------- */
.hero { position: relative; color: var(--color-text-on-dark); background: var(--color-dark); padding-top: calc(var(--header-h) + var(--space-6)); isolation: isolate; overflow-x: clip; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ''; position: absolute; inset: 0; background: var(--color-overlay); z-index: -1; }
.hero__inner { position: relative; display: grid; gap: var(--space-5); padding-bottom: var(--space-6); }
.hero .eyebrow { text-shadow: 0 1px 10px rgba(0, 0, 0, .7); color: #E2C08C; }
.hero__content { position: relative; }
.hero__content::before { content: ''; position: absolute; inset: -40px -60px; z-index: -1; background: radial-gradient(closest-side, rgba(15, 30, 46, .55), rgba(15, 30, 46, 0)); pointer-events: none; }
.hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__lead { font-size: var(--fs-lg); max-width: 46ch; color: rgba(244, 241, 234, .92); }
.hero__link { display: inline-flex; align-items: center; gap: .5em; color: #fff; font-weight: 600; min-height: 44px; }
.hero__rating { display: none; margin: 0; }
.qs { background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-card); display: grid; gap: var(--space-3); margin-bottom: calc(-1 * var(--space-7)); position: relative; }
.qs__field { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: 6px; }
.qs__label { font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .1em; padding: 0; }
html[dir="rtl"] .qs__label { letter-spacing: 0; }
.qs .seg { width: 100%; }
.qs .seg button { flex: 1; }
.qs__submit { width: 100%; }

/* ---------- trust ---------- */
.trust { padding-top: calc(var(--space-7) + var(--space-5)); padding-bottom: var(--space-5); border-bottom: 1px solid var(--color-border); }
.trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-3); text-align: center; }
.trust__list li { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.trust__num { font: 400 1.9rem/1.1 var(--font-heading); color: var(--color-text); }
html[dir="rtl"] .trust__num { font-family: var(--font-ar-heading); font-weight: 600; font-size: 1.6rem; }

/* ---------- listings & filters ---------- */
.listings-section { padding-bottom: var(--space-8); }
.mbar { position: sticky; top: var(--header-h); z-index: var(--z-filters); background: rgba(250, 248, 244, .96); border-block: 1px solid var(--color-border); padding-block: 8px; margin-bottom: var(--space-4); }
.mbar__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.mbar__inner .seg { justify-self: start; }
.mbar__inner .chips { grid-column: 1 / -1; min-width: 0; }
.mbar__open { min-height: 44px; }
.fbar { display: none; }
.fpanel { display: flex; flex-direction: column; max-height: 100%; }
.fpanel__head { display: flex; align-items: center; justify-content: space-between; padding: 12px var(--gutter); border-bottom: 1px solid var(--color-border); }
.fpanel__head h3 { margin: 0; font-size: var(--fs-lg); }
.fpanel__body { padding: var(--space-4) var(--gutter); display: grid; gap: var(--space-5); overflow-y: auto; flex: 1; }
.fpanel__foot { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); background: var(--color-surface); }
.fpanel__foot .btn--primary { flex: 1; }
.fgroup { display: grid; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.fgroup__label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); }
.fgroup__label small { text-transform: none; letter-spacing: 0; font-weight: 600; }
html[dir="rtl"] .fgroup__label { letter-spacing: 0; }
.range { position: relative; height: 36px; --a: 0%; --b: 0%; }
.range__track { position: absolute; inset-inline: 10px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--color-border); }
.range__fill { position: absolute; top: 0; bottom: 0; inset-inline-start: var(--a); inset-inline-end: var(--b); background: var(--color-gold); border-radius: 2px; }
.range__input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range__input::-webkit-slider-runnable-track { background: none; }
.range__input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-gold-dark); box-shadow: var(--shadow-soft); cursor: grab; }
.range__input::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-gold-dark); cursor: grab; }
.range__input::-moz-range-track { background: none; }
.range__input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.range__nums { display: flex; align-items: center; gap: 8px; }
.range__nums label { flex: 1; }
.more__btn { display: none; }
.more__panel { display: grid; gap: var(--space-5); }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); }
.toolbar__count { margin: 0; font-weight: 700; }
.toolbar__count:focus { outline: none; }
.toolbar__right { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); }
.toolbar__sort select { width: auto; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }
.pills:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 .8em; border-radius: var(--radius-pill); border: 1px solid var(--color-gold); background: rgba(184, 146, 90, .12); font-size: var(--fs-xs); font-weight: 700; color: var(--color-text); }
.pill .icon { width: 14px; height: 14px; }
.pill--clear { background: none; border-color: transparent; text-decoration: underline; }
.listings { display: grid; gap: var(--space-5); }
.listing__card { overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: box-shadow var(--dur-base), transform var(--dur-base) var(--ease-out); }
.listing__card:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.listing__media { position: relative; }
.listing__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.listing__tags { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.listing__tags--inline { position: static; margin-bottom: var(--space-3); }
.fav { position: absolute; top: 8px; inset-inline-end: 8px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--color-text); display: grid; place-items: center; box-shadow: var(--shadow-soft); }
.fav .icon { fill: transparent; transition: fill var(--dur-fast), transform var(--dur-fast); }
.fav[aria-pressed="true"] { color: #C0392B; }
.fav[aria-pressed="true"] .icon { fill: currentColor; transform: scale(1.08); }
.listing__body { padding: var(--space-4) var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.listing__price { font: 400 var(--fs-xl)/1.2 var(--font-heading); margin: 0; color: var(--color-text); }
html[dir="rtl"] .listing__price { font-family: var(--font-body); font-weight: 700; }
.listing__price small { font: 600 var(--fs-xs) var(--font-body); color: var(--color-text-muted); }
.listing__sub { margin: 0; font-size: var(--fs-xs); color: var(--color-text-muted); min-height: 1.2em; }
.listing__title { font: 700 var(--fs-base)/1.35 var(--font-body); margin: 6px 0 0; }
html[dir="rtl"] .listing__title { font-family: var(--font-ar-body); }
.listing__title a { color: inherit; text-decoration: none; }
.listing__title a:hover { text-decoration: underline; }
.listing__place, .listing__specs { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); }
.listing__yield { margin: 4px 0 0; color: var(--color-success); font-weight: 700; font-size: var(--fs-sm); }
.listing__permit { margin: 4px 0 var(--space-3); font-size: var(--fs-xs); color: var(--color-text-muted); }
.listing__btn { margin-top: auto; align-self: flex-start; }
.empty { text-align: center; padding: var(--space-6) var(--space-4); border: 1px dashed var(--color-border); border-radius: var(--radius-lg); display: grid; justify-items: center; gap: var(--space-3); }
.empty p { max-width: 52ch; margin: 0; }
.empty__icon { width: 48px; height: 48px; color: var(--color-gold-dark); }

/* sheet (mobile filters) */
.sheet { border: 0; padding: 0; margin: auto 0 0; width: 100%; max-width: 100%; max-height: 88dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--color-surface); color: var(--color-text); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up var(--dur-base) var(--ease-out); }
.sheet::backdrop { background: rgba(15, 30, 46, .5); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet .fpanel { height: 100%; overflow: hidden; }

/* ---------- detail dialog ---------- */
.detail { border: 0; padding: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; background: var(--color-surface); color: var(--color-text); }
.detail::backdrop { background: rgba(15, 30, 46, .7); }
.detail__grid { display: grid; min-height: 100%; }
.detail__media { background: var(--color-dark); }
.gallery { position: relative; }
.gallery__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; touch-action: pan-y; user-select: none; }
.gallery__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--color-text); display: grid; place-items: center; }
.gallery__btn--prev { inset-inline-start: 10px; }
.gallery__btn--next { inset-inline-end: 10px; }
.gallery__btn--prev .icon, [dir="rtl"] .gallery__btn--next .icon { transform: scaleX(-1); }
[dir="rtl"] .gallery__btn--prev .icon { transform: none; }
.gallery__count { position: absolute; bottom: 10px; inset-inline-end: 10px; margin: 0; padding: 2px 10px; border-radius: var(--radius-pill); background: rgba(15, 30, 46, .7); color: #fff; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.detail__body { position: relative; padding: var(--space-5) var(--gutter) calc(var(--space-5) + 80px); }
.detail__close { position: fixed; top: 10px; inset-inline-end: 10px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-soft); z-index: 2; }
.detail__title { font-size: var(--fs-xl); margin-bottom: 4px; }
.detail__price { font: 400 var(--fs-2xl)/1.2 var(--font-heading); margin: var(--space-3) 0; }
html[dir="rtl"] .detail__price { font-family: var(--font-body); font-weight: 700; }
.detail__price small { display: block; font: 600 var(--fs-sm) var(--font-body); color: var(--color-text-muted); }
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: var(--space-4); }
.specs div { background: var(--color-surface); padding: 10px 12px; }
.specs dt { font-size: var(--fs-xs); color: var(--color-text-muted); }
.specs dd { font-weight: 700; font-size: var(--fs-sm); }
.features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--space-4); }
.detail__plan { padding: var(--space-3) var(--space-4); border-inline-start: 3px solid var(--color-gold); background: var(--color-bg); margin-bottom: var(--space-4); }
.detail__plan p { margin: 0; }
.detail__cost { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: var(--fs-sm); }
.detail__cost .icon { color: var(--color-gold-dark); }
.detail__agent { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.detail__agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; }
.detail__agent p { margin: 0; line-height: 1.4; }
.detail__actions { position: fixed; bottom: 0; inset-inline: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--color-surface); border-top: 1px solid var(--color-border); z-index: 2; }
.detail__actions .btn--sm { grid-column: span 1; }
.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); z-index: calc(var(--z-modal) + 1); background: var(--color-dark); color: #fff; padding: 10px 18px; border-radius: var(--radius-pill); font-size: var(--fs-sm); margin: 0; box-shadow: var(--shadow-card); }

/* ---------- cities / services / steps ---------- */
.cities, .services { display: grid; gap: var(--space-5); }
.city { overflow: hidden; display: flex; flex-direction: column; }
.city img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.city__body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.city__body h3, .city__body p { margin: 0; }
.city__nums { display: grid; gap: 8px; padding-block: var(--space-3); border-block: 1px solid var(--color-border); margin-top: auto; }
.city__nums div { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-sm); }
.city__nums dt { color: var(--color-text-muted); }
.city__nums dd { font-weight: 700; text-align: end; }
.service { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.service h3 { font-size: var(--fs-lg); margin: 0; }
html:not([dir="rtl"]) .service h3 { font-family: var(--font-body); font-weight: 700; }
.service p { margin: 0; color: var(--color-text-muted); }
.service__icon { width: 40px; height: 40px; color: var(--color-gold-dark); margin-bottom: var(--space-2); }
.service .service__fee { color: var(--color-text); font-size: var(--fs-sm); margin-top: auto; padding-top: var(--space-3); border-top: 1px solid var(--color-border); }
.service a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }
.steps-wrap { display: grid; gap: var(--space-6); }
.steps { display: grid; gap: var(--space-4); position: relative; }
.steps__item { display: flex; gap: var(--space-4); align-items: flex-start; }
.steps__item h3 { font-size: var(--fs-lg); margin: 4px 0; }
.steps__item p { margin: 0; color: var(--color-text-muted); }
.steps__num { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-gold); color: var(--color-gold-dark); display: grid; place-items: center; font: 400 1.3rem var(--font-heading); background: var(--color-surface); }
.steps__media { margin: 0; }
.steps__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 10 / 7; object-fit: cover; }

/* ---------- calculator ---------- */
.calc { display: grid; gap: var(--space-5); align-items: start; }
.calc__form { padding: var(--space-5); display: grid; gap: var(--space-5); }
.row { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { font-weight: 700; font-size: var(--fs-sm); padding: 0; }
.field__opt { font-weight: 400; color: var(--color-text-muted); font-size: var(--fs-xs); }
.field__hint { margin: 0; color: var(--color-text-muted); font-size: var(--fs-xs); }
.field__error { margin: 0; color: var(--color-error); font-size: var(--fs-xs); font-weight: 600; }
.field__error:empty { display: none; }
.field__counter { text-align: end; }
.calc__card { padding: var(--space-5); border-top: 3px solid var(--color-gold); }
.calc__card h3 { font-size: var(--fs-xl); }
.calc__lines { display: grid; }
.calc__line { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.calc__line--muted { color: var(--color-text-muted); }
.calc__line dd { text-align: end; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc__line dd small, .calc__total small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--color-text-muted); }
.calc__total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px var(--space-3); margin: var(--space-4) 0 var(--space-3); }
.calc__total span { font-weight: 700; }
.calc__total strong { font: 400 var(--fs-2xl)/1.1 var(--font-heading); color: var(--color-text); font-variant-numeric: tabular-nums; }
html[dir="rtl"] .calc__total strong { font-family: var(--font-body); font-weight: 700; }
.calc__total small { width: 100%; text-align: end; }
.calc__extra { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--color-text-muted); }
.calc__extra li::before { content: '· '; color: var(--color-gold-dark); }
.calc__card .btn { margin-top: var(--space-4); }

/* ---------- agents & reviews ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: var(--space-4); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; padding-bottom: 4px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.dots { display: flex; justify-content: center; gap: 2px; margin-top: var(--space-3); }
.dots__dot { width: 32px; height: 32px; border: 0; background: none; display: grid; place-items: center; padding: 0; }
.dots__dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #C9BFAE; transition: width var(--dur-fast); }
.dots__dot[aria-current="true"]::before { width: 22px; border-radius: 4px; background: var(--color-gold-dark); }
.agent { overflow: hidden; display: flex; flex-direction: column; }
.agent img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.agent__body { padding: var(--space-4) var(--space-5) var(--space-5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.agent__body h3 { margin: 0; font-size: var(--fs-xl); }
.agent__body p { margin: 0; }
.agent__langs { font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-muted); margin-inline-start: 6px; }
.agent__brn { font-size: var(--fs-xs); color: var(--color-text-muted); }
.agent__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--space-3); }
.review { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); }
.review blockquote { margin: 0; font: 400 1.15rem/1.45 var(--font-heading); flex: 1; }
html[dir="rtl"] .review blockquote { font-family: var(--font-ar-body); font-size: 1.05rem; line-height: 1.8; }
.review__who { margin: 0; color: var(--color-text-muted); font-size: var(--fs-sm); }
.reviews__note { text-align: center; font-size: var(--fs-xs); color: var(--color-text-muted); margin-top: var(--space-4); }
.reviews__sum { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px var(--space-4); margin: 0; }
.reviews__sum a { font-weight: 700; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- call banner ---------- */
.call { position: relative; overflow: hidden; background: var(--color-dark); color: var(--color-text-on-dark); border-block: 1px solid var(--color-gold); padding-block: var(--space-7); }
.call__skyline { position: absolute; inset-inline: 0; bottom: 0; width: 100%; height: 80px; color: var(--color-gold); opacity: .18; }
.call__inner { position: relative; display: grid; gap: var(--space-5); align-items: center; }
.call__title { color: #fff; font-size: var(--fs-xl); }
.call p { margin: 0 0 .5em; max-width: 60ch; }
.call__small { font-size: var(--fs-xs); opacity: .8; }

/* ---------- visit form ---------- */
.booking { display: grid; gap: var(--space-5); align-items: start; }
.booking__form { padding: var(--space-5); display: grid; gap: var(--space-5); }
.ref-chips { display: grid; gap: 8px; }
.ref-chips:empty { display: none; }
.ref-chip { display: flex; align-items: center; gap: var(--space-3); padding: 6px; padding-inline-end: 4px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-bg); }
.ref-chip img { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; }
.ref-chip span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.ref-chip small { color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-chip button { width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; }
.phone { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.booking__submit { display: grid; gap: var(--space-2); justify-items: center; }
.form__micro { margin: 0; font-size: var(--fs-xs); color: var(--color-text-muted); }
.form__success { margin: 0; padding: 10px 14px; border-radius: var(--radius-md); background: rgba(46, 125, 91, .1); color: var(--color-success); font-weight: 700; width: 100%; }
.summary { padding: var(--space-5); display: grid; gap: var(--space-4); }
.summary h3 { margin: 0; }
.summary__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.summary__thumbs:empty { display: none; }
.summary__thumbs li { position: relative; }
.summary__thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.summary__thumbs span { position: absolute; bottom: 4px; inset-inline-start: 4px; background: rgba(15, 30, 46, .75); color: #fff; font-size: .6875rem; padding: 1px 6px; border-radius: 4px; }
.summary__agent { display: flex; gap: var(--space-3); align-items: center; }
.summary__agent img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top; flex: none; }
.summary__agent p { margin: 0; line-height: 1.4; }
.info { display: grid; gap: 10px; font-size: var(--fs-sm); }
.info li { display: flex; gap: 10px; align-items: flex-start; }
.info .icon { color: var(--color-gold-dark); margin-top: .15em; }

/* ---------- valuation ---------- */
.val { display: grid; gap: var(--space-6); align-items: center; }
.val__points { display: grid; gap: 8px; }
.val__points li { display: flex; gap: 8px; align-items: flex-start; }
.val__points .icon { color: var(--color-success); margin-top: .2em; }
.val__form { padding: var(--space-5); display: grid; gap: var(--space-4); }
.size-in { display: flex; gap: 8px; align-items: center; }

/* ---------- FAQ, contact, map ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 56px; padding: 14px 18px; cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--color-gold-dark); transition: transform var(--dur-base); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--color-text-muted); }
.contact { display: grid; gap: var(--space-5); }
.contact__info { padding: var(--space-5); display: grid; gap: var(--space-4); align-content: start; }
.contact__info h2 { margin: 0; font-size: var(--fs-xl); }
.contact__info .eyebrow { margin: 0; }
.contact__live .status { display: inline-flex; align-items: center; font-weight: 700; }
.contact__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.map { position: relative; width: 100%; min-height: 300px; aspect-ratio: 16 / 10; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(135deg, #E9E1D3, #F6F1E8); border: 1px solid var(--color-border); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; gap: 4px; padding: var(--space-5); }
.map__facade p { margin: 0 0 6px; color: var(--color-text-muted); font-size: var(--fs-sm); }
.map__facade strong { color: var(--color-text); }
.map__pin { width: 56px; height: 56px; padding: 10px; border-radius: 50%; background: var(--color-dark); color: #fff; margin-bottom: 8px; }

/* ---------- footer, fab ---------- */
.footer { background: var(--color-dark); color: var(--color-text-on-dark); padding-top: var(--space-8); font-size: var(--fs-sm); }
.footer a { color: #fff; }
.footer p { color: rgba(244, 241, 234, .82); }
.footer__grid { display: grid; gap: var(--space-6); padding-bottom: var(--space-6); }
.footer__title { font: 700 var(--fs-xs) var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--color-gold); margin-bottom: var(--space-3); }
html[dir="rtl"] .footer__title { letter-spacing: 0; font-family: var(--font-ar-body); }
.footer__small { font-size: var(--fs-xs); }
.footer__col { display: grid; gap: var(--space-3); align-content: start; justify-items: start; }
.footer .lang-switch { color: var(--color-text-on-dark); border-color: rgba(255, 255, 255, .3); }
.socials { display: flex; gap: 8px; margin-top: var(--space-4); }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .2); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: var(--space-5) 96px; font-size: var(--fs-xs); }
.footer__bottom p { margin: 0 0 6px; }
.fab { position: fixed; inset-block-end: 16px; inset-inline-end: 16px; z-index: var(--z-fab); width: 56px; height: 56px; border-radius: 50%; background: var(--color-whatsapp); color: var(--color-dark); display: grid; place-items: center; box-shadow: var(--shadow-card); transition: opacity var(--dur-base), transform var(--dur-base); }
.fab svg { width: 28px; height: 28px; }
.fab--hidden { opacity: 0; transform: scale(.8); pointer-events: none; }

/* ================= ≥ 640px ================= */
@media (min-width: 640px) {
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .trust__list li + li { border-inline-start: 1px solid var(--color-gold); }
  .listings, .services { grid-template-columns: repeat(2, 1fr); }
  .carousel { grid-auto-columns: calc((100% - var(--space-4)) / 2); }
  .row { grid-template-columns: 1fr 1fr; align-items: start; }
  .specs { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .call__inner { grid-template-columns: 1fr auto; }
  .detail__actions { grid-template-columns: repeat(4, auto); justify-content: start; }
}

/* ================= ≥ 960px ================= */
@media (min-width: 960px) {
  :root { --fbar-h: 76px; }
  .header__clock, .lang-switch.header__langs, .header__cta { display: inline-flex; }
  .hero { min-height: 640px; padding-top: calc(var(--header-h) + var(--space-8)); }
  .hero__inner { padding-bottom: var(--space-6); }
  .hero__rating { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; position: absolute; top: 0; inset-inline-end: var(--gutter); padding: 12px 16px; border-radius: var(--radius-md); background: rgba(255, 255, 255, .95); color: var(--color-text); font-size: var(--fs-sm); box-shadow: var(--shadow-card); }
  .qs { grid-template-columns: auto 1fr 1fr auto auto; align-items: end; padding: var(--space-4) var(--space-5); margin-bottom: calc(-1 * var(--space-7)); }
  .qs .seg { width: auto; }
  .qs__submit { width: auto; }
  .mbar { display: none; }
  .fbar { display: block; position: sticky; top: var(--header-h); z-index: var(--z-filters); background: var(--color-dark); color: var(--color-text-on-dark); margin-bottom: var(--space-5); }
  .fbar .fpanel__head, .fbar .fpanel__foot .btn--primary { display: none; }
  .fbar .fpanel { flex-direction: row; align-items: center; }
  .fbar .fpanel__body { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-5); padding: 10px 0; overflow: visible; }
  .fbar .fpanel__foot { border: 0; background: none; padding: 0; }
  .fbar .btn--ghost { color: var(--color-gold); }
  .fbar .fgroup { grid-auto-flow: column; align-items: center; gap: 10px; }
  .fbar .fgroup__label { color: rgba(244, 241, 234, .7); }
  .fbar .seg { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .15); }
  .fbar .seg button { color: var(--color-text-on-dark); min-height: 36px; }
  .fbar .seg button[aria-pressed="true"] { background: var(--color-gold); color: var(--color-dark); }
  .fbar .chip { background: transparent; color: var(--color-text-on-dark); border-color: rgba(255, 255, 255, .25); min-height: 38px; padding-block: .3em; }
  .fbar .chip[aria-pressed="true"] { background: var(--color-gold); border-color: var(--color-gold); color: var(--color-dark); }
  .fbar .fgroup--budget { grid-auto-flow: row; gap: 2px; min-width: 260px; }
  .fbar .range { height: 28px; }
  .fbar .range__track { background: rgba(255, 255, 255, .2); }
  .fbar .range__nums .input { background: transparent; color: var(--color-text-on-dark); border-color: rgba(255, 255, 255, .25); min-height: 32px; padding: .2em .5em; }
  .fbar .range__input::-webkit-slider-thumb { width: 20px; height: 20px; border-color: var(--color-gold); }
  .more { position: relative; }
  .more__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 1em; border-radius: var(--radius-pill); border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: var(--color-text-on-dark); font-weight: 600; font-size: var(--fs-sm); }
  .more__btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .more__panel { display: none; position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 320px; padding: var(--space-5); background: var(--color-surface); color: var(--color-text); border-radius: var(--radius-md); box-shadow: var(--shadow-card); z-index: 5; }
  .more--open .more__panel { display: grid; }
  .more__panel .fgroup { grid-auto-flow: row; }
  .more__panel .fgroup__label { color: var(--color-text-muted); }
  .more__panel .seg { background: var(--color-surface-2); border-color: var(--color-border); }
  .more__panel .seg button { color: var(--color-text-muted); }
  .more__panel .seg button[aria-pressed="true"] { background: var(--color-primary); color: #fff; }
  .listings { grid-template-columns: repeat(3, 1fr); }
  .cities { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(3, 1fr); }
  .steps-wrap { grid-template-columns: 1fr 1fr; align-items: center; }
  .calc { grid-template-columns: 45fr 55fr; }
  .calc__result { position: sticky; top: calc(var(--header-h) + 16px); }
  .carousel { grid-auto-columns: calc((100% - 2 * var(--space-4)) / 3); overflow: visible; }
  .carousel + .dots { display: none; }
  .booking { grid-template-columns: 60fr 40fr; }
  .summary { position: sticky; top: calc(var(--header-h) + 16px); }
  .val { grid-template-columns: 45fr 55fr; }
  .contact { grid-template-columns: 40fr 60fr; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
  .footer__bottom { padding-bottom: var(--space-5); }
  .detail { width: min(1180px, 94vw); height: min(800px, 92dvh); max-height: 92dvh; margin: auto; border-radius: var(--radius-lg); overflow: hidden; }
  .detail__grid { grid-template-columns: 60fr 40fr; min-height: 0; height: 100%; }
  .gallery { width: 100%; height: 100%; }
  .gallery__img { height: 100%; aspect-ratio: auto; }
  .detail__body { overflow-y: auto; max-height: 100%; padding: var(--space-6) var(--space-5) 0; }
  .detail__close { position: absolute; top: 12px; }
  .detail__actions { position: sticky; bottom: 0; grid-template-columns: 1fr 1fr; margin-inline: calc(-1 * var(--space-5)); padding-inline: var(--space-5); margin-top: var(--space-4); }
  .specs { grid-template-columns: 1fr 1fr; }
  .toast { bottom: 30px; }
}

/* ================= ≥ 1280px ================= */
@media (min-width: 1280px) {
  .burger { display: none; }
  .nav { position: static; transform: none; visibility: visible; height: auto; width: auto; padding: 0; background: none; color: inherit; box-shadow: none; flex-direction: row; overflow: visible; z-index: auto; }
  .nav__drawer-only, .nav__extra { display: none; }
  .nav__list { display: flex; gap: 2px; }
  .nav__list a { border: 0; padding: 8px 12px; color: inherit; font-size: var(--fs-sm); border-radius: 8px; white-space: nowrap; }
  .nav__list a:hover { background: rgba(128, 128, 128, .15); }
  .drawer-backdrop { display: none !important; }
  .listings { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print { .header, .fab, .mbar, .fbar, .map, .detail, .sheet { display: none !important; } .reveal { opacity: 1; transform: none; } }
