/* =========================================================
   خزرینو — سیستم طراحی
   هویت: سبز زمردی + طلایی (برگرفته از لوگو) روی زمینه روشن
   مکمل‌ها: سرمه‌ای (رسمی) · قرمز ملایم (هشدار) · نارنجی ملایم (انرژی)
   امضا: موج خزر (کشیدگی «خ» لوگو)
   ========================================================= */

/* ---------- فونت اختصاصی ---------- */
@font-face {
  font-family: 'IRANSans';
  src: url('../fonts/IRANSans.ttf') format('truetype');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* --- زمینه روشن --- */
  --bg: #f6f8f7;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f0f4f2;
  --line: #e2e9e5;
  --line-2: #d3ddd8;

  /* --- متن --- */
  --text: #15231d;
  --text-2: #5b6b64;
  --text-3: #8b9a93;

  /* --- رنگ اصلی برند: سبز زمردی --- */
  --green: #0f7a52;
  --green-hover: #0c6544;
  --green-deep: #0a4d34;
  --green-light: #34a678;
  --green-soft: rgba(15, 122, 82, .09);
  --green-soft-2: rgba(15, 122, 82, .16);

  /* --- طلایی برند (از لوگو) --- */
  --gold: #b8934a;
  --gold-light: #d9b978;
  --gold-soft: rgba(184, 147, 74, .12);

  /* --- مکمل اول: سرمه‌ای --- */
  --navy: #12283f;
  --navy-2: #1d3a58;
  --navy-soft: rgba(18, 40, 63, .07);

  /* --- مکمل دوم: قرمز ملایم --- */
  --red: #d05c52;
  --red-soft: rgba(208, 92, 82, .11);

  /* --- مکمل سوم: نارنجی ملایم --- */
  --orange: #dd8b3c;
  --orange-soft: rgba(221, 139, 60, .13);

  /* --- بنفش ملایم: اقامتگاه --- */
  --purple: #7c63ba;
  --purple-soft: rgba(124, 99, 186, .12);

  /* --- صورتی ملایم: تفریح و سرگرمی --- */
  --pink: #c85f92;
  --pink-soft: rgba(200, 95, 146, .12);

  /* --- فیروزه‌ای: جاذبه‌های دیدنی --- */
  --teal: #1f8f86;
  --teal-soft: rgba(31, 143, 134, .12);

  /* --- آبی: رویدادها و اطلاع‌رسانی --- */
  --blue: #2c7ea1;
  --blue-soft: rgba(44, 126, 161, .11);

  /* نگاشت قدیمی → جدید (حفظ سازگاری کلاس‌های موجود) */
  --coral: var(--red);
  --coral-soft: var(--red-soft);
  --amber: var(--orange);
  --amber-soft: var(--orange-soft);
  --blue-deep: var(--navy-2);

  --horizon: linear-gradient(90deg, var(--green), var(--gold));

  /* --- فرم و فاصله --- */
  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 24px;
  --radius-pill: 99px;

  --shadow-xs: 0 1px 2px rgba(18, 40, 63, .05);
  --shadow-s: 0 2px 10px rgba(18, 40, 63, .06);
  --shadow: 0 10px 34px rgba(18, 40, 63, .10);
  --shadow-l: 0 18px 54px rgba(18, 40, 63, .14);

  --header-h: 62px;
  --navbar-h: 48px;
  --bnav-h: 68px;

  --font: 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
}

/* ---------- پایه ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.85;
  font-size: 15px;
  min-height: 100vh;
  padding-bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom));
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.container { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 18px; }

/* اعداد فارسی یکدست */
.num { font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* ---------- موج خزر (المان امضا) ---------- */
.horizon { height: 3px; border-radius: 99px; background: var(--horizon); border: 0; }
.horizon--hair { height: 2px; opacity: .85; width: 56px; }

/* ---------- تایپوگرافی ---------- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.55; color: var(--navy); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green); font-size: 12.5px; font-weight: 700;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: var(--horizon); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.section-head h2 { font-size: 22px; }
.section-head .more { color: var(--green); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.section-head .more:hover { color: var(--green-hover); }
.section { padding-block: 44px; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--radius-btn, var(--radius-s)); border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
  background: var(--surface-2); color: var(--navy);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); color: #fff; box-shadow: 0 2px 10px rgba(15, 122, 82, .18); }
.btn--primary:hover { background: var(--green-hover); box-shadow: 0 8px 24px rgba(15, 122, 82, .26); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a5823e; }
.btn--accent { background: var(--red); color: #fff; }
.btn--accent:hover { background: #bd4f46; }
.btn--sea { background: var(--navy); color: #fff; }        /* سازگاری با کلاس قدیمی */
.btn--sea:hover { background: var(--navy-2); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--text-2); }
.btn--ghost:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.btn--sm { padding: 8px 15px; font-size: 13px; border-radius: 10px; }
.btn--block { width: 100%; }

/* ---------- برچسب‌ها ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: var(--radius-pill);
}
.tag--coral, .tag--red    { background: var(--red-soft);    color: var(--red); }
.tag--amber, .tag--orange { background: var(--orange-soft); color: var(--orange); }
.tag--green  { background: var(--green-soft);  color: var(--green); }
.tag--blue   { background: var(--blue-soft);   color: var(--blue); }
.tag--purple { background: var(--purple-soft); color: var(--purple); }
.tag--pink   { background: var(--pink-soft);   color: var(--pink); }
.tag--teal   { background: var(--teal-soft);   color: var(--teal); }
.tag--gold   { background: var(--gold-soft);   color: var(--gold); }
.tag--navy   { background: var(--navy-soft);   color: var(--navy); }
.tag--line   { border: 1px solid var(--line-2); color: var(--text-2); }

/* =========================================================
   هدر — دو ردیفه (ردیف برند/جستجو + ردیف دسته‌ها)
   ========================================================= */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 14px; height: var(--header-h); }

/* --- لوگو --- */
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; flex-shrink: 0; color: var(--navy); }
.logo__mark {
  width: 42px; height: 42px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center; background: #134d37; flex-shrink: 0;
}
.logo__mark svg { width: 26px; height: 26px; }
.logo__mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* وردمارک تنها — بدونِ شعار؛ هم‌ترازیِ نوریِ دقیق با نشان.
   aspect-ratio نسبتِ واقعیِ فایل (۱۹۲۰×۶۹۷) است تا مرورگر **پیش از
   رسیدنِ تصویر** جای درست را رزرو کند؛ با `width:auto`ِ تنها، هدر موقعِ
   لود پرش می‌کرد و به CLS می‌خورد. */
.logo__wordmark { height: 30px; width: auto; aspect-ratio: 1920 / 697; display: block; flex-shrink: 0; margin-block-start: 1px; }
@media (max-width: 640px) { .logo__wordmark { height: 26px; } }

/* «پرش به محتوای اصلی» — تا وقتی فوکوس نگرفته از دید پنهان است ولی
   برای صفحه‌خوان وجود دارد؛ با Tab به‌صورت یک دکمهٔ واقعی ظاهر می‌شود.
   ⚠️ display:none یا visibility:hidden نگذارید — صفحه‌خوان هم نمی‌بیندش. */
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--green); color: #fff; padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius); font-weight: 700; font-size: 13px;
}
/* بدونِ transition: کاربرِ صفحه‌کلید باید **همان لحظه** ببیندش، نه بعد از
   یک انیمیشن. (ضمناً در پنلِ آزمونِ خودکار انیمیشن پیش نمی‌رود و مقدارِ
   ترنزیشن‌دار سرِ جای اولش می‌ماند ⇒ آزمون هم دروغ نمی‌گوید.) */
.skip-link:focus { top: 0; }

/* --- انتخاب شهر و دکمه دسته‌ها در هدر --- */
.header__city { display: none; align-items: center; gap: 5px; color: var(--text-2); flex-shrink: 0; }
.header__city svg { width: 17px; height: 17px; color: var(--text-3); }
/* دکمهٔ انتخابِ موقعیت (جایگزینِ <select> ناتیو، که روی ویندوز زشت بود
   و انتخابِ مرحله‌ای نداشت). شیتِ سلسله‌مراتبی را باز می‌کند. */
.header__city-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--line); background: #fff;
  border-radius: var(--radius-s); padding: 7px 10px;
  font-size: 13.5px; font-weight: 700; color: var(--navy);
  cursor: pointer; max-width: 190px; transition: border-color .2s, background .2s;
}
.header__city-btn:hover { border-color: var(--green); background: var(--green-soft); }
.header__city-btn.is-set { border-color: var(--green); color: var(--green-deep, var(--green)); }
.header__city-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* پیکانِ کوچکِ سمتِ پایان، کم‌رنگ‌تر از نشانِ مکان */
.header__city-btn svg:last-child { width: 13px; height: 13px; opacity: .55; }
.header__cats { display: none; flex-shrink: 0; }
.header__cats .nav > li > a { color: var(--navy); font-weight: 700; }
@media (min-width: 900px) { .header__city, .header__cats { display: flex; } }

/* --- جستجوی هدر --- */
.header__search { flex: 1; max-width: 520px; display: none; position: relative; }
.header__search input {
  width: 100%; background: var(--surface-2); border: 1px solid transparent;
  border-radius: var(--radius-pill); padding: 10px 42px 10px 16px; font-size: 13.5px;
  transition: border-color .2s, background .2s;
}
.header__search input::placeholder { color: var(--text-3); }
.header__search input:focus { background: #fff; border-color: var(--green); outline: none; }
.header__search .header__search-ico { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-3); pointer-events: none; }
.header__map-btn {
  display: none; align-items: center; gap: 6px; flex-shrink: 0;
  font-weight: 700; font-size: 13.5px; color: var(--green);
  padding: 9px 15px; border: 1px solid var(--green); border-radius: var(--radius-pill);
  transition: background .2s, color .2s;
}
.header__map-btn svg { width: 18px; height: 18px; }
.header__map-btn:hover { background: var(--green); color: #fff; }
@media (min-width: 900px)  { .header__search { display: block; } .header__map-btn { display: inline-flex; } }

.header__actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--text-2);
  transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }

/* --- دکمهٔ بازگشت (۲۰۲۶-۰۸-۱۱) ---
   روی همهٔ صفحه‌ها جز صفحهٔ اصلی، اولین عنصرِ هدر (سمتِ راست در RTL).
   در موبایل کمی جمع‌تر می‌شود تا لوگو و جستجو جا بمانند. */
.header__back {
  width: 38px; height: 38px; flex-shrink: 0; margin-inline-start: -2px;
  border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  display: grid; place-items: center; cursor: pointer; color: var(--text-2);
  transition: border-color .2s, color .2s, background .2s, transform .15s;
}
.header__back svg { width: 19px; height: 19px; }
.header__back:hover { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.header__back:active { transform: translateX(3px); }
@media (max-width: 480px) { .header__back { width: 34px; height: 34px; } .header__in { gap: 10px; } }

.header .btn--login, .header__link { display: none; }
/* دکمهٔ «ثبت آگهی» فقط دسکتاپ؛ در موبایل داخلِ نوار پایین است */
.header__submit { display: none; }
@media (min-width: 900px) { .header__submit { display: inline-flex; } }
.header__link {
  align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--text-2);
  padding: 8px 10px; border-radius: 10px; transition: color .2s, background .2s;
}
.header__link svg { width: 18px; height: 18px; }
.header__link:hover { color: var(--green); background: var(--green-soft); }

@media (min-width: 1024px) {
  .header .btn--login, .header__link { display: inline-flex; }
  .header__burger { display: none; }
}

/* =========================================================
   نوار دسته‌بندی‌ها (ردیف دوم هدر)
   ========================================================= */
.navbar { display: none; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); }
.navbar__in { display: flex; align-items: center; gap: 2px; height: var(--navbar-h); }
@media (min-width: 1024px) { .navbar { display: block; } }
.nav { display: flex; align-items: center; gap: 2px; }
/* اکوسیستم رشد می‌کند: سرویس‌های اصلی در نوار، بقیه زیر منوی «بیشتر» */
.nav > li > a > span:not(.nav__caret) { white-space: nowrap; }
.nav > li { position: relative; }
.nav > li > a {
  display: flex; align-items: center; gap: 6px; padding: 8px 12px;
  font-size: 13.5px; font-weight: 600; color: var(--text-2);
  border-radius: 10px; transition: color .18s, background .18s;
  white-space: nowrap;
}
.nav > li > a svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--text-3); transition: color .18s; }
.nav > li > a:hover, .nav > li:hover > a { color: var(--green); background: var(--green-soft); }
.nav > li > a:hover svg, .nav > li:hover > a svg { color: var(--green); }
.nav > li > a.is-active { color: var(--green); background: var(--green-soft); }
.nav > li > a.is-active svg { color: var(--green); }
/* اکوسیستم رشد می‌کند: نوار باید همه سرویس‌ها را در یک ردیف جا دهد */
@media (min-width: 1024px) { .nav > li > a { padding: 8px 9px; font-size: 13px; gap: 5px; } }
@media (min-width: 1024px) and (max-width: 1339px) {
  .nav > li > a { padding: 8px 6px; font-size: 12.5px; }
  .nav > li > a svg { width: 15px; height: 15px; }
}
.nav__caret { display: inline-flex; opacity: .5; margin-inline-start: -3px; }
.nav__caret svg { width: 12px !important; height: 12px !important; }

