/* ── Self-hosted fonts (SIL OFL): Inter, Fraunces, Vazirmatn — no third-party requests ── */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/inter-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/inter-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/inter-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/inter-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/fraunces-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fraunces-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/fraunces-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/fraunces-latin-700-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vazirmatn-arabic-400-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/vazirmatn-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/vazirmatn-arabic-500-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/vazirmatn-latin-500-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/vazirmatn-arabic-700-normal.woff2') format('woff2');
  unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC;
}
@font-face {
  font-family: 'Vazirmatn';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/vazirmatn-latin-700-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* ══════════════════════════════════════════════════════════════════
   Guest website — light, flat design with an optional dark mode.
   White pages, thin borders, near-black buttons, and the logo's sun-yellow
   as the single accent. Every colour is a token below; dark mode only swaps
   the tokens (html[data-theme="dark"], set by the theme button / js/theme.js).
   ══════════════════════════════════════════════════════════════════ */
:root {
  color-scheme: light;
  /* surfaces */
  --bg: #ffffff;
  --bg-soft: #f7f7f5;
  --surface: #ffffff;
  --surface-2: #f3f3f1;
  --border: #e7e7e4;
  --border-strong: #d4d4d0;
  /* text */
  --text: #16161a;
  --text-2: #44444b;
  --muted: #6c6c73;
  /* accent (logo sun) */
  --accent: #f2c94c;
  --accent-strong: #d9ad22;
  --accent-soft: #fdf5d8;
  --on-accent: #16161a;
  --highlight: #f9e08b;
  --cta-bg: #fdf8e6;
  --cta-border: #f2e3a8;
  /* main buttons */
  --btn: #16161a;
  --btn-hover: #2e2e35;
  --on-btn: #ffffff;
  /* states */
  --ok: #1f6b4a;
  --ok-bg: #e3f3ea;
  --warn: #7a5200;
  --warn-bg: #fdf0c8;
  --bad: #a3352b;
  --bad-bg: #fbe5e2;
  --neutral-bg: #ededeb;
  /* overlays */
  --overlay: rgba(16, 16, 20, 0.45);
  --hover: rgba(22, 22, 26, 0.05);
  --pop-shadow: 0 8px 24px rgba(16, 16, 20, 0.08);
  /* logo artwork */
  --graphite: #808080;
  --silver: #c2c3c3;
  --ink: #16161a;
  --sun: #f9e08b;
  --mark-soft: #d9dad9;

  --radius: 14px;
  --radius-sm: 10px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --header-h: 68px;
  --container: 1180px;
  --section-pad: clamp(56px, 8vw, 96px);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121215;
  --bg-soft: #17171b;
  --surface: #1b1b20;
  --surface-2: #24242a;
  --border: #2b2b32;
  --border-strong: #3b3b43;
  --text: #ececef;
  --text-2: #c3c3c9;
  --muted: #94949c;
  --accent: #f2cf5b;
  --accent-strong: #f2cf5b;
  --accent-soft: rgba(242, 207, 91, 0.13);
  --on-accent: #16161a;
  --highlight: rgba(242, 207, 91, 0.3);
  --cta-bg: rgba(242, 207, 91, 0.08);
  --cta-border: rgba(242, 207, 91, 0.25);
  --btn: #f2cf5b;
  --btn-hover: #f6db82;
  --on-btn: #16161a;
  --ok: #74d3a1;
  --ok-bg: rgba(116, 211, 161, 0.13);
  --warn: #f2cf5b;
  --warn-bg: rgba(242, 207, 91, 0.13);
  --bad: #f19489;
  --bad-bg: rgba(241, 148, 137, 0.13);
  --neutral-bg: #2a2a31;
  --overlay: rgba(0, 0, 0, 0.6);
  --hover: rgba(255, 255, 255, 0.06);
  --pop-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  --graphite: #8a8a8f;
  --silver: #5a5a60;
  --mark-soft: #303036;
}
html[data-lang="fa"] {
  --font-body: "Vazirmatn", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Vazirmatn", "Inter", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

[hidden] { display: none !important; }

/* ── Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); background: var(--bg); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.modal-open, html.drawer-open { overflow: hidden; }
img, svg { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3, h4, h5 { margin: 0 0 0.5em; line-height: 1.15; font-weight: 600; color: var(--text); }
h1, h2 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.02em; }
html[data-lang="fa"] h1, html[data-lang="fa"] h2 { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
main, main:focus-visible { outline: none; }
main { min-height: 60vh; transition: opacity 0.2s; }
main.is-loading { opacity: 0.55; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 13.5px; color: var(--muted); }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row.center { justify-content: center; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 200; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 6px; }
.ic { flex: none; vertical-align: middle; }
html[dir="rtl"] .ic-flip { transform: scaleX(-1); }
::selection { background: var(--accent); color: var(--on-accent); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--accent-strong); border-radius: 2px; }
.eyebrow:has(.ic)::before { display: none; }
.eyebrow .ic { color: var(--accent-strong); }
html[dir="rtl"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: 13px; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--text-2); max-width: 56ch; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { background: var(--btn-hover); }
.btn-sun { background: var(--accent); color: var(--on-accent); border-color: var(--accent-strong); }
.btn-sun:hover { background: var(--accent-strong); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--text); }
.btn-link { background: none; padding-inline: 6px; color: var(--text); }
.btn-link:hover { text-decoration: underline; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-danger-solid { background: #a3352b; color: #fff; border-color: #a3352b; }
.btn-danger-solid:hover { background: #8c2c23; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.is-busy { cursor: progress; }
.link { background: none; border: 0; padding: 0; color: var(--text); font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent-strong); text-decoration-thickness: 2px; text-underline-offset: 4px; display: inline-flex; align-items: center; gap: 6px; }
.link:hover { text-decoration-color: var(--text); }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1px solid transparent; padding: 7px 10px; border-radius: var(--radius-sm); font-weight: 600; font-size: 14px; color: var(--text); }
.icon-btn:hover { background: var(--hover); }
.theme-btn { padding: 7px; border-color: var(--border); }
.ic-sun { display: none; }
html[data-theme="dark"] .ic-sun { display: inline; }
html[data-theme="dark"] .ic-moon { display: none; }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mark-brand { width: 42px; height: auto; }
.site-logo { object-fit: contain; }
.site-logo.mark-brand { width: auto; height: 40px; max-width: 150px; }
.site-logo.mark-footer { width: auto; height: 52px; max-width: 180px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
html[dir="rtl"] .brand-text small { letter-spacing: 0; font-size: 12px; }
.brand-text strong { font-size: 17px; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-inline-start: 12px; align-self: stretch; }
.nav a { display: flex; align-items: center; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color 0.15s, border-color 0.15s; }
.nav a:hover { color: var(--text); }
.nav a.active { color: var(--text); font-weight: 600; border-bottom-color: var(--accent-strong); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: none; background: none; border: 1px solid var(--border); padding: 7px; border-radius: var(--radius-sm); color: var(--text); }
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700; letter-spacing: 0; flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.user-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 3px 12px 3px 3px; font-weight: 600; font-size: 14px; color: var(--text); }
html[dir="rtl"] .user-btn { padding: 3px 3px 3px 12px; }
.user-btn:hover { border-color: var(--text); }
.dot-badge { position: absolute; top: -2px; inset-inline-end: -2px; width: 11px; height: 11px; border-radius: 50%; background: var(--bad); border: 2px solid var(--bg); }
.menu { position: relative; }
.menu-pop { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; list-style: none; background: var(--surface); border-radius: var(--radius-sm); padding: 6px; box-shadow: var(--pop-shadow); border: 1px solid var(--border); opacity: 0; visibility: hidden; transition: opacity 0.12s, visibility 0.12s; z-index: 70; }
.menu.open .menu-pop { opacity: 1; visibility: visible; }
.menu-pop li { margin: 0; }
.menu-pop a, .menu-pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; background: none; border-radius: 8px; text-decoration: none; font-size: 14.5px; font-weight: 500; text-align: start; color: var(--text); }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-pop button.on { font-weight: 700; justify-content: space-between; }
.menu-pop .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.count { margin-inline-start: auto; background: var(--bad); color: var(--bg); border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 700; }

.drawer { position: fixed; inset: 0; z-index: 90; overflow: hidden; visibility: hidden; background: transparent; transition: background 0.25s, visibility 0.25s; }
.drawer-open .drawer { visibility: visible; background: var(--overlay); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(340px, 88vw); background: var(--bg); border-inline-start: 1px solid var(--border); padding: 16px 20px 24px; display: flex; flex-direction: column; gap: 18px; transform: translateX(100%); transition: transform 0.25s ease; overflow-y: auto; color: var(--text); }
html[dir="rtl"] .drawer-panel { transform: translateX(-100%); }
.drawer-open .drawer-panel { transform: none; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.drawer-nav a { padding: 12px; border-radius: var(--radius-sm); text-decoration: none; font-size: 17px; font-weight: 500; }
.drawer-nav a:hover { background: var(--surface-2); }
.drawer-nav a.active { background: var(--accent-soft); font-weight: 700; }
.drawer-nav a.active-cta { background: var(--btn); color: var(--on-btn); font-weight: 700; margin-top: 8px; text-align: center; }
.drawer-foot { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.drawer-theme { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); font-weight: 600; font-size: 15px; color: var(--text); }
.drawer-foot button:not(.drawer-theme), .footer-lang button { background: none; border: 1px solid var(--border-strong); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 14px; color: var(--text); }
.drawer-foot button.on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }

@media (max-width: 1000px) {
  .nav, .book-cta { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 640px) {
  .uname { display: none; }
  .user-btn { padding: 3px 8px 3px 3px; }
  .brand-text strong { font-size: 15px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-ghost span { display: none; }
  .header-actions .btn-ghost { padding: 8px 10px; }
  .header-actions .theme-btn { display: none; }
  .lang-menu .icon-btn span { display: none; }
}

/* ── Brand mark (logo arrows + orb) ───────────────────────────────── */
.mark { display: block; overflow: visible; }
.mk-a polygon { fill: var(--graphite); stroke: var(--graphite); stroke-width: 14; stroke-linejoin: round; }
.mk-halo { fill: var(--sun); opacity: 0; }
.mk-ring { fill: var(--silver); }
.mk-core-ring { fill: var(--ink); }
html[data-theme="dark"] .mk-core-ring { fill: #0b0b0d; }
.mk-sun { fill: var(--sun); }
.mark-md { width: 64px; height: 64px; margin-inline: auto; }
.mark-xs { width: 28px; height: 28px; }
.mark-footer { width: 56px; height: auto; margin-bottom: 14px; }
.mark-hero { width: 100%; max-width: 440px; margin-inline: auto; height: auto; }
.mark-hero .mk-a polygon { fill: var(--mark-soft); stroke: var(--mark-soft); }
.mark-hero .mk-a { transform-box: fill-box; transform-origin: center; }
.mark-hero .mk-tl { animation: conv-tl 7s ease-in-out infinite; }
.mark-hero .mk-tr { animation: conv-tr 7s ease-in-out infinite; }
.mark-hero .mk-bl { animation: conv-bl 7s ease-in-out infinite; }
.mark-hero .mk-br { animation: conv-br 7s ease-in-out infinite; }
@keyframes conv-tl { 50% { transform: translate(18px, 18px); } }
@keyframes conv-tr { 50% { transform: translate(-18px, 18px); } }
@keyframes conv-bl { 50% { transform: translate(18px, -18px); } }
@keyframes conv-br { 50% { transform: translate(-18px, -18px); } }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero { position: relative; overflow-x: clip; padding-top: clamp(32px, 6vw, 72px); background: var(--bg); border-bottom: 1px solid var(--border); }
.hero-glow { display: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 64px); align-items: center; min-height: min(56vh, 500px); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4.2rem); line-height: 1.05; margin-bottom: 0.4em; }
html[data-lang="fa"] .hero h1 { line-height: 1.3; }
.hero h1 em { font-style: italic; padding: 0 0.06em; box-shadow: inset 0 -0.3em 0 var(--highlight); }
html[data-lang="fa"] .hero h1 em { font-style: normal; box-shadow: none; text-decoration: underline; text-decoration-color: var(--accent-strong); text-decoration-thickness: 0.07em; text-underline-offset: 0.3em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 28px 0 22px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--text-2); font-size: 14px; font-weight: 500; }
.hero-badges li { display: inline-flex; align-items: center; gap: 6px; }
.hero-badges .ic { color: var(--ok); }
.hero-search { position: relative; z-index: 4; margin-top: 40px; padding-bottom: 40px; }

