/* جایار — رزرو هتل و ویلا در سراسر ایران */

/* ---------- فونت وزیرمتن (محلی — بدون نیاز به اینترنت؛ SIL OFL) ---------- */
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Vazirmatn-arabic.woff2) format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC, U+102E0-102FB, U+10E60-10E7E, U+10EC2-10EC4, U+10EFC-10EFF, U+1EE00-1EE03, U+1EE05-1EE1F, U+1EE21-1EE22, U+1EE24, U+1EE27, U+1EE29-1EE32, U+1EE34-1EE37, U+1EE39, U+1EE3B, U+1EE42, U+1EE47, U+1EE49, U+1EE4B, U+1EE4D-1EE4F, U+1EE51-1EE52, U+1EE54, U+1EE57, U+1EE59, U+1EE5B, U+1EE5D, U+1EE5F, U+1EE61-1EE62, U+1EE64, U+1EE67-1EE6A, U+1EE6C-1EE72, U+1EE74-1EE77, U+1EE79-1EE7C, U+1EE7E, U+1EE80-1EE89, U+1EE8B-1EE9B, U+1EEA1-1EEA3, U+1EEA5-1EEA9, U+1EEAB-1EEBB, U+1EEF0-1EEF1;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Vazirmatn-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(../fonts/Vazirmatn-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --brand: #0f9e72;
  --brand-dark: #0b7f5a;
  --brand-soft: #e4f6ee;
  --accent: #ff8a2d;
  --star: #f5a623;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --border: #e6ebe9;
  --text: #15231d;
  --muted: #66736d;
  --danger: #e5484d;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 32, 24, .06);
  --shadow: 0 10px 34px rgba(15, 32, 24, .10);
  --shadow-lg: 0 20px 60px rgba(15, 32, 24, .16);
  --font: 'Vazirmatn', 'Vazir', 'Segoe UI', Tahoma, Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1311;
  --surface: #16201c;
  --border: #26332d;
  --text: #eef4f1;
  --muted: #8fa09a;
  --brand-soft: #102b22;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .5);
  --shadow: 0 8px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  line-height: 1.7;
  min-height: 100vh;
  transition: background .3s, color .3s;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1180px; margin-inline: auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }
/* قفل اسکرول هنگام باز بودن منوی موبایل */
body.no-scroll { overflow: hidden; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--brand); }
.brand-icon {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; color: #fff; font-size: 20px;
  box-shadow: 0 4px 14px rgba(15, 158, 114, .35);
}
.nav-links { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px;
  color: var(--muted);
}
.nav-link:hover, .nav-link.active { background: var(--brand-soft); color: var(--brand-dark); }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); font-size: 18px; display: grid; place-items: center;
}

/* باز شدن نرم منوی موبایل (fade + slide) */
@keyframes jy-menu-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* overlay نیمه‌شفاف پشت منوی موبایل — با کلیک بسته می‌شود */
.nav-overlay {
  position: fixed; inset: 68px 0 0 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
  z-index: -1;
}
.nav-overlay.show { opacity: 1; pointer-events: auto; }

/* دکمهٔ همبرگری — فقط در موبایل نمایش داده می‌شود */
.nav-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); padding: 0 11px;
  transition: border-color .2s;
}
.nav-burger:hover { border-color: var(--brand); }
.nav-burger span {
  height: 2.5px; border-radius: 3px; background: var(--text);
  transition: transform .25s ease, opacity .2s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; padding: 12px 22px;
  font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .15s, box-shadow .15s, background .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(15, 158, 114, .3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--brand); color: var(--brand-dark); }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-soft { background: var(--brand-soft); color: var(--brand-dark); }
.btn-danger-soft { background: rgba(229, 72, 77, .1); color: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- Hero & search ---------- */
.hero {
  position: relative;
  padding: 44px 0 0;
}
.hero-title { font-size: clamp(26px, 4vw, 42px); font-weight: 900; line-height: 1.35; }
.hero-title span { color: var(--brand); }
.hero-sub { color: var(--muted); margin-top: 10px; font-size: 16px; }

.search-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  border-radius: 20px;
  padding: 18px;
  margin-top: 28px;
}
.search-row { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr 1fr auto; gap: 10px; align-items: end; }
.search-field label {
  display: block; font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
.search-field select, .search-field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 14px; outline: none;
}
.search-field select:focus, .search-field input:focus { border-color: var(--brand); }
.search-submit { height: 45px; padding-inline: 26px; }

.popular { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; align-items: center; }
.popular-tag {
  font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; background: var(--surface);
}
.popular-tag:hover { border-color: var(--brand); color: var(--brand-dark); }

