/* تَرین ۲۴ — app styles. RTL-first, mobile-first. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-0);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--bg);
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: var(--lh-tight); text-wrap: pretty; margin: 0 0 var(--sp-3); }
h1 { font-size: var(--fs-4); font-weight: 800; }
h2 { font-size: var(--fs-3); font-weight: 700; }
h3 { font-size: var(--fs-1); font-weight: 700; }
p { margin: 0 0 var(--sp-3); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); text-decoration: underline; }
img { max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--r-s); }
.container { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--sp-4); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { background: var(--brand-deep); color: #fff; }
.site-header .container { display: flex; align-items: center; gap: var(--sp-5); min-height: 60px; }
.logo { display: flex; align-items: center; gap: var(--sp-2); color: #fff; font-size: var(--fs-2); font-weight: 800; }
.logo:hover { color: #fff; text-decoration: none; }
.logo svg { flex: none; }
.site-nav { display: flex; gap: var(--sp-4); margin-inline-start: auto; }
.site-nav a { color: rgba(255,255,255,0.85); font-size: var(--fs-0); padding: var(--sp-2) 0; }
.site-nav a[aria-current="page"] { color: #fff; font-weight: 700; border-bottom: 2px solid var(--accent-line); }
.site-nav a:hover { color: #fff; text-decoration: none; }
.nav-soon { font-size: 0.7em; background: rgba(255,255,255,0.15); border-radius: var(--r-pill); padding: 1px 8px; margin-inline-start: 4px; vertical-align: 2px; }

/* ---------- hero ---------- */
.hero { background: var(--brand-deep); color: #fff; padding: var(--sp-6) 0 calc(var(--sp-8) + 34px); background-image: radial-gradient(1200px 400px at 80% -120px, rgba(11,114,133,0.55), transparent 70%); }
.hero h1 { color: #fff; font-size: clamp(var(--fs-3), 4.5vw, var(--fs-5)); margin-bottom: var(--sp-2); }
.hero .sub { color: rgba(255,255,255,0.78); font-size: var(--fs-1); max-width: none; margin-bottom: 0; text-wrap: balance; }
.route-hero { padding-bottom: calc(var(--sp-7) + 34px); }
.hotel-meta { display: flex; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-2); }
.hero .hotel-meta .h-stars { color: #F0C987; letter-spacing: 2px; font-size: var(--fs--1); }
.hero .hotel-meta .h-area { color: rgba(255,255,255,0.78); font-size: var(--fs--1); }
/* single-hotel page hero photo — the search-card that follows pulls itself
   up 58px (.search-card's own margin-top) to overlap the hero, so this
   needs matching bottom margin or that overlap eats into the photo. */
.hotel-hero-photo { width: 100%; height: 260px; margin-bottom: calc(58px + var(--sp-4)); }
.breadcrumb { font-size: var(--fs--1); color: rgba(255,255,255,0.7); margin-bottom: var(--sp-3); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-1); margin: 0; padding: 0; }
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb li + li::before { content: "‹"; margin-inline: var(--sp-1); color: rgba(255,255,255,0.45); }

/* ---------- search card ---------- */
.search-card {
  background: var(--surface); border-radius: var(--r-l); box-shadow: var(--shadow-3);
  padding: var(--sp-4); margin-top: -58px; position: relative; z-index: 5;
}
.search-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.field { position: relative; display: flex; flex-direction: column; gap: 2px; }
.field label { font-size: var(--fs--1); font-weight: 700; color: var(--ink-2); }
.field input, .pax-btn {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--surface); color: var(--ink); font: inherit;
  padding: 12px 14px; min-height: 50px; text-align: right;
}
.field input:focus { border-color: var(--brand); outline: none; box-shadow: var(--focus-ring); }
.field.is-invalid input { border-color: var(--danger); background: var(--danger-bg); }
.field .hint-err { display: none; color: var(--danger); font-size: var(--fs--1); }
.field.is-invalid .hint-err { display: block; }
.od-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: var(--sp-2); }
.swap {
  border: 1.5px solid var(--line-strong); background: var(--surface-2); color: var(--brand);
  width: 42px; height: 42px; border-radius: var(--r-pill); margin-bottom: 4px;
  display: grid; place-items: center; font-size: 18px;
}
.swap:hover { background: var(--brand-tint); border-color: var(--brand); }
.search-btn {
  background: var(--accent); background: linear-gradient(180deg, #C96A05, var(--accent));
  color: #fff; border: none; border-radius: var(--r-m); min-height: 52px;
  font-size: var(--fs-1); font-weight: 800; letter-spacing: 0.01em;
  box-shadow: var(--shadow-1);
}
.search-btn:hover { filter: brightness(1.06); }
.search-btn:active { transform: translateY(1px); }

@media (min-width: 860px) {
  .search-grid { grid-template-columns: minmax(280px, 1.6fr) 1fr 1fr auto; align-items: end; }
  .search-btn { min-width: 150px; }
}

/* autocomplete */
.ac-list {
  position: absolute; top: calc(100% + 4px); right: 0; left: 0; z-index: 30;
  margin: 0; padding: var(--sp-1); list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-2); max-height: 290px; overflow: auto;
}
.ac-item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--sp-2); align-items: baseline; padding: 10px 12px; border-radius: var(--r-s); cursor: pointer; }
.ac-item:hover, .ac-item.is-active { background: var(--brand-tint); }
.ac-city { font-weight: 700; }
.ac-name { color: var(--ink-3); font-size: var(--fs--1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-iata { color: var(--ink-3); font-size: var(--fs--1); font-family: monospace; direction: ltr; }

/* datepicker — iOS-calendar-style: circular day cells, plain chevron nav */
.dp {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 30; width: min(320px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-3); padding: var(--sp-4);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-3); }
.dp-head strong { font-size: var(--fs-1); }
.dp-nav {
  border: none; background: none; color: var(--brand); border-radius: 50%;
  width: 36px; height: 36px; font-size: 18px; display: flex; align-items: center; justify-content: center;
}
.dp-nav:hover { background: var(--brand-tint); }
.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dp-week span { font-size: var(--fs--1); color: var(--ink-3); padding: 4px 0; }
.dp-cell {
  border: none; background: none; border-radius: 50%; aspect-ratio: 1; width: 100%;
  font-size: var(--fs-0); color: var(--ink); display: flex; align-items: center; justify-content: center;
}
.dp-cell:hover:not(:disabled) { background: var(--brand-tint); }
.dp-cell:disabled { color: var(--line-strong); cursor: default; }
.dp-cell.is-today { box-shadow: inset 0 0 0 1.5px var(--brand); color: var(--brand-strong); font-weight: 700; }
.dp-cell.is-selected { background: var(--brand); color: #fff; font-weight: 700; box-shadow: none; }
.dp-pad { pointer-events: none; }

/* pax popover */
.pax-btn { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); cursor: pointer; }
.pax-btn::after { content: "▾"; color: var(--ink-3); font-size: 12px; }
.pax-pop {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; width: min(300px, 92vw);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  box-shadow: var(--shadow-2); padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-3);
}
.pax-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.pax-row .pax-name { display: flex; flex-direction: column; }
.pax-row .pax-sub { font-size: var(--fs--1); color: var(--ink-3); }
.stepper { display: flex; align-items: center; gap: var(--sp-2); }
.stepper button { width: 34px; height: 34px; border-radius: var(--r-pill); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--brand); font-size: 17px; font-weight: 700; }
.stepper button:hover { border-color: var(--brand); background: var(--brand-tint); }
.stepper [data-count] { min-width: 22px; text-align: center; font-weight: 700; }
.cabin-row { display: flex; gap: var(--sp-2); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.cabin-row button { flex: 1; border: 1.5px solid var(--line-strong); background: var(--surface); border-radius: var(--r-s); padding: 8px; }
.cabin-row button.is-on { border-color: var(--brand); background: var(--brand-tint); font-weight: 700; color: var(--brand-strong); }
.pax-done { background: var(--brand); color: #fff; border: none; border-radius: var(--r-s); min-height: 42px; font-weight: 700; }
.pax-done:hover { background: var(--brand-strong); }

/* ---------- results ---------- */
#results { margin-top: var(--sp-6); scroll-margin-top: var(--sp-4); }
.results-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-2) var(--sp-3); margin-bottom: var(--sp-3); }
.results-head h2 { margin: 0; font-size: var(--fs-2); }
#results-date { color: var(--ink-3); font-size: var(--fs--1); }
.refresh {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--brand-strong);
  border-radius: var(--r-pill); padding: 7px 14px; font-size: var(--fs--1); font-weight: 700;
}
.refresh:hover { border-color: var(--brand); background: var(--brand-tint); }
.offline-note {
  background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent);
  border-radius: var(--r-m); padding: var(--sp-2) var(--sp-3); font-size: var(--fs--1); margin-bottom: var(--sp-3);
}

