/* Route destination pages + Shenzhen catalog */
.route-hero .lead { max-width: 760px; }
.route-local-name { margin-top: .85rem; font-size: .92rem; }
/* ---- Hero sea-corridor map (static inline SVG, CSS + SMIL animation, no libraries) ---- */
.route-hero { padding: 1.6rem 0 2.4rem; }
.route-hero .breadcrumb { margin-bottom: .55rem; }
.route-hero .eyebrow { margin-bottom: .35rem; }
.route-hero h1 { max-width: none; font-size: clamp(1.75rem, 3vw, 2.45rem); margin-bottom: 1rem; }
.route-hero-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem 2rem; align-items: end; margin-top: 1.4rem; }
.route-hero-body .btn-row { margin: 0; }
@media (max-width: 900px) { .route-hero-body { grid-template-columns: 1fr; } }
.route-map {
  margin: 0;
  padding: .85rem 1rem .8rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #0a2d49 0%, #071f37 100%);
  box-shadow: 0 18px 44px rgba(7, 31, 51, .28);
  color: #eaf6f8;
}
.route-map-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .3rem 1.4rem; padding: 0 .25rem .6rem; }
.route-map-title { margin: 0; font-weight: 800; font-size: 1.08rem; letter-spacing: -.01em; color: #fff; }
.route-map-title span[aria-hidden] { color: #5ce9d5; margin: 0 .15rem; }
.route-map-seq { margin: 0; font-size: .84rem; color: #a9d3dc; text-align: right; }
.route-map-stage { display: flex; justify-content: center; }
.rm-svg { display: block; width: min(100%, calc((100vh - 330px) * 2.3256)); min-width: min(100%, 640px); height: auto; border-radius: 14px; }
.route-map-caption { margin: .6rem .25rem 0; font-size: .8rem; line-height: 1.45; color: #9dbfca; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rm-land { fill: #194b5e; stroke: #4c8190; stroke-opacity: .55; stroke-width: .8; stroke-linejoin: round; }
.rm-lake { fill: #082e4a; stroke: #4c8190; stroke-opacity: .4; stroke-width: .6; }
.rm-land-lab, .rm-sea-lab { font-family: var(--font, Inter, sans-serif); text-anchor: middle; pointer-events: none; }
.rm-land-lab { font-size: 11px; letter-spacing: 3.2px; font-weight: 600; fill: #8fb9c3; fill-opacity: .8; }
.rm-sea-lab { font-size: 11.5px; letter-spacing: 3.6px; font-weight: 600; fill: #cfe9ee; fill-opacity: .62; }
.rm-track { fill: none; stroke: #5ce9d5; stroke-opacity: .32; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; }
.rm-line { fill: none; stroke: #5ce9d5; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 8; animation: rm-flow 1.4s linear infinite; }
@keyframes rm-flow { to { stroke-dashoffset: -18; } }
.rm-wp { fill: #0b3550; stroke: #bff5ec; stroke-width: 2; }
.rm-wlab { font-family: var(--font, Inter, sans-serif); font-size: 12.5px; font-weight: 600; letter-spacing: .2px; fill: #e8f6f7; paint-order: stroke; stroke: #06243a; stroke-width: 3.2px; stroke-linejoin: round; }
.rm-halo { fill: #5ce9d5; fill-opacity: .22; stroke: #5ce9d5; stroke-opacity: .55; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: rm-pulse 2.8s ease-out infinite; }
.rm-dest .rm-halo { animation-delay: 1.4s; }
@keyframes rm-pulse { 0% { transform: scale(.8); opacity: .95; } 70% { transform: scale(1.55); opacity: 0; } 100% { transform: scale(1.55); opacity: 0; } }
.rm-dot { fill: #eafffb; stroke: #5ce9d5; stroke-width: 3; }
.rm-pname { font-family: var(--font, Inter, sans-serif); font-weight: 800; fill: #fff; paint-order: stroke; stroke: #06243a; stroke-width: 3.5px; stroke-linejoin: round; }
.rm-psub { font-family: var(--font, Inter, sans-serif); font-size: 10.5px; font-weight: 600; letter-spacing: 1.6px; fill: #9fd0da; paint-order: stroke; stroke: #06243a; stroke-width: 3px; stroke-linejoin: round; }
.rm-ship path, .rm-arrow path { fill: #fff; stroke: #06243a; stroke-width: 1.2; stroke-linejoin: round; }
.rm-arrow { display: none; }
/* Mobile: vertical animated stop list */
.route-map-mobile { display: none; position: relative; padding: .35rem 0 .2rem; }
.route-mobile-stops { list-style: none; margin: 0; padding: 0 0 0 2.4rem; display: grid; gap: .1rem; }
.route-mobile-stop { position: relative; padding: .55rem 0 .55rem; line-height: 1.25; }
.route-mobile-stop strong { display: block; font-size: .98rem; color: #fff; font-weight: 700; }
.route-mobile-stop span { display: block; margin-top: .12rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #9fd0da; }
.route-mobile-stop::before { content: ""; position: absolute; left: -1.72rem; top: .95rem; width: 9px; height: 9px; border-radius: 50%; background: #0b3550; border: 2px solid #bff5ec; }
.route-mobile-stop--origin::before, .route-mobile-stop--dest::before { left: -1.86rem; top: .78rem; width: 13px; height: 13px; background: #eafffb; border: 3px solid #5ce9d5; box-shadow: 0 0 0 6px rgba(92, 233, 213, .18); animation: rm-mpulse 2.8s ease-out infinite; }
.route-mobile-stop--dest strong { font-size: 1.08rem; }
.route-mobile-line { position: absolute; left: 1.02rem; top: 1.45rem; bottom: 1.45rem; width: 0; border-left: 2.5px dashed #5ce9d5; opacity: .9; }
.route-mobile-ship { position: absolute; left: -7px; top: 0; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 13px solid #fff; filter: drop-shadow(0 0 4px rgba(92,233,213,.7)); animation: rm-mship 7s linear infinite; }
@keyframes rm-mship { 0% { top: 0; opacity: 0; } 6% { opacity: 1; } 94% { opacity: 1; } 100% { top: calc(100% - 13px); opacity: 0; } }
@keyframes rm-mpulse { 0% { box-shadow: 0 0 0 0 rgba(92,233,213,.45); } 70% { box-shadow: 0 0 0 9px rgba(92,233,213,0); } 100% { box-shadow: 0 0 0 0 rgba(92,233,213,0); } }
@media (max-width: 720px) {
  .route-hero { padding: 1.2rem 0 2rem; }
  .route-hero h1 { font-size: 1.62rem; }
  .route-map { padding: .9rem 1rem .85rem; border-radius: 14px; }
  .route-map-head { display: block; padding-bottom: .35rem; }
  .route-map-seq { display: none; }
  .route-map-stage { display: none; }
  .route-map-mobile { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-line { animation: none; }
  .rm-halo { animation: none; opacity: .85; transform: none; }
  .rm-ship { display: none; }
  .rm-arrow { display: inline; }
  .route-mobile-ship { animation: none; top: 45%; opacity: 1; }
  .route-mobile-stop--origin::before, .route-mobile-stop--dest::before { animation: none; }
}
.route-facts-grid .route-card h3 { margin-top: 0; }
.route-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.route-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--border, #d7e3e8);
  border-radius: 12px;
  background: #fff;
}
.route-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: var(--teal-soft, #e7f7f6);
  color: var(--navy-950, #071f33);
  font-weight: 700;
  font-size: .9rem;
}
.route-step h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.route-step p { margin: 0; color: var(--ink-soft, #4a5d6a); font-size: .95rem; }
.route-table table { width: 100%; }
.route-card .callout { margin-top: 0; }
.route-catalog { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.route-country-block {
  padding: 1.2rem 1.3rem;
  border: 1px solid var(--border, #d7e3e8);
  border-radius: 12px;
  background: #fff;
}
.route-country-block h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem;
  margin: 0 0 .75rem; font-size: 1.15rem;
}
.route-dest-list {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
  font-size: .92rem;
}
.route-dest-list li { break-inside: avoid; margin: .28rem 0; }
.route-dest-list .muted { color: var(--gray-500, #7a8b96); font-size: .8rem; }
@media (max-width: 720px) {
  .route-dest-list { columns: 1; }
}
/* ---- Breadcrumb as nav ---- */
nav.breadcrumb { display: flex; flex-wrap: wrap; gap: .1rem .35rem; }
/* ---- Lane data block ---- */
.lane-generic { margin: 0; padding: .9rem 1.1rem; border-left: 3px solid var(--teal, #0e8b8c); background: var(--gray-50, #f5f7fa); border-radius: 8px; font-size: .95rem; }
.lane-confirmed { padding: 1rem 1.2rem; border: 1px solid var(--border, #d8e1ea); border-radius: 12px; background: #fff; }
.lane-confirmed h3 { margin: 0 0 .6rem; font-size: 1.05rem; }
.lane-confirmed dl { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: .4rem 1rem; margin: 0; }
.lane-confirmed dt { font-weight: 700; }
.lane-confirmed dd { margin: 0; }
@media (max-width: 720px) { .lane-confirmed dl { grid-template-columns: 1fr; } }
/* ---- Hub: key-port cards, filters, grouped results ---- */
.hub-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .65rem; }
.hub-card a { display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: .75rem .9rem; border: 1px solid var(--border, #d8e1ea); border-radius: 10px; background: #fff; color: var(--navy-950, #071f33); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.hub-card a:hover, .hub-card a:focus-visible { border-color: var(--teal, #0e8b8c); box-shadow: 0 6px 18px rgba(7, 31, 51, .08); }
.hub-card strong { font-size: .98rem; overflow-wrap: anywhere; }
.hub-card span { font-size: .78rem; color: var(--ink-soft, #485669); }
.hub-card .tag { font-size: .66rem; margin-top: .2rem; color: var(--teal-dark, #087172); background: var(--teal-soft, #e8f7f5); }
.hub-jump { font-size: .88rem; margin-top: .7rem; }
.hub-controls { display: none; gap: .9rem; margin: 1.2rem 0 1.4rem; padding: 1rem; border: 1px solid var(--border, #d8e1ea); border-radius: 14px; background: #fff; position: sticky; top: .5rem; z-index: 5; box-shadow: 0 8px 24px rgba(7, 31, 51, .06); }
.hub-ready .hub-controls { display: grid; }
.hub-ready .hub-jump { display: none; }
.hub-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.hub-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .8rem; border: 1px solid var(--border, #d8e1ea); border-radius: 999px; background: var(--gray-50, #f5f7fa); color: var(--navy-950, #071f33); font: inherit; font-size: .86rem; font-weight: 650; cursor: pointer; }
.hub-tab span { font-size: .74rem; font-weight: 700; padding: .05rem .42rem; border-radius: 999px; background: #fff; color: var(--ink-soft, #485669); }
.hub-tab[aria-selected="true"] { background: var(--navy-900, #0a2d49); border-color: var(--navy-900, #0a2d49); color: #fff; }
.hub-tab[aria-selected="true"] span { background: #5ce9d5; color: var(--navy-950, #071f33); }
.hub-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .8rem; }
.hub-field { display: grid; gap: .3rem; font-size: .8rem; font-weight: 700; color: var(--ink-soft, #485669); }
.hub-field select, .hub-field input { width: 100%; min-width: 0; padding: .6rem .7rem; border: 1px solid var(--border-dark, #becbd8); border-radius: 8px; font: inherit; font-size: .95rem; background: #fff; color: var(--ink, #172333); }
.hub-status { margin: 0; font-size: .85rem; color: var(--ink-soft, #485669); }
.hub-results { display: grid; gap: 2rem; }
.hub-region-title { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 0 0 .9rem; font-size: 1.3rem; }
.hub-country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .9rem; align-items: start; }
.hub-country { padding: .95rem 1.05rem; border: 1px solid var(--border, #d8e1ea); border-radius: 12px; background: #fff; min-width: 0; }
.hub-country-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .55rem; }
.hub-country-head h4 { margin: 0; font-size: 1.02rem; }
.hub-country-head h4 a { color: var(--navy-950, #071f33); text-decoration: none; border-bottom: 1px solid var(--border-dark, #becbd8); }
.hub-country-head h4 a:hover { color: var(--teal-dark, #087172); border-color: currentColor; }
.hub-ports { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.hub-ports a { display: inline-block; padding: .28rem .55rem; border-radius: 7px; background: var(--gray-50, #f5f7fa); color: var(--navy-800, #103f64); font-size: .84rem; text-decoration: none; overflow-wrap: anywhere; }
.hub-ports a:hover, .hub-ports a:focus-visible { background: var(--teal-soft, #e8f7f5); color: var(--teal-dark, #087172); }
.hub-ports a.is-core { font-weight: 700; background: var(--teal-soft, #e8f7f5); }
.hub-more { margin-top: .5rem; padding: .3rem .6rem; border: 1px dashed var(--border-dark, #becbd8); border-radius: 7px; background: none; font: inherit; font-size: .82rem; color: var(--teal-dark, #087172); cursor: pointer; }
.hub-empty { margin-top: 1rem; }
[hidden] { display: none !important; }
@media (max-width: 720px) {
  .hub-controls { position: static; padding: .8rem; }
  .hub-filters { grid-template-columns: 1fr; }
  .hub-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .3rem; -webkit-overflow-scrolling: touch; }
  .hub-tab { flex: 0 0 auto; }
  .hub-country-grid { grid-template-columns: 1fr; }
  .hub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* ---- Country pages ---- */
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-block; padding: .45rem .8rem; border: 1px solid var(--border, #d8e1ea); border-radius: 999px; background: #fff; color: var(--navy-800, #103f64); font-size: .88rem; font-weight: 650; text-decoration: none; }
.chip:hover { border-color: var(--teal, #0e8b8c); color: var(--teal-dark, #087172); }
/* ---- China overview ---- */
.china-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.6rem; align-items: center; }
.china-intro .check-list { margin: 1rem 0 1.2rem; }
.rm-svg--china { width: 100%; min-width: 0; max-height: 72vh; }
.route-map--china .route-map-seq { font-size: .78rem; }
.rm-svg--china a { cursor: pointer; }
.rm-svg--china a:hover .rm-pname, .rm-svg--china a:focus .rm-pname { fill: #5ce9d5; }
.origin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.origin-card { display: flex; flex-direction: column; gap: .45rem; color: inherit; text-decoration: none; }
.origin-card h3 { margin: .2rem 0 0; }
.origin-card p { margin: 0; font-size: .92rem; }
.origin-card-meta { font-size: .8rem !important; color: var(--teal-dark, #087172); font-weight: 700; }
.origin-card .text-link { margin-top: auto; }
.route-map--china .route-mobile-stop a { color: #fff; text-decoration: none; }
@media (max-width: 900px) { .china-hero { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .origin-grid { grid-template-columns: 1fr; } }

/* departure-area inset on small-scale maps (same Mercator projection, larger scale) */
.rm-inset-bg { fill: #07243b; fill-opacity: .95; }
.rm-inset-frame { fill: none; stroke: #5ce9d5; stroke-opacity: .55; stroke-width: 1.2; }
.rm-inset-title { font-family: var(--font, Inter, sans-serif); font-size: 9px; font-weight: 700; letter-spacing: 1.6px; fill: #9fd0da; }
.rm-inset-line { fill: none; stroke: #5ce9d5; stroke-width: 2; stroke-dasharray: 6 5; stroke-linecap: round; stroke-linejoin: round; }
.rm-inset .rm-sea-lab { font-size: 9.5px; letter-spacing: 2.2px; }
.rm-inset .rm-land-lab { font-size: 9px; letter-spacing: 2px; }
.rm-inset .rm-sea-lab.rm-lab-sm { font-size: 8.5px; letter-spacing: 1.4px; }
.rm-locator { fill: none; stroke: #eafffb; stroke-opacity: .75; stroke-width: 1.2; stroke-dasharray: 3 2; }
