:root{
  --yellow: #ffb800;
  --yellow-dark: #f5a500;
  --gray-900: #222;
  --gray-700: #4a4a4a;
  --gray-500: #8a8a8a;
  --gray-300: #d9d9d9;
  --gray-100: #f2f2f2;
  --white: #ffffff;
  --nav-text: #4b5259;
  --nav-text-hover: #ff8a00;
  --shadow: 0 10px 30px rgba(0,0,0,.08);
  /* عرض محتوای پنل رزرو / هتل‌های ویژه / متن پایانی — طبق اندازه‌گیری
     مستقیم از اسکرین‌شات alibaba.ir در عرض صفحه‌ی 1536px: باکس رزرو
     دقیقاً 1200px عرض دارد و با margin:auto وسط‌چین شده است. */
  --site-max: 1200px;
  --site-pad: 24px;
  /* نوار بالا (topbar) در alibaba.ir عریض‌تر از پنل رزرو است و max-width
     جدای خودش را دارد؛ طبق همان اندازه‌گیری، padding افقی حدود 80px است. */
  --topbar-pad: 80px;
}

*{ box-sizing: border-box; }

body{
  margin:0;
  font-family: 'Vazirmatn', Tahoma, Arial, sans-serif;
  background: var(--white);
  color: var(--gray-900);
  direction: rtl;
  /* چون نوار بالا (topbar) به position:fixed تغییر کرده و از جریان
     عادی صفحه خارج شده، این padding همان فضای آن را نگه می‌دارد تا
     محتوای زیرش (هدر/عکس) زیر نوار قایم نشود. مقدار باید با ارتفاع
     واقعی topbar در هر breakpoint هماهنگ بماند (پایین‌تر در 600px). */
  padding-top:64px;
}

a{ text-decoration:none; color:inherit; }
button{ font-family:inherit; cursor:pointer; }

/* ===== نوار بالا ===== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  height:64px;
  /* پس‌زمینه سفید تمام‌عرض است؛ محتوای داخلش عریض‌تر از پنل رزروِ
     پایین‌تر است (طبق اندازه‌گیری از اسکرین‌شات) و padding ثابت
     var(--topbar-pad) دارد، نه هم‌عرض با var(--site-max). */
  padding:0 var(--topbar-pad);
  background:var(--white);
  border-bottom:1px solid #e5e6e8;
  /* ثابت در بالای صفحه (مثل alibaba.ir): با اسکرول به پایین با
     transform به بالا می‌رود و مخفی می‌شود؛ با اسکرول به بالا دوباره
     ظاهر می‌شود. منطق نمایش/مخفی‌شدن در nav-scroll.js است. */
  position:fixed;
  top:0;
  right:0;
  left:0;
  width:100%;
  z-index:50;
  transition:transform .28s ease;
  flex-wrap:nowrap;
}
.topbar.is-hidden{
  transform:translateY(-100%);
}
.topbar .logo{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}
.topbar .logo-mark{
  width:30px;height:30px;
  border-radius:7px;
  background: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  display:block;
  flex:0 0 auto;
}
/* لوگوی تصویریِ آساره تراولز (/images/asareh-logo.png) */
.topbar .logo-img{ display:block; height:40px; width:auto; max-width:none; }
.topbar .logo-text{
  font-size:21px;
  font-weight:700;
  color:var(--gray-900);
  white-space:nowrap;
}

.nav-right{
  display:flex;
  align-items:center;
  gap:28px;
}
.nav-right .item{
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  color: var(--nav-text);
  font-size:16px;
  line-height:1;
  transition: color .15s ease;
}
.nav-right .item:hover{ color: var(--nav-text-hover); }
.nav-right .ico{
  width:19px;height:19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit;
  flex:0 0 auto;
}
.nav-right .ico svg{ width:100%; height:100%; }

/* بجِ عددیِ «سفرهای من» (سبز/قرمز) — رنگ‌ها هم‌رنگِ همان قرمز/سبزِ
   استانداردِ سایت‌اند (همان #dd4b53 در auth-error/ud-item-logout و
   همان #e7f7ee/#1c9a56 در hsr-badge-ok). */