/* --- زیرمنوی ساده --- */
.nav .sub {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 250px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nav > li:hover .sub, .nav > li:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 9px 12px; border-radius: 10px; font-size: 13.5px; color: var(--text-2);
}
.sub a:hover { background: var(--green-soft); color: var(--green); }
.sub a small { color: var(--text-3); font-size: 11px; }
.sub__label { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; color: var(--text-3); }
.sub__ico { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-3); }
.sub a:hover .sub__ico { color: var(--green); }
.sub a > span { display: inline-flex; align-items: center; gap: 8px; }

/* --- مگا منو (املاک) --- */
.mega {
  position: absolute; top: calc(100% + 6px); right: 0;
  width: min(920px, calc(100vw - 40px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-l); padding: 20px 22px;
  max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 26px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav > li:hover .mega, .nav > li:focus-within .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__col { padding-bottom: 10px; }
.mega__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; color: var(--navy);
  padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line);
}
.mega__title svg { width: 17px; height: 17px; color: var(--green); }
.mega__col a {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 9px; border-radius: 9px; font-size: 13px; color: var(--text-2);
  transition: background .16s, color .16s, padding .16s;
}
.mega__col a svg { width: 15px; height: 15px; color: var(--text-3); flex-shrink: 0; transition: color .16s; }
.mega__col a:hover { background: var(--green-soft); color: var(--green); padding-inline-start: 13px; }
.mega__col a:hover svg { color: var(--green); }
.mega__foot {
  grid-column: 1 / -1; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.mega__foot p { font-size: 12.5px; color: var(--text-3); }
.mega--soon { display: block; width: min(320px, calc(100vw - 40px)); }
.mega--soon .mega__col a { font-size: 13px; }

/* مگا منوی عریض به کانتینر لنگر می‌اندازد نه به آیتم منو،
   وگرنه برای آیتم‌های سمت چپ از لبه صفحه بیرون می‌زند. */
.mega--wide {
  position: fixed; top: calc(var(--header-h) + 6px);
  right: 50%; transform: translate(50%, 8px);
}
.nav > li:hover .mega--wide, .nav > li:focus-within .mega--wide { transform: translate(50%, 0); }

/* دراور موبایل */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(18, 40, 63, .42); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; right: 0; width: min(330px, 88vw);
  background: var(--bg-2); border-inline-start: 1px solid var(--line);
  padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.drawer nav > a, .drawer__group > a {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 13px 8px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text-2);
}
.drawer nav a.is-active { color: var(--green); }
.drawer nav a svg:first-child { width: 18px; height: 18px; color: var(--text-3); }
.drawer nav a > span { display: inline-flex; align-items: center; gap: 10px; }
.drawer__group summary {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer;
  padding: 13px 8px; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--text-2);
  list-style: none;
}
.drawer__group summary::-webkit-details-marker { display: none; }
.drawer__group summary > span { display: inline-flex; align-items: center; gap: 10px; }
.drawer__group summary svg:first-child { width: 18px; height: 18px; color: var(--text-3); }
.drawer__group[open] summary { color: var(--green); }
.drawer__group[open] summary svg:first-child { color: var(--green); }
.drawer__sub { padding: 6px 0 10px; }
.drawer__sub a { display: block; padding: 8px 26px; font-size: 13px; color: var(--text-3); }
.drawer__sub a:hover { color: var(--green); }
.drawer__sub strong { display: block; padding: 8px 18px 2px; font-size: 11.5px; color: var(--navy); }
.drawer .btn { margin-top: 18px; }

/* =========================================================
   منوی پایین (Bottom Navigation)
   ========================================================= */
.bnav {
  position: fixed; bottom: 0; right: 0; left: 0; z-index: 70;
  height: calc(var(--bnav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
  box-shadow: 0 -4px 24px rgba(18, 40, 63, .06);
}
.bnav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11.5px; font-weight: 600; color: var(--text-3); transition: color .2s;
}
.bnav a svg { width: 22px; height: 22px; }
.bnav a:hover, .bnav a.is-active { color: var(--green); }

/* دکمه مرکزیِ «ثبت آگهی» — برجسته (FAB) */
.bnav__fab-item { position: relative; }
.bnav__fab-item .bnav__fab {
  position: absolute; top: -24px; right: 50%; transform: translateX(50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(150deg, var(--green-light), var(--green-deep));
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 8px 24px rgba(15, 122, 82, .34), 0 0 0 5px var(--bg);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bnav__fab-item:hover .bnav__fab { transform: translateX(50%) translateY(-3px); box-shadow: 0 14px 32px rgba(15, 122, 82, .42), 0 0 0 5px var(--bg); }
.bnav__fab-item .bnav__fab svg { width: 26px; height: 26px; }
.bnav a.bnav__fab-item { justify-content: flex-end; padding-bottom: 7px; }
.bnav a.bnav__fab-item span:last-child { color: var(--text-2); font-size: 10.5px; }
.bnav__fab-item.is-active span:last-child { color: var(--green); }

@media (min-width: 1024px) {
  .bnav { display: none; }
  body { padding-bottom: 0; }
}

/* =========================================================
   چیدمان مرور: سایدبار دسته‌ها + شبکه آگهی‌ها
   الگوی چیدمان از دیوار الهام گرفته (سایدبار راست، محتوا چپ)
   ولی رنگ، تایپوگرافی، گردی گوشه‌ها و کارت‌ها هویت خزرینو است.
   ========================================================= */
.browse { display: grid; grid-template-columns: 1fr; gap: 24px; padding-block: 22px 40px; align-items: start; }
/* در RTL ستون اول سمت راست می‌نشیند ⇐ سایدبار راست، محتوا چپ */
@media (min-width: 1024px) {
  .browse { grid-template-columns: 272px 1fr; }
  .browse__aside { grid-column: 1; grid-row: 1; }
  .browse__main  { grid-column: 2; grid-row: 1; }
}

/* ⚠️ سایدبار از ارتفاعِ صفحه بلندتر است (دسته‌ها + فیلترها ≈ ۱۴۰۰px در
   برابرِ ۷۳۰px صفحه). بدونِ `max-height` و `overflow`، چون `sticky`
   است پایینش برای همیشه بریده و **غیرقابل‌دسترس** می‌ماند و کاربر
   فکر می‌کند «منو اصلاً اسکرول نمی‌شود». حالا اسکرولِ مستقل دارد. */
.browse__aside {
  display: none; position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 28px);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; padding-inline-end: 4px;
}
.browse__aside::-webkit-scrollbar { width: 6px; }
.browse__aside::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 6px; }
@media (min-width: 1024px) { .browse__aside { display: block; } }

.browse__main { min-width: 0; }

/* دسترسی سریعِ موبایل (جستجو + استان/شهرستان + دسته‌ها) — فقط موبایل،
   جایی که سایدبار و جستجوی هدر مخفی‌اند. دسکتاپ کاملاً بدون تغییر. */
.m-quick { display: none; }
@media (max-width: 1023px) {
  .m-quick { display: block; margin-bottom: 18px; }
  /* ردیفِ جستجو: کادرِ بزرگِ جستجو + دکمهٔ کوچکِ موقعیت (طبق سند) */
  .mq-searchrow { display: flex; gap: 8px; align-items: stretch; }
  .mq-search {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius-s); padding: 4px 10px;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(18,40,63,.05));
  }
  .mq-search__ico { display: grid; place-items: center; color: var(--text-3); }
  .mq-search__ico svg { width: 20px; height: 20px; }
  .mq-search input { flex: 1; border: 0; background: transparent; outline: none; padding: 11px 2px; color: var(--text); min-width: 0; }
  .mq-loc-btn {
    flex-shrink: 0; display: flex; align-items: center; gap: 5px; max-width: 42vw;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
    padding: 0 12px; color: var(--text-2); font-weight: 700; font-size: 13px; cursor: pointer;
    box-shadow: var(--shadow-sm, 0 2px 10px rgba(18,40,63,.05));
  }
  .mq-loc-btn svg { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; }
  .mq-loc-btn__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mq-loc-btn.is-set { border-color: var(--green); color: var(--green-deep); }

  /* چیدمانِ ۱ + ۳ + ۳ (به‌دستور کاربر ۲۰۲۶-۰۸-۰۷): «املاک، ساخت و
     سرمایه‌گذاری» لوگوی افقی دارد و تمامِ عرضِ بالا را می‌گیرد، بعد دو
     ردیفِ سه‌تایی. سه ستون (نه چهار) تا لوگوها درشت و خوانا بمانند. */
  .mq-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
  .mq-cat {
    display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 4px 9px;
    color: var(--text-2); transition: border-color .2s, transform .15s;
  }
  .mq-cat:active { transform: scale(.96); }
  .mq-cat.is-active, .mq-cat:hover { border-color: var(--green); }
  .mq-cat__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green-soft); color: var(--green); overflow: hidden; }  /* رنگ per-category به‌صورت inline اعمال می‌شود */
  .mq-cat__ico svg { width: 22px; height: 22px; }
  /* تصویرِ برندِ دسته: کلِ دایره را پر می‌کند (فقط موبایل).
     اندازه با clamp به عرضِ خانهٔ گرید گره خورده تا هم روی موبایلِ
     کوچک سرریز نکند و هم روی صفحهٔ بزرگ‌تر درشت و خوانا بماند
     (به‌درخواستِ کاربر ۲۰۲۶-۰۸-۰۵: «واضح و درشت»). */
  .mq-cat__ico:has(.mq-cat__art) {
    background: transparent !important;
    width: clamp(56px, 18vw, 74px); height: clamp(56px, 18vw, 74px);
  }
  .mq-cat__art { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
  .mq-cat:has(.mq-cat__art) { padding-top: 8px; gap: 7px; }
  .mq-cat__label { font-size: 11.5px; font-weight: 700; color: var(--text); line-height: 1.2; }

  /* --- دستهٔ لوگو-افقی (املاک، ساخت و سرمایه‌گذاری) ---
     کارت تمامِ عرضِ ردیف را می‌گیرد و بالای بقیه می‌نشیند، ولی **خودِ
     لوگو تمامِ عرضِ صفحه را پر نمی‌کند** (خواستهٔ کاربر ۲۰۲۶-۰۸-۰۷):
     ارتفاعش دقیقاً همان `clamp` دایره‌های دیگر است و عرضش از نسبتِ خودِ
     تصویر می‌آید (~۲.۱ برابرِ ارتفاع) ⇒ حدودِ نصفِ عرضِ ردیف، وسط‌چین.
     ⚠️ چون ارتفاعِ آیکون و برچسب و padding با بقیه یکی است، **ارتفاعِ
     کارت خودبه‌خود برابرِ بقیه می‌شود** — بدونِ هیچ عددِ هاردکد که با
     تغییرِ فونت یا اندازهٔ دایره از هم بپاشد.
     aspect-ratio جا را **پیش از لودِ تصویر** رزرو می‌کند (ضدِ CLS). */
  .mq-cat--wide { grid-column: 1 / -1; }
  .mq-cat--wide .mq-cat__ico {
    width: auto; height: clamp(56px, 18vw, 74px); aspect-ratio: 560 / 265;
    max-width: 72%; border-radius: var(--radius-s); background: transparent !important;
  }
  .mq-cat--wide .mq-cat__art { border-radius: inherit; object-fit: contain; }
}

/* =========================================================
   مجله — جستجوی زنده و نمایشِ تدریجی (سند مجله/بلاگ)
   ========================================================= */
/* نشانِ «فعلاً رایگان» زیرِ «ثبت آگهی» در نوارِ پایینِ موبایل.
   ⚠️ چرا **پیلِ قرمز** و نه متنِ رنگی: در اندازهٔ ۸px، متنِ طلایی
   (۳٫۱) و قرمز (۳٫۶) کنتراستِ کافی ندارند؛ سفید روی قرمز ۴٫۶ است و
   از حد استاندارد رد می‌شود. سبز هم با رنگِ حالتِ **فعالِ** همین
   نوار اشتباه گرفته می‌شد. */
.bnav__free {
  display: inline-block; font-style: normal; font-size: 8px; font-weight: 700;
  line-height: 1; margin-top: 2px; padding: 2px 5px; border-radius: 6px;
  background: var(--red); color: #fff; white-space: nowrap;
}
.bnav a.is-active .bnav__free { background: var(--red); }

/* «مجله خزرینو» در فهرستِ سایدبار — با یک خطِ جداکننده از دسته‌ها */
.side-cats__mag { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line-2); }

.blog-search { margin-bottom: 14px; }
.blog-search input {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 12px 15px; font-family: inherit;
  font-size: 15px; color: var(--text);
}
.blog-search input:focus { border-color: var(--green); outline: none; }
.blog-note {
  grid-column: 1 / -1; margin-bottom: 4px; color: var(--text-2); font-size: 13px;
}
.blog-note a { color: var(--green); }
.blog-more { grid-column: 1 / -1; justify-self: center; margin-top: 8px; }

/* نوارِ پیشرفتِ مطالعه (صفحهٔ مقاله) */
.read-bar {
  position: fixed; inset-block-start: 0; inset-inline: 0; height: 3px;
  background: transparent; z-index: 60; pointer-events: none;
}
.read-bar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--green), var(--gold));
  transition: width .12s linear;
}

