/* ============================================================
   RedFly Design System — “Aerodynamic Velocity”
   ------------------------------------------------------------
   ONE source of truth for the product surfaces (booking web).
   Layers:
     1. Primitives   raw values, never used directly in markup
     2. Semantic     role tokens (--surface, --ink, --r-card …)
     3. Base         element resets, fonts, focus
     4. Components   .rf-* classes — the only place a look is defined
     5. Utilities    motion, scrollbars, sliders
     6. Contracts    naming / id / analytics conventions (docs)
   Live reference: design-system.html
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;300;400;500;600;700;800;900&display=swap');

/* ---------- 1 + 2. tokens ---------- */
:root {
  /* brand */
  --primary: #e61e25;
  --primary-tint: rgba(230,30,37,0.08);
  --primary-deep: #bd0015;
  --primary-hover: #c00015;
  --on-primary: #ffffff;

  /* action (booking CTAs, select / hover states) */
  --action: #e61e25;
  --action-hover: #c00015;
  --on-action: #ffffff;

  /* search CTA — navy */
  --search: #1f3a63;
  --search-hover: #16294a;
  --on-search: #ffffff;

  /* ink */
  --ink: #1a1c1d;
  --ink-800: #1f2937;
  --ink-soft: #5d5d5d;
  --label: #6b7280;
  --placeholder: #9ca3af;
  --on-dark: #ffffff;
  --on-dark-soft: rgba(255,255,255,0.72);
  --on-dark-faint: rgba(255,255,255,0.45);

  /* surfaces */
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-soft: #f7f7f9;
  --surface-sunken: #eeeef0;
  --hairline: #e7e7ea;
  --hairline-strong: #d6d6da;

  /* dark brand fields — the only two dark backdrops in the system */
  --brand-field: linear-gradient(150deg,#8f000d 0%,#4d0509 46%,#15171f 100%);
  --ink-field: linear-gradient(135deg,#1c1f29,#0e0f14);
  --brand-glow: radial-gradient(circle, rgba(230,30,37,0.45), transparent 70%);

  /* semantic */
  --success: #0f9d58;
  --success-bg: #e7f5ec;
  --secondary: #006a6a;
  --shadow-btn: 0 1px 2px rgba(16,24,40,0.05);
  --success-tint: rgba(15,157,88,0.08);
  --warn: #d97706;
  --warn-tint: rgba(217,119,6,0.10);
  --teal: #006a6a;

  /* type scale (px, mobile → desktop via clamp) */
  --fs-display: clamp(28px, 4vw, 36px);
  --fs-h1: clamp(24px, 3vw, 32px);
  --fs-h2: clamp(22px, 2.2vw, 28px);
  --fs-h3: 16.5px;
  --fs-body: 14.5px;
  --fs-body-lg: 16px;
  --fs-label: 13px;
  --fs-caption: 12px;
  --lh-tight: 1.25;
  --lh-body: 1.75;

  /* space scale — 4px base */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;

  /* radii */
  --r-sm: 0.5rem;      /* 8  — tags, thumbnails */
  --r-control: 12px;   /* buttons, inputs, small panels */
  --r-card: 16px;      /* result cards, info cards */
  --r-card-lg: 20px;   /* editorial cards, promo tiles, FAQ shell */
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-2xl: 2rem;       /* search bar shell */
  --r-pill: 9999px;

  /* elevation — soft, diffuse, never grey-heavy */
  --shadow-bar: 0 6px 30px rgba(16,24,40,0.12);
  --shadow-card: 0 1px 2px rgba(16,24,40,0.04), 0 1px 3px rgba(16,24,40,0.06);
  --shadow-card-hover: 0 10px 30px -8px rgba(16,24,40,0.18);
  --shadow-pop: 0 18px 50px -12px rgba(16,24,40,0.28);
  --shadow-cta: 0 8px 20px -6px rgba(31,58,99,0.45);
  --shadow-header: 0 6px 20px -8px rgba(0,0,0,0.45);

  /* layout */
  --container: 1200px;
  --container-wide: 1320px;
  --gutter: 24px;
  --gutter-mobile: 16px;
  --header-h-mobile: 112px;   /* 56 logo row + 44 tabs + 12 pad */
  --header-h-desktop: 72px;

  /* z layers */
  --z-hero: 20;
  --z-header: 50;
  --z-dropdown: 60;
  --z-overlay: 90;
  --z-drawer: 100;
  --z-sheet: 140;
  --z-skip: 200;

  /* motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: .18s;
  --dur: .3s;
  --dur-slow: .7s;
}

/* ---------- 3. base ---------- */
* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--action); text-decoration: none; }
a:hover { color: var(--action-hover); }

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  user-select: none;
}
.ms-fill { font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24; }