.nav-right .item .ico{ position:relative; }
.item-badge{
  position:absolute;
  top:-6px;
  left:-8px;
  min-width:15px;
  height:15px;
  padding:0 3px;
  border-radius:999px;
  color:var(--white);
  font-size:10px;
  line-height:15px;
  text-align:center;
}
.item-badge-green{ background:#1c9a56; }
.item-badge-red{ background:#dd4b53; }

.nav-left{
  display:flex;
  align-items:center;
  gap:26px;
  flex:1 1 auto;
  justify-content:flex-start;
  overflow:hidden;
}
.nav-left .nav-link{
  display:flex;
  align-items:center;
  gap:6px;
  white-space:nowrap;
  color: var(--nav-text);
  font-size:16px;
  line-height:1;
  transition: color .15s ease;
}
.nav-left .nav-link:hover{ color: var(--nav-text-hover); }
.nav-left .ico-sm{
  width:17px;height:17px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit;
  flex:0 0 auto;
}
.nav-left .ico-sm svg{ width:100%; height:100%; }
.nav-left .caret{
  font-size:11px;
  color: var(--gray-500);
  margin-right:1px;
}

@media (max-width:1150px){
  .nav-left{ gap:18px; }
  .nav-right{ gap:20px; }
}
@media (max-width:1000px){
  .nav-right .item, .nav-left .nav-link{ font-size:15px; }
}
@media (max-width:820px){
  .nav-left .nav-link:not(.more){ display:none; }
  .nav-left{ gap:14px; }
  .topbar{ padding:0 16px; }
}
@media (max-width:600px){
  .nav-right .item-text{ display:none; }
  .nav-right{ gap:14px; }
  .nav-left .more:not(:first-child){ display:none; }
  .topbar{ padding:0 14px; height:56px; }
  .topbar .logo{ width:auto; height:auto; }
  .topbar .logo-img{ height:32px; }
  body{ padding-top:56px; }
}

/* =========================================================================
   باکس تاریخ/مسافران داخل منوی بالا (topbar) — فقط وقتی header.php از
   صفحه‌ی هتل include می‌شود رندر می‌شود (نگاه کنید: hotel.php، header.php).
   چون .topbar پایه‌اش display:flex + justify-content:space-between بین
   .logo و .nav-right است، این عنصر به‌عنوان فرزند سوم همان‌جا وسط می‌نشیند؛
   چیزی به چیدمان topbar اضافه نشده.
   ========================================================================= */
.topbar-dates{
  display:flex;
  align-items:center;
  flex:1 1 auto;
  justify-content:center;
  min-width:0;
}

/* --- دکمه‌ی جمع‌وجور: پیش‌فرض (دسکتاپ) مخفی، فقط زیر ۷۰۰px نمایش داده می‌شود.
   به‌جای بازه‌ی تاریخ، فقط آیکون تقویم + آیکون مسافران + متن ثابت «تاریخ سفر»
   نشان داده می‌شود؛ بازه‌ی واقعی تاریخ به‌عنوان aria-label روی خودِ دکمه هست
   (برای screen reader ها)، نه به‌صورت متن قابل‌مشاهده. --- */
.topbar-dates-trigger{
  display:none;
  align-items:center;
  gap:6px;
  border:1.5px solid var(--gray-300);
  border-radius:10px;
  padding:0 14px;
  height:38px;
  background:var(--white);
  color:var(--gray-900);
  font-family:inherit;
  font-size:14.5px;
  font-weight:600;
  white-space:nowrap;
  max-width:100%;
  overflow:hidden;
}
.topbar-dates-trigger:hover{ border-color:var(--gray-700); }
.topbar-dates-trigger .ico{ width:16px; height:16px; flex:0 0 auto; color:var(--gray-500); }
.topbar-dates-trigger .ico svg{ width:100%; height:100%; }
.topbar-dates-trigger .ico + .ico{ margin-right:2px; }
.topbar-dates-trigger-text{ overflow:hidden; text-overflow:ellipsis; }

/* --- دسکتاپ: wrap/backdrop/دکمه‌ی بستن بی‌اثرند؛ خودِ sheet همان ردیف افقیِ وسط منو است --- */
.topbar-dates-sheet-wrap{ display:contents; }
.topbar-dates-backdrop{ display:none; }
.topbar-dates-sheet-close{ display:none; }

.topbar-dates-sheet{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--gray-100);
  border-radius:10px;
  padding:6px 8px;
}

/* اندازه‌ی جمع‌وجورِ فیلدها فقط داخل منو — به .picker-root/.pax-field
   اصلی (که هنوز جای دیگری هم استفاده می‌شوند) دست نمی‌زنیم. */
.topbar-dates-sheet .picker-root{ flex:0 1 300px; min-width:220px; }
.topbar-dates-sheet .pax-field{ flex:0 0 170px; min-width:150px; }
.topbar-dates-sheet .picker-root .mui-field .input-shell,
.topbar-dates-sheet .pax-field .input-shell{ height:38px; }
.topbar-dates-sheet .picker-root .mui-field fieldset,
.topbar-dates-sheet .pax-field fieldset{ top:-2px; }
.topbar-dates-sheet .picker-root .mui-field .field-label,
.topbar-dates-sheet .pax-field .field-label{ font-size:13.5px; right:12px; }
.topbar-dates-sheet .picker-root .mui-field.has-value .field-label,
.topbar-dates-sheet .picker-root .mui-field.is-active .field-label,
.topbar-dates-sheet .pax-field.has-value .field-label,
.topbar-dates-sheet .pax-field.is-active .field-label{ right:4px; }
.topbar-dates-sheet .picker-root .mui-field input,
.topbar-dates-sheet .pax-field input{ font-size:14px; padding:1px 32px 0 10px; }
.topbar-dates-sheet .picker-root .mui-field .cal-icon,
.topbar-dates-sheet .pax-field .cal-icon{ width:15px; height:15px; left:8px; }
.topbar-dates-sheet .htl-dates-update-btn{ height:38px; padding:0 18px; font-size:15px; }

@media (max-width:1150px){
  .topbar-dates-sheet .picker-root{ flex-basis:250px; min-width:190px; }
  .topbar-dates-sheet .pax-field{ flex-basis:140px; min-width:120px; }
}

/* --- زیر ۷۰۰px (دقیقاً همان مرز پاپ‌آور تقویم/مسافران در بقیه‌ی سایت):
   به‌جای ردیف افقی، فقط یک دکمه‌ی جمع‌وجور در منو دیده می‌شود؛ با کلیک،
   همان محتوا (تاریخ‌ها + مسافران + دکمه‌ی بروزرسانی) به‌صورت یک شیت
   تقریباً تمام‌صفحه از پایین باز می‌شود. چون breakpoint این شیت با
   breakpoint خودِ پاپ‌آور تقویم (که در همین فایل، .picker-root .popover
   زیر ۷۰۰px تمام‌صفحه می‌شود) یکی است، با کلیک روی فیلد تاریخ داخل این
   شیت، تقویم دقیقاً مثل فرم اصلی صفحه تمام‌صفحه باز می‌شود. --- */
@media (max-width:700px){
  .topbar-dates{ flex:0 1 auto; justify-content:flex-start; min-width:0; margin-right:auto; margin-left:0; }
  .topbar-dates-trigger{ display:flex; }

  /* از همین breakpoint (نه فقط زیر 600px مثل بقیه‌ی سایت) نوار سمت چپ
     منو باید فقط آیکون باشد؛ وگرنه بین 601 تا 700px هم دکمه‌ی جمع‌وجورِ
     «تاریخ سفر» نمایان می‌شود و هم برچسب‌های متنی نوار کاربری («سفرهای
     من»، «مرکز پشتیبانی آنلاین»، نام/موبایل کاربر) — که مجموعشان از
     عرض topbar بیشتر می‌شود و باعث می‌شد دکمه‌ی تاریخ روی نوشته‌ی
     «آساره تراولز» بیفتد. با ~ فقط وقتی .topbar-dates وجود دارد (یعنی
     همین صفحه‌ی هتل) اعمال می‌شود، نه کل سایت. */
  .topbar-dates ~ .nav-right .item-text{ display:none; }
  .topbar-dates ~ .nav-right{ gap:14px; }

  .topbar-dates-sheet-wrap{
    display:block;
    position:fixed;
    inset:0;
    z-index:90;
    opacity:0;
    visibility:hidden;
  }
  .topbar-dates-sheet-wrap.open{ opacity:1; visibility:visible; }
  .topbar-dates-backdrop{
    display:block;
    position:absolute;
    inset:0;
    background:rgba(15,15,15,.55);
  }
  .topbar-dates-sheet-close{
    display:block;
    position:absolute;
    top:12px; left:12px;
    width:30px; height:30px;
    border:none;
    border-radius:50%;
    background:var(--gray-100);
    color:var(--gray-700);
    font-size:16px;
    line-height:30px;
    cursor:pointer;
    z-index:1;
  }
  /* ارتفاع تقریباً تمام‌صفحه (کمی بیشتر از قبل) تا محتوا (دو فیلد تاریخ +
     فیلد مسافران + دکمه‌ی بروزرسانی) بدون نیاز به اسکرول داخل شیت جا شود؛
     overflow-y همچنان به‌عنوان محافظ برای صفحه‌های خیلی کوچک نگه داشته شده.
     دیگر هیچ انیمیشن اسلاید/fade ای ندارد — با کلیک روی «تاریخ سفر»
     یکباره در همان پایین ظاهر می‌شود (طبق درخواست). ضمناً چون دیگر از
     transform برای این کار استفاده نمی‌شود، پاپ‌آور تقویم داخلش
     (.picker-root .popover که position:fixed است) هم دقیقاً مثل فرم
     اصلی صفحه تمام‌صفحه باز می‌شود. */
  .topbar-dates-sheet{
    position:absolute;
    left:0;
    right:0;
    bottom:0;
    z-index:1;
    width:100%;
    max-height:calc(100vh - 12px);
    overflow-y:auto;
    background:var(--white);
    border-radius:18px 18px 0 0;
    padding:24px 16px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow:0 20px 60px rgba(0,0,0,.25);
    flex-direction:column;
    align-items:stretch;
    gap:16px;
    justify-content:center;
  }

  /* داخل شیت موبایل دیگر جمع‌وجور نیستیم — همان اندازه‌ی معمولِ فیلدها */
  .topbar-dates-sheet .picker-root,
  .topbar-dates-sheet .pax-field{ flex:1 1 auto; width:100%; min-width:0; }
  .topbar-dates-sheet .picker-root .mui-field .input-shell,
  .topbar-dates-sheet .pax-field .input-shell{ height:56px; }
  .topbar-dates-sheet .picker-root .mui-field fieldset,
  .topbar-dates-sheet .pax-field fieldset{ top:-5px; }
  .topbar-dates-sheet .picker-root .mui-field .field-label,
  .topbar-dates-sheet .pax-field .field-label{ font-size:16px; right:14px; }
  .topbar-dates-sheet .picker-root .mui-field input,
  .topbar-dates-sheet .pax-field input{ font-size:16px; padding:1px 40px 0 14px; }
  .topbar-dates-sheet .picker-root .mui-field .cal-icon,
  .topbar-dates-sheet .pax-field .cal-icon{ width:18px; height:18px; left:10px; }
  .topbar-dates-sheet .htl-dates-update-btn{ height:48px; width:100%; padding:0; font-size:16px; }
}

/* ===== عکس هدر ===== */
/* هر تب (هتل/ویلا/تور) عکس مخصوص به خودش را دارد (hotel.webp,
   stay.webp, tor.webp) که با کلیک روی تب، فقط همان عکس فعال و
   نمایان می‌شود (کلاس active). طبق کد واقعی alibaba.ir: عکس فقط
   height=320 ثابت دارد (کلاس is-responsive) و عرض به‌صورت طبیعی و
   متناسب با ابعاد خود عکس تنظیم و وسط‌چین می‌شود — نه cover با برش.
   پس‌زمینه‌ی اطراف عکس هم سفید است (مثل بکگراند کل سایت). */
.hero{
  position:relative;
  width:100%;
  height:320px;
  overflow:hidden;
  background:var(--white);
}
.hero img{
  position:absolute;
  top:0;
  right:50%;
  transform:translateX(50%);
  height:320px;
  width:auto;
  max-width:none;
  opacity:0;
  display:block;
  transition:opacity .45s ease;
}
.hero img.active{ opacity:1; }

@media (max-width:700px){
  .hero{ height:260px; }
  .hero img{ height:260px; }
}
@media (max-width:700px){
  /* در موبایل نمایش عکس‌های هدر (هتل/ویلا/تور) لازم نیست؛ حذف می‌شود و
     فاصله‌ی منفی پنل رزرو هم به یک فاصله‌ی مثبت معمولی تبدیل می‌شود
     (چون دیگر چیزی برای «همپوشانی روی عکس» وجود ندارد). */
  .hero{ display:none; }
}
/* توجه: از max-width:700px به پایین .hero مخفی است (بالاتر)، پس این
   قانون دیگر اثری ندارد و لازم نبود؛ حذف شد. */

/* ===== باکس رزرو ===== */
.panel-wrap{
  max-width:var(--site-max);
  margin:-95px auto 40px;
  padding:0 var(--site-pad);
  position:relative;
  z-index:10;
}
.panel{
  background:var(--white);
  border-radius:14px;
  box-shadow: var(--shadow);
}

/* تب‌ها */
.tabs{
  display:flex;
  align-items:flex-end;
  justify-content:right;
  gap:5px;
  padding:20px 20px 0;
  flex-wrap:wrap;
  border-bottom:1px solid #ebebeb;
}
.tab{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:144px;
  padding-bottom:14px;
  border-bottom:2px solid transparent;
  margin-bottom:-1px;
  color:var(--gray-500);
  font-size:15px;
  font-family:inherit;
  background:none;
  border-top:none; border-left:none; border-right:none;
  position:relative;
  box-sizing:border-box;
}
.tab .ico{
  width:36px;height:36px;
  display:flex;align-items:center;justify-content:center;
}
.tab .ico svg{ width:100%; height:100%; }
.tab.active{
  color:var(--gray-900);
  font-weight:700;
  border-bottom-color: var(--yellow);
}
.tab .badge{
  position:absolute;
  top:-10px;
  right:-10px;
  background:#1fbf75;
  color:#fff;
  font-size:12px;
  padding:2px 7px;
  border-radius:10px;
}

/* فرم‌ها */
.form-area{
  padding:26px 30px 30px;
}
.booking-form{
  display:none;
  align-items:stretch;
  gap:12px;
  flex-wrap:wrap;
}
.booking-form.active{ display:flex; }

.field{
  flex:1 1 200px;
  border:1px solid var(--gray-300);
  border-radius:10px;
  padding:10px 16px;
  display:flex;
  flex-direction:column;
  gap:4px;
  min-width:170px;
}
.field-wide{ flex:2 1 260px; }

.field label{
  font-size:13px;
  color:var(--gray-500);
}
.field input, .field select{
  border:none;
  outline:none;
  font-family:inherit;
  font-size:16px;
  color:var(--gray-900);
  background:transparent;
  padding:0;
  width:100%;
}
.field input::placeholder{ color:var(--gray-500); }

.search-btn{
  flex:0 0 150px;
  background: var(--yellow);
  color:#3a2a00;
  font-weight:700;
  font-size:17px;
  border:none;
  border-radius:10px;
  padding:0 20px;
  transition: background .2s;
}
.search-btn:hover{ background: var(--yellow-dark); }

@media (max-width:700px){
  .tabs{ gap:36px; }
}
@media (max-width:700px){
  /* چون .hero در این عرض مخفی است، دیگر نیازی به فاصله‌ی منفی
     (هم‌پوشانی روی عکس) نیست؛ یک فاصله‌ی مثبت معمولی از بالای صفحه کافی است. */
  .panel-wrap{ margin-top:16px; padding:0 12px; }
  /* هر سه تب (هتل/تور/ویلا و اقامتگاه) باید همیشه در یک ردیف کنار هم
     دیده شوند، نه اینکه به سطر بعد بروند یا نیاز به اسکرول افقی داشته
     باشند. برای همین عرض ثابت 144px تب حذف شده و هر تب به‌جای آن
     یک‌سوم فضای موجود را می‌گیرد (flex:1)، و flex-wrap روی nowrap
     تنظیم شده تا شکستن خط اتفاق نیفتد. */
  .tabs{
    gap:6px;
    justify-content:space-between;
    flex-wrap:nowrap;
    padding:16px 12px 0;
  }
  .tab{
    width:auto;
    height:auto;
    flex:1 1 0;
    min-width:0;
    padding-bottom:12px;
    font-size:14px;
    line-height:1.3;
  }
  .form-area{ padding:18px 16px 22px; }
  .booking-form{ flex-direction:column; gap:10px; align-items:stretch; }
  .field, .field-wide, .dest-field, .pax-field{ flex:0 1 auto; }
  .search-btn{ flex:0 0 auto; width:100%; height:48px; margin-top:2px; }
}
@media (max-width:420px){
  /* در این عرض هم .hero مخفی است، پس margin-top منفی‌ی قبلی حذف شد.
     در صفحه‌های خیلی کوچک (حدود 320-375px) آیکون و فاصله‌ها بیشتر
     جمع می‌شوند تا هر سه تب بدون فشردگی زیاد در یک ردیف جا شوند. */
  .tabs{ gap:2px; padding:14px 8px 0; }
  .tab{ font-size:13px; gap:4px; padding-bottom:10px; }
  .tab .ico{ width:22px; height:22px; }
}

/* ===== فیلد به سبک متریال (پایه‌ی مشترک بین تاریخ ورود/خروج و فیلد مقصد) ===== */
.mui-field{
  position:relative;
}
.mui-field .input-shell{
  position:relative;
  display:flex;
  align-items:center;
  height:56px;
  border-radius:10px;
  cursor:pointer;
  transition:box-shadow .15s ease;
}
.mui-field fieldset{
  position:absolute;
  inset:0;
  margin:0;
  padding:0 8px;
  border-radius:10px;
  border:1px solid var(--gray-300);
  pointer-events:none;
  transition:border-color .15s ease, border-width .15s ease;
  top:-5px;
}
.mui-field legend{
  font-size:13px;
  padding:0 6px;
  max-width:0.01px;
  white-space:nowrap;
  overflow:hidden;
  transition:max-width .1s ease;
  visibility:hidden;
  color:transparent;
}
.mui-field.has-value legend,
.mui-field.is-active legend{
  max-width:1000px;
  visibility:visible;
}
.mui-field .field-label{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  color:var(--gray-500);
  pointer-events:none;
  background:transparent;
  transition:all .15s cubic-bezier(0,0,0.2,1);
  padding:0 4px;
  font-family:inherit;
}
.mui-field.has-value .field-label,
.mui-field.is-active .field-label{
  top:0;
  transform:translateY(-50%) scale(0.85);
  right:4px;
  padding:0 6px;
}
.mui-field.has-value .field-label,
.mui-field.is-active .field-label{ color:var(--yellow-dark); }
.mui-field.is-active .input-shell fieldset{
  border-color:var(--yellow-dark);
  border-width:2px;
}
.mui-field:not(.is-active) .input-shell:hover fieldset{
  border-color:var(--gray-700);
}
.mui-field input{
  width:100%;
  height:100%;
  border:none;
  background:transparent;
  outline:none;
  font-family:inherit;
  font-size:16px;
  color:var(--gray-900);
  padding:1px 20px 0 14px;
  cursor:pointer;
  direction:rtl;
}
.mui-field .cal-icon{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:var(--gray-500);
  pointer-events:none;
}

/* ===== انتخابگر بازه تاریخ (تب هتل) ===== */
.picker-root{
  --dp-primary: var(--yellow-dark);
  --dp-primary-light: rgba(245,165,0,0.16);
  --dp-primary-hover: rgba(245,165,0,0.06);
  --dp-text-primary: var(--gray-900);
  --dp-text-secondary: var(--gray-500);
  --dp-text-disabled: #c7c7c7;
  --dp-border: var(--gray-300);
  --dp-border-hover: var(--gray-700);
  --dp-divider: #ececec;
  --dp-link: #1a73e8;
  --dp-link-hover: #155bc0;
  position:relative;
  flex:2 1 320px;
  min-width:260px;
}
.picker-root .fields-wrapper{
  display:flex;
  align-items:center;
  gap:10px;
  height:100%;
}
.picker-root .mui-field{
  position:relative;
  flex:1 1 0;
  min-width:0;
}
.picker-root .mui-field .input-shell{
  position:relative;
  display:flex;
  align-items:center;
  height:56px;
  border-radius:10px;
  cursor:pointer;
  transition:box-shadow .15s ease;
}
.picker-root .mui-field fieldset{
  position:absolute;
  inset:0;
  margin:0;
  padding:0 8px;
  border-radius:10px;
  border:1px solid var(--dp-border);
  pointer-events:none;
  transition:border-color .15s ease, border-width .15s ease;
  top:-5px;
}
.picker-root .mui-field legend{
  font-size:13px;
  padding:0 6px;
  max-width:0.01px;
  white-space:nowrap;
  overflow:hidden;
  transition:max-width .1s ease;
  visibility:hidden;
  color:transparent;
}
.picker-root .mui-field.has-value legend,
.picker-root .mui-field.is-active legend{
  max-width:1000px;
  visibility:visible;
}
.picker-root .mui-field .field-label{
  position:absolute;
  right:14px;
  top:50%;
  transform:translateY(-50%);
  font-size:16px;
  color:var(--dp-text-secondary);
  pointer-events:none;
  background:transparent;
  transition:all .15s cubic-bezier(0,0,0.2,1);
  padding:0 4px;
  font-family:inherit;
}
.picker-root .mui-field.has-value .field-label,
.picker-root .mui-field.is-active .field-label{
  top:0;
  transform:translateY(-50%) scale(0.85);
  right:4px;
  padding:0 6px;
}
.picker-root .mui-field.has-value .field-label,
.picker-root .mui-field.is-active .field-label{ color:var(--dp-primary); }
.picker-root .mui-field.is-active .input-shell fieldset{
  border-color:var(--dp-primary);
  border-width:2px;
}
.picker-root .mui-field:not(.is-active) .input-shell:hover fieldset{
  border-color:var(--dp-border-hover);
}
.picker-root .mui-field input{
  width:100%;
  height:100%;
  border:none;
  background:transparent;
  outline:none;
  font-family:inherit;
  font-size:16px;
  color:var(--dp-text-primary);
  padding:1px 40px 0 14px;
  cursor:pointer;
  direction:rtl;
}
.picker-root .mui-field .cal-icon{
  position:absolute;
  left:10px;
  top:50%;
  transform:translateY(-50%);
  width:18px;
  height:18px;
  color:var(--dp-text-secondary);
  pointer-events:none;
}
.picker-root .nights-chip{
  display:none;
  align-items:center;
  flex-shrink:0;
  background:var(--yellow);
  color:#3a2a00;
  font-size:13px;
  font-weight:700;
  padding:5px 12px;
  border-radius:12px;
  white-space:nowrap;
}
.picker-root .nights-chip.show{ display:inline-flex; }

.picker-root .popover{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:30;
  background:var(--white);
  border-radius:12px;
  box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);
  padding:12px;
  opacity:0;
  transform:translateY(-8px) scale(.98);
  pointer-events:none;
  transition:opacity .16s ease, transform .16s ease;
  display:flex;
  flex-direction:column;
}
.picker-root .popover.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.picker-root .calendars-row{ display:flex; gap:4px; }
.picker-root .month-panel{ width:280px; }
.picker-root .mobile-month-block{ margin-bottom:16px; }
.picker-root .mobile-month-block:last-child{ margin-bottom:4px; }
.picker-root .month-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:4px 4px 8px 4px;
}
.picker-root .month-header .label{
  font-size:17px;
  font-weight:600;
  color:var(--dp-text-primary);
}
.picker-root .nav-btn{
  width:30px;height:30px;
  border-radius:50%;
  border:none;
  background:transparent;
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  color:var(--dp-text-secondary);
  transition:background .12s ease;
}
.picker-root .nav-btn:hover{ background:rgba(0,0,0,0.06); }
.picker-root .nav-btn svg{ width:18px;height:18px; }
.picker-root .nav-btn.invisible{ visibility:hidden; pointer-events:none; }

.picker-root .weekdays-row{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  margin-bottom:2px;
}
.picker-root .weekdays-row span{
  text-align:center;
  font-size:15px;
  color:var(--dp-text-secondary);
  font-weight:500;
  height:32px;
  line-height:32px;
}
.picker-root .weekdays-row span.holiday-label{
  color:#e53935;
}
.picker-root .day-btn.holiday:not(.selected){
  color:#e53935;
}
.picker-root .day-btn.holiday:not(.selected):hover{
  background:rgba(229,57,53,0.08);
}
.picker-root .day-btn.selected.holiday{
  box-shadow: inset 0 0 0 2px #e53935;
}
.picker-root .days-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  grid-auto-rows:36px;
}
.picker-root .day-cell{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
}
.picker-root .day-cell .range-bg{
  position:absolute;
  inset:0 0 0 0;
  top:2px;bottom:2px;
  background:var(--dp-primary-light);
}
.picker-root .day-cell.range-start .range-bg{ border-radius:0 8px 8px 0; }
.picker-root .day-cell.range-end .range-bg{ border-radius:8px 0 0 8px; }
.picker-root .day-cell.range-single .range-bg{ display:none; }
.picker-root .day-btn{
  position:relative;
  z-index:1;
  width:32px;height:32px;
  border-radius:50%;
  border:none;
  background:transparent;
  font-family:inherit;
  font-size:16px;
  color:var(--dp-text-primary);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  transition:background .12s ease;
}
.picker-root .day-btn:hover:not(.disabled):not(.selected){ background:rgba(0,0,0,0.06); }
.picker-root .day-cell.today .day-btn:not(.selected){ border:1px solid var(--dp-primary); }
.picker-root .day-btn.disabled{
  color:var(--dp-text-disabled);
  cursor:default;
  pointer-events:none;
  position:relative;
}
.picker-root .day-btn.disabled::after{
  content:"";
  position:absolute;
  left:16%;
  right:16%;
  top:50%;
  border-top:1px solid var(--dp-text-disabled);
  transform:rotate(-20deg);
}
.picker-root .day-cell.has-tooltip{ z-index:6; }
.picker-root .day-tooltip{
  position:absolute;
  bottom:calc(100% + 6px);
  right:50%;
  transform:translateX(50%);
  background:#242424;
  color:#fff;
  font-size:13px;
  font-weight:600;
  line-height:1;
  padding:6px 10px;
  border-radius:6px;
  white-space:nowrap;
  pointer-events:none;
  z-index:6;
}
.picker-root .day-tooltip::after{
  content:"";
  position:absolute;
  top:100%;
  right:50%;
  transform:translateX(50%);
  border:5px solid transparent;
  border-top-color:#242424;
}
.picker-root .day-btn.selected{
  background:var(--dp-primary);
  color:#fff;
  font-weight:600;
  border-radius:8px;
}
.picker-root .day-btn.selected:hover{ background:var(--yellow-dark); }
.picker-root .day-btn.empty{ visibility:hidden; pointer-events:none; }

