:root {
  --route-ink: #231a1c;
  --route-muted: #6f6366;
  --route-line: #e6dddf;
  --route-card: #fff;
  --route-primary: #6b1026;
  --route-primary-deep: #3e0917;
  --route-gold: #d8a626;
  --route-accent: #e9841d;
  --route-support: #17653d;
  --route-soft: #fbf6ea;
  --route-shadow: 0 18px 45px rgba(50, 20, 29, .12);
}

.route-v4 { background: #fcfbfa; color: var(--route-ink); padding-bottom: 90px; }
.route-v4 * { box-sizing: border-box; }
.route-page-wrap { margin: 0 auto; width: min(1220px, calc(100% - 40px)); }
.route-v4 a { color: var(--route-primary); }
.route-v4 a:hover { color: var(--route-primary-deep); }
.route-kicker { color: var(--route-primary); font-size: .73rem; font-weight: 850; letter-spacing: .12em; margin: 0 0 8px; text-transform: uppercase; }
.screen-reader-text { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.route-v4-hero { background: radial-gradient(circle at 83% 12%, color-mix(in srgb, var(--route-gold) 35%, transparent), transparent 28%), linear-gradient(130deg, var(--route-primary), var(--route-primary-deep)); color: #fff; padding: 38px 0 48px; }
.route-hero-grid { align-items: center; display: grid; gap: clamp(28px, 5vw, 80px); grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); }
.route-hero-grid--single { grid-template-columns: minmax(0, 920px); }
.route-hero-grid--single .route-hero-copy > p:not(.route-kicker) { max-width: 820px; }
.route-hero-copy { min-width: 0; }
.route-v4-hero .route-kicker { color: color-mix(in srgb, var(--route-gold) 72%, white); }
.route-breadcrumb { align-items: center; color: rgba(255,255,255,.78); display: flex; flex-wrap: wrap; font-size: .84rem; gap: 8px; margin: 0 0 26px; }
.route-breadcrumb a { color: #fff; text-decoration: none; }
.route-breadcrumb a:hover { text-decoration: underline; }
.route-v4-hero h1 { color: #fff; font-size: clamp(2.15rem, 4.3vw, 3.75rem); letter-spacing: -.05em; line-height: 1.06; margin: 0; }
.route-hero-copy > p:not(.route-kicker) { color: rgba(255,255,255,.9); font-size: 1.07rem; line-height: 1.75; margin: 20px 0 0; max-width: 680px; }
.route-hero-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.route-hero-meta span { border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: rgba(255,255,255,.94); font-size: .78rem; padding: 7px 11px; }
.route-hero-media { aspect-ratio: 3 / 2; border: 1px solid rgba(255,255,255,.23); border-radius: 18px; box-shadow: 0 22px 48px rgba(0,0,0,.2); margin: 0; overflow: hidden; position: relative; }
.route-hero-media img { display: block; height: 100%; object-fit: cover; width: 100%; }
.route-hero-media:after { background: linear-gradient(0deg, rgba(0,0,0,.55), transparent 46%); content: ""; inset: 0; pointer-events: none; position: absolute; }
.route-hero-media figcaption { bottom: 14px; color: #fff; font-size: .82rem; font-weight: 800; left: 16px; position: absolute; z-index: 1; }

.route-booking-section { margin-top: -10px; padding: 0 0 18px; position: relative; z-index: 1; }
.route-search-card { background: var(--route-card); border: 1px solid color-mix(in srgb, var(--route-primary) 16%, white); border-radius: 18px; box-shadow: var(--route-shadow); padding: clamp(20px, 3.2vw, 31px); }
.route-search-card h2 { color: var(--route-ink); font-size: clamp(1.38rem, 2.4vw, 1.88rem); letter-spacing: -.028em; margin: 0; }
.route-search-copy > p:not(.route-kicker) { color: var(--route-muted); margin: 7px 0 0; }
.route-search-form { align-items: end; display: grid; gap: 10px; grid-template-columns: 1fr 1fr minmax(160px, .8fr) auto; margin-top: 22px; }
.route-search-form label, .route-sticky-search label { display: grid; gap: 5px; }
.route-search-form label > span { color: var(--route-muted); font-size: .72rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.route-search-form input { background: #fffdfc; border: 1px solid var(--route-line); border-radius: 9px; color: var(--route-ink); font: inherit; min-width: 0; padding: 12px 13px; width: 100%; }
.route-search-button, .route-sticky-search button { background: var(--route-gold); border: 0; border-radius: 9px; color: #2b2110; cursor: pointer; font: inherit; font-weight: 850; padding: 13px 18px; white-space: nowrap; }
.route-search-button:hover, .route-sticky-search button:hover { background: var(--route-accent); color: #fff; }
.route-search-support { align-items: center; border-top: 1px solid var(--route-line); display: flex; gap: 24px; justify-content: space-between; margin-top: 22px; padding-top: 16px; }
.route-search-support > div:first-child { color: var(--route-muted); font-size: .84rem; line-height: 1.48; max-width: 600px; }
.route-search-support strong { color: var(--route-ink); display: block; font-size: .84rem; }
.route-search-support p { margin: 4px 0 0; }
.route-qr { align-items: center; display: flex; flex: 0 0 auto; gap: 11px; }
.route-qr img { background: #fff; border: 1px solid var(--route-line); border-radius: 8px; display: block; height: 74px; padding: 3px; width: 74px; }
.route-qr span { color: var(--route-muted); font-size: .76rem; line-height: 1.36; max-width: 155px; }
.route-qr strong { font-size: .78rem; }

.route-quick-facts, .route-timetable-section, .route-guidance-section, .route-journey-plan { padding: 59px 0; }
.route-quick-facts { padding-top: 36px; }
.route-timetable-section { background: #fff; border-block: 1px solid #eee7e7; }
.route-guidance-section { background: var(--route-soft); }
.route-journey-plan { background: #fff; }
.route-section-heading { align-items: end; display: flex; gap: 26px; justify-content: space-between; margin-bottom: 25px; }
.route-section-heading h2 { color: var(--route-ink); font-size: clamp(1.55rem, 3vw, 2.3rem); letter-spacing: -.04em; line-height: 1.11; margin: 0; }
.route-section-heading > p { color: var(--route-muted); font-size: .94rem; line-height: 1.6; margin: 0; max-width: 390px; }
.route-facts-grid { display: grid; gap: 13px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.route-facts-grid article { background: var(--route-card); border: 1px solid var(--route-line); border-radius: 13px; min-height: 134px; padding: 18px; }
.route-facts-grid span, .route-side-promotion span, .route-journey-card > span { color: var(--route-muted); display: block; font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.route-facts-grid strong { color: var(--route-ink); display: block; font-size: 1.02rem; line-height: 1.3; margin: 9px 0; }
.route-facts-grid strong a { text-decoration: none; }
.route-facts-grid small { color: var(--route-muted); display: block; font-size: .79rem; line-height: 1.4; }

/* The three-column grid is deliberately limited to the timetable area. */
.route-three-columns { align-items: start; display: grid; gap: 16px; grid-template-columns: minmax(0, 20fr) minmax(0, 60fr) minmax(0, 20fr); }
.route-side-column-left { grid-column: 1; }
.route-timetable-column { grid-column: 2; }
.route-side-column-right { grid-column: 3; }
.route-side-column { display: grid; gap: 13px; min-width: 0; }
.route-timetable-column { min-width: 0; }
.route-side-promotion { background: #fffdf8; border: 1px solid color-mix(in srgb, var(--route-gold) 40%, #e7d8bc); border-radius: 12px; overflow: hidden; }
.route-side-promotion > img { aspect-ratio: 3 / 2; display: block; object-fit: cover; width: 100%; }
.route-side-promotion > div { padding: 15px; }
.route-side-promotion span { color: color-mix(in srgb, var(--route-primary) 72%, #fff); }
.route-side-promotion h3 { color: var(--route-ink); font-size: 1rem; line-height: 1.28; margin: 8px 0; }
.route-side-promotion p { color: var(--route-muted); font-size: .84rem; line-height: 1.52; margin: 0 0 12px; }
.route-side-promotion a { font-size: .82rem; font-weight: 850; text-decoration: none; }
.route-stay22-map { background: #fff; border: 1px solid var(--route-line); border-radius: 12px; overflow: hidden; padding: 14px; }
.route-stay22-map span { color: color-mix(in srgb, var(--route-primary) 72%, #fff); display: block; font-size: .69rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.route-stay22-map h3 { color: var(--route-ink); font-size: 1rem; line-height: 1.28; margin: 8px 0 12px; }
.route-stay22-map iframe { border: 0; border-radius: 9px; display: block; height: 380px; width: 100%; }
.route-timetable-note { align-items: center; background: color-mix(in srgb, var(--route-support) 8%, white); border-left: 4px solid var(--route-support); border-radius: 0 11px 11px 0; display: flex; flex-wrap: wrap; gap: 8px 13px; margin-bottom: 16px; padding: 13px 15px; }
.route-timetable-note strong { color: var(--route-primary-deep); }
.route-timetable-note span { color: var(--route-muted); flex: 1 1 190px; font-size: .85rem; }
.route-timetable-note a { font-size: .82rem; font-weight: 800; text-decoration: none; }
.route-table-wrap { border: 1px solid var(--route-line); border-radius: 13px; overflow-x: auto; }
.route-table-wrap table { border-collapse: collapse; min-width: 720px; width: 100%; }
.route-table-wrap th { background: color-mix(in srgb, var(--route-soft) 75%, white); color: color-mix(in srgb, var(--route-primary) 72%, #555); font-size: .68rem; letter-spacing: .06em; padding: 13px 12px; text-align: left; text-transform: uppercase; }
.route-table-wrap td { border-top: 1px solid var(--route-line); color: #443d3f; font-size: .85rem; padding: 14px 12px; vertical-align: middle; }
.route-table-wrap td strong { color: var(--route-ink); }
.route-table-wrap td small { color: var(--route-muted); font-size: .73rem; }
.route-table-book { background: var(--route-primary); border-radius: 7px; color: #fff !important; display: inline-block; font-size: .75rem; font-weight: 850; padding: 8px 10px; text-decoration: none; }
.route-table-book:hover { background: var(--route-primary-deep); text-decoration: none; }
.route-empty-state { background: #fffdfb; border: 1px dashed color-mix(in srgb, var(--route-primary) 30%, #d7c4c7); border-radius: 13px; padding: 25px; text-align: center; }
.route-empty-state strong { display: block; font-size: 1.04rem; }
.route-empty-state p { color: var(--route-muted); margin: 7px 0 14px; }
.route-empty-state a { font-weight: 850; }
.route-google-leaderboard { border-top: 1px solid var(--route-line); margin-top: 20px; padding-top: 20px; text-align: center; }
.route-itinerary { border-top: 1px solid var(--route-line); margin-top: 22px; padding-top: 24px; }
.route-subheading h2 { color: var(--route-ink); font-size: 1.35rem; letter-spacing: -.024em; margin: 0; }
.route-itinerary ol { counter-reset: itinerary; display: grid; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.route-itinerary li { align-items: center; background: #fff; border: 1px solid var(--route-line); border-radius: 8px; counter-increment: itinerary; display: flex; font-size: .88rem; min-height: 42px; padding: 9px 12px; }
.route-itinerary li:before { color: var(--route-primary); content: counter(itinerary, decimal-leading-zero); font-size: .7rem; font-weight: 900; margin-right: 10px; }
.route-itinerary a { font-weight: 800; text-decoration: none; }

.route-guide-accordions { display: grid; gap: 10px; }
.route-guide-accordions details { background: #fff; border: 1px solid var(--route-line); border-radius: 11px; overflow: hidden; }
.route-guide-accordions summary { align-items: center; color: var(--route-ink); cursor: pointer; display: flex; font-size: 1rem; font-weight: 850; justify-content: space-between; list-style: none; padding: 18px 20px; }
.route-guide-accordions summary::-webkit-details-marker { display: none; }
.route-guide-accordions summary span { color: var(--route-primary); font-size: 1.14rem; }
.route-guide-accordions details[open] summary { border-bottom: 1px solid var(--route-line); }
.route-guide-accordions details > div, .route-guidance-copy { color: #4a4143; line-height: 1.76; }
.route-guide-accordions details > div { padding: 2px 20px 20px; }
.route-guide-accordions h2, .route-guide-accordions h3, .route-guide-accordions h4 { color: var(--route-ink); margin: 20px 0 8px; }
.route-guide-accordions p, .route-guidance-copy p { margin: 13px 0; }
.route-guide-accordions ul, .route-guide-accordions ol { padding-left: 20px; }
.route-guide-accordions a { font-weight: 700; }
.route-guidance-copy { background: rgba(255,255,255,.68); border-left: 4px solid var(--route-accent); border-radius: 0 12px 12px 0; max-width: 900px; padding: 2px 22px 18px; }

.route-journey-card-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.route-journey-card { background: var(--route-card); border: 1px solid var(--route-line); border-top: 4px solid var(--route-primary); border-radius: 12px; padding: 18px; }
.route-journey-card:nth-child(2) { border-top-color: var(--route-gold); }
.route-journey-card:nth-child(3) { border-top-color: var(--route-accent); }
.route-journey-card:nth-child(4) { border-top-color: var(--route-support); }
.route-journey-card > span { color: var(--route-primary); }
.route-journey-card h3 { color: var(--route-ink); font-size: 1.06rem; line-height: 1.25; margin: 8px 0; }
.route-journey-card > p { color: var(--route-muted); font-size: .83rem; line-height: 1.48; margin: 0 0 14px; min-height: 39px; }
.route-journey-card ol { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.route-journey-card li { border-top: 1px solid var(--route-line); min-height: 51px; padding-top: 9px; }
.route-journey-card li:first-child { border-top: 0; padding-top: 0; }
.route-journey-card a { display: block; text-decoration: none; }
.route-journey-card a strong, .route-journey-empty strong { color: var(--route-ink); display: block; font-size: .84rem; line-height: 1.32; }
.route-journey-card a small, .route-journey-empty small { color: var(--route-muted); display: block; font-size: .72rem; line-height: 1.35; margin-top: 3px; }
.route-journey-empty { display: block; }

.route-sticky-search { align-items: center; background: color-mix(in srgb, var(--route-primary-deep) 94%, #000); border-top: 1px solid rgba(255,255,255,.15); bottom: 0; box-shadow: 0 -8px 30px rgba(0,0,0,.16); color: #fff; display: flex; gap: 20px; justify-content: space-between; left: 0; padding: 11px max(20px, calc((100vw - 1220px) / 2)); position: fixed; right: 0; z-index: 100; }
.route-sticky-search > div { display: grid; gap: 1px; }
.route-sticky-search > div span { color: color-mix(in srgb, var(--route-gold) 75%, white); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.route-sticky-search > div strong { font-size: .92rem; }
.route-sticky-search form { align-items: center; display: flex; gap: 8px; }
.route-sticky-search input { background: #fff; border: 0; border-radius: 8px; color: #30282a; font: inherit; padding: 9px 10px; }
.route-sticky-search button { border-radius: 8px; font-size: .84rem; padding: 10px 14px; }

@media (max-width: 1100px) {
  .route-hero-grid { gap: 36px; }
  .route-three-columns { grid-template-columns: minmax(0, 1fr); }
  .route-side-column-left,
  .route-timetable-column,
  .route-side-column-right { grid-column: auto; }
  .route-side-column { grid-template-columns: repeat(2, minmax(0, 1fr)); order: 2; }
  .route-timetable-column { order: 1; }
  .route-journey-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .route-hero-grid { grid-template-columns: 1fr; }
  .route-hero-media { max-width: 690px; width: 100%; }
  .route-search-form { grid-template-columns: 1fr 1fr; }
  .route-search-button { width: 100%; }
  .route-facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .route-page-wrap { width: min(100% - 28px, 1220px); }
  .route-v4-hero { padding: 26px 0 33px; }
  .route-breadcrumb { margin-bottom: 20px; }
  .route-v4-hero h1 { font-size: 2.05rem; }
  .route-hero-copy > p:not(.route-kicker) { font-size: .98rem; }
  .route-search-card { border-radius: 14px; padding: 19px; }
  .route-search-form { grid-template-columns: 1fr; }
  .route-search-support, .route-section-heading { align-items: flex-start; flex-direction: column; gap: 11px; }
  .route-quick-facts, .route-timetable-section, .route-guidance-section, .route-journey-plan { padding: 43px 0; }
  .route-facts-grid, .route-side-column, .route-journey-card-grid { grid-template-columns: 1fr; }
  .route-facts-grid article { min-height: 0; }
  .route-side-promotion { max-width: none; }
  .route-sticky-search { gap: 10px; padding: 9px 14px; }
  .route-sticky-search > div strong { display: none; }
  .route-sticky-search form { gap: 6px; }
  .route-sticky-search input { max-width: 138px; padding: 8px; }
  .route-sticky-search button { font-size: .79rem; padding: 9px 10px; }
}

@media (max-width: 390px) {
  .route-sticky-search > div { display: none; }
  .route-sticky-search { justify-content: center; }
}

/* Route layout repair: compact first screen, hide empty ad rails, and stop sticky search covering content. */
.route-v4 { padding-bottom: 0; }
.route-v4-hero { padding: 30px 0 34px; }
.route-hero-grid { align-items: end; }
.route-hero-grid--single { grid-template-columns: minmax(0, 820px); }
.route-v4-hero h1 { font-size: clamp(2.05rem, 3.8vw, 3.35rem); letter-spacing: -.04em; max-width: 820px; }
.route-hero-copy > p:not(.route-kicker) { font-size: 1rem; line-height: 1.62; margin-top: 14px; max-width: 760px; }
.route-hero-meta { margin-top: 17px; }
.route-booking-section { margin-top: 0; padding: 20px 0 10px; }
.route-search-card { border-radius: 14px; padding: clamp(17px, 2.2vw, 24px); }
.route-search-card h2 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.route-search-copy > p:not(.route-kicker) { max-width: 850px; }
.route-search-form { gap: 9px; grid-template-columns: 1fr 1fr minmax(150px,.7fr) auto; margin-top: 12px; }
.route-search-form input { padding: 10px 12px; }
.route-search-button { padding: 11px 16px; }
.route-search-support { gap: 12px; margin-top: 8px; padding-top: 8px; }
.route-qr img { height: 64px; width: 64px; }
.route-qr span { max-width: 170px; }
.route-quick-facts, .route-timetable-section, .route-guidance-section, .route-journey-plan { padding: 42px 0; }
.route-quick-facts { padding-top: 26px; }
.route-section-heading { align-items: flex-end; margin-bottom: 18px; }
.route-section-heading h2 { font-size: clamp(1.42rem, 2.35vw, 2rem); }
.route-facts-grid { gap: 10px; }
.route-facts-grid article { min-height: 112px; padding: 15px; }
.route-facts-grid strong { font-size: .96rem; margin: 7px 0; }
.route-three-columns { gap: 14px; }
.route-three-columns--no-ads { grid-template-columns: minmax(0, 1fr); }
.route-three-columns--no-ads .route-timetable-column { grid-column: 1; }
.route-three-columns--left-only { grid-template-columns: minmax(160px, 20fr) minmax(0, 80fr); }
.route-three-columns--left-only .route-timetable-column { grid-column: 2; }
.route-three-columns--right-only { grid-template-columns: minmax(0, 20fr) minmax(0, 60fr) minmax(160px, 20fr); }
.route-three-columns--right-only .route-timetable-column { grid-column: 2; }
.route-three-columns--right-only .route-side-column-right { grid-column: 3; }
.route-side-column:empty { display: none; }
.route-timetable-note { margin-bottom: 12px; padding: 11px 13px; }
.route-table-wrap th { padding: 11px 10px; }
.route-table-wrap td { padding: 12px 10px; }
.route-guidance-section { background: #fff8e9; }
.route-guide-accordions summary { padding: 15px 18px; }
.route-guide-accordions details > div { padding: 0 18px 18px; }
.route-sticky-search { opacity: 0; pointer-events: none; transform: translateY(110%); transition: opacity .2s ease, transform .2s ease; }
.route-sticky-search.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

@media (max-width: 1100px) {
  .route-three-columns,
  .route-three-columns--left-only,
  .route-three-columns--right-only,
  .route-three-columns--no-ads { grid-template-columns: minmax(0, 1fr); }
  .route-side-column-left,
  .route-timetable-column,
  .route-side-column-right,
  .route-three-columns--no-ads .route-timetable-column,
  .route-three-columns--left-only .route-timetable-column,
  .route-three-columns--right-only .route-timetable-column,
  .route-three-columns--right-only .route-side-column-right { grid-column: auto; }
}

@media (max-width: 850px) {
  .route-search-form { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
  .route-v4-hero { padding: 24px 0 28px; }
  .route-search-support { align-items: flex-start; }
  .route-sticky-search.is-visible { display: none; }
}