.tnum { font-variant-numeric: tabular-nums; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #cfcfd4; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b6b6bd; background-clip: content-box; }

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

/* ---------- 4. components ---------- */

/* landmarks */
.rf-main { display: block; }
.rf-skip { position: fixed; top: 8px; inset-inline-start: 8px; z-index: var(--z-skip); transform: translateY(-200%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; transition: transform .2s var(--ease); }
.rf-skip:focus { transform: translateY(0); outline: 2px solid var(--primary); outline-offset: 2px; }

/* dark brand fields */
.rf-brand-field { background: var(--brand-field); }
.rf-ink-field { background: var(--ink-field); }

/* typography */
.rf-display { font-size: var(--fs-display); font-weight: 800; line-height: var(--lh-tight); margin: 0; }
.rf-h1 { font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); color: var(--ink); margin: 0; }
.rf-h2 { font-size: var(--fs-h2); font-weight: 800; line-height: var(--lh-tight); color: var(--ink); margin: 0; }
.rf-h3 { font-size: var(--fs-h3); font-weight: 800; line-height: 1.6; color: var(--ink); margin: 0; }
.rf-sub { font-size: 14px; line-height: 1.8; color: var(--label); margin: 4px 0 0; }
.rf-on-dark, .rf-on-dark * { color: var(--on-dark); }

/* section header (title + optional sub) */
.rf-section__head { margin-bottom: var(--s-5); }

/* buttons — one anatomy, four intents, three sizes */
.rf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 44px; padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-control);
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1; cursor: pointer;
  background: var(--surface); color: var(--ink);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.rf-btn:active { transform: scale(.98); }
.rf-btn--action { background: var(--action); color: var(--on-action); }
.rf-btn--action:hover { background: var(--action-hover); color: var(--on-action); }
.rf-btn--primary { background: var(--primary); color: var(--on-primary); }
.rf-btn--primary:hover { background: var(--primary-hover); color: var(--on-primary); }
.rf-btn--dark { background: var(--ink); color: #fff; border-radius: var(--r-pill); }
.rf-btn--dark:hover { background: #000; color: #fff; }
.rf-btn--outline { background: var(--surface); color: var(--action); border-color: var(--hairline-strong); }
.rf-btn--outline:hover { background: var(--surface-soft); color: var(--action); }
.rf-btn--ghost { background: transparent; color: var(--action); }
.rf-btn--ghost:hover { background: var(--surface-soft); }
.rf-btn--sm { height: 38px; padding: 0 18px; font-size: 14px; }
.rf-btn--lg { height: 56px; padding: 0 28px; font-size: 16px; border-radius: var(--r-lg); }
.rf-btn--block { width: 100%; }
.rf-btn--cta { box-shadow: var(--shadow-cta); }

/* chips / filter pills */
.rf-chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--surface); color: var(--ink-soft);
  border: 1px solid var(--hairline);
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.rf-chip:hover { background: var(--surface-soft); color: var(--ink); }
.rf-chip--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.rf-chip--on:hover { background: #000; color: #fff; }
.rf-chip:active { transform: scale(.96); }

/* cards */
.rf-card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.rf-card--lg { border-radius: var(--r-card-lg); }
.rf-card--flat { box-shadow: none; }
.rf-card--hover { transition: box-shadow var(--dur) var(--ease); }
.rf-card--hover:hover { box-shadow: var(--shadow-card-hover); }
.rf-card__pad { padding: var(--s-5); }

/* badges */
.rf-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: var(--r-sm); font-size: 11.5px; font-weight: 700; }
.rf-badge--success { background: var(--success-tint); color: var(--success); }
.rf-badge--warn { background: var(--warn-tint); color: var(--warn); }
.rf-badge--primary { background: var(--primary-tint); color: var(--primary); }

/* segmented control (mobile forms) */
.rf-seg { background: var(--surface-soft); border: 1px solid var(--hairline); border-radius: var(--r-xl); }
.rf-seg__opt { font-family: inherit; cursor: pointer; }

/* ---------- 5. utilities / motion ---------- */
.rng { -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; margin: 0; height: 26px; }
.rng::-webkit-slider-runnable-track { background: transparent; height: 26px; }
.rng::-moz-range-track { background: transparent; height: 26px; }
.rng::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: 0 1px 4px rgba(16,24,40,0.25); cursor: pointer; margin-top: 3px; }
.rng::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: 0 1px 4px rgba(16,24,40,0.25); cursor: pointer; }
.rng-single { accent-color: var(--primary); height: 6px; cursor: pointer; }

