/* ==========================================================================
   AKARONA.NET — assets/css/style.css
   Original luxury real-estate identity: deep navy, gold, sand.
   Mobile-first, responsive, RTL-aware (see rtl.css for the mirror rules).
   ========================================================================== */

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
  --navy-900: #0a1626;
  --navy-800: #0f1e33;
  --navy-700: #16294a;
  --navy-600: #1e3559;
  --navy-500: #2b4670;

  --gold-500: #c9a24a;
  --gold-400: #d8b76a;
  --gold-300: #e8c37a;
  --gold-100: #f6ecd6;

  --sand-50:  #fbf9f5;
  --sand-100: #f5f1e8;
  --sand-200: #e9e2d3;
  --sand-300: #d9cfba;

  --ink-900: #14202f;
  --ink-700: #33445c;
  --ink-500: #5b6b80;
  --ink-400: #7d8b9e;

  --ok-500:   #1f7a4d;
  --ok-100:   #e3f4ea;
  --warn-500: #a86a12;
  --warn-100: #fdf1dc;
  --err-500:  #a83232;
  --err-100:  #fbe6e6;
  --info-500: #1f5f8b;
  --info-100: #e4f0f8;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(10, 22, 38, .06), 0 2px 8px rgba(10, 22, 38, .05);
  --shadow:    0 4px 12px rgba(10, 22, 38, .08), 0 12px 32px rgba(10, 22, 38, .07);
  --shadow-lg: 0 12px 28px rgba(10, 22, 38, .12), 0 32px 64px rgba(10, 22, 38, .12);

  --font-ar: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-en: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --container: 1240px;
  --header-h: 76px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-900);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html[lang="en"] body { font-family: var(--font-en); }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--gold-500); }
button { font: inherit; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; color: var(--navy-800); }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p  { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--sand-200); margin: 2rem 0; }

:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container.narrow { max-width: 820px; }
.container.wide   { max-width: 1440px; }

.section { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.section--tint { background: var(--sand-100); }
.section--navy { background: var(--navy-800); color: #e8eef7; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.75rem; flex-wrap: wrap;
}
.section-head__text { max-width: 62ch; }
.section-head p { color: var(--ink-500); margin: 0; }
.section-head--center { flex-direction: column; align-items: center; text-align: center; }

.grid { display: grid; gap: 1.5rem; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  text-align: center; white-space: nowrap;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease),
              background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  min-height: 46px; /* comfortable touch target */
}
.btn:active { transform: translateY(1px); }
.btn--sm { padding: .55rem 1.05rem; font-size: .875rem; min-height: 40px; }
.btn--lg { padding: 1rem 2rem; font-size: 1.05rem; min-height: 54px; }
.btn--block { width: 100%; }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(201, 162, 74, .32);
}
.btn--primary:hover { color: var(--navy-900); box-shadow: 0 8px 24px rgba(201, 162, 74, .42); transform: translateY(-1px); }

.btn--navy { background: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); color: #fff; }

.btn--outline { background: transparent; border-color: var(--sand-300); color: var(--navy-700); }
.btn--outline:hover { border-color: var(--gold-500); color: var(--gold-500); background: var(--gold-100); }

.btn--ghost { background: transparent; color: var(--navy-700); }
.btn--ghost:hover { background: var(--sand-100); color: var(--navy-800); }

