/* ==========================================================
   هتل منجی مشهد — استایل اصلی
   پالت رنگ برگرفته از لوگوی هتل: زرشکی و طلایی
   ========================================================== */

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

:root {
  --burgundy: #7a1e2e;
  --burgundy-dark: #5a1220;
  --burgundy-light: #9c3247;
  --burgundy-50: #fdf5f6;
  --burgundy-100: #f9e6e9;

  --gold: #c9a227;
  --gold-light: #e0c265;
  --gold-dark: #9c7c14;
  --gold-50: #fdfaf0;

  --cream: #faf7f2;
  --ivory: #fffdf9;

  --ink: #241b1e;
  --ink-2: #4a3d41;
  --ink-3: #7a6b70;
  --ink-4: #a89a9e;

  --line: #e8e0dc;
  --line-2: #f2ece8;

  --ok: #1f7a4d;
  --ok-bg: #e8f5ee;
  --warn: #a86a00;
  --warn-bg: #fdf3e2;
  --bad: #b3261e;
  --bad-bg: #fdecea;

  --shadow-sm: 0 1px 2px rgba(36, 27, 30, .06), 0 1px 3px rgba(36, 27, 30, .05);
  --shadow: 0 4px 12px rgba(36, 27, 30, .08), 0 2px 4px rgba(36, 27, 30, .04);
  --shadow-lg: 0 12px 32px rgba(36, 27, 30, .12), 0 4px 8px rgba(36, 27, 30, .05);
  --shadow-xl: 0 24px 56px rgba(36, 27, 30, .16);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 26px;

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

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

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

body {
  margin: 0;
  font-family: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--cream);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  margin: 0 0 .6em;
  line-height: 1.4;
  font-weight: 700;
  color: var(--ink);
}
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.9rem); font-weight: 800; letter-spacing: -.015em; }
h3 { font-size: 1.15rem; font-weight: 700; }

p { margin: 0 0 1em; }
a { color: var(--burgundy); text-decoration: none; transition: color .18s; }
a:hover { color: var(--burgundy-light); }
img { max-width: 100%; display: block; }
ul, ol { padding-inline-start: 1.3em; margin: 0 0 1em; }

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

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

/* ---------- چیدمان ---------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.container-narrow { max-width: 860px; }

.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--gold-dark);
  background: var(--gold-50);
  border: 1px solid rgba(201, 162, 39, .28);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-head h2 { margin-bottom: .35em; }
.section-head p { color: var(--ink-3); max-width: 620px; margin-inline: auto; font-size: 1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.bg-white { background: #fff; }
.bg-cream { background: var(--cream); }
.bg-ivory { background: var(--ivory); }
.bg-dark { background: var(--ink); color: #fff; }

/* ---------- دکمه ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
  line-height: 1.4;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(122, 30, 46, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 8px 22px rgba(122, 30, 46, .4); transform: translateY(-1px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  color: #4a3a06;
  box-shadow: 0 4px 14px rgba(201, 162, 39, .3);
}
.btn-gold:hover { color: #3a2d04; box-shadow: 0 8px 22px rgba(201, 162, 39, .45); transform: translateY(-1px); }

.btn-outline { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn-outline:hover { border-color: var(--burgundy); color: var(--burgundy); background: var(--burgundy-50); }

.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }

.btn-white { background: #fff; color: var(--burgundy); box-shadow: var(--shadow); }
.btn-white:hover { background: var(--ivory); transform: translateY(-1px); box-shadow: var(--shadow-lg); }

.btn-sm { padding: 8px 16px; font-size: .85rem; border-radius: var(--r-sm); }
.btn-lg { padding: 15px 34px; font-size: 1.03rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- هدر ---------- */
.topbar { background: var(--burgundy-dark); color: rgba(255, 255, 255, .85); font-size: .82rem; padding: 7px 0; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar a { color: rgba(255, 255, 255, .85); }
.topbar a:hover { color: var(--gold-light); }
.topbar-links { display: flex; gap: 18px; align-items: center; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand:hover { color: inherit; }
.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--burgundy) 0%, var(--burgundy-dark) 100%);
  color: var(--gold-light);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 3px 10px rgba(122, 30, 46, .3);
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
}
/* لوگوی واقعی هتل */
.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}
.footer-logo {
  width: 76px;
  height: 76px;
  object-fit: contain;
  background: #fff;
  border-radius: 14px;
  padding: 7px;
  margin-bottom: 14px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.06rem; color: var(--ink); }
.brand-sub { font-size: .7rem; color: var(--ink-3); letter-spacing: .04em; display: flex; align-items: center; gap: 4px; }
.stars { color: var(--gold); letter-spacing: -1px; }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  padding: 9px 13px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 500;
  font-size: .92rem;
  transition: background .18s, color .18s;
  position: relative;
}
.main-nav a:hover { background: var(--burgundy-50); color: var(--burgundy); }
.main-nav a.active { color: var(--burgundy); font-weight: 700; }
.main-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 13px;
  left: 13px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  width: 42px;
  height: 42px;
  cursor: pointer;
  place-items: center;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: '';
  position: absolute;
  right: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- هیرو ---------- */