.picker-root .popover-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:6px 4px 12px;
  margin-bottom:6px;
  border-bottom:1px solid var(--dp-divider);
  flex-shrink:0;
}
.picker-root .today-link{
  border:none;
  background:transparent;
  cursor:pointer;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  color:var(--dp-link);
  padding:7px 10px;
  border-radius:7px;
  transition:background .12s ease;
}
.picker-root .today-link:hover{ background:rgba(26,115,232,0.08); }
.picker-root .toolbar-right{
  display:flex;
  align-items:center;
  gap:2px;
}
.picker-root .gregorian-toggle{
  display:flex;
  align-items:center;
  gap:6px;
  border:none;
  background:transparent;
  cursor:pointer;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  color:var(--dp-link);
  padding:7px 10px;
  border-radius:7px;
  transition:background .12s ease, color .12s ease;
}
.picker-root .gregorian-toggle:hover{ background:rgba(26,115,232,0.08); }
.picker-root .gregorian-toggle svg{ width:16px;height:16px; flex-shrink:0; }
.picker-root .gregorian-toggle.active{ color:var(--dp-primary); }
.picker-root .clear-link{
  border:none;
  background:transparent;
  cursor:pointer;
  font-family:inherit;
  font-size:15px;
  font-weight:600;
  color:var(--dp-text-secondary);
  padding:7px 10px;
  border-radius:7px;
  transition:background .12s ease, color .12s ease;
}
.picker-root .clear-link:hover{ background:rgba(229,57,53,0.08); color:#e53935; }

.picker-root .popover-footer{
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding:10px 4px 4px;
  margin-top:8px;
  border-top:1px solid var(--dp-divider);
}
.picker-root .hint-text{
  font-size:15px;
  color:var(--dp-text-secondary);
  font-weight:400;
  min-height:18px;
}
.picker-root .hint-text .hint-date{
  font-weight:700;
  color:var(--dp-text-primary);
}
.picker-root .hint-text .hint-nights{
  font-weight:400;
  color:var(--dp-text-secondary);
}
.picker-root .confirm-btn{
  border:none;
  background:var(--dp-link);
  color:#fff;
  font-family:inherit;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  padding:10px 24px;
  border-radius:8px;
  flex-shrink:0;
  transition:background .15s ease;
}
.picker-root .confirm-btn:hover{ background:var(--dp-link-hover); }

@media (max-width:700px){
  .picker-root{ flex:0 1 auto; width:100%; }
  .picker-root .popover{
    position:fixed;
    top:0; right:0; bottom:0; left:0;
    width:100%; height:100%;
    border-radius:0;
    padding:0;
    transform:translateY(16px);
    box-shadow:none;
    z-index:100;
  }
  .picker-root .popover.open{ transform:translateY(0); }
  .picker-root .popover-toolbar{ padding:12px 14px calc(10px + env(safe-area-inset-top,0px)); margin-bottom:0; }
  .picker-root .calendars-row{
    flex-direction:column;
    flex:1 1 auto;
    overflow-y:auto;
    padding:8px 12px 0;
    align-items:center;
  }
  .picker-root .month-panel{ width:100%; max-width:340px; }
  .picker-root #panelRight{ display:none; }
  .picker-root .popover-footer{
    flex-shrink:0;
    padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    margin-top:0;
  }
}

/* ===== اتوکامپلیت مقصد/هتل ===== */
.dest-field{
  flex:2 1 260px;
  min-width:220px;
}
.dest-field input{ cursor:text; }
.dest-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  left:0;
  min-width:340px;
  max-height:420px;
  overflow-y:auto;
  background:var(--white);
  border-radius:12px;
  box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);
  padding:10px 0;
  opacity:0;
  transform:translateY(-8px) scale(.98);
  pointer-events:none;
  transition:opacity .16s ease, transform .16s ease;
  z-index:40;
}
.dest-dropdown.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}
.dest-section-title{
  padding:8px 18px 6px;
  font-size:14px;
  font-weight:700;
  color:var(--gray-500);
}
.dest-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:2px 6px;
  padding:0 10px 6px;
}
.dest-chip{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 8px;
  border-radius:9px;
  cursor:pointer;
  color:var(--gray-900);
  font-size:15.5px;
  transition:background .12s ease;
}
.dest-chip:hover, .dest-chip.is-active{ background:var(--gray-100); }
.dest-chip .ico{
  width:30px;height:30px;
  flex:0 0 auto;
  border-radius:50%;
  background:rgba(245,165,0,0.12);
  color:var(--yellow-dark);
  display:flex;align-items:center;justify-content:center;
}
.dest-chip .ico svg{ width:16px;height:16px; }
.dest-chip .chip-sub{
  display:block;
  font-size:13px;
  color:var(--gray-500);
  font-weight:400;
}

.dest-list{ padding:2px 8px; }
.dest-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 10px;
  border-radius:9px;
  cursor:pointer;
  transition:background .12s ease;
}
.dest-item:hover, .dest-item.is-active{ background:var(--gray-100); }
.dest-item .ico{
  width:34px;height:34px;
  flex:0 0 auto;
  border-radius:50%;
  background:var(--gray-100);
  color:var(--gray-700);
  display:flex;align-items:center;justify-content:center;
}
.dest-item.type-city .ico{ background:rgba(245,165,0,0.12); color:var(--yellow-dark); }
.dest-item .ico svg{ width:17px;height:17px; }
.dest-item .txt{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:0;
}
.dest-item .title{
  font-size:16px;
  color:var(--gray-900);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dest-item .title mark{
  background:none;
  color:var(--yellow-dark);
  font-weight:700;
}
.dest-item .sub{
  font-size:14px;
  color:var(--gray-500);
}
.dest-empty{
  padding:26px 18px;
  text-align:center;
  color:var(--gray-500);
  font-size:15px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
}
.dest-empty-text{ color:var(--gray-500); }
.dest-empty-clear{
  border:1px solid var(--gray-300);
  background:transparent;
  color:var(--gray-700);
  font-family:inherit;
  font-size:14.5px;
  font-weight:600;
  padding:8px 18px;
  border-radius:8px;
  cursor:pointer;
  transition:background .12s ease, border-color .12s ease;
}
.dest-empty-clear:hover{ background:var(--gray-100); }
.dest-loading{
  padding:16px 18px;
  text-align:center;
  color:var(--gray-500);
  font-size:15px;
}

html.dest-mobile-lock,
html.dest-mobile-lock body{ overflow:hidden; }

@media (max-width:700px){
  /* «تعداد شب» دیگر جلوی فیلد تاریخ نوشته نمی‌شود؛ در ادامه‌ی کپشن دکمه
     جستجو نمایش داده می‌شود (نگاه کنید به destination-autocomplete.js). */
  .picker-root .nights-chip{ display:none !important; }

  /* منوی بالای سایت به‌خاطر استکینگ‌کانتکست جدای .panel-wrap روی کارت
     مقصد/تقویم می‌نشیند؛ پس تا وقتی این کارت‌ها باز هستند مخفی می‌شود. */
  body.site-menu-hidden .topbar{ display:none; }
}

@media (max-width:700px){
  /* ---- کارت تمام‌صفحه (مطابق الگوی مقصد در alibaba.ir) ---- */
  .dest-dropdown{
    position:fixed;
    top:0; right:0; bottom:0; left:0;
    width:100%; height:100%;
    min-width:0;
    max-height:none;
    border-radius:0;
    padding:0;
    display:flex;
    flex-direction:column;
    box-shadow:none;
    transform:translateY(18px);
    z-index:200;
  }
  .dest-dropdown.open{ transform:translateY(0); }

  /* هدر: دکمه بستن + عنوان */
  .dest-mobile-bar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-shrink:0;
    padding:calc(14px + env(safe-area-inset-top,0px)) 16px 14px;
    border-bottom:1px solid var(--gray-100);
  }
  .dest-mobile-close{
    width:32px;height:32px;
    display:flex;align-items:center;justify-content:center;
    flex-shrink:0;
    border:none;background:none;padding:0;
    color:var(--gray-900);
    cursor:pointer;
  }
  .dest-mobile-close svg{ width:20px;height:20px; }
  .dest-mobile-title{
    font-size:17.5px;
    font-weight:700;
    color:var(--gray-900);
  }

  /* باکس جستجو (اینپوت واقعی به همراه آیکن مکان) */
  .dest-search-row{ flex-shrink:0; padding:14px 16px 10px; }
  .dest-search-row .shell{
    display:flex;
    align-items:center;
    gap:10px;
    height:48px;
    padding:0 14px;
    border:1.6px solid var(--gray-300);
    border-radius:10px;
  }
  .dest-search-row .loc-ico{
    width:19px;height:19px;
    flex-shrink:0;
    display:flex;
    color:var(--gray-500);
  }
  .dest-search-row .loc-ico svg{ width:100%;height:100%; }
  .dest-search-row input{
    flex:1 1 auto;
    min-width:0;
    height:100%;
    border:none;outline:none;background:transparent;
    font-family:inherit;
    font-size:16px;
    color:var(--gray-900);
    text-align:right;
    padding:0;
  }
  .dest-search-row input::placeholder{ color:var(--gray-500); }

  /* ناحیه‌ی قابل‌اسکرول نتایج/تاریخچه/پرطرفدار */
  .dest-results{
    flex:1 1 auto;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    padding-bottom:calc(10px + env(safe-area-inset-bottom));
  }

  .dest-section-title-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 18px 6px;
  }
  .dest-section-title-row .dest-section-title{ padding:0; }
  .dest-history-clear{
    border:none;background:none;padding:0;
    font-family:inherit;
    font-size:14.5px;
    font-weight:600;
    color:var(--yellow-dark);
    cursor:pointer;
  }

  /* ردیف‌های تمام‌عرض شهر/تاریخچه (به‌جای گرید دسکتاپ) */
  .dest-grid{ display:none; }
  .dest-row-list{ padding:0 0 4px; }
  .dest-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    padding:12px 18px;
    cursor:pointer;
    transition:background .12s ease;
  }
  .dest-row:hover, .dest-row.is-active{ background:var(--gray-100); }
  .dest-row .row-main{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
  }
  .dest-row .row-ico{
    width:19px;height:19px;
    flex-shrink:0;
    display:flex;
    color:var(--gray-500);
  }
  .dest-row .row-ico svg{ width:100%;height:100%; }
  .dest-row .row-info{
    display:flex;
    flex-direction:column;
    gap:2px;
    text-align:right;
    min-width:0;
  }
  .dest-row .row-title{
    font-size:16.5px;
    font-weight:700;
    color:var(--gray-900);
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .dest-row .row-sub{
    font-size:14.5px;
    color:var(--gray-500);
  }
  .dest-row .row-count{
    font-size:14.5px;
    color:var(--gray-500);
    flex-shrink:0;
  }

  /* لیست نتایج جستجوی تایپ‌شده هم تمام‌عرض و بدون گردی شود */
  .dest-item{ border-radius:0; padding:12px 18px; }
  .dest-empty{ padding:40px 18px; }
}

/* ===== مسافران / اتاق‌ها ===== */
.pax-field{
  flex:1 1 200px;
  min-width:170px;
}
.pax-field input{ cursor:pointer; }

.pax-popover{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:0;
  width:340px;
  max-width:calc(100vw - 24px);
  z-index:32;
  background:var(--white);
  border-radius:12px;
  box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12);
  padding:14px 16px 16px;
  opacity:0;
  transform:translateY(-8px) scale(.98);
  pointer-events:none;
  transition:opacity .16s ease, transform .16s ease;
}
.pax-popover.open{
  opacity:1;
  transform:translateY(0) scale(1);
  pointer-events:auto;
}

.pax-room{ padding:14px 0; }
.pax-room + .pax-room{ border-top:1px solid #ececec; }

.pax-room-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:6px;
}
.pax-room-title{
  font-size:17px;
  font-weight:700;
  color:var(--gray-900);
}
.pax-remove-room{
  display:flex;
  align-items:center;
  gap:4px;
  background:none;
  border:none;
  color:#e14848;
  font-size:15px;
  font-weight:600;
  cursor:pointer;
  padding:2px 0;
}
.pax-remove-room svg{ width:15px; height:15px; }
.pax-remove-room:hover{ color:#c73333; }

.pax-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 0;
}
.pax-row-label{
  display:flex;
  align-items:baseline;
  gap:6px;
}
.pax-row-title{ font-size:16px; color:var(--gray-900); }
.pax-row-sub{ font-size:14px; color:var(--gray-500); }

