@charset "UTF-8";
/* =========================================================================
   لوکیشن نور — استایل اصلی
   -------------------------------------------------------------------------
   ساختار فایل:
     ۱) فونت‌ها          ۲) توکن‌های طراحی      ۳) پایه و ریست
     ۴) دکمه و چیپ       ۵) هدر و فوتر          ۶) صفحه اصلی
     ۷) صفحه فضا         ۸) فرم رزرو و تقویم    ۹) صفحات محتوایی
    ۱۰) پنل کاربری      ۱۱) پنل ادمین         ۱۲) واکنش‌گرایی و انیمیشن

   طراحی موبایل‌فرست است: استایل پایه برای موبایل نوشته شده و بزرگ‌ترها با
   media query اضافه می‌شوند. جهت کل سایت راست‌چین (rtl) است.
   ========================================================================= */

/* ------------------------------------------------------------- ۱) فونت‌ها */
/* فونت فارسی: وزیرمتن — سلف‌هاست تا وابسته به Google Fonts نباشیم */
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* فونت لاتین: Inter — فقط برای حروف و ارقام لاتین (unicode-range محدود) */
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-400.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}

/* --------------------------------------------------- ۲) توکن‌های طراحی */
:root {
  /* رنگ برند */
  --accent:        #d23b2e;
  --accent-hover:  #b52c20;
  --accent-tint:   #fdf3f2;
  --accent-light:  #ff9a8d;   /* قرمز روشن روی پس‌زمینه تیره */
  --accent-soft:   #ffe3df;   /* hover دکمه سفید روی تیره */
  --accent-wash:   #fbe4e1;   /* hover دکمه outline قرمز */

  /* رنگ تیره */
  --ink:           #211922;
  --ink-hover:     #3a2f3a;

  /* سطح‌ها */
  --bg:            #ffffff;
  --card:          #f9f6f6;
  --pill:          #f1ecec;
  --pill-hover:    #e6e0e0;

  /* متن */
  --text:          #211922;
  --text-2:        #75636f;
  --text-3:        #5c4f58;
  --muted:         #948691;
  --disabled:      #a99da5;
  --on-dark:       #cfc4cb;
  --on-dark-soft:  #e9dfe4;

  /* بوردر */
  --border:        #e4dede;
  --border-2:      #f1ecec;
  --border-3:      #d9d0d0;

  /* وضعیت */
  --ok:            #2e9e6b;
  --ok-hover:      #257f56;
  --ok-bg:         #e7f6ee;
  --warn:          #c98a1e;
  --warn-tint:     #fdf1dc;   /* پس‌زمینه‌ی «در انتظار تأیید» */
  --warn-ink:      #8a5e10;   /* متن روی تینت نارنجی */

  /* شعاع گوشه */
  --r-pill:        999px;
  --r-hero:        28px;
  --r-card-lg:     26px;
  --r-card:        22px;
  --r-card-sm:     18px;
  --r-input:       14px;
  --r-cell:        12px;

  /* سایه */
  --shadow:        0 4px 18px rgba(33, 25, 34, .06);
  --shadow-hover:  0 14px 34px rgba(33, 25, 34, .12);

  /* چیدمان */
  --gutter:        4vw;
  --wide:          1240px;
  --transition:    .2s ease;
}

/* ------------------------------------------------------- ۳) پایه و ریست */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Vazirmatn', system-ui, -apple-system, sans-serif;
  font-size: 14px;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4 { margin: 0; font-weight: 900; line-height: 1.4; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }

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

/* اعداد و شناسه‌های لاتین همیشه چپ‌چین بمانند */
.ltr { direction: ltr; text-align: right; unicode-bidi: isolate; }
.ltr-center { direction: ltr; text-align: center; unicode-bidi: isolate; }

/* پنهان‌سازی بصری با حفظ دسترسی صفحه‌خوان */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* حلقه‌ی فوکوس یکنواخت برای دسترس‌پذیری با کیبورد */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.main { flex: 1; }