/* ── Search card ──────────────────────────────────────────────────── */
.search-card { display: grid; grid-template-columns: 1.3fr 1.3fr 0.7fr 0.7fr 0.7fr auto; gap: 0; align-items: stretch; background: var(--surface); padding: 6px; border-radius: var(--radius); border: 1px solid var(--border-strong); }
.search-card.compact { border-color: var(--border); margin-bottom: 28px; }
.field { display: flex; flex-direction: column; gap: 2px; padding: 9px 16px; border-radius: var(--radius-sm); transition: background 0.15s; cursor: text; min-width: 0; position: relative; }
.field + .field::before { content: ""; position: absolute; inset-inline-start: 0; top: 12px; bottom: 12px; width: 1px; background: var(--border); }
.field:hover, .field:focus-within { background: var(--surface-2); }
.field:hover::before, .field:focus-within::before, .field:hover + .field::before, .field:focus-within + .field::before { opacity: 0; }
.field > span { font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
html[dir="rtl"] .field > span { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
.control { display: flex; align-items: center; gap: 8px; }
.control .ic { color: var(--muted); }
.control input, .control select { border: 0; background: transparent; width: 100%; padding: 2px 0; font-weight: 600; font-size: 15.5px; outline: none; min-width: 0; -webkit-appearance: none; appearance: none; color: var(--text); }
.control select { cursor: pointer; padding-inline-end: 18px !important; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23808080' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 2px center; }
.control select option { background: var(--surface); color: var(--text); }
html[dir="rtl"] .control select { background-position: left 2px center; }
.field:focus-within { box-shadow: inset 0 0 0 1px var(--text); }
.search-btn { align-self: stretch; padding-inline: 26px; margin-inline-start: 6px; }
@media (max-width: 1080px) {
  .search-card { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
  .field + .field::before { display: none; }
  .search-btn { grid-column: 1 / -1; padding-block: 15px; margin: 4px 0 0; }
}
@media (max-width: 640px) {
  .search-card { grid-template-columns: 1fr 1fr; }
  .search-card .field-sm { grid-column: span 1; }
  .search-card .field:nth-child(5) { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { order: -1; margin-bottom: -10px; }
  .mark-hero { max-width: 220px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-art { display: none; }
}

/* ── Custom dropdowns and stay calendar (js/pickers.js) ──────────── */
.native-hidden { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.field-date, .field-sm { cursor: pointer; }
.cal-btn, .dd-btn { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 2px 0; margin: 0; font-weight: 600; font-size: 15.5px; color: var(--text); text-align: start; cursor: pointer; min-width: 0; }
.cal-btn:focus-visible, .dd-btn:focus-visible { outline: none; }
.field:has(.cal-btn:focus-visible), .field:has(.dd-btn:focus-visible) { box-shadow: inset 0 0 0 1px var(--text); background: var(--surface-2); }
.cal-btn .ic { color: var(--muted); }
.cal-value { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-value.is-empty { color: var(--muted); font-weight: 500; }
.dd-btn { justify-content: space-between; }
.dd-value { flex: 1; }
.dd-caret { color: var(--muted); transition: transform 0.15s; }
.field.is-open { background: var(--surface-2); }
.field.is-open .dd-caret { transform: rotate(180deg); }
.field-date.is-current { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--text); }
.field.is-open::before, .field.is-open + .field::before, .field-date.is-current::before, .field-date.is-current + .field::before { opacity: 0; }

.dd-list { position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline-start: 0; min-width: 100%; max-height: 280px; overflow-y: auto; list-style: none; margin: 0; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--pop-shadow); outline: none; cursor: default; }
.dd-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 8px; font-size: 15px; font-weight: 500; cursor: pointer; color: var(--text); }
.dd-list li.is-active { background: var(--surface-2); }
.dd-list li[aria-selected="true"] { font-weight: 700; }
.dd-list li .ic { color: var(--accent-strong); }

.search-card { position: relative; }
.cal-backdrop { display: none; }
@media (max-width: 640px) { .cal-backdrop { display: block; } }
.cal-pop { position: absolute; z-index: 30; top: calc(100% + 8px); inset-inline-start: 0; width: min(660px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--pop-shadow); padding: 18px 20px 16px; color: var(--text); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cal-hint { margin: 0; font-weight: 600; font-size: 14.5px; color: var(--text-2); text-align: center; }
.cal-nav { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); padding: 0; }
.cal-nav:hover:not([disabled]) { border-color: var(--text); }
.cal-nav[disabled] { opacity: 0.35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.cal-title { margin: 0 0 10px; text-align: center; font-size: 15px; font-weight: 700; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.cal-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; padding-bottom: 6px; text-transform: capitalize; }
.cal-day { position: relative; height: 40px; border: 0; background: none; padding: 0; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--text); cursor: pointer; }
.cal-day > span { position: relative; z-index: 1; display: grid; place-items: center; width: 38px; height: 38px; margin: 0 auto; border-radius: 50%; }
.cal-day:hover:not([disabled]) > span { box-shadow: inset 0 0 0 1px var(--text); }
.cal-day:focus-visible { outline: none; }
.cal-day:focus-visible > span { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
.cal-day.is-today > span::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent-strong); }
.cal-day.in-range { background: var(--surface-2); }
.cal-day.is-start, .cal-day.is-end { background: linear-gradient(to var(--range-side, right), transparent 50%, var(--surface-2) 50%); }
.cal-day.is-end { --range-side: left; }
html[dir="rtl"] .cal-day.is-start { --range-side: left; }
html[dir="rtl"] .cal-day.is-end { --range-side: right; }
.cal-day.is-start:not(:has(~ .is-end)):not(:has(~ .in-range)) { background: none; }
.cal-day.is-start > span, .cal-day.is-end > span { background: var(--btn); color: var(--on-btn); font-weight: 700; }
.cal-day.is-start.is-today > span::after, .cal-day.is-end.is-today > span::after { background: var(--on-btn); }
.cal-day[disabled] { color: var(--muted); opacity: 0.45; cursor: default; text-decoration: line-through; text-decoration-color: transparent; }
.cal-day.is-blank { pointer-events: none; }
.cal-foot { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cal-nights { margin-inline-end: auto; font-weight: 600; font-size: 14.5px; }
@media (max-width: 640px) {
  html.sheet-open { overflow: hidden; }
  .cal-backdrop { position: fixed; inset: 0; z-index: 95; background: var(--overlay); }
  .cal-pop { position: fixed; z-index: 96; inset: auto 0 0 0; width: auto; max-height: 88vh; overflow-y: auto; border-radius: var(--radius) var(--radius) 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  .cal-months { grid-template-columns: 1fr; gap: 18px; }
  .cal-months .cal-month + .cal-month { display: none; }
  .cal-day { height: 44px; }
  .cal-day > span { width: 42px; height: 42px; }
  .cal-btn, .dd-btn { font-size: 15px; }
  .cal-btn > .ic { display: none; }
}

/* Banner photo uploaded in the hotel dashboard (replaces the logo artwork) */
.hero-photo { display: block; width: 100%; max-width: 580px; margin-inline: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
@media (max-width: 640px) { .hero-art-photo { margin-bottom: 0; } .hero-photo { aspect-ratio: 16 / 10; } }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: var(--section-pad) 0; position: relative; }
.tint { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 44px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.05rem; }
.section-head.row-head { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head { padding: clamp(36px, 6vw, 64px) 0 clamp(20px, 3vw, 32px); }
.page-head.compact { padding-block: 32px 8px; }
.page-head h1 { margin-bottom: 0.3em; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--text-2); margin-bottom: 12px; }
.back:hover { color: var(--text); }
.subhead { margin: 34px 0 16px; font-family: var(--font-body); font-size: 1.05rem; letter-spacing: 0; font-weight: 700; }

.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: var(--surface); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); }
.fact h3 { font-size: 1.05rem; margin-bottom: 6px; }
.fact p { color: var(--muted); font-size: 14.5px; margin: 0; }
.fact-ic, .amenity-ic, .policy-ic { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); margin-bottom: 16px; flex: none; }
@media (max-width: 980px) { .fact-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .fact-grid { grid-template-columns: 1fr; } }

/* Amenities */
.amenity-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.amenity { display: flex; gap: 14px; align-items: flex-start; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.amenity-ic { margin: 0; width: 40px; height: 40px; }
.amenity h4 { margin: 2px 0 2px; font-size: 1rem; }
.amenity p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 1000px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .amenity-grid { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; inset-inline-start: 60px; inset-inline-end: -14px; border-top: 1px solid var(--border-strong); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; margin: 0 0 18px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 14.5px; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } .steps li::after { display: none; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Policies */
.policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.policy { display: flex; gap: 14px; background: var(--surface); border-radius: var(--radius); padding: 20px; border: 1px solid var(--border); }
.policy-ic { margin: 0; width: 40px; height: 40px; }
.policy h4 { margin: 0 0 4px; font-size: 1rem; }
.policy p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 980px) { .policy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .policy-grid { grid-template-columns: 1fr; } }

/* Location */
.location-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.contact-list { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; }
.contact-list .ic { margin-top: 3px; color: var(--muted); }
.map-card { position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--border); }
.map-arrows { position: absolute; inset: 14% 12%; }
.map-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mark-map { width: 100%; height: 100%; }
.mark-map .mk-a polygon { fill: var(--mark-soft); stroke: var(--mark-soft); }
.map-label { position: absolute; inset-inline-start: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; background: var(--surface); padding: 9px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-size: 14px; }
.map-label span { color: var(--muted); }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--bg); text-align: center; padding: clamp(32px, 5vw, 64px) 0 var(--section-pad); }
.cta-band .container { position: relative; background: var(--cta-bg); border: 1px solid var(--cta-border); border-radius: var(--radius); padding-block: clamp(40px, 6vw, 72px); max-width: calc(var(--container) - 64px); }
.cta-band h2 { margin-top: 16px; }
.cta-band p { color: var(--text-2); max-width: 46ch; margin: 0 auto 26px; }
.cta-band .btn-sun { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.cta-band .btn-sun:hover { background: var(--btn-hover); }
.cta-orb { margin-bottom: 4px; }
@media (max-width: 640px) { .cta-band .container { width: calc(100% - 32px); padding-inline: 20px; } }

/* ── Rooms ────────────────────────────────────────────────────────── */
.room-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.room-list { display: grid; gap: 20px; }
.room-card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: border-color 0.2s; display: flex; flex-direction: column; }
.room-card:hover { border-color: var(--border-strong); }
.room-list .room-card { display: grid; grid-template-columns: minmax(280px, 420px) 1fr; }
.room-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.room-list .room-media { aspect-ratio: auto; min-height: 260px; }
.room-art { width: 100%; height: 100%; display: block; }
html[data-theme="dark"] .room-art { filter: brightness(0.82) saturate(0.9); }
.room-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s; }
.room-photo.loaded.is-on { opacity: 1; }
/* Several photos: arrows and a counter over the photo. */
.photo-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.6); border-radius: 50%; background: rgba(20, 20, 20, 0.45); color: #fff; cursor: pointer; padding: 0; opacity: 0; transition: opacity 0.2s; }
.photo-nav.prev { inset-inline-start: 10px; }
.photo-nav.next { inset-inline-end: 10px; }
.photo-nav:hover { background: rgba(20, 20, 20, 0.65); }
.photo-nav:focus-visible { opacity: 1; outline: 2px solid #fff; outline-offset: 2px; }
.room-media:hover .photo-nav, .room-modal .photo-nav { opacity: 1; }
@media (hover: none) { .photo-nav { opacity: 1; } }
.photo-count { position: absolute; z-index: 2; bottom: 10px; inset-inline-end: 10px; padding: 2px 9px; border-radius: 999px; background: rgba(20, 20, 20, 0.55); color: #fff; font-size: 0.75rem; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.room-media:not([data-gallery]) .photo-nav, .room-media:not([data-gallery]) .photo-count { display: none; }
.room-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.room-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.room-head h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; letter-spacing: -0.01em; margin: 0; }
html[data-lang="fa"] .room-head h3 { font-weight: 700; }
.room-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--muted); font-size: 14px; }
.room-meta span { display: inline-flex; align-items: center; gap: 6px; }
.room-meta.big { font-size: 15px; margin-bottom: 14px; }
.room-desc { color: var(--text-2); margin: 12px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 14px 0 0; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.chips .ic { color: var(--muted); }
.chip-more { font-weight: 600; }
.room-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.room-body .chips + .room-foot, .room-body .room-desc + .room-foot { margin-top: 18px; }
.price small { color: var(--muted); font-size: 13px; }
.price strong { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; }
html[data-lang="fa"] .price strong { font-weight: 700; font-size: 1.4rem; }
.price em { display: block; font-style: normal; color: var(--muted); font-size: 12.5px; }
.room-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1000px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .room-grid { grid-template-columns: 1fr; } .room-list .room-card { grid-template-columns: 1fr; } .room-list .room-media { min-height: 0; aspect-ratio: 16 / 10; } }
.rooms-page { padding-bottom: var(--section-pad); }
.rooms-page .notice { margin-top: 28px; }

