/* =============================================================
   هتل لیلیوم | متل‌قو — شیوه‌نامه‌ی اصلی
   ساختار فایل:
   1. متغیرها (توکن‌های طراحی)
   2. بازنشانی و پایه
   3. تایپوگرافی
   4. ابزارک‌های عمومی (چیدمان، آیکون، دکمه)
   5. هدر و منوی کشویی
   6. هیرو
   7. اتاق‌ها
   8. ویژگی‌های سریع
   9. درباره ما
   10. گالری
   11. امکانات
   12. موقعیت مکانی
   13. فوتر
   14. نوار پایین موبایل و دکمه واتساپ
   15. صفحه‌ی جزئیات اتاق
   16. صفحه‌ی کافی‌شاپ
   17. دسترس‌پذیری و چاپ
   ============================================================= */

/* -------------------------------------------------------------
   1. متغیرها
   ------------------------------------------------------------- */
:root {
  /* رنگ‌های خنثی */
  --stone-50: #fafaf9;
  --stone-100: #f5f5f4;
  --stone-200: #e7e5e4;
  --stone-300: #d6d3d1;
  --stone-400: #a8a29e;
  --stone-500: #78716c;
  --stone-600: #57534e;
  --stone-700: #44403c;
  --stone-800: #292524;
  --stone-900: #1c1917;
  --stone-950: #0c0a09;

  /* سبز برند */
  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --green-950: #052e16;

  /* طلایی برند */
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --amber-600: #d97706;
  --amber-700: #b45309;

  --white: #ffffff;
  --whatsapp: #25d366;

  /* فونت */
  --font-body: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;
  --font-display: "Vazirmatn", Tahoma, "Segoe UI", sans-serif;

  /* اندازه‌ها */
  --header-height: 44px;
  --container: 72rem; /* 1152px */
  --container-narrow: 56rem; /* 896px */
  --radius-sm: 0.75rem;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-full: 9999px;

  /* لایه‌بندی */
  --z-header: 40;
  --z-drawer: 50;
  --z-float: 60;
  --z-lightbox: 70;

  /* ارتفاع تقریبی نوار پایین موبایل — دکمه‌ی واتساپ از آن بالاتر می‌ماند */
  --bottom-nav-height: 5.25rem;

  --transition: 200ms ease;
}

/* -------------------------------------------------------------
   2. بازنشانی و پایه
   ------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

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

body {
  min-height: 100vh;
  background-color: var(--stone-50);
  color: var(--stone-900);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
iframe {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul {
  list-style: none;
}

/* -------------------------------------------------------------
   3. تایپوگرافی
   ------------------------------------------------------------- */
.font-display {
  font-family: var(--font-display);
  font-weight: 800;
}

.text-h1 {
  font-size: clamp(28px, 6vw, 48px);
  font-weight: 800;
  line-height: 1.2;
}

.text-h2 {
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 800;
  line-height: 1.25;
}

.text-h3 {
  font-size: clamp(18px, 3.5vw, 28px);
  font-weight: 700;
  line-height: 1.3;
}

.text-body {
  font-size: clamp(14px, 2.2vw, 18px);
  line-height: 1.9;
}

.text-desc {
  font-size: clamp(13px, 1.8vw, 16px);
  line-height: 1.8;
}

.eyebrow {
  margin-bottom: 0.625rem;
  color: var(--amber-700);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

/* فاصله‌ی حروف کمتر — برای عناوین بلندتر */
.eyebrow--tight {
  letter-spacing: 0.2em;
}

/* -------------------------------------------------------------
   4. ابزارک‌های عمومی
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: 3.5rem;
  scroll-margin-top: var(--header-height);
}

.section__head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section__head .text-desc {
  color: var(--stone-500);
}

/* آیکون‌ها */
.icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.icon--xs {
  width: 0.875rem;
  height: 0.875rem;
}

.icon--md {
  width: 1.25rem;
  height: 1.25rem;
}

.icon--lg {
  width: 1.5rem;
  height: 1.5rem;
}

.icon--thin {
  stroke-width: 1.5;
}

.icon--bold {
  stroke-width: 2.5;
}

/* جداکننده‌ی بخش‌ها با نشان لیلیوم */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.divider::before,
.divider::after {
  content: "";
  width: 2.5rem;
  height: 1px;
  background-color: var(--stone-300);
}

.divider img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
}

/* دکمه‌ها */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 600;
  transition: background-color var(--transition), color var(--transition);
}

