/* ══════════════════════════════════════════════════════════════════════
   ITALY LIONS AIR   (air.css)
   air.html only. Everything is prefixed .ax- so nothing leaks. The same
   gold-on-black language as Lion Restaurants; the price is the loudest
   thing on every card, because the price is what a member came for.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  --ax-gold: #D9B948;
  --ax-gold-2: #C9A227;
  --ax-card: #14120D;
  --ax-card-2: #1C1913;
  --ax-line: rgba(201,162,39,.18);
  --ax-ink: rgba(255,255,255,.92);
  --ax-mid: rgba(255,255,255,.64);
  --ax-low: rgba(255,255,255,.44);
  --ax-ok: #4ade80;
  --ax-sky: #7dd3fc;
  --ax-red: #f87171;
}

body.ax-body { background: #080806; }
.ax, .ax * { box-sizing: border-box; }
/* `hidden` must win over every display rule below (.ax-btn is inline-flex,
   .ax-f is flex) — otherwise "Show more" and the form's conditional fields
   would show when the script has hidden them. */
.ax [hidden], .ax-toast[hidden] { display: none !important; }
.ax { color: var(--ax-ink); font-family: Inter, system-ui, sans-serif; }
.ax button, .ax a { -webkit-tap-highlight-color: transparent; }
.ax button { font-family: inherit; }

.ax-wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px 110px; }

/* ── hero ── */
.ax-hero { position: relative; overflow: hidden; padding: calc(var(--nav-h, 70px) + 34px) 0 22px;
  background: radial-gradient(900px 380px at 85% -10%, rgba(125,211,252,.13), transparent 60%),
              radial-gradient(700px 360px at 0% 0%, rgba(217,185,72,.16), transparent 60%); }
.ax-hero-in { padding-bottom: 0; }
.ax-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ax-gold); margin-bottom: 10px; }
.ax-plane { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(217,185,72,.14); font-size: .9rem; letter-spacing: 0; }
.ax-hero h1 { margin: 0 0 10px; line-height: 1.08; font-size: clamp(1.9rem, 5vw, 3rem); }
.ax-hero p { color: var(--ax-mid); max-width: 640px; margin: 0; font-size: 1rem; line-height: 1.6; }
.ax-hero .ax-fine { font-size: .78rem; color: var(--ax-low); margin-top: 12px; line-height: 1.5; }
.ax-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }

/* ── small parts ── */
.ax-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--ax-ink); white-space: nowrap; }
.ax-chip.gold { background: rgba(217,185,72,.14); color: var(--ax-gold); }
.ax-chip.ok { background: rgba(74,222,128,.12); color: var(--ax-ok); }
.ax-chip.sky { background: rgba(125,211,252,.12); color: var(--ax-sky); }
.ax-chip.bad { background: rgba(248,113,113,.12); color: var(--ax-red); }
.ax-dim { color: var(--ax-mid); font-size: .86rem; line-height: 1.55; margin: 0; }
.ax-low { color: var(--ax-low); font-size: .76rem; }
.ax-empty { text-align: center; color: var(--ax-mid); padding: 26px 12px; font-size: .92rem; line-height: 1.55; }
.ax-empty b { color: var(--ax-ink); }
.ax-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.ax-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 800; font-size: .88rem;
  cursor: pointer; text-decoration: none; color: #1a1406; white-space: nowrap;
  background: linear-gradient(135deg, #F2E3A8, var(--ax-gold) 45%, var(--ax-gold-2));
  box-shadow: 0 6px 20px rgba(201,162,39,.22); transition: transform .12s ease, filter .12s ease; }
.ax-btn:active { transform: scale(.97); filter: brightness(.95); }
.ax-btn[disabled] { opacity: .45; pointer-events: none; }
.ax-btn.ghost { background: transparent; color: var(--ax-gold); border: 1px solid var(--ax-line); box-shadow: none; }
.ax-btn.dark { background: var(--ax-card-2); color: var(--ax-ink); border: 1px solid rgba(255,255,255,.1); box-shadow: none; }
/* The same WhatsApp button as Lion Restaurants: the glyph is brand green, so
   the button must not be. */