/* ---------- Section ---------- */
.section { padding: 34px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.section-title { font-size: 22px; font-weight: 800; }
.section-title small { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 2px; }

/* type chips */
.type-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.type-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface);
  font-weight: 700; font-size: 14px; color: var(--muted);
}
.type-chip:hover { border-color: var(--brand); color: var(--brand-dark); }
.type-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(15,158,114,.3); }

/* ---------- Property cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.property {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.property:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-img { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.property-img .img-link { display: block; width: 100%; height: 100%; }
.property-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.property:hover .property-img img { transform: scale(1.06); }
.rating-badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  background: rgba(0,0,0,.55); color: #fff; border-radius: 10px; padding: 4px 10px;
  font-weight: 700; font-size: 13px; backdrop-filter: blur(4px);
}
.fav-btn {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 36px; height: 36px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.92); font-size: 17px; display: grid; place-items: center;
  box-shadow: var(--shadow-sm); transition: transform .15s;
}
.fav-btn:hover { transform: scale(1.1); }
.fav-btn.active { color: var(--danger); }
.type-badge {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  background: rgba(255,255,255,.94); color: var(--text); border-radius: 8px;
  font-size: 12px; font-weight: 700; padding: 4px 10px;
}
.property-body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.property-title { font-size: 17px; font-weight: 800; }
.property-loc { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.property-feats { display: flex; gap: 14px; font-size: 12.5px; color: var(--muted); }
.property-foot {
  margin-top: auto; border-top: 1px dashed var(--border); padding-top: 12px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
}
.price { line-height: 1.2; }
.price-amount { font-size: 18px; font-weight: 800; color: var(--brand-dark); }
.price-unit { font-size: 12px; color: var(--muted); }
.foot-rate { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.star { color: var(--star); font-size: 15px; }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted);
  background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty-state .emoji { font-size: 44px; margin-bottom: 10px; }

/* ---------- Sort bar ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar select, .toolbar input {
  padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px; outline: none;
}
.result-count { font-size: 14px; color: var(--muted); font-weight: 600; }
.result-count b { color: var(--brand-dark); }

/* ---------- Detail page ---------- */
.breadcrumb { padding: 22px 0 0; font-size: 13px; color: var(--muted); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb li + li::before { content: '›'; color: var(--muted); margin-inline: 6px; }
.breadcrumb .crumb-current { color: var(--text); font-weight: 700; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.gallery-main { aspect-ratio: 2/1; overflow: hidden; position: relative; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-side { display: grid; grid-template-rows: 1fr 1fr; gap: 12px; }
.gallery-side img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; opacity: .78; transition: opacity .2s, transform .2s; }
.gallery-side img:hover { opacity: 1; transform: scale(1.02); }
.gallery-side img.active { opacity: 1; box-shadow: 0 0 0 3px var(--brand); }

/* دکمه‌های قبلی/بعدی و شمارندهٔ گالری اسلایدری */
.g-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0, 0, 0, .45); color: #fff; backdrop-filter: blur(3px);
  display: grid; place-items: center;
  transition: background .2s, transform .2s;
}
.g-nav:hover { background: rgba(0, 0, 0, .72); transform: translateY(-50%) scale(1.08); }
.g-prev { inset-inline-start: 14px; }
.g-next { inset-inline-end: 14px; }
.g-count {
  position: absolute; bottom: 14px; inset-inline-end: 14px;
  background: rgba(0, 0, 0, .55); color: #fff; border-radius: 999px;
  padding: 3px 13px; font-size: 12.5px; font-weight: 700; backdrop-filter: blur(3px);
}

.detail-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 26px; margin-top: 26px; align-items: start; }
.detail-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.detail-title { font-size: 26px; font-weight: 900; }
.detail-loc { display: flex; gap: 6px; color: var(--muted); margin-top: 6px; font-size: 14px; }