/* sort toolbar */
.fsort { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.fsort-label { font-size: var(--fs--1); color: var(--ink-3); font-weight: 700; margin-inline-end: var(--sp-1); }
.fsort-btn {
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink-2);
  border-radius: var(--r-pill); padding: 7px 16px; font-size: var(--fs--1); font-weight: 700; min-height: 40px;
}
.fsort-btn:hover { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.fsort-btn.is-on { border-color: var(--brand); background: var(--brand); color: #fff; }

/* infinite-scroll sentinel — the next batch loads once this row scrolls
   near the viewport (see hotel.js's observeSentinel). */
.hpager-sentinel { display: flex; justify-content: center; margin-top: var(--sp-4); }
.hpager-sentinel .pulse { width: 160px; height: 14px; }

/* flight cards */
.fcards { display: flex; flex-direction: column; gap: var(--sp-3); }
.fcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: var(--shadow-1); padding: var(--sp-4);
}
.fcard:hover { box-shadow: var(--shadow-2); }
.fc-badges { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.fc-badge { font-size: 0.72rem; border-radius: var(--r-pill); padding: 3px 12px; font-weight: 700; }
.fc-cabin { background: var(--brand-tint); color: var(--brand-strong); }
.fc-charter { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-line); }
.fc-system { background: var(--surface-2); color: var(--ink-2); }

.fc-main { display: flex; align-items: center; gap: var(--sp-4); }
.fc-airline { display: flex; flex-direction: column; align-items: center; gap: 6px; flex: none; width: 92px; text-align: center; }
.fc-logo {
  width: 46px; height: 46px; border-radius: var(--r-pill); display: grid; place-items: center;
  font-size: var(--fs-1); font-weight: 800;
  background: hsl(var(--logo-h, 190) 42% 92%); color: hsl(var(--logo-h, 190) 55% 32%);
}
.fc-logo-img { width: 46px; height: 46px; border-radius: var(--r-pill); flex: none; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 4px; }
.fc-airline-name { font-size: var(--fs--1); font-weight: 700; color: var(--ink-2); line-height: 1.3; display: flex; flex-direction: column; }
.fc-no { font-size: 0.7rem; color: var(--ink-3); font-weight: 400; }

.fc-end { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; min-width: 66px; }
.fc-time { font-size: var(--fs-3); font-weight: 800; color: var(--ink); letter-spacing: 0.01em; }
.fc-city { font-size: var(--fs--1); color: var(--ink-3); }

.fc-sep { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 70px; }
.fc-dur { font-size: 0.72rem; color: var(--ink-3); }
.fc-track { display: flex; align-items: center; gap: 4px; width: 100%; color: var(--brand); }
.fc-rail { flex: 1; height: 0; border-top: 1.5px dashed var(--line-strong); }
.fc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); flex: none; }
.fc-plane { width: 22px; height: 22px; flex: none; transform: rotate(-90deg); }