.ax-btn.wa { background: #128C7E; color: #fff; border: 1px solid #25D366; box-shadow: 0 4px 14px rgba(37,211,102,.2); }
.ax-btn.red { background: rgba(248,113,113,.14); color: var(--ax-red); border: 1px solid rgba(248,113,113,.3); box-shadow: none; }
.ax-btn.sm { padding: 7px 11px; font-size: .78rem; border-radius: 10px; }
.ax-btn svg { flex: 0 0 auto; }

.ax-panel { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 18px; margin: 14px 0; }
.ax-panel h3 { margin: 0 0 8px; font-family: Cinzel, serif; color: var(--ax-gold); font-size: 1.05rem; letter-spacing: .02em; }

/* il-design.css makes every h2 1.4–2.9rem (with !important on phones). A section
   title here is a label for a list, not a headline — a class beats the element. */
.ax h2.ax-sec { font-family: Cinzel, serif; font-size: 1.22rem !important; margin: 0 !important; color: #fff; line-height: 1.2; }
.ax-h { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin: 28px 0 12px; }

/* ── tabs ── */
.ax-tabs { display: flex; gap: 6px; margin: 18px 0 14px; padding: 4px; border-radius: 14px;
  background: var(--ax-card); border: 1px solid var(--ax-line); width: fit-content; max-width: 100%; }
.ax-tabs button { border: 0; background: transparent; color: var(--ax-mid); font-weight: 800; font-size: .86rem;
  padding: 9px 14px; border-radius: 10px; cursor: pointer; }
.ax-tabs button.on { background: rgba(217,185,72,.16); color: var(--ax-gold); }

/* ── search ── */
.ax-search { display: grid; grid-template-columns: 1fr auto 1fr .8fr .8fr; gap: 10px; align-items: end;
  background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 14px; margin: 0; }
.ax label.ax-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0;
  text-transform: none; letter-spacing: 0; }
.ax label.ax-field > span { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ax-low); }
.ax label.ax-field select, .ax label.ax-field input { width: 100%; min-width: 0; }
.ax-swap { align-self: end; width: 42px; height: 48px; border-radius: 12px; border: 1px solid var(--ax-line);
  background: var(--ax-card-2); color: var(--ax-gold); font-size: 1.1rem; cursor: pointer; }