.room-modal { display: grid; grid-template-columns: 1fr 1fr; margin: -28px; }
.room-modal .room-media { aspect-ratio: auto; min-height: 100%; }
.room-modal-body { padding: 32px 30px; }
.room-modal-body h2 { font-size: 1.8rem; }
.room-modal-body h4 { margin: 22px 0 10px; }
.amenity-list { list-style: none; display: grid; gap: 10px; }
.amenity-list li { display: flex; gap: 12px; align-items: flex-start; }
.amenity-list .ic { margin-top: 3px; color: var(--muted); }
.amenity-list strong { display: block; font-size: 14.5px; }
.amenity-list span { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }
.room-modal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); }
@media (max-width: 760px) { .room-modal { grid-template-columns: 1fr; } .room-modal .room-media { aspect-ratio: 16 / 10; } }

/* ── Forms, cards, notices ────────────────────────────────────────── */
.card { background: var(--surface); border-radius: var(--radius); padding: clamp(20px, 3vw, 28px); border: 1px solid var(--border); }
.card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 700; }
.form { display: grid; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
.field-block { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field-block > span em { font-weight: 400; color: var(--muted); font-style: normal; }
.field-block small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
input:not([type="checkbox"]):not([type="date"]), textarea, .field-block select {
  width: 100%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 400; transition: border-color 0.15s, box-shadow 0.15s; outline: none;
}
.control input, .control select { border: 0 !important; padding: 2px 0 !important; border-radius: 0 !important; box-shadow: none !important; background-color: transparent !important; }
input:not([type="checkbox"]):not([type="date"]):focus, textarea:focus, .field-block select:focus { border-color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled { background: var(--surface-2); color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; min-height: 96px; }
.pw { position: relative; }
.pw input { padding-inline-end: 46px; }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 8px; border-radius: 8px; color: var(--muted); }
.pw-toggle:hover, .pw-toggle.on { color: var(--text); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--text); flex: none; }
.form-error, .notice-error { background: var(--bad-bg); color: var(--bad); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; margin: 0; }
.hp { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14.5px; }
.notice p { margin: 0; }
.notice .ic { margin-top: 2px; }
.notice-info { background: var(--bg-soft); border: 1px solid var(--border); color: var(--text-2); }
.notice-warn { background: var(--warn-bg); color: var(--warn); }
.register-card { align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.register-card > div { flex: 1; min-width: 200px; }
.register-card strong { display: block; margin-bottom: 2px; color: var(--text); }
.badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-muted { background: var(--neutral-bg); color: var(--text-2); }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); display: grid; justify-items: center; gap: 10px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.empty-state h3 { color: var(--text); margin: 0; }
.empty-state p { max-width: 46ch; margin: 0 0 8px; }
.gate { text-align: center; padding-block: clamp(56px, 10vw, 110px); display: grid; justify-items: center; gap: 6px; }
.gate > .ic { color: var(--muted); margin-bottom: 8px; }
.gate p { color: var(--text-2); max-width: 46ch; }

.skeleton { height: 150px; border-radius: var(--radius); background: var(--surface-2); animation: pulse 1.3s infinite ease-in-out; }
.skeleton-list { display: grid; gap: 16px; }
@keyframes pulse { 50% { opacity: 0.5; } }

/* Tabs */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--radius-sm); margin: 18px 0 22px; }
.tabs button { background: none; border: 1px solid transparent; padding: 9px; border-radius: 8px; font-weight: 600; font-size: 14.5px; color: var(--text-2); }
.tabs button.active { background: var(--surface); color: var(--text); border-color: var(--border); }
.tabs.pills { display: inline-flex; margin: 8px 0 0; }
.tabs.pills a { padding: 8px 20px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--text-2); border: 1px solid transparent; }
.tabs.pills a.active { background: var(--surface); color: var(--text); border-color: var(--border); }

