/* Keep the standard four-column table; allow the content columns to grow vertically. */
.xx-tdp-sample .xx-td57-summary-table {min-width:580px}
.xx-tdp-sample .xx-td57-summary-table .xx-td57-col-day {width:72px}
.xx-tdp-sample .xx-td57-summary-table .xx-td57-col-meals {width:27%}
.xx-tdp-sample .xx-td57-summary-table .xx-td57-col-hotel {width:22%}
.xx-tdp-sample .xx-td57-summary-table tbody td {white-space:normal;overflow-wrap:anywhere;padding:10px;vertical-align:middle}
.xx-tdp-sample .xx-td57-summary-table tbody th {padding:0 7px;vertical-align:middle}
.xx-tdp-sample a.xx-td57-summary-day {box-sizing:border-box;min-width:44px;max-width:100%}
.xx-tdp-sample .xx-td57-summary-table tr[data-summary-day="4"]>* {border-top-width:1px}
@media (max-width:767px) {
  .xx-tdp-sample .xx-td57-summary-table {min-width:490px}
  .xx-tdp-sample .xx-td57-summary-table .xx-td57-col-day {width:60px}
  .xx-tdp-sample .xx-td57-summary-table tbody td {padding:8px}
}
.xx-tdp-sample .xx-td57-map-canvas{background:#f0f3e9}
.xx-tdp-sample .xx-td57-map-river{stroke:#77aeb9;stroke-width:2.3;stroke-linecap:round}
.xx-xian-map-road{fill:none;stroke:#b5b0a1;stroke-width:1.05;stroke-linecap:round;stroke-linejoin:round}
.xx-xian-map-place,.xx-xian-map-water-label{font-family:inherit;font-size:11px;font-weight:650;fill:#545f50;paint-order:stroke;stroke:#f0f3e9;stroke-width:3px;stroke-linejoin:round}
.xx-xian-map-water-label{fill:#416e7e}
.xx-xian-map-dot{fill:#66745f}
.xx-xian-map-leader{stroke:#859181;stroke-width:1}
.xx-xian-map-key{display:inline-block;width:16px;border-bottom:2px solid #aaa79a}
.xx-xian-map-key.is-river{border-color:#77aeb9}
.xx-xian-map-key.is-landmark{width:6px;height:6px;border-radius:50%;background:#66745f;border:0}

.review-map-credit {margin-top:7px}

.xx-tdp-sample .xx-td57-page-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:54px;
}
.xx-tdp-sample .xx-td57-page-top .xx-tdp-breadcrumb {
  min-width:0;
  overflow-wrap:anywhere;
}
.xx-tdp-sample .xx-td57-page-top .xx-td57-advisor-entry {
  flex:none;
  width:auto;
  min-height:44px;
  padding-inline:10px;
  margin:0;
  border-color:transparent;
  background:transparent;
  font-weight:600;
  white-space:nowrap;
}
.xx-tdp-sample .xx-td57-page-top .xx-td57-advisor-entry:hover,
.xx-tdp-sample .xx-td57-page-top .xx-td57-advisor-entry:focus-visible {
  background:#f0f5f1;
  text-decoration:underline;
}
.xx-tdp-sample .xx-tdp-actions > .xx-tdp-btn:only-child {
  grid-column:1 / -1;
}
.xx-tdp-sample .xx-tdp-booking-inner > .xx-td57-booking-help {
  margin:0 0 10px;
  padding:0;
  border:0;
}
.xx-tdp-sample .xx-tdp-booking-inner > .xx-td57-booking-help > summary {
  padding-block:10px;
}

/* The hero price is a two-column component, including in a narrow hero card. */
.xx-tdp-sample .xx-tdp-hero-price {
  display:grid;
  grid-template-columns:minmax(0,1fr) max-content;
  align-items:center;
  column-gap:12px;
  container:hero-price / inline-size;
}
.xx-tdp-sample .xx-tdp-hero-price > div {
  display:grid;
  grid-template-columns:max-content max-content;
  justify-content:start;
  align-items:baseline;
  gap:7px;
}
.xx-tdp-sample .xx-tdp-hero-price .xx-tdp-label {grid-column:1 / -1}
.xx-tdp-sample .xx-tdp-hero-price small {white-space:nowrap}
.xx-tdp-sample .xx-tdp-hero-price > .xx-td57-review-summary {
  justify-self:end;
  justify-content:flex-end;
  flex-wrap:nowrap;
  white-space:nowrap;
}
@container hero-price (max-width: 420px) {
  .xx-tdp-sample .xx-tdp-hero-price > div {column-gap:4px}
  .xx-tdp-sample .xx-tdp-hero-price .cts-price {font-size:clamp(18px,6.5cqi,24px)!important}
  .xx-tdp-sample .xx-tdp-hero-price > .xx-td57-review-summary {gap:5px}
  .xx-tdp-sample .xx-tdp-hero-price .xx-td57-rating-stars {font-size:clamp(11px,4.4cqi,16px);letter-spacing:0}
  .xx-tdp-sample .xx-tdp-hero-price .xx-td57-review-summary > strong {font-size:12px}
  .xx-tdp-sample .xx-tdp-hero-price .xx-td57-reference-rating-label {font-size:10px}
}
@container hero-price (max-width: 320px) {
  .xx-tdp-sample .xx-tdp-hero-price > .xx-td57-review-summary {
    display:grid;
    grid-template-columns:max-content max-content;
    align-items:center;
    justify-items:end;
    gap:2px 5px;
  }
  .xx-tdp-sample .xx-tdp-hero-price .xx-td57-reference-rating-label {grid-column:1 / -1}
}




/* The two Xiangxi products share the standard hero with equal desktop columns. */
.xx-tdp-sample[data-product-code^="KX-"] #xx-tdp-title {
    text-wrap: balance;
}
/* Photo frames follow the Beijing 10-day template, independently of copy height. */
.xx-tdp-sample .xx-tdp-hero > .xx-tdp-gallery {
    align-self: start;
}
.xx-tdp-sample .xx-tdp-gallery > .xx-tdp-main-photo {
    flex: none;
}



/* Single hotel package on the Chongqing routes */
.xx-tdp-sample[data-product-code="KX-03"] .xx-td57-template-packages:has(> .xx-tdp-package:only-child),
.xx-tdp-sample[data-product-code="KX-04"] .xx-td57-template-packages:has(> .xx-tdp-package:only-child) {
    grid-template-columns: minmax(0, 640px);
}