.btn--primary {
  background-color: var(--green-800);
  color: var(--white);
}

.btn--primary:hover {
  background-color: var(--green-900);
}

.btn--outline {
  border: 1px solid var(--green-800);
  color: var(--green-800);
}

.btn--outline:hover {
  background-color: var(--green-800);
  color: var(--white);
}

.btn--muted {
  background-color: var(--stone-200);
  color: var(--stone-500);
  cursor: not-allowed;
}

.btn--block {
  width: 100%;
  padding-block: 0.875rem;
}

.btn--sm {
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  gap: 0.375rem;
}

/* بدون نوار پیمایش (کاروسل‌های افقی) */
.scroller {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroller::-webkit-scrollbar {
  display: none;
}

.scroller > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.logo {
  width: auto;
  object-fit: contain;
}

/* -------------------------------------------------------------
   5. هدر و منوی کشویی
   ------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background-color: var(--stone-950);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.header__menu-btn {
  display: flex;
  padding: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-full);
  color: var(--white);
}

.header__logo {
  display: none;
  height: 1.75rem;
}

/* منوی کشویی */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 10, 9, 0.6);
  opacity: 0;
  transition: opacity 300ms ease;
}

.drawer.is-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 18rem;
  max-width: 80%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--stone-50);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 300ms ease;
}

.drawer.is-open .drawer__panel {
  transform: translateX(0);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  border-bottom: 1px solid var(--stone-200);
}

.drawer__head .logo {
  height: 2.5rem;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.drawer__nav a,
.drawer__nav button {
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--stone-100);
  color: var(--stone-700);
  font-size: 0.875rem;
  text-align: right;
}

.drawer__nav button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 0;
  color: var(--amber-700);
  font-weight: 600;
}

.drawer__call {
  margin: 0 1.25rem 1.25rem;
}

/* -------------------------------------------------------------
   6. هیرو
   ------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 600px;
  overflow: hidden;
  scroll-margin-top: var(--header-height);
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1000ms ease;
}

.slide.is-active {
  opacity: 1;
}

.hero__scrim,
.banner__scrim {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to top,
    rgba(12, 10, 9, 0.85),
    rgba(28, 25, 23, 0.35),
    rgba(28, 25, 23, 0.4)
  );
}

.hero__logo {
  position: absolute;
  top: calc(var(--header-height) + 0.75rem);
  inset-inline: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
}

.hero__logo .logo {
  height: 3rem;
}

.hero__content {
  position: relative;
  z-index: 10;
  height: 100%;
  padding: var(--header-height) 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero__kicker {
  margin-bottom: 0.5rem;
  color: var(--stone-100);
  font-size: 0.75rem;
}

.hero__title {
  color: var(--white);
}

/* نقطه‌های اسلایدشو */
.dots {
  position: absolute;
  bottom: 1rem;
  inset-inline: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.dots__item {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.6);
  transition: width var(--transition), background-color var(--transition);
}

.dots__item.is-active {
  width: 22px;
  background-color: var(--amber-600);
}

/* نشانگر موجودی اتاق */
.stock {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.stock--is-available {
  background-color: var(--green-50);
  border: 1px solid var(--green-100);
  color: var(--green-800);
}

.stock--is-limited {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  color: var(--amber-700);
}

.stock--is-soldout {
  background-color: var(--stone-200);
  border: 1px solid var(--stone-300);
  color: var(--stone-600);
}

/* -------------------------------------------------------------
   7. اتاق‌ها
   ------------------------------------------------------------- */
.rooms {
  background-color: var(--stone-50);
}

.rooms__grid {
  display: grid;
  gap: 1.25rem;
}

.rooms__note {
  margin-top: 2rem;
  color: var(--stone-400);
  font-size: 0.75rem;
  text-align: center;
}

.room-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
}

.room-card__media {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 220px;
  background-color: var(--stone-100);
}

.room-card__media .stock {
  position: absolute;
  top: 0.625rem;
  inset-inline-start: 0.625rem;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.room-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1rem;
}

.room-card__title {
  margin-bottom: 0.375rem;
  font-size: 1rem;
}

.room-card__capacity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  margin-bottom: 1rem;
  color: var(--stone-500);
  font-size: 0.875rem;
}

.room-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.125rem 0.5rem;
  background-color: var(--stone-100);
  border-radius: var(--radius-full);
  color: var(--stone-600);
  font-size: 0.6875rem;
}

.room-card__per-night {
  margin-bottom: 0.5rem;
  color: var(--stone-400);
  font-size: 0.6875rem;
}

