/* ============================================================
   پاریگ — سیستم طراحی سایت عمومی
   پالت کویری: شنی، گلی، طلایی و شب کویر
   ============================================================ */
:root {
  --sand-50: #fdfaf3;
  --sand-100: #f8f0dd;
  --sand-200: #f0e0c0;
  --sand-300: #e5c98f;
  --gold: #d9a441;
  --gold-dark: #b5771f;
  --clay: #c4622d;
  --clay-dark: #a34c1f;
  --night: #1b2140;
  --night-2: #2a3158;
  --ink: #2b2118;
  --ink-soft: #6b5d4f;
  --teal: #2a9d8f;
  --red: #c0392b;
  --green: #2e8b57;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 10px 30px -12px rgba(43, 33, 24, .18);
  --shadow-lg: 0 24px 60px -20px rgba(27, 33, 64, .35);
  --font: "Vazirmatn", Tahoma, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--sand-50);
  color: var(--ink);
  overflow-x: hidden;
  direction: rtl;
}
a { text-decoration: none; color: inherit; transition: color .2s; }
img { max-width: 100%; }
::selection { background: var(--gold); color: #fff; }

.h-font { font-weight: 800; letter-spacing: -.5px; }
.text-clay { color: var(--clay) !important; }
.text-soft { color: var(--ink-soft) !important; }
.bg-night { background: var(--night) !important; color: #fff; }
.fw-black { font-weight: 900; }

/* ── دکمه‌ها ─────────────────────────── */
.btn {
  font-family: var(--font);
  font-weight: 700;
  border-radius: 14px;
  padding: .65rem 1.5rem;
  transition: all .25s;
  border: none;
}
.btn-clay {
  background: linear-gradient(135deg, var(--clay), var(--clay-dark));
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(196, 98, 45, .55);
}
.btn-clay:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(196, 98, 45, .65); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff !important;
  box-shadow: 0 8px 20px -8px rgba(217, 164, 65, .55);
}
.btn-gold:hover { transform: translateY(-2px); }
.btn-night { background: var(--night); color: #fff !important; }
.btn-outline-clay { border: 2px solid var(--clay); color: var(--clay) !important; background: transparent; }
.btn-outline-clay:hover { background: var(--clay); color: #fff !important; }
.btn-lg { padding: .9rem 2.2rem; font-size: 1.05rem; }

/* ── هدر ─────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1040;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: .9rem 0;
}
.site-header.scrolled {
  background: rgba(253, 250, 243, .92);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 24px rgba(43, 33, 24, .08);
  padding: .4rem 0;
}
.site-header.on-dark:not(.scrolled) { color: #fff; }
.site-header.on-dark:not(.scrolled) .nav-link { color: rgba(255,255,255,.92); }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.25rem; }
.navbar-brand img { width: 42px; height: 42px; }
.navbar-brand small { display: block; font-size: .66rem; font-weight: 500; opacity: .75; }
.main-nav { display: flex; gap: .25rem; align-items: center; }
.main-nav .nav-link {
  font-weight: 600;
  font-size: .95rem;
  padding: .5rem .85rem !important;
  border-radius: 10px;
  color: var(--ink);
}
.main-nav .nav-link:hover, .main-nav .nav-link.active { background: rgba(196, 98, 45, .1); color: var(--clay); }
.header-actions { display: flex; gap: .5rem; align-items: center; }
.user-chip {
  display: flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; padding: .35rem 1rem .35rem .5rem; font-weight: 600; font-size: .9rem;
  color: inherit;
}
.site-header.scrolled .user-chip { background: var(--sand-100); border-color: var(--sand-300); }
.user-chip img, .user-chip .avatar-fallback { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.avatar-fallback { background: var(--clay); color: #fff; display: grid; place-items: center; font-weight: 800; }

.mobile-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: inherit; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 1050; background: rgba(27, 33, 64, .98);
  color: #fff; padding: 2rem; transform: translateX(100%); transition: transform .35s;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .nav-link { color: #fff; font-size: 1.2rem; font-weight: 700; padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-menu .close-menu { background: none; border: none; color: #fff; font-size: 2rem; }

/* ── هیرو ────────────────────────────── */
.hero-swiper { height: min(74vh, 600px); min-height: 440px; position: relative; }
.hero-swiper .swiper-slide { position: relative; }
.hero-swiper .swiper-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-swiper .swiper-slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 16, 10, .82) 5%, rgba(20, 16, 10, .25) 55%, rgba(20, 16, 10, .35) 100%);
}
.hero-content {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-bottom: 2rem;
  color: #fff;
}
.hero-content .badge-hero {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(217, 164, 65, .2); border: 1px solid rgba(217, 164, 65, .5);
  color: var(--gold); border-radius: 999px; padding: .35rem 1rem;
  font-size: .85rem; font-weight: 700; width: fit-content; margin-bottom: 1rem;
  backdrop-filter: blur(6px);
}
.hero-content h1 {
  font-weight: 900; font-size: clamp(1.9rem, 5vw, 3.6rem);
  text-shadow: 0 4px 30px rgba(0,0,0,.4); line-height: 1.35;
}
.hero-content p { font-size: clamp(1rem, 2vw, 1.3rem); opacity: .92; max-width: 640px; }
.hero-cta { display: flex; gap: .8rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-swiper .swiper-pagination-bullet { background: #fff; opacity: .4; width: 26px; height: 4px; border-radius: 4px; }
.hero-swiper .swiper-pagination-bullet-active { opacity: 1; background: var(--gold); }

.stats-strip {
  position: relative; z-index: 6;
  margin-top: -46px;
}
.stats-strip .stat-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem 1rem; text-align: center;
}
.stat-card .num { font-size: 1.7rem; font-weight: 900; color: var(--clay); }
.stat-card .lbl { font-size: .85rem; color: var(--ink-soft); font-weight: 600; }
.stat-card i { font-size: 1.4rem; color: var(--gold); }

/* ── بخش‌ها ──────────────────────────── */
.section { padding: 4.5rem 0; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .kicker {
  color: var(--clay); font-weight: 800; font-size: .9rem;
  letter-spacing: 1px; display: inline-flex; align-items: center; gap: .5rem;
}
.section-head .kicker::before, .section-head .kicker::after {
  content: "✦"; color: var(--gold); font-size: .8rem;
}
.section-head h2 { font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.3rem); margin: .6rem 0 .4rem; }
.section-head p { color: var(--ink-soft); max-width: 620px; margin-inline: auto; }

/* ── کارت اقامتگاه/تور ───────────────── */
.item-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s;
  height: 100%; display: flex; flex-direction: column;
}
.item-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.item-card .img-wrap { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.item-card .img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.item-card:hover .img-wrap img { transform: scale(1.07); }
.item-card .price-chip {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-radius: 999px; padding: .4rem 1rem; font-weight: 800; font-size: .9rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}
.item-card .price-chip small { font-weight: 600; color: var(--ink-soft); }
.item-card .tag-chip {
  position: absolute; top: 12px; right: 12px;
  background: var(--clay); color: #fff; border-radius: 999px;
  padding: .25rem .85rem; font-size: .78rem; font-weight: 700;
}
.item-card .body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.item-card h3 { font-size: 1.12rem; font-weight: 800; margin: 0; }
.item-card h3 a:hover { color: var(--clay); }
.item-card .desc { color: var(--ink-soft); font-size: .9rem; flex: 1; }
.meta-row { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .82rem; color: var(--ink-soft); }
.meta-row span { display: inline-flex; align-items: center; gap: .3rem; }
.meta-row i { color: var(--gold-dark); }

/* ── بنر CTA ─────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--night), var(--night-2));
  border-radius: 24px; color: #fff; padding: 3rem 2.5rem;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(217,164,65,.25), transparent 45%);
}
.cta-banner h3 { font-weight: 900; font-size: 1.7rem; }

/* ── ویژگی‌ها (چرا پاریگ) ───────────── */
.feature-box {
  text-align: center; padding: 2rem 1.2rem;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  height: 100%; transition: transform .3s;
}
.feature-box:hover { transform: translateY(-5px); }
.feature-box .icon {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--sand-100), var(--sand-200));
  border-radius: 20px; display: grid; place-items: center;
  font-size: 1.6rem; color: var(--clay);
}
.feature-box h5 { font-weight: 800; }
.feature-box p { color: var(--ink-soft); font-size: .9rem; margin: 0; }

