/* ============================================================
   مرکز همایش‌های نور — سیستم طراحی
   آبی لوکس + طلایی، راست‌چین، ریسپانسیو
   ============================================================ */

@font-face { font-family: 'Vazirmatn'; font-weight: 400; font-display: swap; src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 500; font-display: swap; src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 700; font-display: swap; src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Vazirmatn'; font-weight: 800; font-display: swap; src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2'); }

:root {
  --primary: #1a2f55;
  --primary-dark: #0e1930;
  --primary-soft: #e8edf7;
  --accent: #c9962e;
  --accent-soft: #faf3e0;
  --ink: #101a2b;
  --muted: #5b6779;
  --line: #e2e8f2;
  --bg: #f6f9fc;
  --card: #ffffff;
  --danger: #c0392b;
  --ok: #1e7e4d;
  --warn: #b9860c;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(14,25,48, .10);
  --shadow-sm: 0 4px 14px rgba(14,25,48, .07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  font-size: 15.5px;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ------------------------------------------------------------------
   عرض محتوا — خواسته کارفرما: «حدالامکان تمام صفحه باشه» و
   «از طرفین ۴ سانت خالی باشه کافیه زیاد نشه».
   راه‌حل: تمام‌عرض با گاف ثابت ۴ سانت (نه درصد)، تا روی هر اندازه
   نمایشگر یکنواخت باشد. روی صفحه‌های کوچک، گاف کمتر می‌شود.
   ------------------------------------------------------------------ */
:root {
  /* ------------------------------------------------------------------
     گاف طرفین — خواسته کارفرما: «حدالامکان تمام صفحه باشه» و گاف کم بماند.
     مقدار با عرض صفحه تغییر می‌کند: روی مانیتور بزرگ ~۳۴px (کمتر از یک سانت)،
     روی تبلت ۲۰px و روی موبایل ۱۲px.
     ------------------------------------------------------------------ */
  --page-gap: clamp(16px, 1.8vw, 34px);
  --page-gap-md: 20px;
  --page-gap-sm: 12px;
}
.container {
  width: auto;
  max-width: none;
  margin-right: var(--page-gap);
  margin-left: var(--page-gap);
  box-sizing: border-box;
}
@media (max-width: 1400px) {
  .container { margin-right: var(--page-gap-md);
  margin-left: var(--page-gap-md); }
}
@media (max-width: 760px) {
  .container { margin-right: var(--page-gap-sm);
  margin-left: var(--page-gap-sm); }
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 26px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.6;
  transition: all .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 20px rgba(21, 94, 156, .28); }
.btn-primary:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 12px 26px rgba(21, 94, 156, .36); }
.btn-outline { background: #fff; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-outline:hover { background: var(--primary-soft); }
.btn-gold { background: linear-gradient(135deg, #d4a437, var(--accent)); color: #fff; box-shadow: 0 8px 20px rgba(201, 150, 46, .3); }
.btn-gold:hover { transform: translateY(-2px); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

.badge {
  display: inline-block; padding: 3px 12px; border-radius: 99px;
  font-size: 12px; font-weight: 700;
}
.badge-gold { background: var(--accent-soft); color: #8a6410; }
.badge-blue { background: var(--primary-soft); color: var(--primary-dark); }
.badge-red  { background: #fdeceb; color: var(--danger); }
.badge-yellow { background: #fdf6e0; color: var(--warn); }
.badge-green { background: #e8f6ee; color: var(--ok); }

/* ---------- فرم‌ها ---------- */
.input, select.input, textarea.input {
  width: 100%; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 12px;
  font-family: inherit; font-size: 15px; background: #fff; color: var(--ink);
  transition: border .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(21, 94, 156, .12); }
label { font-size: 13.5px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- پیام فلش ---------- */
.flashes { margin: 14px var(--page-gap) 0; }
.flash {
  padding: 12px 18px; border-radius: 12px; margin-bottom: 8px; font-weight: 500;
  border: 1px solid; font-size: 14.5px;
}
.flash-ok { background: #e8f6ee; border-color: #bfe6cf; color: var(--ok); }
.flash-err { background: #fdeceb; border-color: #f5c6c0; color: var(--danger); }
.flash-info { background: var(--primary-soft); border-color: #bfcbe2; color: var(--primary-dark); }

/* ---------- هدر ---------- */
.topbar { background: var(--primary-dark); color: #d5dded; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 6px 0; }
.topbar-credit { font-size: 12.5px; color: #c9d3e6; white-space: nowrap; }
.topbar-credit a { color: #e8edf7; text-decoration: none; }
.topbar-credit a b { color: #f0d9a0; font-weight: 700; letter-spacing: .3px; }
.topbar-credit a:hover { color: #fff; }
.topbar-credit a:hover b { text-decoration: underline; }
@media (max-width: 900px) { .topbar-tagline { display: none; } }
@media (max-width: 560px) { .topbar-credit { font-size: 11.5px; } }
.topbar a { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 46px; width: auto; }
.brand-name { font-weight: 800; font-size: 17px; color: var(--primary-dark); line-height: 1.4; }
.brand-name small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li > a {
  display: block; padding: 9px 15px; border-radius: 10px;
  color: var(--ink); font-weight: 500; font-size: 14.5px;
}
.nav > li > a:hover, .nav > li > a.active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--primary-dark); margin: 5px 0; border-radius: 2px; }

/* ---------- هیرو ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(212, 164, 55, .16), transparent 60%),
    radial-gradient(1000px 500px at 10% 110%, rgba(21, 94, 156, .14), transparent 55%),
    linear-gradient(180deg, #fdfefe, var(--primary-soft));
  padding: 84px 0 96px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23155e9c' stroke-opacity='0.07'%3E%3Cpath d='M50 4 L60 40 L96 50 L60 60 L50 96 L40 60 L4 50 L40 40 Z'/%3E%3C/g%3E%3C/svg%3E");
}
/* ------------------------------------------------------------------
   ناحیه محتوای بنر — وسط‌چین کامل.
   خواسته کارفرما: «کادر جستجو و نوشته و کارت‌ها وسط چین باشند».
   عرض بیشتر داده شد تا کادر جستجو با ۴ ستون جا شود و متعادل دیده شود.
   ------------------------------------------------------------------ */
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 1000px;
  /* وسط‌چین کامل — خواسته کارفرما: «کادر فیلتر وسط چین نیست» */
  margin-right: auto;
  margin-left: auto;
  margin-block: 0;
  padding-right: 0;
  padding-left: 0;
  /* اطمینان از اینکه هیچ قاعده‌ای این حاشیه را صفر نکند */
  width: 100%;
  box-sizing: border-box;
}
.hero-inner h1,
.hero-inner p { margin-right: auto;
  margin-left: auto; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--accent);
  font-weight: 700; font-size: 13.5px; padding: 6px 18px; border-radius: 99px;
  box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(26px, 4.5vw, 44px); font-weight: 800; color: var(--primary-dark); line-height: 1.5; }
.hero h1 .gold { color: var(--accent); }
.hero p { color: var(--muted); font-size: 16.5px; margin-top: 14px; }

/* کادر جستجو — وسط‌چین با عرض متعادل */
.search-card {
  position: relative;
  margin: 34px auto 0;
  max-width: 860px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  text-align: right;
}
.search-card > div > label { display: block; text-align: right; }

/* ---------- دسته‌بندی‌ها ---------- */
.cats { margin-top: -44px; position: relative; z-index: 5; padding-bottom: 10px; }
/* ردیف کارت‌های دسته‌بندی — وسط‌چین.
   خواسته کارفرما: «کارت‌ها وسط چین باشند».
   در حالت عادی وسط‌چین است و در صورت کمبود جا با اسکرول افقی کار می‌کند. */
.cats-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-chip {
  flex: 0 0 auto; scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 18px 26px; min-width: 118px; text-align: center;
  transition: all .2s; box-shadow: var(--shadow-sm);
}
.cat-chip:hover { transform: translateY(-4px); border-color: var(--primary); box-shadow: var(--shadow); }
.cat-chip .ico { font-size: 26px; }
.cat-chip b { font-size: 13.5px; color: var(--ink); }
.cat-chip small { color: var(--muted); font-size: 11.5px; }

/* ---------- بخش‌ها ---------- */
.section { padding: 46px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.section-head h2 { font-size: 23px; font-weight: 800; color: var(--primary-dark); display: flex; align-items: center; gap: 12px; }
.section-head h2::before {
  content: ''; width: 14px; height: 14px; flex: 0 0 auto;
  background: var(--accent);
  clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%);
}
.section-head .more { font-size: 13.5px; font-weight: 700; }

/* ---------- ردیف کارت‌ها ---------- */
.card-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr); gap: 20px; overflow-x: auto; padding: 4px 2px 22px; scroll-snap-type: x mandatory; }
.card-row > * { scroll-snap-align: start; }

.space-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: all .25s; display: flex; flex-direction: column;
}
.space-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: #c9d3e6; }
.space-card .cover { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--primary-soft); }
.space-card .cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.space-card:hover .cover img { transform: scale(1.05); }
.space-card .off {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: var(--danger); color: #fff; font-weight: 800; font-size: 12.5px;
  padding: 3px 12px; border-radius: 99px;
}
.space-card .type-tag {
  position: absolute; bottom: 12px; inset-inline-end: 12px;
  background: rgba(14,25,48, .85); color: #fff; font-size: 11.5px;
  padding: 3px 12px; border-radius: 99px; backdrop-filter: blur(4px);
}
.space-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.space-card h3 { font-size: 16.5px; font-weight: 800; }
.space-card .loc { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.space-card .meta { display: flex; gap: 14px; color: var(--muted); font-size: 12.5px; }
.space-card .price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); display: flex; align-items: baseline; gap: 10px; }
.space-card .price b { color: var(--primary-dark); font-size: 16px; }
.space-card .price del { color: #9aa7b3; font-size: 12.5px; }
.space-card .price small { color: var(--muted); font-size: 11.5px; }

/* ---------- ساختمان‌ها ---------- */
.buildings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.building-card {
  position: relative; border-radius: var(--radius); overflow: hidden; min-height: 300px;
  display: flex; align-items: flex-end; box-shadow: var(--shadow-sm); color: #fff;
}
.building-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.building-card .ov {
  position: relative; width: 100%; padding: 40px 20px 18px;
  background: linear-gradient(0deg, rgba(9, 34, 58, .92), rgba(9, 34, 58, 0));
}
.building-card b { font-size: 17px; }
.building-card small { display: block; color: #c9d3e6; font-size: 12.5px; margin-top: 3px; }

/* ---------- کافه موج ---------- */
.cafe-teaser {
  border-radius: 26px; overflow: hidden; position: relative;
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(212, 164, 55, .25), transparent 60%),
    linear-gradient(135deg, #7c3a12, #b45f2c);
  color: #fff; padding: 44px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; align-items: center;
  box-shadow: var(--shadow);
}
.cafe-teaser::before {
  content: ''; position: absolute; inset: 0; opacity: .18; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90' viewBox='0 0 100 100'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.35'%3E%3Cpath d='M50 4 L60 40 L96 50 L60 60 L50 96 L40 60 L4 50 L40 40 Z'/%3E%3C/g%3E%3C/svg%3E");
}
.cafe-teaser h2 { font-size: 26px; font-weight: 800; }
.cafe-teaser p { color: #fbe9d7; margin-top: 10px; }
.cafe-teaser .img { border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.25); }

/* ---------- نوار آمار ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: 26px; color: var(--primary-dark); font-weight: 800; }
.stat span { color: var(--muted); font-size: 13px; }

/* ---------- فوتر ---------- */
.site-footer { background: var(--primary-dark); color: #c3cee4; margin-top: 70px; }
/* ------------------------------------------------------------------
   فوتر — شبکهٔ پنج‌ستونه.
   خواسته کارفرما: «می‌تونی کمی فیلدهای تماس و ارتباط با ما و دسترسی را
   به‌هم نزدیک کنی و در سمت چپ نمادها را بزاری».
   ستون‌های متنی کمی باریک‌تر و نزدیک‌تر شدند تا ستون نمادهای اعتماد در سمت
   چپ (آخرین ستون در چیدمان راست‌به‌چپ) جا شود — بدون اینکه فوتر از حالت
   عادی خارج شود.
   ------------------------------------------------------------------ */
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.85fr 0.95fr 1.55fr;
  gap: 20px;
  padding: 48px 0 28px;
  align-items: start;
}

/* ---------- ستون نمادهای اعتماد (سمت چپ فوتر) ----------
   توجه: این ستون عنوان ندارد (خواستهٔ کارفرما: «نوشته نماد اعتماد را حذف کن»).
   برای تعادل بصری، نمادها با ردیف اول محتوای ستون‌های دیگر هم‌تراز می‌شوند. */
.footer-badges { text-align: left; padding-top: 34px; }

/* ردیف نمادها — دقیقاً دو ردیف سه‌تایی.
   خواستهٔ کارفرما: «توی دو ردیف سه تا سه تا بزار».
   برای تضمین ۳+۳ از شبکهٔ سه‌ستونه استفاده می‌شود (نه flex با شکست خودکار)
   تا در هر عرض صفحه، دقیقاً سه نماد در هر ردیف بنشیند. */
.badges-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 10px;
  align-items: center;
  justify-items: center;
}

/* هر نماد: کادر یکسان با پس‌زمینهٔ سفید
   خواستهٔ کارفرما: «همه نمادها بک‌گراند سفید، یک شکل باشند کادرشان،
   دو ردیف سه‌ستونه (شش نماد)». پس اندازهٔ کادر ثابت است و تصویر داخل آن
   با object-fit جا می‌گیرد؛ نسبت ابعاد هر نماد متفاوت باشد، کادر یکی است. */
.badge-item {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 96px;
  padding: 10px;
  line-height: 0;
  text-decoration: none;
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  transition: opacity .18s ease, transform .18s ease;
}
.badge-item img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 68px;
  object-fit: contain;
  opacity: .96;
}
.badge-item:hover { transform: translateY(-2px); }
.badge-item:hover img { opacity: 1; }

/* حالت قدیمی (کارت روشن) — با استایل یکسان جدید هم‌پوشانی دارد */
.badge-item.badge-light-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}
.badge-item.badge-light-card img { opacity: 1; }
.site-footer h4 { color: #fff; font-size: 15.5px; margin-bottom: 14px; }
.site-footer li { margin-bottom: 9px; font-size: 13.5px; }
.site-footer a { color: #c3cee4; }
.site-footer a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand img { height: 52px; background: #fff; border-radius: 12px; padding: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: 12.5px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 8px 18px; flex-wrap: wrap; text-align: right;
}
.footer-credit { color: #c3cee4; }
.footer-credit a { color: #e8edf7; text-decoration: none; }
.footer-credit a b { color: #f0d9a0; font-weight: 700; letter-spacing: .3px; }
.footer-credit a:hover { color: #fff; }
.footer-credit a:hover b { text-decoration: underline; }
@media (max-width: 620px) {
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- صفحه لیست فضاها ---------- */
.page-head { padding: 44px 0 10px; }
.page-head h1 { font-size: 26px; font-weight: 800; color: var(--primary-dark); }
.page-head p { color: var(--muted); margin-top: 6px; }

.listing { display: grid; grid-template-columns: 265px 1fr; gap: 26px; align-items: start; padding-bottom: 40px; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.filters h3 { font-size: 15.5px; margin-bottom: 14px; color: var(--primary-dark); }
.filters .form-row { margin-bottom: 13px; }
.spaces-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.empty-box { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 50px; text-align: center; color: var(--muted); grid-column: 1/-1; }

/* ---------- جزئیات فضا ---------- */
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; padding-bottom: 46px; }
.gallery-main { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/9; background: var(--primary-soft); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.thumbs img { width: 110px; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; opacity: .8; }
.thumbs img.active, .thumbs img:hover { border-color: var(--primary); opacity: 1; }

.book-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; position: sticky; top: 90px; }
.book-box h3 { font-size: 17px; color: var(--primary-dark); }
.price-line { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.price-line b { color: var(--primary-dark); }

.sans-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.sans-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; }
.sans-item b { color: var(--primary-dark); }

.amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.amenity { background: var(--primary-soft); color: var(--primary-dark); font-size: 12.5px; padding: 5px 14px; border-radius: 99px; }

.desc-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.desc-box h3 { color: var(--primary-dark); font-size: 16.5px; margin-bottom: 10px; }

/* ---------- تقویم رزرو ---------- */
.calendar { margin-top: 22px; }
.cal-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-bottom: 12px; flex-wrap: wrap; }
.cal-legend i { display: inline-block; width: 13px; height: 13px; border-radius: 4px; margin-left: 6px; vertical-align: -2px; border: 1px solid rgba(0,0,0,.08); }
.cal-free { background: #fff; } .cal-pending { background: #f6d060; } .cal-full { background: #d64541; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-day {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center;
  font-size: 12.5px; background: #fff; color: var(--ink);
}
.cal-day b { display: block; font-size: 16px; color: var(--primary-dark); }
.cal-day small { color: var(--muted); font-size: 10.5px; }
.cal-day.pend { background: #f6d060; border-color: #e3b93e; }
.cal-day.pend b, .cal-day.full b, .cal-day.full small { color: #fff; }
.cal-day.full { background: #d64541; border-color: #b9382f; }
.cal-day.today { outline: 2.5px solid var(--accent); outline-offset: 1px; }

/* ---------- صفحات محتوا / احراز هویت ---------- */
.content-page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow-sm); margin: 30px auto 50px; max-width: 860px; }
.content-page h1 { color: var(--primary-dark); font-size: 23px; margin-bottom: 16px; }

.auth-wrap { max-width: 460px; margin: 60px auto; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 20px; color: var(--primary-dark); text-align: center; margin-bottom: 6px; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 13.5px; margin-bottom: 22px; }
.auth-tabs { display: flex; background: var(--bg); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-family: inherit; font-weight: 700; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: #fff; color: var(--primary-dark); box-shadow: var(--shadow-sm); }

.otp-box { text-align: center; }
.otp-code { font-size: 30px; font-weight: 800; letter-spacing: 8px; color: var(--primary-dark); background: var(--primary-soft); border-radius: 14px; padding: 12px; margin: 14px 0; }

/* ---------- پنل کاربر ---------- */
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 36px 0 8px; }
.panel-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.panel-box h2 { font-size: 17px; color: var(--primary-dark); margin-bottom: 16px; }

/* ---------- منوی کافه ---------- */
.cafe-hero { border-radius: 26px; overflow: hidden; position: relative; color: #fff; padding: 54px 44px; margin-top: 28px;
  background: radial-gradient(700px 300px at 90% 0%, rgba(255, 255, 255, .18), transparent 60%), linear-gradient(135deg, #7c3a12, #b45f2c);
  box-shadow: var(--shadow); }
.cafe-hero h1 { font-size: 32px; font-weight: 800; }
.cafe-hero p { color: #fbe9d7; margin-top: 10px; max-width: 560px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 30px; }
.menu-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); transition: all .2s; }
.menu-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.menu-item img { aspect-ratio: 16/10; width: 100%; object-fit: cover; }
.menu-item .body { padding: 14px 16px; }
.menu-item h3 { font-size: 15px; font-weight: 800; }
.menu-item p { color: var(--muted); font-size: 12px; min-height: 20px; }
.menu-item .price { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.menu-item .price b { color: #b45f2c; font-size: 14.5px; }
.menu-cat-title { font-size: 19px; font-weight: 800; color: #7c3a12; margin: 34px 0 16px; display: flex; align-items: center; gap: 10px; }
.menu-cat-title::before { content: ''; width: 11px; height: 11px; background: #b45f2c; clip-path: polygon(50% 0%, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0% 50%, 39% 39%); }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 980px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .detail-grid, .listing { grid-template-columns: 1fr; }
  .book-box, .filters { position: static; }
  .cafe-teaser { grid-template-columns: 1fr; padding: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 72px; inset-inline: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 16px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta .btn-outline { display: none; }
  .hero { padding: 56px 0 70px; }
  .search-card { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .cal-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .card-row { grid-auto-columns: minmax(240px, 82%); }
}

/* ---------- بنر میانی صفحه اصلی (داینامیک از پنل مدیریت) ---------- */
.mid-banner {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.mid-banner img { width: 100%; height: auto; display: block; }
.mid-banner .ov {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 22px 26px;
  background: linear-gradient(to top, rgba(8,35,64,.72), rgba(8,35,64,0));
  color: #fff; font-size: 19px; font-weight: 700;
}
/* بنر hero با تصویر پس‌زمینه: متن سفید برای خوانایی */
.hero-with-image h1, .hero-with-image .hero-kicker { color: #fff; }
.hero-with-image p { color: #e9eef8; }
@media (max-width: 760px) {
  .mid-banner .ov { padding: 14px 16px; font-size: 16px; }
}

/* ------------------------------------------------------------------
   بنر و فوتر لبه‌به‌لبه — گاف طرفین نمی‌گیرند.

   ⚠️ نکته مهم (رفع ایراد کارفرما):
   پیش‌تر اینجا قاعده‌ای وجود داشت با نام `.hero > .container { margin-inline: 0; }`.
   آن قاعده حاشیهٔ خودکار «ناحیهٔ محتوا» را صفر می‌کرد و چون ناحیهٔ محتوا
   `max-width: 1000px` دارد، از حالت وسط‌چین خارج و به سمت راست می‌چسبید.
   نتیجه: کادر جستجو در سمت راست بنر ایستاده بود.

   راه‌حل درست: بنر خودش یک `<section>` تمام‌عرض است و پس‌زمینه‌اش مستقل از
   عرض محتوای داخلی لبه‌به‌لبه می‌ماند. پس نیازی به صفر کردن حاشیهٔ محتوا نیست
   و ناحیهٔ محتوا با `margin-inline: auto` وسط‌چین می‌ماند.
   ------------------------------------------------------------------ */
.hero,
.topbar,
.site-footer,
.cafe-hero,
.cafe-teaser {
  /* خود این بخش‌ها تمام‌عرض‌اند */
}

/* ناحیهٔ محتوای بنر — وسط‌چین با عرض محدود */
.hero .container,
.hero-inner {
  margin-right: auto;
  margin-left: auto;
}

/* اطمینان از نبودن نوار افقی ناخواسته */
html, body { max-width: 100%; overflow-x: hidden; }
/* ------------------------------------------------------------------
   اسلایدر بنر صفحه اصلی
   هر بنر فعال یک اسلاید است؛ پس‌زمینه با جاوااسکریپت عوض می‌شود.
   ------------------------------------------------------------------ */
.hero-slider { position: relative; min-height: 190px; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade .5s ease; }
@keyframes heroFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.hero-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 20px;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.75);
  background: transparent; cursor: pointer; padding: 0;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot:hover { transform: scale(1.2); }
.hero-dot.active { background: #fff; border-color: #fff; }

/* روی صفحه‌های کوچک، ارتفاع کمتر و نقطه‌ها نزدیک‌تر */
@media (max-width: 760px) {
  .hero-slider { min-height: 150px; }
  .hero-dots { margin-top: 14px; }
}
/* ------------------------------------------------------------------
   وسط‌چین کردن بخش‌های صفحه اصلی (خواسته کارفرما)
   ------------------------------------------------------------------ */
/* بخش دسته‌بندی‌ها تمام‌عرض با محتوای وسط‌چین */
section.container.cats { text-align: center; }
section.container.cats .cats-row { margin-right: auto;
  margin-left: auto; }

/* در حالت بنر، متن‌ها و دکمه وسط‌چین */
.hero-with-image .hero-inner { text-align: center; }
.hero-with-image .hero-slide { text-align: center; }
.hero-with-image .hero-slide h1,
.hero-with-image .hero-slide p { margin-right: auto;
  margin-left: auto; }

/* عناوین بخش‌ها (پیشنهاد ویژه، محبوب، ساختمان‌ها) */
.section-head { text-align: right; }
.section-head h2 { margin: 0; }

/* روی موبایل کارت‌ها ثابت و وسط‌چین */
@media (max-width: 760px) {
  .cats-row { justify-content: flex-start; flex-wrap: nowrap; }
  .search-card { grid-template-columns: 1fr; }
}
/* ==================================================================
   تضمین نهایی وسط‌چین بودن بنر و کادر جستجو
   ==================================================================
   چرا این بخش در انتهای فایل است؟
   در CSS، اگر دو قاعده ویژگی برابر داشته باشند، آنکه «دیرتر» بیاید برنده
   است. چون `.hero-inner` هم‌زمان کلاس `container` را دارد و قاعدهٔ کلی
   `.container` حاشیهٔ `var(--page-gap)` می‌دهد، این قواعد با ویژگی بالاتر
   (ترکیب دو کلاس) در انتها گذاشته می‌شوند تا در هر شرایطی وسط‌چینی تضمین شود.
   ================================================================== */

/* ناحیهٔ محتوای بنر — ویژگی (0,2,0) که از `.container` (0,1,0) قوی‌تر است */
.hero .container.hero-inner,
.hero .hero-inner,
.hero > .container.hero-inner {
  margin-right: auto;
  margin-left: !important;
  max-width: 1000px;
  width: 100%;
  text-align: center;
}

/* کادر جستجو — همیشه وسط‌چین */
.hero .search-card,
.search-card {
  margin-right: auto;
  margin-left: !important;
  max-width: 860px;
}

/* نقطه‌های اسلایدر وسط‌چین */
.hero .hero-dots {
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

/* روی صفحه‌های باریک هم وسط بماند */
@media (max-width: 1400px) {
  .hero .container.hero-inner,
  .hero .hero-inner {
    margin-right: auto;
  margin-left: !important;
  }
}
@media (max-width: 760px) {
  .hero .container.hero-inner,
  .hero .hero-inner {
    max-width: 100%;
    margin-right: auto;
  margin-left: !important;
  }
  .hero .search-card { max-width: 100%; }
}
/* ==================================================================
   تضمین قطعی وسط‌چینی بنر، نوشته و کادر جستجو
   ==================================================================
   چرا این بلوک لازم شد؟
   در CSS از ویژگی‌های منطقی (margin-inline و مانند آن) استفاده شده بود که در
   همهٔ مرورگرها پشتیبانی نمی‌شوند. هر جا پشتیبانی نشوند، آن قاعده نادیده
   گرفته می‌شود و عنصر با عرض محدود از راست می‌چسبد.

   این بلوک از ویژگی‌های فیزیکی (margin-right / margin-left) استفاده می‌کند که
   در همهٔ مرورگرها کار می‌کنند، و ویژگی‌سنجی آن از .container بالاتر است تا
   در هر شرطی برنده شود.
   ================================================================== */

/* ناحیهٔ محتوای بنر — وسط‌چین با عرض محدود */
.hero > .container.hero-inner,
.hero .container.hero-inner,
.hero > .hero-inner,
.hero .hero-inner {
  margin-right: auto !important;
  margin-left: auto !important;
  max-width: 1000px;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

/* کادر جستجو — وسط‌چین و با عرض متعادل */
.hero .search-card,
.hero-inner .search-card,
.search-card {
  margin-right: auto !important;
  margin-left: auto !important;
  max-width: 860px;
  width: 100%;
  box-sizing: border-box;
}

/* نقطه‌های اسلایدر */
.hero .hero-dots {
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

/* متن‌های بنر وسط‌چین */
.hero .hero-inner h1,
.hero .hero-inner p,
.hero .hero-slide,
.hero .hero-slide h1,
.hero .hero-slide p {
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

/* کارت‌های دسته‌بندی وسط‌چین */
section.container.cats { text-align: center; }
section.container.cats .cats-row {
  justify-content: center;
  margin-right: auto;
  margin-left: auto;
}

/* روی صفحه‌های باریک، عرض کامل با حاشیهٔ کم */
@media (max-width: 760px) {
  .hero > .container.hero-inner,
  .hero .container.hero-inner,
  .hero > .hero-inner,
  .hero .hero-inner {
    max-width: 100%;
    margin-right: 12px !important;
    margin-left: 12px !important;
    width: auto;
  }
  .hero .search-card,
  .hero-inner .search-card,
  .search-card { max-width: 100%; }
}


/* ==================================================================
   قواعد پاسخ‌گوی نمادهای اعتماد (در انتهای فایل تا برنده شوند)
   ================================================================== */
@media (max-width: 1300px) {
  .footer-grid { grid-template-columns: 1.25fr 0.85fr 0.9fr 0.95fr 1.5fr; gap: 16px; }
}
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.1fr; }
  .footer-badges { grid-column: 1 / -1; text-align: right; margin-top: 8px; padding-top: 0; }
  .badges-row { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-badges { grid-column: 1 / -1; text-align: right; padding-top: 0; }
  .badge-item { height: 78px; padding: 7px; border-radius: 10px; }
  .badge-item img { max-height: 52px; }
}

/* ==================================================================
   چیدمان ساختمان‌ها: سه‌ستونه + ارتفاع بیشتر تصویر
   ۳ ستون در دسکتاپ | ۲ ستون در تبلت | ۱ ستون در موبایل
   ================================================================== */
.buildings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.building-card { min-height: 300px; }

@media (max-width: 1100px) {
  .buildings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .building-card { min-height: 270px; }
}

@media (max-width: 620px) {
  .buildings-grid { grid-template-columns: 1fr; }
  .building-card { min-height: 240px; }
}

/* ==================================================================
   صفحه کافه موج — بنر، گالری و کارت‌های منو
   ================================================================== */
.cafe-banner {
  position: relative; overflow: hidden; border-radius: 26px;
  margin: 28px 0 0; padding: 64px 44px 58px; color: #fff;
  background: linear-gradient(135deg, #0e1930 0%, #1a2f55 55%, #2c4468 100%);
}
.cafe-banner-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* بنر کافه بدون سایه — تصویر شفاف دیده می‌شود */
.cafe-banner-inner { position: relative; z-index: 2; max-width: 640px; }
.cafe-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,150,46,.16); border: 1px solid rgba(201,150,46,.5);
  color: #f0d9a0; padding: 6px 14px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; margin-bottom: 16px;
}
.cafe-banner h1 { font-size: 34px; font-weight: 800; line-height: 1.4; }
.cafe-banner p { color: #d7e2f0; margin-top: 12px; font-size: 14.5px; line-height: 2; }
.cafe-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.btn-ghost-light {
  background: rgba(255,255,255,.10); color: #fff;
  border: 1px solid rgba(255,255,255,.45);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.18); }

.cafe-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 6px; }
.cafe-gallery figure { margin: 0; }
.cafe-gallery img {
  width: 100%; height: 190px; object-fit: cover;
  border-radius: 18px; box-shadow: var(--shadow-sm); display: block;
}

.cafe-section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 14px; flex-wrap: wrap; margin: 42px 0 4px;
}
.cafe-section-head h2 { font-size: 22px; font-weight: 800; color: var(--primary-dark); }
.cafe-section-head p { color: var(--muted); font-size: 13px; }

.menu-item .thumb-wrap { position: relative; overflow: hidden; }
.menu-item .discount-flag {
  position: absolute; top: 10px; right: 10px;
  background: #c0392b; color: #fff; font-size: 11.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 8px;
}
.menu-item .old-price { color: #9aa7b3; text-decoration: line-through; font-size: 12px; margin-right: 6px; }
.menu-item .add-btn {
  display: inline-block; margin-top: 10px; font-size: 12.5px; font-weight: 700;
  color: var(--primary); border: 0; border-bottom: 1px dashed rgba(26,47,85,.35);
  background: none; padding: 0; cursor: pointer; font-family: inherit;
}
.menu-item .add-btn:hover { color: var(--primary-dark); }

.cafe-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  flex-wrap: wrap; margin: 34px 0 50px; padding: 28px 32px;
  border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #101d38, #1a2f55);
  box-shadow: var(--shadow);
}
.cafe-cta h2 { font-size: 19px; font-weight: 800; }
.cafe-cta p { color: #cfdaea; font-size: 13px; margin-top: 8px; max-width: 640px; line-height: 1.9; }

@media (max-width: 760px) {
  .cafe-banner { padding: 40px 22px; border-radius: 18px; }
  .cafe-banner h1 { font-size: 24px; }
  .cafe-banner p { font-size: 13px; }
  .cafe-gallery { grid-template-columns: 1fr 1fr; }
  .cafe-gallery img { height: 130px; }
  .cafe-cta { padding: 22px; }
}

/* ==================================================================
   خوانایی متن روی بنر بدون تیره‌کردن تصویر
   سایه فقط روی حروف اعمال می‌شود، نه روی عکس بنر.
   ================================================================== */
.hero-with-image h1,
.hero-with-image .hero-slide h1,
.hero-with-image p,
.hero-with-image .hero-slide p,
.hero-with-image .hero-kicker {
  text-shadow: 0 2px 20px rgba(8, 17, 32, .55), 0 1px 4px rgba(8, 17, 32, .45);
}

.cafe-banner h1,
.cafe-banner p {
  text-shadow: 0 2px 20px rgba(8, 17, 32, .55), 0 1px 4px rgba(8, 17, 32, .45);
}

.cafe-badge {
  text-shadow: none;
  background: rgba(14, 25, 48, .38) !important;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