.hero { position: relative; min-height: 620px; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  animation: heroZoom 22s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.13); }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(36, 20, 24, .62) 0%, rgba(36, 20, 24, .5) 45%, rgba(90, 18, 32, .78) 100%);
}
.hero .container { position: relative; z-index: 2; padding-block: 90px 40px; }
.hero-inner { max-width: 700px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .26);
  backdrop-filter: blur(8px);
  padding: 7px 16px;
  border-radius: 100px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero h1 .accent { color: var(--gold-light); }
.hero-lead {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .9);
  max-width: 560px;
  margin-bottom: 28px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .3);
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-facts { display: flex; gap: 16px; margin-top: 42px; flex-wrap: wrap; }
.hero-fact { display: flex; align-items: center; gap: 8px; }
.hero-fact .ico {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  display: grid;
  place-items: center;
  font-size: .92rem;
  flex-shrink: 0;
}
.hero-fact b { display: block; font-size: .84rem; font-weight: 700; white-space: nowrap; }
.hero-fact span { font-size: .7rem; color: rgba(255, 255, 255, .75); white-space: nowrap; }

/* ---------- نوار جستجوی رزرو ---------- */
.search-bar { background: #fff; border-radius: var(--r-xl); box-shadow: var(--shadow-xl); padding: 14px; border: 1px solid var(--line); }
.search-bar.floating { position: relative; z-index: 10; margin-top: -58px; }
/* شش ستون: ورود، خروج، بزرگسال، کودک، پلن، دکمه
   align-items:start تا سطر برچسب‌ها هم‌تراز شود و همه‌ی فیلدها روی یک خط بیفتند؛
   با align-items:end فیلدهایی که زیرشان توضیح دارند بالاتر می‌پریدند. */
.search-grid { display: grid; grid-template-columns: 1.05fr 1.05fr .78fr .78fr .85fr auto; gap: 10px; align-items: start; }
.field { position: relative; }
.field > label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 5px;
  padding-inline-start: 4px;
  letter-spacing: .02em;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--ivory);
  font-size: .95rem;
  font-weight: 500;
  transition: border-color .18s, box-shadow .18s, background .18s;
  cursor: pointer;
  text-align: right;
}
.field-input:hover { border-color: var(--ink-4); }
.field-input:focus { outline: none; border-color: var(--burgundy); background: #fff; box-shadow: 0 0 0 3px rgba(122, 30, 46, .1); }
.field-input::placeholder { color: var(--ink-4); font-weight: 400; }
select.field-input { cursor: pointer; appearance: none; background-image: none; padding-inline-start: 34px; }
/* فلش کشویی داخل خود select قرار می‌گیرد (نه پایین کل فیلد)، وگرنه در فیلدهایی
   که زیرشان توضیح دارند، فلش از select جدا می‌شد و کنار توضیح می‌افتاد. */
.select-wrap { position: relative; display: block; }
.select-wrap .field-arrow { top: 50%; bottom: auto; transform: translateY(-50%); }
.field-arrow { position: absolute; inset-inline-start: 12px; bottom: 14px; color: var(--ink-4); pointer-events: none; font-size: .7rem; }
.field-hint { font-size: .72rem; color: var(--ink-4); margin-top: 4px; padding-inline-start: 4px; }

/* ---------- کارت اتاق ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s, box-shadow .25s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(201, 162, 39, .4); }
.card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(36, 27, 30, .82);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .74rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 100px;
}
.card-badge.gold { background: var(--gold); color: #4a3a06; }
.card-badge.discount {
  inset-inline-start: auto;
  inset-inline-end: 12px;
  background: linear-gradient(135deg, #d4342a, #b3261e);
}
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 6px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--burgundy); }
.card-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--ink-3); margin-bottom: 12px; }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-desc {
  font-size: .87rem;
  color: var(--ink-3);
  line-height: 1.75;
  margin-bottom: 16px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.price-from { font-size: .72rem; color: var(--ink-4); }
.price-main { font-size: 1.16rem; font-weight: 800; color: var(--burgundy); line-height: 1.3; }
.price-unit { font-size: .72rem; font-weight: 500; color: var(--ink-4); }
.price-original { font-size: .78rem; color: var(--ink-4); text-decoration: line-through; line-height: 1.4; }

/* ---------- تگ امکانات ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--burgundy-50);
  border: 1px solid var(--burgundy-100);
  color: var(--burgundy);
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 100px;
}
.chip.gold { background: var(--gold-50); border-color: rgba(201, 162, 39, .3); color: var(--gold-dark); }
.chip.plain { background: var(--line-2); border-color: var(--line); color: var(--ink-2); }

/* ---------- کارت امکانات ---------- */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 22px; transition: transform .2s, box-shadow .22s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(201, 162, 39, .4); }
.feature .ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(140deg, var(--burgundy-50), var(--gold-50));
  border: 1px solid var(--burgundy-100);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature h3 { font-size: 1rem; margin-bottom: 6px; }
