:root {
  --ink: #1b1b18;
  --ink-soft: #4f504b;
  --charcoal: #171714;
  --charcoal-soft: #252521;
  --paper: #f7f5ef;
  --paper-deep: #ebe7dc;
  --white: #fffefa;
  --line: #d9d4c7;
  --line-dark: #6d6b62;
  --gold: #c7a13a;
  --gold-bright: #efc94e;
  --gold-deep: #8e6c19;
  --success: #315f48;
  --danger: #8a332d;
  --shadow-sm: 0 8px 24px rgb(23 23 20 / 8%);
  --shadow-lg: 0 28px 80px rgb(23 23 20 / 18%);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 22px;
  --shell: min(1200px, calc(100% - 48px));
  --train-theme-ink: #171714;
  --train-theme-muted: #4f504b;
  --train-theme-surface: #f7f5ef;
  --train-theme-panel: #fffefa;
  --train-theme-line: #d9d4c7;
  --train-theme-accent: #735514;
  --train-theme-accent-fill: #efc94e;
  --train-theme-on-accent: #171714;
  --train-theme-display: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  --train-theme-radius: 8px;
  --train-theme-shadow: 0 10px 32px rgb(23 23 20 / 8%);
  --train-theme-band: rgb(115 85 20 / 16%);
  font-family: Inter, "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

[data-brand-theme="belmond"] {
  --train-theme-ink: #1a1a1a;
  --train-theme-muted: #4f504b;
  --train-theme-surface: #f4f4f2;
  --train-theme-panel: #ffffff;
  --train-theme-line: #d2d2ce;
  --train-theme-accent: #1a1a1a;
  --train-theme-accent-fill: #e9e9e6;
  --train-theme-on-accent: #ffffff;
  --train-theme-radius: 0;
  --train-theme-shadow: none;
  --train-theme-band: rgb(26 26 26 / 14%);
}

[data-brand-theme="orient-express"] {
  --train-theme-ink: #041c2c;
  --train-theme-muted: #4a5862;
  --train-theme-surface: #f7f5f0;
  --train-theme-panel: #ffffff;
  --train-theme-line: #b9c5ce;
  --train-theme-accent: #00274f;
  --train-theme-accent-fill: #d8e5ef;
  --train-theme-on-accent: #ffffff;
  --train-theme-radius: 2px;
  --train-theme-shadow: 0 12px 34px rgb(0 39 79 / 8%);
  --train-theme-band: rgb(0 39 79 / 13%);
}

[data-brand-theme="sjourney"] {
  --train-theme-ink: #101010;
  --train-theme-muted: #514a43;
  --train-theme-surface: #fffbee;
  --train-theme-panel: #ffffff;
  --train-theme-line: #d8cdbc;
  --train-theme-accent: #9b0213;
  --train-theme-accent-fill: #f3e2c2;
  --train-theme-on-accent: #ffffff;
  --train-theme-radius: 4px;
  --train-theme-shadow: 0 10px 28px rgb(155 2 19 / 10%);
  --train-theme-band: rgb(155 2 19 / 13%);
}

[data-brand-theme="journey-beyond"] {
  --train-theme-ink: #172f38;
  --train-theme-muted: #52636a;
  --train-theme-surface: #f2f0e8;
  --train-theme-panel: #fffefa;
  --train-theme-line: #c7bda8;
  --train-theme-accent: #8d2f2c;
  --train-theme-accent-fill: #dfc798;
  --train-theme-on-accent: #ffffff;
  --train-theme-radius: 3px;
  --train-theme-shadow: 0 12px 34px rgb(23 47 56 / 10%);
  --train-theme-band: rgb(141 47 44 / 14%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0, rgb(199 161 58 / 3%) 50%, transparent 100%),
    var(--paper);
  line-height: 1.65;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  font-weight: 600;
  line-height: 1.25;
  text-wrap: balance;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  color: var(--charcoal);
  background: var(--gold-bright);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 3px;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  line-height: 1.4;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  min-height: 76px;
  padding: 10px max(24px, calc((100vw - 1200px) / 2));
  color: var(--white);
  border-bottom: 1px solid rgb(239 201 78 / 20%);
  background: rgb(23 23 20 / 96%);
  box-shadow: 0 1px 0 rgb(255 255 255 / 4%);
  backdrop-filter: blur(18px);
}

.wordmark {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  line-height: 1.1;
}
.wordmark-mark { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 42px; color: var(--gold-bright); border: 1px solid var(--gold); font: 700 14px Georgia, serif; letter-spacing: .08em; }
.wordmark-copy { display: grid; }

.wordmark-en {
  color: var(--gold-bright);
  font-family: Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.wordmark-zh {
  margin-top: 5px;
  color: var(--white);
  font-size: 0.88rem;
  letter-spacing: 0.28em;
}

.primary-nav {
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  justify-content: center;
}

.primary-nav a {
  position: relative;
  color: #e9e6dd;
  font-size: 0.9rem;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--gold-bright);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-inquiry {
  justify-self: end;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: wait;
  opacity: 0.62;
  transform: none;
}

.button-primary {
  color: #191713;
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}

.button-primary:hover {
  border-color: #ffdc68;
  background: #ffdc68;
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-dark);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--gold-deep);
  background: rgb(199 161 58 / 8%);
}

.button-ghost {
  color: var(--gold-bright);
  border-color: rgb(239 201 78 / 56%);
  background: transparent;
}

.button-ghost:hover {
  color: var(--charcoal);
  background: var(--gold-bright);
}

.text-link {
  color: var(--white);
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}

.hero {
  position: relative;
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
  padding: clamp(70px, 8vw, 118px) max(24px, calc((100vw - 1200px) / 2));
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(118deg, rgb(23 23 20 / 99%) 0%, rgb(29 29 26 / 97%) 55%, rgb(42 40 34 / 96%) 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(239 201 78 / 34%), transparent);
  transform: rotate(-7deg);
}

.hero::before {
  top: 18%;
  right: -8%;
  width: 58%;
}

.hero::after {
  right: -2%;
  bottom: 18%;
  width: 46%;
}

.hero-copy,
.hero-art {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 690px;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 32px;
  color: #d9d7cf;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}

.hero-facts {
  display: grid;
  max-width: 660px;
  grid-template-columns: repeat(3, 1fr);
  margin: 52px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgb(239 201 78 / 28%);
}

.hero-facts div {
  padding: 0 20px;
  border-left: 1px solid rgb(255 255 255 / 13%);
}

.hero-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  color: var(--gold-bright);
  font-size: 0.84rem;
  font-weight: 750;
}

.hero-facts dd {
  margin: 3px 0 0;
  color: #bcbab3;
  font-size: 0.8rem;
}

.hero-art {
  width: min(100%, 480px);
  justify-self: end;
}

.window-frame {
  position: relative;
  aspect-ratio: 0.84;
  overflow: hidden;
  border: clamp(12px, 2vw, 22px) solid #34332e;
  border-radius: 52% 52% 20px 20px / 20% 20% 20px 20px;
  background: linear-gradient(#aca59a 0 34%, #767b72 34% 48%, #4c504a 48% 100%);
  box-shadow:
    0 0 0 1px rgb(239 201 78 / 65%),
    0 0 0 10px #20201d,
    0 36px 80px rgb(0 0 0 / 38%),
    inset 0 0 42px rgb(0 0 0 / 34%);
}

.window-frame::before {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  left: 0;
  height: 18%;
  content: "";
  border-bottom: 1px solid rgb(239 201 78 / 45%);
  background: linear-gradient(180deg, rgb(26 26 23 / 90%), rgb(26 26 23 / 18%));
}

.window-frame::after {
  position: absolute;
  z-index: 6;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, rgb(239 201 78 / 58%), transparent 68%);
}