.fc-offers { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); }
.foffer {
  display: flex; flex-direction: column; gap: 2px; flex: 1 1 0; min-width: 0;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-m); padding: 8px 12px; color: var(--ink); background: var(--surface);
}
a.foffer:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; color: var(--ink); }
.foffer.is-cheapest { border-color: var(--ok); background: var(--ok-bg); }
.foffer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.foffer-provider { font-size: var(--fs--1); color: var(--ink-2); font-weight: 700; }
.foffer-best { font-size: 0.62rem; background: var(--ok); color: #fff; border-radius: var(--r-pill); padding: 1px 8px; font-weight: 700; white-space: nowrap; }
.foffer-price { font-size: var(--fs-1); font-weight: 800; white-space: nowrap; }
.foffer.is-cheapest .foffer-price { color: var(--ok); }
.foffer-meta { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.foffer-tag { font-size: 0.62rem; font-weight: 700; color: var(--ink-2); background: var(--surface-2); border-radius: var(--r-pill); padding: 1px 8px; }
.foffer-tag.is-charter { background: var(--accent-bg); color: var(--accent); border: 1px solid var(--accent-line); }
.foffer-seats { font-size: 0.66rem; color: var(--ink-3); font-weight: 700; }
.foffer-seats.is-low { color: var(--danger); }
.foffer-fresh { font-size: 0.64rem; color: var(--ink-3); }
.foffer-pending { align-items: stretch; justify-content: center; border-style: dashed; }
.foffer-pending .pulse { width: 100%; height: 26px; margin-top: 4px; }

/* skeleton + states */
.pulse { display: block; width: 80%; height: 40px; border-radius: var(--r-s); background: linear-gradient(90deg, var(--surface-2) 25%, #E4EBEA 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: pulse 1.3s ease infinite; }
@keyframes pulse { from { background-position: 100% 0; } to { background-position: 0 0; } }
.grid-skeleton { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4); }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-bottom: var(--sp-3); }
.sk-note { color: var(--ink-3); font-size: var(--fs--1); text-align: center; margin: 0; }
.grid-empty { background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-l); padding: var(--sp-6); text-align: center; color: var(--ink-2); }
.grid-partial { font-size: var(--fs--1); color: var(--ink-3); margin-top: var(--sp-2); }
.grid-partial.is-err { color: var(--accent); }
.dotdot { width: 26px; height: 5px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--brand) 40%, var(--line) 40%); background-size: 250% 100%; animation: pulse 1.1s linear infinite; }