.btn--danger { background: var(--err-500); color: #fff; }
.btn--danger:hover { background: #8f2a2a; color: #fff; }

.btn--success { background: var(--ok-500); color: #fff; }
.btn--success:hover { background: #186139; color: #fff; }

.btn--warn { background: var(--warn-500); color: #fff; }
.btn--warn:hover { background: #8c570f; color: #fff; }

.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 249, 245, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--sand-200);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { display: block; line-height: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name { font-weight: 800; font-size: 1.15rem; color: var(--navy-800); letter-spacing: .2px; }
.brand__tag  { font-size: .72rem; color: var(--ink-400); font-weight: 500; }
.brand--footer .brand__name { color: #fff; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: .6rem; border-radius: var(--radius-sm);
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy-800); border-radius: 2px; transition: transform .2s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.primary-nav { display: flex; align-items: center; gap: 1.5rem; flex: 1; justify-content: flex-end; }
.nav-list { display: flex; align-items: center; gap: .25rem; }
.nav-list a {
  display: block; padding: .5rem .8rem; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 600; color: var(--ink-700);
}
.nav-list a:hover, .nav-list a.is-active { background: var(--sand-100); color: var(--navy-800); }

.nav-actions { display: flex; align-items: center; gap: .5rem; }

.lang-switch, .currency-switch {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .8rem; border: 1.5px solid var(--sand-300); border-radius: var(--radius-pill);
  font-size: .82rem; font-weight: 700; color: var(--navy-700); background: #fff;
  min-height: 38px;
}
.lang-switch:hover, .currency-switch:hover { border-color: var(--gold-500); color: var(--gold-500); }
.currency-switch__code { letter-spacing: .5px; }

.nav-user { position: relative; }
.nav-user__btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 1.5px solid var(--sand-300); border-radius: var(--radius-pill);
  padding: .35rem .8rem .35rem .35rem; min-height: 40px;
}
.nav-user__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900); font-weight: 800; font-size: .85rem;
  display: grid; place-items: center;
}
.nav-user__name { font-size: .85rem; font-weight: 600; color: var(--navy-700); }
.nav-user__menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + .5rem);
  min-width: 210px; background: #fff; border: 1px solid var(--sand-200);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .4rem; display: none; z-index: 50;
}
.nav-user__menu.is-open { display: block; }
.nav-user__menu a { display: block; padding: .6rem .8rem; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 600; }
.nav-user__menu a:hover { background: var(--sand-100); }

/* ── Flash messages ─────────────────────────────────────────────────────── */
.flash-stack {
  position: fixed; top: calc(var(--header-h) + .75rem); inset-inline-end: 1rem;
  z-index: 200; display: flex; flex-direction: column; gap: .5rem; max-width: min(420px, calc(100vw - 2rem));
}
.flash {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 1rem; border-radius: var(--radius);
  box-shadow: var(--shadow); font-size: .9rem; font-weight: 600;
  border-inline-start: 4px solid;
  animation: flashIn .3s var(--ease);
}
@keyframes flashIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.flash--success { background: var(--ok-100); color: var(--ok-500); border-color: var(--ok-500); }
.flash--error   { background: var(--err-100); color: var(--err-500); border-color: var(--err-500); }
.flash--info    { background: var(--info-100); color: var(--info-500); border-color: var(--info-500); }
.flash__close { background: none; border: 0; font-size: 1.3rem; line-height: 1; color: inherit; opacity: .6; margin-inline-start: auto; }
.flash__close:hover { opacity: 1; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 55%, var(--navy-600) 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(201, 162, 74, .22), transparent 65%),
    radial-gradient(700px 380px at 5% 110%, rgba(201, 162, 74, .12), transparent 60%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem; border-radius: var(--radius-pill);
  background: rgba(201, 162, 74, .16); border: 1px solid rgba(201, 162, 74, .38);
  color: var(--gold-300); font-size: .8rem; font-weight: 700; margin-bottom: 1.25rem;
}
.hero h1 { color: #fff; max-width: 20ch; margin-bottom: .75rem; }
.hero__sub { color: #c3d0e2; font-size: clamp(1rem, 2vw, 1.15rem); max-width: 58ch; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.hero__stats { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.hero__stat strong { display: block; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-300); font-weight: 800; }
.hero__stat span { font-size: .85rem; color: #9fb0c7; }

/* ── Search form ────────────────────────────────────────────────────────── */
.search-form {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 1.5rem;
  border: 1px solid var(--sand-200);
}
.search-form--hero { margin-top: -3.5rem; position: relative; z-index: 5; }
.search-form__grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  align-items: end;
}
.search-form__more { margin-top: 1rem; text-align: center; }
.link-more { font-size: .88rem; font-weight: 700; color: var(--gold-500); }
.link-more:hover { color: var(--navy-700); }

/* ── Form fields ────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-700); }
.field__hint { font-size: .78rem; color: var(--ink-400); }
.field__error { font-size: .78rem; color: var(--err-500); font-weight: 600; }
.field__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.field--submit { justify-content: flex-end; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="password"], input[type="date"], input[type="url"], input[type="search"],
select, textarea {
  width: 100%; padding: .7rem .9rem;
  border: 1.5px solid var(--sand-300); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink-900); font: inherit; font-size: .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
  min-height: 46px;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.7; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6b80' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 18px; padding-inline-end: 2.2rem; }
html[dir="rtl"] select { background-position: left .7rem center; }

input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 162, 74, .18);
}
input.is-invalid, select.is-invalid, textarea.is-invalid { border-color: var(--err-500); }
input::placeholder, textarea::placeholder { color: var(--ink-400); }

.checkbox, .radio {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .92rem; font-weight: 500; color: var(--ink-700); cursor: pointer;
  padding: .5rem 0;
}
.checkbox input, .radio input { width: 20px; height: 20px; min-height: 0; margin: 0; accent-color: var(--gold-500); flex-shrink: 0; margin-top: .15rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.5rem; }
legend { font-weight: 700; color: var(--navy-800); margin-bottom: .75rem; font-size: 1rem; }

.form-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.form-grid--full { grid-column: 1 / -1; }
.form-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: #fff; border: 1px solid var(--sand-200);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }

.property-card { display: flex; flex-direction: column; }
.property-card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--sand-200); overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.05); }

.property-card__badges { position: absolute; top: .7rem; inset-inline-start: .7rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.property-card__count {
  position: absolute; bottom: .7rem; inset-inline-end: .7rem;
  display: inline-flex; align-items: center; gap: .3rem;
  background: rgba(10, 22, 38, .78); color: #fff;
  padding: .25rem .6rem; border-radius: var(--radius-pill); font-size: .75rem; font-weight: 700;
}
.property-card__body { padding: 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.property-card__title { margin: 0; font-size: 1.02rem; line-height: 1.45; }
.property-card__title a { color: var(--navy-800); }
.property-card__title a:hover { color: var(--gold-500); }
.property-card__location { display: flex; align-items: center; gap: .35rem; font-size: .82rem; color: var(--ink-500); margin: 0; }
.property-card__location svg { flex-shrink: 0; color: var(--gold-500); }
.property-card__price { margin: .25rem 0 0; font-size: 1.25rem; font-weight: 800; color: var(--navy-800); display: flex; align-items: baseline; gap: .3rem; flex-wrap: wrap; }
.price-currency { font-size: .9rem; font-weight: 700; color: var(--gold-500); }
.price-period { font-size: .78rem; font-weight: 600; color: var(--ink-400); }
.price-estimated {
  font-size: .68rem; font-weight: 700; color: var(--warn-500);
  background: var(--warn-100); padding: .1rem .45rem; border-radius: var(--radius-pill);
}
.property-card__specs { display: flex; flex-wrap: wrap; gap: .75rem; font-size: .8rem; color: var(--ink-500); margin: 0; }
.property-card__specs li { display: inline-flex; align-items: center; gap: .3rem; }
.property-card__specs svg { color: var(--gold-500); flex-shrink: 0; }
.property-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--sand-100); }
.property-card__ref { font-size: .72rem; color: var(--ink-400); font-weight: 600; letter-spacing: .3px; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .22rem .6rem; border-radius: var(--radius-pill);
  font-size: .72rem; font-weight: 700; line-height: 1.5; white-space: nowrap;
}
.badge--sale     { background: var(--navy-800); color: #fff; }
.badge--rent     { background: var(--gold-500); color: var(--navy-900); }
.badge--featured { background: linear-gradient(135deg, var(--gold-300), var(--gold-500)); color: var(--navy-900); }
.badge--demo     { background: rgba(10, 22, 38, .72); color: #fff; }
.badge--pending     { background: var(--warn-100); color: var(--warn-500); }
.badge--approved    { background: var(--ok-100); color: var(--ok-500); }
.badge--rejected    { background: var(--err-100); color: var(--err-500); }
.badge--needs_edit  { background: var(--info-100); color: var(--info-500); }
.badge--archived    { background: var(--sand-200); color: var(--ink-500); }
.badge--open        { background: var(--warn-100); color: var(--warn-500); }
.badge--resolved    { background: var(--ok-100); color: var(--ok-500); }
.badge--dismissed   { background: var(--sand-200); color: var(--ink-500); }
.badge--muted       { background: var(--sand-100); color: var(--ink-500); }

/* ── Emirate / type tiles ───────────────────────────────────────────────── */
.tile {
  display: flex; flex-direction: column; gap: .35rem;
  padding: 1.25rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--gold-400); box-shadow: var(--shadow); }
.tile__name { font-weight: 700; color: var(--navy-800); font-size: 1rem; }
.tile__count { font-size: .8rem; color: var(--ink-400); font-weight: 600; }
.tile__icon { color: var(--gold-500); margin-bottom: .25rem; }

/* ── Feature / value cards ──────────────────────────────────────────────── */
.value-card { padding: 1.5rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--sand-200); }
.value-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--gold-100); color: var(--gold-500); margin-bottom: .9rem;
}
.value-card h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.value-card p { font-size: .9rem; color: var(--ink-500); margin: 0; }