.window-landscape {
  position: absolute;
  z-index: 1;
  right: -10%;
  bottom: 42%;
  left: -10%;
  height: 32%;
  background:
    linear-gradient(145deg, transparent 0 27%, #5e635a 28% 46%, transparent 47%),
    linear-gradient(30deg, transparent 0 35%, #666b61 36% 58%, transparent 59%),
    linear-gradient(150deg, transparent 0 44%, #454a44 45% 70%, transparent 71%);
}

.window-horizon {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 38%;
  left: 0;
  height: 1px;
  background: rgb(239 201 78 / 65%);
}

.window-rail {
  position: absolute;
  z-index: 4;
  bottom: -5%;
  width: 5px;
  height: 58%;
  background: linear-gradient(90deg, #151512, var(--gold-bright), #27261f);
  box-shadow: 0 0 10px rgb(0 0 0 / 50%);
  transform-origin: bottom;
}

.rail-left {
  left: 23%;
  transform: rotate(12deg);
}

.rail-right {
  right: 23%;
  transform: rotate(-12deg);
}

.window-sleepers {
  position: absolute;
  z-index: 3;
  right: 9%;
  bottom: -8%;
  left: 9%;
  height: 57%;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0 8%,
    rgb(31 30 26 / 96%) 8.5% 10.5%,
    transparent 11% 17%
  );
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
}

.hero-art-caption {
  margin: 25px 0 0;
  color: #aaa79f;
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.27em;
  text-align: center;
}

.source-boundary {
  display: flex;
  width: var(--shell);
  gap: 16px;
  align-items: flex-start;
  margin: 0 auto;
  padding: 22px 0;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.source-boundary p {
  margin: 0;
}

.boundary-mark {
  width: 38px;
  min-width: 38px;
  height: 10px;
  margin-top: 7px;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.brand-section,
.service-section {
  padding-block: clamp(70px, 9vw, 120px);
}

.country-section {
  padding-block: clamp(70px, 8vw, 104px);
  color: var(--white);
  border-block: 1px solid rgb(239 201 78 / 18%);
  background:
    linear-gradient(122deg, rgb(23 23 20 / 99%), rgb(42 40 34 / 97%)),
    var(--charcoal);
}

.country-section .section-heading > p {
  color: #c8c5bc;
}

.country-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.country-card {
  position: relative;
  display: flex;
  min-height: 232px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  overflow: hidden;
  color: var(--white);
  border: 1px solid rgb(239 201 78 / 28%);
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgb(255 255 255 / 4%), rgb(255 255 255 / 1%));
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.country-card::before,
.country-card::after {
  position: absolute;
  right: -18%;
  width: 76%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(239 201 78 / 48%), transparent);
  transform: rotate(-13deg);
  transform-origin: right center;
}

.country-card::before {
  top: 42%;
}

.country-card::after {
  top: 57%;
}

.country-card:hover {
  border-color: var(--gold-bright);
  background-color: rgb(239 201 78 / 6%);
  transform: translateY(-3px);
}

.country-card-index,
.country-card-name,
.country-card-link {
  position: relative;
  z-index: 1;
}

.country-card-index {
  color: var(--gold-bright);
  font-family: Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.country-card-name {
  display: flex;
  flex-direction: column;
  margin-block: 28px 34px;
}

.country-card-name strong {
  font-family: "Noto Serif TC", "Songti TC", "PMingLiU", Georgia, serif;
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  font-weight: 500;
  line-height: 1.2;
}

.country-card-name small {
  margin-top: 6px;
  color: #aaa79f;
  font-family: Arial, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.country-card-link {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  color: #e5e2d9;
  border-top: 1px solid rgb(255 255 255 / 12%);
  font-size: 0.78rem;
  font-weight: 700;
}

.country-card-link span {
  color: var(--gold-bright);
  font-size: 1rem;
  transition: transform 180ms ease;
}

.country-card:hover .country-card-link span {
  transform: translateX(3px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 40px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.service-intro h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
  letter-spacing: -0.03em;
}

.section-heading > p {
  margin-bottom: 4px;
  color: var(--ink-soft);
}

.brand-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.brand-card,
.brand-placeholder {
  position: relative;
  min-height: 210px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--white);
}

.brand-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: inherit;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.brand-card::after {
  position: absolute;
  right: -22px;
  bottom: 28px;
  width: 116px;
  height: 54px;
  content: "";
  border: 1px solid rgb(199 161 58 / 42%);
  border-radius: 40% 10px 10px 40%;
  box-shadow: inset 0 0 0 9px var(--white), inset 0 0 0 10px rgb(199 161 58 / 20%);
}

.brand-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.brand-card-code {
  color: var(--gold-deep);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.brand-card strong {
  display: block;
  max-width: 82%;
  margin: 36px 0 5px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.25rem;
  line-height: 1.3;
}

.brand-card small {
  max-width: 78%;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.brand-card[data-brand-theme] {
  color: var(--train-theme-ink);
  border-color: var(--train-theme-line);
  border-radius: var(--train-theme-radius);
  background: var(--train-theme-panel);
  box-shadow: var(--train-theme-shadow);
}

.brand-card[data-brand-theme]::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: var(--train-theme-accent);
}

.brand-card[data-brand-theme]::after {
  border-color: var(--train-theme-band);
  box-shadow:
    inset 0 0 0 9px var(--train-theme-panel),
    inset 0 0 0 10px var(--train-theme-band);
}

.brand-card[data-brand-theme]:hover {
  border-color: var(--train-theme-accent);
  box-shadow: var(--train-theme-shadow);
  transform: translateY(-2px);
}

.brand-card[data-brand-theme] .brand-card-code {
  color: var(--train-theme-accent);
}

.brand-card[data-brand-theme] strong {
  color: var(--train-theme-ink);
  font-family: var(--train-theme-display);
}

.brand-card[data-brand-theme] small {
  color: var(--train-theme-muted);
}

.brand-card[data-brand-theme="belmond"]::after {
  height: 1px;
  border: 0;
  border-radius: 0;
  background: var(--train-theme-accent);
  box-shadow: 0 12px 0 var(--train-theme-band);
  transform: rotate(-6deg);
}

.brand-card[data-brand-theme="sjourney"]::after {
  right: 0;
  bottom: 0;
  width: 7px;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: var(--train-theme-accent);
  box-shadow: none;
}

.brand-card {
  min-height: 330px;
  justify-content: flex-start;
}

.brand-card::after {
  display: none;
}

.brand-card-media {
  position: relative;
  display: block;
  height: 150px;
  margin: -26px -26px 20px;
  overflow: hidden;
  background: var(--paper-deep);
}

.brand-card-media img,
.brand-card-media .media-placeholder {
  width: 100%;
  height: 100%;
}

.brand-card-media img {
  object-fit: cover;
}

.brand-card-media .media-placeholder {
  display: grid;
  place-items: center;
}

.brand-card-media .media-placeholder span {
  color: var(--train-theme-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-card .brand-card-code {
  position: relative;
}

.brand-card strong {
  margin-top: 12px;
}

.country-directory {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.country-card {
  min-height: 184px;
}

.country-card-name {
  margin-block: 18px 22px;
}

.country-card-name strong {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.brand-placeholder,
.journey-card-loading {
  overflow: hidden;
  background: #e8e4da;
}

.brand-placeholder::after,
.journey-card-loading::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / 62%) 48%, transparent 76%);
  animation: shimmer 1.4s infinite;
  transform: translateX(-110%);
}

@keyframes shimmer {
  to { transform: translateX(110%); }
}

.search-section {
  padding-block: clamp(70px, 8vw, 112px);
  background: #eae6dc;
  box-shadow: inset 0 1px var(--line), inset 0 -1px var(--line);
}

.filter-panel {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 14px;
  padding: 24px;
  border: 1px solid #d2ccbd;
  border-radius: var(--radius-md);
  background: rgb(255 254 250 / 84%);
  box-shadow: var(--shadow-sm);
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field label,
.field > label {
  color: #54534e;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  border: 1px solid #bcb7aa;
  border-radius: var(--radius-sm);
  background: var(--white);
}

.field textarea {
  min-height: 108px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #89877f;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--gold-deep);
  outline: 2px solid rgb(199 161 58 / 25%);
  outline-offset: 1px;
}

.filter-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.results-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin: 54px 0 22px;
}

.results-toolbar h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
}

.results-kicker {
  margin-bottom: 2px;
  color: var(--gold-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.results-count {
  margin-bottom: 3px;
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.journey-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #d5cfc0;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 7px 25px rgb(36 35 30 / 6%);
}

.journey-card:not(.journey-card-loading) {
  display: flex;
  flex-direction: column;
}

.journey-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--charcoal-soft);
}

.journey-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.journey-card:hover .journey-card-media img {
  transform: scale(1.025);
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #c8c4b9;
  background: linear-gradient(145deg, #22221e, #3d3b34);
}

.media-placeholder::before,
.media-placeholder::after {
  position: absolute;
  bottom: -15%;
  width: 3px;
  height: 90%;
  content: "";
  background: var(--gold);
}

.media-placeholder::before {
  left: 35%;
  transform: rotate(12deg);
}

.media-placeholder::after {
  right: 35%;
  transform: rotate(-12deg);
}

.media-placeholder span {
  position: relative;
  z-index: 1;
  padding: 8px 12px;
  border: 1px solid rgb(239 201 78 / 38%);
  background: rgb(23 23 20 / 75%);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
}

.journey-card-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: var(--white);
  border: 1px solid rgb(239 201 78 / 45%);
  border-radius: 999px;
  background: rgb(23 23 20 / 78%);
  font-size: 0.7rem;
  backdrop-filter: blur(8px);
}

.journey-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.journey-card-brand {
  margin-bottom: 7px;
  color: var(--gold-deep);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.journey-card h4 {
  margin: 0 0 5px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.23rem;
  line-height: 1.35;
}

.journey-card-en {
  margin-bottom: 14px;
  color: #737169;
  font-size: 0.77rem;
  line-height: 1.45;
}

.journey-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 17px;
}

.journey-meta span {
  padding: 4px 8px;
  color: #585750;
  border: 1px solid #ddd8cc;
  border-radius: 999px;
  font-size: 0.72rem;
}

.journey-card-route {
  display: -webkit-box;
  margin-bottom: 18px;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.82rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.journey-card .button {
  width: 100%;
  margin-top: auto;
}

.notice,
.empty-state {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.notice-error {
  color: var(--danger);
  border-color: rgb(138 51 45 / 30%);
  background: #fff8f6;
}

.empty-state {
  grid-column: 1 / -1;
  padding-block: 58px;
  text-align: center;
}

.empty-state h4 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.empty-state p {
  margin-bottom: 18px;
  color: var(--ink-soft);
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  margin-top: 34px;
}

.page-button {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  padding: 7px 10px;
  border: 1px solid #bdb8ab;
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}

.page-button:hover,
.page-button[aria-current="page"] {
  color: var(--charcoal);
  border-color: var(--gold);
  background: var(--gold-bright);
}

.page-button:disabled {
  cursor: default;
  opacity: 0.42;
}

.shadow-route-page-link {
  width: calc(100% - 32px);
  margin: 14px 16px 0;
}

.journey-card-actions {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.journey-card-actions .button {
  margin-top: 0;
}

.route-directory-link {
  justify-self: center;
  text-align: center;
}

body.route-page-journeys #train-search {
  display: none;
}

body.route-page-journeys #train-dialog.standalone-detail {
  position: relative;
  inset: auto;
  display: block;
  width: min(1100px, calc(100% - 32px));
  max-height: none;
  margin: clamp(28px, 5vw, 68px) auto;
  overflow: visible;
}

body.route-page-journeys #train-dialog.standalone-detail .modal-surface {
  max-height: none;
  overflow: visible;
}

body.route-page-journeys #train-dialog.standalone-detail::backdrop {
  display: none;
}

body.route-page-error #train-search {
  display: block;
}

body.route-page .hero,
body.route-page .source-boundary,
body.route-page #brands,
body.route-page #route-countries,
body.route-page #service {
  display: none;
}

body.route-page .site-header {
  grid-template-columns: 1fr auto;
}

body.route-page .primary-nav {
  display: none;
}

body.route-page .search-section {
  min-height: calc(100vh - 76px);
  padding-block: clamp(44px, 6vw, 76px);
  background:
    linear-gradient(180deg, rgb(255 254 250 / 68%), transparent 240px),
    #eae6dc;
}

body.route-page #filter-form {
  display: none;
}

body.route-page .search-heading {
  margin-bottom: clamp(32px, 5vw, 52px);
}

body.route-page .results-toolbar {
  margin-top: 0;
}

body.route-page .results-grid {
  scroll-margin-top: 96px;
}

body.route-page .pagination {
  padding-top: 2px;
}

.service-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: clamp(50px, 8vw, 112px);
}

.service-intro > p:not(.eyebrow) {
  max-width: 650px;
  margin: 23px 0 30px;
  color: var(--ink-soft);
}

.service-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-steps li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}

.service-steps li:first-child {
  border-top: 1px solid var(--line);
}

.service-steps li > span {
  color: var(--gold-deep);
  font-family: Georgia, serif;
  font-size: 1.2rem;
}

.service-steps strong {
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.08rem;
}

.service-steps p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.site-footer {
  display: grid;
  width: 100%;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  padding: 38px max(24px, calc((100vw - 1200px) / 2));
  color: #d0cdc4;
  border-top: 1px solid rgb(239 201 78 / 16%);
  background: var(--charcoal);
  font-size: 0.8rem;
}

.site-footer strong {
  display: block;
  margin-top: 3px;
  color: var(--white);
  letter-spacing: 0.18em;
}
.site-footer small { display: block; margin-top: 6px; color: #aaa79e; font-size: .7rem; letter-spacing: .08em; }

.site-footer p {
  margin: 0;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
}

.footer-links button,
.footer-links a {
  padding: 0;
  color: #d0cdc4;
  border: 0;
  border-bottom: 1px solid #77746b;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.modal {
  width: min(920px, calc(100% - 28px));
  max-height: min(900px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  border: 1px solid rgb(199 161 58 / 54%);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-lg);
}

.modal::backdrop {
  background: rgb(13 13 11 / 76%);
  backdrop-filter: blur(5px);
}

.modal-surface {
  max-height: min(900px, calc(100dvh - 28px));
  padding: clamp(22px, 4vw, 42px);
  overflow: auto;
}

.detail-modal {
  width: min(1100px, calc(100% - 28px));
}

.modal-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
}

.icon-button {
  display: grid;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  color: var(--white);
  border: 1px solid #44443e;
  border-radius: 50%;
  background: var(--charcoal);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.detail-content {
  min-height: 240px;
  padding-block: 28px;
}

.detail-loading {
  display: grid;
  min-height: 260px;
  place-items: center;
  color: var(--ink-soft);
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.detail-hero-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--charcoal);
}

.detail-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-brand {
  margin-bottom: 8px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-hero h3 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 3.3vw, 3rem);
}