.room-card__pricing {
  margin-top: auto;
}

.room-card__price-old {
  margin-bottom: 0.125rem;
  color: var(--stone-400);
  font-size: 0.75rem;
}

.room-card__price-old s {
  text-decoration-thickness: 1px;
}

.room-card__price {
  margin-bottom: 0.375rem;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
}

.room-card__price span {
  color: var(--stone-500);
  font-size: 0.875rem;
  font-weight: 400;
}

.room-card__badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 0.25rem 0.625rem;
  background-color: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--radius-full);
  color: var(--green-800);
  font-size: 0.75rem;
}

.room-card__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.room-card__actions .btn {
  flex: 1;
  padding-block: 0.625rem;
  font-size: 0.875rem;
}

.room-card__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  color: var(--stone-500);
  font-size: 0.75rem;
}

.room-card__guarantee .icon {
  color: var(--green-700);
}

/* -------------------------------------------------------------
   8. ویژگی‌های سریع
   ------------------------------------------------------------- */
.highlights {
  padding-block: 2.5rem;
  background-color: var(--white);
  border-block: 1px solid var(--stone-200);
}

.highlights__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.highlight .icon {
  color: var(--green-800);
}

.highlight h3 {
  color: var(--stone-900);
  font-size: 0.875rem;
  font-weight: 600;
}

.highlight p {
  color: var(--stone-500);
  font-size: 0.75rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   9. درباره ما
   ------------------------------------------------------------- */
.about {
  background-color: rgba(255, 251, 235, 0.6);
}

.about__intro {
  display: grid;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

.about__text {
  text-align: center;
}

.about__text h2 {
  margin-bottom: 1rem;
}

.about__text .text-body {
  margin-bottom: 1rem;
  color: var(--stone-600);
}

.about__text .text-body:last-child {
  margin-bottom: 0;
}

.about__figure {
  height: 18rem;
  overflow: hidden;
  border-radius: var(--radius);
}

.about__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__lead {
  max-width: 42rem;
  margin: 0 auto 3.5rem;
  text-align: center;
}

.about__lead h3 {
  margin-bottom: 1rem;
}

.about__lead p {
  margin-bottom: 1rem;
  color: var(--stone-600);
}

.about__lead p:last-child {
  margin-bottom: 0;
}

.values {
  margin-bottom: 3.5rem;
}

.values__head {
  margin-bottom: 2.5rem;
  text-align: center;
}

.values__head .mark {
  width: 1.5rem;
  height: 1.5rem;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.values__head h3 {
  margin-bottom: 0.75rem;
}

.values__head .text-desc {
  max-width: 32rem;
  margin-inline: auto;
  color: var(--stone-600);
}

.values__grid {
  display: grid;
  gap: 1.25rem;
}

.value {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
}

.value__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  text-align: center;
}

.value__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  background-color: var(--green-50);
  border-radius: var(--radius-full);
  color: var(--green-800);
}

.value__body h4 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
}

.value__rule {
  width: 2rem;
  height: 1px;
  margin-bottom: 0.75rem;
  background-color: var(--amber-600);
}

.value__body p {
  color: var(--stone-500);
  font-size: 0.875rem;
  line-height: 1.9;
}

.value__media {
  height: 10rem;
  margin-top: auto;
}

.value__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__outro {
  text-align: center;
}

.about__outro h3 {
  margin: 1rem 0 0.5rem;
}

.about__outro p {
  color: var(--stone-500);
}

/* -------------------------------------------------------------
   10. گالری
   ------------------------------------------------------------- */
.gallery {
  background-color: var(--stone-50);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 130px;
  gap: 0.75rem;
}

.gallery__item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background-color: var(--stone-100);
  border-radius: var(--radius-sm);
  cursor: zoom-in;
}

/* نشانه‌ی بزرگ‌نمایی — در حالت عادی پنهان، با اشاره‌گر ظاهر می‌شود */
.gallery__zoom {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(12, 10, 9, 0.35);
  color: var(--white);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover .gallery__zoom,
.gallery__item:focus-visible .gallery__zoom {
  opacity: 1;
}

.gallery__item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* با ۷ تصویر و ۳ ستون، آخرین خانه تنها می‌ماند؛ پهنش می‌کنیم تا
   ردیف پایانی پر شود. اگر تعداد تصاویر را عوض کردید این را بردارید. */
@media (min-width: 640px) {
  .gallery__item:last-child:nth-child(7) {
    grid-column: span 3;
  }
}

.gallery__item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* -------------------------------------------------------------
   11. امکانات
   ------------------------------------------------------------- */
.amenities {
  background-color: var(--green-950);
}

.amenities .eyebrow {
  color: var(--amber-400);
}

.amenities h2 {
  color: var(--white);
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.amenity {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem;
  background-color: rgba(20, 83, 45, 0.6);
  border: 1px solid #166534;
  border-radius: var(--radius);
  text-align: center;
}

.amenity__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 0.75rem;
  background-color: rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-full);
  color: var(--amber-400);
}