.pill-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pill { background: var(--brand-soft); color: var(--brand-dark); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 700; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.card + .card { margin-top: 18px; }

.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.feat { display: flex; align-items: center; gap: 9px; font-size: 13.5px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; }
.feat.yes { background: var(--brand-soft); border-color: transparent; }
.feat.no { opacity: .45; }

.book-box { position: sticky; top: 84px; }
.book-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.book-price b { font-size: 26px; font-weight: 900; color: var(--brand-dark); }
.book-price span { color: var(--muted); font-size: 13px; }
.book-rate { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 16px; color: var(--muted); }
.book-rate .rate-box { background: var(--brand); color: #fff; border-radius: 10px; padding: 2px 10px; font-weight: 800; font-size: 15px; }

.form { display: flex; flex-direction: column; gap: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--bg); color: var(--text); font-size: 14px; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; padding: 7px 0; color: var(--muted); }
.summary-total { display: flex; justify-content: space-between; font-weight: 900; font-size: 15px; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.summary-total b { color: var(--brand-dark); font-size: 19px; }

/* ---------- Reviews ---------- */
.avg-box { text-align: center; padding: 18px; background: var(--brand-soft); border-radius: 14px; }
.avg-box b { font-size: 30px; display: block; color: var(--brand-dark); }
.avg-box span { font-size: 13px; color: var(--muted); }
.points { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.point { flex: 1; min-width: 120px; }
.point .bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.point .fill { height: 100%; background: var(--brand); border-radius: 99px; }

/* ---------- Host page ---------- */
.host-hero { background: linear-gradient(135deg, var(--brand-soft), #fff 60%); border: 1px solid var(--border); border-radius: 22px; padding: 30px; margin-top: 22px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
[data-theme="dark"] .host-hero { background: linear-gradient(135deg, #153026, #111a17); }
.host-hero h1 { font-size: 26px; font-weight: 900; line-height: 1.5; }
.host-hero p { color: var(--muted); margin: 10px 0 18px; }
.host-steps { display: flex; flex-direction: column; gap: 14px; }
.host-step { display: flex; gap: 12px; align-items: flex-start; }
.host-step .n {
  width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--brand);
  color: #fff; font-weight: 800; display: grid; place-items: center;
}
.host-step b { font-size: 15px; }
.host-step p { font-size: 13px; color: var(--muted); margin: 0; }

.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border); margin: 26px 0 20px; }
.tab-btn { padding: 12px 20px; font-weight: 700; font-size: 15px; color: var(--muted); border: none; background: none; border-bottom: 3px solid transparent; }
.tab-btn.active { color: var(--brand-dark); border-bottom-color: var(--brand); }

.host-list { display: flex; flex-direction: column; gap: 14px; }
.host-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 16px; align-items: center; }
.host-item img { width: 150px; height: 100px; object-fit: cover; border-radius: 12px; flex: none; }
.host-item-body { flex: 1; min-width: 0; }
.host-item-title { font-weight: 800; font-size: 16px; }
.host-item-actions { display: flex; gap: 8px; }

.booking-row {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap;
}
.booking-row + .booking-row { margin-top: 12px; }
.status { border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 700; }
.status-ok { background: var(--brand-soft); color: var(--brand-dark); }
.status-pending { background: rgba(255, 138, 45, .15); color: var(--accent); }
.status-cancel { background: rgba(229,72,77,.12); color: var(--danger); }

.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.checkbox-grid label { display: flex; gap: 8px; align-items: center; font-size: 13.5px; border: 1px solid var(--border); padding: 9px 12px; border-radius: 12px; cursor: pointer; }
.checkbox-grid input { accent-color: var(--brand); width: 16px; height: 16px; }

/* ---------- صفحات اطلاعاتی: تماس با ما / سوالات متداول / قوانین ---------- */
.contact-row {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 14px; transition: border-color .2s, background .2s;
}
.contact-row:hover { border-color: var(--brand); background: var(--brand-soft); }
.contact-ico {
  width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--brand-soft);
  display: grid; place-items: center; font-size: 22px;
}
.contact-row p { font-size: 13px; margin-top: 2px; }

/* ---------- آیکون‌های Lucide (محلی — js/vendor/lucide.min.js) ---------- */
.ico {
  display: inline-block; width: 1.15em; height: 1.15em; flex: none;
  vertical-align: -0.18em;
}
.ico-fill { fill: currentColor; }
.btn .ico, .pill .ico, .nav-link .ico, .tab-btn .ico, .feat .ico, .type-badge .ico { vertical-align: -3px; }
.fav-btn .ico { width: 19px; height: 19px; fill: none; }
.fav-btn.active .ico { fill: currentColor; }
.rating-badge .ico, .rate-box .ico, .star .ico { width: 13px; height: 13px; vertical-align: -2px; }
.star-fill { fill: currentColor; }
.brand-icon .ico { width: 20px; height: 20px; vertical-align: middle; }
.social-btn .ico { width: 17px; height: 17px; vertical-align: middle; }
.contact-ico .ico, .team-avatar .ico { width: 22px; height: 22px; }
.empty-state .emoji .ico, .stat-card .emoji .ico { width: 1em; height: 1em; }

/* ---------- تیم جایار (درباره ما) ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.team-card {
  text-align: center; padding: 22px 16px;
  border: 1px solid var(--border); border-radius: 16px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand); }
.team-avatar {
  width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  display: grid; place-items: center; font-size: 30px;
  box-shadow: 0 6px 16px rgba(15, 158, 114, .3);
}
.team-card b { display: block; font-size: 15px; }
.team-role {
  display: inline-block; margin-top: 6px; background: var(--brand-soft); color: var(--brand-dark);
  border-radius: 999px; padding: 3px 12px; font-size: 12px; font-weight: 700;
}
.team-card p { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.8; }
.team-link { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.team-link:hover { color: var(--brand-dark); }

/* جستجو در سوالات متداول */
.faq-search-input {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 12px;
  background: var(--bg); padding-inline: 14px;
  transition: border-color .2s;
}
.faq-search-input:focus-within { border-color: var(--brand); }
.faq-search-input span { font-size: 16px; }
.faq-search-input input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  padding: 13px 0; font-size: 14px; color: var(--text);
}
.faq-search-input input::placeholder { color: var(--muted); }
.faq-empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.faq-empty .emoji { font-size: 40px; margin-bottom: 8px; }

.faq details {
  border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden;
}
.faq details + details { margin-top: 10px; }
.faq summary {
  padding: 14px 18px; font-weight: 800; font-size: 14.5px; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; color: var(--brand); font-size: 18px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq-answer { padding: 14px 18px 16px; color: var(--muted); font-size: 14px; line-height: 1.9; }

.rules-list { padding-inline-start: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; line-height: 1.9; }
.rules-list li::marker { color: var(--brand); }

/* ---------- Footer ---------- */
.footer { margin-top: 60px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 26px; padding: 34px 0; }
.footer h4 { font-size: 15px; margin-bottom: 10px; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer a, .footer .muted { font-size: 13.5px; color: var(--muted); }
.footer a:hover { color: var(--brand-dark); }

/* دکمه‌های شبکه‌های اجتماعی فوتر */
.social-links { display: flex; gap: 8px; }
.social-btn {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; font-size: 17px;
  transition: transform .15s, border-color .2s, background .2s;
}
.social-btn:hover { transform: translateY(-3px); border-color: var(--brand); background: var(--brand-soft); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 0; font-size: 13px; color: var(--muted); text-align: center; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- نشانگر وضعیت اتصال ---------- */
.conn-status {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); cursor: pointer; user-select: none;
  transition: border-color .2s;
}
.conn-status:hover { border-color: var(--brand); }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.conn-dot.on { background: var(--brand); box-shadow: 0 0 6px rgba(15, 158, 114, .6); }
.conn-dot.off { background: var(--accent); box-shadow: 0 0 6px rgba(255, 138, 45, .5); }

/* ---------- آمار میزبان ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-card { text-align: center; padding: 18px 14px; border: 1px solid var(--border); border-radius: 14px; }
.stat-card .stat-num { font-size: 23px; font-weight: 900; color: var(--brand-dark); margin-top: 6px; line-height: 1.3; }
.stat-card .stat-lbl { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.rank-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.rank-row + .rank-row { margin-top: 8px; }
.rank-num {
  width: 26px; height: 26px; flex: none; border-radius: 8px;
  background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; font-size: 13px;
  display: grid; place-items: center;
}
.rank-title { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; }
.rank-views { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Toast / Modal ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 50%; transform: translateX(50%); z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  border-radius: 14px; padding: 14px 20px; font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 10px; animation: slideUp .25s ease;
}
.toast.success { border-inline-start: 4px solid var(--brand); }
.toast.error { border-inline-start: 4px solid var(--danger); }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.modal-back {
  position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 80;
  display: grid; place-items: center; padding: 20px;
}
.modal {
  background: var(--surface); border-radius: 20px; padding: 30px; max-width: 400px; width: 100%;
  text-align: center; box-shadow: var(--shadow-lg);
}
.modal .emoji { font-size: 46px; margin-bottom: 8px; }
.modal h3 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--muted); font-size: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal-actions .btn { flex: 1; }

.closing { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 15px; }
.closing:hover { color: var(--danger); }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .detail-wrap { grid-template-columns: 1fr; }
  .book-box { position: static; }
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
  .host-hero { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  /* منوی موبایل: همبرگری + پنل کشویی لینک‌ها */
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute; top: 68px; right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    display: none; padding: 10px 20px 14px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
    opacity: 1; /* حالت نهایی به‌صورت طبیعی — حتی اگر انیمیشن اجرا نشود، منو دیده می‌شود */
    animation: jy-menu-in .25s ease;
  }
  .nav-links.closing {
    display: flex; opacity: 0; transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
  }
  .nav-links .nav-link { padding: 13px 14px; border-radius: 12px; }
  .nav-links .theme-toggle { align-self: flex-end; }

  .grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery-side { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
  .host-item { flex-direction: column; align-items: stretch; }
  .host-item img { width: 100%; height: 170px; }
}

/* اگر کاربر حرکت کاهش‌یافته را ترجیح دهد، منو بدون انیمیشن (اما همیشه قابل مشاهده) باز می‌شود */
@media (prefers-reduced-motion: reduce) {
  .nav-links.open { animation: none; }
  .nav-links.closing { transition: none; }
  .nav-overlay { transition: none; }
}