/* ── Ad slots ───────────────────────────────────────────────────────────── */
.ad-slot {
  margin: 2rem 0; border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .35rem; text-align: center; min-height: 110px; padding: 1.25rem;
}
.ad-slot--placeholder {
  background: repeating-linear-gradient(45deg, var(--sand-100), var(--sand-100) 12px, var(--sand-50) 12px, var(--sand-50) 24px);
  border: 1.5px dashed var(--sand-300);
}
.ad-slot__label { font-size: .8rem; font-weight: 800; color: var(--ink-500); letter-spacing: .5px; }
.ad-slot__hint  { font-size: .75rem; color: var(--ink-400); }
.ad-slot--adsense { background: transparent; min-height: 0; padding: 0; }

.company-banners { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin: 2rem 0; }
.company-banner {
  position: relative; display: flex; flex-direction: column; gap: .5rem;
  padding: 1.25rem; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: #fff; overflow: hidden; min-height: 120px; justify-content: center;
}
.company-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.company-banner__title { position: relative; font-weight: 700; font-size: 1.05rem; }
.company-banner__tag {
  position: relative; align-self: flex-start;
  font-size: .68rem; font-weight: 800; letter-spacing: .5px;
  background: rgba(201, 162, 74, .9); color: var(--navy-900);
  padding: .15rem .5rem; border-radius: var(--radius-pill);
}
.company-banner:hover { color: #fff; }

/* ── Search page layout ─────────────────────────────────────────────────── */
.search-layout { display: grid; gap: 1.75rem; grid-template-columns: 300px 1fr; align-items: start; }
.filters-panel {
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius);
  padding: 1.25rem; position: sticky; top: calc(var(--header-h) + 1rem);
  max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto;
}
.filters-panel h2 { font-size: 1.05rem; margin-bottom: 1rem; }
.filters-panel .field { margin-bottom: 1rem; }
.filters-panel__actions { display: flex; gap: .5rem; margin-top: 1.25rem; }
.filters-panel__actions .btn { flex: 1; }

