/* Lot summary card: a coach ticket stub */
.itin-ticket { position: relative; align-self: start; }
.itin-ticket__name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 .75rem;
  word-break: break-word;
}
.itin-ticket table { width: 100%; height: auto; min-height: 0; margin-bottom: 1.5rem; }
.itin-ticket tbody tr { height: auto; }
.itin-ticket caption { text-align: left; color: var(--muted); font-size: .8rem; }
.itin-ticket th { color: var(--muted); font-weight: 500; text-align: left; padding-right: 1rem; }
.itin-ticket .note {
  margin-top: 1rem;
  padding-top: 16px;
  border-top: 2px dashed var(--border);
}

/* Cost splitter styled as an itinerary card */
.itin.tool { align-items: start; }
.itin .tool__result { border-left: 4px solid var(--brand); align-self: start; }
@media (min-width: 900px) {
  .itin .tool__result { position: sticky; top: 24px; }
}
.itin .tool__result-body { padding-bottom: 1rem; }
.itin .tool__result .note { margin-top: 1rem; }
.itin + .note { margin-top: 16px; }
.itin__dest { text-transform: none; letter-spacing: 0; }
.itin__stops li { position: relative; padding-left: 1.25rem; }
.itin__stops li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 8px; height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  background: var(--surface);
}
.itin__stops li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px; top: calc(50% + 6px);
  height: 100%;
  border-left: 2px dotted var(--border);
}
.itin__grand {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
  padding: .75rem 1rem;
  font-weight: 700;
  color: var(--ink);
  border-top: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}
.itin .field input { min-width: 64px; }

/* Buttons: let long labels wrap inside their box */
.btn {
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: center;
}

/* Affiliate buttons are secondary (outline) so the operator's own site stays primary */
.btn[rel~="sponsored"],
.btn[data-lg-event="affiliate_click"] {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: none;
}
.btn[rel~="sponsored"]:hover,
.btn[data-lg-event="affiliate_click"]:hover {
  background: transparent;
  color: var(--brand);
  text-decoration: underline;
}

/* Similar operators: show the full fact text on narrow screens */
.operator-row dd {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

/* Market chart */
.mchart { width: 100%; height: auto; display: block; overflow: visible; }
.mchart .bar-base { fill: var(--border); }
.mchart .bar-fore { fill: var(--brand); }
.mchart__firm { fill: var(--ink); font-size: 14px; font-weight: 600; }
.mchart__scope { fill: var(--muted); font-size: 12px; }
.mchart__val { fill: var(--ink); font-size: 12px; }