/* عرض‌های استاندارد محتوا */
.wrap      { width: 100%; max-width: var(--wide); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--mid { max-width: 1100px; }
.wrap--sm  { max-width: 920px; }
.wrap--xs  { max-width: 760px; }
.wrap--xxs { max-width: 560px; }
.section   { padding-block: 30px 50px; }

/* --------------------------------------------------------- ۴) دکمه و چیپ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 13px 30px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--pill);
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn:hover { background: var(--pill-hover); color: var(--text); }

.btn--accent      { background: var(--accent); color: #fff; }
.btn--accent:hover{ background: var(--accent-hover); color: #fff; }

.btn--ink         { background: var(--ink); color: #fff; }
.btn--ink:hover   { background: var(--ink-hover); color: #fff; }

.btn--white       { background: #fff; color: var(--accent); }
.btn--white:hover { background: var(--accent-soft); color: var(--accent); }

.btn--glass       { background: #ffffffd9; color: var(--ink); }
.btn--glass:hover { background: #fff; color: var(--ink); }

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

.btn--outline {
  background: #fff;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: var(--accent-wash); color: var(--accent); }

.btn--line {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.btn--line:hover { background: var(--pill); }

.btn--sm    { padding: 9px 20px; font-size: 12px; }
.btn--md    { padding: 11px 26px; font-size: 13px; }
.btn--block { display: flex; width: 100%; }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: #e0b5b0;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

/* چیپ / تگ */
.chip {
  display: inline-block;
  background: var(--pill);
  color: var(--text-3);
  padding: 5px 13px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
}
.chip--line {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}
.chip--ink {
  background: var(--ink);
  color: #fff;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
}

/* بَج وضعیت رزرو */
.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
}
.badge--pending   { background: var(--warn); }
.badge--confirmed { background: var(--ok); }
.badge--cancelled { background: var(--accent); }

/* کارت پایه */
.card {
  background: var(--card);
  border-radius: var(--r-card-sm);
  padding: 18px 22px;
}
.card--lg   { border-radius: var(--r-card); padding: 20px; }
.card--dark { background: var(--ink); color: #fff; }
.card--dark .card__label { color: var(--on-dark); }

/* پیام فلش */
.flash {
  background: var(--ok-bg);
  color: var(--ok);
  border-radius: var(--r-input);
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 16px;
}
.flash--error { background: #fbe4e1; color: var(--accent); }

/* پیام خطای فرم */
.form-error {
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 12px;
}

/* حالت خالی */
.empty {
  text-align: center;
  background: var(--card);
  border-radius: var(--r-card);
  padding: 44px 30px;
  color: var(--text-2);
  font-size: 13.5px;
}

/* --------------------------------------------------------- فرم‌ها */
.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 6px;
}
.input, .textarea, .select {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--r-input);
  padding: 13px 16px;
  font-size: 14px;
  background: #fff;
  outline: none;
  transition: border-color var(--transition);
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--accent); }
.textarea { resize: vertical; line-height: 1.9; border-radius: 12px; padding: 10px 14px; font-size: 12.5px; }
.input--pill { border-radius: var(--r-pill); padding: 13px 20px; }

/* -------------------------------------------------------- ۵) هدر و فوتر */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px var(--gutter);
  background: #ffffffee;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  flex: none;
}
.brand:hover { color: var(--text); }
.brand__mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px;
  flex: none;
}
.brand__name { font-size: 18px; font-weight: 800; }

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
  max-width: 100%;
}
.nav::-webkit-scrollbar { display: none; }

.nav__item {
  flex: none;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}
