.routemap-popup-link {
  display: block;
}

@media screen and (min-width: 992px) {
  .routemap-wrapper {
    position: relative;
    overflow: visible;
    user-select: none;
    padding-top: 3%;
  }

  .routemap-wrapper * {
    user-select: none;
  }

  .routemap-wrapper .hide {
    display: none;
  }

  .svg-routemap {
    width: 100%;
    height: auto;
    background-color: transparent;
  }

  .routemap-map-wrapper {
    position: relative;
    transform: translateX(-12%);
    z-index: 3;
    pointer-events: none;
  }

  .routemap-content, .routemap-overlay-content {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .routemap-overlay-content * {
    pointer-events: all;
  }

  .routemap-content {
    z-index: 1;
  }

  .routemap-map-message {
    margin: 1em 0;
    font-size: 1.25em;
    text-align: center;
  }

  .routemap-map-message-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
  }

  .svg-routemap-state {
    fill: #d6e7f3;
    stroke-width: 1.5;
    stroke-opacity: 1;
    stroke: #ffffff;
  }

  .svg-flight-arc {
    stroke-linecap :round;
    stroke: #00869c;
    fill: none;
    stroke-width: 3;
  }

  .svg-flight-arc.seasonal {
    stroke: #7A9A01;
    stroke-dasharray: 10 10;
  }

  .svg-marker-circle {
    fill: #0b2449;
  }

  .svg-location-pin {
    stroke: #0b2449;
    stroke-width: 0;
    fill: #0b2449;
    transform: scale(12);
  }

  .routemap-label {
    position: absolute;
    line-height: 1;
    padding: 0;
    font-weight: 700;
    font-size: 0.75em;
    color: #0b2449;
    transform: translateY(35%);
    text-shadow: -1px -1px #d6e7f3, 1px 1px #d6e7f3, -1px 1px #d6e7f3, 1px -1px #d6e7f3;
    z-index: 50;
  }

  .routemap-popup {
    position: absolute;
    background-color: white;
    border: 1px solid black;
    border-radius: 3px;
    padding: 0.5em 1em;
    transform: translate(-50%, -10px);
    z-index: 150;
    text-align: center;
    font-size: 0.875em;
  }

  .routemap-popup:not(.show):not(.visible) {
    display: none;
  }

  .routemap-popup::before, .routemap-popup::after {
    content: '';
    position: absolute;
    left: 50%;
    border: 10px solid transparent;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .routemap-popup::before {
    border-top-color: black;
    top: calc(100% + 1px);
  }

  .routemap-popup::after {
    border-top-color: white;
    top: 100%;
  }

  .routemap-popup-title {
    font-weight: 700;
  }

  .routemap-popup-subtitle {
    font-size: 0.875em;
  }

  .routemap-popup-link {
    font-size: 2em;
    text-decoration: none;
  }

  .routemap-popup-link img {
    width: 175px;
    height: auto;
  }

  .routemap-popup-trigger {
    position: absolute;
    display: block;
    background-color: transparent;
    transform: translate(-50%, 50%);
    border-radius: 100%;
    cursor: pointer;
    z-index: 100;
  }

  .routemap-side-menu {
    position: absolute;
    right: 0;
    width: calc(24%);
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
  }

  .routemap-airline {
    display: block;
    font-size: 1.2em;
    padding: 1em 0.1em;
    margin: 4px 0;
    border: 1px solid #d8d8d8;
    border-left-width: 8px;
    border-radius: 4px;
    text-align: center;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
  }

  .routemap-airline-with-logo {
    padding: 5px;
  }

  .routemap-airline, .routemap-airline:hover {
    text-decoration: none;
    color: inherit;
  }

  .routemap-airline.active, .routemap-airline.active:hover {
    text-decoration: none;
    color: #cc3038;
    border-color: #cc3038;
  }
}

@media screen and (max-width: 1400px) {
  .routemap-wrapper {
    padding: 0 5rem;
  }
}

@media screen and (max-width: 991.98px) {
  .routemap-wrapper {
    padding: 0;
  }

  .routemap-content {
    display: none;
  }

  .svg-routemap {
    display: none;
  }

  .routemap-popup-trigger {
    display: none;
  }

  .routemap-popup-title {
    display: none;
  }

  .routemap-popup-subtitle {
    display: none;
  }

  .routemap-side-menu {
    display: none;
  }

  .routemap-overlay-content {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .routemap-overlay-content > * {
    flex: 1 1 50%;
    border: 1px solid black;
  }

  .routemap-label-cos {
    display: none;
  }
}