@keyframes fadeUp { from { opacity:0; transform: translateY(10px); } to { opacity:1; transform:none; } }
@keyframes pop { from { opacity:0; transform: translateY(-6px) scale(0.98); } to { opacity:1; transform:none; } }
.anim-pop { animation: pop var(--dur-fast) var(--ease); }
.anim-fadeup { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .anim-fadeup { animation: fadeUp .4s var(--ease) both; } }
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 6px); } }
.anim-bob { animation: bob 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .anim-bob { animation: none; } }
@keyframes seatPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(230,30,37,0.0); } 50% { box-shadow: 0 0 0 4px rgba(230,30,37,0.12); } }
.anim-seat { animation: seatPulse 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .anim-seat { animation: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.anim-sheet { animation: sheetUp .28s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.anim-fade { animation: fadeIn .2s ease; }
@keyframes drawerIn { from { transform: translateX(100%); } to { transform: translateX(0); } }
.anim-drawer { animation: drawerIn .26s var(--ease); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Hopper-style expanding search button label.
   Desktop: collapsed until the .group button is hovered. Mobile: always visible. */
.search-label { max-width: 160px; opacity: 1; padding-inline-end: 24px; white-space: nowrap; overflow: hidden; transition: max-width var(--dur) var(--ease), opacity var(--dur) var(--ease), padding var(--dur) var(--ease); }
@media (min-width: 768px) {
  .search-label { max-width: 0; opacity: 0; padding-inline-end: 0; }
  .group:hover .search-label { max-width: 170px; opacity: 1; padding-inline-end: 28px; }
}

/* ============================================================
   6. Contracts — read before adding markup
   ------------------------------------------------------------
   NAMING (BEM-lite, always rf- prefixed):
     block            rf-header, rf-hero, rf-card, rf-btn, rf-faq
     block__element   rf-header__nav, rf-faq__item, rf-card__pad
     block--modifier  rf-header--mobile, rf-btn--action, rf-card--lg
   PAGE IDS (unique, kebab-case, double as analytics anchors):
     #main #site-header #hero #search-card #search-band #results
     #featured-destinations #special-deals #tours #app-promo
     #popular-destinations #faq #site-footer
     hotel: #hotel-overview #hotel-info #hotel-rooms #hotel-reviews
     faq rows: #faq-<topic>-<slug>  (deep-linkable)
   BODY CONTRACT (set on every page):
     class="rf-page rf-page--<page>"  data-page-type  data-service
     data-viewport (set at runtime: mobile | desktop)
   ANALYTICS: hooks live only on data-rf-event / data-rf-view /
     data-rf-<param> attributes — never on classes, so styling is free
     to change. See components/analytics.js for the event taxonomy.
   RULE OF ONE: a look is defined once, here. Components compose
     .rf-* classes and Tailwind layout utilities; they must not
     re-declare colors, radii, shadows or type sizes inline.
   ============================================================ */

/* ---------- SEO long-form body — framed band ---------- */
.rf-seo__toggle { display: none; }
.rf-seo-band__content { display: block; }
@media (max-width: 767px) {
  .rf-seo__toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--hairline-strong); color: var(--ink); font-size: 14px; font-weight: 700; box-shadow: var(--shadow-card); }
  .rf-seo__toggle .material-symbols-outlined { color: var(--primary); }
  .rf-seo-band__content[data-open="false"] { display: none; }
}
.rf-seo-band { margin-top: clamp(48px, 8vw, 96px); background: var(--surface-soft); border-top: 1px solid var(--hairline); }
.rf-seo-band__inner { max-width: var(--container-wide); margin: 0 auto; padding: clamp(36px, 5vw, 72px) var(--gutter-mobile) clamp(40px, 6vw, 88px); }
@media (min-width: 768px) { .rf-seo-band__inner { padding-inline: var(--gutter); } }

.rf-seo__intro { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 44px); }
.rf-seo__eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--r-pill); background: var(--primary-tint); color: var(--primary); font-size: 12.5px; font-weight: 700; }
.rf-seo__title { margin: 14px 0 0; font-size: var(--fs-h1); font-weight: 800; line-height: var(--lh-tight); color: var(--ink); }
.rf-seo__lead { margin: 10px 0 0; font-size: 14.5px; line-height: 1.9; color: var(--ink-soft); text-wrap: pretty; }