/* mobile: tighter route strip, 2-up provider buttons */
@media (max-width: 559px) {
  .fcard, .hotel-card { padding: var(--sp-3); }
  .fc-main { gap: var(--sp-2); }
  .fc-airline { width: 56px; }
  .fc-logo, .fc-logo-img { width: 40px; height: 40px; }
  .fc-time { font-size: var(--fs-2); }
  .fc-end { min-width: 50px; }
  .foffer { flex: 1 1 calc(50% - var(--sp-2)); max-width: none; min-width: 0; }
  .h-photo { width: 88px; height: 72px; }
}

/* ---------- content sections ---------- */
.section { padding: var(--sp-7) 0 0; }
.section:last-of-type { padding-bottom: var(--sp-7); }
.section-lede { color: var(--ink-2); max-width: 62ch; }
.arbaeen-banner-card { display: block; border-radius: var(--r-l); overflow: hidden; box-shadow: var(--shadow-1); }
.arbaeen-banner-card:hover { box-shadow: var(--shadow-2); }
.arbaeen-banner-card img { display: block; width: 100%; height: auto; }
.routes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }
.route-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
  padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 2px;
  color: var(--ink); box-shadow: var(--shadow-1); min-height: 64px; justify-content: center;
}
.route-card:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); box-shadow: var(--shadow-2); }
.route-card .rc-route { font-weight: 700; }
.route-card .rc-note { font-size: var(--fs--1); color: var(--ink-3); }
.props { display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
@media (min-width: 720px) { .props { grid-template-columns: repeat(3, 1fr); } }
.prop { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4); }
.prop .prop-icon { width: 42px; height: 42px; border-radius: var(--r-m); background: var(--brand-tint); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: var(--sp-3); }
.prop h3 { margin-bottom: var(--sp-1); }
.prop p { margin: 0; color: var(--ink-2); font-size: var(--fs-0); }
.faq { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 0 var(--sp-4); }
.faq summary { cursor: pointer; font-weight: 700; padding: var(--sp-3) 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: var(--fs-1); }
.faq details[open] summary::after { content: "－"; }
.faq details > p { color: var(--ink-2); padding-bottom: var(--sp-3); margin: 0; }
.prose { max-width: none; }
.prose h2 { margin-top: var(--sp-6); }
.prose ul { padding-inline-start: var(--sp-5); color: var(--ink-2); }
.airline-list { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-3) 0; }
.airline-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px; font-size: var(--fs--1); }
.fact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); margin: var(--sp-4) 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: var(--sp-3) var(--sp-4); display: flex; flex-direction: column; gap: 2px; }
.fact .fact-k { display: block; font-size: var(--fs--1); color: var(--ink-3); }
.fact .fact-v { display: block; font-weight: 800; font-size: var(--fs-1); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,0.8); margin-top: var(--sp-8); padding: var(--sp-6) 0; font-size: var(--fs--1); }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-grid h3 { color: #fff; font-size: var(--fs-0); margin-bottom: var(--sp-2); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp-1); }
.footer-note { border-top: 1px solid rgba(255,255,255,0.15); margin-top: var(--sp-5); padding-top: var(--sp-4); color: rgba(255,255,255,0.55); }

/* ---------- hotels ---------- */
/* Cards mirror .fcard's shape (badge-free variant): a "main" info row up
   top, then a divider, then provider price boxes — reusing .foffer/.fc-*
   classes directly so the two result types can never visually drift apart. */
.hotel-list { display: flex; flex-direction: column; gap: var(--sp-3); }
.hotel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); box-shadow: var(--shadow-1); }
.hotel-card:hover { box-shadow: var(--shadow-2); }
.hc-main { display: flex; gap: var(--sp-3); align-items: flex-start; }
.h-photo { display: block; position: relative; flex: none; width: 120px; height: 88px; }
.h-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.h-name { margin: 0; font-size: var(--fs-1); font-weight: 800; }
.h-name a, a.h-photo { color: inherit; text-decoration: none; }
/* Persistent (not hover-only, so it works on touch too) cue that the photo
   opens the hotel's own page — without it, a plain photo gives no hint it's
   clickable. */