.ax-swap:active { transform: scale(.95); }
.ax-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 10px 2px 0; font-size: .82rem; color: var(--ax-mid); }
.ax-where b { color: var(--ax-ink); font-weight: 700; }
.ax-near { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  background: rgba(125,211,252,.1); color: var(--ax-sky); font-weight: 700; font-size: .76rem; }
.ax-link { background: none; border: 0; padding: 0; color: var(--ax-gold); font-weight: 800; font-size: .82rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── the cheapest fare ── */
.ax-best-slot { margin-top: 16px; min-height: 120px; }
.ax-best { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  border-radius: 22px; padding: 20px; border: 1px solid rgba(217,185,72,.5);
  background: linear-gradient(135deg, rgba(217,185,72,.2), rgba(217,185,72,.04) 55%, rgba(125,211,252,.06));
  box-shadow: 0 14px 40px rgba(201,162,39,.14); }
.ax-best-tag { position: absolute; top: -11px; left: 18px; font-size: .7rem; font-weight: 900; letter-spacing: .1em;
  text-transform: uppercase; color: #1a1406; padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #F2E3A8, var(--ax-gold)); }
.ax-best .ax-price b { font-size: 2.4rem; }
.ax-best .ax-route-codes { font-size: 1.35rem; }

/* ── a fare ── */
.ax-list { display: grid; gap: 10px; }
.ax-fare { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; align-items: center;
  background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 14px 16px;
  transition: border-color .15s; }
.ax-fare:hover { border-color: rgba(217,185,72,.42); }
.ax-fare.hl { border-color: var(--ax-gold); box-shadow: 0 0 0 3px rgba(217,185,72,.18); }
.ax-fare.off { opacity: .6; }
.ax-price { display: flex; flex-direction: column; line-height: 1.05; }
.ax-price b { font-size: 1.55rem; font-weight: 900; color: #fff; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ax-price small { color: var(--ax-mid); font-size: .72rem; font-weight: 700; margin-top: 4px; }
.ax-main { min-width: 0; }
.ax-route { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ax-route-codes { font-weight: 900; font-size: 1.05rem; letter-spacing: .04em; white-space: nowrap; }
.ax-route-codes i { font-style: normal; color: var(--ax-gold); margin: 0 6px; }
.ax-cities { color: var(--ax-mid); font-size: .82rem; }
.ax-meta { color: var(--ax-mid); font-size: .8rem; margin-top: 5px; line-height: 1.45; }
.ax-meta b { color: var(--ax-ink); font-weight: 700; }
.ax-air { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; font-weight: 700; font-size: .86rem; }
.ax-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px;
  font-size: .66rem; font-weight: 900; letter-spacing: .02em; color: #0b1720;
  background: linear-gradient(135deg, #e0f2fe, var(--ax-sky)); }
.ax-agency { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 7px; font-size: .78rem; color: var(--ax-mid); }
.ax-agency b { color: var(--ax-gold); font-weight: 800; }
.ax-acts { display: flex; flex-direction: column; gap: 7px; align-items: stretch; }
.ax-acts .ax-btn { width: 100%; }
.ax-acts-row { display: flex; gap: 6px; }
.ax-acts-row > * { flex: 1 1 0; }

/* ── destinations ── */
.ax-dests { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ax-dest { text-align: left; cursor: pointer; border: 1px solid var(--ax-line); background: var(--ax-card);
  color: inherit; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, transform .15s; }
.ax-dest:hover { border-color: rgba(217,185,72,.45); transform: translateY(-2px); }
.ax-dest:active { transform: scale(.98); }
.ax-dest .c { font-family: Cinzel, serif; font-weight: 700; font-size: 1.02rem; color: #fff; }
.ax-dest .k { color: var(--ax-low); font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.ax-dest .p { font-weight: 900; font-size: 1.25rem; color: var(--ax-gold); margin-top: 6px; }
.ax-dest .p small { font-size: .72rem; color: var(--ax-mid); font-weight: 700; }
.ax-dest .a { color: var(--ax-mid); font-size: .76rem; }

/* ── other airports ── */
.ax-origins { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.ax-origin { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer;
  border: 1px solid var(--ax-line); background: var(--ax-card); color: inherit; border-radius: 14px; padding: 12px 14px; text-align: left; }
.ax-origin.on { border-color: var(--ax-gold); }
.ax-origin b { display: block; font-size: .92rem; }
.ax-origin small { color: var(--ax-mid); font-size: .74rem; }
.ax-origin .p { font-weight: 900; font-size: 1.1rem; color: var(--ax-gold); white-space: nowrap; }

.ax-more { text-align: center; margin-top: 12px; }

/* ── agencies ── */
.ax-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ax-ag { background: var(--ax-card); border: 1px solid var(--ax-line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ax-ag-top { display: flex; gap: 12px; align-items: center; }
.ax-mono { width: 46px; height: 46px; border-radius: 13px; flex: 0 0 46px; display: grid; place-items: center;
  font-family: Cinzel, serif; font-weight: 800; font-size: 1.15rem; color: #1a1406;
  background: linear-gradient(135deg, #F2E3A8, var(--ax-gold) 50%, var(--ax-gold-2)); }
.ax-ag h4 { margin: 0; font-size: .98rem; font-family: Inter, sans-serif; font-weight: 800; }
.ax-ag .ax-low { display: block; margin-top: 2px; }

.ax-cta { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 30px;
  background: linear-gradient(135deg, rgba(217,185,72,.1), rgba(217,185,72,.02)); }

/* ── the agency's own side ── */
.ax-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0; }
.ax-stat { background: var(--ax-card-2); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 12px; }
.ax-stat b { display: block; font-size: 1.35rem; font-weight: 900; }
.ax-stat small { color: var(--ax-mid); font-size: .72rem; font-weight: 700; }
.ax-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ax-form .wide { grid-column: 1 / -1; }
.ax label.ax-f { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.ax label.ax-f > span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ax-low); }
.ax label.ax-f input, .ax label.ax-f select, .ax label.ax-f textarea { width: 100%; min-width: 0; }
.ax label.ax-f em { font-style: normal; color: var(--ax-low); font-size: .74rem; text-transform: none; letter-spacing: 0; font-weight: 500; }
.ax-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ax-quick { display: flex; gap: 6px; flex-wrap: wrap; }
.ax-errs { grid-column: 1 / -1; margin: 0; padding: 10px 14px 10px 30px; border-radius: 12px;
  background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.25); color: #fecaca; font-size: .84rem; }
.ax-errs:empty { display: none; }
.ax-own { display: grid; gap: 10px; margin-top: 12px; }
.ax-own .ax-fare { grid-template-columns: 92px 1fr; }
.ax-own-acts { grid-column: 1 / -1; display: flex; gap: 6px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.06); padding-top: 10px; }
.ax-banner { border-radius: 14px; padding: 12px 14px; font-size: .86rem; line-height: 1.5; margin: 10px 0; }
.ax-banner.bad { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); color: #fecaca; }
.ax-banner.info { background: rgba(125,211,252,.07); border: 1px solid rgba(125,211,252,.25); color: #dbeafe; }

/* ── toast ── */
.ax-toast { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 3000; max-width: calc(100vw - 32px); background: #1C1913; color: #fff; border: 1px solid var(--ax-line);
  border-radius: 14px; padding: 12px 16px; font: 600 .88rem Inter, sans-serif; box-shadow: 0 12px 30px rgba(0,0,0,.45); }

/* ── phones ── */
@media (max-width: 760px) {
  /* From and To each get the whole width (airport names are long); the swap
     sits between them on the right; Trip and When share the last row. */
  .ax-search { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px 10px; }
  .ax-search label.ax-field:not(.ax-field-s) { grid-column: 1 / -1; }
  .ax-swap { grid-column: 1 / -1; justify-self: end; width: 38px; height: 30px; margin: -6px 6px -6px 0;
    transform: rotate(90deg); border-radius: 10px; }
  .ax-swap:active { transform: rotate(90deg) scale(.95); }
  .ax-best { grid-template-columns: 1fr; gap: 12px; padding: 22px 16px 16px; }
  .ax-best .ax-price b { font-size: 2.1rem; }
  .ax-fare { grid-template-columns: 78px 1fr; gap: 12px; padding: 13px; }
  .ax-fare .ax-acts { grid-column: 1 / -1; flex-direction: row; }
  .ax-fare .ax-acts .ax-btn { flex: 1 1 0; width: auto; }
  .ax-own .ax-fare { grid-template-columns: 78px 1fr; }
  .ax-price b { font-size: 1.35rem; }
  .ax-best .ax-acts { flex-direction: row; }
  .ax-best .ax-acts .ax-btn { flex: 1 1 0; width: auto; }
  .ax-cta { flex-direction: column; align-items: stretch; }
  .ax-stats { grid-template-columns: repeat(2, 1fr); }
  .ax-form { grid-template-columns: 1fr; }
  .ax-dests { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ax-tabs { width: 100%; }
  .ax-tabs button { flex: 1 1 0; padding: 9px 8px; }
}
@media (max-width: 380px) {
  .ax-fare { grid-template-columns: 1fr; }
  .ax-own .ax-fare { grid-template-columns: 1fr; }
  .ax-pair { grid-template-columns: 1fr; }
}