/* ── Modal / toast ────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 100; background: var(--overlay); display: grid; place-items: center; padding: 16px; opacity: 0; transition: opacity 0.2s; overflow-y: auto; }
.modal-overlay.show { opacity: 1; }
.modal { position: relative; width: 100%; background: var(--surface); color: var(--text); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--pop-shadow); max-height: calc(100vh - 32px); overflow: auto; }
.modal-sm { max-width: 440px; }
.modal-md { max-width: 580px; }
.modal-lg { max-width: 940px; overflow: hidden auto; }
.modal-body { padding: 28px; }
.modal-x { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3; background: var(--surface); color: var(--text); border: 1px solid var(--border); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.modal-x:hover { border-color: var(--text); }
.auth { text-align: center; }
.auth h2 { font-size: 1.6rem; margin: 10px 0 4px; }
.auth-reason { color: var(--muted); font-size: 14.5px; margin: 0; }
.auth .form { text-align: start; }
.auth-contact { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 18px 0 0; }
.confirm-modal { text-align: center; display: grid; justify-items: center; gap: 6px; }
.confirm-modal > .ic { color: var(--bad); }
.confirm-modal p { color: var(--text-2); }
#toast-root { position: fixed; inset-inline: 0; bottom: 22px; z-index: 120; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { display: flex; gap: 10px; align-items: center; background: #16161a; color: #fff; padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid #2e2e35; font-size: 14.5px; font-weight: 500; opacity: 0; transform: translateY(12px); transition: opacity 0.25s, transform 0.25s; max-width: min(520px, 100%); }
html[data-theme="dark"] .toast { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.toast.show { opacity: 1; transform: none; }
.toast-success .ic { color: #74d3a1; }
.toast-error { background: #7a251d; border-color: #7a251d; }
html[data-theme="dark"] .toast-error { background: #5c1f19; border-color: #7a251d; color: #fff; }

/* ── Booking flow ─────────────────────────────────────────────────── */
.book-wrap, .done-wrap { padding-bottom: var(--section-pad); }
.done-wrap { padding-top: 36px; }
.stepper { list-style: none; display: flex; gap: 6px; margin: 0 0 26px; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 600; flex: 1; position: relative; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); margin-inline: 8px; }
.stepper .dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border-strong); font-size: 13px; flex: none; }
.stepper li.active { color: var(--text); }
.stepper li.active .dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.stepper li.done { color: var(--text-2); }
.stepper li.done .dot { background: var(--btn); border-color: var(--btn); color: var(--on-btn); }
.stepper li.done::after { background: var(--text); }
@media (max-width: 560px) { .stepper li em { display: none; } .stepper li.active em { display: inline; } .stepper li:not(:last-child)::after { margin-inline: 4px; } }
.results-head { margin-bottom: 18px; }
.results-head h2 { font-size: 1.6rem; margin-bottom: 4px; }
.results-head p { color: var(--muted); margin: 0; }
.result-list { display: grid; gap: 16px; }
.result-card { display: grid; grid-template-columns: 310px 1fr 230px; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); transition: border-color 0.2s; }
.result-card:hover { border-color: var(--border-strong); }
.result-card.is-pre { border-color: var(--accent-strong); box-shadow: 0 0 0 1px var(--accent-strong); }
.result-card .room-media { aspect-ratio: auto; min-height: 210px; }
.result-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.result-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.result-top h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin: 0; }
html[data-lang="fa"] .result-top h3 { font-weight: 700; }
.result-body .link { margin-top: auto; padding-top: 8px; align-self: flex-start; }
.result-price { padding: 22px; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: end; gap: 6px; border-inline-start: 1px solid var(--border); background: var(--bg-soft); }
.result-price .avg strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; }
html[data-lang="fa"] .result-price .avg strong { font-weight: 700; font-size: 1.6rem; }
.result-price small { color: var(--muted); font-size: 13px; }
.result-price .total { font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.result-price .btn { min-width: 130px; }
.unavail { display: flex; gap: 8px; color: var(--muted); font-size: 14px; margin: 0; text-align: start; align-items: flex-start; }
.result-card.is-off { opacity: 0.72; }
.result-card.is-off .room-art { filter: grayscale(0.7); }
@media (max-width: 980px) { .result-card { grid-template-columns: 220px 1fr; } .result-price { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; border-inline-start: 0; border-top: 1px solid var(--border); text-align: start; } .result-price .total { margin: 0; } }
@media (max-width: 620px) { .result-card { grid-template-columns: 1fr; } .result-card .room-media { min-height: 0; aspect-ratio: 16 / 9; } }

.review-grid { display: grid; grid-template-columns: 1fr 390px; gap: 28px; align-items: start; padding-bottom: var(--section-pad); }
.review-main { display: grid; gap: 18px; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); padding: 0; overflow: hidden; }
.summary-media .room-media { aspect-ratio: 16 / 8; }
.summary h3, .summary-list, .nightly, .summary-total, .summary .fine { margin-inline: 24px; }
.summary h3 { margin-top: 20px; font-family: var(--font-display); font-weight: 500; font-size: 1.45rem; display: block; }
.summary-list { margin-block: 0 8px; display: grid; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.summary-list dt { color: var(--muted); font-size: 14px; }
.summary-list dd { margin: 0; text-align: end; font-weight: 600; font-size: 14.5px; }
.summary-list dd small { display: block; font-weight: 400; color: var(--muted); font-size: 12.5px; }
.summary-list.wide { margin: 24px 0; text-align: start; }
.nightly summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; list-style: none; align-items: center; }
.nightly summary::-webkit-details-marker { display: none; }
.nightly[open] summary .ic { transform: rotate(180deg); }
.nightly ul { list-style: none; padding-bottom: 8px; display: grid; gap: 6px; }
.nightly li { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--text-2); }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 6px; border-top: 1px solid var(--text); }
.summary-total strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; }
.summary .fine { margin-block: 4px 12px; }
.summary .policy { margin-bottom: 22px; display: flex; gap: 6px; border: 0; padding: 0; background: none; }
@media (max-width: 980px) { .review-grid { grid-template-columns: 1fr; } .summary { position: static; order: -1; } }
.account-chip { display: flex; align-items: center; gap: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.account-chip > div { flex: 1; min-width: 0; }
.account-chip strong, .account-chip small { display: block; overflow: hidden; text-overflow: ellipsis; }
.account-chip small { color: var(--muted); }
.confirm-card { display: grid; gap: 14px; }
.done-card { max-width: 640px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); padding: clamp(26px, 5vw, 48px); text-align: center; }
.done-badge { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.ref { display: inline-grid; gap: 2px; background: var(--bg-soft); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); padding: 12px 26px; margin: 8px 0 4px; }
.ref small { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.ref strong { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.5rem; letter-spacing: 0.06em; }

/* ── Account ──────────────────────────────────────────────────────── */
.account-wrap { padding-bottom: var(--section-pad); }
.booking-list { display: grid; gap: 14px; }
.booking-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 20px 22px; border: 1px solid var(--border); border-inline-start: 4px solid var(--accent-strong); }
.booking-card.status-confirmed, .booking-card.status-checked_in { border-inline-start-color: var(--ok); }
.booking-card.status-cancelled { border-inline-start-color: var(--bad); opacity: 0.8; }
.booking-card.status-checked_out { border-inline-start-color: var(--border-strong); }
.booking-top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.booking-card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; margin-bottom: 6px; }
.booking-dates, .booking-meta { display: flex; gap: 8px; align-items: center; margin: 0 0 4px; font-size: 14.5px; color: var(--text-2); flex-wrap: wrap; }
.booking-meta .ic, .booking-dates .ic { color: var(--muted); }
.booking-note { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; font-style: italic; }
.booking-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
@media (max-width: 720px) { .booking-card { grid-template-columns: 1fr; } .booking-actions { flex-direction: row; flex-wrap: wrap; } }
.profile-form { max-width: 680px; }
.profile-head { display: flex; align-items: center; gap: 16px; margin-bottom: 4px; }
.profile-head h3 { margin: 0; display: block; }
.profile-head small { color: var(--muted); }