.h-photo-cue {
  position: absolute; bottom: 6px; left: 6px; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(10,59,70,0.72); color: #fff; display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, transform .15s ease; pointer-events: none;
}
.h-photo:hover .h-photo-cue { background: var(--brand); transform: scale(1.1); }
.h-photo:hover image-slot img { filter: brightness(0.92); }
.h-name a:hover { text-decoration: underline; }
.h-stars { color: var(--accent); letter-spacing: 2px; font-size: var(--fs--1); }
.h-area { color: var(--ink-3); font-size: var(--fs--1); }
.h-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1); padding-top: var(--sp-3); border-top: 1px solid var(--line); }

/* dedicated hotel page: provider rate cards */
.hprov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--sp-3); }
.hprov { position: relative; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: var(--r-m); padding: var(--sp-3) var(--sp-4); color: var(--ink); min-height: 108px; }
a.hprov:hover { border-color: var(--brand); background: var(--brand-tint); text-decoration: none; color: var(--ink); }
.hprov.is-cheapest { border-color: var(--ok); background: var(--ok-bg); }
.hprov.is-cheapest .hprov-price { color: var(--ok); }
.hprov-badge { position: absolute; top: -10px; inset-inline-start: 12px; background: var(--ok); color: #fff; font-size: 0.68rem; font-weight: 700; border-radius: var(--r-pill); padding: 1px 10px; }
.hprov-name { font-size: var(--fs--1); color: var(--ink-2); font-weight: 700; }
.hprov-price { font-size: var(--fs-1); font-weight: 800; white-space: nowrap; }
.hprov-sub { font-size: var(--fs--1); color: var(--ink-2); }
.hprov-fresh { font-size: 0.66rem; color: var(--ink-3); }
.hprov-pending { justify-content: center; border-style: dashed; }
.hprov-pending .pulse { width: 80%; height: 30px; }
.hprov-err { justify-content: center; border-style: dashed; color: var(--ink-3); }
.amenities { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-3) 0; }
.amenities li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 14px; font-size: var(--fs--1); }