/* ── گالری ───────────────────────────── */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid .g-item {
  position: relative; border-radius: var(--radius-sm); overflow: hidden;
  aspect-ratio: 1; cursor: pointer;
}
.gallery-grid .g-item:first-child { grid-column: span 2; grid-row: span 2; }
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid .g-item:hover img { transform: scale(1.08); }
.gallery-grid .g-item .cap {
  position: absolute; inset-inline: 0; bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  color: #fff; padding: 1.6rem .9rem .7rem; font-size: .82rem; font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.gallery-grid .g-item:hover .cap { opacity: 1; }

/* ── تجربه‌ها ────────────────────────── */
.exp-card {
  background: #fff; border-radius: var(--radius); padding: 1.6rem;
  box-shadow: var(--shadow); height: 100%; position: relative;
}
.exp-card .quote { position: absolute; top: 1rem; left: 1.4rem; font-size: 3rem; color: var(--sand-200); line-height: 1; }
.stars { color: var(--gold); font-size: .9rem; letter-spacing: 2px; }
.exp-card h6 { font-weight: 800; margin-top: .7rem; }
.exp-card p { color: var(--ink-soft); font-size: .9rem; }
.exp-card .author { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; font-weight: 700; font-size: .9rem; }
.exp-card .author .avatar-fallback { width: 38px; height: 38px; }
.exp-card .admin-reply {
  background: var(--sand-100); border-radius: var(--radius-sm);
  padding: .8rem 1rem; margin-top: .8rem; font-size: .85rem;
  border-inline-start: 3px solid var(--gold);
}

/* ── سوالات متداول ───────────────────── */
.accordion-item { border: none; margin-bottom: .8rem; border-radius: var(--radius-sm) !important; box-shadow: var(--shadow); overflow: hidden; }
.accordion-button { font-weight: 700; font-family: var(--font); }
.accordion-button:not(.collapsed) { background: var(--sand-100); color: var(--clay); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }

/* ── فوتر ────────────────────────────── */
.site-footer { background: var(--night); color: rgba(255,255,255,.82); margin-top: 4rem; }
.site-footer .top { padding: 3.5rem 0 2rem; }
.site-footer h6 { color: #fff; font-weight: 800; margin-bottom: 1.1rem; }
.site-footer a { color: rgba(255,255,255,.75); font-size: .92rem; display: inline-block; padding: .18rem 0; }
.site-footer a:hover { color: var(--gold); }
.site-footer .social-btn {
  width: 40px; height: 40px; border-radius: 12px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  font-size: 1.1rem; transition: background .25s;
}
.site-footer .social-btn:hover { background: var(--clay); color: #fff !important; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.1rem 0; font-size: .85rem; }
.contact-mini { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; font-size: .92rem; }
.contact-mini i { color: var(--gold); margin-top: .2rem; }

/* ── دکمه‌های شناور ──────────────────── */
.float-actions {
  position: fixed; bottom: 22px; left: 22px; z-index: 1000;
  display: flex; flex-direction: column; gap: .6rem;
}
.float-actions a {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center; font-size: 1.35rem; color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); transition: transform .25s;
}
.float-actions a:hover { transform: scale(1.08); color: #fff; }
.fa-call { background: linear-gradient(135deg, var(--green), #1f6b42); }
.fa-wa { background: linear-gradient(135deg, #25d366, #128c7e); }
.fa-top { background: var(--night-2); font-size: 1.1rem; display: none; }
.fa-top.show { display: grid; }

/* ── هدر صفحات داخلی ─────────────────── */
.page-hero {
  padding: 9.5rem 0 3.5rem;
  background: linear-gradient(135deg, var(--night), var(--night-2));
  color: #fff; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 10%, rgba(217,164,65,.22), transparent 45%);
}
.page-hero h1 { font-weight: 900; position: relative; z-index: 2; }
.page-hero .breadcrumb { position: relative; z-index: 2; --bs-breadcrumb-divider-color: rgba(255,255,255,.5); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.75); }
.page-hero .breadcrumb-item.active { color: var(--gold); }

/* ── فیلتر و نوار ابزار ──────────────── */
.filter-bar {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1rem 1.2rem; display: flex; gap: .6rem; flex-wrap: wrap; align-items: center;
}
.chip {
  padding: .45rem 1.1rem; border-radius: 999px; background: var(--sand-100);
  font-weight: 600; font-size: .88rem; border: 1.5px solid transparent; cursor: pointer;
}
.chip.active { background: var(--clay); color: #fff; }
.chip:hover { border-color: var(--clay); }

/* ── فرم‌ها ──────────────────────────── */
.form-control, .form-select {
  font-family: var(--font); border-radius: 12px; border: 1.5px solid #e5dcc9;
  padding: .65rem 1rem; font-size: .95rem;
}
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,164,65,.15); }
.form-label { font-weight: 700; font-size: .9rem; }
.auth-card {
  max-width: 440px; margin: 3rem auto; background: #fff;
  border-radius: 24px; box-shadow: var(--shadow-lg); padding: 2.4rem;
}

/* ── تقویم شمسی رزرو ─────────────────── */
.avail-cal { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.avail-cal .cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.avail-cal .cal-nav button {
  background: var(--sand-100); border: none; width: 38px; height: 38px;
  border-radius: 12px; font-size: 1.1rem; color: var(--clay);
}
.avail-cal .cal-nav .cal-title { font-weight: 800; font-size: 1.05rem; }
.cal-month { margin-bottom: 1.4rem; }
.cal-month h6 { text-align: center; font-weight: 800; color: var(--clay); margin-bottom: .6rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid .dow { text-align: center; font-size: .74rem; font-weight: 700; color: var(--ink-soft); padding: .3rem 0; }
.cal-day {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  font-size: .85rem; font-weight: 700; cursor: pointer; position: relative;
  background: var(--sand-100); transition: all .2s; border: 2px solid transparent;
}
.cal-day:hover:not(:disabled) { border-color: var(--gold); }
.cal-day.full { background: #f6d5d0; color: #b03a2e; cursor: not-allowed; text-decoration: line-through; }
.cal-day.closed { background: #eee; color: #aaa; cursor: not-allowed; }
.cal-day.weekend:not(.full):not(.closed) { background: var(--sand-200); }
.cal-day.in-range { background: var(--sand-300); }
.cal-day.selected { background: var(--clay); color: #fff; }
.cal-day .p-tag {
  position: absolute; bottom: 2px; font-size: .55rem; color: inherit; opacity: .8;
}
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .78rem; color: var(--ink-soft); margin-top: .5rem; }
.cal-legend span::before {
  content: ""; display: inline-block; width: 12px; height: 12px;
  border-radius: 4px; margin-left: .35rem; vertical-align: -1px; background: var(--sand-100);
}
.cal-legend .l-full::before { background: #f6d5d0; }
.cal-legend .l-closed::before { background: #eee; }
.cal-legend .l-weekend::before { background: var(--sand-200); }

/* ── ویزارد رزرو ─────────────────────── */
.booking-widget {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.4rem; position: sticky; top: 90px;
}
.booking-widget .price-line { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .93rem; }
.booking-widget .price-line.total { border-top: 2px dashed var(--sand-300); margin-top: .5rem; padding-top: .8rem; font-weight: 900; font-size: 1.05rem; }
.seg-control { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; background: var(--sand-100); padding: .3rem; border-radius: 12px; }
.seg-control button { border: none; background: transparent; padding: .55rem; border-radius: 9px; font-weight: 700; font-family: var(--font); font-size: .9rem; color: var(--ink-soft); }
.seg-control button.active { background: #fff; color: var(--clay); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.guest-row { display: flex; gap: .5rem; margin-bottom: .5rem; }
.guest-row .form-control { font-size: .88rem; }

/* ── کارت‌های ابزار ──────────────────── */
.tool-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .8rem;
  background: #fff; border-radius: var(--radius); padding: 2rem 1.4rem;
  box-shadow: var(--shadow); height: 100%; transition: transform .3s;
}
.tool-card:hover { transform: translateY(-6px); }
.tool-card .icon {
  width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center;
  font-size: 1.9rem; color: #fff;
  background: linear-gradient(135deg, var(--gold), var(--clay));
}
.tool-card h5 { font-weight: 800; margin: 0; }
.tool-card p { color: var(--ink-soft); font-size: .88rem; margin: 0; }

/* ── مراحل ویزارد (صفحه رزرو) ────────── */
.wiz-steps { display: flex; gap: .5rem; margin-bottom: 1.6rem; }
.wiz-steps .step {
  flex: 1; text-align: center; padding: .7rem .4rem; border-radius: 12px;
  background: var(--sand-100); font-size: .82rem; font-weight: 700; color: var(--ink-soft);
  position: relative;
}
.wiz-steps .step.active { background: var(--clay); color: #fff; }
.wiz-steps .step.done { background: var(--green); color: #fff; }
.wiz-pane { display: none; }
.wiz-pane.active { display: block; animation: fadeIn .35s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── آپلود و فرم‌های عمومی ───────────── */
.upload-box {
  border: 2px dashed var(--sand-300); border-radius: var(--radius);
  padding: 2.4rem; text-align: center; color: var(--ink-soft); cursor: pointer;
  transition: all .25s; background: var(--sand-50);
}
.upload-box:hover { border-color: var(--gold); background: var(--sand-100); }
.upload-box i { font-size: 2.2rem; color: var(--gold); }

/* ── جدول‌ها و وضعیت ─────────────────── */
.badge-soft {
  padding: .35rem .8rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
}
.badge-soft.success { background: #d9f2e5; color: #1f6b42; }
.badge-soft.warning { background: #fdf0d5; color: #a3690a; }
.badge-soft.danger { background: #f6d5d0; color: #b03a2e; }
.badge-soft.info { background: #d8e6f9; color: #22598c; }
.badge-soft.muted { background: #eee6d8; color: #6b5d4f; }

/* ── انیمیشن ظاهرشدن ────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ── ریسپانسیو ───────────────────────── */
@media (max-width: 991.98px) {
  .main-nav { display: none; }
  .mobile-toggle { display: block; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-strip { margin-top: -30px; }
  .section { padding: 3rem 0; }
}
@media (max-width: 575.98px) {
  .hero-content h1 { font-size: 1.7rem; }
  .hero-swiper { height: 64svh; min-height: 400px; }
  .cta-banner { padding: 2rem 1.4rem; }
  .booking-widget { position: static; }
  .gallery-grid { gap: 8px; }
}
