/* ============================================================
   CLICK JETRadar — OTA styles (mobile-first, 480/640/900/1200)
   ============================================================ */
:root {
  --cyan: #0a98c2;
  --cyan-bright: #0eacdf;
  --cyan-deep: #0b6e8f;
  --cyan-ink: #08546d;
  --green: #72c64d;
  --green-deep: #34661f;
  --amber: #e3a23c;
  --ink: #262626;
  --muted: #5c6b7a;
  --line: #e2eaf0;
  --bg: #fafafa;
  --danger: #e05656;
  --radius: 5px;
  --shadow: 0 8px 24px rgba(16, 42, 67, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 16px/1.55 "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 58px; /* room for mobile tab bar */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }

img { max-width: 100%; display: block; }
a { color: var(--cyan-deep); }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 800; }
h2 { font-size: clamp(22px, 3.5vw, 32px); text-align: center; }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.container { width: min(1180px, 100% - 28px); margin-inline: auto; }
.subtitle { text-align: center; color: rgba(255,255,255,.92); font-size: 17px; margin: -0.2em 0 1.6em; }
.subtitle.dark { color: var(--muted); }
.visually-hidden { position: absolute!important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--cyan-deep); padding: 10px 16px; z-index: 200; border-radius: 0 0 6px 0; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid rgba(14,172,223,.8); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font: 700 15px/1 "Open Sans", sans-serif; border-radius: var(--radius);
  padding: 13px 22px; color: #fff; background: var(--cyan-bright); transition: .15s;
}
.btn:hover { background: #0c9ac4; color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-primary { background: var(--cyan-bright); }
.btn-dark { background: var(--cyan-deep); }
.btn-dark:hover { background: #095d7a; }
.btn-green { background: var(--green); color: #1d3a10; }
.btn-green:hover { background: #63b23f; color: #16300c; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 2px solid rgba(255,255,255,.7); padding: 11px 20px; }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-light { background: #fff; color: var(--cyan-deep); box-shadow: 0 6px 18px rgba(4,44,58,.28); }
.btn-danger { background: var(--danger); }
.btn-sm { padding: 9px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ---------- Top bar & nav ---------- */
.topbar { background: var(--cyan-ink); color: #d9edf5; font-size: 13px; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 36px; flex-wrap: wrap; padding: 3px 0; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.topbar__item { color: #d9edf5; text-decoration: none; white-space: nowrap; }
.topbar__item:hover { color: #fff; }
.topbar__cta { background: rgba(255,255,255,.15); border-radius: 4px; padding: 2px 10px; font-weight: 700; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--cyan-bright); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800; }

.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 90; box-shadow: 0 1px 0 rgba(16,42,67,.04); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 18px; letter-spacing: .3px; }
.brand__word b { color: var(--cyan-deep); }
.nav__links { display: none; }
.nav__burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; }
.nav__burger span { display: block; height: 2.5px; width: 100%; background: var(--cyan-deep); border-radius: 2px; transition: .2s; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav.open .nav__links {
  display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px;
}
.nav__link { padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15px; border-bottom: 1px solid #f1f5f8; }
.nav__link.is-active, .nav__link:hover { color: var(--cyan-deep); }
.nav__link--cta { color: #b3540a; }
@media (min-width: 900px) {
  .nav__burger { display: none; }
  .nav__links { display: flex !important; flex-direction: row; gap: 4px; align-items: center; }
  .nav__link { border: 0; padding: 8px 13px; border-radius: 6px; font-size: 14.5px; }
  .nav__link.is-active { background: #e8f6fc; }
  .nav__link--cta { background: #fdf0dc; }
}

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 72px; z-index: 96; width: 54px; height: 54px;
  border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center;
  justify-content: center; text-decoration: none; box-shadow: 0 6px 18px rgba(37, 211, 102, .45);
  transition: transform .15s, background .15s;
}
.wa-float:hover { background: #1fb958; color: #fff; transform: translateY(-2px); }
.wa-float svg { display: block; }
@media (min-width: 900px) { .wa-float { bottom: 24px; } }

/* ---------- Mobile tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: flex;
  background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(16,42,67,.08);
  padding: 4px 2px calc(4px + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; text-align: center; text-decoration: none; color: var(--muted); font-size: 10.5px; font-weight: 700; padding: 4px 0; border-radius: 8px; }
.tabbar a span { display: block; font-size: 19px; }
.tabbar a:hover { color: var(--cyan-deep); }
@media (min-width: 900px) { .tabbar { display: none; } }

/* ---------- Flash ---------- */
.flash-wrap { margin: 14px auto; }
.flash { padding: 12px 16px; border-radius: 8px; font-weight: 600; font-size: 14.5px; margin-bottom: 8px; border: 1px solid; }
.flash--ok { background: #e8f6e1; color: #2e6b1e; border-color: #bfe3ae; }
.flash--err { background: #fdeaea; color: #a13030; border-color: #f0b9b9; }
.flash--info { background: #e8f2fb; color: #1d5d86; border-color: #b7d8f0; }

/* ---------- Hero ---------- */
.present {
  background-image: linear-gradient(rgba(8,84,109,.88), rgba(11,110,143,.84)),
    url('https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=1600&q=55');
  background-size: cover; background-position: center; color: #fff; padding: 34px 0 84px;
}
.present--compact { padding: 22px 0 64px; }
.present h1 { font-size: clamp(21px, 4.2vw, 34px); text-shadow: 0 2px 10px rgba(0,0,0,.25); max-width: 720px; }
.present__logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.logo-img { width: 48px; height: 48px; }
.logo-word { font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.hero-cta { text-align: center; margin: 22px 0 26px; }

.stats { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; padding: 0; margin: 0 auto; max-width: 620px; }
.stats li { display: flex; align-items: center; gap: 10px; justify-content: center; color: rgba(255,255,255,.94); font-size: 14px; }
.stats li strong { font-size: 22px; }
.stats .stat-ico { font-size: 20px; }
.show-xs-title { grid-column: 1 / -1; justify-content: center; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: 1px; font-size: 12px; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, 1fr); } .show-xs-title { display: none; } }

/* ---------- Search card ---------- */
.search-card { background: #fff; border-radius: 12px; box-shadow: 0 14px 40px rgba(4,44,58,.35); padding: 8px; color: var(--ink); margin-top: 18px; }
.search-tabs { display: flex; gap: 4px; flex-wrap: wrap; padding: 6px; }
.search-tab { flex: 1 1 auto; min-width: 100px; border: 0; cursor: pointer; padding: 11px 10px; border-radius: 7px; background: #eef5f9; color: var(--muted); font: 700 14px "Open Sans", sans-serif; }
.search-tab.active { background: var(--cyan-deep); color: #fff; }
.search-panel { padding: 8px 6px 6px; }
.trip-row { display: flex; gap: 16px; margin: 4px 4px 12px; font-size: 14px; flex-wrap: wrap; }
.trip-opt { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; font-weight: 600; }
.trip-opt input { accent-color: var(--cyan-deep); width: 17px; height: 17px; }
.search-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.field label { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 7px; background: #fff;
  padding: 11px 12px; font: 600 15px "Open Sans", sans-serif; color: var(--ink); min-width: 0;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(11,110,143,.16); }
.field.invalid input, .field.invalid select { border-color: var(--danger); }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 3px; }
.search-submit { border: 0; background: var(--cyan-deep); color: #fff; font: 800 17px "Open Sans", sans-serif; padding: 14px; border-radius: 8px; cursor: pointer; align-self: stretch; }
.search-submit:hover { background: #095d7a; }
.swap-btn { align-self: end; justify-self: start; border: 1.5px solid var(--line); background: #fff; border-radius: 7px; width: 44px; height: 44px; cursor: pointer; font-size: 18px; color: var(--cyan-deep); }
@media (min-width: 640px) {
  .search-grid { grid-template-columns: repeat(2, 1fr); }
  .search-grid .search-submit, .search-grid .field-wide { grid-column: 1 / -1; }
  .swap-btn { grid-row: 2; }
}
@media (min-width: 960px) {
  .search-grid { grid-template-columns: 1.25fr 44px 1.25fr .9fr .9fr .95fr; }
  .search-grid .search-submit, .search-grid .field-wide { grid-column: auto; }
  .field-wide { grid-column: span 2; }
  .swap-btn { grid-row: 1; align-self: end; }
  .search-submit { grid-column: span 1; align-self: end; }
}

/* Airport autocomplete dropdown */
.loc-input { position: relative; }
.loc-dropdown {
  display: none; position: absolute; z-index: 60; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow-y: auto;
  max-height: 290px; box-shadow: var(--shadow);
}
.loc-dropdown.open { display: block; }
.loc-group { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--cyan-deep); padding: 9px 14px 5px; background: #f4f8fb; }
.loc-option { display: flex; gap: 12px; align-items: center; padding: 9px 14px; cursor: pointer; }
.loc-option:hover, .loc-option.hover { background: #e8f6fc; }
.loc-option .code { background: #e8f6fc; color: var(--cyan-deep); font-weight: 700; font-size: 12px; border-radius: 5px; padding: 3px 7px; min-width: 42px; text-align: center; }
.loc-option .city { font-weight: 700; font-size: 14px; }
.loc-option .name { font-size: 12px; color: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 46px 0; }
.section-alt { background: #fff; }
.radar { background: #0c3547; color: #e7f4fa; }
.radar h2 { color: #fff; }

/* Radar canvas */
.radar__frame { position: relative; border-radius: 14px; overflow: hidden; background: #07222f; box-shadow: 0 10px 30px rgba(0,0,0,.35); aspect-ratio: 16 / 10; }
.radar__frame canvas { width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.radar__status { position: absolute; top: 10px; left: 10px; background: rgba(7,34,47,.75); color: #9fd7ea; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 20px; letter-spacing: .4px; }
.radar__status.is-live { color: #7be3a2; }
.radar__info { position: absolute; left: 12px; right: 12px; bottom: 10px; pointer-events: none; }
.radar__hint { display: inline-block; background: rgba(7,34,47,.75); color: #cfeaf5; font-size: 12px; padding: 4px 10px; border-radius: 6px; }
.radar__note { text-align: center; color: #9cc7d6; font-size: 12.5px; margin-top: 12px; }
.radar__card { position: absolute; top: 10px; right: 10px; width: min(300px, 78%); background: rgba(10,42,58,.94); border: 1px solid #1c5a74; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #d9edf5; display: none; z-index: 5; }
.radar__card.open { display: block; }
.radar__card .cs { font-size: 17px; font-weight: 800; color: #fff; letter-spacing: 1px; }
.radar__stats { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }
.radar__stats div { text-align: center; }
.radar__stats strong { display: block; font-size: 22px; color: #fff; }
.radar__stats span { font-size: 12px; color: #9cc7d6; }

/* Steps / how it works */
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 14px; padding: 0; margin: 0; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 16px 16px; position: relative; display: flex; flex-direction: column; gap: 6px; }
.step-num { position: absolute; top: -12px; left: 14px; background: var(--green); color: #1d3a10; font-weight: 800; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.step-ico { font-size: 26px; }
.steps p { margin: 0; font-weight: 700; font-size: 15px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Advantages */
.advantages {
  background-image: linear-gradient(rgba(52,102,31,.90), rgba(62,125,36,.88)),
    url('https://images.unsplash.com/photo-1503220317375-aaad61436b1b?auto=format&fit=crop&w=1600&q=55');
  background-size: cover; background-position: center; color: #fff;
}
.advantages__title { text-align: center; font-size: clamp(19px, 3vw, 27px); }
.advantages__title .thin { font-weight: 300; }
.advantages__list { list-style: none; counter-reset: adv; margin: 0 auto; max-width: 760px; padding: 0; display: grid; gap: 12px; }
.advantages__list li { counter-increment: adv; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.25); border-radius: 10px; padding: 14px 16px 14px 58px; position: relative; font-weight: 600; }
.advantages__list li::before {
  content: counter(adv); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.92); color: var(--green-deep); font-weight: 800; width: 30px; height: 30px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* Destinations & deals */
.popular__list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 0; margin: 0; }
@media (min-width: 640px) { .popular__list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .popular__list { grid-template-columns: repeat(6, 1fr); } }
.dest { --hue: #4f6d8c; display: flex; flex-direction: column; gap: 3px; text-decoration: none; color: #fff; background: linear-gradient(150deg, var(--hue), color-mix(in srgb, var(--hue) 65%, #06222e)); border-radius: 12px; padding: 16px 14px; min-height: 118px; box-shadow: 0 6px 16px rgba(16,42,67,.16); transition: transform .15s; }
.dest:hover { transform: translateY(-3px); color: #fff; }
.dest__code { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; opacity: .85; }
.dest strong { font-size: 16px; }
.dest__price { margin-top: auto; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.22); border-radius: 6px; padding: 2px 8px; align-self: flex-start; }

.deals { margin-top: 38px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.deals__head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.deals__title { margin: 0; }
.deals__sub { color: var(--muted); font-size: 14px; margin: 2px 0 6px; }
.deals__note { font-size: 12.5px; color: var(--muted); margin: 0; }
.deals__note.is-live { color: #2e6b1e; font-weight: 700; }
.deals__legend { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-cheap { background: var(--green); }
.dot-good { background: var(--cyan-bright); }
.deals__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.deal { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); background: #f6fafc; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; }
.deal:hover { border-color: var(--cyan-deep); }
.deal__date { font-size: 12px; font-weight: 700; color: var(--muted); }
.deal__route { font-size: 13.5px; font-weight: 700; }
.deal__price { font-size: 19px; margin-top: 3px; }
.deal__price.is-cheap { color: #2e6b1e; }

/* ---------- App CTA ---------- */
.choose {
  background-image: linear-gradient(rgba(8,84,109,.88), rgba(11,110,143,.85)),
    url('https://images.unsplash.com/photo-1469854414c82-cccc7e10bbde?auto=format&fit=crop&w=1600&q=55');
  background-size: cover; background-position: center; color: #fff; text-align: center;
}
.store-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #0d1b24; color: #fff; border: 1px solid #2c4a5a; border-radius: 10px; padding: 9px 16px; cursor: pointer; font: inherit; text-align: left; }
.store-btn:hover { background: #14293a; }
.store-btn__ico { font-size: 22px; }
.store-btn__txt small { display: block; font-size: 10px; letter-spacing: .5px; opacity: .8; }
.store-btn__txt strong { font-size: 15px; }

/* ---------- Footer ---------- */
.footer { background: #0c2a3a; color: #b9d2de; padding: 40px 0 0; margin-top: 0; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 28px; padding-bottom: 26px; }
.footer__logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 17px; }
.footer__text { margin: 12px 0 16px; max-width: 330px; }
.footer__col h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.footer__col a, .footer__col span { display: block; color: #b9d2de; text-decoration: none; padding: 4px 0; }
.footer__col a:hover { color: #fff; }
.store-row--footer { justify-content: flex-start; }
.footer__bottom { border-top: 1px solid #1b3f52; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 0; font-size: 12.5px; color: #8fb0c1; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: none; }
.modal.open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6,30,42,.6); }
.modal__panel { position: relative; z-index: 1; background: #fff; max-width: 430px; margin: 8vh auto; border-radius: 14px; padding: 26px 24px; box-shadow: var(--shadow); margin-inline: 14px; }
@media (min-width: 640px) { .modal__panel { margin-inline: auto; } }
.modal__close { position: absolute; top: 10px; right: 10px; border: 0; background: #eef5f9; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 15px; color: var(--muted); }
.modal__sub { color: var(--muted); font-size: 14px; }
.modal__status { font-size: 13.5px; font-weight: 600; min-height: 20px; margin: 10px 0 0; }
.modal__status.success { color: #2e6b1e; }
.modal__status.error { color: #b03030; }
.modal input[type="email"], .modal input[type="text"], .modal input[type="password"] {
  width: 100%; border: 1.5px solid var(--line); border-radius: 7px; padding: 12px; font: 600 15px "Open Sans", sans-serif;
}
.modal input.invalid { border-color: var(--danger); }

/* ---------- Results (flights) ---------- */
.results-wrap { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 960px) { .results-wrap { grid-template-columns: 270px 1fr; } }
.filters { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; position: sticky; top: 74px; }
.filters h3 { font-size: 15px; margin-bottom: 8px; }
.filters .fgroup { border-top: 1px solid var(--line); padding: 12px 0; }
.filters label.chk { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; padding: 4px 0; cursor: pointer; }
.filters input[type="checkbox"] { accent-color: var(--cyan-deep); width: 16px; height: 16px; }
.filters input[type="range"] { width: 100%; accent-color: var(--cyan-deep); }
.filters .fprice { font-weight: 700; font-size: 13px; color: var(--cyan-deep); }
.filters__btns { display: flex; gap: 8px; margin-top: 10px; }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.results-title { margin: 0; font-size: 18px; }
.results-note { font-size: 12.5px; font-weight: 700; color: #2e6b1e; background: #e8f6e1; border-radius: 7px; padding: 4px 10px; }
.results-note.demo { color: #6b5410; background: #faf3d9; }
.results-note.info { color: #1d5d86; background: #e8f2fb; }
.results-empty, .results-error { background: #fff; border: 1px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center; color: var(--muted); font-weight: 600; }
.results-error { color: #b03030; }
.sort-bar { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.sort-btn { border: 1.5px solid var(--line); background: #fff; border-radius: 20px; padding: 7px 14px; font: 700 13px "Open Sans", sans-serif; color: var(--muted); cursor: pointer; }
.sort-btn.active { background: var(--cyan-deep); border-color: var(--cyan-deep); color: #fff; }

.fcard { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; display: grid; grid-template-columns: 1fr; gap: 12px; transition: border-color .15s; }
.fcard:hover { border-color: var(--cyan-deep); }
.fcard__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ri-badge { width: 40px; height: 40px; border-radius: 10px; color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fcard__airline { font-weight: 800; font-size: 15px; }
.fcard__no { font-size: 12px; color: var(--muted); font-weight: 600; }
.fcard__mid { display: grid; grid-template-columns: 1fr; gap: 8px; }
.fseg { display: flex; align-items: center; gap: 4px; }
.fseg__time { font-size: 20px; font-weight: 800; white-space: nowrap; }
.fseg__code { font-size: 12px; color: var(--muted); font-weight: 700; }
.fseg__path { flex: 1; text-align: center; min-width: 60px; }
.fseg__path .dur { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.fseg__path .line { height: 2px; background: var(--line); position: relative; margin-top: 3px; }
.fseg__path .line::after { content: "✈"; position: absolute; right: -2px; top: -10px; font-size: 13px; color: var(--cyan-deep); }
.fseg__path .stop { font-size: 10.5px; color: #b3540a; font-weight: 700; }
.fseg__path.nonstop .stop { color: #2e6b1e; }
.fcard__tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.ri-tag { font-size: 11px; font-weight: 700; color: var(--cyan-deep); background: #e8f6fc; border-radius: 5px; padding: 2px 7px; }
.ri-tag.warn { color: #6b5410; background: #faf3d9; }
.fcard__price { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; border-top: 1px dashed var(--line); padding-top: 10px; }
@media (min-width: 720px) {
  .fcard { grid-template-columns: 1.7fr 1fr auto; align-items: center; }
  .fcard__mid { border-left: 1px solid var(--line); padding-left: 14px; }
  .fcard__price { border: 0; padding: 0; align-items: flex-end; min-width: 130px; }
}
.ri-amount { font-size: 22px; font-weight: 800; color: var(--ink); }
.ri-per { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.ri-book { display: inline-block; background: var(--cyan-deep); color: #fff; border-radius: 7px; padding: 9px 16px; font-weight: 700; font-size: 13.5px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit; }
.ri-book:hover { background: #095d7a; color: #fff; }

.leg-summary { background: #eef7fb; border: 1px solid #cfe7f1; border-radius: 10px; padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--cyan-ink); margin-bottom: 14px; }

/* ---------- Hotel cards ---------- */
.hcard { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 1fr; margin-bottom: 14px; }
.hcard__img { position: relative; min-height: 170px; background: #dfe9f0 center/cover; }
.hcard__img img { width: 100%; height: 100%; object-fit: cover; }
.hcard__badge { position: absolute; left: 10px; bottom: 10px; background: rgba(8,42,56,.85); color: #fff; font-size: 11.5px; font-weight: 700; border-radius: 6px; padding: 3px 9px; }
.hcard__body { padding: 14px; }
.hcard__name { font-weight: 800; font-size: 16.5px; text-decoration: none; color: var(--ink); }
.hcard__name:hover { color: var(--cyan-deep); }
.hcard__meta { color: var(--muted); font-size: 13px; margin: 4px 0 8px; }
.stars { color: #e3a23c; letter-spacing: 1.5px; font-size: 13px; }
.rating-pill { display: inline-flex; flex-direction: column; background: var(--green); color: #14300a; border-radius: 8px 8px 8px 0; padding: 4px 8px; font-weight: 800; font-size: 14px; line-height: 1.15; }
.rating-pill small { font-size: 9.5px; font-weight: 700; }
.amenity { display: inline-block; font-size: 11.5px; color: var(--muted); background: #f1f6fa; border-radius: 5px; padding: 2px 8px; margin: 0 4px 4px 0; font-weight: 600; }
.hcard__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; flex-wrap: wrap; }
@media (min-width: 640px) { .hcard { grid-template-columns: 240px 1fr; } }

/* ---------- Generic cards / grids ---------- */
.grid-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-cards { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .grid-cards { grid-template-columns: repeat(4, 1fr); } }
.pcard { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, transform .15s; }
.pcard:hover { border-color: var(--cyan-deep); transform: translateY(-2px); }
.pcard__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; }
.pcard__ribbon { position: absolute; top: 10px; left: 10px; background: rgba(8,42,56,.85); color: #fff; font-size: 11px; font-weight: 700; border-radius: 6px; padding: 3px 9px; }
.pcard__body { padding: 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__name { font-size: 16px; font-weight: 800; }
.pcard__sub { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pcard__summary { font-size: 13.5px; color: var(--muted); }
.pcard__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.price-tag strong { font-size: 19px; }
.price-tag small { color: var(--muted); font-size: 11.5px; font-weight: 600; }

/* ---------- Forms / booking ---------- */
.panel { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.panel h2, .panel h3 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, 1fr); } }
.form-grid .span2 { grid-column: 1 / -1; }
fieldset { border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 14px; }
legend { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--cyan-deep); padding: 0 6px; }
.chk-line { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px dashed var(--line); font-weight: 600; font-size: 14.5px; flex-wrap: wrap; }
.chk-line:last-child { border-bottom: 0; }
.chk-line .price-right { margin-left: auto; font-weight: 800; color: var(--cyan-deep); white-space: nowrap; }
.chk-line input[type="checkbox"] { accent-color: var(--cyan-deep); width: 17px; height: 17px; flex-shrink: 0; }
.summary-box { background: #0c3547; color: #d9edf5; border-radius: 12px; padding: 18px; position: sticky; top: 74px; }
.summary-box h3 { color: #fff; }
.summary-box .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.summary-box .row.total { border-top: 1px solid #1c5a74; margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 800; color: #fff; }
.booking-layout { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 960px) { .booking-layout { grid-template-columns: 1fr 330px; } }

.status-chip { display: inline-block; font-size: 11.5px; font-weight: 800; border-radius: 20px; padding: 3px 11px; text-transform: uppercase; letter-spacing: .5px; }
.status-paid { background: #e8f6e1; color: #2e6b1e; }
.status-pending { background: #faf3d9; color: #6b5410; }
.status-cancelled { background: #fdeaea; color: #a13030; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { background: #f4f8fb; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
table.data tr:hover td { background: #f8fbfd; }

/* ---------- Low-fare calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { text-align: center; font-size: 11.5px; font-weight: 800; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.cal__day { aspect-ratio: 1; border: 1.5px solid var(--line); border-radius: 9px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink); font-size: 11px; padding: 2px; }
.cal__day .d { font-weight: 800; font-size: 13px; }
.cal__day .p { font-weight: 700; color: var(--cyan-deep); font-size: 11px; }
.cal__day.cheap { border-color: var(--green); background: #eefbe6; }
.cal__day.cheap .p { color: #2e6b1e; }
.cal__day.past { opacity: .38; pointer-events: none; }
.cal__day.empty { border: 0; background: none; pointer-events: none; }
.cal__nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.cal__title { font-weight: 800; font-size: 17px; }

/* ---------- Auth / account ---------- */
.auth-wrap { max-width: 460px; margin: 34px auto; }
.auth-tabs { display: flex; background: #fff; border: 1.5px solid var(--line); border-radius: 10px 10px 0 0; overflow: hidden; }
.auth-tabs a { flex: 1; text-align: center; padding: 12px; font-weight: 800; text-decoration: none; color: var(--muted); background: #f4f8fb; }
.auth-tabs a.active { background: var(--cyan-deep); color: #fff; }
.account-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.account-tabs a { text-decoration: none; font-weight: 700; font-size: 13.5px; color: var(--muted); background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 8px 15px; }
.account-tabs a.active { background: var(--cyan-deep); border-color: var(--cyan-deep); color: #fff; }
.qr-box { background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 10px; width: fit-content; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 13.5px; letter-spacing: 1px; background: #f4f8fb; padding: 8px 12px; border-radius: 8px; display: inline-block; }

/* ---------- KPI (admin) ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 860px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi small { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.kpi strong { display: block; font-size: 26px; margin-top: 4px; }

/* ---------- Invoice print ---------- */
@media print {
  .topbar, .nav, .footer, .tabbar, .no-print, .flash-wrap, .modal { display: none !important; }
  body { padding: 0; background: #fff; }
  .panel { border: 1px solid #ccc; box-shadow: none; }
}

/* ---------- Misc ---------- */
.empty-state { text-align: center; padding: 46px 16px; color: var(--muted); }
.empty-state .big { font-size: 44px; display: block; margin-bottom: 8px; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.muted { color: var(--muted); } .small { font-size: 13px; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.badge-2fa { font-size: 11px; background: #e8f6e1; color: #2e6b1e; border-radius: 4px; padding: 1px 6px; font-weight: 800; }
.two-col-list { columns: 2 260px; gap: 24px; }
.two-col-list li { margin-bottom: 6px; break-inside: avoid; }