.feature p { font-size: .86rem; color: var(--ink-3); margin: 0; line-height: 1.7; }

/* ---------- جعبه اعلان ---------- */
.alert { padding: 13px 16px; border-radius: var(--r); font-size: .89rem; font-weight: 500; margin-bottom: 16px; border: 1px solid; display: flex; gap: 10px; align-items: flex-start; }
.alert-ok { background: var(--ok-bg); border-color: rgba(31, 122, 77, .25); color: var(--ok); }
.alert-warn { background: var(--warn-bg); border-color: rgba(168, 106, 0, .25); color: var(--warn); }
.alert-bad { background: var(--bad-bg); border-color: rgba(179, 38, 30, .25); color: var(--bad); }
.alert-info { background: var(--burgundy-50); border-color: var(--burgundy-100); color: var(--burgundy); }

/* ---------- برچسب وضعیت ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 4px 11px; border-radius: 100px; border: 1px solid; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(31, 122, 77, .25); }
.badge.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(168, 106, 0, .25); }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(179, 38, 30, .25); }
.badge.muted { background: var(--line-2); color: var(--ink-3); border-color: var(--line); }

/* ---------- فوتر ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .72); padding: 60px 0 0; font-size: .9rem; }
.site-footer h4 { color: #fff; font-size: .98rem; margin-bottom: 16px; font-weight: 700; }
.site-footer a { color: rgba(255, 255, 255, .72); }
.site-footer a:hover { color: var(--gold-light); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 44px; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 9px; }
.footer-brand .brand-mark { margin-bottom: 14px; }
.footer-brand p { font-size: .87rem; line-height: 1.85; color: rgba(255, 255, 255, .6); }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; margin-bottom: 12px; line-height: 1.7; }
.footer-contact .ico { color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .5);
  flex-wrap: wrap;
}
.social { display: flex; gap: 10px; }
.social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  display: grid;
  place-items: center;
  transition: background .2s, transform .2s;
}
.social a:hover { background: var(--burgundy); transform: translateY(-2px); }

/* ---------- صفحه داخلی ---------- */
.page-head { background: linear-gradient(135deg, var(--burgundy-dark), var(--burgundy)); color: #fff; padding: 54px 0; position: relative; overflow: hidden; }
.page-head::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle at 85% 20%, rgba(201, 162, 39, .18), transparent 55%); }
.page-head .container { position: relative; }
.page-head h1 { color: #fff; margin-bottom: .25em; }
.page-head p { color: rgba(255, 255, 255, .8); margin: 0; max-width: 640px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: rgba(255, 255, 255, .65); margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255, 255, 255, .8); }
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { opacity: .5; }

/* ---------- گالری ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gallery-item { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--line-2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s; }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item .cap {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 26px 14px 12px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  color: #fff;
  font-size: .85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }
.gallery-item.wide { grid-column: span 2; aspect-ratio: 16 / 9; }

.lightbox { position: fixed; inset: 0; background: rgba(20, 12, 14, .94); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: var(--r); box-shadow: var(--shadow-xl); }
.lightbox-close {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev { inset-inline-end: 20px; }
.lightbox-next { inset-inline-start: 20px; }
.lightbox-cap { position: absolute; bottom: 22px; inset-inline: 0; text-align: center; color: rgba(255, 255, 255, .85); font-size: .9rem; }

/* ---------- جدول ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 560px; }
table.data th, table.data td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line-2); }
table.data th { background: var(--cream); font-weight: 700; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
table.data tbody tr:hover { background: var(--burgundy-50); }
table.data tbody tr:last-child td { border-bottom: none; }

/* ---------- ریسپانسیو ---------- */
@media (max-width: 1080px) {
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-grid .search-submit { grid-column: 1 / -1; }
  /* در حالت دو ستونه، برچسب خالیِ بالای دکمه فضای بی‌مورد می‌گیرد */
  .search-grid .search-submit > label { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }

  .nav-toggle { display: grid; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    gap: 2px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 14px; font-size: 1rem; }
  .main-nav a.active::after { display: none; }
  .header-cta .btn-label { display: none; }
  .hero { min-height: 540px; }
  .search-bar.floating { margin-top: 24px; }
  .topbar-links .hide-sm { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 14.5px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .search-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-facts { gap: 18px; }
  .hero-fact { flex: 1 1 140px; }
  .gallery-item.wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-head { padding: 38px 0; }
}

/* ---------- کمکی ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--ink-3); }
.text-sm { font-size: .86rem; }
.text-xs { font-size: .78rem; }
.fw-bold { font-weight: 700; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flex-center { display: flex; justify-content: center; align-items: center; gap: 8px; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.hidden { display: none !important; }

@media print {
  .site-header, .site-footer, .topbar, .no-print { display: none !important; }
  body { background: #fff; }
}
