/* ==========================================================================
   Sachit Travel — design system (mobile-first, RTL/LTR via logical properties)
   ========================================================================== */

@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Vazirmatn"; src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2"); font-weight: 700 900; font-display: swap; }

:root {
  --brand: #0d5bb5;
  --brand-600: #0b4f9e;
  --brand-700: #0a4285;
  --brand-800: #0b3266;
  --brand-50: #eef5fe;
  --brand-100: #dbe9fc;
  --brand-200: #b9d4f8;
  --accent: #f7931e;
  --accent-600: #e57f08;
  --accent-50: #fff5e8;
  --teal: #14b8a6;
  --teal-50: #e7f8f6;
  --success: #16a34a;
  --success-50: #eafaf0;
  --danger: #dc2626;
  --danger-50: #fdeeee;
  --warning: #d97706;
  --warning-50: #fff7e6;
  --info: #0284c7;
  --info-50: #e8f5fd;

  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #e5eaf1;
  --line-2: #eef2f7;
  --bg: #f4f7fb;
  --card: #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 18px 50px rgba(15, 23, 42, .14);
  --ring: 0 0 0 4px rgba(13, 91, 181, .14);

  --header-h: 68px;
  --bottom-nav-h: 64px;
  --container: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
}
main > *, main > .container > * { min-width: 0; }
body.has-bottom-nav { padding-bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
main { flex: 1 0 auto; }
img, svg { display: inline-block; vertical-align: middle; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4, h5 { margin: 0 0 .5em; line-height: 1.35; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand-100); }
[hidden] { display: none !important; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

.i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.i-fill { fill: currentColor; stroke: none; }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff; --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 700; font-size: 15px; line-height: 1;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s, border-color .2s;
  white-space: nowrap; user-select: none; text-decoration: none;
}
.btn:hover { color: var(--btn-fg); filter: brightness(1.05); box-shadow: 0 6px 16px rgba(13, 91, 181, .18); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.btn-accent { --btn-bg: var(--accent); }
.btn-accent:hover { box-shadow: 0 8px 20px rgba(247, 147, 30, .32); }
.btn-success { --btn-bg: var(--success); }
.btn-danger { --btn-bg: var(--danger); }
.btn-outline { --btn-bg: transparent; --btn-fg: var(--brand); --btn-bd: var(--brand-200); }
.btn-outline:hover { --btn-bg: var(--brand-50); box-shadow: none; }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink-2); }
.btn-ghost:hover { --btn-bg: var(--line-2); box-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-fg: var(--brand); --btn-bd: var(--line); }
.btn-light:hover { box-shadow: var(--shadow-sm); }
.btn-white { --btn-bg: #fff; --btn-fg: var(--brand-700); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; min-height: 42px; padding: 0; border-radius: 12px; }
.btn .spinner { display: none; }
.btn.is-loading .spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; line-height: 1.8; background: var(--line-2); color: var(--ink-2); white-space: nowrap;
}
.badge .i { width: 14px; height: 14px; }
.badge-brand { background: var(--brand-50); color: var(--brand-700); }
.badge-accent { background: var(--accent-50); color: #b45309; }
.badge-success { background: var(--success-50); color: #15803d; }
.badge-danger { background: var(--danger-50); color: #b91c1c; }
.badge-warning { background: var(--warning-50); color: #b45309; }
.badge-info { background: var(--info-50); color: #0369a1; }
.badge-teal { background: var(--teal-50); color: #0f766e; }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-outline { background: transparent; border: 1px solid var(--line); }

.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2);
  cursor: pointer; transition: .2s var(--ease); user-select: none;
}
.chip:hover { border-color: var(--brand-200); color: var(--brand); }
.chip.is-active, .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.card-body { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2, .card-head h3 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.card-head h2 .i, .card-head h3 .i { color: var(--brand); }
@media (min-width: 768px) { .card-body { padding: 24px; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.req { color: var(--danger); margin-inline-start: 2px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius); border: 1.5px solid var(--line);
  background: #fff; transition: border-color .2s, box-shadow .2s; font-size: 15px; outline: none;
}
.textarea { min-height: 100px; resize: vertical; }
.input:hover, .select:hover { border-color: #cbd5e1; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--ring); }
.input::placeholder { color: var(--muted-2); }
.select {
  appearance: none; padding-inline-end: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left 14px center;
}
[dir="ltr"] .select { background-position: right 14px center; }
.input-group { position: relative; }
.input-group > .i { position: absolute; inset-inline-start: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-group > .input { padding-inline-start: 44px; }
.is-invalid .input, .is-invalid .select, .input.is-invalid { border-color: var(--danger); background: #fffafa; }
.field-error { color: var(--danger); font-size: 12.5px; font-weight: 500; display: flex; gap: 4px; align-items: center; }
.field-hint { color: var(--muted); font-size: 12.5px; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); cursor: pointer; flex-shrink: 0; }
.segmented { display: inline-flex; background: var(--line-2); border-radius: 12px; padding: 4px; gap: 4px; }
.segmented label, .segmented button {
  position: relative; padding: 6px 14px; border-radius: 9px; font-weight: 600; font-size: 13.5px; color: var(--muted);
  cursor: pointer; border: 0; background: transparent; transition: .2s; display: inline-flex; align-items: center; gap: 6px;
}
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:has(input:checked), .segmented .is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-xs); }
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } .form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .form-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
.form-grid .span-full { grid-column: 1 / -1; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius); font-size: 14px; border: 1px solid transparent; }
.alert .i { margin-top: 3px; }
.alert-info { background: var(--info-50); color: #075985; border-color: #bae6fd; }
.alert-warning { background: var(--warning-50); color: #92400e; border-color: #fde68a; }
.alert-danger { background: var(--danger-50); color: #991b1b; border-color: #fecaca; }
.alert-success { background: var(--success-50); color: #166534; border-color: #bbf7d0; }
.alert strong { display: block; margin-bottom: 2px; }

/* ---------- Test-mode ribbon & announcement ---------- */
.topbar {
  background: linear-gradient(90deg, var(--brand-800), var(--brand-700)); color: #dbeafe; font-size: 12.5px;
  padding: 6px 0; text-align: center;
}
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 8px; }
.topbar .dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px rgba(247, 147, 30, .25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(247, 147, 30, 0); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 14px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 900; font-size: 18px; min-width: 0; }
.brand > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: -4px; }
.brand:hover { color: var(--ink); }
@media (max-width: 400px) { .site-header .brand { font-size: 16px; gap: 8px; } .site-header .brand img { width: 36px; height: 36px; } .site-header .brand small { display: none; } }
.main-nav { display: none; align-items: center; gap: 4px; margin-inline-start: 18px; }
.main-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; transition: .2s; }
.main-nav a .i { color: var(--muted); transition: .2s; }
.main-nav a:hover, .main-nav a.is-active { background: var(--brand-50); color: var(--brand-700); }
.main-nav a:hover .i, .main-nav a.is-active .i { color: var(--brand); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn-login span { display: none; }
@media (min-width: 640px) { .header-actions .btn-login span { display: inline; } }
@media (min-width: 1080px) { .main-nav { display: flex; } .nav-toggle { display: none !important; } }

.dropdown { position: relative; }
.dropdown-toggle { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.dropdown-toggle:hover { border-color: var(--brand-200); }
@media (max-width: 480px) {
  .header-actions { gap: 6px; }
  .header-actions .dropdown-toggle { padding: 0 9px; }
  .header-actions .dropdown-toggle .i-chevron-down { display: none; }
  .header-actions .dropdown-toggle .avatar { width: 30px; height: 30px; }
}
.dropdown-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 210px; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease);
}
.dropdown.is-open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a, .dropdown-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: 14px; border: 0; background: none; text-align: start; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--line-2); color: var(--ink); }
.dropdown-menu a.is-active { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 6px 0; }
.dropdown-menu .menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dropdown-menu .menu-head strong { display: block; }
.dropdown-menu .menu-head small { color: var(--muted); }
.lang-code { font-size: 11px; font-weight: 800; text-transform: uppercase; background: var(--line-2); color: var(--muted); border-radius: 6px; padding: 1px 6px; margin-inline-start: auto; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.avatar-lg { width: 64px; height: 64px; font-size: 24px; }

/* Mobile drawer */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 90; opacity: 0; visibility: hidden; transition: .25s; }
.drawer { position: fixed; top: 0; bottom: 0; inset-inline-start: 0; width: min(320px, 86vw); background: #fff; z-index: 91; transform: translateX(100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none !important; }
.drawer.is-open + .drawer-backdrop, .drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--line-2); }
.drawer-body { padding: 12px; overflow-y: auto; flex: 1; }
.drawer-body a { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; color: var(--ink-2); font-weight: 600; }
.drawer-body a:hover, .drawer-body a.is-active { background: var(--brand-50); color: var(--brand-700); }
.drawer-body .i { color: var(--brand); }
.drawer-section { font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 12px 6px; text-transform: uppercase; letter-spacing: .04em; }
.drawer-langs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 4px 12px; }
.drawer-langs a { justify-content: center; border: 1px solid var(--line); padding: 8px; }

/* Bottom nav (mobile app feel) */
.bottom-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 70; background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(5, 1fr); height: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom)); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; position: relative; min-width: 0; padding-inline: 2px; }
.bottom-nav a span { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bottom-nav a .i { width: 22px; height: 22px; }
.bottom-nav a.is-active { color: var(--brand); }
.bottom-nav a.is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); }
@media (min-width: 1080px) { .bottom-nav { display: none; } body.has-bottom-nav { padding-bottom: 0; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; padding: 36px 0 120px; overflow: hidden;
  background: radial-gradient(1200px 500px at 85% -10%, rgba(20, 184, 166, .35), transparent 60%),
              radial-gradient(900px 500px at 0% 120%, rgba(247, 147, 30, .25), transparent 60%),
              linear-gradient(135deg, #0a3c7a 0%, var(--brand) 55%, #1673d6 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: url("../images/art/pattern.svg") center / 520px repeat; opacity: .12; }
.hero::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: 30px; width: 520px; height: 260px; background: url("../images/art/flight-path.svg") no-repeat center / contain; opacity: .55; pointer-events: none; }
[dir="rtl"] .hero::after { transform: scaleX(-1); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(24px, 4.2vw, 42px); font-weight: 900; margin-bottom: 8px; text-shadow: 0 2px 20px rgba(0, 0, 0, .15); }
.hero p.lead { color: #dbeafe; font-size: clamp(14px, 1.8vw, 17px); max-width: 640px; margin: 0; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-badges span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); font-size: 13px; font-weight: 600; backdrop-filter: blur(6px); }
.hero-badges .i { width: 16px; height: 16px; color: #fcd34d; }
.hero.hero-compact { padding: 20px 0 84px; }
.hero.hero-compact h1 { font-size: clamp(20px, 3vw, 28px); }
@media (min-width: 768px) { .hero { padding: 56px 0 140px; } }

/* ---------- Search widget ---------- */
.search-wrap { position: relative; z-index: 20; margin-top: -96px; }
.hero-compact + .search-wrap { margin-top: -66px; }
.search-card { background: #fff; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.search-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.search-tabs::-webkit-scrollbar { display: none; }
.search-tab {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 14px; border-radius: 14px;
  border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; transition: .2s; min-width: 74px;
}
.search-tab .i { width: 24px; height: 24px; }
.search-tab:hover { color: var(--brand); background: var(--brand-50); }
.search-tab.is-active { color: var(--brand-700); background: var(--brand-50); box-shadow: inset 0 -3px 0 var(--brand); }
@media (min-width: 768px) {
  .search-tabs { padding: 10px 14px 0; gap: 6px; }
  .search-tab { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: 14.5px; padding: 12px 18px; border-radius: 14px 14px 0 0; }
  .search-tab.is-active { box-shadow: inset 0 -3px 0 var(--brand); }
}
.search-pane { padding: 16px; }
@media (min-width: 768px) { .search-pane { padding: 20px 22px 22px; } }
.search-options { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.search-grid .route { position: relative; display: grid; grid-template-columns: 1fr; gap: 10px; }
.search-grid .dates { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .search-grid .dates { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) {
  .search-grid { grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.6fr) minmax(0, 1.05fr) auto; align-items: stretch; }
  .search-grid .route { grid-template-columns: 1fr 1fr; gap: 10px; }
  .search-grid.hotel { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr) auto; }
}
.sfield {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; transition: .2s; text-align: start; width: 100%;
}
.sfield:hover { border-color: var(--brand-200); background: #fbfdff; }
.sfield.is-focus, .sfield:focus-within { border-color: var(--brand); box-shadow: var(--ring); }
.sfield > .i { color: var(--brand); width: 22px; height: 22px; }
.sfield .sf-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sfield .sf-label { font-size: 12px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.sfield .sf-value { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); line-height: 1.6; }
.sfield .sf-value.is-placeholder { color: var(--muted-2); font-weight: 500; }
.sfield input.sf-input,
.sfield select.sf-input {
  border: 0; outline: 0; padding: 0; font-weight: 700; font-size: 15px; width: 100%;
  background: transparent; min-width: 0; color: var(--ink); font-family: inherit; line-height: 1.6;
}
.sfield input.sf-input::placeholder { color: var(--muted-2); font-weight: 500; }
.sfield select.sf-input {
  appearance: none; cursor: pointer; padding-inline-end: 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: left center;
}
[dir="ltr"] .sfield select.sf-input { background-position: right center; }
.sfield select.sf-input option { font-weight: 600; color: var(--ink); }
.sfield .sf-sub { font-size: 11.5px; color: var(--muted); }
.sfield.is-disabled { background: var(--line-2); cursor: not-allowed; opacity: .7; }
.sfield.is-invalid { border-color: var(--danger); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.swap-btn {
  position: absolute; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--brand);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: .3s var(--ease);
  inset-inline-end: 18px; top: 50%; transform: translateY(-50%) rotate(90deg);
}
.swap-btn:hover { border-color: var(--brand); background: var(--brand-50); }
.swap-btn.is-spun { transform: translateY(-50%) rotate(270deg); }
@media (min-width: 992px) {
  .swap-btn { inset-inline-end: auto; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .swap-btn.is-spun { transform: translate(-50%, -50%) rotate(180deg); }
}
.search-submit { min-height: 64px; border-radius: 14px; font-size: 16.5px; padding: 0 26px; }
.search-submit .i { width: 22px; height: 22px; }

/* Popovers (city list, passengers) — bottom-sheet on mobile */
.popover {
  position: absolute; top: 0; left: 0; z-index: 120; width: 340px; max-width: min(440px, 94vw);
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden;
  animation: pop .18s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.popover-head { display: none; }
@media (max-width: 767px) {
  .popover { position: fixed; inset: auto 0 0 0; top: auto; max-width: none; width: 100%; border-radius: 22px 22px 0 0; max-height: 86vh; display: flex; flex-direction: column; animation: sheet .28s var(--ease); padding-bottom: env(safe-area-inset-bottom); z-index: 120; }
  .popover-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-2); font-weight: 800; }
  .popover-head::before { content: ""; position: absolute; top: 6px; left: 50%; width: 40px; height: 4px; border-radius: 4px; background: var(--line); transform: translateX(-50%); }
  body.sheet-open::after { content: ""; position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 110; }
}
@keyframes sheet { from { transform: translateY(100%); } }
.city-search { padding: 12px; border-bottom: 1px solid var(--line-2); }
.city-list { max-height: 340px; overflow-y: auto; padding: 6px; min-width: 300px; }
@media (max-width: 767px) { .city-list { max-height: none; flex: 1; } }
.city-list .group { font-size: 12px; font-weight: 700; color: var(--muted); padding: 8px 10px 4px; }
.city-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; cursor: pointer; width: 100%; border: 0; background: none; text-align: start; }
.city-item:hover, .city-item.is-hover { background: var(--brand-50); }
.city-item .ci-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--line-2); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; }
.city-item .ci-name { font-weight: 700; display: block; line-height: 1.4; }
.city-item .ci-sub { font-size: 12px; color: var(--muted); }
.city-item .ci-code { margin-inline-start: auto; font-size: 12px; font-weight: 800; color: var(--muted); background: var(--line-2); border-radius: 6px; padding: 2px 8px; direction: ltr; }
.city-empty { padding: 26px; text-align: center; color: var(--muted); }

.pax-pop { padding: 8px 16px 16px; min-width: 320px; }
.nights-pop { padding: 8px; max-height: 320px; overflow-y: auto; display: grid; gap: 2px; }
.nights-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; padding: 11px 14px; border: 0; border-radius: 12px; background: none;
  font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: start;
}
.nights-opt:hover, .nights-opt.is-active { background: var(--brand-50); color: var(--brand-700); }
.nights-opt .i, .nights-opt svg { color: var(--brand); flex-shrink: 0; }
@media (max-width: 767px) { .nights-pop { max-height: 55vh; } }
.pax-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.pax-row:last-of-type { border-bottom: 0; }
.pax-row strong { display: block; font-size: 15px; }
.pax-row small { color: var(--muted); font-size: 12.5px; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--brand-200); background: #fff; color: var(--brand); display: grid; place-items: center; transition: .2s; }
.stepper button:hover:not(:disabled) { background: var(--brand); color: #fff; border-color: var(--brand); }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 800; font-size: 17px; }

/* ---------- Sections ---------- */
.section { padding: 48px 0; }
.section-sm { padding: 28px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { font-size: clamp(20px, 2.4vw, 26px); margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-600); font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 1080px) { .scroller.cols-4 { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; } }

.deal-card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; background: #fff;
  border: 1px solid var(--line); color: var(--ink); transition: .25s var(--ease); overflow: hidden;
}
.deal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); border-color: var(--brand-200); }
.deal-card .route-line { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 16px; }
.deal-card .route-line .i { color: var(--brand); }
.deal-card .meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; }
.deal-card .meta small { color: var(--muted); font-size: 12.5px; display: block; }
.deal-card .price { font-weight: 900; color: var(--brand-700); font-size: 17px; }
.deal-card .price small { font-size: 11.5px; color: var(--muted); font-weight: 600; display: inline; }