.detail-title-en {
  color: #77746b;
  font-size: 0.85rem;
}

.detail-summary {
  margin: 22px 0 0;
  color: var(--ink-soft);
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin: 0 0 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-facts div {
  padding: 17px;
  border-left: 1px solid var(--line);
}

.detail-facts div:first-child {
  border-left: 0;
}

.detail-facts dt {
  color: #77746b;
  font-size: 0.7rem;
  font-weight: 750;
}

.detail-facts dd {
  margin: 4px 0 0;
  font-size: 0.9rem;
}

.detail-section {
  margin-top: 34px;
}

.detail-section h4 {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.3rem;
}

.detail-section p,
.detail-section li {
  color: var(--ink-soft);
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25rem;
}

.representative-routes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.route-card {
  position: relative;
  min-width: 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.route-card::after {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 86px;
  height: 86px;
  content: "";
  border: 1px solid rgb(199 161 58 / 28%);
  border-radius: 50%;
}

.route-card-number {
  margin-bottom: 12px;
  color: var(--gold-deep) !important;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.route-card h5 {
  margin: 0 0 8px;
  font-family: "Noto Serif TC", "Songti TC", serif;
  font-size: 1.08rem;
  line-height: 1.4;
}

.route-card-duration {
  margin-bottom: 9px;
  color: var(--gold-deep) !important;
  font-size: 0.78rem;
  font-weight: 700;
}

.route-card-stops,
.route-card-summary {
  position: relative;
  z-index: 1;
  margin-bottom: 0;
  font-size: 0.8rem;
}

.route-card-summary {
  margin-top: 9px;
}

.itinerary-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.itinerary-list li {
  display: grid;
  grid-template-columns: minmax(90px, 0.25fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.itinerary-list strong {
  color: var(--gold-deep);
}

.itinerary-list p {
  margin: 3px 0 0;
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shadow-media-hero {
  margin: 0 0 12px;
}

.shadow-media-hero > .detail-hero-media {
  aspect-ratio: 16 / 7;
}

.detail-gallery figure {
  margin: 0;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.detail-gallery figcaption {
  margin-top: 5px;
  color: #77746b;
  font-size: 0.72rem;
}

.official-boundary {
  margin-top: 34px;
  padding: 18px 20px;
  color: #4c4b45;
  border-left: 3px solid var(--gold);
  background: #eee9dc;
  font-size: 0.82rem;
}

.detail-actions,
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.form-boundary {
  margin: 20px 0;
  padding: 12px 14px;
  color: var(--ink-soft);
  border-left: 3px solid var(--gold);
  background: #ece8dd;
  font-size: 0.8rem;
}

.selected-journey {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.selected-journey strong,
.selected-journey span {
  display: block;
}

.selected-journey span {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field-full {
  grid-column: 1 / -1;
}

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--gold-deep);
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.form-status {
  min-height: 24px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.privacy-copy {
  padding-block: 24px;
}

.privacy-copy h3 {
  margin: 24px 0 7px;
  font-size: 1.08rem;
}

.privacy-copy p {
  margin-bottom: 0;
  color: var(--ink-soft);
}


.detail-modal[data-brand-theme] {
  color: var(--train-theme-ink);
  border-color: var(--train-theme-accent);
  border-radius: var(--train-theme-radius);
  background: var(--train-theme-surface);
  box-shadow: var(--train-theme-shadow);
}

.detail-modal[data-brand-theme] .modal-surface {
  background: var(--train-theme-surface);
}

.detail-modal[data-brand-theme] .modal-header,
.detail-modal[data-brand-theme] .detail-facts,
.detail-modal[data-brand-theme] .detail-facts div,
.detail-modal[data-brand-theme] .detail-section h4,
.detail-modal[data-brand-theme] .detail-actions,
.detail-modal[data-brand-theme] .itinerary-list li {
  border-color: var(--train-theme-line);
}

.detail-modal[data-brand-theme] .modal-header h2,
.detail-modal[data-brand-theme] .detail-hero h3,
.detail-modal[data-brand-theme] .detail-section h4,
.detail-modal[data-brand-theme] .route-card h5 {
  color: var(--train-theme-ink);
  font-family: var(--train-theme-display);
}

.detail-modal[data-brand-theme] .eyebrow,
.detail-modal[data-brand-theme] .detail-brand,
.detail-modal[data-brand-theme] .itinerary-list strong,
.detail-modal[data-brand-theme] .route-card-number,
.detail-modal[data-brand-theme] .route-card-duration {
  color: var(--train-theme-accent) !important;
}

.detail-modal[data-brand-theme] .detail-title-en,
.detail-modal[data-brand-theme] .detail-summary,
.detail-modal[data-brand-theme] .detail-section p,
.detail-modal[data-brand-theme] .detail-section li,
.detail-modal[data-brand-theme] .detail-facts dt,
.detail-modal[data-brand-theme] .detail-gallery figcaption {
  color: var(--train-theme-muted);
}

.detail-modal[data-brand-theme] .detail-hero-media {
  border-radius: var(--train-theme-radius);
  background: var(--train-theme-accent);
}

.detail-modal[data-brand-theme] .route-card,
.detail-modal[data-brand-theme] .departure-card {
  color: var(--train-theme-ink);
  border-color: var(--train-theme-line);
  border-radius: var(--train-theme-radius);
  background: var(--train-theme-panel);
  box-shadow: var(--train-theme-shadow);
}

.detail-modal[data-brand-theme] .official-boundary,
.detail-modal[data-brand-theme] .inventory-empty-state {
  color: var(--train-theme-muted);
  border-color: var(--train-theme-accent);
  background: var(--train-theme-accent-fill);
}

.detail-modal[data-brand-theme] .icon-button {
  color: var(--train-theme-on-accent);
  border-color: var(--train-theme-accent);
  background: var(--train-theme-accent);
}

.detail-modal[data-brand-theme] .button-secondary {
  color: var(--train-theme-accent);
  border-color: var(--train-theme-accent);
}

.detail-modal[data-brand-theme] .button-primary {
  color: var(--train-theme-on-accent);
  border-color: var(--train-theme-accent);
  background: var(--train-theme-accent);
}

.detail-modal[data-brand-theme="belmond"] .detail-content {
  padding-block: clamp(34px, 5vw, 58px);
}

.detail-modal[data-brand-theme="belmond"] .detail-section {
  margin-top: 46px;
}

.detail-modal[data-brand-theme="orient-express"] .detail-hero > div:last-child {
  padding-inline: clamp(0px, 2vw, 24px);
  text-align: center;
}

.detail-modal[data-brand-theme="orient-express"] .detail-brand {
  letter-spacing: 0.16em;
}

.detail-modal[data-brand-theme="sjourney"] .detail-facts {
  color: var(--train-theme-on-accent);
  border-color: var(--train-theme-accent);
  background: var(--train-theme-accent);
}

.detail-modal[data-brand-theme="sjourney"] .detail-facts div {
  border-color: rgb(255 255 255 / 28%);
}

.detail-modal[data-brand-theme="sjourney"] .detail-facts dt,
.detail-modal[data-brand-theme="sjourney"] .detail-facts dd {
  color: var(--train-theme-on-accent);
}

.inventory-empty-state {
  padding: 22px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: var(--radius-sm);
}

.inventory-empty-state strong {
  display: block;
  margin-bottom: 5px;
}

.inventory-empty-state p,
.inventory-intro,
.departure-return,
.departure-captured {
  margin-bottom: 0;
  font-size: 0.8rem;
}

.inventory-intro {
  margin-bottom: 16px;
}

.departure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.departure-card {
  padding: 18px;
  border: 1px solid var(--line);
}

.departure-card-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.departure-date,
.departure-price {
  display: block;
  color: var(--train-theme-ink);
}

.departure-status {
  flex: 0 0 auto;
  padding: 3px 8px;
  color: var(--train-theme-on-accent);
  border-radius: 999px;
  background: var(--train-theme-accent);
  font-size: 0.7rem;
}

.departure-return {
  margin-top: 7px;
}

.departure-price {
  margin-top: 14px;
  font-size: 1rem;
}

.departure-captured {
  margin-top: 6px;
}

.departure-more {
  margin-top: 14px;
}

.departure-more summary {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--train-theme-accent);
  border: 1px solid var(--train-theme-line);
  cursor: pointer;
  font-weight: 750;
}

.departure-more .departure-grid {
  margin-top: 12px;
}

.candidate-shadow-boundary {
  margin-bottom: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--train-theme-accent);
  background: var(--train-theme-accent-fill);
  font-size: 0.84rem;
}

.candidate-shadow-counts,
.shadow-date-list,
.shadow-fare-grid {
  display: grid;
  gap: 8px;
}

.candidate-shadow-counts {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  margin-bottom: 18px;
}

.candidate-shadow-counts span,
.shadow-date-chip,
.shadow-fare-card {
  padding: 9px 10px;
  border: 1px solid var(--train-theme-line);
}

.candidate-shadow-counts span,
.shadow-date-chip small,
.shadow-price-boundary,
.shadow-copy-boundary,
.shadow-observed,
.shadow-fare-facts {
  color: var(--train-theme-muted);
  font-size: 0.72rem;
}

.shadow-journey-group {
  margin-top: 10px;
  border: 1px solid var(--train-theme-line);
  background: var(--train-theme-panel);
}

.shadow-journey-group > summary {
  display: flex;
  min-height: 54px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  cursor: pointer;
}

.shadow-journey-group > summary span {
  flex: 1;
  color: var(--train-theme-muted);
  font-size: 0.74rem;
  text-align: right;
}

.shadow-journey-group > summary::-webkit-details-marker {
  display: none;
}

.shadow-journey-group > summary::after {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border: 1px solid var(--train-theme-line);
  color: var(--train-theme-accent);
  content: "+";
  font-size: 1rem;
  line-height: 1;
}

.shadow-journey-group[open] > summary::after {
  content: "−";
}

.shadow-detail-missing {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--train-theme-line);
  color: var(--train-theme-muted);
  background: var(--train-theme-accent-fill);
  font-size: 0.82rem;
}

.shadow-subsection {
  padding: 16px;
  border-top: 1px solid var(--train-theme-line);
}

.shadow-subsection h6 {
  margin: 0 0 10px;
  color: var(--train-theme-ink);
  font-family: var(--train-theme-display);
  font-size: 0.95rem;
}

.shadow-date-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shadow-date-chip,
.shadow-fare-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.shadow-fare-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.shadow-fare-card {
  gap: 5px;
}

.shadow-fare-amount {
  color: var(--train-theme-accent);
  font-weight: 800;
}

.shadow-fare-withheld {
  color: var(--train-theme-muted);
  font-weight: 700;
}

.shadow-price-boundary {
  display: block;
}

.shadow-more {
  margin-top: 10px;
}

.shadow-more > summary {
  min-height: 42px;
  padding: 9px 10px;
  color: var(--train-theme-accent);
  cursor: pointer;
  font-weight: 700;
}

.shadow-itinerary-list {
  display: grid;
  gap: 7px;
}

.shadow-itinerary-list li {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
}

.shadow-day-content {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.shadow-day-title {
  color: var(--train-theme-ink);
  font-weight: 700;
}

.shadow-fact-list {
  display: grid;
  margin: 6px 0 0;
  padding: 0;
  gap: 5px;
  list-style: none;
}

.shadow-fact-list li {
  display: grid;
  grid-template-columns: minmax(88px, 0.32fr) minmax(0, 1fr);
  gap: 10px;
}

.shadow-fact-label {
  color: var(--train-theme-accent);
  font-size: 0.72rem;
  font-weight: 800;
}


.shadow-overview p,
.shadow-itinerary-longform p {
  margin: 0.65rem 0 0;
  color: var(--train-theme-muted);
  line-height: 1.78;
}

.shadow-route-line {
  color: var(--train-theme-ink);
  font-weight: 700;
  line-height: 1.7;
}

.shadow-day-location {
  color: var(--train-theme-accent);
  font-size: 0.76rem;
  font-weight: 750;
}

.shadow-itinerary-longform {
  gap: 16px;
}

.shadow-itinerary-longform li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--train-theme-line);
}

.shadow-rich-list {
  display: grid;
  margin: 0;
  padding-left: 1.15rem;
  gap: 8px;
  color: var(--train-theme-muted);
  line-height: 1.7;
}

.shadow-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.shadow-video-card {
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--train-theme-line);
  background: var(--train-theme-accent-fill);
}

.shadow-video-copy {
  display: grid;
  min-height: 180px;
  align-content: center;
  justify-items: start;
  padding: 20px;
  gap: 10px;
}

.shadow-video-copy span {
  color: var(--train-theme-muted);
  font-size: 0.76rem;
}

.shadow-video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}


.detail-owner {
  margin: 0;
  color: var(--train-theme-accent);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.journey-card[data-brand-theme] {
  color: var(--train-theme-ink);
  border-color: var(--train-theme-line);
  border-radius: var(--train-theme-radius);
  background: var(--train-theme-panel);
  box-shadow: var(--train-theme-shadow);
}

.journey-card[data-brand-theme] .journey-card-brand {
  color: var(--train-theme-accent);
}

.journey-card[data-brand-theme] h4 {
  color: var(--train-theme-ink);
  font-family: var(--train-theme-display);
}

.journey-card[data-brand-theme] .journey-card-en,
.journey-card[data-brand-theme] .journey-card-route {
  color: var(--train-theme-muted);
}

.journey-card[data-brand-theme] .journey-meta span {
  color: var(--train-theme-muted);
  border-color: var(--train-theme-line);
  border-radius: var(--train-theme-radius);
}

.journey-card[data-brand-theme] .button-secondary {
  color: var(--train-theme-accent);
  border-color: var(--train-theme-accent);
  border-radius: var(--train-theme-radius);
}

.journey-card[data-brand-theme] .button-secondary:hover {
  color: var(--train-theme-on-accent);
  border-color: var(--train-theme-accent);
  background: var(--train-theme-accent);
}

.journey-card[data-brand-theme] .journey-card-badge {
  color: var(--train-theme-on-accent);
  border-color: var(--train-theme-accent-fill);
  background: var(--train-theme-accent);
}

.journey-card[data-brand-theme] .media-placeholder::before,
.journey-card[data-brand-theme] .media-placeholder::after {
  background: var(--train-theme-accent-fill);
}

.journey-card[data-brand-theme] .media-placeholder span {
  color: var(--train-theme-on-accent);
  border-color: var(--train-theme-accent-fill);
  background: var(--train-theme-accent);
}

.journey-card[data-brand-theme="belmond"] {
  border-color: #c8c8c4;
  box-shadow: none;
}

.journey-card[data-brand-theme="belmond"] .journey-card-body {
  padding: 24px;
}

.journey-card[data-brand-theme="belmond"] h4 {
  font-weight: 400;
  letter-spacing: -0.015em;
}

.journey-card[data-brand-theme="belmond"] .media-placeholder {
  color: #1a1a1a;
  background:
    linear-gradient(155deg, transparent 0 46%, rgb(26 26 26 / 8%) 46.2% 46.8%, transparent 47%),
    linear-gradient(135deg, #deded9, #f4f4f2);
}

.journey-card[data-brand-theme="belmond"] .media-placeholder::before,
.journey-card[data-brand-theme="belmond"] .media-placeholder::after {
  background: #1a1a1a;
}

.journey-card[data-brand-theme="belmond"] .media-placeholder span {
  color: #1a1a1a;
  border-color: rgb(26 26 26 / 45%);
  background: rgb(244 244 242 / 88%);
}

.journey-card[data-brand-theme="orient-express"] {
  border-color: #00274f;
  box-shadow:
    inset 0 0 0 3px #ffffff,
    inset 0 0 0 4px #b9c5ce,
    var(--train-theme-shadow);
}

.journey-card[data-brand-theme="orient-express"] .journey-card-body {
  text-align: center;
}

.journey-card[data-brand-theme="orient-express"] .journey-card-brand {
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.journey-card[data-brand-theme="orient-express"] .journey-meta {
  justify-content: center;
}

.journey-card[data-brand-theme="orient-express"] .media-placeholder {
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(216 229 239 / 52%) 49.8% 50.2%, transparent 50.3%),
    linear-gradient(145deg, #041c2c, #00274f);
}

.journey-card[data-brand-theme="sjourney"] {
  background: #fffbee;
}

.journey-card[data-brand-theme="sjourney"] .journey-card-body {
  border-top: 5px solid #9b0213;
}

.journey-card[data-brand-theme="sjourney"] h4 {
  font-weight: 700;
}

.journey-card[data-brand-theme="sjourney"] .media-placeholder {
  background: linear-gradient(145deg, #101010 0 45%, #750612 100%);
}

.journey-card[data-brand-theme="sjourney"] .media-placeholder::before,
.journey-card[data-brand-theme="sjourney"] .media-placeholder::after {
  background: #fddc81;
}

.journey-card[data-brand-theme="sjourney"] .media-placeholder span {
  border-color: rgb(253 220 129 / 62%);
  background: rgb(117 6 18 / 88%);
}

.detail-modal[data-brand-theme="belmond"] .media-placeholder {
  color: #1a1a1a;
  background:
    linear-gradient(155deg, transparent 0 46%, rgb(26 26 26 / 8%) 46.2% 46.8%, transparent 47%),
    linear-gradient(135deg, #deded9, #f4f4f2);
}

.detail-modal[data-brand-theme="belmond"] .media-placeholder::before,
.detail-modal[data-brand-theme="belmond"] .media-placeholder::after {
  background: #1a1a1a;
}

.detail-modal[data-brand-theme="belmond"] .media-placeholder span {
  color: #1a1a1a;
  border-color: rgb(26 26 26 / 45%);
  background: rgb(244 244 242 / 88%);
}

.detail-modal[data-brand-theme="orient-express"] .media-placeholder {
  background:
    linear-gradient(90deg, transparent 49.7%, rgb(216 229 239 / 52%) 49.8% 50.2%, transparent 50.3%),
    linear-gradient(145deg, #041c2c, #00274f);
}

.detail-modal[data-brand-theme="orient-express"] .media-placeholder::before,
.detail-modal[data-brand-theme="orient-express"] .media-placeholder::after {
  background: #d8e5ef;
}

.detail-modal[data-brand-theme="orient-express"] .media-placeholder span {
  color: #ffffff;
  border-color: rgb(216 229 239 / 72%);
  background: rgb(0 39 79 / 88%);
}

.detail-modal[data-brand-theme="sjourney"] .media-placeholder {
  background: linear-gradient(145deg, #101010 0 45%, #750612 100%);
}

.detail-modal[data-brand-theme="sjourney"] .media-placeholder::before,
.detail-modal[data-brand-theme="sjourney"] .media-placeholder::after {
  background: #fddc81;
}

.detail-modal[data-brand-theme="sjourney"] .media-placeholder span {
  color: #ffffff;
  border-color: rgb(253 220 129 / 62%);
  background: rgb(117 6 18 / 88%);
}

.detail-modal[data-brand-theme="belmond"] .detail-hero {
  grid-template-columns: 1fr;
  gap: 34px;
}

.detail-modal[data-brand-theme="belmond"] .detail-hero > div:last-child {
  width: min(760px, 100%);
  grid-row: 1;
  margin-inline: auto;
  text-align: center;
}

.detail-modal[data-brand-theme="belmond"] .detail-hero > .detail-hero-media {
  grid-row: 2;
  aspect-ratio: 16 / 7;
}

.detail-modal[data-brand-theme="belmond"] .detail-hero h3 {
  font-weight: 400;
  letter-spacing: -0.02em;
}

.detail-modal[data-brand-theme="orient-express"] .detail-hero {
  grid-template-columns: 1fr;
  gap: 30px;
}

.detail-modal[data-brand-theme="orient-express"] .detail-hero > div:last-child {
  width: min(760px, 100%);
  margin-inline: auto;
  text-align: center;
}

.detail-modal[data-brand-theme="orient-express"] .detail-hero > .detail-hero-media {
  aspect-ratio: 16 / 7;
  outline: 1px solid #d8e5ef;
  outline-offset: -8px;
  box-shadow: inset 0 0 0 3px #00274f, inset 0 0 0 4px #b9c5ce;
}

.detail-modal[data-brand-theme="orient-express"] .detail-brand,
.detail-modal[data-brand-theme="orient-express"] .detail-owner {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-modal[data-brand-theme="orient-express"] .detail-facts {
  border: 1px solid #00274f;
  box-shadow: inset 0 0 0 3px #f7f5f0, inset 0 0 0 4px #b9c5ce;
}

.detail-modal[data-brand-theme="sjourney"] .detail-owner {
  color: #9b0213;
}

.detail-modal[data-brand-theme="sjourney"] .candidate-shadow-counts {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

@media (max-width: 720px) {
  .departure-grid {
    grid-template-columns: 1fr;
  }

  .candidate-shadow-counts,
  .shadow-date-list,
  .shadow-fare-grid {
    grid-template-columns: 1fr;
  }

  .shadow-video-grid {
    grid-template-columns: 1fr;
  }

  .shadow-journey-group > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .detail-modal[data-brand-theme="orient-express"] .detail-hero > div:last-child {
    text-align: center;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: min(100% - 36px, 760px);
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding-inline: 18px;
  }

  .primary-nav {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.65fr);
    gap: 42px;
    padding-inline: 32px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 7vw, 4.4rem);
  }

  .brand-directory,
  .results-grid,
  .country-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-keyword {
    grid-column: 1 / -1;
  }

  .service-section {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer p {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: calc(100% - 28px);
  }

  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    min-height: 66px;
  }

  .header-inquiry {
    min-height: 40px;
    padding: 7px 10px;
    font-size: 0.76rem;
  }

  .wordmark-en {
    font-size: 0.7rem;
  }

  .wordmark-zh {
    font-size: 0.74rem;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 64px 20px 52px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 11vw, 2.625rem);
  }

  .hero-art {
    display: none;
  }

  .hero-facts {
    margin-top: 40px;
  }

  .hero-facts div {
    padding-inline: 10px;
  }

  .hero-facts dd {
    display: none;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .brand-directory,
  .results-grid,
  .country-directory,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .country-card {
    min-height: 205px;
  }

  body.route-page .search-section {
    min-height: calc(100vh - 66px);
    padding-block: 38px 58px;
  }

  .field-keyword,
  .filter-actions {
    grid-column: auto;
  }

  .filter-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .results-toolbar {
    display: block;
  }

  .results-count {
    margin-top: 8px;
  }

  .journey-card {
    min-height: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .detail-hero {
    grid-template-columns: 1fr;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-facts div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-facts div:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .itinerary-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-gallery,
  .representative-routes,
  .inquiry-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }

  .detail-actions,
  .form-actions {
    display: grid;
  }

  .detail-actions {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-surface {
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 14mm;
  }

  :root {
    color: #111;
    background: #fff;
  }

  body {
    background: #fff;
    font-size: 10pt;
  }

  body.detail-printing > *:not(#train-dialog) {
    display: none !important;
  }

  body.detail-printing #train-dialog {
    position: static;
    display: block;
    width: 100%;
    max-height: none;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  body.detail-printing #train-dialog::backdrop,
  [data-print-hidden] {
    display: none !important;
  }

  .modal-surface,
  .detail-content {
    max-height: none;
    padding: 0;
    overflow: visible;
  }

  .detail-hero {
    grid-template-columns: 35% 1fr;
    break-inside: avoid;
  }

  .detail-facts,
  .detail-section,
  .route-card,
  .itinerary-list li,
  .official-boundary {
    break-inside: avoid;
  }

  .detail-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-gallery img,
  .detail-hero-media img {
    print-color-adjust: exact;
  }
}

/* Infinity Tour portfolio design system v2 */
@media screen {
  :root { font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
  .site-header { height: 78px; min-height: 78px; padding-top: 0; padding-bottom: 0; color: #17221d; border-bottom-color: rgb(23 34 29 / 16%); background: rgb(251 250 246 / 97%); box-shadow: none; }
  .wordmark { min-width: 0; display: inline-flex; align-items: center; gap: 0; }
  .brand-home { height: 46px; padding-right: 14px; display: inline-flex; align-items: center; border-right: 1px solid rgb(23 34 29 / 16%); }
  .brand-home img { width: auto; height: 36px; display: block; }
  .product-home { padding-left: 14px; color: #17221d; text-decoration: none; }
  .wordmark-copy { display: grid; line-height: 1.12; }
  .wordmark-zh { margin: 0; color: #17221d; font: 600 15px "Noto Serif TC", Georgia, serif; letter-spacing: .12em; }
  .wordmark-en { margin-top: 4px; color: #66736c; font: 700 8px "Noto Sans TC", sans-serif; letter-spacing: .24em; }
  .primary-nav a { color: #45534c; font-size: 12px; font-weight: 700; }
  .hero { height: 620px; min-height: 620px; background: linear-gradient(115deg, #101d17 0%, #1b3429 62%, #315443 100%); }
  .hero h1 { max-width: 780px; font-family: "Noto Serif TC", Georgia, serif; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.12; letter-spacing: .01em; }
  .button { min-height: 48px; border-radius: 0; }
  .site-footer { min-height: 180px; background: #0d1b15; }
}
@media screen and (max-width: 980px) { .site-header { grid-template-columns: 1fr auto; } }
@media screen and (max-width: 720px) {
  html { scroll-padding-top: 70px; }
  .site-header { height: 70px; min-height: 70px; padding-inline: 16px; }
  .brand-home { height: 42px; padding-right: 10px; }
  .brand-home img { height: 31px; }
  .product-home { padding-left: 10px; }
  .wordmark-zh { font-size: 13px; }
  .wordmark-en { font-size: 7px; }
  .header-inquiry { display: none; }
  .hero { height: 620px; min-height: 620px; padding: 64px 20px 52px; }
  .hero h1 { font-size: clamp(36px, 11vw, 42px); }
}

/* Infinity Tour portfolio design system v2.1 — compact charcoal / gold */
@media screen {
  .site-header {
    color: #fffefa;
    background: rgb(31 31 30 / 98%);
    border-bottom-color: rgb(200 169 106 / 48%);
  }
  .brand-home { border-right-color: rgb(200 169 106 / 42%); }
  .product-home, .wordmark-zh { color: #fffefa; }
  .product-home small, .wordmark-en { color: #efc94e; }
  .primary-nav a { color: #e4e0d7; }
  .hero {
    height: 310px;
    min-height: 310px;
    padding: 26px max(24px, calc((100vw - 1200px) / 2));
    gap: clamp(24px, 4vw, 58px);
    background: linear-gradient(118deg, rgb(29 29 28 / 99%) 0%, rgb(43 43 41 / 98%) 58%, rgb(58 57 53 / 97%) 100%);
  }
  .hero h1 { margin-bottom: 12px; font-size: clamp(34px, 3.3vw, 46px); line-height: 1.1; }
  .hero-lead { margin-bottom: 14px; font-size: 14px; line-height: 1.6; }
  .hero-actions { gap: 16px; }
  .hero-actions .button { min-height: 40px; padding-block: 8px; }
  .hero-facts { margin-top: 14px; padding-top: 10px; }
  .hero-facts div { padding-inline: 14px; }
  .hero-facts dt { font-size: 11px; }
  .hero-facts dd { margin-top: 2px; font-size: 9px; }
  .hero-art { width: min(100%, 360px); height: 238px; overflow: hidden; }
  .window-frame { height: 210px; aspect-ratio: auto; }
  .hero-art-caption { margin-top: 8px; }
}
@media screen and (max-width: 700px) {
  .site-header { height: 68px; min-height: 68px; padding-inline: 16px; }
  .hero {
    height: 330px;
    min-height: 330px;
    padding: 24px 20px;
    display: grid;
    grid-template-columns: 1fr;
  }
  .hero-copy { max-width: none; }
  .hero-art { display: none; }
  .hero h1 { margin-bottom: 9px; font-size: clamp(29px, 8.2vw, 34px); }
  .hero-lead { margin-bottom: 10px; font-size: 13px; line-height: 1.5; }
  .hero-actions { gap: 12px; }
  .hero-actions .button { min-height: 38px; padding: 7px 12px; font-size: 12px; }
  .hero-actions .text-link { font-size: 11px; }
  .hero-facts { margin-top: 11px; padding-top: 9px; }
  .hero-facts div { padding-inline: 8px; }
  .hero-facts dt { font-size: 10px; }
  .hero-facts dd { font-size: 8px; }
}

/* Infinity Tour portfolio design system v2.2 — desktop width and rhythm */
@media screen and (min-width: 901px) {
  .site-header,
  .hero {
    padding-inline: max(24px, calc((100vw - 1200px) / 2));
  }
  .hero { padding-block: 20px; }
  .hero .eyebrow { font-size: 12px; }
  .hero h1 { margin-bottom: 8px; font-size: clamp(34px, 2.8vw, 40px); line-height: 1.12; }
  .hero-lead { margin-bottom: 10px; font-size: 16px; line-height: 1.58; }
  .hero-facts { margin-top: 10px; padding-top: 8px; }
  .hero-facts dt { font-size: 12px; }
  .hero-facts dd,
  .hero-art-caption { font-size: 11.5px; line-height: 1.35; }
  .brand-section,
  .service-section { padding-block: 64px; }
  .country-section { padding-block: 64px; }
  .search-section { padding: 64px 0 72px; }
}


/* Train discovery layout v2.4 — compact headings, search first, mapped countries */
.section-heading h2,
.service-intro h2 {
  font-size: clamp(1.45rem, 2.25vw, 2.2rem);
}

.section-heading {
  margin-bottom: 28px;
}

.country-explorer {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.72fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: stretch;
}

.country-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid rgb(239 201 78 / 22%);
  border-radius: 24px;
  background:
    radial-gradient(circle at 73% 44%, rgb(239 201 78 / 10%), transparent 27%),
    linear-gradient(145deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1%));
}

.country-map-art,
.country-map-markers {
  position: absolute;
  inset: 22px 18px 46px;
  width: calc(100% - 36px);
  height: calc(100% - 68px);
}

.country-map-grid path {
  fill: none;
  stroke: rgb(255 255 255 / 5%);
  stroke-width: 1;
}

.country-map-land path {
  fill: rgb(214 205 178 / 12%);
  stroke: rgb(239 201 78 / 30%);
  stroke-width: 1.4;
}

.country-map-marker {
  position: absolute;
  z-index: 2;
  top: var(--map-y);
  left: var(--map-x);
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 4px 7px;
  color: #f5f2e8;
  border: 1px solid rgb(239 201 78 / 34%);
  border-radius: 999px;
  background: rgb(23 23 20 / 88%);
  box-shadow: 0 4px 14px rgb(0 0 0 / 25%);
  font-size: 0.66rem;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  transform: translate(-50%, -50%);
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.country-map-marker:hover,
.country-map-marker:focus-visible {
  z-index: 4;
  color: #171714;
  border-color: var(--gold-bright);
  background: var(--gold-bright);
  transform: translate(-50%, -50%) scale(1.08);
}

.country-map-marker-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgb(239 201 78 / 15%);
}

.country-map-marker:hover .country-map-marker-dot,
.country-map-marker:focus-visible .country-map-marker-dot {
  background: #171714;
}

.country-map-caption {
  position: absolute;
  right: 18px;
  bottom: 13px;
  left: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: #aaa79f;
  font-size: 0.7rem;
}

.country-map-caption span {
  width: 18px;
  height: 1px;
  background: var(--gold-bright);
}

.country-explorer .country-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.country-explorer .country-card {
  min-height: 0;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 10px;
}

.country-explorer .country-card::before,
.country-explorer .country-card::after,
.country-explorer .country-card-index {
  display: none;
}

.country-explorer .country-card-name {
  min-width: 0;
  margin: 0;
}

.country-explorer .country-card-name strong {
  overflow: hidden;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-explorer .country-card-name small {
  display: none;
}

.country-explorer .country-card-link {
  min-width: max-content;
  gap: 5px;
  margin-left: auto;
  padding: 0;
  border: 0;
  color: #aaa79f;
  font-size: 0.65rem;
}

@media (max-width: 980px) {
  .country-explorer {
    grid-template-columns: 1fr;
  }

  .country-map {
    min-height: 390px;
  }

  .country-explorer .country-directory {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .section-heading h2,
  .service-intro h2 {
    font-size: clamp(1.35rem, 6.2vw, 1.75rem);
  }

  .section-heading {
    margin-bottom: 22px;
  }

  .country-map {
    min-height: 300px;
    border-radius: 18px;
  }

  .country-map-art,
  .country-map-markers {
    inset: 14px 10px 42px;
    width: calc(100% - 20px);
    height: calc(100% - 56px);
  }

  .country-map-marker {
    width: 11px;
    height: 11px;
    padding: 0;
    overflow: hidden;
    border: 2px solid #171714;
    background: var(--gold-bright);
    box-shadow: 0 0 0 2px rgb(239 201 78 / 30%);
    color: transparent;
    font-size: 0;
  }

  .country-map-marker-dot {
    display: none;
  }

  .country-explorer .country-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* Train country map v2.5 — self-hosted Natural Earth 1:50m */
.country-map-art {
  inset: 18px 14px 50px;
  width: calc(100% - 28px);
  height: calc(100% - 68px);
  overflow: visible;
  touch-action: manipulation;
}

.country-map-grid path {
  vector-effect: non-scaling-stroke;
}

.country-map-shape {
  fill: rgb(214 205 178 / 13%);
  stroke: rgb(239 201 78 / 24%);
  stroke-width: 0.65;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease, stroke 160ms ease, opacity 160ms ease;
}

.country-map-country-link {
  cursor: pointer;
  outline: none;
}

.country-map-shape-active {
  fill: rgb(239 201 78 / 42%);
  stroke: #efd36b;
  stroke-width: 1.15;
}

.country-map-country-link:hover .country-map-shape-active,
.country-map-country-link:focus-visible .country-map-shape-active {
  fill: #efc94e;
  stroke: #fff1aa;
  stroke-width: 1.8;
}

.country-map-point {
  cursor: pointer;
  outline: none;
}

.country-map-point circle {
  fill: #f8e39a;
  stroke: #171714;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  transition: fill 160ms ease, r 160ms ease;
}

.country-map-point:hover circle,
.country-map-point:focus-visible circle {
  fill: #fff8d5;
  stroke: #efc94e;
  r: 7px;
}

.country-map-controls {
  position: absolute;
  z-index: 7;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 5px;
  padding: 5px;
  border: 1px solid rgb(239 201 78 / 24%);
  border-radius: 10px;
  background: rgb(23 23 20 / 86%);
  backdrop-filter: blur(8px);
}

.country-map-controls button {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  padding: 0 7px;
  color: #f5f2e8;
  border: 1px solid rgb(255 255 255 / 15%);
  border-radius: 6px;
  background: rgb(255 255 255 / 6%);
  cursor: pointer;
  font: 700 0.72rem/1 Arial, sans-serif;
}

.country-map-controls button:hover,
.country-map-controls button:focus-visible {
  color: #171714;
  border-color: var(--gold-bright);
  background: var(--gold-bright);
}

.country-map-tooltip {
  position: absolute;
  z-index: 8;
  width: max-content;
  max-width: 170px;
  padding: 7px 10px;
  color: #171714;
  border-radius: 7px;
  background: #fff3bd;
  box-shadow: 0 8px 22px rgb(0 0 0 / 28%);
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
  transform: translate(-50%, calc(-100% - 10px));
}

.country-map-tooltip[hidden] {
  display: none;
}

.country-map[data-map-state="error"]::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 30px;
  color: #c8c5bc;
  content: "世界地圖暫時無法載入，請使用右側國家清單。";
  background: rgb(23 23 20 / 72%);
  font-size: 0.8rem;
  text-align: center;
}

@media (max-width: 720px) {
  .country-map-art {
    inset: 12px 8px 46px;
    width: calc(100% - 16px);
    height: calc(100% - 58px);
  }

  .country-map-controls {
    top: 9px;
    right: 9px;
  }

  .country-map-controls button {
    min-width: 36px;
    height: 36px;
    font-size: 0.78rem;
  }

  .country-map-point circle {
    r: 6px;
  }
}

/* Belmond editorial feature; route pages keep their standalone journey layout. */
.belmond-hero-photo { margin: 0; align-self: stretch; position: relative; min-height: 440px; overflow: hidden; }
.belmond-hero-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.belmond-hero-photo figcaption { position: absolute; bottom: 22px; left: 24px; color: white; background: #171714d9; padding: 10px 14px; letter-spacing: .12em; font-size: 12px; }
.belmond-feature { padding-block: 64px; }
.belmond-story-intro { max-width: 860px; font-size: 18px; line-height: 1.9; color: var(--ink-soft); }
.belmond-story-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 28px; margin-top: 36px; }
.belmond-story-grid article { border-top: 2px solid var(--gold-deep); padding-top: 20px; }
.belmond-story-grid h3 { font-size: 21px; margin: 12px 0; }
.belmond-story-grid p { line-height: 1.9; }
.belmond-feature-footer { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.belmond-feature-footer p { flex-basis: 100%; max-width: 860px; line-height: 1.9; }
body.route-page .belmond-feature { display: none; }
@media(max-width:900px) { .belmond-story-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .belmond-hero-photo { min-height: 300px; } .belmond-story-grid { grid-template-columns: 1fr; gap: 20px; } .belmond-feature { padding-block: 38px; } .belmond-story-intro { font-size: 16px; } }
@media print { .belmond-feature { display: none; } }


/* Keep the original homepage hero and search; the campaign follows results. */
.belmond-promo { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 42px; margin-block: 48px 0; background: #242422; color: #fff; }
.belmond-promo-copy { align-self: center; }
.belmond-promo h2 { margin: 16px 0; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.3; color: #fff; }
.belmond-promo .hero-lead { color: #dedbd2; }
.belmond-promo .text-link { color: #fff; }
.belmond-promo .belmond-hero-photo { min-height: 340px; }
body.route-page .belmond-promo { display: none; }
@media(max-width:900px) { .belmond-promo { grid-template-columns: 1fr; gap: 28px; } }
@media(max-width:600px) { .belmond-promo { padding: 24px; margin-top: 30px; } .belmond-promo h2 { font-size: 30px; } .belmond-promo .belmond-hero-photo { min-height: 260px; } }
@media print { .belmond-promo { display: none; } }