.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
  padding: .9rem 1.1rem; background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius);
}
.results-bar__count { font-weight: 700; color: var(--navy-800); font-size: .95rem; }
.results-bar__sort { display: flex; align-items: center; gap: .5rem; }
.results-bar__sort label { font-size: .82rem; font-weight: 700; color: var(--ink-700); white-space: nowrap; }
.results-bar__sort select { min-width: 190px; }

.filters-toggle { display: none; }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .35rem; flex-wrap: wrap; margin: 2.5rem 0 0; }
.page-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 .8rem;
  border: 1.5px solid var(--sand-300); border-radius: var(--radius-sm);
  background: #fff; font-size: .88rem; font-weight: 700; color: var(--navy-700);
}
.page-link:hover { border-color: var(--gold-500); color: var(--gold-500); }
.page-link.is-current { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.page-gap { color: var(--ink-400); padding: 0 .25rem; }

/* ── Empty / error states ───────────────────────────────────────────────── */
.empty-state {
  text-align: center; padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-lg);
}
.empty-state__icon {
  width: 68px; height: 68px; margin: 0 auto 1.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-100); color: var(--gold-500);
}
.empty-state h2, .empty-state h1 { margin-bottom: .5rem; }
.empty-state p { color: var(--ink-500); max-width: 46ch; margin-inline: auto; }
.empty-state .btn { margin-top: 1rem; }