.dest-card { position: relative; border-radius: 20px; overflow: hidden; min-height: 210px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; isolation: isolate; transition: .3s var(--ease); }
.dest-card::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--dest-bg, linear-gradient(135deg, #0d5bb5, #14b8a6)); transition: transform .5s var(--ease); }
.dest-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, .55)); }
.dest-card:hover { color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dest-card:hover::before { transform: scale(1.06); }
.dest-card .dest-art { position: absolute; inset-inline-end: -10px; top: -6px; width: 150px; height: 150px; opacity: .22; z-index: -1; }
.dest-card .dest-country { font-size: 12.5px; opacity: .85; font-weight: 600; }
.dest-card h3 { font-size: 22px; margin: 0; color: #fff; }
.dest-card .dest-price { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; backdrop-filter: blur(8px); width: max-content; }

.hotel-card { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); color: var(--ink); transition: .25s var(--ease); }
.hotel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); }
.hotel-thumb { position: relative; height: 170px; display: grid; place-items: center; color: rgba(255, 255, 255, .9); overflow: hidden; }
.hotel-thumb .i { width: 64px; height: 64px; stroke-width: 1.4; }
.hotel-thumb .stars { position: absolute; top: 12px; inset-inline-start: 12px; }
.hotel-thumb .rating-pill { position: absolute; bottom: 12px; inset-inline-end: 12px; }
.hotel-card .hc-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.hotel-card h3 { font-size: 16px; margin: 0; }
.hotel-card .hc-city { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 4px; }
.hotel-card .hc-foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px dashed var(--line); }
.theme-0 { background: linear-gradient(135deg, #0d5bb5, #3b82f6); }
.theme-1 { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.theme-2 { background: linear-gradient(135deg, #b45309, #f7931e); }
.theme-3 { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.theme-4 { background: linear-gradient(135deg, #be123c, #fb7185); }
.theme-5 { background: linear-gradient(135deg, #0b3266, #0ea5e9); }
.theme-0, .theme-1, .theme-2, .theme-3, .theme-4, .theme-5 { position: relative; }
.hotel-thumb::before { content: ""; position: absolute; inset: 0; background: url("../images/art/skyline.svg") bottom center / 120% auto no-repeat; opacity: .28; }
.stars { display: inline-flex; gap: 1px; color: #fbbf24; }
.stars .i { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.rating-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--ink); border-radius: 10px; padding: 3px 8px; font-size: 12.5px; font-weight: 700; box-shadow: var(--shadow-sm); }
.rating-pill b { background: var(--brand); color: #fff; border-radius: 7px; padding: 0 6px; }

.feature-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feature { display: flex; gap: 14px; padding: 20px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.feature .f-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-50); color: var(--brand); }
.feature .f-icon.accent { background: var(--accent-50); color: var(--accent-600); }
.feature .f-icon.teal { background: var(--teal-50); color: #0f766e; }
.feature .f-icon.violet { background: #f3e8ff; color: #7c3aed; }
.feature h3 { font-size: 16px; margin: 2px 0 4px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

.app-cta { position: relative; overflow: hidden; border-radius: 28px; padding: 28px; color: #fff; background: linear-gradient(120deg, #0b3266, var(--brand) 60%, #14b8a6); display: grid; gap: 20px; align-items: center; }
.app-cta::before { content: ""; position: absolute; inset: 0; background: url("../images/art/pattern.svg") center / 420px; opacity: .1; }
.app-cta > * { position: relative; }
.app-cta h2 { font-size: clamp(20px, 2.6vw, 28px); color: #fff; }
.app-cta p { color: #dbeafe; }
.app-cta ul { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.app-cta li { display: flex; gap: 8px; align-items: center; color: #e0f2fe; }
.app-cta li .i { color: #fcd34d; }
.app-cta .phone { justify-self: center; width: 230px; }
@media (min-width: 900px) { .app-cta { grid-template-columns: 1.4fr 1fr; padding: 44px 52px; } }

.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 10px; transition: .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: var(--brand-200); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform .25s; color: var(--muted); }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--brand); }
.faq details > div { padding: 0 18px 16px; color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: #0b1b33; color: #b6c3d8; margin-top: 40px; padding: 44px 0 20px; font-size: 14px; }
.site-footer a { color: #b6c3d8; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #94a3b8; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; }
.trust { display: flex; gap: 10px; margin-top: 16px; }
.trust span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #93c5fd; }
@media (max-width: 767.98px) {
  .site-footer { text-align: center; }
  .site-footer .brand { justify-content: center; }
  .site-footer .trust { justify-content: center; }
  .site-footer ul { justify-items: center; }
  .footer-contact li { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; flex-direction: column; }
  .site-footer .btn { margin-inline: auto; }
}

/* ---------- Results ---------- */
.results-head { background: linear-gradient(135deg, #0a3c7a, var(--brand)); color: #fff; padding: 18px 0 64px; position: relative; overflow: hidden; }
.results-head::before { content: ""; position: absolute; inset: 0; background: url("../images/art/pattern.svg") center / 480px; opacity: .1; }
.results-head .container { position: relative; }
.rh-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rh-route { display: flex; align-items: center; gap: 12px; font-size: clamp(18px, 2.4vw, 24px); font-weight: 900; }
.rh-route .i { color: #fcd34d; }
.rh-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.rh-meta span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #dbeafe; background: rgba(255, 255, 255, .1); padding: 4px 10px; border-radius: 999px; }
.rh-meta .i { width: 15px; height: 15px; }
.results-head + .container { position: relative; z-index: 2; }
.edit-search { margin-top: -48px; position: relative; z-index: 15; }
.edit-search .search-card { box-shadow: var(--shadow); }
.edit-search:not(.is-open) .search-card { display: none; }

.date-strip { display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-xs); }
.date-strip .ds-nav { display: grid; place-items: center; width: 40px; color: var(--muted); border: 0; background: var(--line-2); }
.date-strip .ds-nav:hover { color: var(--brand); background: var(--brand-50); }
.date-strip .ds-days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); overflow-x: auto; scrollbar-width: none; }
.date-strip .ds-days::-webkit-scrollbar { display: none; }
.ds-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 6px; color: var(--ink-2); border-inline-start: 1px solid var(--line-2); transition: .2s; text-align: center; min-height: 72px; }
.ds-day:hover { background: var(--brand-50); color: var(--ink); }
.ds-day .d1 { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.ds-day .d2 { font-size: 13px; font-weight: 800; }
.ds-day .d2.is-empty { color: var(--muted-2); font-weight: 500; font-size: 12px; }
.ds-day.is-active { background: var(--brand); color: #fff; }
.ds-day.is-active .d1 { color: #dbeafe; }
.ds-day.is-cheapest:not(.is-active) .d2 { color: var(--success); }

.results-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; margin-top: 18px; }
@media (min-width: 1080px) { .results-layout { grid-template-columns: 290px 1fr; } }
.filters { display: none; }
@media (min-width: 1080px) { .filters { display: block; position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; } }
.filters.is-open { display: block; position: fixed; inset: 0; z-index: 130; background: var(--bg); overflow-y: auto; padding: 0 0 90px; max-height: none; }
.filters-mobile-head { display: none; }
.filters.is-open .filters-mobile-head { display: flex; position: sticky; top: 0; z-index: 2; align-items: center; justify-content: space-between; padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--line); font-weight: 800; }
.filters-mobile-foot { display: none; }
.filters.is-open .filters-mobile-foot { display: flex; gap: 10px; position: fixed; bottom: 0; inset-inline: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
.filters.is-open .filter-card { margin: 12px; }
.filter-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.filter-block { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.filter-block:last-child { border-bottom: 0; }
.filter-block h4 { font-size: 14.5px; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: center; }
.filter-block .check { width: 100%; padding: 6px 0; }
.filter-block .check small { margin-inline-start: auto; color: var(--muted); font-weight: 600; }
.carrier-dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 800; flex-shrink: 0; direction: ltr; }
.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.time-opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 12px; border: 1.5px solid var(--line); cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--ink-2); transition: .2s; text-align: center; }
.time-opt small { color: var(--muted); font-weight: 500; font-size: 11px; }
.time-opt .i { color: var(--muted); }
.time-opt input { position: absolute; opacity: 0; pointer-events: none; }
.time-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.time-opt:has(input:checked) .i { color: var(--brand); }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-inputs .input { min-height: 40px; font-size: 13.5px; padding: 6px 10px; }

.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 14px; }
.toolbar .count { color: var(--muted); font-size: 14px; }
.toolbar .count b { color: var(--ink); }
.sort-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sort-tabs a { padding: 7px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: #fff; border: 1px solid var(--line); white-space: nowrap; }
.sort-tabs a.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-toggle { display: inline-flex; }
@media (min-width: 1080px) { .filter-toggle { display: none; } }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* Ticket card */
.ticket { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 14px; transition: .2s var(--ease); box-shadow: var(--shadow-xs); }
.ticket:hover { box-shadow: var(--shadow); border-color: var(--brand-200); }
.ticket-main { display: grid; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ticket-main { grid-template-columns: 1fr 220px; } }
.ticket-info { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.ticket-carrier { display: flex; align-items: center; gap: 10px; }
.carrier-logo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; flex-shrink: 0; box-shadow: inset 0 -8px 16px rgba(0, 0, 0, .12); direction: ltr; letter-spacing: .02em; }
.ticket-carrier strong { display: block; font-size: 15px; line-height: 1.4; }
.ticket-carrier small { color: var(--muted); font-size: 12.5px; }
.ticket-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.ticket-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.tr-point { text-align: center; min-width: 78px; }
.tr-point .time { font-size: 24px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; }
.tr-point .city { font-size: 13px; color: var(--muted); font-weight: 600; }
.tr-point .date { font-size: 11.5px; color: var(--muted-2); }
.tr-line { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; }
.tr-line .track { position: relative; width: 100%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.tr-line .track::before, .tr-line .track::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--brand); background: #fff; transform: translateY(-50%); }
.tr-line .track::before { inset-inline-start: -2px; }
.tr-line .track::after { inset-inline-end: -2px; background: var(--brand); }
.tr-line .mid-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: #fff; padding: 0 6px; color: var(--brand); }
[dir="rtl"] .tr-line .mid-icon .i { transform: scaleX(-1); }
.tr-line .dur { order: -1; }
.tr-line .stops { color: var(--success); font-size: 11.5px; }
.ticket-side { position: relative; padding: 16px 18px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; border-top: 1.5px dashed var(--line); }
@media (min-width: 768px) {
  .ticket-side { flex-direction: column; justify-content: center; align-items: stretch; text-align: center; border-top: 0; border-inline-start: 1.5px dashed var(--line); }
  .ticket-side::before, .ticket-side::after { content: ""; position: absolute; inset-inline-start: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
  .ticket-side::before { top: -11px; clip-path: inset(50% 0 0 0); }
  .ticket-side::after { bottom: -11px; clip-path: inset(0 0 50% 0); }
}
.ticket-price .amount { font-size: 22px; font-weight: 900; color: var(--brand-700); line-height: 1.3; }
.ticket-price .amount small { font-size: 12px; font-weight: 600; color: var(--muted); }
.ticket-price .per { font-size: 12px; color: var(--muted); }
.seats-left { color: var(--danger); font-size: 12px; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; justify-content: center; }
.ticket details { border-top: 1px solid var(--line-2); }
.ticket summary { list-style: none; cursor: pointer; padding: 10px 18px; color: var(--brand); font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.ticket summary::-webkit-details-marker { display: none; }
.ticket summary .i { transition: transform .2s; }
.ticket details[open] summary .i { transform: rotate(180deg); }
.ticket-details { padding: 4px 18px 18px; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .ticket-details { grid-template-columns: 1.2fr 1fr; } }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; text-align: end; }
.fare-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.fare-table th, .fare-table td { padding: 8px 6px; border-bottom: 1px solid var(--line-2); text-align: start; }
.fare-table th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.fare-table td:last-child, .fare-table th:last-child { text-align: end; }

.empty-state { text-align: center; padding: 48px 20px; background: #fff; border: 1px dashed var(--line); border-radius: 22px; }
.empty-state img { width: 220px; margin-bottom: 14px; }
.empty-state h3 { font-size: 19px; }
.empty-state p { color: var(--muted); max-width: 440px; margin-inline: auto; }

/* Hotel list item */
.hotel-row { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 14px; transition: .2s; }
.hotel-row:hover { box-shadow: var(--shadow); border-color: var(--brand-200); }
@media (min-width: 768px) { .hotel-row { grid-template-columns: 240px 1fr 210px; } }
.hotel-row .hotel-thumb { height: 180px; }
@media (min-width: 768px) { .hotel-row .hotel-thumb { height: 100%; min-height: 190px; } }
.hotel-row .hr-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.hotel-row h3 { font-size: 18px; margin: 0; }
.amenities { display: flex; flex-wrap: wrap; gap: 6px; }
.amenity { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); background: var(--line-2); padding: 4px 10px; border-radius: 999px; }
.amenity .i { width: 15px; height: 15px; color: var(--brand); }
.hotel-row .hr-side { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 8px; border-top: 1px dashed var(--line); }
@media (min-width: 768px) { .hotel-row .hr-side { border-top: 0; border-inline-start: 1px dashed var(--line); text-align: center; } }

.hotel-hero { border-radius: 24px; overflow: hidden; display: grid; gap: 8px; grid-template-columns: 2fr 1fr; grid-template-rows: 160px 160px; }
.hotel-hero > div { border-radius: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .85); }
.hotel-hero > div:first-child { grid-row: span 2; }
.hotel-hero .i { width: 70px; height: 70px; stroke-width: 1.2; }
@media (max-width: 640px) { .hotel-hero { grid-template-columns: 1fr; grid-template-rows: 200px; } .hotel-hero > div:not(:first-child) { display: none; } }

/* ---------- Booking flow ---------- */
.stepper-bar { display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 18px 0; overflow-x: auto; scrollbar-width: none; }
.stepper-bar::-webkit-scrollbar { display: none; }
.step { display: flex; align-items: center; gap: 10px; flex: 1; min-width: max-content; color: var(--muted); font-weight: 700; font-size: 13.5px; }
.step .num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--muted); font-size: 13px; flex-shrink: 0; }
.step::after { content: ""; flex: 1; height: 2px; background: var(--line); margin-inline: 10px; min-width: 18px; border-radius: 2px; }
.step:last-child::after { display: none; }
.step.is-done { color: var(--success); }
.step.is-done .num { background: var(--success); color: #fff; }
.step.is-done::after { background: var(--success); }
.step.is-current { color: var(--brand-700); }
.step.is-current .num { background: var(--brand); color: #fff; box-shadow: 0 0 0 5px var(--brand-100); }
@media (max-width: 640px) {
  .stepper-bar { padding: 12px; }
  .step { min-width: 0; flex: 1 1 auto; gap: 8px; }
  .step:last-child { flex: 0 0 auto; }
  .step::after { margin-inline: 6px; min-width: 10px; }
  .step .step-label { display: none; }
  .step.is-current .step-label { display: inline; white-space: nowrap; }
}

.booking-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
.booking-layout > *, .results-layout > *, .account-layout > * { min-width: 0; }
@media (min-width: 992px) { .booking-layout { grid-template-columns: 1fr 360px; } .booking-aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.pax-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; margin-bottom: 14px; overflow: hidden; }
.pax-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: linear-gradient(90deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line-2); }
.pax-card-head .pax-icon { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; }
.pax-card-head strong { font-size: 15.5px; }
.pax-card-head .badge { margin-inline-start: auto; }
.pax-card-body { padding: 18px; }
.trip-summary { display: flex; flex-direction: column; gap: 14px; }
.trip-summary .ts-route { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trip-summary .ts-point strong { display: block; font-size: 20px; font-weight: 900; }
.trip-summary .ts-point small { color: var(--muted); font-size: 12.5px; }
.trip-summary .ts-mid { flex: 1; text-align: center; color: var(--muted); font-size: 12px; }
.trip-summary .ts-mid .track { height: 2px; background: repeating-linear-gradient(90deg, var(--brand-200) 0 6px, transparent 6px 11px); margin: 4px 0; }
.price-lines { display: grid; gap: 8px; font-size: 14px; }
.price-lines .pl { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-2); }
.price-lines .pl-total { border-top: 1.5px dashed var(--line); padding-top: 12px; margin-top: 4px; font-weight: 900; font-size: 18px; color: var(--ink); }
.price-lines .pl-total span:last-child { color: var(--brand-700); }
.hold-timer { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--warning-50); color: #92400e; font-weight: 700; font-size: 13.5px; }
.hold-timer time { margin-inline-start: auto; font-variant-numeric: tabular-nums; font-size: 16px; }

.test-result { text-align: center; padding: 34px 20px 28px; }
.test-result .tr-icon { width: 110px; height: 110px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, #fff 55%, var(--info-50) 56%); box-shadow: 0 0 0 10px rgba(2, 132, 199, .06), 0 0 0 22px rgba(2, 132, 199, .04); color: var(--info); }
.test-result .tr-icon .i { width: 52px; height: 52px; }
.test-result h1 { font-size: clamp(20px, 3vw, 26px); }
.test-result p { color: var(--ink-2); max-width: 560px; margin-inline: auto; }
.ref-box { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 14px; border: 1.5px dashed var(--brand-200); background: var(--brand-50); font-weight: 800; color: var(--brand-700); font-size: 18px; letter-spacing: .08em; direction: ltr; }
.ref-box button { border: 0; background: #fff; color: var(--brand); width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; box-shadow: var(--shadow-xs); }
.boarding-pass { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (min-width: 768px) { .boarding-pass { grid-template-columns: 1fr 230px; } }
.bp-main { padding: 20px; }
.bp-side { padding: 20px; background: linear-gradient(180deg, var(--brand-50), #fff); border-top: 2px dashed var(--line); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
@media (min-width: 768px) { .bp-side { border-top: 0; border-inline-start: 2px dashed var(--line); } }
.watermark { position: relative; overflow: hidden; }
.watermark::after { content: attr(data-watermark); position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-18deg); font-size: 64px; font-weight: 900; color: rgba(2, 132, 199, .06); white-space: nowrap; pointer-events: none; }

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: start; font-size: 12.5px; color: var(--muted); font-weight: 700; padding: 10px 12px; background: var(--line-2); white-space: nowrap; }
.data-table td { padding: 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: start center; padding: 28px 16px; background: radial-gradient(800px 400px at 100% 0%, var(--brand-50), transparent 60%), radial-gradient(700px 400px at 0% 100%, var(--accent-50), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1fr; background: #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
@media (min-width: 860px) { .auth-card { grid-template-columns: 1fr 1fr; } }
.auth-art { display: none; position: relative; padding: 40px; color: #fff; background: linear-gradient(150deg, #0a3c7a, var(--brand) 55%, var(--teal)); overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: url("../images/art/pattern.svg") center / 380px; opacity: .12; }
.auth-art > * { position: relative; }
.auth-art h2 { color: #fff; font-size: 26px; }
.auth-art p { color: #dbeafe; }
.auth-art img { width: 100%; max-width: 330px; margin: 18px auto 0; display: block; }
@media (min-width: 860px) { .auth-art { display: flex; flex-direction: column; } }
.auth-form { padding: 32px 24px; }
@media (min-width: 640px) { .auth-form { padding: 44px 44px; } }
.auth-form h1 { font-size: 24px; }
.auth-form .sub { color: var(--muted); margin-bottom: 24px; }
.auth-sso-continue { text-align: center; font-size: 16px; font-weight: 800; line-height: 1.5; }
.auth-sso-continue a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.auth-sso-continue a:hover { color: var(--brand-700, var(--brand)); }
.otp-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); gap: 8px; justify-content: center; direction: ltr; margin: 8px 0 18px; }
.otp-inputs input { width: 100%; min-width: 0; height: 64px; padding: 0; text-align: center; font-size: 26px; font-weight: 800; border-radius: 16px; border: 2px solid var(--line); outline: 0; transition: .2s; background: #fff; caret-color: var(--brand); }
.otp-inputs input:focus { border-color: var(--brand); box-shadow: var(--ring); }
.otp-inputs input.is-filled { border-color: var(--brand-200); background: var(--brand-50); }
.otp-inputs.is-invalid input { border-color: var(--danger); animation: shake .35s; }
@media (max-width: 400px) { .otp-inputs { gap: 8px; } .otp-inputs input { height: 56px; font-size: 22px; border-radius: 14px; } }
.test-hint { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-50); color: #92400e; font-size: 13.5px; margin-bottom: 18px; border: 1px dashed #fcd34d; }
.test-hint code { font-family: inherit; font-weight: 900; letter-spacing: .3em; direction: ltr; background: #fff; padding: 2px 10px; border-radius: 8px; }

/* ---------- Account ---------- */
.account-layout { display: grid; gap: 18px; grid-template-columns: 1fr; padding: 22px 0 10px; align-items: start; }
@media (min-width: 992px) { .account-layout { grid-template-columns: 270px 1fr; } .account-nav { position: sticky; top: calc(var(--header-h) + 16px); } }
.account-nav .profile { display: flex; align-items: center; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line-2); }
.account-nav .profile strong { display: block; }
.account-nav .profile small { color: var(--muted); direction: ltr; display: inline-block; }
.account-nav nav { padding: 8px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.account-nav nav::-webkit-scrollbar { display: none; }
.account-nav nav form { display: contents; }
@media (min-width: 992px) { .account-nav nav { flex-direction: column; } }
.account-nav nav a, .account-nav nav button { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; border: 0; background: none; width: 100%; text-align: start; }
.account-nav nav a:hover, .account-nav nav button:hover { background: var(--line-2); }
.account-nav nav a.is-active { background: var(--brand-50); color: var(--brand-700); }
.account-nav nav a.is-active .i { color: var(--brand); }
@media (max-width: 991px) { .account-nav nav a, .account-nav nav button { width: auto; flex-shrink: 0; } }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.stat .s-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); flex-shrink: 0; }
.stat .s-icon.accent { background: var(--accent-50); color: var(--accent-600); }
.stat .s-icon.teal { background: var(--teal-50); color: #0f766e; }
.stat .s-icon.violet { background: #f3e8ff; color: #7c3aed; }
.stat small { color: var(--muted); font-size: 12.5px; display: block; }
.stat strong { font-size: 20px; font-weight: 900; line-height: 1.3; }
.stat > div { min-width: 0; }
@media (max-width: 520px) { .stat { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; } .stat .s-icon { width: 40px; height: 40px; border-radius: 12px; } }
.welcome-card { position: relative; overflow: hidden; border-radius: 22px; padding: 24px; color: #fff; background: linear-gradient(120deg, #0a3c7a, var(--brand) 60%, var(--teal)); }
.welcome-card::before { content: ""; position: absolute; inset: 0; background: url("../images/art/pattern.svg") center / 380px; opacity: .1; }
.welcome-card > * { position: relative; }
.welcome-card h2 { color: #fff; font-size: 22px; }
.welcome-card p { color: #dbeafe; margin: 0; }

.trip-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: #fff; margin-bottom: 10px; color: var(--ink); transition: .2s; }
.trip-item:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); color: var(--ink); }
.trip-item .ti-icon { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; }
.trip-item .ti-icon.hotel { background: #f3e8ff; color: #7c3aed; }
.trip-item .ti-icon.train { background: var(--teal-50); color: #0f766e; }
.trip-item .ti-icon.bus { background: var(--accent-50); color: var(--accent-600); }
.trip-item strong { display: block; font-size: 15px; }
.trip-item small { color: var(--muted); font-size: 12.5px; }
.trip-item .ti-side { text-align: end; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
@media (max-width: 560px) { .trip-item { grid-template-columns: auto 1fr; } .trip-item .ti-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; width: 100%; } }

/* ---------- Static pages ---------- */
.page-hero { background: linear-gradient(135deg, #0a3c7a, var(--brand)); color: #fff; padding: 40px 0 70px; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: url("../images/art/pattern.svg") center / 480px; opacity: .1; }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(22px, 3vw, 32px); }
.page-hero p { color: #dbeafe; margin: 0; }
.page-body { margin-top: -40px; position: relative; }
.prose { font-size: 15.5px; color: var(--ink-2); line-height: 2; }
.prose h2 { font-size: 19px; color: var(--ink); margin-top: 1.4em; }
.prose ul { padding-inline-start: 20px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #bfdbfe; margin-bottom: 8px; flex-wrap: wrap; }
.crumbs a { color: #e0f2fe; }
.crumbs .i { width: 14px; height: 14px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 22px 0 6px; padding: 0; list-style: none; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 14px; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-active span { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .is-disabled span { opacity: .45; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 200; top: calc(var(--header-h) + 12px); inset-inline-end: 16px; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); border-inline-start: 4px solid var(--brand); animation: toastIn .35s var(--ease); font-size: 14px; }
.toast.success { border-inline-start-color: var(--success); }
.toast.success > .i { color: var(--success); }
.toast.error { border-inline-start-color: var(--danger); }
.toast.error > .i { color: var(--danger); }
.toast.info > .i { color: var(--info); }
.toast button { margin-inline-start: auto; border: 0; background: none; color: var(--muted); padding: 0; }
.toast.is-leaving { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px) scale(.97); } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; background: rgba(15, 23, 42, .5); animation: fade .2s; }
.modal-card { width: 100%; max-width: 520px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); animation: pop .25s var(--ease); overflow: hidden; }
.modal-card .modal-body { padding: 24px; }
@keyframes fade { from { opacity: 0; } }

/* ---------- Install banner ---------- */
.install-banner { position: fixed; z-index: 85; inset-inline: 12px; bottom: calc(var(--bottom-nav-h) + 12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #0b1b33; color: #fff; box-shadow: var(--shadow-lg); animation: toastIn .4s var(--ease); }
.install-banner img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 4px; }
.install-banner strong { display: block; font-size: 14px; }
.install-banner small { color: #94a3b8; font-size: 12px; }
.install-banner .btn { margin-inline-start: auto; }
.install-banner .close { border: 0; background: none; color: #94a3b8; padding: 4px; }
@media (min-width: 1080px) { .install-banner { inset-inline: auto 24px; bottom: 24px; max-width: 420px; } }

/* ==========================================================================
   Date picker (Jalali / Gregorian / Hijri)
   ========================================================================== */
.dp { position: absolute; z-index: 140; width: 340px; max-width: calc(100vw - 24px); background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); overflow: hidden; animation: pop .2s var(--ease); user-select: none; }
.dp-backdrop { position: fixed; inset: 0; z-index: 139; background: transparent; }
@media (max-width: 767px) {
  .dp { position: fixed; inset: auto 0 0 0 !important; width: 100%; max-width: none; border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: sheet .3s var(--ease); }
  .dp-backdrop { background: rgba(15, 23, 42, .45); }
}
.dp-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; }
.dp-head h4 { margin: 0; font-size: 15px; }
.dp-close { border: 0; background: var(--line-2); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.dp-ask { padding: 6px 16px 18px; display: grid; gap: 10px; }
.dp-ask p { margin: 0 0 4px; color: var(--muted); font-size: 13.5px; }
.dp-cal-opt { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; text-align: start; transition: .2s; width: 100%; }
.dp-cal-opt:hover { border-color: var(--brand); background: var(--brand-50); }
.dp-cal-opt.is-last { border-color: var(--brand-200); }
.dp-cal-opt .co-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 18px; color: #fff; flex-shrink: 0; }
.dp-cal-opt .co-icon.jalali { background: linear-gradient(135deg, #0d5bb5, #3b82f6); }
.dp-cal-opt .co-icon.gregorian { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.dp-cal-opt .co-icon.hijri { background: linear-gradient(135deg, #b45309, #f7931e); }
.dp-cal-opt strong { display: block; font-size: 15px; }
.dp-cal-opt small { color: var(--muted); font-size: 12.5px; }
.dp-cal-opt .tag { margin-inline-start: auto; }
.dp-switch { display: flex; gap: 4px; margin: 0 16px 8px; background: var(--line-2); padding: 4px; border-radius: 12px; }
.dp-switch button { flex: 1; border: 0; background: transparent; padding: 6px 4px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: var(--muted); }
.dp-switch button.is-active { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-xs); }
.dp-nav { display: flex; align-items: center; justify-content: space-between; padding: 4px 12px; }
.dp-nav button.arrow { width: 36px; height: 36px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; }
.dp-nav button.arrow:hover:not(:disabled) { background: var(--line-2); }
.dp-nav button.arrow:disabled { opacity: .3; cursor: not-allowed; }
.dp-nav .title { border: 0; background: none; font-weight: 800; font-size: 15px; padding: 6px 12px; border-radius: 10px; display: inline-flex; align-items: center; gap: 4px; }
.dp-nav .title:hover { background: var(--line-2); }
[dir="rtl"] .dp-nav .arrow .i { transform: scaleX(-1); }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 10px; text-align: center; }
.dp-week span { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 0; }
.dp-grid { padding-bottom: 10px; gap: 2px 0; }
.dp-day { position: relative; aspect-ratio: 1; max-height: 44px; border: 0; background: none; border-radius: 12px; font-weight: 600; font-size: 14.5px; color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; transition: background .15s; }
.dp-day small { font-size: 9.5px; color: var(--muted-2); font-weight: 500; margin-top: 1px; }
.dp-day:hover:not(:disabled) { background: var(--brand-50); color: var(--brand-700); }
.dp-day.is-today { box-shadow: inset 0 0 0 1.5px var(--brand-200); }
.dp-day.is-weekend { color: var(--danger); }
.dp-day.is-selected { background: var(--brand); color: #fff; }
.dp-day.is-selected small { color: #dbeafe; }
.dp-day.is-range { background: var(--brand-50); border-radius: 0; }
.dp-day:disabled { color: #cbd5e1; cursor: not-allowed; }
.dp-day:disabled small { color: #e2e8f0; }
.dp-day.is-out { visibility: hidden; }
.dp-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px 14px 14px; max-height: 280px; overflow-y: auto; }
.dp-years button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 0; font-weight: 700; font-size: 14px; }
.dp-years button:hover { border-color: var(--brand); color: var(--brand); }
.dp-years button.is-selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.dp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 6px 14px 14px; }
.dp-months button { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 12px 0; font-weight: 700; font-size: 13.5px; }
.dp-months button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.dp-months button.is-selected { background: var(--brand); color: #fff; border-color: var(--brand); }
.dp-months button:disabled { opacity: .35; }
.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 14px; border-top: 1px solid var(--line-2); }
.dp-foot .alt { font-size: 12px; color: var(--muted); }
.date-input { cursor: pointer; }
.date-input[readonly] { background: #fff; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 6px; } .mt-2 { margin-top: 12px; } .mt-3 { margin-top: 18px; } .mt-4 { margin-top: 24px; } .mt-5 { margin-top: 36px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 6px; } .mb-2 { margin-bottom: 12px; } .mb-3 { margin-bottom: 18px; } .mb-4 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .justify-center { justify-content: center; } .flex-wrap { flex-wrap: wrap; } .gap-1 { gap: 6px; } .gap-2 { gap: 12px; } .gap-3 { gap: 18px; } .grow { flex: 1; }
.grid { display: grid; } .grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.text-muted { color: var(--muted); } .text-brand { color: var(--brand); } .text-success { color: var(--success); } .text-danger { color: var(--danger); } .text-accent { color: var(--accent-600); }
.text-sm { font-size: 13px; } .text-xs { font-size: 12px; } .text-lg { font-size: 17px; } .fw-bold { font-weight: 800; } .fw-600 { font-weight: 600; }
.text-center { text-align: center; } .text-end { text-align: end; }
.w-full { width: 100%; }
.hide-mobile { display: none; }
@media (min-width: 768px) { .hide-mobile { display: initial; } .hide-desktop { display: none !important; } }
.divider { border: 0; border-top: 1px solid var(--line-2); margin: 16px 0; }
.skeleton { background: linear-gradient(90deg, var(--line-2) 25%, #f8fafc 50%, var(--line-2) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Search loading overlay ---------- */
.search-loading {
  position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .28s ease, visibility .28s ease;
}
.search-loading.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.search-loading__veil {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(13, 91, 181, .28), transparent 55%),
    linear-gradient(160deg, rgba(11, 50, 102, .72), rgba(15, 23, 42, .78));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.search-loading__card {
  position: relative; width: min(100%, 380px); padding: 36px 28px 28px;
  border-radius: 28px; background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 60px rgba(11, 50, 102, .28), 0 0 0 1px rgba(255, 255, 255, .4) inset;
  text-align: center; transform: translateY(14px) scale(.97);
  transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.search-loading.is-open .search-loading__card { transform: none; }
.search-loading__orbit {
  position: relative; width: 108px; height: 108px; margin: 0 auto 22px;
  display: grid; place-items: center;
}
.search-loading__ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--brand);
  border-inline-end-color: var(--accent);
  animation: search-spin 1.1s linear infinite;
}
.search-loading__ring.is-delayed {
  inset: 10px; border-top-color: var(--accent);
  border-inline-end-color: var(--brand-200);
  animation-duration: 1.7s; animation-direction: reverse; opacity: .7;
}
.search-loading__icon {
  width: 72px; height: 72px; border-radius: 22px;
  display: grid; place-items: center;
  background: #fff;
  box-shadow: 0 8px 24px rgba(13, 91, 181, .16), 0 0 0 1px rgba(13, 91, 181, .08);
  animation: search-float 2.2s ease-in-out infinite;
}
.search-loading__icon img {
  width: 52px; height: 52px; object-fit: contain; display: block;
  border-radius: 12px;
}
.search-loading__title {
  margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em;
}
.search-loading__hint {
  margin: 0 0 22px; font-size: 13.5px; line-height: 1.7; color: var(--muted);
}
.search-loading__bar {
  height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin-bottom: 16px;
}
.search-loading__bar > span {
  display: block; height: 100%; width: 42%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  animation: search-bar 1.35s ease-in-out infinite;
}
.search-loading__dots { display: inline-flex; gap: 7px; }
.search-loading__dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--brand-200);
  animation: search-dot 1.2s ease-in-out infinite;
}
.search-loading__dots i:nth-child(2) { animation-delay: .15s; background: var(--brand); }
.search-loading__dots i:nth-child(3) { animation-delay: .3s; background: var(--accent); }
@keyframes search-spin { to { transform: rotate(360deg); } }
@keyframes search-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes search-bar {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
[dir="rtl"] .search-loading__bar > span { animation-name: search-bar-rtl; }
@keyframes search-bar-rtl {
  0% { transform: translateX(120%); }
  100% { transform: translateX(-280%); }
}
@keyframes search-dot {
  0%, 80%, 100% { transform: scale(.7); opacity: .45; }
  40% { transform: scale(1); opacity: 1; }
}
body.is-search-loading { overflow: hidden; }
.btn.search-submit.is-loading > .i { opacity: 0; width: 0; margin: 0; }
.btn.search-submit.is-loading > span:not(.spinner) { opacity: .92; }

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .bottom-nav, .topbar, .no-print, .toasts, .install-banner { display: none !important; }
  body { background: #fff; padding: 0 !important; }
  .card, .boarding-pass { box-shadow: none; border-color: #ccc; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (min-width: 860px) { .auth-wrap { place-items: center; } }