.pax-stepper{
  display:flex;
  align-items:center;
  gap:14px;
}
.pax-btn{
  width:32px;
  height:32px;
  border-radius:50%;
  border:none;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  background:#1a73e8;
  color:#fff;
  font-size:18px;
  line-height:1;
  transition:background .15s ease, opacity .15s ease;
}
.pax-btn:hover:not(:disabled){ background:#155bc0; }
.pax-btn:disabled{
  background:rgba(26,115,232,0.14);
  color:#1a73e8;
  opacity:.55;
  cursor:not-allowed;
}
.pax-count{
  min-width:18px;
  text-align:center;
  font-size:17px;
  font-weight:600;
  color:var(--gray-900);
}

.pax-add-room{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  background:none;
  border:none;
  color:#1a73e8;
  font-size:16px;
  font-weight:600;
  cursor:pointer;
  padding:10px 0 4px;
}
.pax-add-room svg{ width:14px; height:14px; }
.pax-add-room:hover:not(:disabled){ color:#155bc0; }
.pax-add-room:disabled{ opacity:.4; cursor:not-allowed; }

.pax-popover-footer{
  margin-top:8px;
  padding-top:12px;
  border-top:1px solid #ececec;
}
.pax-confirm{
  width:100%;
  background:#1a73e8;
  color:#fff;
  font-family:inherit;
  font-weight:700;
  font-size:17px;
  border:none;
  border-radius:10px;
  padding:13px;
  cursor:pointer;
  transition:background .15s ease;
}
.pax-confirm:hover{ background:#155bc0; }

@media (max-width:700px){
  .pax-popover{
    position:fixed;
    top:auto; bottom:0; left:0; right:0;
    width:auto; max-width:none;
    border-radius:16px 16px 0 0;
    max-height:80vh;
    overflow-y:auto;
    transform:translateY(16px);
    z-index:100;
  }
  .pax-popover.open{ transform:translateY(0); }
}

.content-placeholder{
  max-width:var(--site-max);
  margin:0 auto 60px;
  padding:0 var(--site-pad);
  color:var(--gray-500);
  font-size:15px;
  text-align:center;
}

/* ===== اصلاح نهایی چیدمان موبایل (باید انتهای فایل بماند تا در ترتیب
   CSS از تعریف‌های اصلی .dest-field و .pax-field جلوتر بیفتد) ===== */
@media (max-width:700px){
  .dest-field, .pax-field{ flex:0 1 auto; min-width:0; }
}

/* ===== باکس هتل‌های برتر (زیر فرم جستجوی هتل، قبل از جستجوی واقعی) ===== */
.featured-hotels{
  max-width: var(--site-max);
  margin: 28px auto 0;
  padding: 0 var(--site-pad);
}
.featured-row{
  margin-bottom: 28px;
}
.featured-row-title{
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 12px;
}
.featured-cards{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.featured-card{
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .15s ease, transform .15s ease;
  cursor: pointer;
}
.featured-card:hover{
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}
.featured-card-img{
  width: 100%;
  height: 130px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
}
.featured-card-body{
  padding: 10px 12px 12px;
}
.featured-card-name{
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-card-rate{
  margin-top: 4px;
  font-size: 14px;
  color: var(--yellow-dark);
  letter-spacing: 1px;
}

@media (max-width:700px){
  .featured-cards{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px){
  .featured-hotels{ padding: 0 16px; margin-top: 20px; }
  .featured-cards{
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 10px;
  }
  .featured-cards::-webkit-scrollbar{ display: none; }
  .featured-card{ flex: 0 0 62%; }
}

/* ===== اسلایدر «هتل‌های برتر تهران» (۴ اسلاید × ۲ هتل، مشابه alibaba.ir) ===== */
.top-hotels-slider{
  max-width: var(--site-max);
  margin: 28px auto 0;
  padding: 0 var(--site-pad);
}
.ths-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ths-title{
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0;
}
.ths-nav{
  display: flex;
  gap: 8px;
}
.ths-arrow{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.ths-arrow svg{ width: 18px; height: 18px; }
.ths-arrow:hover{
  background: var(--gray-100);
  border-color: var(--gray-700);
  color: var(--gray-900);
}

.ths-viewport{
  overflow: hidden;
  border-radius: 12px;
}
.ths-track{
  display: flex;
  transition: transform .35s ease;
  will-change: transform;
}
.ths-slide{
  flex: 0 0 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.ths-card{
  display: flex;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.ths-card:hover{
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.ths-card-img{
  flex: 0 0 42%;
  min-height: 140px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
  position: relative;
}

.ths-card-body{
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.ths-card-name{
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ths-card-loc{
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--gray-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ths-card-rate{
  margin-top: 8px;
  font-size: 15px;
  color: var(--yellow-dark);
  letter-spacing: 1px;
}

.ths-dots{
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.ths-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: var(--gray-300);
  cursor: pointer;
  padding: 0;
  transition: background-color .15s ease, width .15s ease;
}
.ths-dot.active{
  background: var(--yellow-dark);
  width: 20px;
  border-radius: 4px;
}

@media (max-width:700px){
  .ths-slide{ grid-template-columns: 1fr; }
}
@media (max-width: 700px){
  .top-hotels-slider{ padding: 0 16px; margin-top: 20px; }
  .ths-card-img{ flex-basis: 38%; min-height: 120px; }
  .ths-card-body{ padding: 10px 12px; }
}

/* ===== نتایج جستجوی واقعی هتل (همان باکس #featuredHotels، حالت دوم) ===== */
.hsr-status{
  padding: 40px 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 16px;
}
.hsr-head{
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 16px;
}
.hsr-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hsr-item{
  display: flex;
  align-items: stretch;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer; /* دیگر یک <a> واحد نیست؛ چند لینک واقعی داخلش هست، پس خودِ کارت کلیک‌پذیر شبیه‌سازی می‌شود */
  transition: box-shadow .15s ease;
}
.hsr-item:hover{ box-shadow: 0 4px 14px rgba(0,0,0,0.08); }
.hsr-item-soldout{ opacity: .6; }
.hsr-item-img{
  flex: 0 0 150px;
  border-radius: 8px;
  background-color: var(--gray-100);
  background-size: cover;
  background-position: center;
}
.hsr-item-body{
  flex: 1 1 auto;
  min-width: 0;
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* سطر اول کارت: فقط «زمان ورود/خروج انعطاف‌پذیر» و/یا «پکیج ترانسفر
   فرودگاهی»، همیشه به همین ترتیب. min-height معادل ارتفاع یک بج است تا
   وقتی هیچ‌کدام نیست، این سطر خالی بماند نه اینکه از layout جمع شود —
   وگرنه نام/آدرس/لینک‌های کارت‌های بدون بج بالاتر از بقیه می‌افتند. */
.hsr-item-badges-top{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 29px;
}

/* سطر آدرس، تنها روی یک ردیف؛ اگر آدرس طولانی بود با ... کوتاه می‌شود
   نه اینکه به سطر بعد بشکند و ارتفاع کارت را به‌هم بزند. */
.hsr-item-address{
  font-size: 14.5px;
  color: var(--gray-600);
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hsr-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
}
.hsr-badge svg{ flex: none; }
.hsr-badge-dark{
  background: var(--gray-900);
  color: var(--white);
}
.hsr-badge-muted{
  background: var(--gray-100);
  color: var(--gray-700);
  font-weight: 500;
}
.hsr-badge-ok{
  background: #e7f7ee;
  color: #1c9a56;
}

.hsr-item-name{
  font-size: 18.5px;
  font-weight: 700;
}
.hsr-item-name a{ color: var(--gray-900); }
.hsr-item-name a:hover{ color: var(--nav-text-hover); }
.hsr-item-rate{
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--gray-700);
}
.hsr-item-rate svg{ color: var(--yellow-dark); flex: none; }
.hsr-item-links{
  display: flex;
  gap: 16px;
  /* همیشه پایین کارت بچسبد، صرف‌نظر از اینکه سطر اول/سوم بالای آن چقدر
     محتوا دارند — این‌طور «مشاهده روی نقشه»/«امکانات هتل» بین کارت‌های
     مختلف همیشه هم‌تراز و ثابت در جای خودشان می‌مانند. */
  margin-top: auto;
}
.hsr-item-links a{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--nav-text-hover);
}
.hsr-item-links a:hover{ text-decoration: underline; }

.hsr-item-price{
  flex: 0 0 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: left;
  padding: 4px 6px;
  gap: 4px;
}
.hsr-price-amount{
  margin-top: 4px;
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}
.hsr-price-amount span{
  font-size: 13.5px;
  font-weight: 400;
  color: var(--gray-500);
}
.hsr-price-meta{
  font-size: 13.5px;
  color: var(--gray-500);
  margin-bottom: 4px;
}
/* بج «قیمت علی‌الحساب» — وقتی partPayment پاسخ searchHotel برای اتاقِ
   ارزان‌ترین قیمت برابر ۱ باشد (یعنی قیمت این بازه هنوز قطعی نیست)،
   زیر «hsr-price-meta» و بالای دکمه‌ی رزرو نمایش داده می‌شود. */
.hsr-price-partpayment{
  font-size: 12.5px;
  font-weight: 600;
  color: #b8860b;
  background: #fdf3dc;
  border-radius: 6px;
  padding: 2px 8px;
  margin-bottom: 4px;
  align-self: flex-end;
  white-space: nowrap;
}
.hsr-cta-btn{
  display: block;
  width: 100%;
  text-align: center;
  background: var(--yellow);
  color: var(--gray-900);
  font-weight: 700;
  font-size: 15px;
  border-radius: 8px;
  padding: 9px 12px;
  white-space: nowrap;
}
.hsr-cta-btn:hover{ background: var(--yellow-dark); }
.hsr-soldout-badge{
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-100);
  padding: 6px 10px;
  border-radius: 8px;
}
.hsr-item-package{ opacity: 1; } /* برخلاف hsr-item-soldout، این هتل واقعاً غیرقابل‌رزرو نیست، فقط با تاریخ دیگری قابل رزرو است */
.hsr-package-badge{
  font-size: 13.5px;
  font-weight: 700;
  color: #8a6d1a;
  background: #fffbe6;
  border: 1px solid #f5e6a8;
  padding: 5px 10px;
  border-radius: 8px;
  white-space: nowrap;
}
.hsr-package-hint{
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--gray-500);
  white-space: nowrap;
}

@media (max-width: 700px){
  .hsr-item{ flex-direction: column; }
  .hsr-item-img{ flex-basis: 140px; width: 100%; }
  .hsr-item-price{ flex-basis: auto; align-items: stretch; text-align: right; }
  .hsr-cta-btn{ margin-top: 6px; }
}

/* ===== نوار بالای نتایج: عنوان + مرتب‌سازی (مشابه alibaba.ir) ===== */
.hsr-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}
.hsr-toolbar .hsr-head{ margin: 0; }
.hsr-sort-group{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.hsr-sort-btn{
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-size: 15px;
  font-family: inherit;
  padding: 7px 14px;
  border-radius: 999px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.hsr-sort-btn:hover{ border-color: var(--yellow-dark); color: var(--gray-900); }
.hsr-sort-btn.active{
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--gray-900);
  font-weight: 700;
}

/* ===== چیدمان کلی نتایج: پنل فیلتر (راست) + لیست نتایج (چپ) ===== */
.hsr-layout{
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.hsr-results{
  flex: 1 1 auto;
  min-width: 0;
}
.hsr-empty{
  padding: 40px 0;
  text-align: center;
  color: var(--gray-500);
  font-size: 16px;
}

/* ===== پنل فیلتر (ستاره + امکانات) =====
   قبلاً max-height/overflow-y داشت (اسکرول داخلی وقتی محتوا از ارتفاع
   صفحه بلندتر می‌شد)؛ طبق درخواست الان کامل رندر می‌شود و با اسکرول
   خودِ صفحه پایین می‌رود، نه اسکرول داخلی جدا. */
.hsr-filters{
  flex: 0 0 300px;
  width: 300px;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  padding: 16px;
  position: sticky;
  top: 80px; /* زیر topbar ثابت */
  align-self: flex-start;
}
.hsr-filters-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.hsr-filters-title{
  font-size: 16.5px;
  font-weight: 700;
  color: var(--gray-900);
}
.hsr-filters-clear{
  border: none;
  background: none;
  color: var(--nav-text-hover);
  font-size: 14.5px;
  font-family: inherit;
  padding: 0;
}
/* هر گروه فیلتر (ستاره/امکانات) به‌صورت منوی کشویی: کلیک روی سرتیتر،
   لیست چک‌باکس‌های همان گروه را باز/بسته می‌کند */
.hsr-filter-dropdown{
  margin-top: 10px;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  overflow: hidden;
}
.hsr-filter-dropdown:first-of-type{ margin-top: 0; }
.hsr-filter-toggle{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: none;
  background: var(--gray-100);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  padding: 12px;
  cursor: pointer;
}
.hsr-filter-toggle-meta{
  display: flex;
  align-items: center;
  gap: 8px;
}
.hsr-filter-count{
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--gray-900);
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.hsr-chevron{
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  transition: transform .15s ease;
}
.hsr-filter-dropdown.open .hsr-chevron{ transform: rotate(180deg); }
.hsr-filter-panel{
  display: none;
  padding: 4px 12px 12px;
}
.hsr-filter-dropdown.open .hsr-filter-panel{ display: block; }
.hsr-checkbox-row{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--gray-700);
  padding: 5px 0;
  cursor: pointer;
}
.hsr-checkbox-row input[type="checkbox"]{
  width: 16px;
  height: 16px;
  accent-color: var(--yellow-dark);
  cursor: pointer;
  flex: 0 0 auto;
}
.hsr-checkbox-stars{
  color: var(--yellow-dark);
  letter-spacing: 1px;
  font-size: 13px;
}
.hsr-checkbox-count{
  margin-inline-start: auto;
  font-size: 13px;
  color: var(--gray-500);
}
/* جداکننده‌ی بخش «نوع اتاق» داخل شیت تمام‌صفحه‌ی «فیلترها»ی موبایل،
   وقتی زیر ردیف‌های امکانات هتل می‌آید. */
.hsr-mobile-sheet-subhead{
  margin: 14px 0 4px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-200, #e5e7eb);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-500);
}

/* ===== جستجوی نام هتل (داخل پنل فیلتر) ===== */
.hsr-name-search{
  position: relative;
}
.hsr-name-search-input{
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  padding: 9px 34px 9px 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--gray-900);
  background: var(--white);
}
.hsr-name-search-input::placeholder{ color: var(--gray-500); }
.hsr-name-search-input:focus{
  outline: none;
  border-color: var(--yellow-dark);
}
.hsr-name-search-icon{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--gray-500);
  pointer-events: none;
}

/* ===== دکمه‌های گروه ستاره (۵ ستاره/۴ ستاره/۳ ستاره و کمتر) ===== */
.hsr-pill-filter-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}
.hsr-pill-filter{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-800, var(--gray-900));
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.hsr-pill-filter:hover{ border-color: var(--yellow-dark); }
.hsr-pill-filter.active{
  border-color: var(--yellow-dark);
  background: #fffbe6;
}
.hsr-pill-filter-count{
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gray-100);
  color: var(--gray-700);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.hsr-pill-filter.active .hsr-pill-filter-count{
  background: var(--yellow);
  color: var(--gray-900);
}

/* ===== اسلایدر دو-دستگیره‌ی «محدوده قیمت» =====
   خط‌سیر خاکستری با نوار زرد پرشده‌ی وسط (بازه‌ی انتخابی) و دو دستگیره‌ی
   دایره‌ای قابل‌کشیدن با ماوس/لمس. جهت‌گیری همیشه به‌صورت «چپ = کمترین
   قیمت، راست = بیشترین قیمت» است (مثل بیشتر اسلایدرهای قیمت، صرف‌نظر از
   RTL بودن باقی صفحه) چون درصدها با left/right فیزیکی محاسبه می‌شوند. */
.hsr-price-slider{
  padding: 4px 6px 2px;
  direction: ltr; /* محاسبه‌ی left/right همیشه فیزیکی و یکسان بماند */
}
.hsr-price-values{
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}
.hsr-price-value{
  font-size: 14.5px;
  font-weight: 700;
  color: var(--gray-900);
  background: var(--gray-100);
  border-radius: 6px;
  padding: 3px 7px;
}
/* توزیع قیمت (نمودار میله‌ای کوچک، فقط نمایشی) بالای خط‌سیر اسلایدر */
.hsr-price-hist{
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
  margin: 0 9px 8px;
}
.hsr-price-hist-bar{
  flex: 1 1 0;
  min-width: 2px;
  background: var(--gray-200, var(--gray-300));
  border-radius: 2px 2px 0 0;
}
.hsr-price-track{
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: var(--gray-300);
  margin: 0 9px; /* جا برای شعاع دستگیره‌ها روی خط‌سیر */
}
.hsr-price-range-fill{
  position: absolute;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  border-radius: 999px;
}
.hsr-price-thumb{
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  transform: translateY(-50%);
  background: var(--white);
  border: 2.5px solid var(--yellow-dark);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
  cursor: grab;
  touch-action: none;
}
.hsr-price-thumb:hover{ box-shadow: 0 2px 6px rgba(0,0,0,.28); }
.hsr-price-thumb:active{ cursor: grabbing; }
.hsr-price-thumb:focus-visible{
  outline: 2px solid var(--yellow-dark);
  outline-offset: 2px;
}
.hsr-price-bounds{
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.hsr-price-bounds span{
  font-size: 13px;
  color: var(--gray-500);
}

/* ===== نوار موبایل: «فیلترها»/«مرتب‌سازی»/«ستاره هتل» (مشابه alibaba.ir) =====
   در دسکتاپ کاملاً مخفی است؛ در موبایل به‌جای نوار دکمه‌های مرتب‌سازی
   و پنل کناری فیلتر بالا، همین سه دکمه‌ی کپسولی دیده می‌شود. */
.hsr-mobile-toolbar{
  display: none;
}

.hsr-pill-btn{
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  flex: 0 0 auto;
}
.hsr-pill-btn svg{ width: 15px; height: 15px; flex: 0 0 auto; }
.hsr-pill-btn.active,
.hsr-pill-btn[aria-expanded="true"]{
  border-color: var(--yellow-dark);
  background: var(--yellow);
  color: var(--gray-900);
}
.hsr-pill-badge{
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #e5453f;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.hsr-pill-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e5453f;
}

/* لیست گزینه‌های «مرتب‌سازی» داخل صفحه‌ی تمام‌صفحه‌اش (هر گزینه یک
   دکمه‌ی تمام‌عرض، شبیه یک منوی انتخاب ساده) */
.hsr-mobile-panel-list{
  display: flex;
  flex-direction: column;
}
.hsr-mobile-sort-option{
  text-align: right;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 16.5px;
  color: var(--gray-700);
  padding: 14px 12px;
  border-radius: 8px;
  cursor: pointer;
}
.hsr-mobile-sort-option:hover{ background: var(--gray-100); }
.hsr-mobile-sort-option.active{
  color: var(--gray-900);
  font-weight: 700;
  background: var(--gray-100);
}

/* پنل کشویی از پایین صفحه برای «مرتب‌سازی» و «ستاره هتل» — دقیقاً همان
   الگوی pax-popover در حالت موبایل (تعداد مسافرین): همیشه در DOM است و
   با opacity/transform/pointer-events انیمیت می‌شود (نه display)، فقط
   به‌اندازه‌ی محتوایش از پایین بالا می‌آید (نه تمام‌صفحه)، و با کلیک
   بیرون از خودش هم بسته می‌شود. */
.hsr-bottom-sheet{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 260;
  background: var(--white);
  border-radius: 16px 16px 0 0;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 -4px 24px rgba(0,0,0,.18);
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom,0px));
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease;
}
.hsr-bottom-sheet.open{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hsr-bottom-sheet-title{
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  text-align: center;
}
.hsr-bottom-sheet-footer{
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}

/* صفحه‌ی تمام‌صفحه‌ی «فیلترها» — چون امکانات هتل ممکن است لیست بلندی
   باشد، همچنان تمام‌صفحه با دکمه‌ی ضربدر است (نه پنل کشویی کوچک) */
.hsr-mobile-sheet{
  display: none;
}
.hsr-mobile-sheet.open{
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--white);
}
.hsr-mobile-sheet-topbar{
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  padding: 14px 16px calc(14px + env(safe-area-inset-top,0px));
  border-bottom: 1px solid #ececec;
}
.hsr-filters-close{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: none;
  background: none;
  color: var(--gray-700);
  cursor: pointer;
  padding: 0;
}
.hsr-filters-close svg{ width: 18px; height: 18px; }
.hsr-filters-close:hover{ color: var(--gray-900); }
.hsr-filters-topbar-title{
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
}
.hsr-mobile-sheet-body{
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 16px;
}
.hsr-mobile-sheet-footer{
  flex: 0 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom,0px));
  border-top: 1px solid #ececec;
}
.hsr-filter-apply{
  width: 100%;
  background: #1a73e8;
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 17px;
  border: none;
  border-radius: 10px;
  padding: 13px;
  cursor: pointer;
}
.hsr-filter-apply:hover{ background: #155bc0; }

@media (max-width:700px){
  .hsr-layout{ flex-direction: column; align-items: stretch; }

  /* در موبایل، نوار دکمه‌های مرتب‌سازی دسکتاپ و پنل کناری فیلتر جای
     خود را به نوار کپسولی «فیلترها/مرتب‌سازی/ستاره هتل» می‌دهند */
  .hsr-sort-group{ display: none; }
  .hsr-filters{ display: none; }

  .hsr-mobile-toolbar{
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    margin-bottom: 16px;
    position: relative;
  }
  .hsr-toolbar{ margin-bottom: 0; }
}

/* ===== قیمت قبل از تخفیف + برچسب تخفیف روی تصویر هتل ===== */
.hsr-price-old{
  font-size: 14px;
  color: var(--gray-500);
  text-decoration: line-through;
}
.hsr-item-img{ position: relative; }
.hsr-discount-badge{
  position: absolute;
  top: 8px;
  right: 8px; /* گوشه‌ی راست تصویر (شروع در RTL) */
  background: #e5453f;
  color: var(--white);
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

/* ===== مودال بارگذاری حین جستجو: تبلیغ + پروگرس‌بار (مشابه alibaba.ir) =====
   وسط صفحه به‌صورت overlay ثابت (مثل مودال ورود)، نه محدود به محدوده‌ی
   باکس نتایج — فقط تا پایان جستجو باز است. تصویر تبلیغاتی از index.php
   قابل تعویض است. پروگرس‌بار عمداً بدون فاصله دقیقا زیر تصویر می‌چسبد
   (overflow:hidden روی مودال، بدون margin/radius بین تصویر و پروگرس). */
.hsr-loading-overlay{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20,20,20,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility 0s linear .18s;
}
.hsr-loading-overlay.open{
  opacity: 1;
  visibility: visible;
  transition: opacity .18s ease, visibility 0s linear 0s;
}
body.hsr-loading-lock{ overflow: hidden; }

.hsr-loading-modal{
  position: relative;
  width: 520px;
  max-width: 100%;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden; /* لبه‌های تصویر/پروگرس را هم‌شکل مودال گرد می‌کند */
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
  text-align: center;
  transform: translateY(10px) scale(.98);
  transition: transform .18s ease;
}
.hsr-loading-overlay.open .hsr-loading-modal{
  transform: translateY(0) scale(1);
}

.hsr-ad-link{ display: block; }
.hsr-ad-img{
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  display: block;
  background: var(--gray-100);
}
.hsr-progress{
  /* بدون margin: دقیقا چسبیده به لبه‌ی پایین تصویر تبلیغاتی */
  height: 6px;
  background: var(--gray-100);
  overflow: hidden;
}
.hsr-progress-bar{
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--yellow), var(--yellow-dark));
  transition: width .25s ease;
}
.hsr-loading-text{
  padding: 14px 20px 20px;
  font-size: 15.5px;
  color: var(--gray-500);
}

@media (max-width: 700px){
  .hsr-loading-overlay{ align-items: flex-end; padding: 0; }
  .hsr-loading-modal{
    width: 100%;
    border-radius: 18px 18px 0 0;
    transform: translateY(14px);
  }
  .hsr-loading-overlay.open .hsr-loading-modal{ transform: translateY(0); }
  .hsr-ad-img{ max-height: 200px; }
}

/* ===== هایلایت خطای فیلد مقصد (وقتی جستجو بدون انتخاب مقصد ثبت شود) ===== */
.dest-field.field-error fieldset{
  border-color: #e5484d;
}

/* ===== مودال ورود / ثبت‌نام (مشابه alibaba.ir) =====
   ابعاد از اسکرین‌شات‌های علی‌بابا (مقیاس ۱٫۵) استخراج شده:
   مودال ۶۰۰px، ستون فرم ۳۲۷px، فیلد/دکمه ارتفاع ۴۸px، رنگ‌ها نمونه‌برداری‌شده. */
.auth-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  background:rgba(0,0,0,.5);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  transition:opacity .18s ease, visibility 0s linear .18s;
}
.auth-overlay.open{
  opacity:1;
  visibility:visible;
  transition:opacity .18s ease, visibility 0s linear 0s;
}
body.auth-lock{ overflow:hidden; }

.auth-modal{
  position:relative;
  width:600px;
  max-width:100%;
  max-height:94vh;
  overflow-y:auto;
  box-sizing:border-box;
  background:#fff;
  border:1px solid #e0e0e0;
  border-radius:16px;
  box-shadow:0 20px 60px rgba(0,0,0,.25);
  padding:73px 0 71px;
  text-align:center;
  transform:translateY(10px) scale(.98);
  transition:transform .18s ease;
}
.auth-overlay.open .auth-modal{
  transform:translateY(0) scale(1);
}

/* دکمه‌ی بستن: بالا-چپ، ضربدر نازک مشکی ۱۶px (مرکز ۳۶px از لبه‌ها) */
.auth-close{
  position:absolute;
  top:20px;
  left:20px;
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  color:#000;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .15s ease;
}
.auth-close:hover{ background:#f1f3f5; }
.auth-close svg{ width:16px; height:16px; stroke-width:1.5; }

.auth-view{ display:none; }
.auth-view.active{ display:block; }

/* عنوان و توضیح: به عرض مودال (نه ستون فرم)، وسط‌چین */
.auth-title{
  margin:0 0 10px;
  padding:0 24px;
  font-size:22px;
  line-height:34px;
  font-weight:700;
  color:#090a0b;
}
.auth-sub{
  margin:0 0 47px;
  padding:0 24px;
  font-size:17px;
  line-height:26px;
  font-weight:400;
  color:#2a2e32;
}

/* ستون فرم: عرض ثابت ۳۲۷px وسط مودال */
.auth-input,
.phone-field,
.pass-field,
.auth-terms,
.auth-submit,
.auth-links,
.auth-error,
.otp-boxes{
  box-sizing:border-box;
  width:327px;
  max-width:calc(100% - 40px);
  margin-left:auto;
  margin-right:auto;
}

/* بنر خطا */
.auth-error{
  display:none;
  background:#dd4b53;
  color:#fff;
  font-size:15px;
  font-weight:500;
  border-radius:12px;
  padding:12px 16px;
  margin-top:-33px;
  margin-bottom:28px;
}
.auth-error.show{ display:block; }
.auth-error.success{ background:#2fa84f; }

/* فیلد ورودی ساده (ایمیل/موبایل/کلمه عبور) */
.auth-input{
  display:block;
  height:48px;
  border:1px solid #bec6cc;
  border-radius:12px;
  padding:0 16px;
  font-family:inherit;
  font-size:16px;
  color:#090a0b;
  background:#fff;
  outline:none;
  text-align:right;
  transition:border-color .15s ease;
  margin-bottom:25px;
}
.auth-input::placeholder{ color:#959da6; opacity:1; }
.auth-input:focus{ border-color:#0077db; }
.auth-input.invalid{ border-color:#dd4b53; }
.auth-input + .auth-submit{ margin-top:8px; }   /* ۲۵ + ۸ = فاصله‌ی ۳۳px تا دکمه */

/* فیلد موبایل: پیش‌شماره‌ی +۹۸ سمت چپ با خط جداکننده‌ی کوتاه */
.phone-field{
  display:flex;
  align-items:center;
  direction:ltr;
  height:48px;
  border:1px solid #bec6cc;
  border-radius:12px;
  margin-bottom:30px;
  overflow:hidden;
  transition:border-color .15s ease;
}
.phone-field:focus-within{ border-color:#0077db; }
.phone-field .phone-code{
  position:relative;
  flex:0 0 52px;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  border:none;
  color:#959da6;
  font-size:16px;
}
.phone-field .phone-code::after{
  content:"";
  position:absolute;
  right:0;
  top:10px;
  bottom:10px;
  width:1px;
  background:#dfe3e7;
}
.phone-field .auth-input{
  border:none;
  margin:0;
  width:auto;
  max-width:none;
  flex:1 1 auto;
  height:100%;
  border-radius:0;
  direction:rtl;
  text-align:right;
}

/* فیلد کلمه عبور: آیکون چشم سمت راست (ابتدای فیلد در RTL) */
.pass-field{ position:relative; margin-bottom:33px; }
.pass-field .auth-input{ margin:0; width:100%; max-width:none; padding-right:46px; padding-left:16px; }
.pass-eye{
  position:absolute;
  right:9px;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:30px;
  border:none;
  background:transparent;
  color:#959da6;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}
.pass-eye svg{ width:18px; height:18px; }
.pass-eye .eye-slash{ opacity:1; transition:opacity .1s ease; }
.pass-eye.visible .eye-slash{ opacity:0; }

/* متن قوانین و مقررات: آیکن ⓘ سمت راست، متن ۱۴px */
.auth-terms{
  display:flex;
  align-items:flex-start;
  gap:16px;
  text-align:right;
  font-size:14px;
  line-height:23px;
  color:#4a5158;
  margin-bottom:26px;
}
.auth-terms .info-ico{
  flex:0 0 17px;
  width:17px;
  height:17px;
  margin-top:3px;
  color:#4a5158;
}
.auth-terms .info-ico svg{ width:100%; height:100%; }
.auth-terms > span:last-child{ flex:1 1 auto; min-width:0; }
.auth-terms a,
.auth-links a{ text-decoration:none; }
.auth-terms a{ color:#0077db; }
.auth-terms a:hover{ text-decoration:underline; }

/* دکمه‌ی اصلی: ۴۸px (مرحله‌ی موبایل/کد)؛ در مراحل رمز و فراموشی ۴۲px */
.auth-submit{
  display:block;
  height:48px;
  background:#0077db;
  color:#fff;
  font-family:inherit;
  font-weight:500;
  font-size:17px;
  border:none;
  border-radius:12px;
  cursor:pointer;
  transition:background .15s ease;
}
.auth-submit:hover{ background:#0068c0; }
.auth-view[data-view="password"] .auth-submit,
.auth-view[data-view="forget"] .auth-submit{ height:42px; font-size:15px; }

/* لینک‌های پایین فرم */
.auth-links{
  display:flex;
  align-items:center;
  margin-top:15px;
  font-size:15px;
  line-height:24px;
}
.auth-links a{ color:#0077db; }
.auth-links a:hover{ text-decoration:underline; }
.auth-links-center{ justify-content:center; }
.auth-links-between{ justify-content:space-between; padding:0 5px; }

@media (max-width:640px){
  .auth-overlay{ align-items:flex-end; padding:0; }
  .auth-modal{
    width:100%;
    border-radius:16px 16px 0 0;
    padding:60px 0 40px;
    max-height:94vh;
  }
  .auth-title{ font-size:20px; }
  .auth-sub{ font-size:15px; line-height:24px; margin-bottom:32px; }
}

/* ===== فوتر (مشابه alibaba.ir) ===== */
.site-footer{
  margin-top:40px;
  background:var(--gray-100);
  border-top:1px solid var(--gray-300);
}

.footer-top{
  max-width:var(--site-max);
  margin:0 auto;
  padding:44px var(--site-pad) 30px;
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
  gap:24px;
}

.footer-col h4{
  margin:0 0 16px;
  font-size:16.5px;
  font-weight:700;
  color:var(--gray-900);
}
.footer-col ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.footer-col ul a{
  font-size:15.5px;
  color:var(--gray-700);
  transition:color .15s ease;
}
.footer-col ul a:hover{ color:var(--nav-text-hover); }

/* برند / لوگو */
.footer-brand{ padding-left:8px; }
.footer-logo{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:14px;
}
.footer-logo .logo-mark{
  width:28px;height:28px;
  border-radius:7px;
  background:linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  display:block;
  flex:0 0 auto;
}
.footer-logo .logo-text{
  font-size:19px;
  font-weight:700;
  color:var(--gray-900);
}
.footer-desc{
  margin:0 0 18px;
  font-size:15px;
  line-height:1.9;
  color:var(--gray-700);
}
.footer-social{
  display:flex;
  align-items:center;
  gap:8px;
}
.social-ico{
  width:34px;height:34px;
  border-radius:50%;
  border:1px solid var(--gray-300);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--gray-700);
  transition:background .15s ease, color .15s ease, border-color .15s ease;
}
.social-ico svg{ width:16px; height:16px; }
.social-ico:hover{
  background:var(--yellow);
  border-color:var(--yellow);
  color:#3a2a00;
}

/* دانلود اپلیکیشن + تماس */
.footer-app-desc{
  margin:0 0 14px;
  font-size:15px;
  color:var(--gray-700);
  line-height:1.9;
}
.footer-app-badges{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:20px;
}
.app-badge{
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--gray-300);
  border-radius:10px;
  padding:9px 12px;
  background:var(--white);
  transition:border-color .15s ease, box-shadow .15s ease;
}
.app-badge:hover{
  border-color:var(--gray-700);
  box-shadow:0 3px 10px rgba(0,0,0,.06);
}
.app-badge svg{ width:20px; height:20px; flex:0 0 auto; color:var(--gray-900); }
.app-badge span{ font-size:14.5px; color:var(--gray-700); }
.app-badge span b{ font-size:15px; color:var(--gray-900); }

.footer-phone{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-phone .phone-ico{
  width:38px;height:38px;
  border-radius:50%;
  background:var(--white);
  border:1px solid var(--gray-300);
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--yellow-dark);
  flex:0 0 auto;
}
.footer-phone .phone-ico svg{ width:18px; height:18px; }
.footer-phone .phone-label{
  display:block;
  font-size:13.5px;
  color:var(--gray-500);
}
.footer-phone .phone-num{
  display:block;
  font-size:16px;
  font-weight:700;
  color:var(--gray-900);
  margin-top:2px;
}

/* نمادهای اعتماد */
.footer-trust{
  max-width:var(--site-max);
  margin:0 auto;
  padding:20px var(--site-pad);
  border-top:1px solid var(--gray-300);
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:14px;
}
.trust-badge{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid var(--gray-300);
  border-radius:10px;
  padding:10px 16px;
  background:var(--white);
  font-size:14.5px;
  color:var(--gray-700);
}
.trust-badge svg{ width:20px; height:20px; color:var(--gray-500); flex:0 0 auto; }

/* نوار پایانی کپی‌رایت */
.footer-bottom{
  border-top:1px solid var(--gray-300);
  padding:16px var(--site-pad);
  text-align:center;
}
.footer-bottom p{
  margin:0;
  font-size:14.5px;
  color:var(--gray-500);
}

@media (max-width:1000px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
    row-gap:34px;
  }
  .footer-brand{ grid-column:1 / -1; }
  .footer-app-col{ grid-column:1 / -1; }
  .app-badge{ max-width:280px; }
}

@media (max-width:700px){
  .footer-top{
    grid-template-columns: 1fr 1fr;
    padding:34px 16px 24px;
    gap:28px 16px;
  }
  .footer-trust{ padding:16px; gap:10px; }
  .trust-badge{ padding:8px 12px; font-size:13.5px; }
  .footer-bottom{ padding:14px 16px; }
}

@media (max-width:420px){
  .footer-top{ grid-template-columns: 1fr; }
  .footer-brand, .footer-app-col{ grid-column:auto; }
  .footer-social{ justify-content:flex-start; }
}

/* ===== دکمه بازگشت در نمای کد تایید ===== */
.auth-back{
  position:absolute;
  top:20px;
  right:20px;
  width:32px;
  height:32px;
  border:none;
  background:transparent;
  color:var(--gray-900);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:background .15s ease;
}
.auth-back:hover{ background:var(--gray-100); }
.auth-back svg{ width:19px; height:19px; }

/* ===== باکس‌های کد تایید ===== */
.otp-boxes{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-bottom:22px;
}
.otp-box{
  width:52px;
  height:56px;
  border:1px solid var(--gray-300);
  border-radius:12px;
  text-align:center;
  font-size:22px;
  font-weight:700;
  color:var(--gray-900);
  outline:none;
  transition:border-color .15s ease;
}
.otp-box:focus{ border-color:#0077db; }
.otp-box.invalid{ border-color:#dd4b53; }

.otp-timer{
  margin:0 0 26px;
  font-size:15px;
  color:var(--gray-500);
  text-align:center;
}
.otp-resend{
  display:block;
  margin:0 auto 26px;
  border:none;
  background:transparent;
  color:#0077db;
  font-family:inherit;
  font-size:15.5px;
  font-weight:600;
}
.otp-resend:hover{ text-decoration:underline; }

/* ===== آیتم کاربر واردشده در نوار بالا ===== */
.item-user .item-text{ font-weight:700; }

/* ===== منوی بازشوی کاربر (مطابق menu.png / alibaba.ir) ===== */
.user-menu{ position:relative; }
.item-user-trigger{
  display:flex;
  align-items:center;
  gap:7px;
  white-space:nowrap;
  color: var(--nav-text);
  font-size:16px;
  line-height:1;
  transition: color .15s ease;
}
.item-user-trigger:hover{ color: var(--nav-text-hover); }
.item-user-trigger .item-text{ font-weight:700; }
.user-caret{
  width:13px;height:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--gray-500);
  transition: transform .2s ease;
}
.user-caret svg{ width:100%; height:100%; }
.user-menu.open .user-caret{ transform:rotate(180deg); }

.user-dropdown{
  position:absolute;
  top:calc(100% + 16px);
  right:-6px;
  width:308px;
  background:var(--white);
  border-radius:14px;
  box-shadow: 0 16px 40px rgba(0,0,0,.14);
  border:1px solid #ececec;
  padding:18px 18px 10px;
  opacity:0;
  visibility:hidden;
  transform:translateY(-8px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index:60;
}
.user-menu.open .user-dropdown{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.ud-head{
  padding-bottom:14px;
}
.ud-phone{
  font-size:18px;
  font-weight:700;
  color:var(--gray-900);
}
.ud-balance{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-bottom:14px;
}
.ud-topup{
  display:flex;
  align-items:center;
  gap:4px;
  color:#1a73e8;
  font-size:15.5px;
  font-weight:600;
}
.ud-topup:hover{ text-decoration:underline; }
.ud-topup svg{ width:14px; height:14px; }
.ud-balance-amount{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:16px;
  font-weight:700;
  color:var(--gray-900);
}
.ud-balance-amount svg{ width:18px; height:18px; color:var(--gray-500); }
.ud-divider{
  height:1px;
  background:#ececec;
  margin:0 -18px;
}
.ud-list{
  display:flex;
  flex-direction:column;
  padding-top:6px;
}
.ud-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:13px 0;
  font-size:16px;
  color:var(--gray-900);
  border-bottom:1px solid #f2f2f2;
  transition:color .15s ease;
}
.ud-item:last-child{ border-bottom:none; }
.ud-item:hover{ color:var(--nav-text-hover); }
.ud-item-ico{
  width:20px;height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--gray-500);
  flex:0 0 auto;
}
.ud-item-ico svg{ width:100%; height:100%; }
.ud-item-logout{ color:#dd4b53; }
.ud-item-logout .ud-item-ico{ color:#dd4b53; }
.ud-item-logout:hover{ color:#b53a41; }
.ud-item-logout:hover .ud-item-ico{ color:#b53a41; }

@media (max-width:600px){
  .user-dropdown{
    position:fixed;
    top:60px;
    left:10px;
    right:10px;
    width:auto;
  }
}

/* ===== مودال «جستجوی خود را به‌روز کنید» (بیش از ۱۰ دقیقه از جستجو گذشته) =====
   این مودال هم در index.php (hotel-search.js) و هم در hotel.php
   (hotel-detail.js) به‌صورت پویا (بدون نیاز به مارک‌آپ از قبل در صفحه)
   ساخته می‌شود؛ کلاس‌ها عمداً در هر دو فایل یکسانند. */
.asr-stale-overlay{
  position: fixed;
  inset: 0;
  background: rgba(20,20,20,.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.asr-stale-modal{
  background: var(--white);
  border-radius: 16px;
  max-width: 420px;
  width: 100%;
  padding: 34px 28px 28px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.asr-stale-icon-wrap{
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fdf1dc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}
.asr-stale-icon-wrap svg{ width: 44px; height: 44px; color: var(--yellow-dark); }
.asr-stale-title{ font-size: 18px; font-weight: 800; color: var(--gray-900); margin: 0 0 12px; }
.asr-stale-text{ font-size: 13.5px; line-height: 1.9; color: var(--gray-700); margin: 0 0 26px; }
.asr-stale-actions{ display: flex; gap: 12px; }
.asr-stale-btn{
  flex: 1 1 0;
  border-radius: 10px;
  padding: 12px 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease;
}
.asr-stale-btn-outline{
  background: var(--white);
  border: 1.5px solid var(--gray-900);
  color: var(--gray-900);
}
.asr-stale-btn-outline:hover{ background: var(--gray-100); }
.asr-stale-btn-primary{
  background: var(--yellow);
  border: 1.5px solid var(--yellow);
  color: var(--gray-900);
}
.asr-stale-btn-primary:hover{ background: var(--yellow-dark); border-color: var(--yellow-dark); }

@media (max-width: 480px){
  .asr-stale-modal{ padding: 28px 20px 22px; }
  .asr-stale-actions{ flex-direction: column-reverse; }
}

/* =========================================================================
   عرض باکس نتایج = عرض بنر هتل (تمام‌عرض)
   وقتی نتایج واقعی جستجو (با پنل فیلتر) در #featuredHotels نمایش داده می‌شود،
   دیگر محدود به --site-max (۱۲۰۰px) نیست؛ عرض دقیقش را hotel-search.js
   (syncResultsWidth) برابر عرض واقعی عکس بنر هتل می‌گذارد. حالت پیش‌فرض (هتل‌های برتر) دست‌نخورده می‌ماند.
   ========================================================================= */
.featured-hotels:has(.hsr-layout){
  max-width:none;
  padding:0 24px;
}
@media (max-width:700px){
  .featured-hotels:has(.hsr-layout){ padding:0 16px; }
}

/* =========================================================================
   کارت نتیجه‌ی جستجوی هتل — «تایل» (مطابق tile.jpg)
   اندازه‌ها از تصویر مرجع (عرض ۱۵۳۶px، عرض کاشی ≈۱۴۹۲px) برداشته شده و
   نسبت‌محور است: خودِ کاشی container است و ابعاد بر پایه‌ی cqw (یک‌صدم
   عرض کاشی) تعیین می‌شود؛ پس در هر عرضی (حتی کنار پنل فیلتر) تناسب
   تصویر حفظ می‌شود. فونت‌ها کوچک‌تر شده و برای خوانایی بولدتر هستند،
   فاصله‌ها و padding ها کمتر.
   رنگ‌ها: دکمه #0864e4، جعبه‌ی امتیاز #0444a4، عنوان #0c2040،
   ستاره #fcb828، آدرس #808894.
   ========================================================================= */
.htl-tile-list{ display:flex; flex-direction:column; gap:12px; }

.htl-tile{
  --tile-blue:#0864e4;
  --tile-blue-dark:#0653c0;
  --tile-score:#0444a4;
  --tile-navy:#0c2040;
  --tile-ink:#101c2c;
  --tile-green:#10805c;
  --tile-muted:#808894;
  --tile-meta:#78808f;
  --tile-gold:#fcb828;
  container-type:inline-size;
  font-family:'Vazirmatn', Tahoma, Arial, sans-serif;
  display:flex;
  align-items:stretch;
  gap:clamp(8.96px, 1.23cqw, 17.92px);
  background:var(--white);
  border-radius:16px;
  padding:clamp(11.2px, 1.68cqw, 24.64px);
  box-shadow:0 2px 12px rgba(30,60,110,.07);
  cursor:pointer;
  transition:box-shadow .15s ease;
}
.htl-tile:hover{ box-shadow:0 6px 20px rgba(30,60,110,.13); }
.htl-tile.is-soldout{ opacity:.65; }

/* ---------- ستون قیمت (راست‌ترین) ---------- */
.htl-tile-price{
  flex:0 0 clamp(190.4px, 21.84cqw, 324.8px);
  display:flex;
  flex-direction:column;
  padding-inline-end:clamp(11.2px, 1.79cqw, 26.88px);
  border-inline-end:1px solid #e8ecf2;
  min-width:0;
}
.htl-tile-room{ display:flex; align-items:flex-start; justify-content:flex-start; gap:6px; }
.htl-tile-room-name{
  flex:1 1 auto; text-align:right;
  font-size:clamp(13.44px, 1.14cqw, 16.8px); font-weight:700; line-height:1.5; color:var(--tile-ink);
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0;
}
.htl-tile-fav{
  flex:0 0 auto; width:22.4px; height:22.4px; border:none; background:none; padding:0;
  color:var(--tile-ink); display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.htl-tile-fav svg{ width:21.28px; height:21.28px; }
.htl-tile-fav.on{ color:#e5453f; }
.htl-tile-fav.on svg path{ fill:currentColor; }
.htl-tile-room-meta{
  margin-top:2px; display:flex; align-items:center; gap:6px;
  font-size:clamp(11.76px, .952cqw, 14px); font-weight:500; color:var(--tile-meta);
}
.htl-tile-room-meta svg{ width:13.44px; height:13.44px; flex:0 0 auto; }
.htl-tile-room-meta .sep{ color:#c9d0dc; }
.htl-tile-amount{ margin-top:auto; direction:rtl; }
.htl-tile-old{ display:block; font-size:13.44px; color:#9aa3b5; text-decoration:line-through; text-align:right; }
.htl-tile-from{
  font-size:clamp(15.68px, 1.62cqw, 23.52px); font-weight:800; color:var(--tile-green); line-height:1.4; text-align:right;
}
.htl-tile-from small{ font-size:inherit; font-weight:800; }
.htl-tile-per{ font-size:clamp(11.76px, .952cqw, 14px); font-weight:600; color:#545c6c; margin-top:6px; text-align:right; }
.htl-tile-part{
  display:inline-block; margin-top:4px; font-size:12.32px; font-weight:700;
  color:#b8860b; background:#fdf3dc; border-radius:6px; padding:1px 7px;
}
.htl-tile-cta{
  margin-top:12px;
  display:flex; align-items:center; justify-content:center; position:relative;
  height:clamp(42.56px, 4.48cqw, 62.72px); border-radius:12px; border:none;
  background:var(--tile-blue); color:#fff; font-family:inherit;
  font-size:clamp(13.44px, 1.18cqw, 16.8px); font-weight:700;
  transition:background .15s ease; text-decoration:none; padding-inline-start:22px;
}
.htl-tile-cta:hover{ background:var(--tile-blue-dark); }
.htl-tile-cta svg{ position:absolute; inset-inline-start:14px; width:17.92px; height:17.92px; }
.htl-tile-soldout{
  margin-top:12px; height:clamp(42.56px, 4.48cqw, 62.72px); border-radius:12px; background:var(--gray-100);
  color:var(--gray-500); font-weight:700; font-size:14.56px; display:flex; align-items:center; justify-content:center;
}
.htl-tile-package{
  margin-top:6px; white-space:nowrap; font-size:12.32px; font-weight:700; color:#8a6d1a;
  background:#fffbe6; border:1px solid #f5e6a8; border-radius:8px; padding:4px 8px; text-align:center;
}

/* ---------- ستون اطلاعات ---------- */
.htl-tile-info{ flex:1 1 auto; min-width:0; display:flex; flex-direction:column; padding:0; }
.htl-tile-titlerow{ display:flex; align-items:center; gap:clamp(8px, 1cqw, 15px); flex-wrap:nowrap; min-width:0; }
.htl-tile-name{
  margin:0; font-size:clamp(16.8px, 1.96cqw, 28px); font-weight:800; color:var(--tile-navy); line-height:1.4;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; flex:0 1 auto;
}
.htl-tile-name a{ color:inherit; }
/* ستاره‌ها قبل از نام (سمت راست در RTL)، کنار هم و نزدیک */
.htl-tile-stars{ display:flex; gap:1px; color:var(--tile-gold); flex:0 0 auto; direction:rtl; }
.htl-tile-stars svg{ display:block; width:clamp(14px, 1.15cqw, 18px); height:auto; }
.htl-tile-stars .off{ color:#d5d9e2; }
.htl-tile-addr{
  margin-top:4px; display:flex; align-items:center; gap:7px;
  font-size:clamp(12.88px, 1.18cqw, 16.8px); font-weight:500; color:var(--tile-muted); line-height:1.5;
}
.htl-tile-addr svg{ width:16.8px; height:16.8px; flex:0 0 auto; color:#1c58c4; }
.htl-tile-addr span{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.htl-tile-score{ margin-top:10px; display:flex; align-items:center; gap:8px; }
.htl-tile-score-box{
  min-width:clamp(38.08px, 3.47cqw, 51.52px); height:clamp(38.08px, 3.47cqw, 51.52px); padding:0 6px; border-radius:8px; background:var(--tile-score);
  color:#fff; font-size:clamp(17.92px, 1.79cqw, 25.76px); font-weight:800; display:flex; align-items:center; justify-content:center;
}
.htl-tile-score-txt{ display:flex; flex-direction:column; gap:2px; }
.htl-tile-score-txt b{ font-size:clamp(12.88px, 1.12cqw, 16.24px); font-weight:700; color:var(--tile-navy); line-height:1.3; }
.htl-tile-score-txt span{ font-size:clamp(11.2px, .9184cqw, 13.44px); font-weight:500; color:var(--tile-meta); display:flex; align-items:center; gap:4px; line-height:1.3; }
.htl-tile-score-txt svg{ width:13.44px; height:13.44px; }

.htl-tile-badges{ margin-top:6px; display:flex; flex-wrap:wrap; gap:6px; }
.htl-tile-badges .hsr-badge{ font-size:12.32px; padding:2px 8px; }

.htl-tile-amen{
  margin-top:auto; padding-top:8px;
  display:grid; grid-template-columns:repeat(5, 1fr); align-items:start; /* ۵ آیتم امکانات */
}
.htl-tile-amen-item{
  display:flex; flex-direction:column; align-items:center; gap:clamp(6px, .6cqw, 9px); text-align:center;
  font-size:clamp(10.5px, .84cqw, 12.5px); font-weight:500; color:#2c3040; padding:0 4px; min-width:0;
}
.htl-tile-amen-item + .htl-tile-amen-item{ border-inline-start:1px solid #e8ecf2; }
.htl-tile-amen-item svg{ width:clamp(22px, 1.74cqw, 27px); height:clamp(22px, 1.74cqw, 27px); color:var(--tile-navy); }
.htl-tile-amen-item span{ line-height:1.4; }

/* ---------- تامبنیل‌ها و گالری ---------- */
.htl-tile-thumbs{ flex:0 0 clamp(70px, 8.7cqw, 130px); display:flex; flex-direction:column; gap:7px; }
.htl-tile-thumb{
  flex:1 1 0; min-height:0; border-radius:8px; background:var(--gray-100) center/cover no-repeat;
  border:2px solid transparent; padding:0; cursor:pointer;
}
.htl-tile-thumb.active{ border-color:var(--tile-blue); }
.htl-tile-gallery{
  flex:0 0 clamp(200px, 28.8cqw, 430px); position:relative; min-height:clamp(150px, 18.2cqw, 272px); border-radius:12px; overflow:hidden;
  background:var(--gray-100);
}
.htl-tile-gallery-img{
  position:absolute; inset:0; background:var(--gray-100) center/cover no-repeat;
  transition:opacity .2s ease;
}
.htl-tile-photocount{
  position:absolute; top:10px; left:10px; z-index:2;
  display:flex; align-items:center; gap:6px; height:29.12px; padding:0 10px; border-radius:999px;
  background:rgba(12,32,64,.88); color:#fff; font-size:12.88px; font-weight:700;
}
.htl-tile-photocount svg{ width:15.68px; height:15.68px; }
.htl-tile-discount{
  position:absolute; bottom:10px; right:10px; z-index:2; background:#e5453f; color:#fff;
  font-size:13.44px; font-weight:700; padding:3px 8px; border-radius:6px;
}
.htl-tile-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:2;
  width:29.12px; height:29.12px; border-radius:50%; border:none; padding:0;
  background:rgba(12,32,64,.62); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer;
}
.htl-tile-arrow:hover{ background:rgba(12,32,64,.85); }
.htl-tile-arrow svg{ width:14.56px; height:14.56px; }
.htl-tile-arrow.prev{ right:8px; }  /* RTL: «قبلی» سمت راست */
.htl-tile-arrow.next{ left:8px; }   /* RTL: «بعدی» سمت چپ */

/* ---------- ریسپانسیو (بر اساس عرض خودِ کاشی) ---------- */
@container (max-width: 851.2px){
  .htl-tile-thumbs{ display:none; }
}
@media (max-width:700px){
  .htl-tile{ flex-direction:column-reverse; padding:12px; gap:10px; border-radius:14px; }
  .htl-tile-price{ flex:0 0 auto; padding-inline-end:0; border-inline-end:none; border-top:1px solid #e8ecf2; padding-top:10px; }
  .htl-tile-thumbs{ display:none; }
  .htl-tile-gallery{ flex:0 0 auto; width:100%; min-height:0; height:200px; }
  .htl-tile-amount{ margin-top:8px; }
  .htl-tile-per{ margin-top:4px; }
  .htl-tile-cta, .htl-tile-soldout{ height:44px; margin-top:10px; }
  .htl-tile-name{ font-size:17px; }
  .htl-tile-addr{ font-size:13px; }
  .htl-tile-from{ font-size:17px; }
}
@media (max-width:480px){
  .htl-tile-name{ font-size:16px; white-space:normal; }
  .htl-tile-amen-item{ font-size:11px; padding:0 2px; }
  .htl-tile-amen-item svg{ width:22px; height:22px; }
}

/* =========================================================================
   پنل فیلتر نتایج + نوار مرتب‌سازی — هماهنگ با «کاشی» هتل
   همان پالت (سرمه‌ای #0c2040، آبی #0864e4، متن کم‌رنگ #808894، خط #e8ecf2)،
   همان فونت Vazirmatn، همان گوشه‌های گرد و سایه‌ی نرم. این بلوک عمداً آخر
   فایل است تا استایل قدیمی (زرد) را بدون دست‌زدن به منطق JS بازنویسی کند.
   ========================================================================= */
.hsr-layout{ gap:14px; font-family:'Vazirmatn', Tahoma, Arial, sans-serif; }
.hsr-toolbar{ margin-bottom:12px; font-family:'Vazirmatn', Tahoma, Arial, sans-serif; }
.hsr-head{ font-size:15px; font-weight:800; color:#0c2040; margin:0 0 12px; }

/* --- مرتب‌سازی --- */
.hsr-sort-group{ gap:6px; }
.hsr-sort-btn{
  border:1px solid #e8ecf2; background:#fff; color:#545c6c;
  font-size:12.5px; font-weight:600; padding:6px 13px; border-radius:999px;
  box-shadow:0 1px 6px rgba(30,60,110,.05);
}
.hsr-sort-btn:hover{ border-color:#0864e4; color:#0864e4; }
.hsr-sort-btn.active{ background:#0864e4; border-color:#0864e4; color:#fff; font-weight:700; }

/* --- پنل فیلتر --- */
.hsr-filters{
  flex:0 0 272px; width:272px;
  background:#fff; border:none; border-radius:16px; padding:14px;
  box-shadow:0 2px 12px rgba(30,60,110,.07);
  font-family:'Vazirmatn', Tahoma, Arial, sans-serif;
}
.hsr-filters-head{ margin-bottom:10px; padding-bottom:10px; border-bottom:1px solid #e8ecf2; }
.hsr-filters-title{ font-size:15px; font-weight:800; color:#0c2040; }
.hsr-filters-clear{ color:#0864e4; font-size:12.5px; font-weight:700; cursor:pointer; }
.hsr-filters-clear:hover{ text-decoration:underline; }

.hsr-filter-dropdown{ margin-top:8px; border:1px solid #e8ecf2; border-radius:12px; background:#fff; }
.hsr-filter-toggle{
  background:#fff; color:#0c2040; font-size:13.5px; font-weight:800; padding:11px 12px;
}
.hsr-filter-dropdown.open .hsr-filter-toggle{ border-bottom:1px solid #eef1f6; }
.hsr-filter-count{ background:#0864e4; color:#fff; font-size:11.5px; font-weight:700; min-width:18px; height:18px; line-height:18px; }
.hsr-chevron{ color:#808894; width:14px; height:14px; }
.hsr-filter-panel{ padding:4px 12px 10px; }

.hsr-checkbox-row{ font-size:13px; font-weight:500; color:#2c3040; padding:5px 0; gap:9px; }
.hsr-checkbox-row input[type="checkbox"]{ width:16px; height:16px; accent-color:#0864e4; border-radius:4px; }
.hsr-checkbox-stars{ color:#fcb828; font-size:12.5px; letter-spacing:1px; }
.hsr-checkbox-count{ font-size:11.5px; font-weight:600; color:#808894; }
.hsr-mobile-sheet-subhead{ color:#808894; border-top-color:#e8ecf2; font-size:12px; font-weight:800; }

/* --- جستجوی نام هتل --- */
.hsr-name-search-input{
  border:1px solid #e8ecf2; border-radius:10px; background:#f7f9fc;
  font-size:13px; font-weight:500; color:#0c2040; padding:9px 34px 9px 10px;
}
.hsr-name-search-input::placeholder{ color:#808894; }
.hsr-name-search-input:focus{ outline:none; border-color:#0864e4; background:#fff; }
.hsr-name-search-icon{ color:#808894; }

/* --- دکمه‌های ستاره --- */
.hsr-pill-filter{
  border:1px solid #e8ecf2; background:#fff; color:#0c2040;
  font-size:12.5px; font-weight:700; padding:6px 11px; border-radius:999px;
}
.hsr-pill-filter:hover{ border-color:#0864e4; }
.hsr-pill-filter.active{ border-color:#0864e4; background:#eaf2ff; color:#0864e4; }
.hsr-pill-filter-count{ background:#eef1f6; color:#545c6c; font-size:11px; }
.hsr-pill-filter.active .hsr-pill-filter-count{ background:#0864e4; color:#fff; }

/* --- اسلایدر قیمت --- */
.hsr-price-value{ background:#eaf2ff; color:#0c2040; font-size:12.5px; font-weight:800; border-radius:8px; padding:3px 8px; }
.hsr-price-hist-bar{ background:#dfe6f1; }
.hsr-price-track{ background:#e3e9f3; height:4px; }
.hsr-price-range-fill{ background:#0864e4; }
.hsr-price-thumb{ border:2.5px solid #0864e4; background:#fff; box-shadow:0 1px 5px rgba(8,100,228,.3); }
.hsr-price-thumb:focus-visible{ outline:2px solid #0864e4; }
.hsr-price-bounds span{ font-size:11.5px; font-weight:600; color:#808894; }

/* --- موبایل: دکمه‌های کپسولی و دکمه‌ی اعمال --- */
.hsr-pill-btn{ font-family:'Vazirmatn', Tahoma, Arial, sans-serif; font-weight:700; color:#0c2040; border-color:#e8ecf2; }
.hsr-pill-btn.active, .hsr-pill-btn[aria-expanded="true"]{ background:#eaf2ff; border-color:#0864e4; color:#0864e4; }
.hsr-mobile-sort-option.active{ color:#0864e4; }
.hsr-filter-apply{ background:#0864e4; border-radius:12px; font-weight:700; font-family:'Vazirmatn', Tahoma, Arial, sans-serif; }
.hsr-filter-apply:hover{ background:#0653c0; }

/* --- حاشیه‌ی کنار نتایج/فیلتر حداقل (مثل alibaba.ir) --- */
.featured-hotels:has(.hsr-layout){ max-width:none; padding:0 8px; }
@media (max-width:700px){ .featured-hotels:has(.hsr-layout){ padding:0 10px; } }
.hsr-layout{ gap:10px; }
.hsr-filters{ padding:10px; }
.hsr-filter-panel{ padding:2px 10px 8px; }

/* --- فیلتر: پهن‌تر (از عرض کاشی کم شد)، فونت یک سایز بزرگ‌تر، حاشیه‌ی کمتر --- */
.featured-hotels:has(.hsr-layout){ padding:0 4px; }
.hsr-layout{ gap:6px; }
.hsr-filters{ flex:0 0 296px; width:296px; padding:8px; }
.hsr-filters-head{ margin-bottom:8px; padding-bottom:8px; }
.hsr-filters-title{ font-size:16.5px; }
.hsr-filters-clear{ font-size:14px; }
.hsr-filter-dropdown{ margin-top:6px; }
.hsr-filter-toggle{ font-size:15px; padding:10px 10px; }
.hsr-filter-count{ font-size:12.5px; }
.hsr-filter-panel{ padding:2px 8px 6px; }
.hsr-checkbox-row{ font-size:14.5px; padding:4px 0; }
.hsr-checkbox-stars{ font-size:14px; }
.hsr-checkbox-count{ font-size:13px; }
.hsr-name-search-input{ font-size:14.5px; }
.hsr-pill-filter{ font-size:14px; padding:6px 10px; }
.hsr-pill-filter-count{ font-size:12px; }
.hsr-price-value{ font-size:14px; }
.hsr-price-bounds span{ font-size:13px; }
.hsr-head{ font-size:16.5px; }
.hsr-sort-btn{ font-size:14px; }

/* =========================================================================
   هدر و فوتر هم‌عرض بنر هتل و باکس نتایج (روی صفحه‌ی اصلی، با یا بدون نتایج)
   hotel-search.js (syncResultsWidth) دو متغیر --results-w و --results-pad
   را روی <html> می‌گذارد و کلاس hsr-wide را اضافه می‌کند؛ در موبایل (بنر مخفی)
   هیچ‌کدام از این قواعد اعمال نمی‌شود و هدر/فوتر مثل قبل است.
   ========================================================================= */
html.hsr-wide .topbar{
  padding-inline:calc((100% - var(--results-w)) / 2 + var(--results-pad));
}
html.hsr-wide .footer-top,
html.hsr-wide .footer-trust{
  max-width:var(--results-w);
  padding-inline:var(--results-pad);
}
html.hsr-wide .footer-bottom{
  padding-inline:calc((100% - var(--results-w)) / 2 + var(--results-pad));
}
@media (max-width:700px){
  html.hsr-wide .topbar{ padding-inline:14px; }
  html.hsr-wide .footer-top{ max-width:var(--site-max); padding-inline:16px; }
  html.hsr-wide .footer-trust{ max-width:var(--site-max); padding-inline:16px; }
  html.hsr-wide .footer-bottom{ padding-inline:16px; }
}

/* --- فیلتر کمی پهن‌تر (از عرض کاشی کم شد؛ کاشی‌ها نسبتی‌اند و بهم نمی‌ریزند) --- */
.hsr-filters{ flex:0 0 314px; width:314px; }

/* --- فاصله بین پنل فیلتر و کاشی‌ها؛ عرض فیلتر به حالت قبل برگشت --- */
.hsr-layout{ gap:20px; }
.hsr-filters{ flex:0 0 296px; width:296px; }

/* --- تامبنیل‌ها و عکس بزرگ: فاصله دقیقاً مثل tile.jpg (۱۲px از ۱۵۳۶ ≈ ۰٫۸cqw؛ بین تامبنیل‌ها ۱۰px) --- */
.htl-tile{ gap:clamp(6px, .8cqw, 12px); }
.htl-tile-thumbs{ gap:clamp(6px, .66cqw, 10px); }
.htl-tile-thumb{ border:none; box-shadow:none; }
.htl-tile-thumb.active{ border:none; box-shadow:inset 0 0 0 2px var(--tile-blue); }

/* =========================================================================
   کاشی نسخه‌ی موبایل/تبلت (≤۹۰۰px) — مطابق mob.jpg
   راست: عنوان+ستاره، آدرس، امتیاز، امکانات، باکس اتاق | چپ: عکس بزرگ + ۴ تامبنیل
   پایین: دکمه‌ی «مشاهده جزئیات و رزرو» (راست) و قیمت (سمت چپ دکمه)
   زیر ۵۶۰px: ستون اطلاعات زیر عکس‌ها می‌آید (همان اجزا و همان ظاهر).
   اندازه‌ها نسبت به عرض کارت (cqw، عرض مرجع ۱۴۳۸px) و با حداقل خوانایی.
   ========================================================================= */

/* دسکتاپ: wrapperهای جدید نباید چیدمان را عوض کنند */
.htl-tile-roombox, .htl-tile-buy, .htl-tile-media{ display:contents; }
.htl-tile-thumb[data-idx="0"]{ display:none; }   /* دسکتاپ فقط تامبنیل ۲ تا ۴ */
.htl-tile-special{ display:none; }

@media (max-width:700px){
  .htl-tile{
    display:grid;
    grid-template-columns:minmax(0,.77fr) minmax(0,1fr);
    grid-template-rows:auto auto auto auto auto 1fr auto;
    grid-template-areas:
      "title media"
      "addr  media"
      "score media"
      "badges media"
      "amen  media"
      "room  media"
      "buy   buy";
    column-gap:clamp(10px, 2.2cqw, 32px);
    row-gap:0;
    align-items:start;
    padding:clamp(10px, 1.6cqw, 24px);
    border-radius:clamp(14px, 1.6cqw, 22px);
    font-family:'Vazirmatn', Tahoma, Arial, sans-serif;
  }
  .htl-tile-price, .htl-tile-info{ display:contents; }
  .htl-tile-media{
    grid-area:media; display:flex; flex-direction:column; gap:clamp(6px, .85cqw, 12px); min-width:0;
  }

  /* --- عنوان + ستاره --- */
  .htl-tile-titlerow{ grid-area:title; gap:clamp(6px, 1cqw, 14px); align-self:center; margin-top:clamp(2px, .8cqw, 12px); }
  .htl-tile-name{ font-size:clamp(16px, 2.6cqw, 28px); font-weight:800; }
  .htl-tile-stars svg{ width:clamp(14px, 1.8cqw, 21px); }
  .htl-tile-addr{ grid-area:addr; margin-top:clamp(4px, .9cqw, 12px); font-size:clamp(12px, 1.5cqw, 17px); font-weight:500; }
  .htl-tile-addr svg{ width:clamp(14px, 1.6cqw, 20px); height:clamp(14px, 1.6cqw, 20px); }

  /* --- امتیاز: جعبه‌ی آبی روشن با عدد آبی --- */
  .htl-tile-score{ grid-area:score; margin-top:clamp(8px, 1.8cqw, 24px); gap:clamp(8px, 1.2cqw, 16px); }
  .htl-tile-score-box{
    min-width:clamp(46px, 6.1cqw, 80px); height:clamp(46px, 6.1cqw, 80px);
    background:#eaf2ff; color:#0864e4; border-radius:clamp(10px, 1.1cqw, 16px);
    font-size:clamp(20px, 3cqw, 34px); font-weight:800;
  }
  .htl-tile-score-txt b{ font-size:clamp(13px, 1.6cqw, 18px); font-weight:800; }
  .htl-tile-score-txt span{ font-size:clamp(11px, 1.4cqw, 15px); font-weight:500; }
  .htl-tile-score-txt span svg{ display:none; }
  .htl-tile-badges{ grid-area:badges; margin-top:clamp(6px, 1cqw, 12px); }

  /* --- امکانات: ۵ مورد با جداکننده؛ ترتیب مطابق تصویر (راست→چپ):
         پارکینگ، مورد ویژه، رستوران، استخر، اینترنت --- */
  .htl-tile-amen{ grid-area:amen; margin-top:clamp(10px, 2.4cqw, 34px); padding-top:0; width:100%; }
  .htl-tile-amen-item:nth-child(4){ order:1; }
  .htl-tile-amen-item:nth-child(1){ order:2; }
  .htl-tile-amen-item:nth-child(3){ order:3; }
  .htl-tile-amen-item:nth-child(2){ order:4; }
  .htl-tile-amen-item:nth-child(5){ order:5; }
  .htl-tile-amen-item{ font-size:clamp(10.5px, 1.25cqw, 14px); font-weight:500; padding:0 clamp(2px, .5cqw, 8px); gap:clamp(5px, .8cqw, 10px); }
  .htl-tile-amen-item svg{ width:clamp(24px, 2.8cqw, 36px); height:clamp(24px, 2.8cqw, 36px); }
  .htl-tile-amen-item + .htl-tile-amen-item{ border-inline-start:1px solid #e3e8f0; }

  /* --- باکس اتاق: آیکون تخت (راست) | نام + توضیح | فلش (چپ) --- */
  .htl-tile-roombox{
    grid-area:room; align-self:start; margin-top:clamp(10px, 2.6cqw, 36px); width:100%;
    display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"ico name chev" "ico meta chev";
    align-items:center; column-gap:clamp(8px, 1.3cqw, 18px);
    background:#f6f8fc; border:1px solid #edf0f6; border-radius:clamp(12px, 1.3cqw, 18px);
    padding:clamp(8px, 1.4cqw, 20px) clamp(10px, 1.6cqw, 22px);
    box-sizing:border-box;
  }
  .htl-tile-roombox:has(.htl-tile-room-name:empty){ display:none; }
  .htl-tile-roombox::before{
    content:''; grid-area:ico; width:clamp(26px, 2.9cqw, 40px); height:clamp(26px, 2.9cqw, 40px);
    background:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%230c2e6e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 8v18M27 26V16a3 3 0 0 0-3-3H5M5 21h22'/><rect x='8' y='14.5' width='6.5' height='4.5' rx='1.4'/><rect x='17' y='14.5' width='6.5' height='4.5' rx='1.4'/></svg>");
  }
  .htl-tile-roombox::after{
    content:''; grid-area:chev; width:clamp(14px, 1.4cqw, 20px); height:clamp(14px, 1.4cqw, 20px);
    background:no-repeat center/contain url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c2e6e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M9 5l7 7-7 7'/></svg>");
    transform:scaleX(-1);
  }
  .htl-tile-room{ grid-area:name; margin:0; }
  .htl-tile-fav{ display:none; }
  .htl-tile-room-name{ font-size:clamp(14px, 1.85cqw, 20px); font-weight:800; color:#0c2040; }
  .htl-tile-room-meta{ grid-area:meta; margin:2px 0 0; font-size:clamp(11.5px, 1.55cqw, 16px); font-weight:500; color:#808894; }
  .htl-tile-room-meta svg{ display:none; }

  /* --- ردیف پایین: دکمه (راست) + قیمت (سمت چپ دکمه) --- */
  .htl-tile-buy{
    grid-area:buy; display:flex; align-items:center; width:100%;
    margin-top:clamp(10px, 1.7cqw, 24px); min-width:0;
  }
  .htl-tile-cta{
    order:1; flex:0 0 clamp(150px, 27.8cqw, 400px); margin:0;
    height:clamp(46px, 5cqw, 66px); border-radius:clamp(12px, 1.2cqw, 16px);
    font-size:clamp(14px, 1.9cqw, 20px); font-weight:700; background:#0a5fd8;
    padding-inline-start:clamp(26px, 3cqw, 40px);
  }
  .htl-tile-cta svg{ inset-inline-start:clamp(12px, 1.8cqw, 24px); width:clamp(16px, 1.7cqw, 22px); height:clamp(16px, 1.7cqw, 22px); }
  .htl-tile-amount{
    order:2; margin:0; margin-inline-start:clamp(10px, 3.9cqw, 56px); text-align:right; min-width:0;
  }
  .htl-tile-from{ font-size:clamp(16px, 2.6cqw, 28px); font-weight:800; color:#0e8a64; white-space:nowrap; }
  .htl-tile-per{ margin-top:2px; font-size:clamp(11.5px, 1.5cqw, 16px); font-weight:500; color:#808894; }
  .htl-tile-old{ font-size:clamp(11px, 1.3cqw, 14px); }
  .htl-tile-package, .htl-tile-soldout{ order:2; margin:0 clamp(10px, 2cqw, 28px) 0 0; }

  /* --- عکس بزرگ + تامبنیل‌ها --- */
  .htl-tile-gallery{
    flex:0 0 auto; width:100%; height:auto; min-height:0; aspect-ratio:3 / 2; border-radius:clamp(14px, 1.6cqw, 22px);
  }
  .htl-tile-special{
    display:flex; align-items:center; gap:6px; position:absolute; top:clamp(8px, 1.2cqw, 16px); left:clamp(8px, 1.2cqw, 16px); z-index:2;
    height:clamp(26px, 2.8cqw, 38px); padding:0 clamp(10px, 1.3cqw, 18px); border-radius:999px;
    background:#118a68; color:#fff; border:1.5px solid rgba(255,255,255,.55);
    font-size:clamp(11.5px, 1.45cqw, 16px); font-weight:700;
  }
  .htl-tile-special svg{ width:clamp(13px, 1.5cqw, 19px); height:clamp(13px, 1.5cqw, 19px); }
  .htl-tile-discount{ display:none; }
  .htl-tile-photocount{
    top:auto; bottom:clamp(8px, 1.2cqw, 16px); left:clamp(8px, 1.2cqw, 16px); height:clamp(26px, 2.8cqw, 38px);
    font-size:clamp(11.5px, 1.45cqw, 16px); background:rgba(12,24,48,.82);
  }
  .htl-tile-arrow{ width:clamp(26px, 3.2cqw, 46px); height:clamp(26px, 3.2cqw, 46px); background:rgba(12,24,48,.55); }
  .htl-tile-arrow svg{ width:clamp(13px, 1.5cqw, 20px); height:clamp(13px, 1.5cqw, 20px); }
  .htl-tile-thumbs{
    display:flex; flex:0 0 auto; flex-direction:row; gap:clamp(6px, .85cqw, 12px); width:100%;
  }
  .htl-tile-thumb, .htl-tile-thumb[data-idx="0"]{
    display:block; flex:1 1 0; min-width:0; height:auto; aspect-ratio:4 / 3;
    border:none; border-radius:clamp(8px, 1.1cqw, 16px); padding:0;
  }
  .htl-tile-thumb.active{ box-shadow:0 0 0 clamp(2px, .2cqw, 3px) #1c6bf0; }
}

/* ===== گوشی کوچک: همان چیدمان دو ستونه‌ی mob.jpg، فقط با اندازه‌های فشرده‌تر ===== */
@media (max-width:560px){
  .htl-tile{
    grid-template-columns:minmax(0,.92fr) minmax(0,1fr);
    column-gap:8px; padding:9px; border-radius:14px;
  }
  .htl-tile-media{ gap:5px; }

  .htl-tile-titlerow{ flex-wrap:wrap; gap:1px 5px; margin-top:2px; align-self:start; }
  .htl-tile-stars svg{ width:11px; }
  .htl-tile-name{ font-size:13.5px; line-height:1.35; white-space:normal; overflow:visible; }
  .htl-tile-addr{ margin-top:4px; font-size:10.5px; gap:4px; align-items:flex-start; }
  .htl-tile-addr svg{ width:12px; height:12px; margin-top:2px; }
  .htl-tile-addr span{ white-space:normal; overflow:visible; line-height:1.5; }

  .htl-tile-score{ margin-top:9px; gap:6px; }
  .htl-tile-score-box{ min-width:38px; height:38px; font-size:17px; border-radius:9px; padding:0 4px; }
  .htl-tile-score-txt b{ font-size:11.5px; }
  .htl-tile-score-txt span{ font-size:9.5px; line-height:1.35; }

  .htl-tile-amen{ margin-top:10px; }
  .htl-tile-amen-item{ font-size:9px; padding:0 1px; gap:4px; }
  .htl-tile-amen-item svg{ width:19px; height:19px; }

  .htl-tile-roombox{ margin-top:10px; padding:7px 8px; column-gap:6px; border-radius:11px; }
  .htl-tile-roombox::before{ width:20px; height:20px; }
  .htl-tile-roombox::after{ width:11px; height:11px; }
  .htl-tile-room-name{ font-size:11.5px; line-height:1.4; }
  .htl-tile-room-meta{ font-size:9.5px; line-height:1.4; }

  .htl-tile-buy{ margin-top:10px; }
  .htl-tile-cta{ flex:0 0 clamp(118px, 38%, 150px); height:40px; border-radius:11px; font-size:12px; padding-inline-start:20px; }
  .htl-tile-cta svg{ inset-inline-start:8px; width:14px; height:14px; }
  .htl-tile-amount{ margin-inline-start:8px; }
  .htl-tile-from{ font-size:13.5px; }
  .htl-tile-per{ font-size:10px; }

  .htl-tile-gallery{ border-radius:12px; }
  .htl-tile-special{ top:6px; left:6px; height:22px; padding:0 8px; font-size:10px; gap:4px; }
  .htl-tile-special svg{ width:11px; height:11px; }
  .htl-tile-photocount{ bottom:6px; left:6px; height:22px; padding:0 8px; font-size:10px; gap:4px; }
  .htl-tile-photocount svg{ width:11px; height:11px; }
  .htl-tile-arrow{ width:24px; height:24px; }
  .htl-tile-arrow svg{ width:12px; height:12px; }
  .htl-tile-arrow.prev{ right:5px; }
  .htl-tile-arrow.next{ left:5px; }
  .htl-tile-thumbs{ gap:4px; }
  .htl-tile-thumb, .htl-tile-thumb[data-idx="0"]{ border-radius:6px; }
}

/* موبایل: تقویمِ تمام‌صفحه باید روی همه‌چیز (حتی نوار بالا) باشد.
   پاپ‌آور داخل stacking-context پنل/فرم گیر می‌کند و z-index نوار بالا (۵۰) از آن بیشتر است؛
   پس تا وقتی تقویم باز است نوار بالا پنهان می‌شود (بدون نیاز به JS). */
@media (max-width:700px){
  body:has(.picker-root .popover.open) .topbar,
  body:has(.picker-root .popover.open) .tb-pill{ visibility:hidden; pointer-events:none; }
  body:has(.picker-root .popover.open){ overflow:hidden; }
  .picker-root .popover.open{ z-index:2147483000; }
}

/* ===== نوار ناوبری پایین (فقط موبایل) ===== */
.m-bottom-nav{ display:none; }
@media (max-width:700px){
  body{ padding-bottom:calc(74px + env(safe-area-inset-bottom,0px)); }
  .m-bottom-nav{
    display:flex; position:fixed; right:0; left:0; bottom:0; z-index:40;
    padding:8px 6px calc(8px + env(safe-area-inset-bottom,0px));
    background:#fff; border-top:1px solid #e8ebf2; box-shadow:0 -6px 20px rgba(20,30,70,.06);
  }
  .mbn-item{
    flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; gap:3px;
    padding:4px 2px; color:#9aa3b5; font-size:10.5px; font-weight:600; text-decoration:none; white-space:nowrap;
  }
  .mbn-item svg{ width:24px; height:24px; }
  .mbn-item.is-active{ color:#2b2bbf; color:var(--blue,#1f6ff2); font-weight:800; }
  .mbn-item.is-active svg{ stroke-width:2; }
  body:has(.picker-root .popover.open) .m-bottom-nav{ display:none; }
}

@media (max-width:700px){ .tb-actions{ display:none !important; } }
