/* E03 migration only. Shared approved new-route styles remain unchanged. */
.new-private-journey .p-heroimg{object-position:50% 50%}
.new-private-journey .p-daychips{grid-template-columns:repeat(16,minmax(0,1fr))}
.new-private-journey .p-daybody.p-text-only{grid-template-columns:minmax(0,820px)}
.new-private-journey .p-picked-photo.no-photo{aspect-ratio:auto;min-height:163px;background:linear-gradient(135deg,#d5e7ed,#edf5f8)}
.new-private-journey .p-picked-photo.no-photo img{display:none}
.new-private-journey #picked-mode{position:relative;display:block;padding:28px 27px 56px;color:#2c6274;font:400 25px/1.3 Fraunces,Georgia,serif}
.new-private-journey #picked-mode[hidden]{display:none}
.new-private-journey .route-leg.rail{stroke-dasharray:7 4;stroke:#628394}
.new-private-journey .route-leg.air{stroke-dasharray:2 6;stroke:#66899c}
.new-private-journey .route-leg.active{stroke:#286b80}
.new-private-journey .map-stop.label-hidden text,.new-private-journey .map-stop.label-hidden .leader{display:none}
.new-private-journey .map-stop.dim{opacity:.22}
.new-private-journey .p-map-legend{gap:16px;font-size:11px}
.new-private-journey .p-map-legend span:before{content:'';display:inline-block;width:20px;border-top:2px solid #638494}
.new-private-journey .p-map-legend .new-journey-rail-key:before{border-top-style:dashed}
.new-private-journey .p-map-legend .new-journey-air-key:before{border-top-style:dotted}
.new-private-journey .p-map-legend span:last-child:before{display:none}
.new-journey-map-context{display:flex;align-items:center;gap:22px;margin-top:14px}
.new-journey-map-context>img{width:180px;height:auto;border:1px solid #d6e5eb;background:#f7fbfc}
.new-journey-map-context .p-map-caption{flex:1;margin:0;font-size:11px!important}
.new-journey-day-facts{font-size:13px;color:#51717c;line-height:1.8;padding-left:18px;margin:18px 0}
.new-private-journey .new-journey-photographs{padding-top:0;padding-bottom:35px}
.new-journey-gallery{border-top:1px solid #bcd3dc;border-bottom:1px solid #bcd3dc}
.new-journey-gallery>summary{display:flex;align-items:center;gap:24px;cursor:pointer;padding:23px 0;list-style:none;font-family:Fraunces,Georgia,serif;font-size:24px}
.new-journey-gallery>summary::-webkit-details-marker{display:none}
.new-journey-gallery>summary small{font-family:'Work Sans',sans-serif;font-size:13px;color:#5b7985}
.new-journey-gallery>summary>span:last-child{margin-left:auto}
.new-journey-gallery[open]>summary>span:last-child{transform:rotate(45deg)}
.new-journey-gallery-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;padding:8px 0 28px}
.new-journey-gallery-grid figure{margin:0}.new-journey-gallery-grid .photo-open{display:block;position:relative;width:100%;padding:0;background:none;border:0}
.new-journey-gallery-grid .photo-open img{aspect-ratio:4/3;width:100%;height:auto;object-fit:cover}
.new-journey-gallery-grid .photo-open>span{position:absolute;right:10px;bottom:8px;color:white;background:#143039bb;padding:1px 6px}
.new-journey-gallery-grid figcaption{font-size:12px;color:#5b7985;line-height:1.5;margin-top:9px}
.new-journey-related{border-top:1px solid #c5dbe3;margin-top:32px;padding-top:16px;display:flex;align-items:baseline;gap:20px;flex-wrap:wrap}
.new-journey-related h3{font-size:20px!important;margin-right:12px}
.new-journey-related a{font-size:13px!important}
.new-journey-legacy-anchor{display:block;height:0;scroll-margin-top:145px}
@media(max-width:760px){.new-journey-map-context{align-items:flex-start;gap:14px}.new-journey-map-context>img{width:120px}.new-journey-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.new-journey-gallery>summary{font-size:20px;gap:12px}.new-private-journey .p-map-tabs{overflow-x:auto;white-space:nowrap}.new-private-journey .p-daychips{grid-template-columns:repeat(7,minmax(0,1fr))}}

.new-private-journey .route-leg.cruise{stroke:#4b91a3;stroke-width:3;stroke-dasharray:12 3}
.new-private-journey .p-map-legend .new-journey-cruise-key:before{border-color:#4b91a3;border-top-width:3px}
.new-private-journey .p-daychips{grid-template-columns:repeat(8,minmax(0,1fr))}
.new-private-journey .province[data-region^=context-]{fill:#eef0e8}

.new-private-journey .route-leg.cruise.active{stroke:#286b80;stroke-width:4}

/* Yangtze Tibet16 adapter to the approved Sichuan route standard.
   Retains its road/rail keys, coordinates, photo focal rules and text-only days. */
.new-journey-standard .p-herocopy h1 {
  font-size: clamp(52px, 6.2vw, 88px);
  line-height: 1.16;
  max-width: 100%;
}
.new-journey-standard .p-daychips {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.new-journey-standard .new-journey-day-facts {
  font-size: 14px;
  line-height: 1.7;
  color: var(--route-muted);
  margin-block: 20px;
}
.new-journey-standard #picked-mode {
  font: 400 27px/1.25 Fraunces, Georgia, serif;
  letter-spacing: -.02em;
}
.new-journey-standard .new-journey-photographs {
  padding-top: 0;
  padding-bottom: 40px;
}
.new-journey-standard .new-journey-gallery > summary {
  font: 400 27px/1.3 Fraunces, Georgia, serif;
  letter-spacing: -.02em;
  min-height: 76px;
}
.new-journey-standard .new-journey-gallery > summary small {
  font: 400 14px/1.6 "Work Sans", sans-serif;
}
.new-journey-standard .new-journey-gallery-grid figcaption {
  font: 400 13px/1.6 "Work Sans", sans-serif;
  color: var(--route-muted);
}
.new-journey-standard .new-journey-map-context .p-map-caption {
  font-size: 13px !important;
  line-height: 1.65;
}
.new-journey-standard .new-journey-related { gap: 16px 24px; }
.new-journey-standard .new-journey-related h3 {
  font: 400 23px/1.3 Fraunces, Georgia, serif !important;
  margin-block: 12px;
}
.new-journey-standard .new-journey-related a { font-size: 14px !important; }

@media (max-width: 760px) {
  .new-journey-standard .p-herocopy h1 {
    font-size: clamp(44px, 10vw, 60px);
  }
  .new-journey-standard .p-daychips {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .new-journey-standard .p-map-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    white-space: normal;
  }
  .new-journey-standard .p-map-tabs button {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .new-journey-standard .p-map-toolbar > span {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .new-journey-standard .new-journey-gallery > summary {
    flex-wrap: wrap;
    gap: 10px 18px;
    font-size: 25px;
  }
  .new-journey-standard .new-journey-photographs { padding-bottom: 24px; }
}

.new-journey-standard .new-journey-map-context .p-map-caption { min-width: 0; }

.new-journey-atlas .p-map-stage,
.new-journey-atlas .p-map-dialog .p-map-stage {
  aspect-ratio: var(--atlas-frame);
  height: auto;
  max-height: none;
  background: #eaf0ea;
}

.new-journey-atlas .atlas-region-word {
  pointer-events: none;
  fill: #476b78;
  stroke: #eff4ef;
  stroke-width: 2px;
  paint-order: stroke;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
}
.new-journey-atlas :is(.atlas-region-word,.atlas-road-leader)[hidden] { display: none; }
.new-journey-atlas .atlas-road-shield text { fill: #294d58; font-size: 11px; }
.new-journey-atlas .atlas-road-leader {
  fill: none;
  stroke: #537985;
  opacity: .72;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.new-journey-atlas .route-leg.rail.active { stroke: #425587; }
.new-journey-atlas .route-leg.air.active { stroke: #396e93; }
.new-journey-atlas .map-stop .stop-hit { r: 10px; }

@media (max-width: 500px) {
  .new-journey-atlas .map-stop text { font-size: 19px; }
  .new-journey-atlas .atlas-road-shield text { font-size: 16px; }
  .new-journey-atlas .atlas-orientation text { font-size: 17px; }
  .new-journey-atlas .atlas-region-word { font-size: 18px; }
}

.new-journey-atlas .map-stop.label-hidden > :is(text,.leader) { visibility: hidden; }
.new-journey-atlas #atlas-reference-routes .route-leg.airport-transfer {
  stroke: #426479;
  stroke-dasharray: 3 3;
}
.new-journey-atlas .p-map-legend :is(.atlas-transfer-key,.atlas-conditional-key)::before {
  content: "";
  display: inline-block;
  width: 20px;
  margin-right: .35rem;
  border-top: 2px dashed #426479;
  vertical-align: middle;
}

.new-journey-atlas .p-map-dialog .p-map-stage { width: 100%; min-height: 0; }
.new-journey-atlas #map-world #atlas-reference-routes .route-leg.cruise { stroke: #187a82; stroke-dasharray: none; }
.new-journey-atlas #map-world #atlas-reference-routes .route-leg.rail { stroke: #55518a; }
.new-journey-atlas #map-world #atlas-reference-routes .route-leg.air { stroke: #a46237; }
.new-journey-atlas .p-map-legend .new-journey-cruise-key::before { border-color: #187a82; border-top-style: solid; }
.new-journey-atlas .p-map-legend .new-journey-rail-key::before { border-color: #55518a; }
.new-journey-atlas .p-map-legend .new-journey-air-key::before { border-color: #a46237; }
.new-journey-atlas .p-map-legend .atlas-yangtze-road-key::before {
  content: ""; display: inline-block; width: 20px; margin-right: .35rem;
  border-top: 2px solid #315f70; vertical-align: middle;
}

.new-journey-standard .p-herocopy h1 {font-size:clamp(44px,6vw,82px);line-height:1.09;max-width:18ch}
.new-journey-standard .p-herocopy p {max-width:52ch}
.new-journey-standard .new-journey-day-facts {list-style:none;padding-left:0}
.new-journey-standard .new-journey-day-facts li {margin:0 0 .32em}
.new-journey-standard .new-journey-practical {max-width:830px}
.new-journey-standard .new-journey-practical li {margin-bottom:.7em}
.new-journey-standard .map-stop.secondary .stop-dot {fill:#f3f9fa;stroke:#30708a;stroke-width:1.2px}
.new-journey-standard #picked-short:empty,.new-journey-standard .p-card-meta:empty {display:none}
@media(min-width:1024px){
 .new-journey-standard .p-chapters:has(.p-chapter:nth-child(4)){grid-template-columns:repeat(4,minmax(0,1fr))}
 .new-journey-standard .p-hero:has([data-compact-cover]){height:500px;min-height:500px;background:#214553}
 .new-journey-standard .p-heroimg[data-compact-cover]{
  inset:auto 0 0 auto;width:min(800px,61%);height:auto;object-fit:contain;
  mask-image:linear-gradient(90deg,transparent,#000 16%)
 }
}
@media(max-width:760px){
 .new-journey-standard .p-herocopy h1{font-size:clamp(36px,9.4vw,58px)}
 .new-journey-standard .p-daychips{grid-template-columns:repeat(5,minmax(0,1fr))}
}