/* =========================================================
   پیوندهای مرتبط (kz-rel) — سمتِ سرور ساخته می‌شود (lib/related.ts)
   هم برای کاربر مفید است هم خزنده لینک‌های داخلیِ واقعی می‌بیند.
   ========================================================= */
.kz-rel { border-top: 1px solid var(--line); background: var(--surface-2); padding: 26px 0 34px; margin-top: 30px; }
.kz-rel .container { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.kz-rel__group h2 { font-size: 14px; color: var(--navy); margin: 0 0 10px; font-weight: 700; }
.kz-rel__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.kz-rel__group li { display: flex; align-items: baseline; gap: 6px; font-size: 12.5px; line-height: 1.7; }
.kz-rel__group a { color: var(--text-2); text-decoration: none; }
.kz-rel__group a:hover { color: var(--green); text-decoration: underline; }
.kz-rel__group span { color: var(--text-3); font-size: 11px; font-variant-numeric: tabular-nums; }

/* بخش «محبوب‌ها» — مهم‌ترین بخشِ صفحهٔ اصلی */
.popular-section { margin-bottom: 26px; }

/* باتم‌شیتِ انتخابگرِ موقعیت (سلسله‌مراتبی، جستجوپذیر) */
.locsheet { position: fixed; inset: 0; z-index: 95; visibility: hidden; }
.locsheet.is-open { visibility: visible; }
.locsheet__scrim { position: absolute; inset: 0; background: rgba(18, 40, 63, .45); opacity: 0; transition: opacity .25s; }
.locsheet.is-open .locsheet__scrim { opacity: 1; }
.locsheet__panel {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 82vh; display: flex; flex-direction: column;
  background: var(--bg); border-radius: 20px 20px 0 0; padding: 8px 14px calc(14px + env(safe-area-inset-bottom));
  transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -8px 30px rgba(18, 40, 63, .16);
}
.locsheet.is-open .locsheet__panel { transform: translateY(0); }
/* روی دسکتاپ باتم‌شیت بی‌ریخت است؛ همان شیت به مودالِ وسط‌چین تبدیل
   می‌شود. مارک‌آپ و منطق دست‌نخورده می‌ماند — فقط چیدمان فرق می‌کند. */
@media (min-width: 900px) {
  .locsheet__panel {
    inset-inline: auto; top: 50%; left: 50%; bottom: auto;
    width: min(440px, 92vw); max-height: 74vh; border-radius: var(--radius);
    transform: translate(-50%, -46%) scale(.97); opacity: 0;
    transition: transform .22s ease, opacity .22s ease;
    box-shadow: 0 24px 60px rgba(18, 40, 63, .24);
  }
  .locsheet.is-open .locsheet__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .locsheet__grip { display: none; }
}
.locsheet__grip { width: 40px; height: 4px; border-radius: 3px; background: var(--line-2); margin: 6px auto 8px; }
.locsheet__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.locsheet__title { flex: 1; text-align: center; font-size: 15px; font-weight: 800; color: var(--navy); }
.locsheet__back, .locsheet__x { width: 32px; height: 32px; border: 0; background: var(--surface-2); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); flex-shrink: 0; }
.locsheet__back svg, .locsheet__chev svg { width: 16px; height: 16px; transform: rotate(90deg); }
.locsheet__search { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 0 12px; margin-bottom: 8px; }
.locsheet__search svg { width: 18px; height: 18px; color: var(--text-3); }
.locsheet__search input { flex: 1; border: 0; background: transparent; outline: none; padding: 12px 2px; font-size: 16px; color: var(--text); }
.locsheet__list { overflow-y: auto; -webkit-overflow-scrolling: touch; }
.locsheet__item {
  display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px;
  border: 0; background: transparent; padding: 13px 6px; border-bottom: 1px solid var(--line);
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer; text-align: start;
}
.locsheet__item:active { background: var(--surface-2); }
.locsheet__item--all { color: var(--green); font-weight: 800; font-size: 15.5px; }
.locsheet__chev { color: var(--text-3); display: inline-flex; }
/* آیکونِ اختصاصیِ هر زیرشاخه در شیتِ دسته‌ها (خواستهٔ سند).
   ⚠️ `justify-content: space-between` والد، آیکون و متن را از هم دور
   می‌کند؛ با mgin-end منفی و flex:1 روی متن، آیکون کنارِ نوشته می‌ماند. */
.locsheet__ico { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; }
.locsheet__ico svg { width: 100%; height: 100%; }
.locsheet__ico + span { flex: 1; margin-inline-start: -2px; }

/* دکمهٔ موقعیت در سایدبارِ دسکتاپ */
.side-loc {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--surface-2); border: 1px solid transparent; border-radius: 11px;
  padding: 11px 13px; font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.side-loc:hover { border-color: var(--green); background: var(--green-soft); }
.side-loc small { font-size: 11.5px; font-weight: 600; color: var(--green); }

/* روی دسکتاپ، انتخابگرِ موقعیت به‌صورت مودالِ وسط دیده می‌شود (نه شیتِ پایین) */
@media (min-width: 900px) {
  .locsheet__panel {
    inset-inline: auto; inset-block: 50% auto; left: 50%; bottom: auto;
    transform: translate(-50%, -50%) scale(.96); transform-origin: center;
    width: min(460px, 92vw); max-height: 76vh; border-radius: 20px;
    transition: transform .24s cubic-bezier(.2,.8,.2,1), opacity .2s; opacity: 0;
  }
  .locsheet.is-open .locsheet__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  .locsheet__grip { display: none; }
}

/* دراپ‌داونِ جستجوی هوشمند (پیشنهاد لحظه‌ای + تاریخچه) */
.sugg {
  position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s);
  box-shadow: 0 12px 34px rgba(18, 40, 63, .14); padding: 6px; max-height: 60vh; overflow-y: auto;
}
.sugg__head { font-size: 10.5px; font-weight: 700; color: var(--text-3); padding: 8px 8px 4px; }
.sugg__item {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: start;
  padding: 9px 8px; border: 0; background: transparent; border-radius: 9px;
  color: var(--text); font: inherit; cursor: pointer; white-space: nowrap; overflow: hidden;
}
.sugg__item span { overflow: hidden; text-overflow: ellipsis; }
.sugg__item svg { width: 17px; height: 17px; color: var(--text-3); flex-shrink: 0; }
.sugg__item:hover, .sugg__item:focus { background: var(--surface-2); }
.sugg__item--q { color: var(--green); font-weight: 600; }
.sugg__item--q svg { color: var(--green); }
.browse__title { font-size: 17px; color: var(--text-2); font-weight: 700; margin-bottom: 16px; }
.browse__title b { color: var(--navy); }

/* --- بلوک سایدبار --- */
.side-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; margin-bottom: 14px; box-shadow: var(--shadow-xs); }
.side-block__head { font-size: 13px; font-weight: 800; color: var(--navy); padding: 10px 12px 8px; }
.side-cats a {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px;
  font-size: 13.5px; font-weight: 600; color: var(--text); transition: background .16s, color .16s;
}
.side-cats__ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.side-cats__ico svg { width: 18px; height: 18px; }
.side-cats a:hover { background: var(--surface-2); }
.side-cats a.is-active { background: var(--green-soft); color: var(--green-deep); font-weight: 800; }
.side-cats a small { margin-inline-start: auto; font-size: 11.5px; color: var(--text-3); font-weight: 700; }

/* --- درختِ کشوییِ دسته‌ها (۲۰۲۶-۰۸-۱۱) ---
   با کلیک روی دسته، زیرشاخه‌هایش زیرِ خودش باز می‌شوند. */
.side-cats__toggle {
  margin-inline-start: 4px; width: 24px; height: 24px; flex-shrink: 0;
  border: 0; background: transparent; color: var(--text-3); cursor: pointer;
  display: grid; place-items: center; border-radius: 8px; transition: transform .18s, color .18s;
}
.side-cats__toggle svg { width: 15px; height: 15px; }
.side-cats__toggle:hover { color: var(--green); background: var(--green-soft); }
.side-cats__item.is-open > a .side-cats__toggle { transform: rotate(180deg); color: var(--green); }
.side-cats__kids { padding: 2px 0 6px; margin-inline-start: 20px; border-inline-start: 1px dashed var(--line-2); }
.side-cats__kid, .side-cats__leaf {
  display: flex !important; align-items: center; justify-content: space-between;
  padding: 6px 10px !important; font-size: 12.5px !important; font-weight: 600 !important; color: var(--text-2) !important;
}
.side-cats__leaf { padding-inline-start: 22px !important; font-size: 12px !important; font-weight: 500 !important; }
.side-cats__leaf::before { content: '↳'; margin-inline-end: 5px; opacity: .5; }
.side-cats__kid.is-active, .side-cats__leaf.is-active { color: var(--green-deep) !important; font-weight: 800 !important; }
.side-cats__mark {
  border: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 14px;
  line-height: 1; width: 22px; height: 22px; border-radius: 7px; cursor: pointer; flex-shrink: 0;
}
.side-cats__mark:hover { color: var(--green); background: var(--green-soft); }
.side-cats__leaves { padding-inline-start: 4px; }

