/* First Class airport ground map: airfield-sign labels over the globe, stands, aircraft and the status card. */
.gl-open {
  display: grid;
  grid-template-columns: 30px 1fr;
  grid-template-rows: auto auto;
  column-gap: 9px;
  align-items: center;
  width: 100%;
  margin: 2px 0 8px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: linear-gradient(180deg, #232b38, #161c26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 2px rgba(0, 0, 0, 0.45);
  color: #ffffff;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.gl-open:hover { border-color: rgba(255, 255, 255, 0.3); background: linear-gradient(180deg, #2a3443, #1a212c); }
.gl-open:focus-visible { outline: 2px solid rgba(255, 210, 58, 0.9); outline-offset: 2px; }
/* A tiny airfield location sign as the icon. */
.gl-open i {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  height: 18px;
  border: 1.5px solid #ffd400;
  border-radius: 2px;
  background: #0b0b0b;
}
.gl-open i::before {
  content: "B44";
  color: #ffd400;
  font-size: 8.5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.gl-open span {
  font-size: 10.5px;
  font-weight: 500;
  color: rgba(196, 210, 228, 0.75);
}

.gl-overlay {
  position: absolute;
  inset: 0;
  z-index: 1210;
  overflow: hidden;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transition: opacity 250ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gl-overlay.is-shown { opacity: 1; }

/* Scene change cover: the last finished frame of the globe, held while the next view loads behind it. */
.gl-curtain {
  position: absolute;
  inset: 0;
  z-index: 1250;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: progress;
  transition: opacity 150ms ease-out, filter 250ms ease-out 150ms;
}
/* Dimmed while it waits, so the held frame reads as "switching" rather than frozen. */
.gl-curtain.is-on { opacity: 1; filter: brightness(0.78); }
.gl-curtain.is-plain { background: #1c2630; }
.gl-curtain.is-out {
  opacity: 0;
  filter: none;
  pointer-events: none;
  transition: opacity 250ms ease-in-out;
}
.gl-item {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  will-change: transform;
}
.gl-item[hidden] { display: none; }

/* Taxiway names as airfield location signs: yellow on black with a yellow frame. */
.gl-taxi {
  padding: 0 4px;
  border: 1.5px solid #ffd400;
  border-radius: 2px;
  background: #0a0a0a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
  color: #ffd400;
  font-size: 10px;
  font-weight: 800;
  line-height: 13px;
}
.gl-taxi.is-major { font-size: 11.5px; line-height: 14px; }
.gl-area {
  color: #1a2230;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.85);
}
.gl-area.is-apron {
  color: rgba(236, 241, 248, 0.86);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.7);
}

.gl-stand {
  display: flex;
  align-items: center;
  gap: 3px;
}
.gl-stand i {
  width: 6px;
  height: 6px;
  border: 1.6px solid #8df0b8;
  border-radius: 50%;
  background: rgba(10, 30, 20, 0.6);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55);
}
.gl-stand span {
  color: #f1f5fa;
  font-size: 9.5px;
  font-weight: 750;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.8);
}
.gl-stand.is-taken i { border-color: rgba(170, 180, 194, 0.7); background: rgba(170, 180, 194, 0.55); }
.gl-stand.is-taken span { color: rgba(214, 222, 233, 0.62); }

.gl-plane svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.65));
}
.gl-plane path { fill: #eef1f5; stroke: #1b2230; stroke-width: 2.5; stroke-linejoin: round; }
.gl-plane.is-taxiing path { fill: #8fd6ff; }
.gl-tag {
  padding: 1px 5px;
  border-radius: 3px;
  background: rgba(8, 12, 20, 0.74);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 650;
}
.gl-tag i {
  margin-left: 4px;
  font-style: normal;
  font-weight: 500;
  color: rgba(196, 210, 228, 0.78);
}
.gl-tag.is-taxiing { background: rgba(14, 62, 98, 0.9); }

/* The followed flight's likely stand: a pulsing ring and a callout in the arrival colour. */
.gl-likely { width: 0; height: 0; }
.gl-likely-ring {
  position: absolute;
  left: -13px;
  top: -13px;
  width: 26px;
  height: 26px;
  border: 2.5px solid var(--gl-accent, #ffd23a);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.45), 0 0 14px rgba(255, 210, 58, 0.6);
  animation: gl-pulse 1.6s ease-in-out infinite;
}
@keyframes gl-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.7; }
}
.gl-callout {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 4px 8px 5px;
  border-radius: 5px;
  background: var(--gl-accent, #ffd23a);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  color: #10151f;
  font-size: 11px;
  font-weight: 600;
}
.gl-likely.is-flip-x .gl-callout { left: auto; right: 14px; }
.gl-likely.is-flip-y .gl-callout { bottom: auto; top: 14px; }
.gl-callout b { font-weight: 800; }
.gl-callout span { display: block; font-size: 10px; font-weight: 600; opacity: 0.78; }

.gl-hud {
  position: absolute;
  left: 50%;
  z-index: 1300;
  transform: translateX(-50%);
  padding: 7px 8px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(10, 14, 22, 0.88);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
  color: #eef3fa;
  font-size: 12px;
  animation: gl-hud-in 220ms cubic-bezier(0.22, 0.61, 0.36, 1) 1;
}
@keyframes gl-hud-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.gl-hud-row {
  display: flex;
  align-items: center;
  gap: 9px;
}
.gl-hud-placard {
  padding: 2px 7px 1px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, #232b38, #151b25);
  color: rgba(232, 238, 247, 0.86);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gl-hud-row b { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.gl-hud-stats { color: rgba(204, 216, 231, 0.82); font-variant-numeric: tabular-nums; }
.gl-hud-stats b { color: #ffffff; font-size: 12px; font-weight: 750; letter-spacing: 0; }
.gl-hud-back {
  margin-left: 4px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.gl-hud-back:hover { background: rgba(255, 255, 255, 0.16); }
.gl-hud-back:disabled { opacity: 0.45; cursor: default; }
.gl-hud-back:focus-visible { outline: 2px solid rgba(255, 210, 58, 0.9); outline-offset: 2px; }
.gl-hud-credit {
  margin-top: 3px;
  font-size: 9.5px;
  color: rgba(178, 194, 214, 0.66);
}
.gl-hud.is-leaving { opacity: 0; transition: opacity 150ms ease-out; }
.gl-hud.is-loading .gl-hud-stats { color: rgba(226, 234, 244, 0.78); }
/* Thin loading line along the card's bottom edge while the imagery arrives. */
.gl-hud-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 0;
  height: 2px;
  border-radius: 1px;
  overflow: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
}
.gl-hud-progress > i {
  display: block;
  height: 100%;
  background: var(--gl-accent, #ffd23a);
  transform: scaleX(0.06);
  transform-origin: 0 50%;
  transition: transform 200ms ease-out;
}
.gl-hud.is-loading .gl-hud-progress { opacity: 1; }

html.airshow-mobile-runtime .gl-open { grid-template-columns: 30px auto 1fr; grid-template-rows: auto; padding: 5px 9px; margin: 0 0 6px; font-size: 11.5px; }
html.airshow-mobile-runtime .gl-open i { grid-row: auto; height: 16px; }
html.airshow-mobile-runtime .gl-open span { margin-left: 6px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.airshow-mobile-runtime .gl-hud { left: 104px; transform: none; padding: 4px 6px 4px 8px; font-size: 10.5px; animation: none; }
html.airshow-mobile-runtime .gl-hud-placard,
html.airshow-mobile-runtime .gl-hud-stats span { display: none; }
html.airshow-mobile-runtime .gl-hud-stats b { font-size: 11px; }
html.airshow-mobile-runtime .gl-hud-row { gap: 6px; }
html.airshow-mobile-runtime .gl-hud-credit { font-size: 8.5px; margin-top: 1px; }
html.airshow-mobile-runtime .gl-hud-back { padding: 3px 8px; font-size: 10.5px; }
html.airshow-mobile-runtime .gl-taxi { font-size: 9px; line-height: 12px; }
html.airshow-mobile-runtime .gl-area { font-size: 9.5px; }

@media (prefers-reduced-motion: reduce) {
  .gl-likely-ring,
  .gl-hud { animation: none; }
  .gl-overlay,
  .gl-curtain,
  .gl-curtain.is-out,
  .gl-hud.is-leaving,
  .gl-hud-progress > i { transition: none; }
}
