/* 航司主页 /airlines · /airlines/{ICAO}  (views: modules/IMPESAdmin/Resources/views/airlines)
   Colours per airline come from Resources/airlines.php as --al-c (solid) and --al-hero (gradient). */
.al { --al-c: #871DF5; --al-hero: linear-gradient(120deg, #1A0B3A 0%, #871DF5 55%, #D747E9 100%); max-width: 1180px; margin: 0 auto; }
.al-glass { background: var(--glass-bg, var(--impes-surface)); border: 1px solid var(--glass-edge, var(--impes-border)); border-radius: 16px; box-shadow: var(--impes-shadow); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); }

/* hero */
.al-hero { position: relative; overflow: hidden; border-radius: 20px; padding: 1.6rem 1.7rem; color: #fff; background: var(--al-hero); display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.al-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 100% 0%, rgba(255,255,255,.16), transparent 60%); pointer-events: none; }
.al-hero-logo { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(0,0,0,.25); position: relative; z-index: 1; }
.al-hero-logo img { max-width: 62px; max-height: 62px; }
.al-hero-logo span { font-weight: 800; font-size: 1.5rem; color: var(--al-c); }
.al-hero-main { flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.al-hero-main h1 { color: #fff; font-size: 1.65rem; margin: 0 0 .3rem; line-height: 1.25; }
.al-hero-main p { margin: .35rem 0 0; color: rgba(255,255,255,.92); font-size: 1rem; }
.al-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.al-chip { display: inline-flex; align-items: center; gap: .3rem; font-size: .78rem; font-weight: 700; padding: .2rem .6rem; border-radius: 999px; background: rgba(255,255,255,.18); color: #fff; border: 1px solid rgba(255,255,255,.28); }
.al-hero-cta { display: flex; flex-direction: column; gap: .5rem; align-items: stretch; position: relative; z-index: 1; min-width: 190px; }
.al-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.05rem; border-radius: 12px; font-weight: 700; font-size: .93rem; border: 1px solid transparent; text-decoration: none; cursor: pointer; line-height: 1.3; }
.al-btn.is-white { background: #fff; color: #1b1630; }
.al-btn.is-white:hover { background: #f1eefb; color: #1b1630; }
.al-btn.is-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.al-btn.is-ghost:hover { background: rgba(255,255,255,.22); color: #fff; }
.al-btn.is-line { background: transparent; color: var(--impes-link); border-color: var(--impes-border-strong, var(--impes-border)); }
.al-btn.is-line:hover { border-color: var(--impes-link); }
.al-hero-note { font-size: .78rem; color: rgba(255,255,255,.85); text-align: center; }

/* numbers */
.al-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.al-kpi { padding: .85rem 1rem; }
.al-kpi b { display: block; font-size: 1.5rem; font-weight: 800; color: var(--impes-heading); font-variant-numeric: tabular-nums; line-height: 1.2; }
.al-kpi span { font-size: .8rem; color: var(--impes-muted); }
.al-kpi small { display: block; font-size: .72rem; color: var(--impes-muted); margin-top: .1rem; }

/* two columns: about + map */
.al-cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem; margin-bottom: 1rem; }
.al-box { padding: 1.15rem 1.25rem; }
.al-box h2 { font-size: 1.02rem; margin: 0 0 .7rem; display: flex; align-items: center; gap: .5rem; }
.al-box h2 i { color: var(--al-c); }
.al-box h2 a { margin-left: auto; font-size: .82rem; font-weight: 600; }
.al-box p { color: var(--impes-text); line-height: 1.8; margin: 0 0 .8rem; }
.al-hubs { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.al-hubs li { display: flex; align-items: center; gap: .65rem; padding: .5rem .7rem; border-radius: 12px; border: 1px solid var(--glass-edge, var(--impes-border)); }
.al-hubs code { font-weight: 800; font-size: .9rem; color: var(--al-c); background: none; padding: 0; min-width: 3.1rem; }
.al-hubs div { flex: 1; min-width: 0; line-height: 1.35; }
.al-hubs div small { display: block; color: var(--impes-muted); font-size: .76rem; }
.al-hubs em { font-style: normal; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 999px; background: rgba(135,29,245,.1); color: var(--al-c); white-space: nowrap; }
.al-map { height: 100%; min-height: 380px; border-radius: 16px; overflow: hidden; position: relative; }
.al-map-el, .al-map-el.mapboxgl-map, .al-map-el.leaflet-container { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.al-map-legend { position: absolute; left: .7rem; bottom: .7rem; z-index: 500; font-size: .74rem; padding: .3rem .6rem; border-radius: 10px; background: rgba(20,16,36,.72); color: #fff; }
.al-dest { display: flex; flex-wrap: wrap; gap: .4rem; }
.al-dest span { font-size: .8rem; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--glass-edge, var(--impes-border)); color: var(--impes-text); }
.al-dest span b { color: var(--impes-muted); font-weight: 600; margin-left: .25rem; }

/* tiles that open a popup */
.al-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.al-tile { text-align: left; padding: 1rem 1.05rem; cursor: pointer; color: inherit; display: flex; flex-direction: column; gap: .2rem; transition: transform .12s ease, border-color .12s ease; font: inherit; }
.al-tile:hover, .al-tile:focus-visible { transform: translateY(-2px); border-color: var(--al-c); outline: none; }
.al-tile i.fas { width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--al-c); margin-bottom: .35rem; }
.al-tile b { font-size: 1rem; color: var(--impes-heading); }
.al-tile span { font-size: .8rem; color: var(--impes-muted); line-height: 1.45; }
.al-tile u { text-decoration: none; margin-top: auto; padding-top: .4rem; font-size: .78rem; font-weight: 700; color: var(--impes-link); }

/* popups */
.al-modal .modal-content { border-radius: 18px; border: 1px solid var(--glass-edge, var(--impes-border)); background: var(--impes-surface); }
.al-modal .modal-title { font-size: 1.05rem; }
.al-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.al-table th, .al-table td { padding: .5rem .6rem; border-bottom: 1px solid var(--impes-border); text-align: left; vertical-align: top; }
.al-table th { font-size: .78rem; color: var(--impes-muted); font-weight: 700; }
.al-table td.n, .al-table th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-table tr:last-child td { border-bottom: 0; }
.al-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.al-list li { padding: .7rem .85rem; border: 1px solid var(--impes-border); border-radius: 12px; }
.al-list b { display: block; color: var(--impes-heading); }
.al-list small { color: var(--impes-muted); display: block; margin: .15rem 0; }
.al-list p { margin: .2rem 0 0; font-size: .86rem; color: var(--impes-text); line-height: 1.6; }
.al-empty { color: var(--impes-muted); padding: .5rem 0; }
.al-hint { font-size: .8rem; color: var(--impes-muted); margin: .7rem 0 0; }

/* other airlines / cards */
.al-h { font-size: 1.05rem; margin: 1.4rem 0 .7rem; }
.al-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; }
.al-card { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.05rem; color: inherit; text-decoration: none; position: relative; overflow: hidden; transition: transform .12s ease, border-color .12s ease; }
.al-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--al-hero); }
.al-card:hover { transform: translateY(-2px); border-color: var(--al-c); color: inherit; }
.al-card-top { display: flex; align-items: center; gap: .65rem; }
.al-card-logo { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--impes-border); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.al-card-logo img { max-width: 30px; max-height: 30px; }
.al-card-top b { display: block; color: var(--impes-heading); line-height: 1.3; }
.al-card-top small { color: var(--impes-muted); font-size: .76rem; }
.al-card p { margin: 0; font-size: .84rem; color: var(--impes-text); line-height: 1.55; min-height: 2.6em; }
.al-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin: 0; }
.al-card dl div { text-align: center; padding: .35rem .2rem; border-radius: 10px; background: rgba(135,29,245,.05); }
.al-card dt { font-size: .7rem; color: var(--impes-muted); font-weight: 500; }
.al-card dd { margin: 0; font-weight: 800; color: var(--impes-heading); font-variant-numeric: tabular-nums; }
.al-card-foot { display: flex; align-items: center; justify-content: space-between; font-size: .78rem; color: var(--impes-muted); margin-top: auto; }
.al-card-foot em { font-style: normal; font-weight: 700; color: var(--al-c); }
.al-badge { font-size: .68rem; font-weight: 700; padding: .1rem .45rem; border-radius: 999px; background: var(--al-c); color: #fff; margin-left: .35rem; vertical-align: middle; }

/* comparison table */
.al-compare { padding: .4rem .2rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.al-compare table { min-width: 860px; }
.al-compare td:first-child, .al-compare th:first-child { position: sticky; left: 0; background: var(--impes-surface); z-index: 1; white-space: nowrap; font-weight: 700; }
.al-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.al-rules div { padding: 1rem 1.1rem; }
.al-rules b { display: block; margin-bottom: .25rem; color: var(--impes-heading); }
.al-rules span { font-size: .86rem; color: var(--impes-text); line-height: 1.65; }

@media (max-width: 1100px) { .al-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .al-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .al-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .al-cols { grid-template-columns: 1fr; } .al-map { min-height: 300px; height: 300px; } .al-rules { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .al-hero { padding: 1.15rem; border-radius: 16px; } .al-hero-logo { width: 60px; height: 60px; border-radius: 15px; } .al-hero-logo img { max-width: 44px; max-height: 44px; }
  .al-hero-main h1 { font-size: 1.3rem; } .al-hero-cta { width: 100%; }
  .al-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; } .al-kpi b { font-size: 1.25rem; }
  .al-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; } .al-cards { grid-template-columns: 1fr; }
}

/* guest layout without the page banner (airline home page) */
.impes-site-content.impes-full > .al { padding: 1.4rem 1.25rem 3rem; max-width: calc(1180px + 2.5rem); }
