/* Exact product itinerary clone. Loaded after theme.css on itinerary detail pages. */
.sx-reference-product .sx-reference-itinerary.sx-reference-section {
  width: min(1152px, calc(100% - 48px));
  min-width: 0;
  display: block;
  margin-inline: auto;
  padding: 94px 0 112px;
  scroll-margin-top: 51px;
}

.sx-reference-product .sx-reference-itinerary > .sx-reference-kicker {
  margin: 0;
  color: var(--sx-product-muted, #666);
  font-size: 16px;
  font-weight: 400;
  line-height: 20.8px;
  text-align: center;
}

.sx-reference-product .sx-reference-itinerary > h2 {
  max-width: 1152px;
  margin: 0 auto;
  color: var(--sx-product-ink, #000);
  font-size: 35px;
  font-weight: 700;
  line-height: 45.5px;
  text-align: center;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-day-tabs {
  width: fit-content;
  max-width: min(852px, 100%);
  min-height: 42px;
  display: flex;
  justify-content: flex-start;
  margin: 30px auto;
  padding: 0;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8e8ed;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sx-reference-product .sx-reference-day-tabs::-webkit-scrollbar {
  display: none;
}

.sx-reference-product .sx-reference-day-tabs button {
  width: 142px;
  min-width: 142px;
  min-height: 42px;
  position: relative;
  flex: 0 0 142px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  scroll-snap-align: center;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease;
}

.sx-reference-product .sx-reference-day-tabs button::before {
  content: "+";
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
}

.sx-reference-product .sx-reference-day-tabs button::after {
  display: none;
  content: none;
}

.sx-reference-product .sx-reference-day-tabs button:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.55);
}

.sx-reference-product .sx-reference-day-tabs button.is-active,
.sx-reference-product .sx-reference-day-tabs button[aria-selected="true"] {
  background: #1d1d1f;
  color: #fff;
  cursor: default;
}

.sx-reference-product .sx-reference-day-tabs button:focus-visible {
  z-index: 2;
  outline-color: var(--sx-product-blue, #2c7cc2);
  outline-offset: -3px;
}

.sx-reference-product .sx-reference-day-label-mobile {
  display: none;
}

.sx-reference-product .sx-reference-day-rail,
.sx-reference-product .sx-reference-mobile-day-stack,
.sx-reference-product .sx-reference-day-detail-service {
  display: none;
}

.sx-reference-product .sx-reference-itinerary-layout {
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 736px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #f5f5f5;
}

.sx-reference-product .sx-reference-itinerary-layout[hidden] {
  display: none !important;
}

.sx-reference-product .sx-reference-day-story {
  min-width: 0;
  position: static;
  align-self: stretch;
  padding: 21px 52px 54px 12px;
}

.sx-reference-product .sx-reference-day-images {
  width: min(335px, 100%);
  height: auto;
  aspect-ratio: 335 / 217;
  display: flex;
  gap: 0;
  margin: 0 0 28px;
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  background: #e8e8ed;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.sx-reference-product .sx-reference-day-images::-webkit-scrollbar {
  display: none;
}

.sx-reference-product .sx-reference-day-images.images-0 {
  display: none;
}

.sx-reference-product .sx-reference-day-images img,
.sx-reference-product .sx-reference-day-images img:first-child,
.sx-reference-product .sx-reference-day-images.images-1 img:first-child,
.sx-reference-product .sx-reference-day-images.images-2 img:first-child,
.sx-reference-product .sx-reference-day-images.images-3 img:first-child,
.sx-reference-product .sx-reference-day-images.images-4 img:first-child {
  width: 100%;
  height: 100%;
  min-width: 100%;
  flex: 0 0 100%;
  display: block;
  grid-row: auto;
  object-fit: cover;
  scroll-snap-align: start;
}

.sx-reference-product .sx-reference-day-story > p {
  margin: 0 0 8px;
  color: var(--sx-product-blue, #2c7cc2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-day-story > h3 {
  max-width: 480px;
  margin: 0;
  color: var(--sx-product-ink, #000);
  font-family: var(--sx-sans, "PingFang SC", "Microsoft YaHei", sans-serif);
  font-size: 35px;
  font-weight: 700;
  line-height: 1;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-day-story > h4 {
  max-width: 480px;
  margin: 14px 0 0;
  color: var(--sx-product-muted, #666);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-day-story > h5 {
  margin: 56px 0 9px;
  color: var(--sx-product-ink, #000);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.sx-reference-product .sx-reference-day-story > ul {
  max-width: 480px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  border: 0;
  list-style: none;
}

.sx-reference-product .sx-reference-day-story > ul li {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 5px 0;
  border: 0;
  color: var(--sx-product-text, #272727);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-day-story > ul .sx-icon {
  width: 26px;
  height: 26px;
  color: var(--sx-product-text, #272727);
}

.sx-reference-product .sx-reference-timeline {
  min-width: 0;
  position: relative;
  padding: 31px 28px 52px 25px;
  overflow: visible;
  border: 0;
  border-left: 1px solid var(--sx-product-line, #d1d1d1);
  background: transparent;
}

.sx-reference-product .sx-reference-timeline::before {
  content: "";
  width: 1px;
  position: absolute;
  top: 58px;
  bottom: 88px;
  left: 46px;
  background: var(--sx-product-line, #d1d1d1);
}

.sx-reference-product .sx-reference-timeline > header {
  display: grid;
  gap: 0;
  margin: 0 0 28px 3px;
}

.sx-reference-product .sx-reference-timeline > header span {
  color: var(--sx-product-blue, #2c7cc2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.sx-reference-product .sx-reference-timeline > header strong {
  display: none;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card {
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 35px;
  margin: 0;
  padding: 0 0 31px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: var(--sx-sans, "PingFang SC", "Microsoft YaHei", sans-serif);
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__icon {
  width: 44px;
  height: 44px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: #f5f5f5;
  color: #272727;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__icon .sx-icon {
  width: 23px;
  height: 23px;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card--flight .sx-itinerary-card__icon {
  color: var(--sx-product-blue, #2c7cc2);
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card--meal .sx-itinerary-card__icon {
  color: var(--sx-product-orange, #f37021);
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__body,
.sx-reference-product .sx-reference-timeline .sx-place-entry__body {
  min-width: 0;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__body {
  padding-top: 3px;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 7px;
  color: var(--sx-product-ink, #000);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__meta span,
.sx-reference-product .sx-reference-timeline .sx-itinerary-card__meta time {
  min-width: 0;
  color: inherit;
  font: inherit;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-meta,
.sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-title,
.sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-facts {
  display: none;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__meta time::after {
  content: " \00b7";
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__heading {
  min-width: 0;
  display: block;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card h4 {
  margin: 4px 0 0;
  color: var(--sx-product-ink, #000);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-itinerary-card__mobile-detail {
  display: none;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-card__body > p,
.sx-reference-product .sx-reference-timeline .sx-itinerary-entry p {
  margin: 5px 0 0;
  color: var(--sx-product-muted, #666);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 0;
  border-block: 1px solid #dedede;
  background: transparent;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-route > div {
  min-width: 0;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-route > div:last-child {
  text-align: right;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-route span,
.sx-reference-product .sx-reference-timeline .sx-itinerary-entry small {
  display: block;
  color: var(--sx-product-muted, #666);
  font-size: 11px;
  line-height: 1.35;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-route strong,
.sx-reference-product .sx-reference-timeline .sx-itinerary-entry strong {
  display: block;
  margin-top: 3px;
  color: var(--sx-product-ink, #000);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-route .sx-icon {
  width: 18px;
  height: 18px;
  justify-self: center;
  color: var(--sx-product-blue, #2c7cc2);
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entries {
  min-width: 0;
  display: grid;
  gap: 0;
  margin-top: 11px;
  border: 0;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements {
  margin-top: 11px;
  padding: 17px 32px 19px;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry {
  min-width: 0;
  padding: 9px 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements .sx-itinerary-entry {
  padding: 0;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements .sx-itinerary-entry small {
  color: var(--sx-product-ink, #000);
  font-size: 14px;
  font-weight: 700;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements .sx-itinerary-entry + .sx-itinerary-entry {
  margin-top: 27px;
  padding-top: 0;
  border: 0;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry + .sx-itinerary-entry {
  margin-top: 8px;
  padding-top: 15px;
  border-top: 1px solid #e1e1e1;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.sx-reference-product .sx-reference-timeline .sx-place-entry.has-image {
  display: block;
}

/* Card images are promoted into the day story on desktop. */
.sx-reference-product .sx-reference-timeline .sx-place-entry figure {
  display: none;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__facts,
.sx-reference-product .sx-reference-timeline .sx-itinerary-card__tags,
.sx-reference-product .sx-reference-timeline .sx-place-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 6px;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__facts span,
.sx-reference-product .sx-reference-timeline .sx-itinerary-card__tags span,
.sx-reference-product .sx-reference-timeline .sx-place-tags span {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--sx-product-muted, #666);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__facts span + span::before,
.sx-reference-product .sx-reference-timeline .sx-itinerary-card__tags span + span::before,
.sx-reference-product .sx-reference-timeline .sx-place-tags span + span::before {
  margin-right: 10px;
  color: #999;
  content: "\00b7";
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details,
.sx-reference-product .sx-reference-timeline .card-detail-grid {
  min-width: 0;
  display: grid;
  margin: 7px 0 0;
  border: 0;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details > div,
.sx-reference-product .sx-reference-timeline .card-detail-grid > div {
  min-width: 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 5px;
  padding: 1px 0;
  border: 0;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details dt,
.sx-reference-product .sx-reference-timeline .card-detail-grid dt,
.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details dd,
.sx-reference-product .sx-reference-timeline .card-detail-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--sx-product-ink, #000);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details dt::after,
.sx-reference-product .sx-reference-timeline .card-detail-grid dt::after {
  content: "：";
}

.sx-reference-product .sx-reference-timeline address {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 6px;
  color: var(--sx-product-muted, #666);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sx-reference-product .sx-reference-timeline address .sx-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--sx-product-orange, #f37021);
}

.sx-reference-product .sx-reference-next-day {
  min-height: 44px;
  margin: 0 0 0 72px;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--sx-product-text, #272727);
  border-radius: 0;
  background: transparent;
  color: var(--sx-product-text, #272727);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
}

.sx-reference-product .sx-reference-next-day:hover {
  border-color: var(--sx-product-blue, #2c7cc2);
  color: var(--sx-product-blue, #2c7cc2);
}

.sx-reference-product .sx-reference-empty {
  margin: 0 0 0 72px;
  color: var(--sx-product-muted, #666);
  font-size: 13px;
  line-height: 1.7;
}

.sx-reference-product .sx-reference-day-detail-modal {
  z-index: 10020;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgb(0 0 0 / 50%);
}

.sx-reference-product .sx-reference-day-detail-dialog {
  width: min(760px, 100%);
  max-height: calc(100dvh - 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 60px rgb(0 0 0 / 24%);
}

.sx-reference-product .sx-reference-day-detail-dialog:focus {
  outline: none;
}

.sx-reference-product .sx-reference-day-detail-header {
  min-height: 68px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  padding: 0 14px;
  border-bottom: 1px solid #e6e6e6;
  background: #fff;
}

.sx-reference-product .sx-reference-day-detail-header h2 {
  margin: 0;
  color: var(--sx-product-ink, #000);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

.sx-reference-product .sx-reference-day-detail-close {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: #555;
  font: 300 38px/1 Arial, sans-serif;
  cursor: pointer;
}

.sx-reference-product .sx-reference-day-detail-tabs {
  min-height: 54px;
  display: flex;
  flex: 0 0 auto;
  gap: 26px;
  padding: 0 26px;
  overflow-x: auto;
  border-bottom: 1px solid #ededed;
  background: #fff;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.sx-reference-product .sx-reference-day-detail-tabs::-webkit-scrollbar {
  display: none;
}

.sx-reference-product .sx-reference-day-detail-tabs button {
  min-width: max-content;
  position: relative;
  flex: 0 0 auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #333;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

.sx-reference-product .sx-reference-day-detail-tabs button::after {
  content: "";
  height: 4px;
  position: absolute;
  right: 2px;
  bottom: 0;
  left: 2px;
  border-radius: 4px 4px 0 0;
  background: transparent;
}

.sx-reference-product .sx-reference-day-detail-tabs button.is-active,
.sx-reference-product .sx-reference-day-detail-tabs button[aria-selected="true"] {
  color: var(--sx-product-blue, #2c7cc2);
  font-weight: 600;
}

.sx-reference-product .sx-reference-day-detail-tabs button.is-active::after,
.sx-reference-product .sx-reference-day-detail-tabs button[aria-selected="true"]::after {
  background: var(--sx-product-blue, #2c7cc2);
}

.sx-reference-product .sx-reference-day-detail-content {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
}

.sx-reference-product .sx-reference-day-detail-panel {
  padding: 30px 36px 44px;
}

.sx-reference-product .sx-reference-day-detail-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  margin-bottom: 26px;
}

.sx-reference-product .sx-reference-day-detail-summary strong {
  color: #282828;
  font-size: 24px;
  line-height: 1.35;
}

.sx-reference-product .sx-reference-day-detail-summary h3 {
  margin: 0;
  color: var(--sx-product-ink, #000);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.45;
}

.sx-reference-product .sx-reference-day-detail-timeline {
  padding: 8px 0 10px 20px;
  border: 0;
  background: #fff;
}

.sx-reference-product .sx-reference-day-detail-timeline::before {
  left: 41px;
}

.sx-reference-product .sx-reference-day-detail-timeline .sx-itinerary-card {
  margin-bottom: 30px;
}

.sx-reference-product .sx-reference-day-detail-timeline .sx-itinerary-card__mobile-detail {
  display: none;
}

@media (max-width: 900px) and (min-width: 701px) {
  .sx-reference-product .sx-reference-itinerary.sx-reference-section {
    width: calc(100% - 40px);
    padding-block: 78px 96px;
  }

  .sx-reference-product .sx-reference-itinerary > h2 {
    font-size: 32px;
    line-height: 1.3;
  }

  .sx-reference-product .sx-reference-day-tabs button {
    width: 118px;
    min-width: 118px;
    flex-basis: 118px;
  }

  .sx-reference-product .sx-reference-itinerary-layout {
    grid-template-columns: minmax(0, 47fr) minmax(0, 53fr);
  }

  .sx-reference-product .sx-reference-day-story {
    padding: 18px 28px 42px 12px;
  }

  .sx-reference-product .sx-reference-day-images {
    width: 100%;
  }

  .sx-reference-product .sx-reference-day-story > h3 {
    font-size: 29px;
  }

  .sx-reference-product .sx-reference-timeline {
    padding-right: 20px;
    padding-left: 20px;
  }

  .sx-reference-product .sx-reference-timeline::before {
    left: 41px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card {
    gap: 19px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements {
    padding-inline: 20px;
  }
}

@media (max-width: 700px) {
  .sx-reference-product .sx-reference-itinerary.sx-reference-section {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 59px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: start;
    column-gap: 20px;
    margin: 0;
    padding: 0 0 84px;
    scroll-margin-top: 53px;
  }

  .sx-reference-product .sx-reference-itinerary > .sx-reference-kicker {
    display: none;
  }

  .sx-reference-product .sx-reference-itinerary > h2 {
    grid-column: 1 / -1;
    grid-row: 1;
    display: block;
    margin: 0;
    padding: 28px 20px 20px;
    font-size: 24px;
    line-height: 1.4;
    text-align: left;
  }

  .sx-reference-product .sx-reference-day-tabs {
    width: 59px;
    max-width: 59px;
    min-height: 0;
    position: sticky;
    top: 53px;
    z-index: 4;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    border-right: 1px solid var(--sx-product-line, #d1d1d1);
    border-radius: 0;
    background: #fff;
    scroll-snap-type: none;
  }

  .sx-reference-product .sx-reference-day-tabs button {
    width: 58px;
    min-width: 58px;
    min-height: 44px;
    flex: 0 0 44px;
    justify-content: center;
    padding: 8px 2px;
    border-radius: 0;
    background: transparent;
    color: var(--sx-product-ink, #000);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
  }

  .sx-reference-product .sx-reference-day-tabs button::before {
    display: none;
    content: none;
  }

  .sx-reference-product .sx-reference-day-tabs button::after {
    content: "";
    width: 2px;
    height: auto;
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    left: auto;
    display: block;
    background: transparent;
  }

  .sx-reference-product .sx-reference-day-tabs button:hover:not(.is-active) {
    background: #f5f5f5;
  }

  .sx-reference-product .sx-reference-day-tabs button.is-active,
  .sx-reference-product .sx-reference-day-tabs button[aria-selected="true"] {
    background: transparent;
    color: var(--sx-product-blue, #2c7cc2);
  }

  .sx-reference-product .sx-reference-day-tabs button.is-active::after,
  .sx-reference-product .sx-reference-day-tabs button[aria-selected="true"]::after {
    background: var(--sx-product-blue, #2c7cc2);
  }

  .sx-reference-product .sx-reference-day-label-desktop {
    display: none;
  }

  .sx-reference-product .sx-reference-day-label-mobile {
    display: inline;
  }

  .sx-reference-product .sx-reference-itinerary > .sx-reference-itinerary-layout,
  .sx-reference-product .sx-reference-itinerary-layout {
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    grid-column: 2;
    grid-row: 2;
    display: block;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: #fff;
  }

  .sx-reference-product .sx-reference-itinerary-layout[hidden] {
    display: none !important;
  }

  .sx-reference-product .sx-reference-day-story {
    display: none;
  }

  .sx-reference-product .sx-reference-timeline {
    min-width: 0;
    padding: 0 2px 0 0;
    overflow: visible;
    border: 0;
    background: #fff;
  }

  .sx-reference-product .sx-reference-timeline::before,
  .sx-reference-product .sx-reference-timeline > header {
    display: none;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    margin: 0 0 20px;
    padding: 0 9px 23px 0;
    border: 0;
    border-bottom: 1px solid var(--sx-product-line, #d1d1d1);
    background: #fff;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--sx-product-text, #272727);
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__icon .sx-icon,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__icon .sx-itinerary-icon {
    width: 22px;
    height: 22px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__heading {
    min-width: 0;
    order: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card h4 {
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__desktop-meta,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__desktop-title,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__desktop-details {
    display: none;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-meta,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-title {
    display: inline;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-title {
    color: #1687b7;
    font-weight: 500;
  }

  .sx-reference-product .sx-itinerary-card__mobile-detail {
    display: inline;
    padding: 2px 0 0;
    border: 0;
    background: transparent;
    color: var(--sx-product-blue, #2c7cc2);
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    white-space: nowrap;
    cursor: pointer;
  }

  .sx-reference-product .sx-reference-day-detail-modal {
    padding: 0;
  }

  .sx-reference-product .sx-reference-day-detail-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .sx-reference-product .sx-reference-day-detail-header {
    min-height: 64px;
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    padding-inline: 5px;
  }

  .sx-reference-product .sx-reference-day-detail-header h2 {
    font-size: 20px;
  }

  .sx-reference-product .sx-reference-day-detail-tabs {
    min-height: 51px;
    gap: 28px;
    padding-inline: 20px;
  }

  .sx-reference-product .sx-reference-day-detail-tabs button {
    font-size: 16px;
  }

  .sx-reference-product .sx-reference-day-detail-panel {
    padding: 27px 20px 50px;
  }

  .sx-reference-product .sx-reference-day-detail-summary {
    gap: 18px;
    margin-bottom: 24px;
  }

  .sx-reference-product .sx-reference-day-detail-summary strong {
    font-size: 22px;
  }

  .sx-reference-product .sx-reference-day-detail-summary h3 {
    font-size: 20px;
    line-height: 1.5;
  }

  .sx-reference-product .sx-reference-day-detail-timeline {
    padding: 0;
  }

  .sx-reference-product .sx-reference-day-detail-timeline::before,
  .sx-reference-product .sx-reference-day-detail-timeline > header {
    display: none;
  }

  .sx-reference-product .sx-reference-day-detail-timeline .sx-itinerary-card {
    margin-bottom: 22px;
    padding-bottom: 23px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__meta {
    order: 1;
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0 5px;
    margin-top: 1px;
    color: var(--sx-product-text, #272727);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__meta em {
    font-style: normal;
    font-weight: 600;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-route,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__body > p,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__details {
    order: 3;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-facts {
    order: 4;
    display: grid;
    gap: 7px;
    margin: 9px 0 0;
    color: var(--sx-product-muted, #666);
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-facts > div {
    min-width: 0;
    display: grid;
    grid-template-columns: 22px max-content minmax(0, 1fr);
    align-items: start;
    gap: 3px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-facts dt,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__mobile-facts dd {
    min-width: 0;
    margin: 0;
    color: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    overflow-wrap: anywhere;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__fact-icon {
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    margin-top: 1px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__fact-icon .sx-icon {
    width: 19px;
    height: 19px;
    stroke-width: 1.6;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-route {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    gap: 8px;
    margin-top: 9px;
    padding-block: 9px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements {
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements .sx-itinerary-entry {
    padding: 7px 0 0;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry + .sx-itinerary-entry,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--arrangements .sx-itinerary-entry + .sx-itinerary-entry {
    margin-top: 10px;
    padding-top: 11px;
    border-top: 1px solid #e5e5e5;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places {
    gap: 10px;
    margin-top: 10px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry.has-image {
    min-width: 0;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    margin: 0;
    padding: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 1px 5px rgb(0 0 0 / 8%);
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry:not(.has-image) {
    grid-template-columns: minmax(0, 1fr);
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry + .sx-place-entry {
    margin-top: 0;
    padding-top: 10px;
    border-top: 0;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry figure {
    width: 96px;
    aspect-ratio: 1;
    display: block;
    margin: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #e8e8ed;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry figure img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry__body > header small {
    display: none;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entries--places .sx-place-entry__body > header strong {
    margin-top: 0;
    color: var(--sx-product-ink, #000);
    font-size: 15px;
    line-height: 1.45;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-route strong,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry strong {
    font-size: 13px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-card__body > p,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry p {
    font-size: 13px;
    line-height: 1.55;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details > div,
  .sx-reference-product .sx-reference-timeline .card-detail-grid > div {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px;
  }

  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details dt,
  .sx-reference-product .sx-reference-timeline .card-detail-grid dt,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry__details dd,
  .sx-reference-product .sx-reference-timeline .card-detail-grid dd,
  .sx-reference-product .sx-reference-timeline address,
  .sx-reference-product .sx-reference-timeline .sx-itinerary-entry__facts span,
  .sx-reference-product .sx-reference-timeline .sx-place-tags span {
    font-size: 12px;
  }

  .sx-reference-product .sx-reference-next-day {
    min-height: 44px;
    margin: 0 9px 0 0;
    font-size: 12px;
  }

  .sx-reference-product .sx-reference-empty {
    margin: 0 9px 0 0;
    padding: 8px 0 24px;
    border-bottom: 1px solid var(--sx-product-line, #d1d1d1);
  }
}

/* Mobile itinerary follows a two-level structure: stacked day summaries first,
   then the complete timeline in a bottom sheet. */
@media (max-width: 700px) {
  .sx-reference-product .sx-reference-itinerary.sx-reference-section {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 12px;
  }

  .sx-reference-product .sx-reference-day-tabs,
  .sx-reference-product .sx-reference-itinerary > .sx-reference-itinerary-layout {
    display: none !important;
  }

  .sx-reference-product .sx-reference-day-rail {
    width: 58px;
    max-width: 58px;
    position: sticky;
    top: 53px;
    z-index: 5;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--sx-product-line, #d1d1d1);
    background: #fff;
  }

  .sx-reference-product .sx-reference-day-rail button {
    width: 57px;
    min-height: 44px;
    position: relative;
    display: grid;
    place-items: center;
    padding: 6px 1px;
    border: 0;
    background: #fff;
    color: var(--sx-product-ink, #111);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
  }

  .sx-reference-product .sx-reference-day-rail button::after {
    content: "";
    width: 2px;
    position: absolute;
    top: 0;
    right: -1px;
    bottom: 0;
    background: transparent;
  }

  .sx-reference-product .sx-reference-day-rail button.is-active,
  .sx-reference-product .sx-reference-day-rail button[aria-current="location"] {
    color: var(--sx-product-blue, #2c7cc2);
  }

  .sx-reference-product .sx-reference-day-rail button.is-active::after,
  .sx-reference-product .sx-reference-day-rail button[aria-current="location"]::after {
    background: var(--sx-product-blue, #2c7cc2);
  }

  .sx-reference-product .sx-reference-mobile-day-stack {
    min-width: 0;
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    padding: 0 12px 0 0;
  }

  .sx-reference-product .sx-reference-mobile-day-card {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0 0 24px;
    border-bottom: 1px solid var(--sx-product-line, #d1d1d1);
    scroll-margin-top: 64px;
  }

  .sx-reference-product .sx-reference-mobile-day-card:last-child {
    margin-bottom: 0;
  }

  .sx-reference-product .sx-reference-mobile-day-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 8px;
  }

  .sx-reference-product .sx-reference-mobile-day-card > header > div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
  }

  .sx-reference-product .sx-reference-mobile-day-card > header strong {
    flex: 0 0 auto;
    color: #242424;
    font-size: 15px;
    line-height: 1.55;
  }

  .sx-reference-product .sx-reference-mobile-day-card > header h3 {
    min-width: 0;
    margin: 0;
    color: #242424;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.48;
    overflow-wrap: anywhere;
  }

  .sx-reference-product .sx-reference-mobile-day-card > header button {
    flex: 0 0 auto;
    padding: 2px 0;
    border: 0;
    background: transparent;
    color: var(--sx-product-blue, #2c7cc2);
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
  }

  .sx-reference-product .sx-reference-mobile-day-meta {
    display: none;
    flex-direction: column;
    gap: 4px;
    margin: 0 0 10px;
    padding: 0;
    color: #686868;
    list-style: none;
  }

  .sx-reference-product .sx-reference-mobile-day-meta li {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    line-height: 1.45;
  }

  .sx-reference-product .sx-reference-mobile-day-meta svg,
  .sx-reference-product .sx-reference-mobile-day-meta .sx-itinerary-icon,
  .sx-reference-product .sx-reference-mobile-day-meta .dashicons {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    color: #8a8a8a;
    font-size: 13px;
  }

  .sx-reference-product .sx-reference-mobile-day-images {
    height: 112px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 9px 0 0;
    overflow: hidden;
    border-radius: 4px;
    background: #ececea;
  }

  .sx-reference-product .sx-reference-mobile-day-images.images-1 {
    grid-template-columns: 1fr;
  }

  .sx-reference-product .sx-reference-mobile-day-images.images-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sx-reference-product .sx-reference-mobile-day-images figure {
    min-width: 0;
    height: 112px;
    margin: 0;
    overflow: hidden;
  }

  .sx-reference-product .sx-reference-mobile-day-images img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }

  .sx-reference-product .sx-reference-mobile-day-card > p {
    display: none;
  }

  .sx-reference-product .sx-reference-day-detail-modal {
    align-items: flex-end;
    justify-content: center;
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    padding: 0;
    background: rgb(0 0 0 / 46%);
  }

  .sx-reference-product .sx-reference-day-detail-dialog {
    width: 100%;
    min-width: 0;
    max-width: none;
    height: min(88dvh, 780px);
    max-height: calc(100dvh - 68px);
    position: relative;
    box-sizing: border-box;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -14px 48px rgb(0 0 0 / 18%);
    animation: sx-reference-sheet-in 240ms cubic-bezier(.2, .8, .2, 1) both;
  }

  .sx-reference-product .sx-reference-day-detail-dialog::before {
    content: "";
    width: 34px;
    height: 4px;
    position: absolute;
    top: 7px;
    left: 50%;
    z-index: 3;
    border-radius: 999px;
    background: #d5d5d5;
    transform: translateX(-50%);
  }

  .sx-reference-product .sx-reference-day-detail-header {
    min-height: 58px;
    padding-top: 5px;
    border-radius: 18px 18px 0 0;
  }

  .sx-reference-product .sx-reference-day-detail-tabs {
    min-height: 48px;
    gap: 26px;
    padding-inline: 18px;
  }

  .sx-reference-product .sx-reference-day-detail-tabs button {
    font-size: 15px;
  }

  .sx-reference-product .sx-reference-day-detail-panel {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 24px 18px 34px;
    border-top: 8px solid #f4f5f6;
    scroll-margin-top: 1px;
  }

  .sx-reference-product .sx-reference-day-detail-panel:first-child {
    border-top: 0;
  }

  .sx-reference-product .sx-reference-day-detail-service {
    min-height: 54px;
    flex: 0 0 auto;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 7px 16px calc(7px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #e5e7ea;
    background: #eef7ff;
    color: #384653;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
  }

  .sx-reference-product .sx-reference-day-detail-service-icon {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #35a5ee;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
  }

  .sx-reference-product .sx-reference-day-detail-service strong {
    color: var(--sx-product-blue, #2c7cc2);
    font-size: 12px;
  }
}

@keyframes sx-reference-sheet-in {
  from { opacity: .65; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 360px) {
  .sx-reference-product .sx-reference-itinerary.sx-reference-section {
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 16px;
  }

  .sx-reference-product .sx-reference-day-rail {
    width: 58px;
    max-width: 58px;
  }

  .sx-reference-product .sx-reference-day-rail button {
    width: 57px;
    min-width: 57px;
  }

  .sx-reference-product .sx-reference-itinerary > h2 {
    font-size: 27px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .sx-reference-product .sx-reference-day-tabs,
  .sx-reference-product .sx-reference-day-tabs button,
  .sx-reference-product .sx-reference-day-rail,
  .sx-reference-product .sx-reference-day-rail button,
  .sx-reference-product .sx-reference-day-images,
  .sx-reference-product .sx-reference-next-day {
    scroll-behavior: auto;
    transition-duration: 0.01ms;
  }

  .sx-reference-product .sx-reference-day-detail-dialog {
    animation-duration: 0.01ms;
  }
}