.rf-seo__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-6); align-items: start; }
.rf-seo__layout > * { min-width: 0; }
@media (min-width: 1024px) { .rf-seo__layout { grid-template-columns: 244px minmax(0, 1fr); gap: var(--s-10); } }

/* index — sticky rail on desktop, horizontal chip rail on mobile */
.rf-seo__aside { position: sticky; top: 88px; }
.rf-seo__index-t { display: block; font-size: 12px; font-weight: 700; color: var(--label); letter-spacing: .02em; margin-bottom: 10px; }
.rf-seo__index-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rf-seo__index-a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.rf-seo__index-a:hover { background: var(--surface); color: var(--primary); }
.rf-seo__index-n { font-size: 11.5px; font-weight: 800; color: var(--placeholder); }
@media (max-width: 1023px) {
  .rf-seo__aside { position: static; margin-bottom: var(--s-2); }
  .rf-seo__index-list { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .rf-seo__index-list::-webkit-scrollbar { display: none; }
  .rf-seo__index-a { white-space: nowrap; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-pill); padding: 8px 14px; }
}

/* panels — one per H2 */
.rf-seo { display: flex; flex-direction: column; gap: var(--s-5); }
.rf-seo__panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card-lg); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow-card); scroll-margin-top: 96px; }
.rf-seo__panel-head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: var(--s-4); margin-bottom: var(--s-4); border-bottom: 1px solid var(--hairline); }
.rf-seo__panel-n { flex: none; font-size: 12.5px; font-weight: 800; color: var(--primary); background: var(--primary-tint); border-radius: 8px; padding: 5px 9px; margin-top: 2px; }
.rf-seo__h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: clamp(19px, 2.2vw, 23px); font-weight: 800; line-height: 1.45; color: var(--ink); }
.rf-seo__h2 .material-symbols-outlined { color: var(--primary); }
.rf-seo__panel-body { display: flex; flex-direction: column; gap: var(--s-4); }
.rf-seo__panel-body > .rf-seo__p:first-child { margin-top: 0; }