.amenity h3 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

/* -------------------------------------------------------------
   12. موقعیت مکانی
   ------------------------------------------------------------- */
.location {
  background-color: var(--stone-50);
}

.location__grid {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
}

.location__map {
  display: grid;
  min-height: 16rem;
  height: 16rem;
  overflow: hidden;
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
}

.location__map iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.location__card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
}

.location__address {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  color: var(--stone-700);
}

.location__address .icon {
  margin-top: 0.125rem;
  color: var(--amber-700);
}

.location__card p + p {
  margin-bottom: 1.25rem;
  color: var(--stone-500);
}

.location__card .btn {
  align-self: flex-start;
}

/* -------------------------------------------------------------
   13. فوتر
   ------------------------------------------------------------- */
.footer {
  padding-bottom: 5rem;
  background-color: var(--stone-900);
  color: var(--stone-300);
}

.footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: 3rem;
}

.footer__brand .logo {
  height: 3.5rem;
  margin-bottom: 0.75rem;
}

.footer__brand strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.footer__brand p {
  color: var(--stone-400);
}

.footer h2 {
  margin-bottom: 0.75rem;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
}

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--stone-400);
  font-size: 0.875rem;
}

.footer__contact a:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background-color: var(--stone-800);
  border-radius: var(--radius-full);
  transition: background-color var(--transition);
}

.footer__social a:hover {
  background-color: var(--amber-700);
}

.footer__legal {
  padding-block: 1.25rem;
  border-top: 1px solid var(--stone-800);
  color: var(--stone-500);
  font-size: 0.75rem;
  text-align: center;
}

/* -------------------------------------------------------------
   14. نوار پایین موبایل و دکمه واتساپ
   ------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  inset-inline: 0;
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
  background-color: var(--stone-950);
}

.bottom-nav__item {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding-block: 0.25rem;
  color: var(--stone-400);
  font-size: 0.75rem;
}

.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
}

.bottom-nav__item.is-active {
  color: var(--white);
  font-weight: 600;
}

.bottom-nav__item.is-active .bottom-nav__icon {
  background-color: var(--green-800);
}

.whatsapp {
  position: fixed;
  right: 1rem;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 0.75rem);
  z-index: var(--z-float);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background-color: var(--whatsapp);
  border-radius: var(--radius-full);
  color: var(--white);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.25);
}

.whatsapp .icon {
  width: 28px;
  height: 28px;
}

/* -------------------------------------------------------------
   15. صفحه‌ی جزئیات اتاق
   ------------------------------------------------------------- */
.page {
  min-height: 100vh;
}

.page--room {
  background-color: var(--stone-50);
}

.subheader {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  background-color: var(--stone-950);
}

.subheader__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.subheader .logo {
  height: 1.75rem;
}

.back-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
}

.room-page {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

.room-page__gallery > * {
  position: relative;
  width: 100%;
  height: 260px;
}

.room-page__gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-page__body {
  padding-block: 2rem;
}

.room-page__body h1 {
  margin-bottom: 0.75rem;
}

.room-page__meta {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-bottom: 1.25rem;
  color: var(--stone-500);
  font-size: 0.875rem;
}

.room-page__desc {
  margin-bottom: 1.5rem;
  color: var(--stone-600);
}

.room-page__body h2 {
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.facilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 2rem;
}

.facilities li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--stone-700);
  font-size: 0.875rem;
}

.facilities .icon {
  color: var(--green-700);
}

/* چیدمان دوستونی صفحه‌ی اتاق (در موبایل تک‌ستونی) */
.room-page__split {
  display: grid;
  gap: 1.5rem;
}

/* فهرست مشخصات اتاق */
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.spec {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  padding: 0.875rem;
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
}

.spec__icon {
  display: flex;
  margin-bottom: 0.25rem;
  color: var(--green-800);
}

.spec__label {
  color: var(--stone-500);
  font-size: 0.6875rem;
}

