/*
 * aviation/css/aviation.css
 *
 * All rules are gated by `.aviation-scope` so nothing leaks into the rest of
 * MyBooking. Mirrors the broker module's scoping strategy.
 *
 * Etap 1 only ships the chrome (subnav, hero, diagnostics table). Real
 * styles for search results, airport board and concierge land later.
 */

.aviation-scope {
  --av-ink:        #0a1628;
  --av-paper:      #ffffff;
  --av-paper-2:    #f6f8fb;
  --av-rule:       #e3e7ee;
  --av-muted:      #6b7385;
  --av-accent:     #0066ff;
  --av-accent-2:   #003fb3;
  --av-success:    #0a7f3f;
  --av-danger:     #c11a2b;
  --av-warning:    #b97500;
  --av-shadow-sm:  0 1px 2px rgba(10, 22, 40, 0.08);
  --av-shadow-md:  0 4px 12px rgba(10, 22, 40, 0.10);
  --av-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --av-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  color: var(--av-ink);
  font-family: var(--av-sans);
  /* Negative margins to break out of Bootstrap container — same trick the
     broker module uses. Keeps the hero full-bleed on desktop. */
  margin: -1.5rem -12px 0;
  background: var(--av-paper);
}

/* ───── Subnav ───── */
.aviation-scope .aviation-subnav {
  background: var(--av-paper);
  border-bottom: 1px solid var(--av-rule);
  position: sticky;
  top: 0;
  z-index: 50;
}
.aviation-scope .aviation-subnav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.aviation-scope .aviation-subnav__brand {
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  color: var(--av-ink);
  letter-spacing: -0.01em;
}
.aviation-scope .aviation-subnav__links {
  display: flex;
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.aviation-scope .aviation-subnav__links a {
  text-decoration: none;
  color: var(--av-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.aviation-scope .aviation-subnav__links a:hover {
  color: var(--av-ink);
}

/* ───── Main ───── */
.aviation-scope .aviation-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

/* ───── Hero (landing) ───── */
.aviation-scope .aviation-hero {
  padding: 80px 24px;
}
.aviation-scope .aviation-hero__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.aviation-scope .aviation-hero__eyebrow {
  font-family: var(--av-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--av-accent);
  margin: 0 0 16px;
}
.aviation-scope .aviation-hero__title {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin: 0 0 16px;
}
.aviation-scope .aviation-hero__lede {
  font-size: 18px;
  color: var(--av-muted);
  margin: 0 0 32px;
  line-height: 1.55;
}
.aviation-scope .aviation-hero__features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.aviation-scope .aviation-hero__features li {
  padding: 14px 16px;
  background: var(--av-paper-2);
  border: 1px solid var(--av-rule);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}
.aviation-scope .aviation-hero__notify {
  color: var(--av-muted);
  font-size: 14px;
}

/* ───── Buttons ───── */
.aviation-scope .aviation-btn {
  display: inline-block;
  background: var(--av-accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease;
}
.aviation-scope .aviation-btn:hover {
  background: var(--av-accent-2);
  color: #fff;
}
.aviation-scope .aviation-btn--ghost {
  background: transparent;
  color: var(--av-accent);
  border: 1px solid var(--av-rule);
}
.aviation-scope .aviation-btn--ghost:hover {
  background: var(--av-paper-2);
  color: var(--av-accent);
}

/* ───── Diagnostics ───── */
.aviation-scope .aviation-diag {
  padding: 32px 0;
}
.aviation-scope .aviation-diag__head {
  margin-bottom: 24px;
}
.aviation-scope .aviation-diag__head h1 {
  margin: 0 0 6px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.aviation-scope .aviation-diag__head .muted {
  color: var(--av-muted);
  font-size: 14px;
}
.aviation-scope .aviation-diag__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.aviation-scope .aviation-diag__table th,
.aviation-scope .aviation-diag__table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--av-rule);
}
.aviation-scope .aviation-diag__table th {
  font-family: var(--av-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--av-muted);
}
.aviation-scope .row--ok    { background: rgba(10, 127, 63, 0.04); }
.aviation-scope .row--bad   { background: rgba(193, 26, 43, 0.04); }
.aviation-scope .mono       { font-family: var(--av-mono); font-size: 12px; }
.aviation-scope .muted      { color: var(--av-muted); }

.aviation-scope .badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--av-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}
.aviation-scope .badge--ok  { background: var(--av-success); color: #fff; }
.aviation-scope .badge--bad { background: var(--av-danger);  color: #fff; }

/* ───── Mobile ───── */
@media (max-width: 768px) {
  .aviation-scope .aviation-subnav__inner { padding: 10px 14px; gap: 14px; }
  .aviation-scope .aviation-main { padding: 20px 14px 60px; }
  .aviation-scope .aviation-hero { padding: 48px 14px; }
}

/* Airport autocomplete — enhanced layout */
.search-form__autocomplete .ac-item {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 12px;
  cursor: pointer;
  border-bottom: 1px solid var(--av-rule);
}
.search-form__autocomplete .ac-item:last-child { border-bottom: none; }
.search-form__autocomplete .ac-item:hover,
.search-form__autocomplete .ac-item.is-active { background: var(--av-paper-2); }
.search-form__autocomplete .ac-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.search-form__autocomplete .ac-city {
  font-size: 14px;
  font-weight: 500;
  color: var(--av-text);
}
.search-form__autocomplete .ac-country {
  font-size: 12px;
  color: var(--av-muted);
}
.search-form__autocomplete .ac-sub {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.search-form__autocomplete .ac-name {
  font-size: 12px;
  color: var(--av-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}
.search-form__autocomplete .ac-iata {
  font-size: 12px;
  font-weight: 600;
  color: var(--av-accent);
  font-family: var(--av-mono, monospace);
  margin-left: auto;
  flex-shrink: 0;
}

/* Trust pills */
.trust-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600;
}
.trust-pill--danger {
  background: #fef2f2; color: #dc2626; border: 1px solid #fecaca;
}
.trust-pill--warn {
  background: #fffbeb; color: #d97706; border: 1px solid #fde68a;
}
.trust-pill--good {
  background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
}

/* ── Tooltips ── */
.ttp-help {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--av-muted); color: #fff;
  font-size: 10px; font-weight: 700; cursor: help;
  margin-left: 4px; vertical-align: middle;
  position: relative;
}
.ttp-help::after {
  content: attr(data-tip);
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; font-size: 12px; font-weight: 400;
  padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  max-width: 260px; white-space: normal; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
  z-index: 999; line-height: 1.4;
}
.ttp-help:hover::after, .ttp-help:focus::after { opacity: 1; }

/* ── Onboarding banner ── */
.onboarding-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%);
  border: 1px solid #bfdbfe; border-radius: 12px;
  padding: 16px 20px; margin-bottom: 20px;
  display: flex; align-items: flex-start; gap: 14px;
}
.onboarding-banner__icon { font-size: 24px; flex-shrink: 0; }
.onboarding-banner__body { flex: 1; }
.onboarding-banner__body h3 { margin: 0 0 6px; font-size: 15px; }
.onboarding-banner__body p { margin: 0; font-size: 13px; color: var(--av-muted); line-height: 1.5; }
.onboarding-banner__close {
  background: none; border: none; cursor: pointer;
  color: var(--av-muted); font-size: 18px; padding: 0; line-height: 1;
}
.onboarding-banner__close:hover { color: var(--av-ink); }

/* ── Concierge suggestions ── */
.concierge-suggestions {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0;
}
.concierge-suggestion {
  background: var(--av-paper); border: 1px solid var(--av-accent);
  border-radius: 20px; padding: 6px 14px; font-size: 13px;
  color: var(--av-accent); cursor: pointer; transition: all 0.15s;
}
.concierge-suggestion:hover { background: var(--av-accent); color: #fff; }

/* ═══════════════════════════════════════════════
   LANDING PAGE — lp-*
   ═══════════════════════════════════════════════ */

/* Hero */
.aviation-scope .lp-hero {
  padding: 72px 24px 48px;
  text-align: center;
}
.aviation-scope .lp-hero__inner {
  max-width: 720px;
  margin: 0 auto;
}
.aviation-scope .lp-hero__eyebrow {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 13px; color: var(--av-muted);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 20px;
}
.aviation-scope .lp-badge {
  background: var(--av-accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; letter-spacing: 0.05em;
}
.aviation-scope .lp-hero__title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
}
.aviation-scope .lp-hero__lede {
  font-size: 17px; color: var(--av-muted);
  line-height: 1.6; margin: 0 0 32px;
}
.aviation-scope .lp-search-bar {
  display: flex; gap: 10px; justify-content: center;
  flex-wrap: wrap; margin-bottom: 20px;
}
.aviation-scope .lp-search-bar__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--av-accent); color: #fff;
  text-decoration: none; padding: 13px 24px;
  border-radius: 10px; font-weight: 600; font-size: 15px;
  transition: background 0.15s, transform 0.15s;
}
.aviation-scope .lp-search-bar__btn:hover {
  background: var(--av-accent-2); color: #fff;
  transform: translateY(-1px);
}
.aviation-scope .lp-search-bar__btn--ghost {
  background: var(--av-paper);
  color: var(--av-ink);
  border: 1px solid var(--av-rule);
}
.aviation-scope .lp-search-bar__btn--ghost:hover {
  background: var(--av-paper-2); color: var(--av-ink);
}
.aviation-scope .lp-hero__trust {
  font-size: 12px; color: var(--av-muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}

/* Feature cards */
.aviation-scope .lp-features {
  padding: 0 24px 48px;
}
.aviation-scope .lp-features__inner {
  max-width: 960px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.aviation-scope .lp-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--av-paper);
  border: 1px solid var(--av-rule);
  border-radius: 14px; padding: 20px;
  text-decoration: none; color: inherit;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.aviation-scope .lp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: var(--av-accent);
}
.aviation-scope .lp-card__icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--av-paper-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
  color: var(--av-accent);
}
.aviation-scope .lp-card__body { flex: 1; }
.aviation-scope .lp-card__body h3 {
  margin: 0 0 4px; font-size: 15px; font-weight: 600;
}
.aviation-scope .lp-card__body p {
  margin: 0; font-size: 13px;
  color: var(--av-muted); line-height: 1.4;
}
.aviation-scope .lp-card__arrow {
  color: var(--av-muted); font-size: 16px; flex-shrink: 0;
  transition: transform 0.15s;
}
.aviation-scope .lp-card:hover .lp-card__arrow {
  transform: translateX(3px); color: var(--av-accent);
}
.aviation-scope .lp-card--primary {
  background: linear-gradient(135deg, var(--av-accent) 0%, var(--av-accent-2) 100%);
  border-color: transparent; color: #fff;
}
.aviation-scope .lp-card--primary .lp-card__icon {
  background: rgba(255,255,255,0.2); color: #fff;
}
.aviation-scope .lp-card--primary .lp-card__body p { color: rgba(255,255,255,0.8); }
.aviation-scope .lp-card--primary .lp-card__arrow { color: rgba(255,255,255,0.7); }
.aviation-scope .lp-card--primary:hover { border-color: transparent; color: #fff; }
.aviation-scope .lp-card--accent {
  border-color: var(--av-accent);
  background: linear-gradient(135deg, rgba(var(--av-accent-rgb, 59,130,246),0.04) 0%, var(--av-paper) 100%);
}

/* Trust strip */
.aviation-scope .lp-trust {
  padding: 32px 24px 48px;
  border-top: 1px solid var(--av-rule);
}
.aviation-scope .lp-trust__inner {
  max-width: 960px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}
.aviation-scope .lp-trust__item {
  display: flex; align-items: flex-start; gap: 12px;
}
.aviation-scope .lp-trust__item > i {
  font-size: 22px; color: var(--av-accent);
  flex-shrink: 0; margin-top: 2px;
}
.aviation-scope .lp-trust__item strong {
  display: block; font-size: 14px; margin-bottom: 3px;
}
.aviation-scope .lp-trust__item span {
  font-size: 12px; color: var(--av-muted); line-height: 1.4;
}

/* Manual entry */
.aviation-scope .lp-manual {
  padding: 0 24px 48px;
}
.aviation-scope .lp-manual__inner {
  max-width: 400px; margin: 0 auto; text-align: center;
}
.aviation-scope .lp-manual__label {
  font-size: 13px; color: var(--av-muted); margin-bottom: 10px;
}
.aviation-scope .lp-manual__form {
  display: flex; gap: 8px; justify-content: center;
}
.aviation-scope .lp-manual__form input {
  padding: 10px 14px; border: 1px solid var(--av-rule);
  border-radius: 8px; font-size: 15px; width: 90px;
  text-align: center; text-transform: uppercase;
  font-family: var(--av-mono);
}
.aviation-scope .lp-manual__btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--av-paper-2); border: 1px solid var(--av-rule);
  border-radius: 8px; padding: 10px 16px;
  font-size: 14px; font-weight: 500; cursor: pointer;
  color: var(--av-ink); transition: all 0.15s;
}
.aviation-scope .lp-manual__btn:hover {
  border-color: var(--av-accent); color: var(--av-accent);
}

/* Mobile */
@media (max-width: 768px) {
  .aviation-scope .lp-hero { padding: 48px 16px 32px; }
  .aviation-scope .lp-features { padding: 0 16px 32px; }
  .aviation-scope .lp-features__inner { grid-template-columns: 1fr; }
  .aviation-scope .lp-trust__inner { grid-template-columns: 1fr 1fr; }
  .aviation-scope .lp-card { padding: 16px; }
}