.rf-seo__h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15.5px; font-weight: 800; color: var(--ink); line-height: 1.6; }
.rf-seo__h3 .material-symbols-outlined { color: var(--primary); }
.rf-seo__p { margin: 0; font-size: 14.5px; line-height: 2; color: var(--ink-soft); text-wrap: pretty; max-width: 74ch; }
.rf-seo__card-d { margin: 0; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); text-wrap: pretty; max-width: 72ch; }
.rf-seo__note { margin: 0; font-size: 12.5px; line-height: 1.9; color: var(--label); }
.rf-seo__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.rf-seo__list li { position: relative; padding-inline-start: 20px; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }
.rf-seo__list li::before { content: ''; position: absolute; inset-inline-start: 6px; top: 11px; width: 6px; height: 6px; border-radius: 999px; background: var(--primary); }

.rf-seo__subs { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .rf-seo__subs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rf-seo__sub { padding: var(--s-4); border-radius: var(--r-card); background: var(--surface-soft); border: 1px solid var(--hairline); }

.rf-seo__grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rf-seo__two { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.rf-seo__tile { display: flex; flex-direction: column; gap: 8px; padding: var(--s-4); border-radius: var(--r-card); background: var(--surface-soft); border: 1px solid var(--hairline); }
.rf-seo__tile-t { margin: 0; font-size: 15px; font-weight: 800; color: var(--ink); line-height: 1.6; }
.rf-seo__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline); color: var(--primary); }

.rf-seo__stats { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.rf-seo__stat { display: flex; flex-direction: column; gap: 3px; padding: var(--s-4); border-radius: var(--r-card); background: var(--surface-soft); border: 1px solid var(--hairline); }
.rf-seo__stat-n { font-size: 20px; font-weight: 800; color: var(--primary); }
.rf-seo__stat-l { font-size: 12.5px; color: var(--label); line-height: 1.7; }

.rf-seo__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
@media (min-width: 900px) { .rf-seo__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rf-seo__step { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-4); border-radius: var(--r-card); background: var(--surface-soft); border: 1px solid var(--hairline); }
.rf-seo__step-body { display: flex; flex-direction: column; gap: 5px; }
.rf-seo__step-n { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 999px; background: var(--primary); color: #fff; font-weight: 800; font-size: 14px; }

.rf-seo__table-wrap { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--r-card); background: var(--surface); }
.rf-seo__table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 640px; }
.rf-seo__table th, .rf-seo__table td { text-align: right; padding: 12px var(--s-4); border-bottom: 1px solid var(--hairline); line-height: 1.85; vertical-align: top; color: var(--ink-soft); }
.rf-seo__table thead th { background: var(--surface-soft); color: var(--ink); font-weight: 800; font-size: 12.5px; white-space: nowrap; }
.rf-seo__table tbody th { color: var(--ink); font-weight: 800; }
.rf-seo__table tbody tr:last-child th, .rf-seo__table tbody tr:last-child td { border-bottom: 0; }
.rf-seo__table--terms { min-width: 520px; }
.rf-seo__term { font-family: system-ui, sans-serif; letter-spacing: .01em; }