.nav__item:hover      { background: var(--pill-hover); color: var(--text); }
.nav__item.is-active  { background: var(--pill); color: var(--text); }
.nav__item--ink       { background: var(--ink); color: #fff; }
.nav__item--ink:hover { background: var(--ink-hover); color: #fff; }
.nav__item--cta       { background: var(--accent); color: #fff; font-weight: 800; padding-inline: 20px; }
.nav__item--cta:hover { background: var(--accent-hover); color: #fff; }

.footer {
  border-top: 1px solid var(--border-2);
  padding: 22px var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.footer__links { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: underline; }
.footer a:hover { color: var(--accent); }

/* ------------------------------------------------------ ۶) صفحه اصلی */
/* هیرو داخل همان .wrap قرار می‌گیرد تا عرض و لبه‌هایش دقیقاً با کارت‌های
   پایین صفحه هم‌تراز باشد. */
.hero {
  position: relative;
  border-radius: var(--r-hero);
  overflow: hidden;
  height: min(58vw, 480px);
  min-height: 320px;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: min(6vw, 52px) min(5vw, 48px);
  background: linear-gradient(0deg, rgba(33, 25, 34, .82), rgba(33, 25, 34, .35) 60%, transparent);
  color: #fff;
}
.hero__title {
  margin-bottom: 10px;
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.35;
}
.hero__sub {
  margin-bottom: 20px;
  font-size: clamp(13px, 1.6vw, 15.5px);
  color: var(--on-dark-soft);
  max-width: 520px;
  line-height: 2;
}
.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* شبکه‌ی کارت‌ها — به‌طور خودکار در موبایل تک‌ستونه می‌شود */
.grid        { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid--sm    { gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid--mid   { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.grid--wide  { gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }

.floor-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border-2);
  border-radius: var(--r-card-lg);
  overflow: hidden;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.floor-card:hover {
  color: var(--text);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.floor-card__media { position: relative; height: 250px; }
.floor-card__media img { width: 100%; height: 100%; object-fit: cover; }
.floor-card__badge { position: absolute; top: 14px; inset-inline-end: 14px; }
.floor-card__body { padding: 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.floor-card__head {
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 6px;
}
.floor-card__name  { font-size: 20px; font-weight: 900; }
.floor-card__price { font-size: 14px; font-weight: 800; color: var(--accent); }
.floor-card__price small { font-size: 11px; color: var(--muted); font-weight: 600; }
.floor-card__meta  { font-size: 13px; color: var(--text-2); line-height: 1.9; }

.bundle {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-card);
  padding: 24px 30px;
  font-size: 15px;
  font-weight: 700;
}
.bundle b { color: var(--accent-light); font-weight: 800; }

.feature {
  background: var(--card);
  border-radius: var(--r-card-sm);
  padding: 18px 22px;
  text-align: center;
}
.feature__title { font-size: 17px; font-weight: 900; color: var(--accent); }
.feature__text  { font-size: 12px; color: var(--text-2); margin-top: 4px; line-height: 1.9; }

/* -------------------------------------------------------- ۷) صفحه فضا */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.kicker { font-size: 12px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.page-title { font-size: clamp(24px, 4vw, 34px); font-weight: 900; }

.gallery { position: relative; border-radius: var(--r-card); overflow: hidden; height: min(52vw, 420px); min-height: 240px; }
.gallery__slide { position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; }
.gallery__slide.is-active { opacity: 1; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: #ffffffd9;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800; cursor: pointer;
  transition: background var(--transition);
}
.gallery__nav:hover { background: #fff; }
/* جای دکمه‌ها فیزیکی است: در چیدمان راست‌چین «قبلی» سمت راست می‌ماند */
.gallery__nav--prev { right: 16px; }
.gallery__nav--next { left: 16px; }

.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumb {
  flex: none;
  width: 110px; height: 72px;
  border-radius: var(--r-cell);
  overflow: hidden;
  border: 2.5px solid transparent;
  background: none; padding: 0; cursor: pointer;
  transition: border-color var(--transition);
}
.thumb.is-active { border-color: var(--accent); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.spec-card { background: var(--card); border-radius: 20px; padding: 24px; }
.spec-card__title { font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.spec-card__tags  { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-card__text  { margin-top: 16px; font-size: 13.5px; line-height: 2.1; color: var(--text-3); }

.rate-card {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rate-card__title { font-size: 15px; font-weight: 800; }
.rate-card__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13.5px; color: var(--on-dark);
}
.rate-card__row b { color: var(--accent-light); white-space: nowrap; }
.rate-card__note  { font-size: 11.5px; color: var(--muted); line-height: 1.9; }
.rate-card .btn   { margin-top: auto; }

/* --------------------------------------------- ۸) فرم رزرو و تقویم */
.stepper {
  display: flex; gap: 8px; align-items: center;
  flex-wrap: wrap; margin-bottom: 26px;
}
.step { display: flex; align-items: center; gap: 8px; }
.step__num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 800;
  background: var(--pill); color: var(--muted);
}
.step__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.step__line  { width: 26px; height: 2px; background: var(--border); margin-inline: 4px; }
.step.is-current .step__num { background: var(--accent); color: #fff; }
.step.is-current .step__label { color: var(--text); }
.step.is-done .step__num { background: var(--ink); color: #fff; }

.section-title { font-size: 22px; font-weight: 900; margin-bottom: 18px; }
.section-hint  { font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }

/* رادیوی مخفی داخل کارت‌ها و چیپ‌های انتخابی */
.pick input, .hour-pill input, .segment__btn input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
  pointer-events: none;
}

/* کارت انتخاب فضا */
.pick {
  display: block;
  position: relative;
  width: 100%;
  text-align: start;
  border: 2px solid var(--border);
  background: #fff;
  border-radius: 20px;
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.pick:hover { border-color: var(--accent); }
.pick.is-active,
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-tint); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pick__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; gap: 10px; }
.pick__name { font-size: 16px; font-weight: 800; }
.pick__dot  { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-3); background: #fff; flex: none; }
.pick.is-active .pick__dot,
.pick:has(input:checked) .pick__dot { border-color: var(--accent); background: var(--accent); }
.pick__sub   { display: block; font-size: 12px; color: var(--text-2); line-height: 1.9; }
.pick__price { display: block; font-size: 13px; font-weight: 800; color: var(--accent); margin-top: 8px; }

/* جدول تعرفه‌ی هر فضا در مرحله‌ی انتخاب: ساعتی و روزانه با حداقل اجاره */
.pick__rates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.pick__rate {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: baseline;
}
.pick__rate-k {
  font-size: 11.5px;
  color: var(--muted);
  background: var(--pill);
  border-radius: 999px;
  padding: 2px 9px;
  font-weight: 700;
}
.pick__rate-v {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--accent);
  text-align: end;
}
.pick__rate-n {
  grid-column: 2;
  font-size: 11px;
  color: var(--text-3);
  text-align: end;
  line-height: 1.8;
}
.pick.is-active .pick__rates,
.pick:has(input:checked) .pick__rates { border-top-color: #e6cfc9; }
.pick.is-active .pick__rate-k,
.pick:has(input:checked) .pick__rate-k { background: #fff; }

/* سگمنت ساعتی / روزانه */
.segment {
  display: inline-flex; gap: 6px; margin-top: 22px;
  background: var(--pill); padding: 6px; border-radius: var(--r-pill);
  max-width: 100%; flex-wrap: wrap;
}
.segment__btn {
  position: relative;
  border: 0; background: transparent; color: var(--text-3);
  padding: 10px 26px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  text-align: center;
  transition: background var(--transition), color var(--transition);
}
.segment__btn.is-active,
.segment__btn:has(input:checked) { background: var(--ink); color: #fff; }
.segment__btn:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* تقویم */
.cal { background: var(--card); border-radius: var(--r-card); padding: 20px; }
.cal__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 10px;
}
.cal__month { font-size: 15px; font-weight: 800; }
.cal__nav {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-weight: 800; font-size: 16px;
  transition: background var(--transition);
}
.cal__nav:hover:not(:disabled) { background: var(--pill-hover); }
.cal__nav:disabled { opacity: .35; cursor: not-allowed; }

.cal__weekdays, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal__weekdays {
  text-align: center; font-size: 11px; font-weight: 700;
  color: var(--muted); margin-bottom: 6px;
}
.cal__day {
  height: 40px; border: 0; border-radius: var(--r-cell);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: #fff; color: var(--text);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
a.cal__day { color: var(--text); text-decoration: none; }
.cal__day:hover:not(:disabled):not(.is-disabled) { background: var(--pill-hover); color: var(--text); }
.cal__day--empty { background: transparent; cursor: default; }
.cal__day:disabled,
.cal__day.is-disabled {
  background: var(--border); color: var(--disabled);
  cursor: not-allowed; pointer-events: none;
}
.cal__day.is-full { text-decoration: line-through; }

/* روزی که رزرو در انتظار تأیید دارد: قابل انتخاب ولی نارنجی */
.cal__day.is-tentative {
  background: var(--warn-tint);
  color: var(--warn-ink);
  box-shadow: inset 0 0 0 1.5px var(--warn);
}
.cal__day.is-tentative:hover { background: #f7e3bd; color: var(--warn-ink); }

.cal__day.is-selected,
.cal__day.is-selected:hover { background: var(--accent); color: #fff; box-shadow: none; }

.cal__legend {
  display: flex; gap: 14px; margin-top: 12px;
  font-size: 10.5px; color: var(--muted); flex-wrap: wrap;
}
.cal__legend span { display: flex; align-items: center; gap: 5px; }
.cal__swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal__swatch--sel  { background: var(--accent); }
.cal__swatch--tent { background: var(--warn-tint); border: 1.5px solid var(--warn); }
.cal__swatch--full { background: var(--border); }
.cal__swatch--free { background: #fff; border: 1px solid var(--border-3); }

/* انتخاب ساعت */
.hour-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.hour-pill {
  position: relative;
  display: inline-block;
  padding: 8px 15px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 700;
  background: #fff; color: var(--text-3);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.hour-pill:hover { border-color: var(--ink); }
.hour-pill.is-active,
.hour-pill:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }
.hour-pill:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.hour-pill.is-disabled,
.hour-pill:has(input:disabled) {
  background: var(--pill); color: #c0b5bc; border-color: var(--border);
  text-decoration: line-through; cursor: not-allowed;
}
/* ساعتی که رزرو در انتظار تأیید دارد */
.hour-pill.is-tentative { background: var(--warn-tint); color: var(--warn-ink); border-color: var(--warn); }
.hour-pill.is-tentative:has(input:checked) { background: var(--ink); color: #fff; border-color: var(--ink); }

/* بَج وضعیت‌های جدید رزرو */
.badge--hold    { background: var(--warn-tint); color: var(--warn-ink); }
.badge--expired { background: var(--pill); color: var(--muted); text-decoration: line-through; }

/* اطلاعات حساب بانکی و بلوک‌های کد */
.bank-box {
  background: var(--card);
  border-radius: var(--r-input);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bank-box__row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.bank-box__row span { color: var(--muted); }
.bank-box__row b { font-weight: 800; }

/* کارت انتخابی با چک‌باکس */
.check-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  background: var(--card);
  border-radius: var(--r-input);
  cursor: pointer;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .15s ease, background .15s ease;
}
.check-card:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-tint); }
.check-card input { margin-top: 3px; flex-shrink: 0; }
.check-card b { display: block; font-size: 13px; margin-bottom: 3px; }
.check-card small { font-size: 11.5px; color: var(--text-3); line-height: 1.9; }

/* جعبه‌ی اطلاع‌رسانی */
.notice {
  border-radius: var(--r-input);
  padding: 14px 18px;
  font-size: 12.5px;
  line-height: 2;
}
.notice--warn { background: var(--warn-tint); color: var(--warn-ink); border: 1px solid #eccf94; }
.notice--info { background: var(--card); color: var(--text-3); border: 1px solid var(--border); }
.picker-title { font-size: 13.5px; font-weight: 800; margin-bottom: 10px; }
.picker-title + .hour-pills + .picker-title { margin-top: 16px; }

/* کارت خلاصه‌ی تیره */
.summary {
  background: var(--ink); color: #fff;
  border-radius: var(--r-card); padding: 20px;
  display: flex; flex-direction: column; gap: 9px;
}
.summary__row {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 12.5px; color: var(--on-dark);
}
.summary__row b { color: #fff; }
.summary__total {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 14px; border-top: 1px solid var(--ink-hover); padding-top: 10px;
}
.summary__total b { color: var(--accent-light); }

.actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

/* اسلایدر بیعانه */
.range {
  width: 100%;
  accent-color: var(--accent);
  height: 22px;
}
.range-head {
  display: flex; justify-content: space-between;
  font-size: 13.5px; font-weight: 800; margin-bottom: 14px;
}
.range-head span:last-child { color: var(--accent); }
.range-scale {
  display: flex; justify-content: space-between;
  font-size: 10.5px; color: var(--muted); margin-top: 4px;
}

.price-rows { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.price-row  { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-3); }
.price-row--discount { color: var(--ok); }
.price-row--dep b { color: var(--accent); }

.disc-box { display: flex; gap: 8px; }
.disc-box .input { flex: 1; min-width: 0; }
.disc-msg { font-size: 11.5px; font-weight: 700; margin-top: 8px; }
.disc-msg--ok  { color: var(--ok); }
.disc-msg--err { color: var(--accent); }

.pay-card {
  background: var(--ink); color: #fff;
  border-radius: var(--r-card); padding: 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.pay-card__title { font-size: 14px; font-weight: 800; }
.pay-card__box {
  background: var(--ink-hover); border-radius: var(--r-input);
  padding: 14px 16px; font-size: 12.5px; color: var(--on-dark); line-height: 2;
}
.pay-card__note { font-size: 10.5px; color: var(--muted); text-align: center; }

/* تأیید نهایی */
.done {
  max-width: 560px; margin: 20px auto; text-align: center;
  background: var(--card); border-radius: var(--r-card-lg); padding: 38px 30px;
}
.done__icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--ok); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}
.done__title { font-size: 22px; font-weight: 900; margin-bottom: 8px; }
.done__text  { font-size: 13px; color: var(--text-2); line-height: 2; margin-bottom: 18px; }
.code-box {
  background: #fff; border: 1.5px dashed var(--accent);
  border-radius: 16px; padding: 16px; margin-bottom: 16px;
}
.code-box__label { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.code-box__code  { font-size: 22px; font-weight: 900; letter-spacing: 2px; color: var(--accent); }
.done__summary {
  text-align: start; background: #fff; border-radius: 16px; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 12.5px; color: var(--text-3);
}
.done__summary > div { display: flex; justify-content: space-between; gap: 10px; }

/* ------------------------------------------------- ۹) صفحات محتوایی */
.rule-card__title { font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
.rule-card__body  { font-size: 13px; color: var(--text-3); line-height: 2.1; }

.faq {
  background: var(--card); border-radius: var(--r-card-sm);
  padding: 0; overflow: hidden;
}
.faq + .faq { margin-top: 10px; }
.faq__q {
  width: 100%; border: 0; background: transparent;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 22px; cursor: pointer; text-align: start;
  font-size: 14px; font-weight: 800; color: var(--text);
}
.faq__mark { font-size: 16px; font-weight: 800; color: var(--accent); flex: none; }
.faq__a {
  font-size: 13px; color: var(--text-3); line-height: 2.1;
  padding: 0 22px 18px;
}
.faq[hidden] { display: none; }

/* متن صفحات دلخواه */
.prose__p { font-size: 13.5px; color: var(--text-3); line-height: 2.2; margin-bottom: 16px; }
.prose__h { font-size: 17px; font-weight: 800; margin: 26px 0 10px; }
.prose__h:first-child { margin-top: 0; }
.prose__list { margin: 0 0 16px; padding-inline-start: 20px; }
.prose__list li {
  font-size: 13.5px; color: var(--text-3); line-height: 2.2;
  list-style: disc; margin-bottom: 2px;
}

/* عکس شاخص و گالری صفحات */
.page-cover {
  border-radius: var(--r-card);
  overflow: hidden;
  margin-bottom: 24px;
  background: var(--card);
}
.page-cover img { width: 100%; height: auto; display: block; max-height: 420px; object-fit: cover; }

.page-gallery {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  margin-top: 26px;
}
.page-gallery__item {
  border-radius: var(--r-card-sm);
  overflow: hidden;
  background: var(--card);
  aspect-ratio: 4 / 3;
  display: block;
}
.page-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.page-gallery__item:hover img { transform: scale(1.04); }

/* انتخاب چندتایی عکس در پنل */
.pick-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  max-height: 240px;
  overflow-y: auto;
  padding: 8px;
  background: var(--card);
  border-radius: var(--r-input);
}
.pick-grid__item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 0 0 2px transparent;
  transition: box-shadow .15s ease, opacity .15s ease;
  opacity: .55;
}
.pick-grid__item img { width: 100%; height: 100%; object-fit: cover; }
.pick-grid__item input { position: absolute; opacity: 0; pointer-events: none; }
.pick-grid__item:has(input:checked) { opacity: 1; box-shadow: 0 0 0 2.5px var(--accent); }
.pick-grid__item:hover { opacity: 1; }

.info-card__label { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.info-card__value { font-size: 16px; font-weight: 800; }
.info-card__value--sm { font-size: 13.5px; font-weight: 600; line-height: 2; }

.map {
  border-radius: var(--r-card); overflow: hidden;
  min-height: 320px; background: var(--card);
}
.map img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

.track-form { display: flex; gap: 10px; flex-wrap: wrap; }
.track-form .input { flex: 1; min-width: 200px; }

/* -------------------------------------------------- ۱۰) پنل کاربری */
.auth-card {
  max-width: 420px; margin: 30px auto;
  background: var(--card); border-radius: var(--r-card-lg);
  padding: 34px 30px; text-align: center;
}
.auth-card--dark { background: var(--ink); color: #fff; }
.auth-card--dark .auth-card__sub { color: var(--on-dark); }
.auth-card__title { font-size: 24px; font-weight: 900; margin-bottom: 6px; }
.auth-card__sub   { font-size: 12.5px; color: var(--text-2); margin-bottom: 20px; line-height: 2; }
.auth-card .input { margin-bottom: 0; }
.auth-card .btn   { margin-top: 14px; }
.otp-input { letter-spacing: 8px; font-size: 18px; }

.booking-card { background: var(--card); border-radius: 20px; padding: 20px 24px; }
.booking-card + .booking-card { margin-top: 14px; }
.booking-card__head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px; margin-bottom: 10px;
}
.booking-card__code {
  font-size: 14px; font-weight: 900; letter-spacing: 1px; color: var(--accent);
}
.booking-card__rows { display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--text-3); }
.booking-card__rows > div { display: flex; justify-content: space-between; gap: 10px; }
.booking-card__actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-accent { color: var(--accent); }

/* ---------------------------------------------------- ۱۱) پنل ادمین */
.admin-head {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 18px;
}
.admin-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  background: var(--pill); padding: 6px; border-radius: 20px; margin-bottom: 22px;
}
.admin-tabs__item {
  padding: 9px 18px; border-radius: 14px;
  font-size: 12.5px; font-weight: 700;
  color: var(--text-3); background: transparent;
  transition: background var(--transition), color var(--transition);
}
.admin-tabs__item:hover { background: var(--pill-hover); color: var(--text-3); }
.admin-tabs__item.is-active { background: var(--ink); color: #fff; }
.admin-tabs__item.is-active:hover { background: var(--ink); color: #fff; }

.stat {
  background: var(--card); border-radius: var(--r-card-sm); padding: 18px 20px;
}
.stat--dark { background: var(--ink); color: #fff; }
.stat__label { font-size: 11.5px; color: var(--muted); }
.stat--dark .stat__label { color: var(--on-dark); }
.stat__value { font-size: 24px; font-weight: 900; margin-top: 2px; }
.stat__value--money { font-size: 15px; margin-top: 8px; }

.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-row + .bar-row { margin-top: 10px; }
.bar-row__label { font-size: 12px; font-weight: 700; width: 80px; flex: none; }
.bar { flex: 1; background: var(--pill); border-radius: var(--r-pill); height: 14px; overflow: hidden; }
.bar__fill { height: 100%; border-radius: var(--r-pill); background: var(--accent); }
.bar-row__n { font-size: 12px; font-weight: 800; width: 24px; flex: none; text-align: center; }

.list-row {
  background: var(--card); border-radius: var(--r-input);
  padding: 14px 18px;
  display: flex; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; font-size: 12.5px; align-items: center;
}
.list-row + .list-row { margin-top: 10px; }
.list-row--lg { border-radius: var(--r-card-sm); padding: 18px 22px; }

.subhead { font-size: 15px; font-weight: 800; margin: 24px 0 12px; }
.subhead:first-child { margin-top: 0; }

/* تقویم مسدودسازی ادمین */
.cal__day--adm { border: 2px solid transparent; }
.cal__day--adm.has-booking { background: var(--warn); color: #fff; }
.cal__day--adm.has-block   { background: var(--ink); color: #fff; }
.cal__day--adm.is-selected { border-color: var(--accent); background: #fff; color: var(--text); }
.cal__day--adm.is-selected.has-booking { background: var(--warn); color: #fff; }
.cal__day--adm.is-selected.has-block   { background: var(--ink); color: #fff; }

.hour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 7px; }
.hour-toggle {
  padding: 9px 8px; border-radius: var(--r-cell);
  font-size: 12px; font-weight: 700; text-align: center;
  background: #fff; color: var(--text-3);
  border: 1px solid var(--border); cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.hour-toggle.is-blocked { background: var(--ink); color: #fff; border-color: var(--ink); }
.hour-toggle.is-booked  { background: var(--warn); color: #fff; border-color: var(--warn); cursor: not-allowed; }

.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin-bottom: 0; flex: 1; min-width: 140px; }

/* ------------------------------------------------------- جدول‌های پنل */
/* جدول‌های پهن داخل کادر خودشان اسکرول می‌شوند تا صفحه افقی نلغزد */
.table-wrap {
  overflow-x: auto;
  background: var(--card);
  border-radius: var(--r-card-sm);
  padding: 4px;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  white-space: nowrap;
}
.table th {
  text-align: start;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--muted);
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-2);
  color: var(--text-3);
  vertical-align: middle;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fff; }
.table tr.is-current-week { background: var(--accent-tint); }
.table td .btn { white-space: nowrap; }

/* -------------------------------------------------- کارت‌های تصویر پنل */
.media-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
}

.media-card {
  background: var(--card);
  border-radius: var(--r-card-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.media-card__preview {
  position: relative;
  height: 130px;
  background: #fff;
}
.media-card__preview img { width: 100%; height: 100%; object-fit: cover; }
.media-card__tag { position: absolute; top: 8px; inset-inline-end: 8px; }

.media-card__body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.media-card__title { font-size: 13px; font-weight: 800; }
.media-card__size  { font-size: 11px; color: var(--muted); }
.media-card__form  { display: flex; flex-direction: column; gap: 8px; }
.media-card input[type="file"] { font-size: 11.5px; padding: 8px 10px; }

/* ------------------------------------------ ۱۲) واکنش‌گرایی و انیمیشن */
@media (min-width: 700px) {
  .header { padding-block: 14px; }
  .nav { flex-wrap: wrap; overflow: visible; }
  .section { padding-block: 40px 60px; }
}

@media (max-width: 560px) {
  .bundle       { padding: 20px 22px; font-size: 14px; }
  .floor-card__body { padding: 20px 22px; }
  .hero__overlay { padding: 28px 22px; }
  .btn          { padding: 12px 24px; }
  .segment      { width: 100%; }
  .segment__btn { flex: 1; padding-inline: 14px; }
  .cal          { padding: 14px; }
  .cal__day     { height: 38px; font-size: 12px; }
  .stepper      { gap: 4px; }
  .step__label  { display: none; }
  .step__line   { width: 14px; }
  .step.is-current .step__label { display: inline; }
  .admin-tabs   { border-radius: 16px; }
  .admin-tabs__item { padding: 8px 14px; font-size: 12px; }
}

/* احترام به تنظیم «کاهش انیمیشن» سیستم‌عامل */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* چاپ */
@media print {
  .header, .footer, .actions, .nav { display: none !important; }
  body { background: #fff; }
}