.side-filter { padding: 4px 12px 12px; }
.side-filter + .side-filter { border-top: 1px solid var(--line); padding-top: 12px; }
.side-filter label { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); margin-bottom: 7px; }
.side-filter select, .side-filter input {
  width: 100%; background: var(--surface-2); border: 1px solid transparent; border-radius: 11px;
  padding: 10px 12px; font-size: 13px; color: var(--text); appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b9a93' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 12px center;
}
.side-filter select:focus, .side-filter input:focus { border-color: var(--green); background-color: #fff; outline: none; }
/* ⚠️ `.row` قبلاً فقط زیرِ `.side-filter` تعریف شده بود؛ در پنلِ
   «فیلترهای پیشرفته» بی‌اثر می‌ماند و «تاریخ ورود» و «تعداد شب»
   روی هم می‌افتادند (تذکرِ کاربر ۲۰۲۶-۰۸-۰۹). حالا هر دو جا. */
.side-filter .row, .filter-sheet .row { display: flex; gap: 8px; }
.side-filter .row input, .filter-sheet .row input { background-image: none; text-align: center; }
/* ورودیِ تاریخ ذاتاً LTR است؛ در چیدمانِ راست‌چین باید فضای کافی بگیرد
   وگرنه متنش بریده می‌شود. تعدادِ شب باریک‌تر می‌ماند. */
.filter-sheet .row input[type=date] { flex: 2; min-width: 0; }
.filter-sheet .row input[type=number] { flex: 1; min-width: 74px; }

.cards--list { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 720px)  { .cards--list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .cards--list { grid-template-columns: repeat(3, 1fr); } }

/* =========================================================
   هیرو + باکس جستجو (صفحات داخلی)
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: 46px 0 54px; }
.hero__art { position: absolute; inset: 0; z-index: -1; }
.hero__art svg { width: 100%; height: 100%; }
.hero::after {
  content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 110px; z-index: -1;
  background: linear-gradient(180deg, transparent, var(--bg));
}
.hero h1 { font-size: clamp(25px, 5.4vw, 42px); margin: 14px 0 10px; letter-spacing: -.4px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero p.lead { color: var(--text-2); max-width: 580px; font-size: clamp(13.5px, 2.4vw, 15.5px); }

/* باکس جستجو */
.search-box {
  margin-top: 28px; background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 16px; box-shadow: var(--shadow); max-width: 900px;
}
.deal-tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 14px; overflow-x: auto; }
.deal-tabs button {
  flex: 1; min-width: max-content; padding: 10px 16px; border: 0; border-radius: 11px; cursor: pointer;
  background: transparent; color: var(--text-2); font-weight: 700; font-size: 13.5px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.deal-tabs button.is-active { background: #fff; color: var(--green); box-shadow: var(--shadow-xs); }
.deal-tabs button:hover:not(.is-active) { color: var(--navy); }

.search-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 11.5px; font-weight: 700; color: var(--text-3); padding-inline-start: 4px; }
.field select, .field input {
  background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-s);
  padding: 11px 13px; font-size: 13.5px; color: var(--text); width: 100%;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238b9a93' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 13px center;
  transition: border-color .2s, background-color .2s;
}
.field select:hover, .field input:hover { border-color: var(--line-2); }
.field select:focus, .field input:focus { border-color: var(--green); background-color: #fff; outline: none; }

/* موبایل: کنترل‌های فرم دست‌کم ۱۶px تا iOS هنگام فوکوس صفحه را زوم نکند (تجربهٔ لمسیِ درست).
   !important تا استایل‌های inlineِ برخی صفحات (مثل .auth__field در login) را هم بپوشاند. */
@media (max-width: 640px) {
  input[type="text"], input[type="search"], input[type="tel"], input[type="url"],
  input[type="email"], input[type="number"], input[type="password"], input[type="date"],
  input:not([type]), textarea, select { font-size: 16px !important; }
}

.search-box__cta { display: flex; gap: 10px; margin-top: 14px; }
.search-box__cta .btn--primary { flex: 1; padding-block: 13px; font-size: 15px; }
.search-box__cta .btn--map { flex-shrink: 0; padding-inline: 18px; }
.search-box .btn--primary.btn--block { margin-top: 14px; padding-block: 13px; font-size: 15px; }
.search-box__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.search-box__foot .quick { display: flex; gap: 6px; flex-wrap: wrap; }
.search-box__foot .quick a {
  font-size: 12px; color: var(--text-2); background: var(--surface-2);
  border: 1px solid transparent; padding: 5px 12px; border-radius: var(--radius-pill);
  transition: color .2s, border-color .2s, background .2s;
}
.search-box__foot .quick a:hover { color: var(--green); border-color: var(--green); background: var(--green-soft); }

@media (min-width: 720px) {
  .search-fields { grid-template-columns: repeat(4, 1fr); }
  .search-fields .field--wide { grid-column: span 2; }
  .search-box { padding: 20px; }
  .search-box__row { display: flex; gap: 10px; align-items: flex-end; }
  .search-box__row .search-fields { flex: 1; margin-top: 0; }
}

/* آمار هیرو */
.hero-stats { display: flex; gap: 28px; margin-top: 28px; flex-wrap: wrap; }
.hero-stats div strong { font-size: 21px; display: block; color: var(--navy); }
.hero-stats div span { font-size: 12px; color: var(--text-3); }

/* =========================================================
   کارت ملک
   ========================================================= */
.cards { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 640px)  { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.cards--rail { display: flex; overflow-x: auto; gap: 16px; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.cards--rail .p-card { min-width: 278px; scroll-snap-align: start; }
.cards--rail::-webkit-scrollbar { height: 6px; }
.cards--rail::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.cards--4 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 1024px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }

.p-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  box-shadow: var(--shadow-xs);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.p-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.p-card.is-hot { border-color: var(--green); box-shadow: 0 0 0 1px var(--green), var(--shadow); }
.p-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.p-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.p-card:hover .p-card__media img { transform: scale(1.04); }
.p-card__tags { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.p-card__tags .tag { background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); box-shadow: var(--shadow-xs); }
.p-card__fav {
  position: absolute; top: 10px; left: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); color: var(--text-2); cursor: pointer;
  display: grid; place-items: center; transition: color .2s, background .2s; box-shadow: var(--shadow-xs);
}
.p-card__fav:hover, .p-card__fav.is-on { color: var(--red); }
/* نشان‌های رسانه‌ای گوشه پایین تصویر */
.p-card__mbs { position: absolute; bottom: 9px; inset-inline-start: 9px; display: flex; gap: 5px; }
.p-card__mb { display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 700;
  background: rgba(18,40,63,.72); color: #fff; padding: 3px 7px; border-radius: 8px; backdrop-filter: blur(4px); }
.p-card__mb svg { width: 12px; height: 12px; }
.p-card__mb--360 { background: rgba(124,99,186,.9); }
button.p-card__mb { border: 0; cursor: pointer; font-family: inherit; transition: transform .14s, background .14s; }
button.p-card__mb--360:hover { background: rgba(124,99,186,1); transform: translateY(-1px); }
.p-card--row .p-card__mbs { bottom: 6px; inset-inline-start: 6px; }

/* دکمهٔ ۳۶۰ در نوار اقدام‌های صفحهٔ آگهی */
.chip--360 { border-color: rgba(124,99,186,.4); color: #7c63ba; }
.chip--360:hover { background: #7c63ba; border-color: #7c63ba; color: #fff; }

/* روکش ورود به تور روی تصویر بزرگ گالری */
.g-main { position: relative; }
.g-360 { position: absolute; inset-block-end: 14px; inset-inline-end: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; color: #fff;
  background: rgba(124,99,186,.92); padding: 10px 16px; border-radius: 99px;
  box-shadow: 0 6px 20px rgba(124,99,186,.4); backdrop-filter: blur(6px);
  transition: transform .16s, box-shadow .16s; }
.g-360:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(124,99,186,.5); }
.g-360 svg { width: 18px; height: 18px; }
@media (max-width: 640px) { .g-360 span { display: none; } .g-360 { padding: 11px; } }
.p-card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card__loc { font-size: 12px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
.p-card__loc svg { width: 13px; height: 13px; flex-shrink: 0; }
.p-card__title { font-size: 15px; font-weight: 700; line-height: 1.65; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.p-card__specs { display: flex; gap: 12px; color: var(--text-2); font-size: 12.5px; margin-top: 2px; flex-wrap: wrap; }
.p-card__specs span { display: inline-flex; align-items: center; gap: 4px; }
.p-card__specs svg { width: 14px; height: 14px; color: var(--text-3); }
.p-card__price { margin-top: auto; padding-top: 11px; border-top: 1px dashed var(--line-2); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.p-card__price strong { font-size: 17px; color: var(--navy); }
.p-card__price small { color: var(--text-3); font-size: 11.5px; }
.p-card__price .sub-price { font-size: 12px; color: var(--text-2); }

/* --- حالت افقی کارت (شبکه مرور) --- */
.p-card--row { flex-direction: row-reverse; align-items: stretch; padding: 13px; gap: 13px; }
.p-card--row > a:first-child { display: contents; }
.p-card--row .p-card__media {
  width: 118px; flex-shrink: 0; aspect-ratio: 1; border-radius: 13px; overflow: hidden; align-self: center;
}
/* فشرده و کم‌ارتفاع: هر سطر یک خط، بدون فضای هدررفته */
.p-card--row .p-card__body { padding: 0; gap: 3px; justify-content: center; line-height: 1.55; }
.p-card--row .p-card__title { font-size: 14.5px; line-height: 1.6; }
.p-card--row .p-card__loc { order: 3; font-size: 11.5px; line-height: 1.5; white-space: nowrap; overflow: hidden; }
.p-card--row .p-card__loc svg { flex-shrink: 0; }
.p-card--row .p-card__specs { font-size: 12px; gap: 9px; line-height: 1.4; margin-top: 0; }
.p-card--row .p-card__specs span:nth-child(n+3) { display: none; }
.p-card--row .p-card__price { border-top: 0; padding-top: 2px; flex-direction: column; align-items: flex-start; gap: 0; margin-top: 2px; line-height: 1.5; }
.p-card--row .p-card__price strong { font-size: 15.5px; }
.p-card--row .p-card__price .sub-price { font-size: 11.5px; }
.p-card--row .p-card__tags { top: 8px; right: 8px; }
.p-card--row .p-card__tags .tag { font-size: 10.5px; padding: 2px 8px; }
.p-card--row .p-card__fav { top: 9px; left: 9px; width: 30px; height: 30px; background: transparent; box-shadow: none; }
.p-card--row:hover { transform: none; border-color: var(--green); }

/* =========================================================
   بخش‌های صفحه اصلی
   ========================================================= */

/* --- ریل دسته‌بندی‌های اصلی (زیر هیرو) --- */
.cat-rail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .cat-rail { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .cat-rail { grid-template-columns: repeat(8, 1fr); } }
.cat-tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 10px; text-align: center; box-shadow: var(--shadow-xs);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.cat-tile:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-s); }
.cat-tile__ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; }
.cat-tile__ico svg { width: 23px; height: 23px; }
.cat-tile span { font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.5; }
.cat-tile small { font-size: 10.5px; color: var(--text-3); display: block; }

/* --- پیشنهادهای خزرینو --- */
.offers { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .offers { grid-template-columns: 1.25fr 1fr; } }
.offer-hero {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--line); min-height: 300px; display: flex; align-items: flex-end;
  padding: 24px; box-shadow: var(--shadow-xs); transition: transform .22s, box-shadow .22s;
}
.offer-hero:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.offer-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.offer-hero::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 77, 52, .05) 30%, rgba(8, 40, 28, .88)); }
.offer-hero__body { position: relative; z-index: 2; color: #fff; }
.offer-hero__body h3 { color: #fff; font-size: 20px; margin-block: 8px 4px; }
.offer-hero__body p { font-size: 13px; color: rgba(255, 255, 255, .85); }
.offer-hero__price { margin-top: 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.offer-hero__price strong { font-size: 20px; color: var(--gold-light); }
.offer-hero__price span { font-size: 12px; color: rgba(255, 255, 255, .75); }
.offer-side { display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; }
@media (min-width: 640px) and (max-width: 899px) { .offer-side { grid-template-columns: repeat(2, 1fr); } }
.offer-mini {
  display: flex; gap: 12px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; box-shadow: var(--shadow-xs);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.offer-mini:hover { transform: translateY(-2px); border-color: var(--green); box-shadow: var(--shadow-s); }
.offer-mini img { width: 88px; height: 68px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.offer-mini__body { min-width: 0; flex: 1; }
.offer-mini h4 { font-size: 13.5px; line-height: 1.6; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.offer-mini .meta { font-size: 11.5px; color: var(--text-3); }
.offer-mini strong { font-size: 14px; color: var(--green); }
.offer-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }
.offer-tabs::-webkit-scrollbar { display: none; }
.offers-section { margin-bottom: 34px; }
.offers-section .section-head { margin-bottom: 14px; }

/* =========================================================
   تابلوی محرک (Hero Banner) — بالای لیست آگهی‌ها
   معرفی مهم‌ترین قابلیت‌های خزرینو، نه تبلیغ شلوغ.
   ========================================================= */
.hero-banner { position: relative; margin-bottom: 26px; border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-xs); }
.hero-banner__track { display: flex; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.hero-slide {
  position: relative; flex: 0 0 100%; min-height: 220px; display: flex; align-items: center;
  padding: 30px 34px; overflow: hidden;
}
@media (min-width: 720px) { .hero-slide { min-height: 260px; padding: 40px 48px; } }
.hero-slide__bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(8,40,28,.9) 0%, rgba(8,40,28,.7) 45%, rgba(8,40,28,.15) 100%); }
.hero-slide__body { position: relative; z-index: 2; max-width: 560px; color: #fff; }
.hero-slide__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700;
  color: var(--gold-light); margin-bottom: 10px; }
.hero-slide__eyebrow svg { width: 16px; height: 16px; }
.hero-slide h2 { color: #fff; font-size: clamp(20px, 3.4vw, 30px); line-height: 1.5; margin-bottom: 8px; }
.hero-slide p { color: rgba(255,255,255,.88); font-size: clamp(13px, 2.2vw, 15px); line-height: 1.9; margin-bottom: 18px; max-width: 460px; }
.hero-slide .btn { background: #fff; color: var(--green-deep); }
.hero-slide .btn:hover { background: var(--gold-light); color: var(--navy); }

/* کنترل‌ها */
.hero-banner__dots { position: absolute; bottom: 14px; inset-inline-start: 34px; z-index: 3; display: flex; gap: 7px; }
@media (min-width: 720px) { .hero-banner__dots { inset-inline-start: 48px; } }
.hero-banner__dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .25s, background .25s; padding: 0; }
.hero-banner__dots button.is-on { width: 22px; background: #fff; }
.hero-banner__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); color: var(--navy); display: none; place-items: center;
  box-shadow: var(--shadow-s); transition: background .2s;
}
.hero-banner__arrow:hover { background: #fff; }
.hero-banner__arrow svg { width: 18px; height: 18px; }
/* آیکونِ پایه یک فلشِ رو به پایین است؛ برای اسلایدرِ افقی می‌چرخد تا
   جهتِ هر دکمه با جهتِ حرکتِ بنر یکی باشد (RTL: بعدی→چپ، قبلی→راست). */
.hero-banner__arrow--next svg { transform: rotate(90deg); }
.hero-banner__arrow--prev svg { transform: rotate(-90deg); }
/* RTL: «بعدی» سمت چپ و رو به چپ، «قبلی» سمت راست و رو به راست */
.hero-banner__arrow--next { inset-inline-end: 12px; }
.hero-banner__arrow--prev { inset-inline-start: 12px; }
/* دسکتاپ: با هاور ظاهر می‌شوند تا تصویر تمیز بماند */
@media (min-width: 900px) { .hero-banner:hover .hero-banner__arrow { display: grid; } }
/* موبایل و تبلت: hover وجود ندارد ⇒ دکمه‌ها همیشه دیده می‌شوند، ریزتر و
   در پایینِ سمتِ چپ تا روی عنوان و متنِ اسلاید نیفتند. */
@media (max-width: 899px) {
  .hero-banner__arrow {
    display: grid; top: auto; bottom: 12px; transform: none;
    width: 32px; height: 32px; background: rgba(255, 255, 255, .86);
  }
  .hero-banner__arrow svg { width: 15px; height: 15px; }
  .hero-banner__arrow--next { inset-inline-end: 14px; }
  .hero-banner__arrow--prev { inset-inline-end: 52px; inset-inline-start: auto; }
}

.regions { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px) { .regions { grid-template-columns: repeat(3, 1fr); } }
.region-card {
  position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  min-height: 180px; display: flex; align-items: flex-end; padding: 18px;
  box-shadow: var(--shadow-xs); transition: transform .22s, box-shadow .22s;
}
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.region-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.region-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 28%, rgba(8, 40, 28, .86)); z-index: 1; }
.region-card > div { position: relative; z-index: 2; }
.region-card h3 { font-size: 17.5px; color: #fff; }
.region-card p { font-size: 12px; color: rgba(255, 255, 255, .8); }

.deal-kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 900px) { .deal-kinds { grid-template-columns: repeat(4, 1fr); } }
.deal-kind {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px; box-shadow: var(--shadow-xs); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.deal-kind:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-s); }
.deal-kind__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 12px; }
.deal-kind h3 { font-size: 15px; margin-bottom: 3px; }
.deal-kind p { font-size: 12px; color: var(--text-3); line-height: 1.75; }
.deal-kind__count { display: block; margin-top: 10px; font-size: 11.5px; font-weight: 700; color: var(--green); }
@media (min-width: 900px) { .deal-kinds { grid-template-columns: repeat(4, 1fr); } }