/* ── Chat ─────────────────────────────────────────────────────────── */
.chat-wrap { padding-block: clamp(20px, 4vw, 44px) var(--section-pad); }
.chat { max-width: 780px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--border); display: flex; flex-direction: column; height: min(74vh, 700px); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.chat-head > div { flex: 1; line-height: 1.25; }
.chat-head small { color: var(--muted); display: block; }
.chat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--surface-2); flex: none; }
.chat-call { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-strong); text-decoration: none; }
.chat-call:hover { border-color: var(--text); }
.chat-body { flex: 1; overflow-y: auto; padding: 20px; background: var(--bg-soft); display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 78%; padding: 9px 14px 6px; border-radius: 14px; word-break: break-word; }
.msg p { margin: 0; font-size: 15px; line-height: 1.5; }
.msg time { display: block; text-align: end; font-size: 11px; opacity: 0.65; margin-top: 2px; }
.msg-hotel { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-end-start-radius: 4px; }
.msg-me { align-self: flex-end; background: var(--btn); color: var(--on-btn); border-end-end-radius: 4px; }
.msg.welcome { background: var(--accent-soft); border-color: transparent; padding-bottom: 10px; }
.day-sep { align-self: center; margin: 8px 0; }
.day-sep span { background: var(--neutral-bg); color: var(--text-2); font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.chat-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-form textarea { flex: 1; min-height: 46px; max-height: 140px; resize: none; border-radius: 22px !important; padding: 12px 18px !important; }
.chat-send { width: 46px; height: 46px; padding: 0; flex: none; border-radius: 50%; }
.chat-note { margin-top: 14px; display: flex; justify-content: center; gap: 6px; align-items: center; }

/* ── Contact / FAQ ────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 24px; padding-bottom: var(--section-pad); align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card > .ic { color: var(--accent-strong); margin-bottom: 8px; }
.contact-card h4 { margin: 0 0 4px; }
.contact-card p { margin: 0 0 8px; color: var(--text-2); }
.contact-form-card h3 { display: block; font-size: 1.3rem; }
.sent { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 24px 0; }
.sent .ic { color: var(--ok); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.faq { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item { background: var(--surface); }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform 0.2s; color: var(--muted); }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--text-2); }

/* ── Legal ────────────────────────────────────────────────────────── */
.legal { padding-bottom: var(--section-pad); }
.legal h2 { font-family: var(--font-body); font-size: 1.15rem; margin: 30px 0 8px; letter-spacing: 0; }
.legal h3 { font-size: 1rem; margin: 18px 0 4px; }
.legal p, .legal li { color: var(--text-2); }
.legal ul { padding-inline-start: 22px; display: grid; gap: 6px; margin-bottom: 1em; }
.legal .notice { margin-bottom: 8px; }
mark.todo { background: var(--accent); color: var(--on-accent); padding: 1px 6px; border-radius: 6px; font-weight: 600; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-soft); color: var(--text-2); padding-top: clamp(44px, 6vw, 64px); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
.footer-brand strong { display: block; color: var(--text); font-size: 1.1rem; margin-bottom: 8px; }
.footer-brand p { margin: 0 0 4px; font-size: 14.5px; }
.site-footer h5 { color: var(--text); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
html[dir="rtl"] .site-footer h5 { letter-spacing: 0; text-transform: none; font-size: 14px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--text); text-decoration: underline; text-decoration-color: var(--accent-strong); }
.footer-grid > div > a { display: block; padding: 4px 0; font-size: 14.5px; }
.footer-bar { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 20px; border-top: 1px solid var(--border); font-size: 13.5px; color: var(--muted); }
.footer-lang { display: flex; gap: 6px; }
.footer-lang button { color: var(--text-2); padding: 4px 12px; font-size: 12.5px; }
.footer-lang button.on { background: var(--btn); color: var(--on-btn); border-color: var(--btn); }
.staff-link { opacity: 0.8; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Motion ───────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.6s ease, transform 0.6s ease; transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
/* No colour fades while the theme switches. */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }
@media print { .site-header, .site-footer, .hero-search, .drawer { display: none !important; } }

@media (max-width: 640px) {
  .control > .ic { display: none; }
  .control input, .control select { font-size: 15px; }
  .field { padding: 8px 12px; }
}
