/* Centro aeronáutico · interfaz responsive propia de BoA Crew */
.aviation-page { --aviation-blue: #1765aa; --aviation-cyan: #31a6d8; --aviation-ink: #071b3b; }
.aviation-command {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 172px;
  margin-bottom: 16px;
  padding: clamp(24px, 4vw, 38px);
  overflow: hidden;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(87, 188, 229, .35), transparent 28%),
    linear-gradient(125deg, #071d43 0%, #0d376d 56%, #1765aa 100%);
  box-shadow: var(--shadow);
}
.aviation-command::after { content: ""; position: absolute; right: -78px; bottom: -120px; width: 320px; height: 320px; border: 42px solid rgba(255,255,255,.07); border-radius: 50%; pointer-events: none; }
.aviation-command > * { position: relative; z-index: 1; }
.aviation-command .eyebrow { color: #a9ddf4; }
.aviation-command h2 { margin: 7px 0 8px; font-size: clamp(24px, 4vw, 38px); letter-spacing: -.045em; line-height: 1.06; }
.aviation-command p { max-width: 720px; margin: 0; color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.55; }
.aviation-command-states { display: grid; gap: 8px; min-width: 190px; }
.aviation-command-states span { min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; background: rgba(5,22,50,.28); color: #fff; font-size: 10px; font-weight: 800; backdrop-filter: blur(8px); }
.aviation-command-states .icon { width: 17px; height: 17px; color: #81d0f0; }

.aviation-tabs { position: sticky; z-index: 14; top: calc(var(--topbar) + 7px); display: flex; gap: 7px; margin-bottom: 16px; padding: 6px; overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: color-mix(in srgb, var(--surface) 94%, transparent); box-shadow: var(--shadow-sm); backdrop-filter: blur(15px); scrollbar-width: thin; }
.aviation-tabs button { flex: 1 0 auto; min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 850; }
.aviation-tabs button.active { background: var(--navy); color: #fff; box-shadow: 0 7px 18px rgba(13,43,96,.2); }
.aviation-tabs .icon { width: 18px; height: 18px; }
.aviation-tab-content { min-width: 0; }
.aviation-view { display: grid; gap: 16px; }

.aviation-toolbar { display: flex; align-items: flex-end; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow-sm); }
.aviation-toolbar .primary-button, .aviation-toolbar .secondary-button { white-space: nowrap; }
.aviation-select-field { min-width: 220px; display: grid; flex: 1; gap: 6px; color: var(--text); font-size: 10px; font-weight: 850; }
.aviation-select-field .select-control { min-height: 44px; }
.active-toggle { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); background: color-mix(in srgb, var(--navy-soft) 72%, var(--surface)); }

.aviation-inline-error { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid #d8a35c; border-radius: 13px; background: #fff3df; color: #714414; font-size: 11px; line-height: 1.45; }
[data-theme="dark"] .aviation-inline-error { border-color: #7b5d30; background: #3e2b14; color: #ffddaa; }
.aviation-workspace { min-width: 0; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .72fr); gap: 16px; align-items: start; }
.aviation-map-panel, .aviation-detail-panel { margin: 0 !important; }
.aviation-map-panel .panel-header { min-height: 72px; }
.aviation-map-wrap { position: relative; min-width: 0; }
.aviation-map { width: 100%; height: clamp(440px, 59vh, 650px); background: #dce8f4; isolation: isolate; }
.aviation-map-unavailable { height: 100%; display: grid; place-items: center; padding: 30px; color: var(--muted); text-align: center; }
.aviation-map-legend { position: absolute; z-index: 500; left: 12px; bottom: 24px; display: flex; flex-wrap: wrap; gap: 5px; padding: 7px; border-radius: 10px; background: rgba(255,255,255,.92); color: #23334c; box-shadow: 0 5px 16px rgba(7,31,68,.18); }
.aviation-map-legend span { display: flex; align-items: center; gap: 4px; font-size: 8px; font-weight: 850; }
.aviation-map-legend i { width: 8px; height: 8px; border-radius: 50%; }
.aviation-map-legend .vfr { background: #178651; }
.aviation-map-legend .mvfr { background: #2675c7; }
.aviation-map-legend .ifr { background: #ce3846; }
.aviation-map-legend .lifr { background: #9a48b9; }

.aviation-source-state { min-height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 8px; font-weight: 900; white-space: nowrap; }
.aviation-source-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.aviation-source-state.live { background: #e2f7ec; color: #087047; }
.aviation-source-state.cached { background: #e7f1fb; color: #25669e; }
.aviation-source-state.stale, .aviation-source-state.unavailable { background: #fff0dc; color: #986018; }
[data-theme="dark"] .aviation-source-state.live { background: #123c31; color: #9ce6c6; }
[data-theme="dark"] .aviation-source-state.cached { background: #173b61; color: #b6dcff; }
[data-theme="dark"] .aviation-source-state.stale, [data-theme="dark"] .aviation-source-state.unavailable { background: #4b3519; color: #ffdda8; }

.aviation-detail-panel { overflow: hidden; }
.aviation-airport-hero { min-height: 144px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px; color: #fff; background: linear-gradient(135deg, #0b2c5d, #1b609c); }
.aviation-airport-hero .eyebrow { color: #9fd6ef; }
.aviation-airport-hero h2 { margin: 6px 0 3px; font-size: 28px; letter-spacing: -.04em; }
.aviation-airport-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 10px; }
.flight-category { min-width: 45px; min-height: 27px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 9px; background: #7d8797; color: #fff; font-size: 9px; font-weight: 950; }
.flight-category.large { min-width: 63px; min-height: 48px; border: 4px solid rgba(255,255,255,.18); border-radius: 15px; font-size: 13px; }
.flight-category.vfr { background: #178651; }
.flight-category.mvfr { background: #2675c7; }
.flight-category.ifr { background: #ce3846; }
.flight-category.lifr { background: #8842a7; }
.aviation-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--border); }
.aviation-metrics > div { min-width: 0; min-height: 72px; display: grid; align-content: center; gap: 5px; padding: 12px 15px; background: var(--surface); }
.aviation-metrics small { color: var(--muted); font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.aviation-metrics strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; }
.aviation-metrics.compact > div { min-height: 64px; }
.aviation-raw-report { border-top: 1px solid var(--border); background: var(--surface); }
.aviation-raw-report summary { padding: 13px 15px; color: var(--text); font-size: 10px; font-weight: 850; cursor: pointer; }
.aviation-raw-report code { display: block; margin: 0 15px 14px; padding: 12px; overflow-wrap: anywhere; border-radius: 10px; background: var(--aviation-ink); color: #d7ebff; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.55; }
.aviation-raw-report > small { display: block; margin: -6px 15px 14px; color: var(--muted); font-size: 8px; }
.aviation-data-note { display: flex; align-items: flex-start; gap: 8px; padding: 13px 15px; border-top: 1px solid var(--border); background: var(--surface-2); color: var(--muted); font-size: 9px; line-height: 1.45; }
.aviation-data-note .icon { width: 16px; height: 16px; color: var(--brand); }
.aviation-empty { min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 8px; padding: 24px; color: var(--muted); text-align: center; }
.aviation-empty.compact { min-height: 155px; }
.aviation-empty > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: var(--navy-soft); color: var(--brand); }
.aviation-empty h3, .aviation-empty p { margin: 0; }
.aviation-empty h3 { color: var(--text); font-size: 14px; }
.aviation-empty p { max-width: 280px; font-size: 10px; line-height: 1.5; }

.aviation-favorites-section { display: grid; grid-template-columns: minmax(180px, .35fr) minmax(0, 1fr); align-items: center; gap: 18px; padding: 17px 19px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.aviation-favorites-section h2 { margin: 0 0 4px; font-size: 14px; }
.aviation-favorites-section p { margin: 0; color: var(--muted); font-size: 9px; }
.aviation-favorite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); gap: 8px; }
.aviation-favorite-airport { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); color: var(--text); text-align: left; }
.aviation-favorite-airport.active { border-color: var(--brand); background: var(--navy-soft); }
.aviation-favorite-airport span { display: grid; gap: 2px; }
.aviation-favorite-airport strong { font-size: 13px; }
.aviation-favorite-airport small { color: var(--muted); font-size: 8px; }

.leaflet-div-icon, .weather-marker-shell, .aircraft-map-marker-shell, .leaflet-div-icon.aircraft-map-marker-shell, .vor-marker-shell, .waypoint-marker-shell, .fr24-clean-div-icon, .fr24-clean-marker-shell { border: 0 !important; border-style: none !important; background: transparent !important; background-color: transparent !important; box-shadow: none !important; outline: none !important; -webkit-box-shadow: none !important; }
.weather-map-marker { width: 48px; height: 48px; display: grid; place-content: center; justify-items: center; gap: 1px; padding: 0; border: 3px solid #fff; border-radius: 50%; background: #687386; color: #fff; box-shadow: 0 5px 14px rgba(7,31,68,.3); }
.weather-map-marker.selected { transform: scale(1.13); box-shadow: 0 0 0 5px rgba(39,112,176,.22), 0 6px 16px rgba(7,31,68,.34); }
.weather-map-marker strong { font-size: 10px; }
.weather-map-marker small { font-size: 7px; font-weight: 900; }
.weather-map-marker.vfr { background: #178651; }
.weather-map-marker.mvfr { background: #2675c7; }
.weather-map-marker.ifr { background: #ce3846; }
.weather-map-marker.lifr { background: #8842a7; }

.aviation-radar-status { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.aviation-radar-status > div { min-height: 72px; display: grid; align-content: center; gap: 3px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); }
.aviation-radar-status strong { color: var(--text); font-size: 18px; }
.aviation-radar-status span { color: var(--muted); font-size: 8px; }
.aviation-radar-side { min-width: 0; display: grid; gap: 16px; }
.aviation-radar-search{min-width:min(360px,100%);display:flex;align-items:center;gap:8px}.aviation-radar-search>span{margin-right:-42px;z-index:1;color:var(--muted)}.aviation-radar-search input{padding-left:42px}.radar-live-pill{align-self:start;padding:7px 9px;border-radius:999px;background:rgba(22,132,91,.15);color:#16845b;font-size:9px;font-weight:900;white-space:nowrap}.radar-live-pill.stale{background:rgba(197,75,50,.14);color:#c54b32}.radar-map-legend{position:absolute;left:12px;bottom:12px;z-index:500;display:flex;gap:12px;padding:8px 11px;border:1px solid rgba(255,255,255,.24);border-radius:12px;background:rgba(7,28,59,.78);backdrop-filter:blur(12px);color:#fff;font-size:9px}.radar-map-legend span{display:flex;align-items:center;gap:6px}.radar-map-legend i{width:24px;border-top:3px solid #8b2cff}.radar-map-legend i.estimated{border-top-width:2px;border-top-style:dashed;opacity:.8}.radar-metrics{grid-template-columns:repeat(4,minmax(0,1fr))!important}
.aviation-journey-panel{overflow:hidden}.aviation-route-pair{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;text-align:center}.aviation-route-pair span{display:grid;gap:4px}.aviation-route-pair small{color:var(--muted)}.aviation-route-pair strong{font-size:1.35rem}.aviation-route-pair>b{color:#f4b400;font-size:1.6rem}.aviation-progress{height:8px;margin:16px 0;border-radius:99px;background:var(--surface-2);overflow:hidden}.aviation-progress i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#7c2cff,#2877d5)}
.metartaf-toolbar .grow{flex:1}.metartaf-hero{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:18px;padding:22px;margin-bottom:16px}.metartaf-hero h2{margin:5px 0;font-size:clamp(1.8rem,4vw,3rem)}.metartaf-hero>div:last-child{display:grid;justify-items:end;gap:7px}.metartaf-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:16px;margin-bottom:16px}.metartaf-raw code{display:block;padding:18px;border-radius:14px;background:#071d3e;color:#e7f4ff;font:700 clamp(.9rem,2vw,1.18rem)/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere}.pilot-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.taf-card{margin-bottom:16px}.aviation-favorites-section.compact{margin-bottom:16px}
.aviation-route-editor>summary{display:flex;align-items:center;gap:9px;padding:16px 18px;font-weight:800;cursor:pointer;list-style:none}.aviation-route-editor>summary::-webkit-details-marker{display:none}.aviation-route-editor[open]>summary{border-bottom:1px solid var(--border)}.aviation-route-editor .full-button{width:100%;margin-top:12px}.muted-copy{color:var(--muted)}
.aviation-live-label, .aviation-phase { padding: 6px 8px; border-radius: 8px; background: var(--navy-soft); color: var(--brand); font-size: 7px; font-weight: 950; letter-spacing: .08em; white-space: nowrap; }
.radar-selected-flight { min-width: 0; overflow: hidden; }
.radar-selected-heading { min-height: 120px; display: flex; align-items: center; gap: 15px; padding: 18px; color: #fff; background: linear-gradient(135deg, #0c2b5c, #194e87); }
.radar-selected-heading h2 { margin: 5px 0 2px; font-size: 23px; letter-spacing: -.035em; }
.radar-selected-heading p { margin: 0; color: rgba(255,255,255,.7); font-size: 9px; }
.radar-selected-heading .eyebrow { color: #93d3f0; }
.aircraft-symbol { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 16px; background: rgba(255,255,255,.12); color: #fff; font-size: 29px; transform: rotate(var(--track)); }
.aircraft-symbol.small { width: 34px; height: 34px; border-radius: 10px; background: var(--navy-soft); color: var(--brand); font-size: 18px; }
.radar-list-panel { min-height: 0; }
.radar-flight-list { max-height: 420px; padding: 8px; overflow-y: auto; }
.radar-flight-row { width: 100%; min-height: 58px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 7px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--text); text-align: left; }
.radar-flight-row:hover, .radar-flight-row.active { border-color: var(--border); background: var(--surface-2); }
.radar-flight-row > span:not(.aircraft-symbol) { min-width: 0; display: grid; gap: 2px; }
.radar-flight-row > span:last-child { text-align: right; }
.radar-flight-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.radar-flight-row small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.aircraft-map-marker { background: transparent !important; border: 0 !important; box-shadow: none !important; width: 38px !important; height: 38px !important; }
.aircraft-map-marker span { display: block; transform: rotate(var(--track)); }
.aviation-safety-banner { margin-top: 0; }

.aviation-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aviation-guide-grid .panel { margin: 0; }
.aviation-check-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.aviation-check-list li { display: flex; align-items: flex-start; gap: 9px; color: var(--text); font-size: 11px; line-height: 1.45; }
.aviation-check-list .icon { width: 17px; height: 17px; color: #178651; }
.aviation-check-list.pending .icon { color: #bf7a17; }
.aviation-provider-table { margin: 0 !important; }
.provider-row { display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; min-height: 66px; padding: 10px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-2); }
.provider-row + .provider-row { margin-top: 8px; }
.provider-row > span:nth-child(2) { min-width: 0; display: grid; gap: 3px; }
.provider-row strong { font-size: 11px; }
.provider-row small { color: var(--muted); font-size: 8px; }
.provider-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-soft); color: var(--brand); }
.provider-status { min-height: 25px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 8px; font-size: 7px; font-weight: 950; letter-spacing: .06em; }
.provider-status.active { background: #e1f6eb; color: #0a7046; }
.provider-status.test { background: #e4effa; color: #236499; }
.provider-status.pending { background: #fff0dc; color: #986018; }
[data-theme="dark"] .provider-status.active { background: #153d30; color: #98e3c3; }
[data-theme="dark"] .provider-status.test { background: #173a5e; color: #aed8ff; }
[data-theme="dark"] .provider-status.pending { background: #4a351b; color: #ffdda5; }

.aviation-admin-layout { align-items: start; }
.aviation-admin-layout .panel { margin: 0; }
.aviation-admin-health { display: grid; gap: 8px; margin-bottom: 14px; }
.aviation-admin-health article { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 61px; padding: 9px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.aviation-admin-health article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--navy-soft); color: var(--brand); }
.aviation-admin-health article > div { min-width: 0; display: grid; gap: 2px; }
.aviation-admin-health strong { font-size: 10px; }
.aviation-admin-health small { color: var(--muted); font-size: 8px; }
.full-button { width: 100%; margin-top: 14px; }

.aviation-map .leaflet-control-zoom a { color: #17375f; }
.aviation-map .leaflet-control-attribution { max-width: 76%; overflow: hidden; background: rgba(255,255,255,.88); color: #314258; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.aviation-map .leaflet-popup-content-wrapper, .aviation-map .leaflet-popup-tip { background: var(--surface); color: var(--text); }
.aviation-map .leaflet-popup-content { font-size: 10px; line-height: 1.45; }

@media (max-width: 1080px) {
  .aviation-workspace { grid-template-columns: minmax(0, 1fr); }
  .aviation-detail-panel, .aviation-radar-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aviation-airport-hero { grid-column: 1 / -1; }
  .aviation-detail-panel > .aviation-metrics { grid-column: 1; }
  .aviation-detail-panel > .aviation-raw-report, .aviation-detail-panel > .aviation-data-note { grid-column: 2; }
  .aviation-detail-panel > .aviation-raw-report + .aviation-raw-report { grid-column: 2; }
}

@media (max-width: 760px) {
  .aviation-command { grid-template-columns: 1fr; }
  .aviation-command-states { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
  .aviation-command-states span { justify-content: center; padding: 8px; text-align: center; }
  .aviation-tabs { top: calc(var(--topbar) + 3px); margin-left: -4px; margin-right: -4px; }
  .aviation-tabs button { padding: 0 13px; }
  .aviation-toolbar { align-items: stretch; flex-direction: column; }
  .aviation-select-field { min-width: 0; }
  .aviation-toolbar .primary-button, .aviation-toolbar .secondary-button { width: 100%; }
  .aviation-map { height: 420px; }
  .aviation-detail-panel, .aviation-radar-side { display: block; }
  .aviation-detail-panel > * { grid-column: auto; }
  .aviation-airport-hero { grid-column: auto; }
  .aviation-radar-side > .panel + .panel { margin-top: 16px !important; }
  .aviation-radar-status { grid-template-columns: 1fr; }
  .aviation-radar-status > div { min-height: 60px; }
  .aviation-favorites-section { grid-template-columns: 1fr; }
  .aviation-guide-grid { grid-template-columns: 1fr; }
  .provider-row { grid-template-columns: 42px minmax(0,1fr); }
  .provider-row .provider-status { grid-column: 2; justify-self: start; }
}
@media(max-width:720px){.radar-metrics,.pilot-metrics{grid-template-columns:repeat(2,minmax(0,1fr))!important}.metartaf-hero{grid-template-columns:1fr auto;padding:16px}.metartaf-hero>div:last-child{grid-column:1/-1;justify-items:start}.metartaf-grid{grid-template-columns:1fr}.metartaf-toolbar{display:grid;grid-template-columns:1fr 1fr}.metartaf-toolbar .grow{grid-column:1/-1}.aviation-radar-search{width:100%}.radar-map-legend{right:8px;left:8px;justify-content:center}}

@media (max-width: 520px) {
  .aviation-command { min-height: 0; padding: 22px 18px; border-radius: 21px; }
  .aviation-command h2 { font-size: 25px; }
  .aviation-command-states { grid-template-columns: 1fr; }
  .aviation-command-states span { justify-content: flex-start; min-height: 34px; }
  .aviation-map { height: 350px; }
  .aviation-airport-hero { min-height: 126px; padding: 18px; }
  .aviation-airport-hero h2 { font-size: 24px; }
  .aviation-metrics > div { min-height: 66px; padding: 11px; }
  .aviation-favorite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-flight-list { max-height: 350px; }
}

@media (orientation: landscape) and (max-height: 720px) and (min-width: 620px) {
  .aviation-command { min-height: 120px; padding-block: 20px; grid-template-columns: minmax(0, 1fr) auto; }
  .aviation-command h2 { font-size: 27px; }
  .aviation-command p { max-width: 640px; }
  .aviation-command-states { grid-template-columns: 1fr; }
  .aviation-workspace { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); }
  .aviation-detail-panel, .aviation-radar-side { display: block; }
  .aviation-map { height: calc(100vh - 205px); min-height: 390px; max-height: 590px; }
  .aviation-radar-side > .panel + .panel { margin-top: 16px !important; }
  .radar-flight-list { max-height: 42vh; }
}

@media (prefers-reduced-motion: reduce) {
  .aviation-map .leaflet-zoom-animated { transition: none !important; }
}

/* METAR/TAF: en móvil prima el código operacional; escritorio permanece intacto. */
@media (max-width: 720px) {
  .metartaf-page .page-header { margin-bottom: 10px; padding-block: 8px; }
  .metartaf-page .page-header p { display: none; }
  .metartaf-page .aviation-view { gap: 10px; }
  .metartaf-page .metartaf-toolbar { gap: 7px; margin-bottom: 9px; }
  .metartaf-page .metartaf-toolbar .aviation-select-field { gap: 4px; }
  .metartaf-page .metartaf-toolbar .aviation-select-field > span { font-size: 10px; line-height: 1; }
  .metartaf-page .metartaf-toolbar .select-control,
  .metartaf-page .metartaf-toolbar .primary-button,
  .metartaf-page .metartaf-toolbar .secondary-button { min-height: 40px; padding-block: 8px; }
  .metartaf-page .metartaf-hero {
    min-height: 0;
    gap: 7px 10px;
    margin-bottom: 10px;
    padding: 11px 13px;
    border-radius: 17px;
  }
  .metartaf-page .metartaf-hero .eyebrow { font-size: 8px; line-height: 1.25; }
  .metartaf-page .metartaf-hero h2 { margin: 2px 0; font-size: 1.35rem; line-height: 1.05; }
  .metartaf-page .metartaf-hero p,
  .metartaf-page .metartaf-hero small { font-size: 10px; line-height: 1.25; }
  .metartaf-page .metartaf-hero > div:last-child { grid-column: auto; justify-items: end; gap: 3px; }
  .metartaf-page .flight-category.large { padding: 7px 9px; font-size: 11px; }
  .metartaf-page .metartaf-grid { gap: 10px; margin-bottom: 10px; }
  .metartaf-page .metartaf-raw .panel-header,
  .metartaf-page .taf-card .panel-header { padding: 11px 13px; }
  .metartaf-page .metartaf-raw .panel-body,
  .metartaf-page .taf-card .panel-body { padding: 10px 12px 13px; }
  .metartaf-page .metartaf-raw code { padding: 13px; font-size: .94rem; line-height: 1.55; }
  .metartaf-page .metartaf-grid > .panel:not(.metartaf-raw) { overflow: hidden; }
  .metartaf-page .metartaf-grid > .panel:not(.metartaf-raw) .panel-header { min-height: 0; padding: 9px 12px 6px; }
  .metartaf-page .metartaf-grid > .panel:not(.metartaf-raw) .panel-header h2 { font-size: 1rem; }
  .metartaf-page .metartaf-grid > .panel:not(.metartaf-raw) .panel-header p { display: none; }
  .metartaf-page .metartaf-grid > .panel:not(.metartaf-raw) .panel-body { padding: 5px 10px 10px; }
  .metartaf-page .pilot-metrics {
    display: flex !important;
    gap: 7px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .metartaf-page .pilot-metrics::-webkit-scrollbar { display: none; }
  .metartaf-page .pilot-metrics > div {
    flex: 0 0 126px;
    min-height: 54px;
    padding: 8px 9px;
    scroll-snap-align: start;
  }
  .metartaf-page .pilot-metrics small { font-size: 8px; }
  .metartaf-page .pilot-metrics strong { margin-top: 2px; font-size: 12px; line-height: 1.2; }
}
.aviation-airport-search{margin:16px 0}.aviation-airport-search-form{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}.aviation-airport-search-form>span{color:var(--primary);display:grid;place-items:center}.aviation-airport-search-results{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:9px;margin-top:14px}.aviation-airport-search-results button{border:1px solid var(--border);background:var(--surface-muted);color:var(--text);border-radius:15px;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;text-align:left;cursor:pointer}.aviation-airport-search-results button:hover{border-color:var(--primary);transform:translateY(-1px)}.aviation-airport-search-results span{display:grid;gap:3px}.aviation-airport-search-results small{color:var(--muted)}.aviation-search-hint{margin:12px 0 0}@media(max-width:620px){.aviation-airport-search-form{grid-template-columns:auto 1fr}.aviation-airport-search-form button{grid-column:1/-1}.aviation-airport-search-results{grid-template-columns:1fr}}

/* Estilos de Radar Flightradar24 & Windy Doppler en vivo */
.fr24-card { border-radius: 18px; overflow: hidden; }
.fr24-header-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.fr24-fleet-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; font-size: 8px; font-weight: 900; letter-spacing: .06em; box-shadow: 0 2px 8px rgba(245, 158, 11, .35); }
.fr24-fleet-badge.boa-detected { background: linear-gradient(135deg, #0284c7, #0369a1); color: #fff; box-shadow: 0 2px 8px rgba(2, 132, 199, .35); }
.boa-fleet-header { background: linear-gradient(135deg, #0b254e, #13427d) !important; border-bottom: 2px solid rgba(245, 158, 11, .4); }
.fr24-operator { color: #9fd6ef !important; font-weight: 700; }
.fr24-action-bar { display: flex; gap: 8px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.fr24-action-bar .secondary-button { flex: 1 1 auto; min-height: 38px; font-size: 10px; }
.camera-follow-btn.active { background: #0284c7 !important; color: #fff !important; border-color: #38bdf8 !important; box-shadow: 0 0 12px rgba(56, 189, 248, .5); }

/* Ficha de ruta FR24 */
.fr24-journey { border-radius: 18px; overflow: hidden; }
.fr24-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 10px; background: var(--surface-2); border-radius: 14px; }
.fr24-route-node { display: grid; gap: 2px; }
.fr24-route-node.text-right { text-align: right; }
.fr24-iata { font-size: 22px; font-weight: 900; letter-spacing: -.03em; color: var(--text); }
.fr24-time-node { font-size: 10px; color: var(--muted); margin-top: 4px; }
.fr24-route-center { display: grid; place-items: center; gap: 2px; }
.fr24-plane-icon { font-size: 22px; color: #f59e0b; }
.fr24-percent { font-size: 9px; font-weight: 850; color: #38bdf8; }
.fr24-bar { height: 7px; margin: 12px 0 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.fr24-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0284c7, #f59e0b); }

/* Controles de radar meteorológico Doppler Windy */
.windy-radar-control-bar {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(7, 28, 59, .88);
  border: 1px solid rgba(255, 255, 255, .25);
  backdrop-filter: blur(12px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.windy-play-btn {
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: background .15s ease;
}
.windy-play-btn:hover { background: #0369a1; }
.windy-time-pill { font-size: 11px; font-weight: 850; letter-spacing: .03em; color: #38bdf8; }
.windy-watermark { font-size: 8px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .06em; margin-left: 6px; }

/* Marcadores en mapa Leaflet para flota BoA */
.aircraft-map-marker.boa-fleet {
  background: linear-gradient(135deg, #071d43, #0d376d) !important;
  color: #f59e0b !important;
  border: 2px solid #f59e0b !important;
  box-shadow: 0 0 10px rgba(245, 158, 11, .5), 0 4px 14px rgba(0, 0, 0, .4) !important;
}
.radar-flight-row.boa-official {
  background: color-mix(in srgb, #f59e0b 8%, transparent);
  border-color: color-mix(in srgb, #f59e0b 35%, transparent);
}
.radar-map-legend i.boa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 6px #f59e0b;
  border: 0;
}

/* ==========================================================================
   COCKPIT HUD OVERLAY (Estilo Flightradar24 / Glass Cockpit PFD)
   ========================================================================== */
.cockpit-hud-overlay {
  position: absolute;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1200;
  width: min(94vw, 560px);
  max-width: 580px;
  background: rgba(11, 19, 32, 0.94);
  border: 1.5px solid rgba(56, 189, 248, 0.38);
  border-radius: 18px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 25px rgba(56, 189, 248, 0.18);
  color: #f1f5f9;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  overflow: hidden;
  user-select: none;
  animation: hudSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes hudSlideUp {
  from { opacity: 0; transform: translate(-50%, 20px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@media (max-width: 600px) {
  .cockpit-hud-overlay {
    bottom: 78px;
    width: 96vw;
    border-radius: 14px;
  }
}

/* Radar móvil: composición inmersiva y controles compactos.
   Esta capa final prevalece sobre las reglas históricas del clon FR24. */
@media (max-width: 900px) {
  .app-shell.sidebar-collapsed #page-container:has(.aviation-radar-active),
  .app-shell.sidebar-collapsed .page-container:has(.aviation-radar-active),
  #page-container:has(.aviation-radar-active),
  .page-container:has(.aviation-radar-active) {
    width: 100% !important;
    max-width: none !important;
    padding: var(--topbar, 56px) 0 0 !important;
  }

  .aviation-page.aviation-radar-active {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 calc(-82px - env(safe-area-inset-bottom)) !important;
  }

  .aviation-tabs-radar-bar {
    width: 100% !important;
    min-height: 42px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .aviation-tabs-radar-bar::-webkit-scrollbar { display: none; }

  .fr24-top-control-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(10, 20, 42, .94) !important;
    overflow: hidden !important;
  }
  .fr24-top-brand,
  .fr24-lang-selector { display: none !important; }
  .fr24-search-box {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 40px !important;
  }
  .fr24-search-input { min-width: 0 !important; font-size: 14px !important; }
  .fr24-quick-chips {
    grid-column: 1 / -1 !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 0 0 2px !important;
    scrollbar-width: none;
  }
  .fr24-quick-chips::-webkit-scrollbar { display: none; }
  .fr24-chip { min-height: 32px !important; padding: 5px 10px !important; }
  .fr24-dock-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .fr24-dock-actions::-webkit-scrollbar { display: none; }
  .fr24-dock-btn,
  .fr24-live-pill-btn { min-height: 34px !important; flex: 0 0 auto !important; }

  .fr24-map-canvas-container { min-height: 0 !important; }
  .fr24-bottom-dock {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    overflow-x: auto !important;
    justify-content: space-around !important;
    scrollbar-width: none;
  }
  .fr24-bottom-dock::-webkit-scrollbar { display: none; }
  .fr24-dock-pill-btn { min-width: 58px !important; padding: 5px 7px !important; }
  .fr24-dock-pill-btn span:last-child { font-size: 8px !important; }
}

@media (max-width: 768px) {
  .fr24-flight-drawer {
    height: min(54dvh, 540px) !important;
    max-height: calc(100dvh - var(--topbar, 56px) - 42px) !important;
  }
  .fr24-drawer-container {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  .fr24-drawer-header { padding: 10px 14px !important; }
  .fr24-callsign-title { font-size: 22px !important; }
  .fr24-drawer-photo-wrap {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
  }
  .fr24-photo-dots,
  .fr24-photo-nav { display: none !important; }
  .fr24-route-section { padding: 10px 14px !important; }
  .fr24-route-iata { font-size: 25px !important; }
  .fr24-route-city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fr24-drawer-actions-bar { display: none !important; }
  .fr24-drawer-bottom-bar { position: sticky !important; bottom: 0 !important; z-index: 15 !important; }
  .fr24-drawer-action-btn { min-width: 0 !important; padding: 8px 2px !important; font-size: 9px !important; }
  .fr24-flight-drawer.drawer-collapsed {
    transform: translateY(calc(100% - 58px)) !important;
    opacity: 1 !important;
  }
}

/* Ficha móvil: prioriza mapa y datos operativos; conserva la apariencia actual. */
@media (max-width: 768px) {
  .fr24-flight-drawer {
    height: min(54dvh, 540px) !important;
    overflow: hidden !important;
  }
  .fr24-drawer-container {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  .fr24-drawer-container::before {
    content: "";
    position: sticky;
    top: 5px;
    z-index: 20;
    display: block;
    width: 38px;
    height: 4px;
    margin: 5px auto -9px;
    border-radius: 999px;
    background: rgba(255,255,255,.55);
  }
  .fr24-drawer-header { padding: 10px 14px !important; }
  .fr24-callsign-title { font-size: 22px !important; }
  .fr24-drawer-photo-wrap {
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
  }
  .fr24-photo-carousel-dots { display: none !important; }
  .fr24-route-card-white { padding: 11px 13px !important; }
  .fr24-route-iata { font-size: 25px !important; }
  .fr24-route-city { max-width: 32vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fr24-schedule-grid { gap: 10px !important; margin-top: 9px !important; padding-top: 9px !important; }
  .fr24-sched-row { gap: 6px; }
  .fr24-route-progress-sub { gap: 8px; line-height: 1.35; }
  .fr24-route-progress-sub > span { flex: 1; }
  .fr24-route-progress-sub .right { text-align: right; }
  .fr24-drawer-actions-bar { display: none !important; }
  .fr24-drawer-bottom-bar { position: sticky !important; bottom: 0 !important; z-index: 15 !important; }
  .fr24-drawer-action-btn { min-width: 0 !important; padding: 8px 2px !important; font-size: 9px !important; }
  .fr24-flight-drawer.drawer-collapsed { transform: translateY(calc(100% - 58px)) !important; opacity: 1 !important; }
}

.cockpit-hud-header {
  display: flex;
  flex-direction: column;
  padding: 10px 16px 8px;
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  gap: 8px;
}

.hud-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  flex-wrap: wrap;
}

.hud-header-sub-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
}

.hud-flight-tag {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: hudPulse 1.8s infinite;
}

@keyframes hudPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.hud-flight-tag strong {
  font-size: 14px;
  letter-spacing: .05em;
  color: #00e5ff;
}

.hud-flight-tag small {
  font-size: 11px;
  color: #cbd5e1;
}

.hud-center-telemetry {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-telemetry-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.hud-telemetry-badge strong {
  color: #facc15;
}

.hud-squawk-emerg {
  background: rgba(239, 68, 68, 0.25) !important;
  border-color: #ef4444 !important;
  color: #fee2e2 !important;
  animation: hudEmergencyBlink 1s infinite alternate;
}

@keyframes hudEmergencyBlink {
  0% { box-shadow: 0 0 4px #ef4444; }
  100% { box-shadow: 0 0 14px #ef4444; }
}

.hud-close-btn {
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hud-close-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #fff;
}

.cockpit-hud-main {
  display: grid;
  grid-template-columns: 88px 1fr 88px 48px;
  align-items: center;
  padding: 14px 12px;
  gap: 10px;
}

@media (max-width: 520px) {
  .cockpit-hud-main {
    grid-template-columns: 74px 1fr 74px 38px;
    padding: 10px 8px;
    gap: 6px;
  }
}

.hud-tape-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tape-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #94a3b8;
}

.tape-window {
  position: relative;
  width: 100%;
  height: 124px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.8);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tape-ladder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #64748b;
  opacity: 0.7;
}

.tape-current-mark {
  color: #38bdf8;
  font-weight: 900;
}

.tape-center-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 8px;
  background: rgba(2, 132, 199, 0.4);
  border: 1.5px solid #38bdf8;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.tape-center-box strong {
  font-size: 13px;
  color: #fff;
  font-weight: 900;
}

.hud-tape-box small {
  font-size: 9px;
  color: #38bdf8;
  font-weight: 700;
}

.hud-adi-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.hud-compass-tape {
  position: relative;
  width: 160px;
  height: 24px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
}

.compass-strip {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 12px;
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  transition: transform .2s ease-out;
  padding: 0 6px;
}

.compass-strip .cardinal {
  color: #38bdf8;
  font-weight: 900;
}

.compass-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  color: #facc15;
  font-size: 8px;
  line-height: 1;
}

.hud-adi-bezel {
  position: relative;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  border: 3px solid #334155;
  box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  background: #020617;
}

.hud-adi-ball {
  position: absolute;
  top: -60px;
  left: -20px;
  right: -20px;
  bottom: -60px;
  transition: transform .25s ease-out;
}

.adi-sky {
  height: 50%;
  background: linear-gradient(180deg, #1e3a8a, #2563eb);
}

.adi-horizon-line {
  height: 2px;
  background: #fff;
  box-shadow: 0 0 4px #fff;
}

.adi-ground {
  height: 50%;
  background: linear-gradient(180deg, #78350f, #451a03);
}

.adi-pitch-ladder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 7px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.7);
  pointer-events: none;
}

.hud-boresight {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.hud-boresight .wing-left,
.hud-boresight .wing-right {
  width: 18px;
  height: 3px;
  background: #facc15;
  box-shadow: 0 0 6px #facc15;
}

.hud-boresight .center-pip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 6px #facc15;
}

.hud-roll-pointer {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  color: #38bdf8;
  font-size: 8px;
  pointer-events: none;
}

.hud-heading-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}

.hud-heading-box small {
  font-size: 8px;
  color: #94a3b8;
  letter-spacing: .05em;
}

.hud-heading-box strong {
  font-size: 13px;
  color: #facc15;
  font-weight: 900;
}

.hud-vsi-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.vsi-label {
  font-size: 9px;
  font-weight: 800;
  color: #94a3b8;
}

.vsi-scale {
  position: relative;
  width: 28px;
  height: 124px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.vsi-mark {
  font-size: 8px;
  font-weight: 700;
  color: #64748b;
}

.vsi-pointer {
  position: absolute;
  left: 2px;
  top: 50%;
  color: #38bdf8;
  font-size: 9px;
  transition: transform .2s ease-out;
}

.hud-vsi-box small {
  font-size: 8px;
  color: #38bdf8;
  font-weight: 800;
  white-space: nowrap;
}

.cockpit-hud-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 10px;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 8px;
}

.cockpit-hud-footer strong {
  color: #e2e8f0;
}

.cockpit-hud-footer .camera-follow-btn {
  background: #172554 !important;
  border: 1px solid #1d4ed8 !important;
  color: #eff6ff !important;
  border-radius: 8px !important;
  padding: 6px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.15s ease !important;
}

.cockpit-hud-footer .camera-follow-btn:hover,
.cockpit-hud-footer .camera-follow-btn.active {
  background: #2563eb !important;
  border-color: #3b82f6 !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.5) !important;
  color: #ffffff !important;
}

.fr24-dock-pill-btn.active-cyan {
  background: rgba(14, 165, 233, 0.25) !important;
  border-color: #0ea5e9 !important;
  color: #38bdf8 !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.4) !important;
}

.fr24-ctrl-btn.fr24-hud-btn {
  color: #38bdf8 !important;
}

.fr24-ctrl-btn.fr24-hud-btn:hover,
.fr24-ctrl-btn.fr24-hud-btn.active {
  background: #0284c7 !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(14, 165, 233, 0.6) !important;
}

/* ==========================================================================
   ALERTA DE EMERGENCIA FR24 (Squawk 7700 / 7600 / 7500)
   ========================================================================== */
.fr24-emergency-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.95), rgba(185, 28, 28, 0.95));
  border: 1px solid #f87171;
  color: #fff;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.4);
  animation: emergPulse 1.5s infinite;
}

@keyframes emergPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 24px rgba(239, 68, 68, 0.9); }
}

.fr24-emergency-banner .emergency-icon {
  font-size: 20px;
  animation: spinSlow 3s linear infinite;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.emergency-info strong {
  font-size: 13px;
  display: block;
}

.emergency-info p {
  margin: 2px 0 0;
  font-size: 11px;
  opacity: 0.9;
}

/* ==========================================================================
   LEYENDA DE GRADIENTE DE ALTITUD FR24
   ========================================================================== */
.fr24-altitude-legend {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  flex-wrap: wrap;
}

.fr24-altitude-legend .legend-title {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.fr24-altitude-legend .alt-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  border-left: 3px solid var(--c);
  font-size: 9px;
}

/* ==========================================================================
   CATÁLOGO DE FLOTA OFICIAL BOA (21 Aeronaves)
   ========================================================================== */
.boa-fleet-catalog {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fleet-catalog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.fleet-catalog-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.fleet-catalog-header p {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--muted);
}

.boa-fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.boa-fleet-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.boa-fleet-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.boa-fleet-card.selected {
  border-color: #f59e0b;
  box-shadow: 0 0 14px rgba(245, 158, 11, 0.3);
}

.fleet-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fleet-plane-icon {
  font-size: 16px;
  color: #f59e0b;
  transform: rotate(var(--track, 0deg));
  display: inline-block;
  transition: transform .3s ease;
}

.fleet-card-top strong {
  font-size: 13px;
  color: var(--text);
}

.fleet-plane-name {
  display: block;
  font-size: 10px;
  color: #38bdf8;
  font-style: italic;
}

.fleet-status-pill {
  margin-left: auto;
  font-size: 8px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fleet-status-pill.active-air {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid #10b981;
}

.fleet-status-pill.on-ground {
  background: rgba(245, 158, 11, 0.18);
  color: #f59e0b;
  border: 1px solid #f59e0b;
}

.fleet-status-pill.in-base {
  background: rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  border: 1px solid #64748b;
}

.fleet-card-model b {
  font-size: 11px;
  display: block;
  color: var(--text);
}

.fleet-card-model small {
  font-size: 10px;
  color: var(--muted);
}

.fleet-card-status {
  font-size: 10px;
  color: var(--text-soft, #94a3b8);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fleet-card-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 4px;
}

.fleet-card-actions .small-button {
  flex: 1;
  padding: 5px 8px;
  font-size: 10px;
}

.fleet-base-note {
  font-size: 9px;
  color: var(--muted);
}

/* ==========================================================================
   MARCADORES VOR / RADIOAYUDAS DE BOLIVIA
   ========================================================================== */
.vor-navaid-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(14, 165, 233, 0.9);
  color: #fff;
  border: 1.5px solid #fff;
  border-radius: 8px;
  padding: 2px 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 8px rgba(14, 165, 233, 0.6);
  cursor: pointer;
  transition: transform .15s ease;
}

.vor-navaid-marker:hover {
  transform: scale(1.15);
  background: #0284c7;
}

.vor-navaid-marker span {
  font-size: 11px;
  line-height: 1;
}

.vor-navaid-marker small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .04em;
}

.active-toggle {
  background: #0284c7 !important;
  color: #fff !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

/* ==========================================================================
   WAYPOINTS RNAV / FIXES DE NAVEGACIÓN
   ========================================================================== */
.waypoint-navaid-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.85);
  color: #38bdf8;
  border: 1px solid #38bdf8;
  border-radius: 6px;
  padding: 2px 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform .15s ease;
}

.waypoint-navaid-marker:hover {
  transform: scale(1.2);
  background: #0369a1;
  color: #fff;
}

.waypoint-navaid-marker span {
  font-size: 9px;
  line-height: 1;
}

.waypoint-navaid-marker small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .03em;
}

/* ==========================================================================
   SCRUBBER DE REPLAY DE TRAZA (Flightradar24 Timeline)
   ========================================================================== */
.fr24-track-scrubber {
  margin: 10px 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scrubber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.scrubber-header small {
  color: var(--muted);
  font-weight: 700;
}

.scrubber-header span {
  color: #38bdf8;
  font-weight: 800;
}

.track-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
  height: 6px;
}

.emergency-action-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

/* Resumen visual de aeronave Flightradar24 (Silueta + Compás) */
.fr24-visual-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.fr24-silhouette-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fr24-silhouette-svg {
  width: 100%;
  max-width: 220px;
  height: 48px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.fr24-silhouette-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.fr24-silhouette-caption span {
  font-size: 11px;
  font-weight: 800;
  color: #f1f5f9;
}

.fr24-silhouette-caption small {
  font-size: 9px;
  color: var(--muted, #94a3b8);
}

/* Compás analógico FR24 */
.fr24-compass-dial {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.compass-bezel {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle, #0f172a 60%, #020617 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.6);
}

.compass-cardinal {
  position: absolute;
  font-size: 8px;
  font-weight: 900;
  color: #64748b;
  line-height: 1;
}

.compass-cardinal.n { top: 3px; color: #ef4444; }
.compass-cardinal.e { right: 3px; }
.compass-cardinal.s { bottom: 3px; }
.compass-cardinal.w { left: 3px; }

.compass-needle {
  position: absolute;
  width: 4px;
  height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.needle-tip {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-bottom: 14px solid #ef4444;
}

.needle-tail {
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 14px solid #ffffff;
}

.compass-readout {
  font-size: 10px;
  font-weight: 800;
  color: #facc15;
  letter-spacing: .03em;
}

/* Indicador de Streaming en Vivo FR24 */
.fr24-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  transition: all 0.2s ease;
}

.active-live-pulse {
  background: rgba(239, 68, 68, 0.15) !important;
  border-color: rgba(239, 68, 68, 0.5) !important;
  color: #fca5a5 !important;
}

.active-live-pulse .pulse-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: fr24-radar-pulse 1.8s infinite;
}

@keyframes fr24-radar-pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 7px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.fr24-live-pill.paused {
  opacity: 0.75;
}

.fr24-windy-btn {
  border-color: rgba(255, 98, 0, 0.4) !important;
  color: #ff8533 !important;
}
.fr24-windy-btn:hover {
  background: rgba(255, 98, 0, 0.15) !important;
}

.fr24-photo-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-color: rgba(56, 189, 248, 0.3) !important;
  color: #38bdf8 !important;
}

.fr24-photo-link:hover {
  background: rgba(56, 189, 248, 0.12) !important;
  border-color: #38bdf8 !important;
}

.fr24-route-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 14px;
  margin: 8px 0 12px 0;
  font-size: 12px;
}

.fr24-route-strip .route-point {
  color: #f8fafc;
}

.fr24-route-strip .route-arrow {
  color: #38bdf8;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.05em;
}

/* === ICONOS VECTORIALES DE AERONAVES ESTILO FLIGHTRADAR24 === */
/* === ICONOS VECTORIALES DE AERONAVES ESTILO FLIGHTRADAR24 === */
.fr24-aircraft-marker {
  position: relative;
  width: 38px !important;
  height: 38px !important;
  display: grid !important;
  place-items: center;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  user-select: none;
  pointer-events: auto;
  box-shadow: none !important;
  outline: none !important;
}

.fr24-plane-icon-wrap {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  transform-origin: 50% 50% !important;
  will-change: transform;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.65));
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.fr24-plane-svg {
  display: block;
  overflow: visible;
  transform-origin: 50% 50% !important;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
}

.fr24-aircraft-marker:hover .fr24-plane-svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px rgba(255, 206, 0, 0.9)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

.fr24-aircraft-marker.boa:hover .fr24-plane-svg {
  filter: drop-shadow(0 0 10px rgba(14, 165, 233, 0.95)) drop-shadow(0 3px 6px rgba(0, 0, 0, 0.8));
}

.fr24-aircraft-marker.ground .fr24-plane-icon-wrap {
  opacity: 0.72;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

/* En vista de radar limpia Flightradar24, las aeronaves en vuelo no llevan etiquetas tapando el mapa */
.fr24-marker-label {
  display: none !important;
}

/* Anillo de selección cinemático pulsante centrado sobre la aeronave */
.aircraft-selection-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  margin-left: -24px;
  border: 2.5px solid #00e5ff;
  border-radius: 50%;
  pointer-events: none;
  animation: fr24-pulse-ring 1.8s cubic-bezier(0.1, 0.8, 0.3, 1) infinite;
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.85);
  z-index: 5;
}

.fr24-aircraft-marker.boa .aircraft-selection-ring {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.85);
}

.fr24-aircraft-marker.emergency .aircraft-selection-ring {
  border-color: #ef4444;
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.95);
  animation: fr24-pulse-ring 0.9s ease-out infinite;
}

@keyframes fr24-pulse-ring {
  0% { transform: scale(0.82); opacity: 1; }
  75% { transform: scale(1.35); opacity: 0.3; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Símbolo de aeronave en cabecera del radar */
.aircraft-symbol-fr24 {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.aircraft-symbol-fr24 svg {
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}

/* === TARJETA Y VISOR DE FOTOGRAFÍAS REALES ESTILO FR24 === */
.fr24-aircraft-photo-card {
  position: relative;
  width: 100%;
  height: 184px;
  border-radius: 14px;
  overflow: hidden;
  background: #05142d;
  border: 1px solid var(--border);
  margin-bottom: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(3, 14, 35, 0.45);
}

.fr24-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.fr24-aircraft-photo-card:hover .fr24-photo-img {
  transform: scale(1.05);
}

.fr24-photo-badge {
  position: absolute;
  bottom: 9px;
  left: 9px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(7, 28, 62, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 8px;
  font-weight: 850;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.fr24-photo-credit {
  position: absolute;
  bottom: 9px;
  right: 9px;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.68);
  color: rgba(255, 255, 255, 0.78);
  font-size: 7px;
  font-weight: 600;
}

.fr24-photo-zoom-hint {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(7, 28, 62, 0.82);
  backdrop-filter: blur(6px);
  color: #38bdf8;
  font-size: 8px;
  font-weight: 800;
  opacity: 0;
  transition: opacity 0.2s ease;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.fr24-aircraft-photo-card:hover .fr24-photo-zoom-hint {
  opacity: 1;
}

/* Modal Lightbox de Fotografía en Alta Definición */
.fr24-photo-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  padding: 18px;
  animation: fr24-fade-in 0.25s ease;
}

.fr24-photo-modal-content {
  position: relative;
  max-width: 920px;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #081a38;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9);
  animation: fr24-scale-in 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.fr24-modal-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #000;
  display: block;
}

.fr24-modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: linear-gradient(135deg, #092147, #0d3166);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.fr24-modal-footer strong {
  font-size: 13px;
  color: #fff;
  display: block;
}

.fr24-modal-footer p {
  margin: 3px 0 0;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.7);
}

.fr24-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s;
  z-index: 2;
}

.fr24-modal-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

@keyframes fr24-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fr24-scale-in {
  from { transform: scale(0.94); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* POPUP DE AEROPUERTOS INTERACTIVOS FR24 */
.fr24-airport-popup {
  padding: 4px;
  min-width: 200px;
  max-width: 260px;
  font-family: inherit;
  color: #0f172a;
}

.fr24-apt-head {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.fr24-apt-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0ea5e9;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.fr24-apt-head h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.fr24-apt-head p {
  margin: 2px 0 0;
  font-size: 10px;
  color: #64748b;
}

.fr24-apt-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
  background: #f8fafc;
  padding: 6px;
  border-radius: 6px;
}

.fr24-apt-stats div small {
  display: block;
  font-size: 8px;
  color: #64748b;
  text-transform: uppercase;
}

.fr24-apt-stats div strong {
  font-size: 11px;
  color: #0f172a;
}

.fr24-apt-metar {
  margin-bottom: 6px;
  background: #0f172a;
  padding: 4px 6px;
  border-radius: 4px;
  overflow: hidden;
}

.fr24-apt-metar code {
  font-size: 8px;
  color: #38bdf8;
  white-space: pre-wrap;
  word-break: break-all;
  font-family: monospace;
}

.fr24-apt-actions button {
  width: 100%;
  font-size: 11px;
  padding: 6px 10px;
  justify-content: center;
}

/* ==========================================================================
   BARRA DE CONTROL SUPERIOR FLOTANTE ESTILO FLIGHTRADAR24 PRO (GLASSMORPHISM)
   ========================================================================== */
.fr24-top-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(10, 20, 42, 0.92);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1000;
}

.fr24-search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  max-width: 320px;
  min-width: 180px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 2px 10px;
  transition: all 0.2s ease;
}

.fr24-search-box:focus-within {
  background: rgba(255, 255, 255, 0.14);
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25);
}

.fr24-search-icon {
  font-size: 14px;
  color: #94a3b8;
  margin-right: 6px;
  display: grid;
  place-items: center;
}

.fr24-search-input {
  width: 100%;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 0;
  outline: none;
}

.fr24-search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.fr24-search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
}

.fr24-search-clear:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.fr24-quick-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 2px;
}

.fr24-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
  white-space: nowrap;
  user-select: none;
}

.fr24-chip:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.fr24-chip.active {
  background: #0284c7;
  border-color: #38bdf8;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.fr24-chip.active-gold {
  background: linear-gradient(135deg, #b45309, #d97706);
  border-color: #fbbf24;
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.45);
}

.fr24-chip .chip-star {
  color: #fbbf24;
  font-size: 12px;
}

.fr24-dock-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.fr24-dock-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.fr24-dock-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.fr24-dock-btn.windy-btn-accent {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(14, 165, 233, 0.4));
  border-color: #38bdf8;
  color: #e0f2fe;
}

.fr24-dock-btn.windy-btn-accent:hover {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
}

.fr24-dock-btn .caret {
  font-size: 9px;
  opacity: 0.7;
}

.fr24-live-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  color: #34d399;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fr24-live-pill-btn:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #34d399;
}

.fr24-live-pill-btn.paused {
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
  color: #94a3b8;
}

.pulse-beacon {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: fr24-beacon 1.2s ease-in-out infinite alternate;
}

.fr24-live-pill-btn.paused .pulse-beacon {
  background: #94a3b8;
  box-shadow: none;
  animation: none;
}

@keyframes fr24-beacon {
  from { opacity: 0.4; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1.2); }
}

.refresh-btn.spinning svg,
.refresh-btn.spinning {
  animation: fr24-spin 0.8s linear infinite;
}

@keyframes fr24-spin {
  100% { transform: rotate(360deg); }
}

/* MENÚS DROPDOWN FR24 DOCK */
.fr24-dropdown-wrap {
  position: relative;
}

.fr24-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 220px;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 3px;
  z-index: 2000;
  animation: fr24-scale-in 0.15s ease-out;
}

.fr24-dropdown-menu.open {
  display: flex;
}

.fr24-drop-item {
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 11px;
  font-weight: 500;
  padding: 7px 10px;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.14s ease;
  width: 100%;
}

.fr24-drop-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.fr24-drop-item.selected {
  background: rgba(2, 132, 199, 0.35);
  color: #38bdf8;
  font-weight: 700;
}

.fr24-drop-item.checkable .chk {
  width: 14px;
  font-weight: 900;
  color: #38bdf8;
}

.drop-section-title {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.06em;
  padding: 5px 8px 2px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 3px 0;
}

/* ==========================================================================
   FICHA DE VUELO Y PROGRESO ANIMADO ESTILO FLIGHTRADAR24 (BARRA & HORAS)
   ========================================================================== */
.fr24-flight-progress-card {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  margin: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fr24-route-strip-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fr24-route-strip-v2 .route-block {
  display: flex;
  flex-direction: column;
  min-width: 75px;
}

.fr24-route-strip-v2 .route-block.dest {
  text-align: right;
  align-items: flex-end;
}

.fr24-route-strip-v2 .iata-code {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
  line-height: 1;
}

.fr24-route-strip-v2 .city-name {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.fr24-route-strip-v2 .time-label {
  font-size: 9px;
  color: #64748b;
  margin-top: 2px;
}

.fr24-route-strip-v2 .time-label b {
  color: #e2e8f0;
}

.fr24-route-strip-v2 .time-label b.eta-time {
  color: #38bdf8;
}

.route-center-telemetry {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
}

.flight-timer-chip {
  font-size: 10px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 10px;
}

.fr24-progress-track {
  position: relative;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  margin: 8px 0;
}

.fr24-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
  transition: width 0.4s ease;
}

.fr24-progress-plane-indicator {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: left 0.4s ease;
  pointer-events: none;
}

.progress-plane-icon {
  display: inline-block;
  font-size: 14px;
  color: #38bdf8;
  filter: drop-shadow(0 0 5px rgba(56, 189, 248, 0.8));
  transform: rotate(90deg);
}

.progress-sub-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-size: 9px;
  color: #64748b;
}

.progress-sub-labels .pct-readout {
  color: #38bdf8;
  font-weight: 800;
  font-size: 10px;
}

.fr24-eta-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 10px;
  color: #cbd5e1;
}

.fr24-eta-pill-row .eta-pill strong {
  color: #38bdf8;
}

.fr24-eta-pill-row .distance-pill strong {
  color: #f1f5f9;
}

/* LISTA LATERAL DE VUELOS ROTACIÓN Y ESTRUCTURA */
.radar-flight-row .aircraft-symbol.small {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
}

.flight-main-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 1px;
}

.flight-main-info strong {
  font-size: 12px;
  color: #ffffff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-main-info small {
  font-size: 10px;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flight-meta-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 60px;
  gap: 1px;
}

.flight-meta-info strong {
  font-size: 11px;
  color: #e2e8f0;
}

.flight-meta-info small {
  font-size: 9px;
  color: #64748b;
}

/* ==========================================================================
   MODO INMERSIVO FULL-HEIGHT: RADAR DE VUELOS PANTALLA COMPLETA (ESTILO FR24)
   ========================================================================== */

#page-container:has(.aviation-radar-active),
.page-container:has(.aviation-radar-active) {
  padding: calc(var(--topbar, 64px) + 2px) 0 0 calc(var(--sidebar, 240px)) !important;
  overflow: hidden !important;
}

.app-shell.sidebar-collapsed #page-container:has(.aviation-radar-active),
.app-shell.sidebar-collapsed .page-container:has(.aviation-radar-active) {
  padding-left: calc(var(--sidebar-rail, 72px)) !important;
}

.aviation-page.aviation-radar-active {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: calc(100vh - var(--topbar, 64px) - 2px) !important;
  height: calc(100dvh - var(--topbar, 64px) - 2px) !important;
  min-height: 560px !important;
  margin: -30px -30px -40px 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.aviation-tabs-radar-bar {
  margin: 0 !important;
  padding: 4px 14px !important;
  border-radius: 0 !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #111519 !important;
  min-height: 38px !important;
  flex-shrink: 0 !important;
  z-index: 1200 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.aviation-tabs-radar-bar button {
  min-height: 30px !important;
  padding: 0 14px !important;
  font-size: 11px !important;
  border-radius: 6px !important;
  color: #94a3b8 !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-weight: 700 !important;
}

.aviation-tabs-radar-bar button.active {
  background: #1e2632 !important;
  color: #FFCE00 !important;
  border-color: rgba(255, 206, 0, 0.35) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.aviation-tab-content-radar {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  position: relative !important;
}

.aviation-tab-content-radar .fr24-single-screen-radar {
  height: 100% !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 900px) {
  #page-container:has(.aviation-radar-active),
  .page-container:has(.aviation-radar-active) {
    padding-left: 0 !important;
    padding-right: 0 !important;
    padding-bottom: 0 !important;
    padding-top: var(--topbar, 56px) !important;
  }

  .aviation-page.aviation-radar-active {
    margin: -18px -16px calc(-82px - env(safe-area-inset-bottom)) !important;
    height: calc(100vh - var(--topbar, 56px)) !important;
    height: calc(100dvh - var(--topbar, 56px)) !important;
  }
}

/* ==========================================================================
   CLON EXACTO FLIGHTRADAR24: SINGLE-SCREEN RADAR & FLOATING DRAWER
   ========================================================================== */

.fr24-single-screen-radar {
  position: relative !important;
  width: 100% !important;
  height: calc(100vh - 64px) !important;
  min-height: 580px !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.fr24-map-canvas-container {
  position: relative !important;
  flex: 1 !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
}

#aviation-radar-map.fr24-fullscreen-map {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
}

/* --- LEFT FLOATING FLIGHT DRAWER FR24 --- */
.fr24-flight-drawer {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  width: 410px !important;
  max-width: 95vw !important;
  background: #181b1e !important;
  z-index: 1000 !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.55) !important;
  display: none;
  flex-direction: column !important;
  overflow-y: auto !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.fr24-flight-drawer.active {
  display: flex !important;
}

.fr24-drawer-container {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100% !important;
  background: #ffffff !important;
}

/* 1. Header oscuro */
.fr24-drawer-header {
  background: #1c2024 !important;
  padding: 12px 16px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fr24-drawer-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.fr24-title-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fr24-callsign-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: #FFCE00 !important;
  margin: 0 !important;
  line-height: 1 !important;
  letter-spacing: 0.5px !important;
}

.fr24-callsign-badges {
  display: flex !important;
  gap: 6px !important;
}

.fr24-pill-flight-num {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
}

.fr24-pill-model-code {
  background: #2d6898 !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
}

.fr24-header-tools {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.fr24-star-btn {
  background: transparent !important;
  border: none !important;
  color: #FFCE00 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 4px 6px !important;
}

.fr24-close-drawer-btn {
  background: transparent !important;
  border: none !important;
  color: #a1a1aa !important;
  font-size: 20px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  transition: color 0.15s !important;
}

.fr24-close-drawer-btn:hover {
  color: #ffffff !important;
}

.fr24-airline-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-top: 6px !important;
}

.fr24-airline-name {
  font-size: 12px !important;
  color: #e4e4e7 !important;
  font-weight: 600 !important;
}

.fr24-brand-submark {
  font-size: 11px !important;
  color: #71717a !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

/* 2. Foto real panorámica */
.fr24-drawer-photo-wrap {
  position: relative !important;
  width: 100% !important;
  height: 220px !important;
  min-height: 220px !important;
  max-height: 220px !important;
  flex-shrink: 0 !important;
  background: #090b0d !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

.fr24-drawer-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

.fr24-photo-spotter-credit {
  position: absolute !important;
  bottom: 8px !important;
  left: 10px !important;
  font-size: 11px !important;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95) !important;
  font-weight: 500 !important;
}

.fr24-photo-carousel-dots {
  position: absolute !important;
  bottom: 8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  gap: 5px !important;
}

.fr24-photo-carousel-dots .dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.4) !important;
}

.fr24-photo-carousel-dots .dot.active {
  background: #FFCE00 !important;
}

.fr24-photo-expand-btn {
  position: absolute !important;
  bottom: 6px !important;
  right: 8px !important;
  background: rgba(0, 0, 0, 0.6) !important;
  border: none !important;
  color: #ffffff !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 4px !important;
  font-size: 13px !important;
  cursor: pointer !important;
}

/* 3. Tarjeta de ruta blanca FR24 */
.fr24-route-card-white {
  background: #ffffff !important;
  color: #181b1e !important;
  padding: 14px 16px !important;
  margin: 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
}

.fr24-route-airports-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-align: center !important;
}

.fr24-route-col {
  flex: 1 !important;
}

.fr24-route-col.origin {
  text-align: left !important;
}

.fr24-route-col.dest {
  text-align: right !important;
}

.fr24-route-iata {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 32px !important;
  font-weight: 900 !important;
  color: #111827 !important;
  letter-spacing: -0.5px !important;
  line-height: 1 !important;
}

.fr24-route-city {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #374151 !important;
  margin-top: 3px !important;
  text-transform: uppercase !important;
}

.fr24-route-tz {
  font-size: 10px !important;
  color: #9ca3af !important;
  margin-top: 1px !important;
}

.fr24-route-center-plane {
  padding: 0 10px !important;
}

.fr24-plane-circle-gold {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #FFCE00 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 2px 8px rgba(255, 206, 0, 0.45) !important;
}

/* Horarios */
.fr24-schedule-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 14px !important;
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px solid #f3f4f6 !important;
}

.fr24-sched-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  font-size: 11px !important;
  padding: 3px 0 !important;
}

.fr24-sched-row .lbl {
  color: #6b7280 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.3px !important;
}

.fr24-sched-row .val {
  color: #111827 !important;
  font-weight: 600 !important;
}

.fr24-sched-row .val.bold {
  font-weight: 800 !important;
  font-size: 12px !important;
}

.estimated-green {
  color: #16a34a !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.green-dot {
  color: #16a34a !important;
  font-size: 10px !important;
}

/* Barra de progreso con avión */
.fr24-route-progress-wrap {
  margin-top: 14px !important;
  position: relative !important;
}

.fr24-route-progress-track {
  position: relative !important;
  height: 4px !important;
  background: #e5e7eb !important;
  border-radius: 2px !important;
}

.fr24-route-progress-bar {
  height: 100% !important;
  background: #FFCE00 !important;
  border-radius: 2px !important;
}

.fr24-route-plane-marker {
  position: absolute !important;
  top: -6px !important;
  transform: translateX(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.fr24-route-progress-sub {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 10px !important;
  color: #6b7280 !important;
  font-weight: 600 !important;
  margin-top: 6px !important;
}

/* 4. Telemetría y detalles adicionales */
.fr24-drawer-more-details {
  background: #14171a !important;
  padding: 12px 16px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fr24-details-block {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px !important;
}

.fr24-detail-item {
  display: flex !important;
  flex-direction: column !important;
}

.fr24-detail-item small {
  color: #71717a !important;
  font-size: 10px !important;
}

.fr24-detail-item strong {
  color: #f4f4f5 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

/* 5. Botonera inferior de 5 botones oscuros */
.fr24-drawer-bottom-bar {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  background: #14171a !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 8px 4px !important;
  margin-top: auto !important;
}

.fr24-drawer-action-btn {
  background: transparent !important;
  border: none !important;
  color: #d4d4d8 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 6px 2px !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: all 0.15s !important;
}

.fr24-drawer-action-btn:hover,
.fr24-drawer-action-btn.active {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #FFCE00 !important;
}

.fr24-drawer-action-btn .btn-icon {
  font-size: 16px !important;
  line-height: 1 !important;
}

/* --- CONTROLES DERECHOS DEL MAPA Y BOTÓN GPS --- */
.fr24-right-map-controls {
  position: absolute !important;
  top: 80px !important;
  right: 14px !important;
  z-index: 900 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.fr24-ctrl-btn {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #1c2024 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
  transition: all 0.2s ease !important;
}

.fr24-ctrl-btn:hover {
  background: #2a2f35 !important;
  transform: scale(1.05) !important;
}

.fr24-gps-btn {
  border-color: #FFCE00 !important;
}

.fr24-gps-btn:hover {
  background: #2b2716 !important;
  border-color: #ffd633 !important;
}

/* --- DOCK FLOTANTE INFERIOR PILL (DARK PILL DOCK) --- */
.fr24-bottom-dock {
  position: absolute !important;
  bottom: 16px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 900 !important;
  background: rgba(20, 24, 28, 0.92) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 36px !important;
  padding: 4px 10px !important;
  display: flex !important;
  gap: 6px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45) !important;
}

.fr24-dock-pill-btn {
  background: transparent !important;
  border: none !important;
  color: #e4e4e7 !important;
  padding: 8px 14px !important;
  border-radius: 24px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 2px !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
}

.fr24-dock-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

.fr24-dock-pill-btn.active {
  background: rgba(255, 206, 0, 0.15) !important;
  color: #FFCE00 !important;
}

.fr24-dock-pill-btn.active-gold {
  background: #FFCE00 !important;
  color: #181b1e !important;
  font-weight: 700 !important;
}

.fr24-dock-pill-btn .icon {
  font-size: 16px !important;
}

/* --- ETIQUETA SPEECH BUBBLE BLANCA FLOTANTE SOBRE AVIÓN SELECCIONADO (IDÉNTICA A CAPTURA REAL) --- */
.fr24-selected-callsign-tag {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #ffffff !important;
  color: #0f172a !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
  white-space: nowrap !important;
  pointer-events: none !important;
  z-index: 1000 !important;
  line-height: 1.2 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.fr24-selected-callsign-tag::after {
  content: '' !important;
  position: absolute !important;
  top: 100% !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  border-width: 6px !important;
  border-style: solid !important;
  border-color: #ffffff transparent transparent transparent !important;
}

/* --- PIN GPS DE UBICACIÓN DEL USUARIO --- */
.fr24-user-location-marker-shell {
  background: transparent !important;
  border: none !important;
}

.fr24-user-gps-pulse {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.gps-core-dot {
  width: 14px !important;
  height: 14px !important;
  background: #007aff !important;
  border: 2.5px solid #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
  z-index: 2 !important;
}

.gps-pulse-ring {
  position: absolute !important;
  width: 100% !important;
  height: 100% !important;
  border-radius: 50% !important;
  background: rgba(0, 122, 255, 0.35) !important;
  animation: fr24UserGpsPulse 2s infinite ease-out !important;
}

@keyframes fr24UserGpsPulse {
  0% { transform: scale(0.4); opacity: 0.95; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* --- MODAL FLOTA BOA OVERLAY --- */
.fr24-fleet-modal-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(6px) !important;
  z-index: 1200 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
}

.fr24-fleet-modal-box {
  background: #181b1e !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  width: 100% !important;
  max-width: 900px !important;
  max-height: 85vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.6) !important;
}

.fr24-fleet-modal-head {
  padding: 16px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.fr24-fleet-modal-head h3 {
  margin: 0 !important;
  color: #FFCE00 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

.fr24-fleet-modal-body {
  padding: 16px 20px !important;
  overflow-y: auto !important;
}

/* --- RESPONSIVE MOBILE (< 768px) --- */
@media (max-width: 768px) {
  .fr24-flight-drawer {
    width: 100% !important;
    max-width: 100% !important;
    height: min(52vh, 510px) !important;
    height: min(52dvh, 510px) !important;
    top: auto !important;
    bottom: 0 !important;
    border-radius: 18px 18px 0 0 !important;
    box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.6) !important;
  }

  .fr24-bottom-dock {
    bottom: 10px !important;
    padding: 3px 6px !important;
  }

  .fr24-dock-pill-btn {
    padding: 6px 10px !important;
    font-size: 10px !important;
  }

  .fr24-right-map-controls {
    top: 70px !important;
    right: 10px !important;
  }

  .fr24-ctrl-btn {
    width: 36px !important;
    height: 36px !important;
    font-size: 16px !important;
  }

  .fr24-floating-action-trio {
    bottom: 68px !important;
    left: 12px !important;
    gap: 8px !important;
  }

  /* Mantener más de la mitad del mapa visible aun con la ficha abierta. */
  .fr24-flight-drawer.active:not(.drawer-collapsed) ~ .fr24-floating-action-trio {
    left: 12px !important;
    bottom: calc(min(52dvh, 510px) + 12px) !important;
  }

  .fr24-circle-btn {
    width: 40px !important;
    height: 40px !important;
  }

  .fr24-side-widgets-stack {
    top: 50px !important;
    left: 8px !important;
    width: calc(100vw - 16px) !important;
  }
}

/* --- SELECTOR DE IDIOMA BILINGÜE [ ES | EN ] --- */
.fr24-lang-selector {
  display: inline-flex !important;
  align-items: center !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 9999px !important;
  padding: 2px !important;
  margin-right: 6px !important;
}

.fr24-lang-btn {
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.fr24-lang-btn:hover {
  color: #f1f5f9 !important;
}

.fr24-lang-btn.active {
  background: #FFCE00 !important;
  color: #0b1116 !important;
  box-shadow: 0 2px 6px rgba(255, 206, 0, 0.4) !important;
}

/* --- TRÍO DE CONTROLES FLOTANTES FR24 (media_1789174305480.png) --- */
.fr24-floating-action-trio {
  position: absolute !important;
  bottom: 82px !important;
  left: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 1050 !important;
  pointer-events: auto !important;
  transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1), bottom 0.28s ease !important;
}

/* Cuando el panel de vuelo lateral izquierdo está activo en desktop, mover el trío a la derecha del panel */
.fr24-flight-drawer.active:not(.drawer-collapsed) ~ .fr24-floating-action-trio {
  left: 426px !important;
  bottom: 82px !important;
}

.fr24-circle-btn {
  position: relative !important;
  width: 46px !important;
  height: 46px !important;
  border-radius: 50% !important;
  background: #393a3d !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5) !important;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease !important;
}

.fr24-circle-btn:hover {
  transform: scale(1.08) !important;
  background: #4a4b4f !important;
  border-color: #FFCE00 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65) !important;
}

.fr24-circle-btn:active {
  transform: scale(0.96) !important;
}

.fr24-circle-btn.active-collapsed {
  background: #FFCE00 !important;
  color: #0b1116 !important;
  border-color: #ffd600 !important;
}

.fr24-mini-lock-badge {
  position: absolute !important;
  bottom: 3px !important;
  right: 3px !important;
  font-size: 10px !important;
  line-height: 1 !important;
}

/* --- DRAWER COLAPSADO (DESPEJA EL MAPA) --- */
.fr24-flight-drawer.drawer-collapsed {
  transform: translateX(-105%) !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

/* --- PILA DE WIDGETS LATERALES (media_1789176325406.png) --- */
.fr24-side-widgets-stack {
  position: absolute !important;
  top: 14px !important;
  left: 14px !important;
  width: 320px !important;
  max-width: calc(100vw - 28px) !important;
  max-height: calc(100% - 100px) !important;
  display: none;
  flex-direction: column !important;
  gap: 10px !important;
  z-index: 1200 !important;
  overflow-y: auto !important;
  pointer-events: auto !important;
}

.fr24-side-widgets-stack.visible {
  display: flex !important;
}

.fr24-side-widget-card {
  background: rgba(30, 32, 35, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5) !important;
  color: #f1f5f9 !important;
}

.fr24-widget-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fr24-widget-header .title-with-badge {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.fr24-widget-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
}

.fr24-live-pill-mini {
  background: #f97316 !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  letter-spacing: 0.5px !important;
}

.fr24-widget-info-btn, .fr24-widget-toggle-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  cursor: pointer !important;
  padding: 2px 6px !important;
}

.fr24-widget-toggle-btn:hover {
  color: #ffffff !important;
}

.fr24-most-tracked-container, .fr24-disruptions-container, .fr24-bookmarks-container {
  padding: 6px 0 !important;
}

.fr24-most-tracked-row {
  display: block !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  padding: 9px 14px !important;
  text-align: left !important;
  color: #e2e8f0 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.fr24-most-tracked-row:hover {
  background: rgba(255, 255, 255, 0.07) !important;
}

.fr24-tracked-row-top {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
}

.fr24-tracked-rank {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  min-width: 16px !important;
}

.fr24-badge-sub {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  color: #cbd5e1 !important;
}

.fr24-badge-type {
  background: rgba(14, 165, 233, 0.2) !important;
  color: #38bdf8 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.fr24-tracked-viewers {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  font-size: 12px !important;
  color: #FFCE00 !important;
  font-weight: 700 !important;
}

.fr24-tracked-row-route {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 3px !important;
  padding-left: 20px !important;
  display: flex !important;
  align-items: center !important;
  gap: 5px !important;
}

.fr24-tracked-row-route .iata {
  background: rgba(255, 255, 255, 0.12) !important;
  padding: 0 4px !important;
  border-radius: 3px !important;
  font-weight: 700 !important;
  color: #f1f5f9 !important;
}

.fr24-disruption-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 9px 14px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.fr24-disruption-row:hover {
  background: rgba(255, 255, 255, 0.07) !important;
}

.disrupt-name-row {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
}

.apt-iata-badge {
  background: rgba(255, 255, 255, 0.12) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
}

.disrupt-weather-row {
  font-size: 11px !important;
  color: #94a3b8 !important;
  margin-top: 2px !important;
}

.fr24-disrupt-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
  font-size: 12px !important;
}

.disrupt-stat-line {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.fr24-disruption-footer {
  padding: 8px 14px !important;
  text-align: right !important;
}

.fr24-disruption-link {
  background: transparent !important;
  border: none !important;
  color: #38bdf8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
}

.fr24-disruption-link:hover {
  text-decoration: underline !important;
}

.fr24-bookmarks-chips {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  padding: 8px 14px !important;
}

.fr24-bookmark-chip {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  font-size: 11px !important;
  cursor: pointer !important;
}

.fr24-bookmark-chip:hover {
  background: rgba(255, 206, 0, 0.18) !important;
  border-color: #FFCE00 !important;
  color: #FFCE00 !important;
}

/* --- TELEMETRÍA EXTENDIDA Y BOTÓN BANNER TOGGLE --- */
.fr24-toggle-specs-banner-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 16px !important;
  background: #23272b !important;
  border: none !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #FFCE00 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.fr24-toggle-specs-banner-btn:hover {
  background: #2d3237 !important;
}

.fr24-specs-section-title {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.6px !important;
  color: #94a3b8 !important;
  margin-bottom: 8px !important;
  text-transform: uppercase !important;
}

.fr24-telemetry-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 8px !important;
}

.fr24-metric-card {
  background: #23272b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  display: flex !important;
  flex-direction: column !important;
}

.fr24-metric-card .m-lbl {
  font-size: 10px !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

.fr24-metric-card .m-val {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #f8fafc !important;
  margin: 2px 0 !important;
}

.fr24-metric-card .m-val.alt-gold {
  color: #FFCE00 !important;
}

.fr24-metric-card .m-val.spd-cyan {
  color: #38bdf8 !important;
}

.fr24-metric-card .m-val.climbing {
  color: #4ade80 !important;
}

.fr24-metric-card .m-val.descending {
  color: #f87171 !important;
}

.fr24-metric-card .m-val.level {
  color: #60a5fa !important;
}

.fr24-metric-card .m-sub {
  font-size: 10px !important;
  color: #64748b !important;
}

.fr24-atmosphere-card {
  background: #23272b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.fr24-atmo-row {
  display: flex !important;
  align-items: center !important;
  font-size: 12px !important;
  gap: 8px !important;
}

.fr24-atmo-row .lbl {
  color: #94a3b8 !important;
}

.fr24-atmo-row .val {
  color: #f1f5f9 !important;
  margin-left: auto !important;
}

/* --- MENÚ EMERGENTE METEOROLÓGICO Y ESPACIO AÉREO (#fr24-weather-menu) --- */
.fr24-weather-popup-menu {
  position: absolute !important;
  bottom: 70px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 280px !important;
  background: rgba(24, 27, 30, 0.96) !important;
  backdrop-filter: blur(18px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.65) !important;
  padding: 8px 0 !important;
  z-index: 1050 !important;
}

.fr24-lightning-bolt {
  font-size: 20px !important;
  color: #ffd600 !important;
  text-shadow: 0 0 8px rgba(255, 214, 0, 0.8) !important;
  animation: lightningFlash 1.4s infinite !important;
}

@keyframes lightningFlash {
  0%, 85%, 100% { opacity: 0.15; transform: scale(0.9); }
  88%, 93% { opacity: 1; transform: scale(1.2); }
}

/* ==========================================================================
   FLIGHTRADAR24 CLONE: DRAWER ACTIONS BAR, SETTINGS MODAL & MAP ENHANCEMENTS
   ========================================================================== */

/* 1. Barra de Acciones del Drawer (3D view, Route, Follow, Share, More) */
.fr24-drawer-actions-bar {
  display: flex !important;
  background: #181b1e !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 8px 10px !important;
  justify-content: space-around !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  z-index: 5 !important;
}

.fr24-action-btn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 3px !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  padding: 6px 8px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.fr24-action-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.08) !important;
}

.fr24-action-btn.active {
  color: #FFCE00 !important;
  background: rgba(255, 206, 0, 0.12) !important;
}

.fr24-action-btn .btn-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 24px !important;
  height: 24px !important;
}

.fr24-action-btn .btn-lbl {
  line-height: 1 !important;
}

/* 2. Brillo Dinámico de Mapas */
#aviation-radar-map .leaflet-tile-pane {
  filter: brightness(var(--map-brightness, 1)) !important;
  transition: filter 0.2s ease !important;
}

/* 3. Ocultar Banners Molestos en Radar para 100% Pantalla Inmersiva */
.fr24-single-screen-radar .aviation-safety-banner,
.fr24-single-screen-radar .aviation-inline-error,
.fr24-single-screen-radar .tool-usage-guide,
body:has(.fr24-single-screen-radar) .privacy-consent,
body:has(.fr24-single-screen-radar) .privacy-banner,
body:has(.fr24-single-screen-radar) #privacy-consent-banner {
  display: none !important;
}

/* 4. Modal Oficial de Configuración Flightradar24 (Settings) */
.fr24-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.78) !important;
  backdrop-filter: blur(6px) !important;
  z-index: 60000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  animation: fr24FadeIn 0.2s ease-out !important;
}

@keyframes fr24FadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fr24-settings-modal-dialog {
  background: #181b1e !important;
  color: #f1f5f9 !important;
  border-radius: 16px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85) !important;
  width: 580px !important;
  max-width: 95vw !important;
  max-height: 88vh !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: fr24SlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes fr24SlideUp {
  from { transform: translateY(20px) scale(0.97); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

.fr24-settings-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  background: #1c2024 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fr24-settings-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.fr24-settings-icon {
  font-size: 20px !important;
}

.fr24-settings-title {
  margin: 0 !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.3px !important;
}

.fr24-settings-close-btn {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}

.fr24-settings-close-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Tabs */
.fr24-settings-tabs {
  display: flex !important;
  background: #14171a !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 12px !important;
  overflow-x: auto !important;
  scrollbar-width: none !important;
}

.fr24-settings-tabs::-webkit-scrollbar {
  display: none !important;
}

.fr24-settings-tab {
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  padding: 12px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  border-bottom: 2.5px solid transparent !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.fr24-settings-tab:hover {
  color: #f1f5f9 !important;
}

.fr24-settings-tab.active {
  color: #FFCE00 !important;
  border-bottom-color: #FFCE00 !important;
}

/* Body */
.fr24-settings-body {
  padding: 20px !important;
  overflow-y: auto !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 20px !important;
}

.fr24-settings-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.fr24-group-title {
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: #94a3b8 !important;
}

.fr24-group-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.fr24-range-val {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #FFCE00 !important;
}

/* Grilla de Estilos de Mapa */
.fr24-map-style-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)) !important;
  gap: 10px !important;
}

.fr24-style-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 6px !important;
  background: #202429 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: #cbd5e1 !important;
}

.fr24-style-card:hover {
  border-color: rgba(255, 255, 255, 0.25) !important;
  background: #252a30 !important;
}

.fr24-style-card.active {
  border-color: #FFCE00 !important;
  background: rgba(255, 206, 0, 0.1) !important;
  color: #FFCE00 !important;
}

.style-swatch {
  width: 100% !important;
  height: 42px !important;
  border-radius: 6px !important;
  display: block !important;
}

.swatch-dark { background: #12161a !important; border: 1px solid #2d3748 !important; }
.swatch-terrain { background: linear-gradient(135deg, #2d5a27 0%, #a3824c 100%) !important; }
.swatch-satellite { background: linear-gradient(135deg, #1b3a24 0%, #102a43 100%) !important; }
.swatch-silver { background: #e2e8f0 !important; }
.swatch-osm { background: #fef08a !important; }

.style-name {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-align: center !important;
  line-height: 1.2 !important;
}

/* Switches iOS */
.fr24-setting-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  background: #202429 !important;
  border-radius: 10px !important;
  gap: 12px !important;
}

.fr24-setting-info {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.fr24-setting-info strong {
  font-size: 13px !important;
  color: #f8fafc !important;
}

.fr24-setting-info small {
  font-size: 11px !important;
  color: #94a3b8 !important;
  line-height: 1.3 !important;
}

.fr24-ios-switch {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.fr24-ios-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.fr24-ios-switch .slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important; left: 0 !important; right: 0 !important; bottom: 0 !important;
  background-color: #334155 !important;
  transition: 0.25s !important;
  border-radius: 24px !important;
}

.fr24-ios-switch .slider:before {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 3px !important;
  bottom: 3px !important;
  background-color: #ffffff !important;
  transition: 0.25s !important;
  border-radius: 50% !important;
}

.fr24-ios-switch input:checked + .slider {
  background-color: #10b981 !important;
}

.fr24-ios-switch input:checked + .slider:before {
  transform: translateX(20px) !important;
}

/* Sliders */
.fr24-slider {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  height: 6px !important;
  border-radius: 3px !important;
  background: #334155 !important;
  outline: none !important;
}

.fr24-slider::-webkit-slider-thumb {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #FFCE00 !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
}

/* Opciones Pills */
.fr24-pill-options {
  display: flex !important;
  gap: 8px !important;
}

.fr24-pill-options.wrap {
  flex-wrap: wrap !important;
}

.fr24-opt-pill {
  padding: 8px 12px !important;
  background: #202429 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.fr24-opt-pill:hover {
  background: #282e35 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.fr24-opt-pill.active {
  background: #FFCE00 !important;
  color: #0f172a !important;
  border-color: #FFCE00 !important;
  font-weight: 700 !important;
}

/* Footer */
.fr24-settings-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important;
  background: #1c2024 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.fr24-settings-ver {
  font-size: 11px !important;
  color: #64748b !important;
}

/* Responsive modal en móviles */
@media (max-width: 600px) {
  .fr24-settings-modal-dialog {
    width: 100% !important;
    max-height: 90vh !important;
    border-radius: 14px !important;
  }
  .fr24-map-style-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* RADAR MOBILE FINAL OVERRIDES - keep this block at EOF. */
@media (max-width: 900px) {
  .app-shell.sidebar-collapsed #page-container:has(.aviation-radar-active),
  .app-shell.sidebar-collapsed .page-container:has(.aviation-radar-active),
  #page-container:has(.aviation-radar-active),
  .page-container:has(.aviation-radar-active) {
    width: 100% !important;
    max-width: none !important;
    padding: var(--topbar, 56px) 0 0 !important;
  }
  .aviation-page.aviation-radar-active {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 0 calc(-82px - env(safe-area-inset-bottom)) !important;
  }
  .aviation-tabs-radar-bar {
    width: 100% !important;
    min-height: 42px !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .aviation-tabs-radar-bar::-webkit-scrollbar { display: none; }
  .fr24-top-control-bar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(10, 20, 42, .94) !important;
    overflow: hidden !important;
  }
  .fr24-top-brand, .fr24-lang-selector { display: none !important; }
  .fr24-search-box {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 40px !important;
  }
  .fr24-search-input { min-width: 0 !important; font-size: 14px !important; }
  .fr24-quick-chips {
    grid-column: 1 / -1 !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    padding: 0 0 2px !important;
    scrollbar-width: none;
  }
  .fr24-quick-chips::-webkit-scrollbar { display: none; }
  .fr24-chip { min-height: 32px !important; padding: 5px 10px !important; }
  .fr24-dock-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .fr24-dock-actions::-webkit-scrollbar { display: none; }
  .fr24-dock-btn, .fr24-live-pill-btn { min-height: 34px !important; flex: 0 0 auto !important; }
  .fr24-map-canvas-container { min-height: 0 !important; }
  .fr24-bottom-dock {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(8px + env(safe-area-inset-bottom)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    overflow-x: auto !important;
    justify-content: space-around !important;
    scrollbar-width: none;
  }
  .fr24-bottom-dock::-webkit-scrollbar { display: none; }
  .fr24-dock-pill-btn { min-width: 58px !important; padding: 5px 7px !important; }
  .fr24-dock-pill-btn span:last-child { font-size: 8px !important; }
}

@media (max-width: 768px) {
  .fr24-flight-drawer {
    height: min(54dvh, 540px) !important;
    max-height: calc(100dvh - var(--topbar, 56px) - 42px) !important;
  }
  .fr24-drawer-container {
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    padding-bottom: env(safe-area-inset-bottom) !important;
  }
  .fr24-drawer-header { padding: 10px 14px !important; }
  .fr24-callsign-title { font-size: 22px !important; }
  .fr24-drawer-photo-wrap { height: 96px !important; min-height: 96px !important; max-height: 96px !important; }
  .fr24-photo-dots, .fr24-photo-nav { display: none !important; }
  .fr24-route-section { padding: 10px 14px !important; }
  .fr24-route-iata { font-size: 25px !important; }
  .fr24-route-city { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .fr24-drawer-actions-bar { display: none !important; }
  .fr24-drawer-bottom-bar { position: sticky !important; bottom: 0 !important; z-index: 15 !important; }
  .fr24-drawer-action-btn { min-width: 0 !important; padding: 8px 2px !important; font-size: 9px !important; }
  .fr24-flight-drawer.drawer-collapsed { transform: translateY(calc(100% - 58px)) !important; opacity: 1 !important; }
}