/* نوار اعتماد */
.trust { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust > div { display: flex; gap: 13px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-xs); }
.trust > div > svg { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 4px; }
.trust h3 { font-size: 14.5px; }
.trust p { font-size: 12.5px; color: var(--text-2); }

/* CTA نقشه */
.map-cta {
  position: relative; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line);
  padding: 40px 24px; text-align: center; box-shadow: var(--shadow-xs);
}
.map-cta__bg { position: absolute; inset: 0; z-index: 0; }
.map-cta::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(8, 40, 28, .74), rgba(8, 40, 28, .86)); }
.map-cta > *:not(.map-cta__bg) { position: relative; z-index: 2; }
.map-cta h2 { font-size: clamp(20px, 4vw, 27px); margin-bottom: 8px; color: #fff; }
.map-cta p { color: rgba(255, 255, 255, .82); max-width: 500px; margin: 0 auto 20px; font-size: 14px; }
.map-cta .btn--sea { background: #fff; color: var(--green-deep); }
.map-cta .btn--sea:hover { background: var(--gold-light); color: var(--navy); }

/* =========================================================
   فوتر
   ========================================================= */
.footer { border-top: 1px solid var(--line); background: var(--green-deep); color: rgba(255, 255, 255, .75); margin-top: 34px; padding: 32px 0 22px; }
.footer .logo, .footer h4 { color: #fff; }
.footer .logo__mark { background: rgba(255, 255, 255, .1); }
/* روی فوترِ تیره، نوشتارِ سبز را سفید کن تا خوانا بماند */
.footer .logo__wordmark { filter: brightness(0) invert(1); opacity: .92; }
.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 13.5px; margin-bottom: 12px; }
.footer a { display: block; font-size: 13px; color: rgba(255, 255, 255, .62); padding-block: 4px; transition: color .2s; }
.footer a:hover { color: var(--gold-light); }
.footer__brand p { font-size: 12.5px; color: rgba(255, 255, 255, .58); margin-top: 12px; max-width: 320px; line-height: 1.9; }
.footer__contact { display: flex; flex-direction: column; gap: 7px; margin-top: 12px; }
.footer__contact a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255, 255, 255, .72); }
.footer__contact a:hover { color: #fff; }
.footer__contact svg { width: 15px; height: 15px; opacity: .8; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.footer__social a, .footer__social span { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .85); transition: background .16s, color .16s, transform .16s; }
.footer__social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.footer__social .is-soon { opacity: .38; cursor: default; }
.footer__social svg { width: 16px; height: 16px; }
.footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: rgba(255, 255, 255, .5); }
.footer__grid > .footer__col { min-width: 0; }
/* شمارشِ کنارِ لینک‌ها */
.footer a small { color: rgba(255, 255, 255, .38); font-size: 11px; }

/* لینک‌های پرجستجو (سئو) */
.footer__seo { margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .12); }
.ft-seo__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ft-seo__chips a {
  display: inline-block; padding: 6px 13px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .09);
  font-size: 12px; color: rgba(255, 255, 255, .68);
}
.ft-seo__chips a:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* دکمهٔ نصبِ اپ */
.footer__app { margin-top: 16px; }
.footer__app > span { display: block; font-size: 11.5px; color: rgba(255, 255, 255, .45); margin-bottom: 7px; }
.footer__appbtn {
  display: inline-flex !important; align-items: center; gap: 7px; padding: 9px 16px;
  border-radius: var(--radius-pill); background: var(--green); color: #fff !important;
  font-size: 12.5px; font-weight: 700; transition: background .2s, transform .16s;
}
.footer__appbtn:hover { background: var(--green-deep); transform: translateY(-1px); }
.footer__appbtn svg { width: 15px; height: 15px; }

/* =========================================================
   صفحه نتایج (listings)
   ========================================================= */
.page-head { padding: 28px 0 12px; }
.page-head h1 { font-size: clamp(20px, 4vw, 27px); }
.page-head p { color: var(--text-3); font-size: 13px; }

.filter-bar {
  position: sticky; top: var(--header-h); z-index: 50;
  background: rgba(246, 248, 247, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); padding-block: 11px;
}
@media (min-width: 1024px) { .filter-bar { top: var(--header-h); } }
.filter-bar__in { display: flex; gap: 8px; align-items: center; overflow-x: auto; padding-bottom: 2px; }
.filter-bar__in::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  padding: 7px 14px; border-radius: var(--radius-pill); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
.chip svg { width: 13px; height: 13px; }

.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block: 18px; flex-wrap: wrap; }
.results-meta p { font-size: 13px; color: var(--text-2); }
.results-meta select {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 13px; font-size: 12.5px; color: var(--text-2); cursor: pointer; appearance: none;
}

.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state svg { width: 54px; height: 54px; margin: 0 auto 14px; opacity: .45; }
.empty-state h3 { color: var(--text-2); margin-bottom: 6px; }

/* پنل فیلتر پیشرفته (bottom-sheet در موبایل) */
.filter-sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.filter-sheet.is-open { visibility: visible; }
.filter-sheet__scrim { position: absolute; inset: 0; background: rgba(18, 40, 63, .42); opacity: 0; transition: opacity .25s; }
.filter-sheet.is-open .filter-sheet__scrim { opacity: 1; }
.filter-sheet__panel {
  position: absolute; inset-inline: 0; bottom: 0; max-height: 84vh; overflow-y: auto;
  background: var(--bg-2); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line);
  padding: 18px 18px 26px; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.filter-sheet.is-open .filter-sheet__panel { transform: translateY(0); }
