.trip-panel,
.trip-shortcuts {
  width: min(calc(100% - 2rem), 72rem);
  margin: 1rem auto;
  color: #102b3b;
}

.trip-panel {
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid #cfe1e5;
  background: #f4f9fa;
  border-radius: 1rem;
  scroll-margin-top: 9rem;
}

.trip-panel h2,
.trip-panel h3 {
  margin: 0 0 .75rem;
}

.trip-shortcuts,
.trip-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.15rem;
}

.trip-shortcuts a,
.trip-panel a {
  color: #075b61;
  font-weight: 650;
  text-underline-offset: .18em;
}

.trip-shortcuts a {
  padding: .45rem 0;
}

.trip-filters,
.trip-cards {
  display: grid;
  gap: .85rem;
}

.trip-filters {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
  margin-bottom: 1rem;
}

.trip-filters label {
  display: grid;
  gap: .3rem;
  font-weight: 650;
}

.trip-filters select,
.trip-primary,
.trip-button {
  min-height: 2.75rem;
  padding: .45rem .75rem;
  border-radius: .5rem;
  font: inherit;
}

.trip-filters select {
  width: 100%;
  background: #fff;
  color: inherit;
  border: 1px solid #64828b;
}

.trip-primary,
.trip-button {
  cursor: pointer;
  font-weight: 700;
}

.trip-primary {
  border: 1px solid #ad790d;
  color: #102b3b;
  background: #ffd36c;
}

.trip-button {
  border: 1px solid #08777c;
  color: #075b61;
  background: #fff;
}

.trip-button[aria-pressed="true"] {
  color: #fff;
  background: #075b61;
}

.trip-panel :focus-visible,
.trip-shortcuts :focus-visible {
  outline: 3px solid #0b6472;
  outline-offset: 3px;
}

.trip-filters[hidden],
.trip-cards[hidden],
.trip-card[hidden],
.trip-panel [hidden] {
  display: none;
}

.trip-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}

[data-trip-alternative-heading] {
  margin-top: 1rem;
}

.trip-compare-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trip-card {
  min-width: 0;
  padding: clamp(.7rem, 2vw, 1.1rem);
  border: 1px solid #cfe1e5;
  border-radius: .7rem;
  background: #fff;
  overflow-wrap: anywhere;
}

.trip-facts {
  margin: 0;
  display: grid;
  gap: .65rem;
}

.trip-practical .trip-facts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
}

.trip-facts dt {
  font-weight: 750;
}

.trip-facts dd {
  margin: 0;
}

.trip-map summary {
  min-height: 2.75rem;
  padding-block: .4rem;
  cursor: pointer;
  color: #075b61;
  font-weight: 650;
}

.trip-map figure {
  margin: 0;
}

.trip-map svg {
  display: block;
  width: 100%;
  border-radius: .4rem;
  background: #e5f2f3 url("experience-map.svg") center / 100% 100%;
}

.trip-map polyline {
  fill: none;
  stroke: #075b61;
  stroke-width: 5;
}

.trip-map circle {
  fill: #075b61;
  stroke: #fff;
  stroke-width: 3;
}

.trip-map .trip-map-first {
  fill: #102b3b;
}

.trip-map figcaption {
  margin-top: .4rem;
  font-size: .875rem;
}

.trip-saved-group:not(:first-child) {
  margin-bottom: 1.25rem;
}

.trip-saved-group li {
  margin-bottom: .75rem;
  padding: .65rem 0;
}

.trip-saved-group li .trip-button {
  margin-inline-start: .5rem;
}

.trip-saved-group .trip-facts {
  margin: .5rem 0;
}

.trip-feedback {
  color: #7c2020;
}

@media (max-width: 34rem) {
  .trip-compare-cards {
    gap: .4rem;
  }

  .trip-compare-cards .trip-card {
    padding: .55rem;
  }

  .trip-compare-cards .trip-actions {
    gap: .25rem;
  }
}

@media print {
  body:has([data-trip-saved]) > :not(main),
  body:has([data-trip-saved]) .trip-shortcuts,
  [data-trip-saved] button,
  [data-trip-saved] .trip-feedback {
    display: none !important;
  }

  [data-trip-saved] {
    width: 100%;
    margin: 0;
    padding: 0;
    color: #000;
    background: #fff;
    border: 0;
  }

  [data-trip-saved] a {
    color: #000;
  }

  .trip-saved-group li {
    break-inside: avoid;
  }
}