/* hotel gallery (dedicated hotel page) */
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 150px); gap: var(--sp-2); margin: var(--sp-5) 0 0; }
.gallery .g-main { grid-row: 1 / 3; grid-column: 1; }
@media (max-width: 759px) { .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 170px 110px; } .gallery .g-main { grid-column: 1 / 3; grid-row: 1; } .gallery .g-hide-sm { display: none; } }

/* ---------- Arbaeen landing page — dark, black + crimson ---------- */
.arb-page { background: var(--arb-black); color: var(--arb-ink); }
.arb-page .site-header { background: var(--arb-black); border-bottom: 1px solid var(--arb-line); }
.arb-page .site-nav a { color: var(--arb-ink-2); }
.arb-page .site-nav a:hover, .arb-page .site-nav a[aria-current="page"] { color: var(--arb-ink); }
.arb-page .site-nav a[aria-current="page"] { border-bottom-color: var(--arb-red); }
.arb-page a { color: var(--arb-red); }
.arb-page a:hover { color: var(--arb-ink); }
.arb-page h2, .arb-page h3 { color: var(--arb-ink); }
.arb-page .section-lede { color: var(--arb-ink-2); }

.arb-hero { position: relative; overflow: hidden; background: var(--arb-black); color: var(--arb-ink); padding: var(--sp-7) 0 var(--sp-8); }
.arb-hero .container { position: relative; z-index: 1; }
.arb-hero h1 { color: var(--arb-ink); font-size: clamp(var(--fs-3), 4.5vw, var(--fs-5)); margin-bottom: var(--sp-2); }
.arb-hero .sub { color: var(--arb-ink-2); font-size: var(--fs-1); margin-bottom: 0; max-width: 62ch; text-wrap: balance; }
.arb-hero .breadcrumb { color: var(--arb-ink-3); }
.arb-hero .breadcrumb a { color: var(--arb-ink-2); }
.arb-hero .breadcrumb li + li::before { color: var(--arb-line-strong); }
.arb-motif-pattern { position: absolute; pointer-events: none; z-index: 0; inset: 0; width: 100%; height: 100%; color: var(--arb-red); opacity: 0.1; }
.arb-kicker { display: inline-flex; align-items: center; gap: 7px; color: var(--arb-red); font-size: var(--fs--1); font-weight: 700; letter-spacing: 0.02em; margin-bottom: var(--sp-2); }
.arb-kicker-icon { width: 15px; height: 15px; flex: none; }
.arb-hero-photo { margin-top: var(--sp-5); height: 170px; border-radius: 16px; overflow: hidden; border: 1px solid var(--arb-line); background: var(--arb-surface); }
@media (min-width: 760px) { .arb-hero-photo { height: 260px; } }

.arb-notice { display: flex; gap: var(--sp-3); align-items: flex-start; background: var(--arb-red-wash); border: 1px solid var(--arb-red-edge); border-radius: var(--r-l); padding: var(--sp-4); margin-top: var(--sp-5); color: var(--arb-ink-2); }
.arb-notice svg { flex: none; color: var(--arb-red); margin-top: 2px; }
.arb-notice strong { color: var(--arb-red); display: block; margin-bottom: 2px; }
.arb-notice p { margin: 0; font-size: var(--fs--1); }

