/* ==========================================================================
   SAFARJA — طراحی مدرن (نسخهٔ ۲)
   این فایل بعد از luxe.css لود می‌شود و ظاهر کل سایت را بازطراحی می‌کند.
   برای برگرداندن ظاهر قبلی کافی است لینک این فایل از صفحه برداشته شود.
   ========================================================================== */

:root {
  --bg:            #f4f6f3;
  --bg-card:       #ffffff;
  --text:          #0f1a14;
  --text-muted:    #5d6b63;
  --accent:        #1f7a52;
  --accent-light:  #34b27b;
  --accent-warm:   #e0913a;
  --border:        rgba(15,26,20,.08);

  --m-ink:         #0b1510;
  --m-mint:        #34d399;
  --m-sun:         #fbbf24;
  --m-grad:        linear-gradient(120deg, #0f5c3c 0%, #1f9d68 45%, #34d399 100%);
  --m-grad-warm:   linear-gradient(120deg, #f59e0b 0%, #f97316 100%);
  --m-grad-text:   linear-gradient(100deg, #ffffff 10%, #a7f3d0 55%, #fde68a 100%);
  --m-glow:        0 14px 34px -10px rgba(31,157,104,.55);
  --m-shadow:      0 1px 2px rgba(11,21,16,.05), 0 18px 40px -18px rgba(11,21,16,.25);
  --m-shadow-up:   0 30px 60px -22px rgba(11,21,16,.38);
  --m-r:           26px;
  --m-ease:        cubic-bezier(.2,.8,.2,1);
}
[data-theme="dark"] {
  --bg:            #080d0b;
  --bg-card:       #111a16;
  --text:          #eef5f0;
  --text-muted:    #93a69b;
  --accent:        #34d399;
  --accent-light:  #6ee7b7;
  --border:        rgba(255,255,255,.07);
  --m-shadow:      0 1px 2px rgba(0,0,0,.4), 0 18px 40px -18px rgba(0,0,0,.8);
  --m-shadow-up:   0 30px 60px -22px rgba(0,0,0,.9);
}

/* ---------- پایه ---------- */
html body {
  font-family: 'Vazirmatn', sans-serif;
  background:
    radial-gradient(900px 520px at 105% -5%, rgba(52,211,153,.16), transparent 60%),
    radial-gradient(700px 480px at -10% 35%, rgba(251,191,36,.10), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(31,122,82,.12), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
html { scroll-behavior: smooth; }
::selection { background: rgba(52,211,153,.35); }
* { scrollbar-width: thin; scrollbar-color: rgba(31,122,82,.35) transparent; }

/* ---------- نوار بالا: کپسول شیشه‌ای شناور ---------- */
html body .topbar {
  margin: 10px 12px 0;
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 10px 30px -14px rgba(11,21,16,.35);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
}
[data-theme="dark"] body .topbar {
  background: rgba(17,26,22,.6);
  border-color: rgba(255,255,255,.08);
}
html body .topbar__logo { font-weight: 900; letter-spacing: -.3px; }
html body .topnav-link { font-weight: 700; border-radius: 12px; transition: background .2s, color .2s; }
html body .topnav-link:hover { background: rgba(31,122,82,.1); color: var(--accent); }
html body .icon-btn {
  border-radius: 14px;
  background: rgba(31,122,82,.08);
  transition: transform .2s var(--m-ease), background .2s;
}
html body .icon-btn:hover { transform: translateY(-2px) rotate(-6deg); background: rgba(31,122,82,.16); }

/* ---------- هیرو: بزرگ، سینمایی، گوشه‌های گرد ---------- */
html body .hero-section {
  margin: 12px 12px 0;
  border-radius: 34px;
  min-height: 440px;
  padding: 70px 22px 34px;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 40px 80px -40px rgba(11,21,16,.6);
  isolation: isolate;
}
html body .hero-video-overlay {
  background:
    radial-gradient(120% 80% at 50% 0%, transparent 30%, rgba(5,12,9,.55) 100%),
    linear-gradient(180deg, rgba(5,12,9,.15) 0%, rgba(8,40,26,.45) 55%, rgba(5,12,9,.85) 100%);
}
html body .hero-greeting { text-align: center; }
html body .hero-sub {
  display: inline-block;
  font-size: .8rem; font-weight: 700;
  color: #ecfdf5;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  margin-bottom: 14px;
}
html body .hero-title {
  font-size: clamp(2rem, 6.5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  background: var(--m-grad-text);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: 26px;
  text-shadow: none;
}
html body .hero-title::after,
html body .hero-sub::after { display: none; }

/* کادر جستجو: کپسول شیشه‌ای */
html body .search-card {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  border-radius: 999px;
  padding: 8px 8px 8px 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
[data-theme="dark"] body .search-card { background: rgba(17,26,22,.88); border-color: rgba(255,255,255,.1); }
html body .search-card:focus-within { box-shadow: 0 24px 60px -20px rgba(0,0,0,.55), 0 0 0 4px rgba(52,211,153,.35); }
html body .search-input { font-weight: 600; }
html body .search-btn {
  border-radius: 999px;
  background: var(--m-grad);
  background-size: 180% 100%;
  box-shadow: var(--m-glow);
  font-weight: 800;
  padding-inline: 22px;
  transition: background-position .5s var(--m-ease), transform .2s var(--m-ease);
}
html body .search-btn:hover { background-position: 100% 0; transform: translateY(-2px); }
html body .search-btn--map {
  background: var(--m-ink); box-shadow: none; color: #fff;
}
@media (max-width: 600px) {
  html body .search-card { border-radius: 24px; }
  html body .search-btn { border-radius: 16px; }
  html body .hero-section { min-height: 380px; border-radius: 28px; padding-top: 60px; }
}

/* ---------- بخش‌ها و عنوان‌ها ---------- */
html body .section-wrap { padding-top: 34px; }
html body .section-header { align-items: flex-end; margin-bottom: 16px; }
html body .section-title {
  position: relative;
  font-size: clamp(1.2rem, 3.2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -.5px;
  padding: 0;
}
html body .section-title::before { display: none; }
html body .section-title::after {
  content: "";
  display: block;
  width: 44px; height: 5px;
  margin-top: 8px;
  border-radius: 99px;
  background: var(--m-grad);
}
html body .see-all {
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--m-ink);
  color: #fff;
  font-weight: 800;
  font-size: .76rem;
  transition: transform .25s var(--m-ease), box-shadow .25s;
}
[data-theme="dark"] body .see-all { background: #fff; color: var(--m-ink); }
html body .see-all:hover { opacity: 1; transform: translateX(-4px); box-shadow: var(--m-shadow); }

/* ---------- تگ‌ها ---------- */
html body .tag-strip { gap: 12px; padding: 6px 4px 14px; }
html body .filter-chip.tag-chip {
  min-width: 88px;
  padding: 14px 10px 12px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--m-shadow);
  color: var(--text);
  transition: transform .3s var(--m-ease), box-shadow .3s, background .3s;
}
html body .tag-chip .tag-emoji {
  width: 54px; height: 54px; font-size: 1.75rem;
  background: linear-gradient(145deg, rgba(52,211,153,.14), rgba(251,191,36,.12));
  box-shadow: none;
}
html body .filter-chip.tag-chip:hover { transform: translateY(-5px); box-shadow: var(--m-shadow-up); background: var(--bg-card); color: var(--text); }
html body .filter-chip.tag-chip.active {
  background: var(--m-ink); color: #fff; border-color: transparent;
  box-shadow: 0 18px 36px -14px rgba(11,21,16,.6);
}
[data-theme="dark"] body .filter-chip.tag-chip.active { background: var(--m-grad); }
html body .tag-chip.active .tag-emoji { background: rgba(255,255,255,.12); }

/* چیپ‌های جستجوی پرطرفدار */
html body a.filter-chip {
  border-radius: 99px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 6px 16px -10px rgba(11,21,16,.3);
}
html body a.filter-chip::before { content: "↗ "; color: var(--accent); font-weight: 900; }
html body a.filter-chip:hover { background: var(--m-ink); color: #fff; border-color: transparent; transform: translateY(-2px); }

/* ---------- کارت ویلا: عکس‌محور ---------- */
html body .villa-scroll { gap: 18px; padding: 6px 4px 22px; }
html body .villa-card {
  border-radius: var(--m-r);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--m-shadow);
  overflow: hidden;
  transition: transform .45s var(--m-ease), box-shadow .45s var(--m-ease);
}
html body .villa-card:hover { transform: translateY(-8px); box-shadow: var(--m-shadow-up); }
html body .villa-img {
  margin: 8px 8px 0;
  border-radius: 20px;
  aspect-ratio: 4 / 3.2;
  height: auto;
}
html body .villa-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 30%, transparent 60%, rgba(0,0,0,.35) 100%);
  pointer-events: none; z-index: 1;
}
html body .villa-card:hover .villa-img img { transform: scale(1.08); }
html body .villa-badge,
html body .villa-badge-discount {
  z-index: 2;
  border-radius: 99px;
  font-weight: 800;
  padding: 5px 11px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html body .villa-badge { background: rgba(255,255,255,.85); color: var(--m-ink); }
html body .villa-badge-discount { background: var(--m-grad-warm); color: #fff; box-shadow: 0 8px 18px -8px rgba(249,115,22,.8); }
html body .villa-fav {
  z-index: 3;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .25s var(--m-ease);
}
html body .villa-fav:hover { transform: scale(1.15); }
html body .villa-body { padding: 14px 16px 16px; }
html body .villa-title { font-size: 1rem; font-weight: 900; letter-spacing: -.2px; }
html body .villa-loc { font-weight: 600; }
html body .villa-footer { margin-top: 10px; align-items: center; }
html body .villa-price {
  font-weight: 900;
  font-size: 1rem;
  color: var(--text);
}
html body .villa-price span { color: var(--text-muted); font-weight: 600; }
html body .villa-rating {
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(251,191,36,.16);
  color: #92400e;
  font-weight: 800;
}
[data-theme="dark"] body .villa-rating { color: #fde68a; }
html body .villa-like-row { border-top: 1px dashed var(--border); margin-top: 12px; padding-top: 10px; }
html body .villa-like-btn { border-radius: 99px; }
html body .villa-social-proof { border-radius: 99px; }

/* ---------- نوارهای تخفیف لحظه آخری و رزرو فوری ---------- */
html body .deal-band {
  position: relative;
  border-radius: 32px;
  padding: 22px 18px 22px !important;
  overflow: hidden;
  border: none;
}
html body .deal-band--red {
  background:
    radial-gradient(600px 220px at 100% 0%, rgba(255,255,255,.18), transparent 60%),
    linear-gradient(130deg, #7f1d1d 0%, #dc2626 55%, #f97316 120%);
  box-shadow: 0 30px 60px -28px rgba(220,38,38,.8);
}
html body .deal-band--yellow {
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(255,255,255,.45), transparent 60%),
    linear-gradient(130deg, #fde047 0%, #facc15 50%, #f59e0b 120%);
  box-shadow: 0 30px 60px -28px rgba(234,179,8,.8);
}
html body .deal-band--red .section-title,
html body .deal-band--red .see-all { color: #fff; }
html body .deal-band--red .section-title::after { background: #fff; }
html body .deal-band--red .see-all { background: rgba(255,255,255,.18); }
html body .deal-band--yellow .section-title { color: #3b2603; }
html body .deal-band--yellow .section-title::after { background: #3b2603; }
html body .deal-band--yellow .see-all { background: #3b2603; color: #fde047; }
html body .deal-band .last-minute-hint,
html body .deal-band .instant-book-hint {
  border-radius: 99px;
  display: inline-block;
  padding: 7px 14px;
  font-weight: 800;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html body .deal-band--red .last-minute-hint { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
html body .deal-band--yellow .instant-book-hint { background: rgba(255,255,255,.45); color: #3b2603; border: 1px solid rgba(255,255,255,.6); }
html body .deal-band .villa-card { border: none; }
html body .deal-band--red .villa-card { box-shadow: 0 20px 40px -20px rgba(60,0,0,.8); }
html body .deal-band--yellow .villa-card { box-shadow: 0 20px 40px -20px rgba(90,60,0,.6); }
html body .deal-band--red .villa-countdown {
  background: linear-gradient(90deg, #b91c1c, #ef4444);
  animation: m-pulse 1.6s ease-in-out infinite;
}
@keyframes m-pulse { 50% { filter: brightness(1.25); } }
html body .deal-empty { border-radius: 24px; padding: 34px 18px; }
html body .deal-empty--red { background: rgba(255,255,255,.12); border: 2px dashed rgba(255,255,255,.55); color: #fff; }
html body .deal-empty--yellow { background: rgba(255,255,255,.4); border: 2px dashed rgba(59,38,3,.4); color: #3b2603; }
html body .deal-empty__ico { font-size: 2.4rem; }
html body .deal-empty__title { font-size: 1.05rem; }

/* سایر hintها */
html body .luxury-hint,
html body .premium-hint {
  border-radius: 99px; display: inline-block; padding: 7px 14px; font-weight: 800;
}

/* ---------- کارت مقصد ---------- */
html body .dest-card {
  border-radius: var(--m-r);
  box-shadow: var(--m-shadow);
  transition: transform .45s var(--m-ease), box-shadow .45s;
}
html body .dest-card:hover { transform: translateY(-8px); box-shadow: var(--m-shadow-up); }
html body .dest-name { font-weight: 900; letter-spacing: -.3px; }

/* ---------- مجله، نظرات ---------- */
html body .mag-home-card,
html body .testi-card {
  border-radius: var(--m-r);
  border: 1px solid var(--border);
  box-shadow: var(--m-shadow);
  transition: transform .4s var(--m-ease), box-shadow .4s;
}
html body .mag-home-card:hover,
html body .testi-card:hover { transform: translateY(-6px); box-shadow: var(--m-shadow-up); }

/* ---------- بنر میزبان شو ---------- */
html body .host-cta-card {
  border-radius: 34px;
  background:
    radial-gradient(500px 260px at 0% 0%, rgba(52,211,153,.35), transparent 60%),
    radial-gradient(400px 240px at 100% 100%, rgba(251,191,36,.28), transparent 60%),
    var(--m-ink);
  box-shadow: 0 40px 80px -36px rgba(11,21,16,.8);
  border: 1px solid rgba(255,255,255,.06);
}

/* ---------- دکمه‌ها ---------- */
html body .btn-primary,
html body .reserve-btn-main {
  background: var(--m-grad);
  background-size: 180% 100%;
  border: none;
  border-radius: 16px;
  box-shadow: var(--m-glow);
  font-weight: 800;
  transition: background-position .5s var(--m-ease), transform .2s var(--m-ease);
}
html body .btn-primary:hover,
html body .reserve-btn-main:not(:disabled):hover { background-position: 100% 0; transform: translateY(-2px); }
html body .btn-outline { border-radius: 16px; font-weight: 800; }

/* ---------- نوار پایین موبایل: کپسول شناور ---------- */
html body .bottom-nav {
  margin: 0 12px 12px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(255,255,255,.72);
  box-shadow: 0 20px 40px -16px rgba(11,21,16,.45);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
[data-theme="dark"] body .bottom-nav { background: rgba(17,26,22,.75); border-color: rgba(255,255,255,.08); }
html body .nav-item.active { color: var(--accent); }
html body .nav-item.active::before {
  top: 6px; width: 46px; height: 46px; border-radius: 16px;
  background: rgba(52,211,153,.16);
  z-index: -1;
}
html body .nav-item { z-index: 0; }
html body .nav-label { font-weight: 700; }

/* ---------- فوتر ---------- */
html body .site-footer {
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(52,211,153,.15), transparent 60%),
    var(--m-ink);
  color: #cfe3d8;
  border-radius: 34px 34px 0 0;
}
html body .site-footer a { color: #ecfdf5; }
html body .site-footer a:hover { color: var(--m-mint); }

/* ---------- صفحهٔ جزئیات ---------- */
html body .meta-chip {
  border-radius: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: 0 6px 16px -10px rgba(11,21,16,.3);
  font-weight: 700;
}
html body .gw-btn { border-radius: 16px; transition: transform .2s var(--m-ease); }
html body .gw-btn:hover { transform: translateY(-2px); }
html body .gw-btn.selected { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(52,211,153,.25); }

/* ---------- فرم‌ها ---------- */
html body input.form-input,
html body select.form-input,
html body textarea.form-input {
  border-radius: 14px;
  transition: box-shadow .2s, border-color .2s;
}
html body .form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(52,211,153,.2); outline: none; }

/* ---------- انیمیشن ورود ---------- */
@media (prefers-reduced-motion: no-preference) {
  html body .fade-up { animation-duration: .8s; animation-timing-function: var(--m-ease); }
}
@media (prefers-reduced-motion: reduce) {
  html body .deal-band--red .villa-countdown { animation: none; }
}
html body .villa-scroll > .deal-empty { flex: 1 0 100%; min-width: 100%; }
html body .villa-card .villa-img { border-radius: 20px !important; width: auto; }
html body .villa-scroll > .deal-empty { grid-column: 1 / -1; }
