.nav-icon--trips::before {
  inset: 5px 1px 1px;
  border: 1.3px solid currentColor;
  border-radius: 2px;
}

.nav-icon--trips::after {
  inset: 2px 5px auto;
  height: 4px;
  border: 1.3px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.trip-page {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.trip-search {
  padding: 16px 18px 13px;
  border: 1px solid #e5dfef;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 4px 14px #30214d08;
}

.trip-search:focus-within { border-color: #caafea; }
.trip-search label { display: inline-block; margin-bottom: 6px; font-size: 14px; font-weight: 660; }
.trip-search-row { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: end; gap: 12px; }

.trip-search textarea {
  width: 100%;
  min-width: 0;
  min-height: 55px;
  max-height: 190px;
  padding: 9px 11px;
  border: 1px solid #e4dfed;
  border-radius: 8px;
  background: #faf9fd;
  resize: vertical;
}

.trip-search textarea::placeholder { color: #777083; opacity: 1; }
.trip-search textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.trip-search-submit,
.trip-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 630;
}

.trip-search-submit { padding-inline: 13px; background: var(--accent); color: #fff; }
.trip-search-submit:hover { background: #5034b9; }
.trip-search-icon {
  position: relative;
  width: 11px;
  height: 11px;
  margin-inline-end: 2px;
  border: 1.4px solid currentColor;
  border-radius: 50%;
}
.trip-search-icon::after {
  position: absolute;
  inset: auto -3px -2px auto;
  width: 5px;
  height: 1.4px;
  border-radius: 1px;
  background: currentColor;
  transform: rotate(46deg);
  content: "";
}

.trip-example-options { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; margin-top: 10px; }
.trip-example-options > span { margin-inline-end: 3px; color: var(--muted); font-size: 11px; }
.trip-example-options button {
  padding: 3px 8px;
  border: 1px solid #ebe6f4;
  border-radius: 999px;
  background: #fbf9fe;
  color: #604e85;
  font-size: 11px;
}
.trip-example-options button:hover { background: #eee8fb; }

.trip-catalog { margin-top: 21px; }
.trip-catalog-header { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-bottom: 11px; }
.trip-catalog-header h2 { font-size: 17px; font-weight: 690; }
.trip-catalog-header p { margin-top: 1px; color: var(--muted); font-size: 12px; }
.trip-reset {
  flex: 0 0 auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #5439b3;
  font-size: 12px;
  font-weight: 620;
}
.trip-reset:hover { text-decoration: underline; }

.trip-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.trip-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 3px 12px #2e214609;
}

.trip-poster {
  --poster-inset: 12px;
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 0;
  aspect-ratio: 9 / 16;
  padding: var(--poster-inset);
  overflow: hidden;
  background: #344459;
  color: #fff;
}
.trip-poster::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, #1217255c, transparent 19%);
  content: "";
}
.trip-poster-image { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-poster-top { display: flex; align-items: start; gap: 4px; }
.trip-poster-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 5px;
  min-height: 23px;
  padding: 2px 7px 2px 3px;
  border: 1px solid #fff4;
  border-radius: 6px;
  background: #151d2dbc;
  backdrop-filter: blur(7px);
  font-size: 11px;
  font-weight: 640;
  line-height: 1.2;
  white-space: nowrap;
}
.trip-poster-brand img { border-radius: 4px; }
.trip-days { flex: none; font-variant-numeric: tabular-nums; }
.trip-supply-tags { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 5px; }
.trip-supply-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  padding: 3px 5px;
  border: 1px solid #fff5;
  border-radius: 6px;
  background: #1822339e;
  backdrop-filter: blur(9px);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.trip-supplier-type { flex: none; color: #eee9ff; font-weight: 520; }
.trip-supplier-name { min-width: 0; overflow: hidden; font-weight: 660; text-overflow: ellipsis; }
.trip-poster-top .trip-supply-tag {
  align-items: center;
  min-height: 23px;
  margin-inline-start: auto;
  background: #151d2dbc;
}
.trip-poster-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  text-shadow: 0 1px 5px #080d1bd9;
}
.trip-poster-copy::before {
  position: absolute;
  z-index: -1;
  inset: -56px calc(-1 * var(--poster-inset)) calc(-1 * var(--poster-inset));
  background: linear-gradient(180deg, transparent, #101727b8 56px, #101727ee);
  content: "";
}
.trip-eyebrow {
  color: #eeeafb;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .105em;
}
.trip-card-title {
  margin: 0;
  font: 700 clamp(22px, 2vw, 27px)/1.18 "Songti SC", "Noto Serif SC", serif;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.trip-lead { color: #fff; font-size: 12px; line-height: 1.5; }
.trip-region { color: #eeeafb; font-size: 11px; line-height: 1.35; }

.trip-card-body { padding: 9px 9px 10px; }
.trip-card-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
.trip-action { min-width: 0; background: #f6f4f9; color: #4e4562; border-color: #ede9f4; }
.trip-action:hover { background: #eeebf5; }
.trip-action[aria-expanded="true"] { background: #ede8f9; color: #5239a1; }
.trip-contact { background: #eee9fc; color: #5035a3; border-color: #e5dcfa; }
.trip-contact:hover { background: #e5dcfa; }
.trip-expand {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
  color: var(--label);
  font-size: 12px;
  line-height: 1.65;
}
.trip-highlights { display: grid; gap: 4px; padding-inline-start: 16px; list-style: disc; }
.trip-highlights li::marker { color: #856dc6; }
.trip-supplier-details { display: grid; gap: 4px; margin: 2px 0 0; padding-top: 9px; border-top: 1px solid var(--line); }
.trip-supplier-details > div { display: flex; align-items: baseline; gap: 7px; }
.trip-supplier-details dt { flex: none; color: var(--muted); }
.trip-supplier-details dd { margin: 0; font-weight: 620; overflow-wrap: anywhere; }

.trip-dialog {
  width: min(388px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 48px #29204342;
}
.trip-dialog::backdrop { background: #221c36a0; }
.trip-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 15px 10px 18px; border-bottom: 1px solid var(--line); }
.trip-dialog-header h2 { font-size: 16px; font-weight: 690; }
.trip-dialog-body { display: grid; justify-items: center; gap: 12px; padding: 17px 20px 20px; text-align: center; }
.trip-advisor h3 { margin: 0; font-size: 20px; }
.trip-advisor p, .trip-contact-note { color: var(--muted); font-size: 12px; }
.trip-contact-product { padding: 3px 9px; border-radius: 6px; background: #f5f1fc; color: #604e86; font-size: 12px; }
.trip-qr { display: grid; justify-items: center; gap: 6px; margin: 0; }
.trip-qr img { max-width: 100%; height: auto; padding: 2px; border: 1px solid var(--line); border-radius: 8px; image-rendering: pixelated; }
.trip-qr figcaption { color: #5d4b7d; font-size: 11px; }

@media (max-width: 1190px) {
  .trip-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 880px) {
  .trip-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .trip-search { padding: 12px 10px 11px; }
  .trip-search-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .trip-search-submit { justify-self: end; }
  .trip-results { gap: 12px; }
}

@media (max-width: 541px) {
  .trip-results { grid-template-columns: minmax(0, 310px); justify-content: center; }
}