.arb-list { display: flex; flex-direction: column; gap: var(--sp-3); margin-top: var(--sp-4); }
.arb-card { background: var(--arb-surface); border: 1px solid var(--arb-line); border-radius: var(--r-l); padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.arb-card-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.arb-card-top { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.arb-airline { font-weight: 800; font-size: var(--fs-1); color: var(--arb-ink); }
.arb-route { margin: 0; display: flex; align-items: center; gap: 6px; color: var(--arb-ink-2); font-size: var(--fs-0); }
.arb-route svg { flex: none; color: var(--arb-red); }
.arb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); }
.arb-meta-item { display: inline-flex; align-items: center; gap: 5px; color: var(--arb-ink-2); font-size: var(--fs--1); }
.arb-meta-item svg { flex: none; color: var(--arb-ink-3); }
.arb-cabin-badge { font-size: var(--fs--1); font-weight: 700; background: rgba(220, 70, 82, 0.14); color: var(--arb-red); border-radius: var(--r-pill); padding: 2px 12px; }
.arb-card-action { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.arb-price { font-size: var(--fs-2); font-weight: 800; color: var(--arb-ink); white-space: nowrap; }
.arb-page a.arb-buy, .arb-buy { display: inline-flex; align-items: center; gap: 6px; background: var(--arb-red-deep); border: 1px solid var(--arb-red-deep); color: #FFF6F4; border-radius: var(--r-m); padding: 10px 18px; min-height: 44px; font-weight: 700; font-size: var(--fs--1); white-space: nowrap; }
.arb-page a.arb-buy:hover, .arb-buy:hover { background: var(--arb-red); border-color: var(--arb-red); color: #17100F; text-decoration: none; }
@media (min-width: 760px) {
  .arb-card { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--sp-5); }
  .arb-card-action { flex: 0 0 220px; align-items: flex-end; text-align: end; }
}

.arb-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--arb-surface); border: 1px dashed var(--arb-line-strong); border-radius: var(--r-l); padding: var(--sp-7) var(--sp-5); text-align: center; color: var(--arb-ink-2); margin-top: var(--sp-4); }
.arb-empty svg { color: var(--arb-red); margin-bottom: var(--sp-2); }
.arb-empty h3 { margin: 0; }
.arb-empty p { margin: 0; color: var(--arb-ink-3); font-size: var(--fs--1); max-width: 40ch; }
.arb-preview-label { display: block; text-align: center; color: var(--arb-ink-3); font-size: var(--fs--1); border-top: 1px dashed var(--arb-line); padding-top: var(--sp-5); margin-top: var(--sp-7); }

.arb-page .faq details { background: var(--arb-surface); border-color: var(--arb-line); }
.arb-page .faq summary { color: var(--arb-ink); }
.arb-page .faq summary::after { color: var(--arb-red); }
.arb-page .faq details > p { color: var(--arb-ink-2); }
.arb-page .site-footer { background: var(--arb-black); border-top: 1px solid var(--arb-line); color: var(--arb-ink-2); }
.arb-page .site-footer a { color: var(--arb-ink-2); }
.arb-page .site-footer a:hover { color: var(--arb-red); }
.arb-page .site-footer h3 { color: var(--arb-ink); }
.arb-page .footer-note { border-top-color: var(--arb-line); color: var(--arb-ink-3); }

/* toast */
.toast {
  position: fixed; bottom: 18px; right: 50%; transform: translate(50%, 20px);
  background: var(--ink); color: #fff; border-radius: var(--r-pill); padding: 10px 20px;
  font-size: var(--fs--1); opacity: 0; pointer-events: none; transition: 0.25s ease; z-index: 60;
  box-shadow: var(--shadow-2);
}
.toast.is-on { opacity: 1; transform: translate(50%, 0); }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