.filter-sheet__grip { width: 42px; height: 4px; border-radius: 99px; background: var(--line-2); margin: 0 auto 14px; }
.filter-sheet .search-fields { grid-template-columns: 1fr 1fr; }
.filter-sheet__actions { display: flex; gap: 10px; margin-top: 18px; }
@media (min-width: 900px) {
  .filter-sheet__panel { inset: auto 0 auto 0; top: calc(var(--header-h) + 56px); max-width: 780px; margin-inline: auto; border-radius: var(--radius-l); border: 1px solid var(--line); box-shadow: var(--shadow-l); transform: translateY(-8px); opacity: 0; transition: opacity .2s, transform .2s; }
  .filter-sheet.is-open .filter-sheet__panel { transform: translateY(0); opacity: 1; }
  .filter-sheet .search-fields { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   صفحه نقشه
   ========================================================= */
.map-page { position: fixed; inset: 0; bottom: calc(var(--bnav-h) + env(safe-area-inset-bottom)); top: var(--header-h); display: flex; flex-direction: column; }
@media (min-width: 1024px) { .map-page { bottom: 0; top: var(--header-h); } }
.map-toolbar {
  display: flex; gap: 8px; align-items: center; padding: 11px 16px;
  background: var(--bg-2); border-bottom: 1px solid var(--line); overflow-x: auto; flex-shrink: 0;
}
.map-toolbar::-webkit-scrollbar { display: none; }
.map-split { flex: 1; display: flex; min-height: 0; position: relative; }
#map { flex: 1; min-width: 0; background: var(--surface-2); }

/* پنل لیست */
.map-list {
  display: none; width: 410px; flex-shrink: 0; overflow-y: auto;
  border-inline-start: 1px solid var(--line); background: var(--bg);
  padding: 16px; scroll-behavior: smooth;
}
.map-list .p-card { margin-bottom: 14px; }
/* گزینهٔ «موقعیت تقریبی» در ویزارد ثبت آگهی */
.loc-precision { margin-top: 10px; }
.loc-precision__row {
  display: flex; gap: 9px; align-items: flex-start; cursor: pointer;
  background: var(--bg-2, #f6f8f7); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 11px 12px;
}
.loc-precision__row input { margin-top: 3px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--green); }
.loc-precision__row b { display: block; font-size: 13px; color: var(--text); }
.loc-precision__row small { display: block; margin-top: 3px; font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.loc-precision__radius { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.loc-precision__radius label { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.loc-precision__radius select { flex: 1; max-width: 280px; }

/* --- موقعیتِ تقریبی (خواستهٔ کاربر ۲۰۲۶-۰۸-۰۹) ---
   همه موقعیتِ دقیق وارد نمی‌کنند؛ این نشانه‌ها به کاربر می‌فهمانند که
   نقطه تقریبی است، تا سرِ نشانی گمراه نشود. */
.map-approx-note {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 10px; padding: 9px 12px;
  background: var(--gold-soft, #f7f0e2); color: var(--text-2);
  border: 1px solid var(--line); border-radius: var(--radius-s);
  font-size: 12.5px; font-weight: 600; line-height: 1.5;
}
.map-approx-note svg { width: 17px; height: 17px; color: var(--gold); flex-shrink: 0; }

/* دایرهٔ محوشونده دورِ موقعیتِ تقریبی — لبه‌اش نرم می‌شود تا «مرزِ قطعی»
   به نظر نرسد؛ خودِ مرزِ خط‌چین از JS می‌آید. */
.kz-approx { filter: blur(.6px); transition: opacity .25s; }
.leaflet-container:hover .kz-approx { opacity: .85; }

/* سوزنِ آگهیِ تقریبی: خط‌چین و کمی شفاف، تا حتی بدونِ دایره هم فرق کند */
.kz-marker.is-approx .kz-marker__dot { border-style: dashed; opacity: .92; }

/* یادداشتِ «موقعیت تقریبی» داخلِ کارتِ پیش‌نمایشِ نقشه و صفحهٔ آگهی */
.kz-pop__approx, .prop-approx {
  display: flex; align-items: center; gap: 5px;
  margin: 4px 0 2px; font-size: 11.5px; font-weight: 700; color: var(--gold);
}
.kz-pop__approx svg, .prop-approx svg { width: 14px; height: 14px; flex-shrink: 0; }
.prop-approx { font-size: 12.5px; margin: 8px 0 0; }

.map-list__count { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
/* وقتی منطبق‌های محدوده از سقفِ واکشیِ سرور بیشتر است (راهنمای بزرگ‌نمایی) */
.map-list__hint { color: var(--gold); }
@media (min-width: 1024px) { .map-list { display: block; } }

/* شیت لیست موبایل */
.map-sheet {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1100;
  background: var(--bg-2); border-radius: 20px 20px 0 0; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 30px rgba(18, 40, 63, .12);
  transform: translateY(calc(100% - 92px)); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  max-height: 72%; display: flex; flex-direction: column;
}
.map-sheet.is-up { transform: translateY(0); }
/* سرِ کشو از ۸۲px به ~۵۸px آمد تا فضای بیشتری به خودِ فهرست برسد */
.map-sheet__bar { padding: 7px 16px 6px; cursor: pointer; flex-shrink: 0; text-align: center; }
.map-sheet__bar .filter-sheet__grip { margin-bottom: 6px; }
.map-sheet__bar p { font-size: 12.5px; font-weight: 700; }
.map-sheet__bar small { color: var(--text-3); font-size: 10.5px; }
.map-sheet__body { overflow-y: auto; padding: 4px 12px 16px; }
.map-sheet__body .p-card { margin-bottom: 12px; }
@media (min-width: 1024px) { .map-sheet { display: none; } }

/* کارت‌های کشویی زیر نقشه (و ستون کناری) از همان کارتِ افقیِ فشردهٔ
   صفحهٔ نتایج استفاده می‌کنند و اینجا یک درجه ریزترند تا در فضای کمِ
   نقشه، موارد بیشتری در یک نگاه دیده شود. */
/* چیپ‌های بالای نقشه یک درجه ظریف‌تر (۳۹px → ۳۳px). عمداً فقط
   این‌جا، نه کلاسِ سراسریِ `.chip` که در همهٔ صفحات استفاده می‌شود. */
.map-toolbar .chip { padding: 5px 11px; font-size: 11.5px; gap: 5px; }
.map-toolbar .chip svg { width: 12px; height: 12px; }

/* ظریف‌سازیِ ۲۰۲۶-۰۸-۰۵ (به‌درخواستِ کاربر): کارت از ۱۱۴px به ۹۴px،
   تصویر ۹۲→۷۶، حاشیه‌ها و گِردی یک درجه کمتر. با ارتفاعِ ۳۴۷px کشو،
   حالا سه کارتِ کامل به‌جای دو‌ونیم دیده می‌شود. */
.map-sheet__body .p-card--row, .map-list .p-card--row {
  margin-bottom: 7px; padding: 8px; gap: 9px; border-radius: 14px;
}
.map-sheet__body .p-card--row .p-card__media, .map-list .p-card--row .p-card__media { width: 76px; border-radius: 10px; }
.map-sheet__body .p-card--row .p-card__body, .map-list .p-card--row .p-card__body { gap: 2px; line-height: 1.45; }
.map-sheet__body .p-card--row .p-card__title, .map-list .p-card--row .p-card__title { font-size: 12.5px; line-height: 1.5; -webkit-line-clamp: 1; }
.map-sheet__body .p-card--row .p-card__loc, .map-list .p-card--row .p-card__loc { font-size: 10.5px; }
.map-sheet__body .p-card--row .p-card__specs, .map-list .p-card--row .p-card__specs { font-size: 10.5px; gap: 7px; }
.map-sheet__body .p-card--row .p-card__price, .map-list .p-card--row .p-card__price { padding-top: 0; }
.map-sheet__body .p-card--row .p-card__price strong, .map-list .p-card--row .p-card__price strong { font-size: 13px; }
.map-sheet__body .p-card--row .p-card__price .sub-price, .map-list .p-card--row .p-card__price .sub-price { font-size: 10.5px; }
/* ⚠️ برچسبِ دسته روی بندانگشتیِ ۷۶px تقریباً کلِ تصویر را می‌پوشاند
   (برای کارتِ ۶۴۰px طراحی شده بود) و اطلاعاتش هم در چیپِ فیلتر و
   رنگِ مارکر هست ⇒ در کارتِ نقشه پنهان می‌شود. فقط نشانِ «ویژه»
   می‌ماند چون تنها جای دیده‌شدنش همین‌جاست. */
.map-sheet__body .p-card--row .p-card__tags, .map-list .p-card--row .p-card__tags { display: none; }
.map-sheet__body .p-card--row .p-card__mbs, .map-list .p-card--row .p-card__mbs { bottom: 4px; inset-inline-start: 4px; }
.map-sheet__body .p-card--row .p-card__mb, .map-list .p-card--row .p-card__mb { font-size: 9px; padding: 1px 5px; gap: 2px; }
.map-sheet__body .p-card--row .p-card__mb svg, .map-list .p-card--row .p-card__mb svg { width: 10px; height: 10px; }
.map-sheet__body .p-card--row .p-card__fav, .map-list .p-card--row .p-card__fav { width: 24px; height: 24px; top: 5px; left: 5px; }
.map-sheet__body .p-card--row .p-card__fav svg, .map-list .p-card--row .p-card__fav svg { width: 13px; height: 13px; }

/* --- مارکر سفارشی: هر نوع، رنگ و آیکون خودش --- */
.kz-marker { background: transparent; border: 0; }
/* نشانِ کوچک و ظریف با نوکِ رو به پایین: چون آگهی‌ها زیادند و در محدودهٔ
   کوچکی جمع می‌شوند، نشانِ ریزتر شلوغی را کم می‌کند و نوکِ عمودی دقیقاً
   روی نقطهٔ واقعیِ آگهی می‌ایستد (rotate(-45deg) گوشهٔ تیز را پایین می‌آورد). */
.kz-marker__dot {
  width: 24px; height: 24px; border-radius: 50% 50% 50% 5px; transform: rotate(-45deg);
  border: 2px solid #fff; box-shadow: 0 2px 7px rgba(18, 40, 63, .26);
  display: grid; place-items: center; transition: transform .18s ease, box-shadow .18s ease;
}
.kz-marker__dot svg { width: 11.5px; height: 11.5px; color: #fff; transform: rotate(45deg); }
.kz-marker--estate     .kz-marker__dot { background: var(--red); }
.kz-marker--build      .kz-marker__dot { background: var(--green-light); }
.kz-marker--tour       .kz-marker__dot { background: var(--orange); }
.kz-marker--stay       .kz-marker__dot { background: var(--purple); }
.kz-marker--fun        .kz-marker__dot { background: var(--pink); }
.kz-marker--attraction .kz-marker__dot { background: var(--teal); }
.kz-marker--food       .kz-marker__dot { background: var(--gold); }
.kz-marker--event      .kz-marker__dot { background: var(--blue); }
/* توضیحِ کوتاهِ زیرِ یک فیلترِ سایدبار */
.side-hint { display: block; margin-top: 6px; font-size: 11px; color: var(--text-3); line-height: 1.6; }

/* «مشاهدهٔ همین نتایج روی نقشه» — زیرِ عنوانِ صفحهٔ نتایج.
   ⚠️ نسخهٔ اول پس‌زمینهٔ `--green-soft` داشت که سبزِ **۹٪** است؛ روی
   زمینهٔ روشنِ سایت عملاً دیده نمی‌شد و اصلاً دکمه به نظر نمی‌رسید
   (تذکرِ کاربر ۲۰۲۶-۰۸-۰۹). حالا دکمهٔ توپرِ برند است.
   عرضِ خودکار (inline-flex) تا نوارِ تمام‌عرض روی نتایج غالب نشود.
   ⚠️ نامش `map-jump` است نه `map-cta`: کلاسِ `.map-cta` از قبل برای
   **بنرِ نقشهٔ صفحهٔ اصلی** استفاده می‌شود و یک لایهٔ `::after` تیره روی
   خودش می‌کشد — همان لایه روی این دکمه هم می‌افتاد و محوش می‌کرد. */
.map-jump {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 11px 16px; border-radius: var(--radius-btn, var(--radius-s));
  /* رنگِ دومِ برند (سرمه‌ای) — خواستهٔ کاربر ۲۰۲۶-۰۸-۰۹؛ از سبزِ CTAهای
     اصلیِ سایت جدا می‌ماند و با هم رقابت نمی‌کند. */
  background: var(--navy); color: #fff;
  font-size: 13.5px; font-weight: 800; box-shadow: var(--shadow-s);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.map-jump:hover { background: var(--navy-2); box-shadow: var(--shadow); color: #fff; }
.map-jump:active { transform: scale(.98); }
.map-jump svg { width: 18px; height: 18px; flex-shrink: 0; }
/* پیکانِ انتهایی: کمی کم‌رنگ‌تر از متن، ولی روی سبزِ توپر هنوز خوانا */
.map-jump__go { display: inline-flex; opacity: .75; margin-inline-start: 2px; }
.map-jump__go svg { width: 14px; height: 14px; }
@media (max-width: 560px) { .map-jump { width: 100%; justify-content: center; } }

/* --- نشانِ قیمت‌دارِ املاک و سرمایه‌گذاری (سندِ ۲۰۲۶-۰۸-۰۹) ---
   کاربر باید پیش از بازکردنِ آگهی، قیمت را روی نقشه ببیند. */
.kz-price { background: transparent; border: 0; }
.kz-price__pill {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  height: 26px; padding: 0 9px; border-radius: 13px;
  background: var(--red); color: #fff; border: 2px solid #fff;
  font-size: 12px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(18, 40, 63, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.kz-price__pill svg { width: 12px; height: 12px; flex-shrink: 0; opacity: .9; }
/* نوکِ کوچکِ پایین تا حباب دقیقاً روی مختصات بایستد */
.kz-price__tip {
  display: block; width: 8px; height: 8px; margin: -4px auto 0;
  background: var(--red); border-inline-end: 2px solid #fff; border-block-end: 2px solid #fff;
  transform: rotate(45deg);
}
.kz-price--build .kz-price__pill,
.kz-price--build .kz-price__tip { background: var(--green-light); }
.kz-price.is-hot .kz-price__pill { transform: scale(1.12); box-shadow: 0 5px 16px rgba(18, 40, 63, .4); }
/* موقعیتِ تقریبی: همان قرارداد بصریِ سوزن‌ها — لبهٔ خط‌چین */
.kz-price.is-approx .kz-price__pill { border-style: dashed; }

/* نگاشت رنگ‌های قدیمی */
.kz-marker--coral .kz-marker__dot { background: var(--red); }
.kz-marker--amber .kz-marker__dot { background: var(--orange); }
.kz-marker--green .kz-marker__dot { background: var(--green-light); }
.kz-marker--blue  .kz-marker__dot { background: var(--blue); }
.kz-marker.is-hot .kz-marker__dot { transform: rotate(-45deg) scale(1.32); box-shadow: 0 0 0 5px rgba(15, 122, 82, .18), 0 4px 13px rgba(18, 40, 63, .32); }

/* پاپ‌آپ Leaflet — کارت اطلاعات */
.leaflet-popup-content-wrapper { background: var(--surface); color: var(--text); border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 258px !important; font-family: var(--font); direction: rtl; line-height: 1.7; }
.leaflet-popup-tip { background: var(--surface); border: 1px solid var(--line); }
.leaflet-popup-close-button { color: #fff !important; z-index: 5; font-size: 20px !important; padding: 6px 8px !important; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.kz-pop img { width: 100%; height: 122px; object-fit: cover; }
.kz-pop__body { padding: 11px 13px 13px; }
.kz-pop__body .tag { margin-bottom: 6px; }
.kz-pop__title { font-size: 13px; font-weight: 700; line-height: 1.6; margin-bottom: 4px; color: var(--navy); }
.kz-pop__meta { font-size: 11.5px; color: var(--text-3); display: flex; gap: 8px; flex-wrap: wrap; }
.kz-pop__price { font-size: 14.5px; font-weight: 800; margin-top: 6px; color: var(--navy); }
.kz-pop .btn { margin-top: 10px; width: 100%; padding-block: 8px; font-size: 12.5px; }
/* لینک‌های داخل نقشه رنگِ پیش‌فرضِ آبیِ Leaflet را می‌گرفتند؛ متنِ دکمهٔ
   «مشاهده جزئیات» روی سبز باید سفیدِ خاکستری باشد نه سرمه‌ای/آبی. */
.leaflet-container .kz-pop a.btn--primary { color: #f3f7f5; }
.leaflet-container .kz-pop a.btn--primary:hover { color: #fff; }
.leaflet-container { font-family: var(--font); }
.leaflet-control-zoom a { background: var(--surface) !important; color: var(--navy) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .8) !important; color: var(--text-3) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--text-2) !important; }
/* تم روشن و آرام برای کاشی‌های OSM */
.map-tiles-light { filter: saturate(.72) brightness(1.06) contrast(.94); }
.map-tiles-dark  { filter: saturate(.72) brightness(1.06) contrast(.94); } /* نگاشت کلاس قدیمی */

/* راهنمای رنگ مارکرها */
.map-legend {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  font-size: 11.5px; color: var(--text-2);
}
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-inline-end: 5px; }

/* =========================================================
   صفحه جزئیات ملک
   ========================================================= */
.prop-gallery { display: grid; grid-template-columns: 1fr; gap: 8px; border-radius: var(--radius-l); overflow: hidden; margin-top: 18px; }
.prop-gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/9; }
.prop-gallery .g-sub { display: none; }
@media (min-width: 900px) {
  .prop-gallery { grid-template-columns: 2fr 1fr; }
  .prop-gallery .g-main img { aspect-ratio: 4/2.65; }
  .prop-gallery .g-sub { display: grid; gap: 8px; grid-template-rows: 1fr 1fr; }
  .prop-gallery .g-sub img { aspect-ratio: auto; height: 100%; }
}
.prop-layout { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 24px; }
.prop-layout > * { min-width: 0; }
@media (min-width: 900px) { .prop-layout { grid-template-columns: 1fr 350px; align-items: start; } }
.prop-main h1 { font-size: clamp(19px, 3.6vw, 26px); margin-block: 8px 4px; }
.prop-main .loc { color: var(--text-3); font-size: 13px; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 20px; }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec-grid div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 13px; text-align: center; box-shadow: var(--shadow-xs); }
.spec-grid strong { display: block; font-size: 15.5px; color: var(--navy); }
.spec-grid span { font-size: 11.5px; color: var(--text-3); }
.prop-section { margin-top: 28px; }
.prop-section h2 { font-size: 17.5px; margin-bottom: 13px; }
.feat-list { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
@media (min-width: 640px) { .feat-list { grid-template-columns: repeat(3, 1fr); } }
.feat-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; }
.feat-list svg { width: 15px; height: 15px; color: var(--green); flex-shrink: 0; }
#prop-map { height: 280px; border-radius: var(--radius); border: 1px solid var(--line); }

.prop-aside { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.price-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-s); }
.price-card .tag { margin-bottom: 10px; }
.price-card__price { font-size: 24px; font-weight: 800; color: var(--navy); }
.price-card__unit { font-size: 12px; color: var(--text-3); }
.price-card__per { font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.price-card hr { border: 0; border-top: 1px dashed var(--line-2); margin-block: 15px; }
.agent { display: flex; align-items: center; gap: 12px; }
.agent__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green-deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 16px; }
.agent strong { font-size: 14px; display: block; color: var(--navy); }
.agent span { font-size: 11.5px; color: var(--text-3); }
.price-card .btn { margin-top: 10px; }
.safety-note { font-size: 11.5px; color: var(--text-2); background: var(--orange-soft); border: 1px dashed rgba(221, 139, 60, .4); border-radius: var(--radius-s); padding: 12px 14px; line-height: 1.95; }

/* اقدام‌های سریع صفحه آگهی */
.prop-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.prop-actions .chip { cursor: pointer; }

/* =========================================================
   ثبت آگهی (wizard)
   ========================================================= */
.wizard { max-width: 760px; margin-inline: auto; }
.wizard-steps { display: flex; gap: 6px; margin-block: 20px 26px; }
.wizard-steps div { flex: 1; height: 5px; border-radius: 99px; background: var(--line); transition: background .3s; }
.wizard-steps div.is-done { background: var(--horizon); }
.wizard-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px 20px; box-shadow: var(--shadow-s); }
.wizard-panel h2 { font-size: 18.5px; margin-bottom: 4px; }
.wizard-panel > p { font-size: 13px; color: var(--text-3); margin-bottom: 20px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
@media (min-width: 640px) { .choice-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .choice-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.choice-grid button {
  background: var(--surface-2); border: 1.5px solid transparent; border-radius: var(--radius-s);
  padding: 16px 10px; cursor: pointer; color: var(--text-2); font-weight: 700; font-size: 13.5px;
  display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center;
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}
.choice-grid button svg { width: 24px; height: 24px; }
.choice-grid button:hover { border-color: var(--line-2); transform: translateY(-2px); }
.choice-grid button.is-active { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.wizard .search-fields { margin-top: 16px; }
.wizard textarea { background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-s); padding: 12px 13px; font-size: 13.5px; width: 100%; min-height: 110px; resize: vertical; }
.wizard textarea:focus { border-color: var(--green); background: #fff; outline: none; }
.wizard-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.upload-zone {
  border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 32px 16px; text-align: center;
  color: var(--text-3); font-size: 13px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; margin-top: 16px;
}
.upload-zone:hover, .upload-zone.is-drag { border-color: var(--green); color: var(--green); background: var(--green-soft); }
.upload-zone svg { width: 32px; height: 32px; margin: 0 auto 8px; opacity: .55; }

/* پیش‌نمایشِ تصاویرِ آپلودشده */
.upload-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.up-thumb { position: relative; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); }
.up-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.up-thumb--cover { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.up-thumb__badge { position: absolute; inset-block-start: 5px; inset-inline-start: 5px; background: var(--green); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.up-thumb__del { position: absolute; inset-block-start: 4px; inset-inline-end: 4px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(18,40,63,.72); color: #fff; cursor: pointer; display: grid; place-items: center; }
.up-thumb__del svg { width: 14px; height: 14px; }

/* فیلتر سریع: چیپ‌ها و دکمهٔ پاک‌کردن */
.side-block__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.side-clear { border: 0; background: transparent; color: var(--red); font: inherit; font-size: 11px; font-weight: 700; cursor: pointer; text-decoration: underline; }
.side-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.side-chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-pill);
  padding: 6px 12px; font: inherit; font-size: 12px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: all .16s;
}
.side-chip:hover { border-color: var(--green); color: var(--green); }
.side-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }
/* زیرشاخهٔ سطحِ دومِ املاک: کمی تورفته و کم‌رنگ‌تر تا سلسله‌مراتب دیده شود */
.side-chip--sub { font-size: 11.5px; font-weight: 500; background: var(--surface-2); }
.side-chip--sub::before { content: '↳'; margin-inline-end: 4px; opacity: .55; }
/* همان سلسله‌مراتب در نوارِ چیپ‌های بالای نتایج */
.chip--sub { font-size: 12px; background: var(--surface-2); }
.chip--sub::before { content: '↳'; margin-inline-end: 4px; opacity: .55; }

/* چک‌باکسِ فیلترهای اختصاصیِ دسته در سایدبار */
.attr-check { display: flex; align-items: center; gap: 8px; padding: 6px 2px; font-size: 13px; color: var(--text-2); cursor: pointer; }
.attr-check input { width: auto; accent-color: var(--green); }

/* دکمهٔ «نمایش بیشتر» و پایانِ نتایج */
.results-more { margin: 22px auto 8px; max-width: 420px; }
.results-more .btn { justify-content: center; }
.results-end { text-align: center; font-size: 12.5px; color: var(--text-3); padding: 14px 0; }

/* جایگاه‌های تبلیغاتی — هم‌رنگِ برند، مینیمال و پریمیوم */
.adslot { margin: 18px 0; }
.adslot__card {
  position: relative; display: block; overflow: hidden; border-radius: var(--radius);
  border: 1px solid var(--line); min-height: 118px; isolation: isolate;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .22s;
}
.adslot__card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(18,40,63,.12); }
.adslot__bg { position: absolute; inset: 0; z-index: -2; }
.adslot__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.adslot__card::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(275deg, transparent 8%, color-mix(in srgb, var(--ac, var(--green)) 88%, #0a2018) 72%);
}
.adslot__body { display: block; padding: 20px 22px; color: #fff; max-width: 74%; }
.adslot__body b { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.adslot__body > span { display: block; font-size: 12.5px; opacity: .86; margin-top: 4px; }
.adslot__tag {
  display: inline-block; font-size: 10px; font-weight: 700; font-style: normal;
  background: rgba(255,255,255,.22); padding: 2px 9px; border-radius: 20px; margin-bottom: 8px;
  backdrop-filter: blur(4px);
}
.adslot__tag--in { background: rgba(255,255,255,.16); }
.adslot__cta { display: inline-flex; align-items: center; gap: 4px; font-style: normal; font-size: 12.5px; font-weight: 700; margin-top: 10px; }
.adslot__cta svg { width: 14px; height: 14px; transform: rotate(90deg); }
@media (max-width: 640px) { .adslot__body { max-width: 100%; padding: 16px; } .adslot__body b { font-size: 15px; } }

/* نظرات و امتیاز */
.stars { display: inline-flex; gap: 2px; }
.stars i { display: inline-grid; place-items: center; color: var(--line-2); }
.stars i svg { width: var(--s, 15px); height: var(--s, 15px); }
.stars i.is-on { color: #e8b422; }
.rv-summary { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; background: var(--surface-2); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.rv-score { text-align: center; }
.rv-score b { display: block; font-size: 30px; color: var(--navy); line-height: 1.1; }
.rv-score span { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; }
.rv-bars { flex: 1; min-width: 190px; display: grid; gap: 5px; }
.rv-bar { display: grid; grid-template-columns: 14px 1fr 26px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.rv-bar i { display: block; height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; }
.rv-bar i b { display: block; height: 100%; background: #e8b422; border-radius: 4px; }
.rv-empty { color: var(--text-3); font-size: 13px; margin-bottom: 14px; }
.rv-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.rv-item__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 13px; }
.rv-item p { margin-top: 7px; font-size: 13px; color: var(--text-2); line-height: 1.9; }
.rv-date { margin-inline-start: auto; font-size: 11.5px; color: var(--text-3); }
.rv-form { margin-top: 18px; background: var(--surface-2); border-radius: var(--radius); padding: 15px; }
.rv-form > b { display: block; margin-bottom: 10px; font-size: 13.5px; }
.rv-pick { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.rv-pick button { border: 0; background: transparent; cursor: pointer; color: var(--line-2); padding: 2px; }
.rv-pick button svg { width: 24px; height: 24px; }
.rv-pick button.is-on { color: #e8b422; }
.rv-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; background: #fff; resize: vertical; margin-bottom: 10px; }

/* دستیار هوشمندِ ثبت آگهی */
.assist { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.assist__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; background: var(--green-soft); border-bottom: 1px solid var(--line); font-size: 13px; }
.assist__head b { display: inline-flex; align-items: center; gap: 6px; color: var(--green-deep); }
.assist__head svg { width: 17px; height: 17px; }
.assist__score { font-size: 12px; color: var(--text-2); }
.assist__toggle { border: 0; background: transparent; color: var(--text-3); font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; }
.assist__list { list-style: none; margin: 0; padding: 6px 8px; }
.assist__item { display: flex; gap: 9px; align-items: flex-start; padding: 8px 6px; font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
.assist__ico { flex-shrink: 0; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; }
.assist__ico svg { width: 13px; height: 13px; }
.assist__item--ok .assist__ico { background: var(--green-soft); color: var(--green); }
.assist__item--warn .assist__ico { background: var(--orange-soft); color: var(--orange); }
.assist__item--info .assist__ico { background: var(--surface-2); color: var(--text-3); }
.assist__act { border: 1px solid var(--green); background: transparent; color: var(--green); font: inherit; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; cursor: pointer; margin-inline-start: 4px; }
.assist__act:hover { background: var(--green); color: #fff; }
.assist__off { padding: 14px; font-size: 12.5px; color: var(--text-3); display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* انتخابگرِ نحوهٔ قیمت‌گذاری در فرمِ ثبت */
.pm-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 4px; }
.pm-chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-pill);
  padding: 8px 14px; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  cursor: pointer; transition: border-color .16s, background .16s, color .16s;
}
.pm-chip:hover { border-color: var(--green); color: var(--green); }
.pm-chip.is-active { background: var(--green); border-color: var(--green); color: #fff; }

/* نقشهٔ انتخابِ موقعیت در ثبت آگهی */
.loc-map { height: 240px; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); z-index: 0; }
.loc-map__hint { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.loc-map__hint small { color: var(--text-3); font-size: 11.5px; }

/* پیش‌نمایشِ آگهی پیش از انتشار */
.sp-card { display: flex; gap: 14px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.sp-media { position: relative; width: 108px; height: 84px; border-radius: var(--radius-s); overflow: hidden; flex-shrink: 0; background: var(--green-soft); }
.sp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-noimg { width: 100%; height: 100%; display: grid; place-content: center; gap: 4px; justify-items: center; color: var(--text-3); font-size: 11px; }
.sp-noimg svg { width: 22px; height: 22px; }
.sp-count { position: absolute; inset-block-end: 5px; inset-inline-end: 5px; background: rgba(18,40,63,.72); color: #fff; font-size: 10.5px; padding: 2px 7px; border-radius: 20px; display: inline-flex; align-items: center; gap: 3px; }
.sp-count svg { width: 12px; height: 12px; }
.sp-body { min-width: 0; }
.sp-body h3 { font-size: 15.5px; margin-bottom: 4px; }
.sp-loc { font-size: 12px; color: var(--text-2); display: flex; align-items: center; gap: 4px; }
.sp-loc svg { width: 14px; height: 14px; color: var(--text-3); }
.sp-price { font-size: 15px; font-weight: 800; color: var(--green); margin-top: 6px; }
.sp-price span { font-weight: 400; font-size: 12px; color: var(--text-3); }
.sp-grid { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.sp-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 13px; font-size: 13px; }
.sp-row:nth-child(odd) { background: var(--surface-2); }
.sp-row > span { color: var(--text-3); flex-shrink: 0; }
.sp-row > b { text-align: end; color: var(--text); font-weight: 700; }
.sp-desc { margin-top: 14px; }
.sp-desc > span { font-size: 11.5px; font-weight: 700; color: var(--text-3); }
.sp-desc p { margin-top: 5px; font-size: 13px; color: var(--text-2); line-height: 1.8; white-space: pre-wrap; }
.wizard-success { text-align: center; padding: 44px 16px; }
.wizard-success svg { width: 60px; height: 60px; color: var(--green); margin: 0 auto 16px; }

/* =========================================================
   سرمایه‌گذاری / بازار / مجله
   ========================================================= */
.proj-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 11px; box-shadow: var(--shadow-xs); transition: border-color .2s, transform .2s, box-shadow .2s; }
.proj-card:hover { transform: translateY(-4px); border-color: var(--green); box-shadow: var(--shadow-s); }
.proj-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.proj-card h3 { font-size: 16px; }
.proj-card .city { font-size: 12px; color: var(--text-3); }
.proj-card p.desc { font-size: 13px; color: var(--text-2); }
.progress { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--horizon); }
.proj-card__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; font-size: 12px; color: var(--text-3); }
.proj-card__meta strong { display: block; color: var(--navy); font-size: 13px; }

.market-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.market-table th { text-align: right; color: var(--text-3); font-size: 11.5px; font-weight: 700; padding: 11px 13px; border-bottom: 1px solid var(--line); }
.market-table td { padding: 13px; border-bottom: 1px solid var(--line); }
.market-table tr:hover td { background: var(--surface-2); }
.market-table .up { color: var(--green); font-weight: 700; }
/* نمودار مقایسه‌ایِ بین‌شهریِ بازار */
.mk-bars { display: flex; flex-direction: column; gap: 11px; }
.mk-bar { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 12px; }
.mk-bar__city { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bar__track { height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.mk-bar__track i { display: block; height: 100%; border-radius: 99px; background: var(--horizon); transition: width .6s ease; }
.mk-bar__val { text-align: left; font-weight: 800; color: var(--green); font-size: 13px; }
.chart-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); }
.chart-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.chart-card select { background: var(--surface-2); border: 1px solid transparent; border-radius: 10px; padding: 8px 13px; font-size: 13px; color: var(--text); cursor: pointer; }
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
@media (min-width: 900px) { .stat-cards { grid-template-columns: repeat(4, 1fr); } }
.stat-cards div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 17px; box-shadow: var(--shadow-xs); }
.stat-cards strong { font-size: 20px; display: block; color: var(--navy); }
.stat-cards span { font-size: 12px; color: var(--text-3); }
.stat-cards em { font-style: normal; font-size: 11.5px; font-weight: 700; }

.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-xs); transition: transform .2s, border-color .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-s); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card__body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.post-card h3 { font-size: 15px; line-height: 1.7; }
.post-card p { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card__meta { margin-top: auto; padding-top: 8px; font-size: 11.5px; color: var(--text-3); display: flex; gap: 10px; }
.post-featured { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--surface); margin-bottom: 28px; box-shadow: var(--shadow-xs); }
@media (min-width: 900px) { .post-featured { grid-template-columns: 1.2fr 1fr; } }
.post-featured img { width: 100%; height: 100%; object-fit: cover; min-height: 230px; }
.post-featured__body { padding: 26px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.post-featured h2 { font-size: clamp(18px, 3vw, 23px); line-height: 1.7; }
.post-featured p { color: var(--text-2); font-size: 13.5px; }

/* =========================================================
   مودال، توست، تماس با فروشنده و چت
   ========================================================= */
.kz-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.kz-modal.is-on { visibility: visible; }
.kz-modal__scrim { position: absolute; inset: 0; background: rgba(18, 40, 63, .5); opacity: 0; transition: opacity .2s; }
.kz-modal.is-on .kz-modal__scrim { opacity: 1; }
.kz-modal__box { position: relative; z-index: 1; width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-l); padding: 24px; transform: translateY(12px) scale(.98); opacity: 0; transition: transform .22s cubic-bezier(.2,.8,.2,1), opacity .22s; }
.kz-modal.is-on .kz-modal__box { transform: none; opacity: 1; }
.kz-modal__x { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--surface-2); color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.kz-modal__x svg { width: 16px; height: 16px; }
.kz-modal__x:hover { color: var(--red); }

.kz-contact { text-align: center; }
.kz-contact__avatar { width: 60px; height: 60px; border-radius: 50%; background: var(--green-deep); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 24px; margin: 0 auto 10px; }
.kz-contact strong { display: block; font-size: 16px; color: var(--navy); }
.kz-contact__hours { font-size: 12px; color: var(--text-3); }
.kz-contact__phone { font-size: 26px; font-weight: 800; color: var(--green); letter-spacing: 1px; margin: 18px 0; direction: ltr; }
.kz-contact__actions { display: flex; gap: 8px; }
.kz-contact__actions .btn { flex: 1; }

.kz-toast { position: fixed; bottom: calc(var(--bnav-h) + 20px); inset-inline: 0; margin-inline: auto; width: max-content; max-width: 90vw; z-index: 260; background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius-pill); font-size: 13px; font-weight: 600; box-shadow: var(--shadow-l); opacity: 0; transform: translateY(10px); transition: opacity .2s, transform .2s; pointer-events: none; }
.kz-toast.is-on { opacity: 1; transform: none; }
@media (min-width: 1024px) { .kz-toast { bottom: 24px; } }

/* --- پنجره چت --- */
.chat { display: grid; grid-template-columns: 1fr; gap: 0; height: calc(100vh - var(--header-h) - 120px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
@media (min-width: 760px) { .chat { grid-template-columns: 280px 1fr; } }
/* موبایل: فهرستِ گفتگوها بالا (چون در DOM پس از پنجرهٔ گفتگوست) و ارتفاع
   ثابتِ صفحه‌ای برداشته می‌شود تا کادرِ پیام‌ها له نشود. */
@media (max-width: 759px) {
  .chat { height: auto; min-height: 0; }
  .chat__list { order: -1; max-height: 230px; border-inline-start: 0; border-bottom: 1px solid var(--line); }
  .chat__main { min-height: 340px; }
}
.chat__list { border-inline-start: 1px solid var(--line); overflow-y: auto; background: var(--bg-2); }
.chat__conv { display: flex; gap: 10px; padding: 13px 14px; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.chat__conv:hover, .chat__conv.is-active { background: var(--green-soft); }
.chat__conv-av { width: 40px; height: 40px; border-radius: 50%; background: var(--green-deep); color: #fff; display: grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.chat__conv-body { flex: 1; min-width: 0; }
.chat__conv-body b { font-size: 13.5px; color: var(--navy); display: block; }
.chat__conv-body small { font-size: 11.5px; color: var(--text-3); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__conv .badge { background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.chat__main { display: flex; flex-direction: column; min-height: 0; }
.chat__head { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.chat__head b { font-size: 14.5px; color: var(--navy); }
.chat__head small { font-size: 11.5px; color: var(--text-3); display: block; }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.chat__msg { max-width: 78%; padding: 9px 13px; border-radius: 15px; font-size: 13.5px; line-height: 1.7; }
.chat__msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-inline-start-radius: 5px; }
.chat__msg.mine { align-self: flex-end; background: var(--green); color: #fff; border-bottom-inline-end-radius: 5px; }
.chat__msg time { display: block; font-size: 10px; opacity: .7; margin-top: 3px; }
.chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat__form input { flex: 1; background: var(--surface-2); border: 1px solid transparent; border-radius: var(--radius-pill); padding: 11px 16px; font-size: 13.5px; }
.chat__form input:focus { border-color: var(--green); background: var(--surface); outline: none; }
.chat__form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
.chat__empty { display: grid; place-items: center; height: 100%; color: var(--text-3); font-size: 13px; text-align: center; padding: 20px; }

/* انیمیشن ورود ملایم */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .45s ease both; }
.rise-2 { animation: rise .45s .07s ease both; }
.rise-3 { animation: rise .45s .14s ease both; }

/* =========================================================
   صفحهٔ عمومی کسب‌وکار
   ========================================================= */
.biz-hero { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: 20px; box-shadow: var(--shadow-xs); position: relative; overflow: hidden; }
.biz-hero::before { content: ''; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--ac, var(--green)); }
.biz-hero__mark { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--ac, var(--green)) 12%, transparent); color: var(--ac, var(--green)); }
.biz-hero__mark svg { width: 30px; height: 30px; }
.biz-hero__body { flex: 1; min-width: 0; }
.biz-hero h1 { font-size: clamp(19px, 3vw, 25px); color: var(--navy); margin-bottom: 8px; }
.biz-hero__meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: var(--text-2); align-items: center; }
.biz-hero__meta svg { width: 14px; height: 14px; vertical-align: -2px; }
.biz-hero__bio { font-size: 13.5px; color: var(--text-2); line-height: 2; margin-top: 10px; max-width: 720px; }
.biz-hero__cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.biz-badge { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ac, var(--green));
  background: color-mix(in srgb, var(--ac, var(--green)) 10%, transparent); padding: 3px 10px; border-radius: 99px; }
.biz-badge--gold { color: var(--gold); background: var(--gold-soft); }
.biz-cities { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.biz-cities .chip { text-decoration: none; }
/* نشانِ کسب‌وکار روی کارت آگهی و صفحهٔ آگهی */
.biz-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--green-deep);
  background: var(--green-soft); padding: 2px 9px; border-radius: 99px; }
.biz-tag svg { width: 13px; height: 13px; }
@media (max-width: 560px) { .biz-hero { flex-direction: column; } }

/* =========================================================
   تقویم اشغال (مودال رزرو و پنل میزبان)
   ========================================================= */
.kzcal { position: relative; border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px; background: var(--surface); }
.kzcal__nav { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; gap: 4px; }
.kzcal__arrow { width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.kzcal__arrow:hover { border-color: var(--green); color: var(--green); }
.kzcal__arrow svg { width: 13px; height: 13px; }
.kzcal__arrow[data-cal="-1"] svg { transform: rotate(-90deg); }
.kzcal__arrow[data-cal="1"] svg { transform: rotate(90deg); }
.kzcal__months { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .kzcal__months { grid-template-columns: 1fr 1fr; } }
.kzcal__month > b { display: block; text-align: center; font-size: 13px; color: var(--navy); margin-bottom: 8px; }
.kzcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.kzcal__wd { font-size: 10.5px; color: var(--text-3); text-align: center; font-style: normal; padding-bottom: 2px; }
.kzcal__pad { display: block; }
.kzcal__day { position: relative; aspect-ratio: 1; border: 1px solid transparent; border-radius: 9px; background: var(--surface-2);
  color: var(--text); font-family: inherit; font-size: 12px; cursor: pointer; display: grid; place-items: center;
  transition: background .14s, color .14s, border-color .14s; }
.kzcal__day:hover:not([disabled]) { border-color: var(--green); color: var(--green); }
.kzcal__day.is-past { opacity: .35; cursor: default; }
.kzcal__day.is-blocked { background: var(--red-soft); color: var(--red); text-decoration: line-through; cursor: not-allowed; }
.kzcal__day.is-range { background: var(--green-soft); color: var(--green-deep); border-color: var(--green); }
.kzcal__day.is-sel { background: var(--green); color: #fff; border-color: var(--green); }
.kzcal__dot { position: absolute; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.kzcal__legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.kzcal__legend i { display: inline-block; width: 11px; height: 11px; border-radius: 4px; vertical-align: -1px; margin-inline-end: 4px; }

/* دایرکتوری کسب‌وکارها */
.bizd-search { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.bizd-search input { flex: 1; min-width: 200px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; font-family: inherit; font-size: 13.5px; color: var(--text); }
.bizd-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 700px) { .bizd-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); } }
.bizd-card { display: flex; gap: 13px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px; box-shadow: var(--shadow-xs); transition: transform .2s, box-shadow .2s, border-color .2s; }
.bizd-card:hover { transform: translateY(-3px); border-color: var(--ac, var(--green)); box-shadow: var(--shadow); }
.bizd-card__mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; flex-shrink: 0;
  background: color-mix(in srgb, var(--ac, var(--green)) 12%, transparent); color: var(--ac, var(--green)); }
.bizd-card__mark svg { width: 22px; height: 22px; }
.bizd-card__body { min-width: 0; flex: 1; }
.bizd-card__body b { display: block; font-size: 14.5px; color: var(--navy); }
.bizd-card__type { font-size: 11.5px; color: var(--text-3); }
.bizd-card__body p { font-size: 12.5px; color: var(--text-2); line-height: 1.9; margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bizd-card__foot { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 9px; font-size: 12px; color: var(--text-2); }
.bizd-card__foot svg { width: 13px; height: 13px; color: var(--gold); vertical-align: -2px; }

/* خوشهٔ مارکرها روی نقشه (زوم‌های باز) */
.kz-cluster { background: transparent; border: 0; }
.kz-cluster__dot { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--green) 88%, #06301f); color: #fff; border: 2.5px solid #fff;
  box-shadow: 0 3px 12px rgba(18,40,63,.32); font-size: 12.5px; font-weight: 800; cursor: pointer;
  transition: transform .16s ease; }
.kz-cluster:hover .kz-cluster__dot { transform: scale(1.08); }

/* نوار «جستجوی زبان طبیعی» بالای نتایج */
.nl-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px;
  background: var(--green-soft); border: 1px solid color-mix(in srgb, var(--green) 26%, transparent);
  border-radius: var(--radius-s); padding: 10px 13px; }
.nl-bar__q { font-size: 12.5px; color: var(--green-deep); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.nl-bar__q svg { width: 15px; height: 15px; }
.nl-chip { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: 12px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 4px 10px; cursor: pointer; }
.nl-chip b { color: var(--navy); font-weight: 700; }
.nl-chip i { display: inline-flex; opacity: .5; }
.nl-chip i svg { width: 12px; height: 12px; }
.nl-chip:hover { border-color: var(--red); color: var(--red); }
.nl-chip:hover i { opacity: 1; }
.nl-bar__all { font-size: 11.5px; color: var(--text-3); margin-inline-start: auto; text-decoration: underline; }

/* =========================================================
   تقویمِ شمسی (assets/js/jalali.js)
   ورودیِ ناتیوِ تاریخ همیشه میلادی است و شمسی‌اش نمی‌کند؛ این دکمه
   جایش می‌نشیند و مقدارِ میلادی در یک input مخفی می‌ماند.
   ========================================================= */
.jdate {
  width: 100%; text-align: start; cursor: pointer;
  background: var(--surface-2, #f0f4f2); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 11px 13px;
  font: inherit; font-size: 13.5px; font-weight: 700; color: var(--text);
}
.jdate:hover { border-color: var(--green); }
.jdate.is-empty { color: var(--text-3); font-weight: 500; }

.jcal {
  position: absolute; z-index: 1200; width: 268px; padding: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-l);
}
.jcal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.jcal__head b { font-size: 14px; color: var(--navy); }
.jcal__head button {
  width: 30px; height: 30px; border: 0; background: var(--surface-2, #f0f4f2);
  border-radius: 8px; cursor: pointer; font-size: 17px; color: var(--text-2);
}
.jcal__head button:hover { background: var(--green-soft); color: var(--green); }
.jcal__dow, .jcal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.jcal__dow span { text-align: center; font-size: 11px; color: var(--text-3); padding: 4px 0; font-weight: 700; }
.jcal__grid button {
  height: 32px; border: 0; background: transparent; border-radius: 8px;
  cursor: pointer; font: inherit; font-size: 12.5px; color: var(--text);
}
.jcal__grid button:hover { background: var(--green-soft); }
.jcal__grid button.is-today { box-shadow: inset 0 0 0 1px var(--green-light); }
.jcal__grid button.is-sel { background: var(--green); color: #fff; font-weight: 800; }
.jcal__foot { display: flex; gap: 6px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.jcal__foot button {
  flex: 1; border: 0; background: var(--surface-2, #f0f4f2); border-radius: 8px;
  padding: 7px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; color: var(--text-2);
}
.jcal__foot button:hover { background: var(--green-soft); color: var(--green); }