.spec__value {
  color: var(--stone-900);
  font-size: 0.875rem;
  font-weight: 600;
}

/* جعبه‌ی قیمت و رزرو */
.price-box {
  align-self: start;
  padding: 1.25rem;
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius);
}

.price-box .stock {
  margin-bottom: 0.75rem;
}

.price-box__old {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  color: var(--stone-400);
  font-size: 0.8125rem;
}

.price-box__off {
  padding: 0.125rem 0.5rem;
  background-color: var(--green-50);
  border-radius: var(--radius-full);
  color: var(--green-800);
  font-weight: 600;
}

.price-box__now {
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.3;
}

.price-box__now span {
  color: var(--stone-500);
  font-size: 0.875rem;
  font-weight: 400;
}

.price-box__unit {
  margin-bottom: 1rem;
  color: var(--stone-500);
  font-size: 0.75rem;
}

.price-box__stamp {
  margin-top: 0.75rem;
  color: var(--stone-400);
  font-size: 0.6875rem;
  text-align: center;
}

/* -------------------------------------------------------------
   16. صفحه‌ی کافی‌شاپ
   ------------------------------------------------------------- */
.page--cafe {
  background-color: rgba(255, 251, 235, 0.6);
}

.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 1;
  max-height: 700px;
  overflow: hidden;
}

.banner__bar {
  position: absolute;
  top: 0;
  inset-inline: 0;
  /* باید بالاتر از .banner__content باشد وگرنه کلیکِ «بازگشت» گرفته نمی‌شود */
  z-index: 20;
  height: var(--header-height);
}

.banner__bar > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.banner__content {
  position: relative;
  z-index: 10;
  pointer-events: none;
  height: 100%;
  padding-inline: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.banner__content .logo {
  height: 3rem;
  margin-bottom: 1rem;
}

.banner__content h1 {
  color: var(--white);
}

.banner__content a,
.banner__content button {
  pointer-events: auto;
}

.banner .dots {
  bottom: 1.5rem;
}

.cafe-menu {
  padding-block: 2.5rem;
}

.cafe-menu__group {
  margin-bottom: 2rem;
}

.cafe-menu__group:last-child {
  margin-bottom: 0;
}

.cafe-menu__group h2 {
  margin-bottom: 1rem;
  color: var(--green-800);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
}

.drink {
  width: 130px;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-sm);
}

.drink__media {
  position: relative;
  width: 100%;
  height: 170px;
  background-color: var(--stone-100);
}

/* تصاویر منو ۶۰۰×۹۰۰ هستند؛ در دسکتاپ با همین نسبت نشان داده
   می‌شوند تا نوشته‌های روی کارت بریده نشود */

.drink__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drink p {
  padding: 0.5rem;
  color: var(--stone-800);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

/* -------------------------------------------------------------
   17. نمایشگر تمام‌صفحه‌ی گالری
   ------------------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-lightbox);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 250ms ease;
}

.lightbox.is-open {
  opacity: 1;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(12, 10, 9, 0.94);
  cursor: zoom-out;
}

.lightbox__figure {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
  max-height: 100%;
  transform: scale(0.97);
  transition: transform 250ms ease;
}

.lightbox.is-open .lightbox__figure {
  transform: scale(1);
}

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius);
  opacity: 1;
  transition: opacity 200ms ease;
}

.lightbox__figure img.is-loading {
  opacity: 0.25;
}

.lightbox__caption {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--stone-300);
  font-size: 0.875rem;
  text-align: center;
}

.lightbox__counter {
  padding: 0.125rem 0.625rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--stone-400);
  font-size: 0.75rem;
}

/* دکمه‌های پیمایش — بزرگ ولی بی‌سر‌و‌صدا */
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: -1.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  transition: background-color var(--transition), transform var(--transition);
}

.lightbox__nav:hover {
  background-color: rgba(255, 255, 255, 0.22);
  transform: scale(1.08);
}

.lightbox__nav .icon {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 1.5;
}

.lightbox__nav--prev {
  right: 0.75rem;
}

.lightbox__nav--next {
  left: 0.75rem;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--white);
  transition: background-color var(--transition);
}

.lightbox__close:hover {
  background-color: rgba(255, 255, 255, 0.22);
}

/* -------------------------------------------------------------
   18. دسترس‌پذیری و چاپ
   ------------------------------------------------------------- */
[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 2px solid var(--amber-600);
  outline-offset: 2px;
}