/* ---------- Reds banner (Persepolis partnership) ---------- */
.rf-reds { padding: clamp(40px, 6vw, 72px) var(--gutter-mobile) 0; }
@media (min-width: 768px) { .rf-reds { padding-inline: var(--gutter); } }
.rf-reds__card { position: relative; overflow: hidden; max-width: var(--container-wide); margin: 0 auto; border-radius: var(--r-2xl); background: #1c2029; box-shadow: var(--shadow-card-hover); display: block; }
.rf-reds__img { display: block; width: 100%; height: auto; }
/* the banner artwork carries its own type — never overlay HTML text on it */
.rf-reds__kicker { font-size: 12.5px; font-weight: 700; color: #e6c27a; }
.rf-reds__title { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.35; color: #fff; }
.rf-reds__sub { margin: 0; font-size: 13.5px; line-height: 1.9; color: rgba(255,255,255,0.74); }
.rf-reds__cta { margin-top: 8px; min-height: 46px; padding-inline: 26px; }
.rf-reds__kicker { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- mobile hardening: overflow, tap targets, iOS quirks ---------- */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: clip; }
button, a, [role="button"], summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.no-scrollbar { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
[id] { scroll-margin-top: var(--header-h-desktop); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (max-width: 767px) {
  [id] { scroll-margin-top: var(--header-h-mobile); }
  /* 44px minimum touch targets */
  .rf-btn, .rf-btn--sm, .rf-chip, .rf-seo__index-a, .rf-faq__q > button { min-height: 44px; }
  .rf-chip { padding-inline: 16px; }
  /* iOS zooms any input under 16px on focus */
  input, select, textarea { font-size: 16px; }
  .rf-seo__table { font-size: 13px; }
  .rf-seo__title { font-size: 23px; }
  .rf-seo__panel { padding: 18px; }
  .rf-reds__title { font-size: 23px; }
}

/* mobile readability floors — no caption under 12px on a phone.
   !important because the Tailwind CDN sheet is injected after this file. */
@media (max-width: 767px) {
  .text-\[10px\], .text-\[10\.5px\] { font-size: 12px !important; }
  .text-\[11px\], .text-\[11\.5px\] { font-size: 12.5px !important; }
  .rf-seo__index-n { font-size: 12px !important; }
  .rf-promo__action, .rf-promo__cta { min-height: 44px; }
  .rf-promo__cta { padding-inline: 18px; }
  .rf-footer__link { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ---------- full-screen mobile city picker ---------- */
.rf-fullsheet { display: flex; flex-direction: column; overscroll-behavior: contain; }
.rf-citypanel { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; background: var(--surface); padding-top: env(safe-area-inset-top); }
.rf-citypanel__head { flex: none; background: var(--surface); }
.rf-citypanel__search { flex: none; background: var(--surface); border-bottom: 1px solid var(--hairline); }
.rf-citypanel__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.rf-citypanel__row { min-height: 72px; padding-block: 13px; border-bottom: 1px solid var(--hairline); }
.rf-citypanel__row:last-child { border-bottom: 0; }
.rf-citypanel__row:active { background: var(--surface-soft); }

/* ---------- full-screen mobile date picker ---------- */
.rf-cal { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; background: var(--surface); padding-top: env(safe-area-inset-top); }
.rf-cal__week { border-bottom: 1px solid var(--hairline); }
.rf-cal__list { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.rf-cal__foot { flex: none; border-top: 1px solid var(--hairline); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.rf-cal__day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; border-radius: 12px; background: transparent; transition: background var(--dur-fast) var(--ease); }
.rf-cal__day:disabled { opacity: 0.4; }
.rf-cal__num { font-size: 16px; font-weight: 800; line-height: 1; }
.rf-cal__price { font-size: 10.5px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.rf-cal__day[data-state="cheap"] { background: var(--success-bg); }
.rf-cal__day[data-state="range"] { background: var(--primary-tint); }
.rf-cal__day[data-state="edge"] { background: var(--primary); box-shadow: 0 4px 12px rgba(230,30,37,0.35); }
.rf-cal__day[data-state="edge"] .rf-cal__num { color: #fff; }
.rf-cal__today { position: absolute; bottom: 5px; width: 4px; height: 4px; border-radius: 999px; background: var(--primary); }

/* ---------- mobile footer accordion ---------- */
.rf-footer__group { border-bottom: 1px solid rgba(255,255,255,0.08); }
.rf-footer__group summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 14.5px; font-weight: 700; color: #fff; cursor: pointer; list-style: none; }
.rf-footer__group summary::-webkit-details-marker { display: none; }
.rf-footer__chev { transition: transform var(--dur-fast) var(--ease); color: rgba(255,255,255,0.5); }
.rf-footer__group[open] .rf-footer__chev { transform: rotate(180deg); }
.rf-footer__acc .rf-footer__links { gap: 0; }
.rf-footer__acc .rf-footer__link { min-height: 42px; }
