/* Allegiant VA VATSIM modal map */

.ava-map-preview {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 16px;
  cursor: pointer;
  background:
    radial-gradient(circle at 25% 35%, rgba(255,122,0,.18), transparent 25%),
    radial-gradient(circle at 70% 55%, rgba(0,43,92,.16), transparent 30%),
    linear-gradient(135deg, #dcebf8, #cfe2f2);
  color: #002b5c;
  font-weight: 950;
  font-size: 15px;
  box-shadow: inset 0 0 0 1px rgba(0,43,92,.08);
}

.ava-map-preview span {
  background: rgba(3,18,42,.92);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
}

.ava-map-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  padding: 32px;
  background: rgba(3,18,42,.72);
  backdrop-filter: blur(8px);
}

.ava-map-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-map-modal-panel {
  width: min(1200px, 96vw);
  height: min(780px, 90vh);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}

.ava-map-modal-head {
  height: 86px;
  padding: 18px 22px;
  background: #002b5c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ava-map-modal-head h2 {
  margin: 0;
  font-size: 24px;
}

.ava-map-modal-head p {
  margin: 4px 0 0;
  opacity: .85;
  font-weight: 800;
}

.ava-map-modal-head button {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 32px;
  line-height: 1;
}

.ava-map-modal-canvas {
  flex: 1;
  min-height: 0;
}

.ava-modal-plane {
  background: transparent !important;
  border: 0 !important;
}

.ava-modal-plane span {
  display: block;
  color: #ff7a00;
  font-size: 28px;
  text-shadow: 0 4px 10px rgba(0,0,0,.45);
}

body.ava-map-modal-open {
  overflow: hidden;
}

.ava-map-link-btn {
  border: 0;
  background: transparent;
  color: #004f9e;
  font-weight: 900;
  cursor: pointer;
  font-size: 14px;
}

#avaMapPopup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  background: rgba(3,18,42,.72);
  backdrop-filter: blur(6px);
  padding: 28px;
}

#avaMapPopup.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-map-popup-panel {
  width: min(1200px, 96vw);
  height: min(780px, 90vh);
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}

.ava-map-popup-head {
  height: 72px;
  padding: 0 22px;
  background: #002b5c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ava-map-popup-head h2 {
  margin: 0;
  font-size: 22px;
}

.ava-map-popup-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.ava-map-popup-frame {
  flex: 1;
  width: 100%;
  border: 0;
}

#avaMapPopup {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  background: rgba(3,18,42,.75);
  padding: 40px;
}

#avaMapPopup.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-map-popup-panel {
  background: #fff;
  border-radius: 20px;
  padding: 30px;
  width: min(900px, 92vw);
  min-height: 420px;
}

#closeAvaMapPopup {
  float: right;
  font-size: 32px;
}

#avaVatsimModal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  background: rgba(3, 18, 42, .74);
  backdrop-filter: blur(8px);
  padding: 28px;
}

#avaVatsimModal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ava-vatsim-modal-panel {
  width: min(1200px, 96vw);
  height: min(780px, 90vh);
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
  display: flex;
  flex-direction: column;
}

.ava-vatsim-modal-head {
  height: 72px;
  padding: 0 22px;
  background: #002b5c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ava-vatsim-modal-head h2 {
  margin: 0;
  font-size: 22px;
}

.ava-vatsim-modal-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
  color: #fff;
  cursor: pointer;
  font-size: 30px;
}

.ava-vatsim-modal-frame {
  flex: 1;
  width: 100%;
  border: 0;
}