body.is-locked {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------
   نقطه‌ی شکست: ۶۴۰ پیکسل به بالا
   ------------------------------------------------------------- */
@media (min-width: 640px) {
  .container {
    padding-inline: 1.5rem;
  }

  .section {
    padding-block: 5rem;
  }

  /* هدر بلندتر و خواناتر در دسکتاپ (موبایل دست‌نخورده می‌ماند) */
  :root {
    --header-height: 68px;
  }

  .header__logo {
    display: block;
    height: 3rem;
  }

  .header__menu-btn {
    padding: 0.5rem;
  }

  .header__menu-btn .icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .header .btn--sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }

  .header .btn--sm .icon {
    width: 1rem;
    height: 1rem;
  }

  .subheader .logo {
    height: 2.5rem;
  }

  .drawer__panel {
    width: 21rem;
  }

  .drawer__head {
    padding: 1.5rem;
  }

  .drawer__head .logo {
    height: 3.25rem;
  }

  .drawer__nav a,
  .drawer__nav button {
    padding-block: 0.9375rem;
    font-size: 0.9375rem;
  }

  .hero__logo {
    display: none;
  }

  .hero__kicker {
    font-size: 0.875rem;
  }

  .rooms__grid,
  .values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }

  .room-card {
    flex-direction: row;
  }

  .room-card__media {
    width: 40%;
    height: auto;
  }

  .room-card__body {
    padding: 1.25rem;
  }

  .room-card__title {
    font-size: 1.125rem;
  }

  .room-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.625rem;
  }

  /* در دسکتاپ دکمه‌ها به‌اندازه‌ی متن‌شان باشند، نه تمام‌عرض */
  .room-card__actions .btn {
    flex: 0 1 auto;
    padding: 0.4375rem 1.125rem;
    font-size: 0.8125rem;
  }

  .room-card__guarantee {
    justify-content: flex-start;
  }

  .highlights__grid,
  .amenities__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .amenities__grid {
    gap: 1.5rem;
  }

  .about__intro,
  .location__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about__text {
    text-align: right;
  }

  .about__figure {
    height: 24rem;
  }

  .value__media {
    height: 12rem;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .location__map {
    height: auto;
  }

  .location__card {
    padding: 2rem;
  }

  .footer {
    padding-bottom: 0;
  }

  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bottom-nav {
    display: none;
  }

  /* در دسکتاپ نوار پایینی نیست، پس دکمه پایین‌تر می‌نشیند */
  .whatsapp {
    right: 1.5rem;
    bottom: 1.5rem;
  }

  .lightbox {
    padding: 2rem;
  }

  .lightbox__nav {
    width: 3.75rem;
    height: 3.75rem;
    margin-top: -1.875rem;
  }

  .lightbox__nav .icon {
    width: 2rem;
    height: 2rem;
  }

  .lightbox__nav--prev {
    right: 1.5rem;
  }

  .lightbox__nav--next {
    left: 1.5rem;
  }

  .room-page__split {
    grid-template-columns: minmax(0, 1fr) 19rem;
    gap: 2rem;
    align-items: start;
  }

  .price-box {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    padding: 1.5rem;
  }

  /* مشخصات اتاق تمام‌عرض می‌شود و هم‌تراز با عنوان و تصویر بالا */
  .specs {
    margin-bottom: 2.5rem;
  }

  .specs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cafe-menu {
    padding-block: 4rem;
  }

  .cafe-menu__group {
    margin-bottom: 3rem;
  }

  .cafe-menu__group h2 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
  }

  /* در دسکتاپ به‌جای پیمایش افقی، شبکه‌ای با کارت‌های بزرگ‌تر */
  .cafe-menu .scroller {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    overflow: visible;
  }

  .drink {
    width: auto;
    border-radius: var(--radius);
    transition: transform var(--transition), box-shadow var(--transition);
  }

  .drink:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -8px rgba(12, 10, 9, 0.25);
  }

  .drink__media {
    height: auto;
    aspect-ratio: 2 / 3;
  }

  .drink p {
    padding: 0.75rem 0.5rem;
    font-size: 0.9375rem;
  }

  /* ---------- ساب‌هدرها کمی بزرگ‌تر در دسکتاپ ---------- */
  .eyebrow {
    font-size: 0.875rem;
  }
}

/* -------------------------------------------------------------
   نمایشگرهای بزرگ — منوی کافی‌شاپ در یک ردیف جا می‌گیرد
   ------------------------------------------------------------- */
@media (min-width: 1024px) {
  .cafe-menu .scroller {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