/* ── Property detail ────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-400); margin-bottom: 1.25rem; }
.breadcrumb a { color: var(--ink-500); font-weight: 600; }
.breadcrumb a:hover { color: var(--gold-500); }
.breadcrumb__sep { color: var(--sand-300); }

.detail-layout { display: grid; gap: 2rem; grid-template-columns: 1fr 360px; align-items: start; }

.gallery { border-radius: var(--radius-lg); overflow: hidden; background: var(--sand-200); }
.gallery__main { position: relative; aspect-ratio: 16 / 10; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .92); color: var(--navy-800);
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.gallery__nav:hover { background: #fff; }
.gallery__nav--prev { inset-inline-start: 1rem; }
.gallery__nav--next { inset-inline-end: 1rem; }
.gallery__counter {
  position: absolute; bottom: 1rem; inset-inline-end: 1rem;
  background: rgba(10, 22, 38, .78); color: #fff;
  padding: .3rem .75rem; border-radius: var(--radius-pill); font-size: .78rem; font-weight: 700;
}
.gallery__thumbs { display: flex; gap: .5rem; padding: .75rem; overflow-x: auto; background: #fff; }
.gallery__thumb {
  flex: 0 0 92px; height: 68px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; padding: 0; background: none;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--gold-500); }

.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.detail-title { margin: 0 0 .35rem; }
.detail-location { display: flex; align-items: center; gap: .4rem; color: var(--ink-500); font-size: .92rem; margin: 0; }
.detail-location svg { color: var(--gold-500); }
.detail-price { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--navy-800); display: flex; align-items: baseline; gap: .4rem; flex-wrap: wrap; }

.spec-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.5rem 0; }
.spec-item { padding: 1rem; background: var(--sand-50); border: 1px solid var(--sand-200); border-radius: var(--radius-sm); }
.spec-item__label { font-size: .76rem; color: var(--ink-400); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.spec-item__value { font-size: 1rem; font-weight: 700; color: var(--navy-800); margin-top: .2rem; }

.feature-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.feature-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .4rem .85rem; border-radius: var(--radius-pill);
  background: var(--gold-100); color: var(--navy-700); font-size: .84rem; font-weight: 600;
}
.feature-chip svg { color: var(--gold-500); }

.contact-card {
  background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow); position: sticky; top: calc(var(--header-h) + 1rem);
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: 1rem; }
.contact-card__advertiser { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.contact-card__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center;
}
.contact-card__name { font-weight: 700; color: var(--navy-800); }
.contact-card__type { font-size: .8rem; color: var(--ink-400); }
.contact-card__actions { display: flex; flex-direction: column; gap: .6rem; }
.contact-card__note { font-size: .8rem; color: var(--ink-400); margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--sand-100); }

.map-block {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--sand-200);
  background: var(--sand-100); min-height: 240px; display: grid; place-items: center; text-align: center; padding: 2rem;
}
.map-block__icon { color: var(--gold-500); margin-bottom: .75rem; }
.map-block p { color: var(--ink-500); font-size: .88rem; margin: 0; max-width: 44ch; }

/* ── Steps (add property) ───────────────────────────────────────────────── */
.steps { display: flex; gap: .5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.step-item {
  flex: 1; min-width: 130px; display: flex; align-items: center; gap: .6rem;
  padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: #fff; border: 1.5px solid var(--sand-200); font-size: .85rem; font-weight: 600; color: var(--ink-500);
}
.step-item__num {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--sand-200); color: var(--ink-500);
  font-size: .8rem; font-weight: 800;
}
.step-item.is-active { border-color: var(--gold-500); color: var(--navy-800); background: var(--gold-100); }
.step-item.is-active .step-item__num { background: var(--gold-500); color: var(--navy-900); }
.step-item.is-done { border-color: var(--ok-500); color: var(--ok-500); }
.step-item.is-done .step-item__num { background: var(--ok-500); color: #fff; }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: stepIn .28s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.form-card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow-sm); }

/* ── Image uploader ─────────────────────────────────────────────────────── */
.uploader { border: 2px dashed var(--sand-300); border-radius: var(--radius); padding: 1.75rem; text-align: center; background: var(--sand-50); transition: border-color .2s, background .2s; }
.uploader.is-dragover { border-color: var(--gold-500); background: var(--gold-100); }
.uploader__icon { color: var(--gold-500); margin-bottom: .6rem; }
.uploader input[type="file"] { display: none; }
.uploader__hint { font-size: .82rem; color: var(--ink-400); margin: .5rem 0 0; }

.photo-grid { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-top: 1.25rem; }
.photo-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--sand-200); background: #fff; }
.photo-item.is-primary { border-color: var(--gold-500); }
.photo-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.photo-item__bar { display: flex; gap: .2rem; padding: .35rem; background: #fff; }
.photo-item__btn {
  flex: 1; border: 0; background: var(--sand-100); border-radius: 6px;
  padding: .3rem; font-size: .7rem; font-weight: 700; color: var(--ink-700);
  display: grid; place-items: center; min-height: 30px;
}
.photo-item__btn:hover { background: var(--gold-100); color: var(--gold-500); }
.photo-item__btn--danger:hover { background: var(--err-100); color: var(--err-500); }
.photo-item__primary-tag {
  position: absolute; top: .4rem; inset-inline-start: .4rem;
  background: var(--gold-500); color: var(--navy-900);
  font-size: .65rem; font-weight: 800; padding: .15rem .45rem; border-radius: var(--radius-pill);
}

/* ── Tables (admin) ─────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--sand-200); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; }
table.data th, table.data td { padding: .8rem .9rem; text-align: start; border-bottom: 1px solid var(--sand-100); vertical-align: middle; }
table.data th { background: var(--sand-50); font-weight: 700; color: var(--ink-700); font-size: .78rem; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
table.data tbody tr:hover { background: var(--sand-50); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .cell-actions { display: flex; gap: .35rem; flex-wrap: wrap; }
table.data .cell-thumb { width: 56px; height: 42px; border-radius: 6px; object-fit: cover; background: var(--sand-200); }
.table-empty { padding: 2.5rem; text-align: center; color: var(--ink-400); }

/* ── Admin shell ────────────────────────────────────────────────────────── */
.admin-body { background: var(--sand-100); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side {
  background: var(--navy-800); color: #c3d0e2; padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
.admin-side__brand { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 800; }
.admin-side__nav { display: flex; flex-direction: column; gap: .2rem; }
.admin-side__nav a {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .85rem; border-radius: var(--radius-sm);
  color: #c3d0e2; font-size: .9rem; font-weight: 600;
}
.admin-side__nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.admin-side__nav a.is-active { background: var(--gold-500); color: var(--navy-900); }
.admin-side__foot { margin-top: auto; font-size: .78rem; color: #7d8fa8; }
.admin-side__foot a { color: var(--gold-300); }

.admin-main { padding: 1.75rem; min-width: 0; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.admin-head h1 { margin: 0; font-size: 1.5rem; }
.admin-head p { margin: .25rem 0 0; color: var(--ink-500); font-size: .9rem; }

.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 2rem; }
.stat-card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 1.15rem; }
.stat-card__label { font-size: .78rem; color: var(--ink-400); font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.stat-card__value { font-size: 1.75rem; font-weight: 800; color: var(--navy-800); line-height: 1.2; margin-top: .25rem; }
.stat-card--warn .stat-card__value { color: var(--warn-500); }
.stat-card--ok .stat-card__value { color: var(--ok-500); }
.stat-card--err .stat-card__value { color: var(--err-500); }
.stat-card--gold .stat-card__value { color: var(--gold-500); }

.admin-filters { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); align-items: end; background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 1.15rem; margin-bottom: 1.5rem; }

.panel { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; }
.panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.panel--flush { padding: 0; overflow: hidden; }

/* ── Auth pages ─────────────────────────────────────────────────────────── */
.auth-wrap { max-width: 460px; margin: clamp(2rem, 6vw, 4rem) auto; }
.auth-card { background: #fff; border: 1px solid var(--sand-200); border-radius: var(--radius-lg); padding: clamp(1.5rem, 4vw, 2.25rem); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.5rem; margin-bottom: .35rem; }
.auth-card__intro { color: var(--ink-500); font-size: .92rem; margin-bottom: 1.5rem; }
.auth-card .field { margin-bottom: 1.1rem; }
.auth-card__foot { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--sand-100); text-align: center; font-size: .88rem; color: var(--ink-500); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { background: var(--navy-900); color: #9fb0c7; padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
.footer-col--brand { max-width: 42ch; }
.footer-title { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-title--spaced { margin-top: 1.5rem; }
.footer-text { font-size: .86rem; line-height: 1.8; }
.footer-note { font-size: .8rem; color: var(--gold-300); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: .5rem; font-size: .86rem; }
.footer-links a, .footer-contact a { color: #9fb0c7; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; align-items: flex-start; gap: .5rem; }
.footer-contact svg { color: var(--gold-500); flex-shrink: 0; margin-top: .25rem; }
.footer-social { display: flex; gap: .5rem; flex-wrap: wrap; }
.footer-social a {
  display: inline-flex; padding: .35rem .75rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07); color: #c3d0e2; font-size: .78rem; font-weight: 600;
}
.footer-social a:hover { background: var(--gold-500); color: var(--navy-900); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; font-size: .82rem; }
.footer-legal a { color: #9fb0c7; }
.footer-legal a:hover { color: var(--gold-300); }
.footer-copy { font-size: .82rem; margin: 0; }
.footer-disclaimer { font-size: .76rem; color: #6b7f99; margin: 1rem 0 0; text-align: center; }

/* ── Prose (legal pages) ────────────────────────────────────────────────── */
.prose { max-width: 76ch; }
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.05rem; }
.prose p, .prose li { color: var(--ink-700); line-height: 1.9; }
.prose ul { list-style: disc; padding-inline-start: 1.5rem; margin-bottom: 1rem; }
.prose li { margin-bottom: .4rem; }
.prose .note {
  background: var(--warn-100); border-inline-start: 4px solid var(--warn-500);
  padding: 1rem 1.25rem; border-radius: var(--radius-sm); font-size: .9rem; color: var(--warn-500);
}

/* ── Utilities ──────────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--ink-400); }
.text-small { font-size: .85rem; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.flex { display: flex; } .flex-wrap { flex-wrap: wrap; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }
.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; }
[dir="ltr"] { text-align: start; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; max-height: none; display: none; }
  .filters-panel.is-open { display: block; }
  .filters-toggle { display: inline-flex; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { flex-direction: row; align-items: center; overflow-x: auto; padding: 1rem; gap: 1rem; }
  .admin-side__nav { flex-direction: row; }
  .admin-side__foot { display: none; }
  .admin-main { padding: 1.25rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--sand-200);
    box-shadow: var(--shadow-lg); padding: 1rem 1.25rem 1.5rem;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    display: none;
  }
  .primary-nav.is-open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav-list a { padding: .8rem 1rem; font-size: 1rem; }
  .nav-actions { flex-wrap: wrap; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--sand-100); }
  .nav-cta { flex: 1; }
  .nav-user { width: 100%; }
  .nav-user__btn { width: 100%; justify-content: flex-start; }
  .nav-user__menu { position: static; box-shadow: none; border: 0; padding: 0; margin-top: .35rem; }
  .brand__tag { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { padding-inline: 1rem; }
  .hero { padding-top: 2.5rem; }
  .hero__stats { gap: 1.5rem; }
  .search-form { padding: 1.15rem; border-radius: var(--radius); }
  .search-form--hero { margin-top: -2rem; }
  .search-form__grid { grid-template-columns: 1fr; }
  .field__pair { grid-template-columns: 1fr; }
  .grid--cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .results-bar { flex-direction: column; align-items: stretch; }
  .results-bar__sort { justify-content: space-between; }
  .results-bar__sort select { min-width: 0; flex: 1; }
  .steps { flex-direction: column; }
  .step-item { min-width: 0; }
  .form-actions .btn { flex: 1; }
  .flash-stack { inset-inline: 1rem; max-width: none; }
  .gallery__thumbs { padding: .5rem; }
  .gallery__thumb { flex-basis: 74px; height: 56px; }
  .spec-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .admin-filters { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .spec-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
}

/* ── Print ──────────────────────────────────────────────────────────────── */
@media print {
  .site-header, .site-footer, .contact-card, .ad-slot, .company-banners,
  .gallery__nav, .gallery__thumbs, .breadcrumb, .flash-stack { display: none !important; }
  body { background: #fff; }
  .detail-layout { grid-template-columns: 1fr; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
