/* Route map, boarding/drop-off cards, and map responsive tweaks */

.wk-te-trip-location-panel {
  margin: 0;
  padding: 18px 20px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 36, 61, 0.06);
}

.wk-te-trip-location-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wk-te-trip-location-head--return {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e2eaf3;
}

.wk-te-trip-location-head i {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #1b6dff;
  border-radius: 8px;
  background: #edf4ff;
  font-size: 17px;
}

.wk-te-trip-location-head h2 {
  margin: 0;
  color: #061d3a;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
}

.wk-te-trip-location-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border: 1px solid #dbe7f3;
  border-top: 0;
  border-radius: 0 0 9px 9px;
  overflow: hidden;
}

.wk-te-trip-location-grid article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 8px 10px;
  align-items: start;
  min-height: 160px;
  padding: 16px 14px;
  border: 0;
  background: #fff;
}

.wk-te-trip-location-grid article + article {
  border-left: 1px solid #dbe7f3;
}

.wk-te-trip-location-grid i {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #008f84;
  border-radius: 50%;
  background: #e9fbf8;
  font-size: 15px;
}

.wk-te-trip-location-grid span,
.wk-te-trip-location-grid strong {
  display: block;
}

.wk-te-trip-location-grid span {
  color: #008f84;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.wk-te-trip-location-grid strong {
  grid-column: 1 / -1;
  margin-top: 10px;
  color: #061d3a;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.wk-te-route-map {
  position: relative;
  width: 100%;
  height: 235px;
  border: 1px solid #cfe3f5;
  border-radius: 9px 9px 0 0;
  background: #eef6fb;
  overflow: hidden;
}

.wk-te-route-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.wk-te-route-map-large-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
  color: #1a73e8;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.wk-te-route-map-large-link:hover,
.wk-te-route-map-large-link:focus {
  color: #0b57d0;
  text-decoration: none;
}

.wk-te-route-map-badges {
  position: absolute;
  right: 8px;
  bottom: 40px;
  left: 8px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.wk-te-route-map-badges.is-reversed {
  flex-direction: row-reverse;
}

.wk-te-route-map-badge,
.wk-te-route-map-duration {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  color: #10243d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.wk-te-route-map-badge:before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: #0b8f86;
}

.wk-te-route-map-badge--dropoff:before {
  background: #e3342f;
}

.wk-te-route-map-duration {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  pointer-events: none;
}

.wk-te-route-map-duration i {
  margin-right: 5px;
  color: #0b8f86;
}

.wk-te-image-modal {
  position: fixed;
  z-index: 10090;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgba(6, 29, 58, 0.78);
}

.wk-te-image-modal.is-open {
  display: flex;
}

.wk-te-image-modal img {
  max-width: min(960px, 94vw);
  max-height: 88vh;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.35);
  object-fit: contain;
}

.wk-te-image-modal__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #061d3a;
  font-size: 28px;
  line-height: 1;
}

.wk-te-route-map + .wk-te-trip-location-grid {
  margin-bottom: 0;
}

.wk-te-route-map-pin {
  background: transparent;
  border: 0;
}

.wk-te-route-map-pin span {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #e3342f;
  box-shadow: 0 2px 6px rgba(31, 45, 61, 0.35);
  transform: rotate(-45deg);
}

.wk-te-route-map-pin span:after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
}

.wk-te-route-map-label {
  padding: 5px 10px;
  border: 1px solid rgba(120, 18, 18, 0.18);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(31, 45, 61, 0.22);
  color: #b42318;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.wk-te-route-map-label:before {
  display: none;
}

@media (max-width: 991px) {
  .wk-te-round-trip-summary > article.has-trip-image {
    grid-template-columns: 1fr;
  }

  .wk-te-round-trip-summary > article {
    padding: 20px;
  }

  .wk-te-round-trip-summary .wk-te-round-trip-content > h2,
  .wk-te-round-trip-summary > article > h2 {
    font-size: 28px;
  }

  .wk-te-round-trip-summary .wk-te-route-map {
    height: 240px;
  }

  .wk-te-round-trip-summary .wk-te-trip-location-grid article {
    grid-template-columns: 46px minmax(0, 1fr);
    min-height: 96px;
    padding: 16px;
  }

  .wk-te-round-trip-summary .wk-te-trip-location-grid i {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .wk-te-round-trip-summary .wk-te-trip-location-grid strong {
    font-size: 16px;
  }

  .wk-te-seat-detail-grid {
    grid-template-columns: 1fr;
  }

  .wk-te-trip-location-panel {
    padding: 16px;
  }

  .wk-te-route-map {
    height: 220px;
  }

  .wk-te-trip-location-grid {
    grid-template-columns: 1fr;
  }

  .wk-te-trip-location-grid article + article {
    border-left: 0;
    border-top: 1px solid #dbe7f3;
  }

  .wk-te-trip-location-grid article {
    min-height: 112px;
  }
}
