/* ==============================================================
   Lastavica Reisen · shared stylesheet
   NEW IDEA: one CSS file for all pages. Every page (German and
   Croatian) links to this file, so change a colour here and every
   page updates at once. The browser also downloads it only once
   and then re-uses it from its cache = faster page changes.

   Look: old holiday postcards. Paper texture (CSS gradients),
   airmail stripes, stamps with perforated edges, postmarks.
   Colours: Adriatic blue + sun yellow + a red accent.
   ============================================================== */

:root {
  --sea: #0b4f86;       /* Adriatic blue: main colour */
  --sea-dk: #083a63;    /* dark blue: headings, footer */
  --sea-2: #1673b8;
  --sea-lt: #d6e8f4;    /* pale blue: selected things */
  --sun: #f4bf26;       /* sun yellow: main buttons, stamps */
  --sun-dk: #d9a40e;
  --sun-lt: #fdecaa;
  --red: #c0342a;       /* red accent: km markers, destinations */
  --red-dk: #8f2219;
  --red-lt: #f8ddd8;
  --paper: #f5eddb;     /* page background = postcard paper */
  --paper-2: #ece0c6;
  --card: #fffaf0;      /* the "front" of cards */
  --ink: #1b2430;
  --ink-soft: #4d5866;
  --line: #d8c9a8;
  --green: #1f7a4d;     /* WhatsApp-style button (not the official logo colour) */

  /* System fonts only (nothing is downloaded). The first font in the
     list that the device has installed is used. */
  --display: "Avenir Next Condensed", "Roboto Condensed", sans-serif-condensed, "Arial Narrow", "Liberation Sans Narrow", "DejaVu Sans Condensed", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", Georgia, "Noto Serif", "DejaVu Serif", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --shadow: 0 1px 0 rgba(60, 40, 10, .05), 0 14px 28px -14px rgba(60, 40, 10, .45);
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* Paper texture: three see-through patterns layered on the paper colour. */
body {
  margin: 0;
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  background-color: var(--paper);
  background-image:
    radial-gradient(rgba(140, 110, 60, .08) 1px, transparent 1.3px),
    radial-gradient(rgba(140, 110, 60, .05) 1px, transparent 1.3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 2px, transparent 2px 9px);
  background-size: 9px 9px, 17px 17px, auto;
  background-position: 0 0, 4px 7px, 0 0;
}
img, svg { max-width: 100%; }
a { color: var(--sea); text-underline-offset: .18em; }
a:hover { color: var(--sea-dk); }
h1, h2, h3 { font-family: var(--display); font-stretch: condensed; font-weight: 800; line-height: 1.08; color: var(--sea-dk); letter-spacing: .005em; }
h1 { font-size: clamp(1.9rem, 7vw, 3rem); margin: .2rem 0 .7rem; }
h2 { font-size: clamp(1.5rem, 5.4vw, 2.15rem); margin: .2rem 0 .9rem; }
h3 { font-size: 1.18rem; margin: 0 0 .35rem; }
p { margin: 0 0 1rem; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--card); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.wrap { max-width: 72rem; margin-inline: auto; padding-inline: 1.25rem; }

.eyebrow { font: 700 .78rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0 0 .5rem; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 44rem; }
.demo-note, .pb-small { font-size: .88rem; color: var(--ink-soft); }
.pb-small { margin: .6rem 0 0; }
.notice { background: var(--sun-lt); border-left: 5px solid var(--sun); padding: .75rem 1rem; border-radius: 0 6px 6px 0; font-size: .95rem; max-width: 46rem; }
.h-small { font-size: 1.1rem; margin-top: 1.8rem; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 48px; padding: .6rem 1.25rem; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sun { background: var(--sun); color: var(--ink); border-color: var(--sun-dk); box-shadow: 0 3px 0 var(--sun-dk); }
.btn-sun:hover { background: #ffcd3c; color: var(--ink); }
.btn-sea { background: var(--sea); color: #fff; }
.btn-sea:hover { background: var(--sea-dk); color: #fff; }
.btn-line { background: transparent; color: var(--sea-dk); border-color: var(--sea); }
.btn-line:hover { background: var(--sea-lt); color: var(--sea-dk); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: #17633e; color: #fff; }
.btn-small { min-height: 44px; padding: .45rem 1rem; font-size: .93rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: 1rem 0 0; }

/* ---------------- Demo banner + header ---------------- */
.demo-banner { margin: 0; background: var(--sea-dk); color: #eef4fa; font-size: .8rem; text-align: center; padding: .45rem 1rem; }
.site-head {
  position: relative; z-index: 50;
  /* airmail stripe along the bottom edge */
  background:
    repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--card) 10px 16px, var(--sea) 16px 26px, var(--card) 26px 32px) bottom / 100% 5px no-repeat,
    var(--card);
  padding-bottom: 5px;
}
.head-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; min-height: 66px; padding-block: .35rem; }
.brand { display: flex; align-items: center; gap: .55rem; margin-right: auto; min-height: 48px; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent; }
.brand svg { width: 44px; height: 44px; flex: none; }
.brand-text { display: grid; }
.brand-name { font: 800 1.5rem/1 var(--display); color: var(--sea-dk); letter-spacing: .01em; }
.brand-sub { font: 700 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-top: .2rem; }

.langs { display: flex; padding: 3px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); }
.langs a {
  display: grid; place-items: center; min-width: 44px; min-height: 40px; border-radius: 999px;
  font: 700 .8rem var(--sans); letter-spacing: .06em; color: var(--ink-soft); text-decoration: none;
}
.langs a[aria-current] { background: var(--sea); color: #fff; }

.menu-btn {
  display: none; align-items: center; gap: .45rem; min-height: 44px; padding: 0 .9rem 0 .75rem;
  border: 2px solid var(--sea); border-radius: 999px; background: var(--card); color: var(--sea-dk);
  font: 700 .95rem var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.menu-ico { display: grid; gap: 4px; width: 18px; }
.menu-ico i { display: block; height: 2.5px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] .menu-ico i:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Without JavaScript the menu is simply a row of links that may wrap. */
.main-nav { width: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem .3rem; }
.main-nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 .6rem;
  color: var(--ink); text-decoration: none; font-weight: 600; border-radius: 6px;
}
.main-nav a:hover { background: var(--sea-lt); }
.main-nav a[aria-current="page"], .main-nav a[aria-current="true"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); border-radius: 0; }
.nav-cta a { background: var(--sun); color: var(--ink); border-radius: 999px; padding: 0 1rem; box-shadow: 0 2px 0 var(--sun-dk); }
.nav-cta a:hover { background: #ffcd3c; }
.nav-cta a[aria-current="page"] { color: var(--ink); box-shadow: 0 2px 0 var(--sun-dk), 0 0 0 3px var(--red); border-radius: 999px; }

/* With JavaScript on phones: a button opens the menu as a "ticket" panel. */
@media (max-width: 999px) {
  .js .menu-btn { display: inline-flex; }
  .js .main-nav {
    display: none; position: absolute; left: .75rem; right: .75rem; top: calc(100% - 2px);
    background: var(--card); border-radius: 12px; box-shadow: 0 18px 40px -12px rgba(20, 30, 50, .45);
    padding: .5rem 1rem 1rem; border-top: 6px solid var(--sun);
  }
  .js .main-nav.open { display: block; }
  .js .main-nav ul { flex-direction: column; gap: 0; }
  .js .main-nav li { border-bottom: 1.5px dashed var(--line); }
  .js .main-nav li.nav-cta { border: 0; padding-top: .8rem; }
  .js .main-nav a { min-height: 52px; font-size: 1.08rem; padding: 0 .3rem; }
  .js .main-nav a[aria-current] { box-shadow: inset 5px 0 0 var(--red); padding-left: .9rem; }
  .js .nav-cta a { justify-content: center; padding: 0 1rem; }
  .js .nav-cta a[aria-current="page"] { box-shadow: 0 2px 0 var(--sun-dk), 0 0 0 3px var(--red); padding-left: 1rem; }
}
@media (min-width: 1000px) {
  .head-row { flex-wrap: nowrap; gap: 1rem; }
  .main-nav { width: auto; order: 1; }
  .langs { order: 2; }
  .main-nav ul { flex-wrap: nowrap; align-items: center; }
  .main-nav a { font-size: .97rem; padding: 0 .55rem; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; margin: 0; padding: .5rem 0 0; display: flex; flex-wrap: wrap; font-size: .9rem; color: var(--ink-soft); }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "›"; margin: 0 .45rem; color: var(--red); font-weight: 700; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
.crumbs [aria-current] { font-weight: 600; color: var(--ink); padding-block: .6rem; }
.page-head { padding-top: .4rem; padding-bottom: .6rem; }

/* ---------------- Postcard pieces ---------------- */
.postcard { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Stamp: the dotted background shows only in the 5px edge around the
   inner box = perforated edge. drop-shadow follows the holes. */
.stamp {
  display: inline-block; padding: 5px; line-height: 1;
  background: radial-gradient(circle at 5px 5px, transparent 2.6px, #fff 3px) -5px -5px / 10px 10px;
  filter: drop-shadow(0 1px 1.5px rgba(40, 30, 10, .35));
}
.stamp-in {
  display: grid; place-items: center; align-content: center; gap: 2px; min-width: 78px; min-height: 84px; padding: .4rem .5rem;
  background: var(--sea); color: #fff; text-align: center;
  box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3px rgba(255, 255, 255, .35);
}
.stamp-in small { font: 600 .66rem/1.1 var(--sans); letter-spacing: .06em; text-transform: uppercase; opacity: .92; }
.stamp-in b { font: 800 1.35rem/1 var(--display); color: var(--sun); white-space: nowrap; }
.stamp-red .stamp-in { background: var(--red); }
.stamp-sun .stamp-in { background: var(--sun); color: var(--ink); }
.stamp-sun .stamp-in b { color: var(--ink); }
.stamp-sea .stamp-in b, .stamp-red .stamp-in b { color: #fff; }
.postmark { display: block; color: rgba(27, 36, 48, .5); pointer-events: none; }

/* Big letters across the picture, like old "Greetings from" cards */
.pc-greet {
  position: absolute; left: 6%; top: 7%; margin: 0;
  font: italic 600 1.1rem/1 var(--serif); color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55), 0 0 12px rgba(0, 0, 0, .25);
}
.pc-big {
  position: absolute; left: 5%; right: 5%; bottom: 7%; margin: 0;
  font: 800 2.3rem/0.95 var(--display); font-stretch: condensed; letter-spacing: .02em; color: var(--sun);
  -webkit-text-stroke: 1.5px var(--sea-dk);
  text-shadow: 2px 2px 0 var(--red), 4px 4px 0 var(--sea-dk);
  white-space: nowrap;
}
/* NEW IDEA: container query units (cqi = 1% of the card's width), so the
   lettering grows and shrinks with the card itself, not with the screen. */
@supports (font-size: 1cqi) {
  .pc-greet { font-size: clamp(.9rem, 5.2cqi, 1.5rem); }
  .pc-big { font-size: min(18cqi, calc(118cqi / var(--len, 7))); }
}

/* ---------------- Hero ---------------- */
.hero { padding: 1.4rem 0 2.6rem; }
.hero-card { display: grid; overflow: hidden; padding: 9px; transform: rotate(-.5deg); }
.hero-front { position: relative; border-radius: 3px; overflow: hidden; container-type: inline-size; }
.hero-front svg { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; }
.hero-back { position: relative; padding: 1.4rem .9rem .9rem; }
.hero-stamps { position: absolute; top: -46px; right: 8px; display: flex; align-items: center; }
.hero-stamps .stamp { transform: rotate(5deg); }
.hero-stamps .stamp svg { width: 34px; height: 34px; }
.hero-stamps .postmark { width: 128px; margin-right: -64px; position: relative; z-index: 1; transform: rotate(-14deg); order: 2; }
.hero-back h1 { max-width: 15em; }
.hero-big { right: auto; }
@media (max-width: 899px) { .hero-back { padding-top: 4.7rem; } .hero-stamps { top: -26px; } .hero-big { bottom: 15%; font-size: min(16cqi, 2.6rem); } }
.hero-to {
  display: flex; flex-wrap: wrap; gap: 0 .5rem; margin: 0 0 .4rem; padding: .5rem 0;
  font: 600 1rem/1.5 var(--serif); font-style: italic; color: var(--sea-dk);
  border-block: 1.5px solid var(--line);
}
.hero-to span { font-style: normal; font-family: var(--sans); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
@media (min-width: 900px) {
  .hero-card { grid-template-columns: 1.15fr 1fr; align-items: stretch; }
  .hero-front svg { height: 100%; aspect-ratio: auto; min-height: 380px; }
  .hero-back { padding: 3.2rem 1.6rem 1.4rem 2rem; border-left: 2px solid var(--line); margin-left: 1.2rem; }
  .hero-stamps { top: 10px; right: 10px; }
  .hero-back h1 { margin-top: 1.6rem; padding-right: 3rem; font-size: clamp(2.2rem, 3.4vw, 2.8rem); }
}

/* ---------------- Postcard row (home) ---------------- */
.row-sec { padding: .5rem 0 2rem; overflow: hidden; }
.row-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 1rem; }
.row-head p { color: var(--ink-soft); max-width: 36rem; }
.row-ctrl { display: flex; align-items: center; gap: .4rem; margin-bottom: 1rem; }
.row-ctrl[hidden] { display: none; }
.rc-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--sea); background: var(--card);
  color: var(--sea-dk); font: 700 1.6rem/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.rc-btn:hover { background: var(--sea-lt); }
.rc-btn:disabled { opacity: .35; cursor: default; }
.rc-count { min-width: 3.6rem; text-align: center; font: 700 .95rem var(--sans); font-variant-numeric: tabular-nums; }
.pc-row {
  list-style: none; margin: 0; display: flex; gap: 1.1rem;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  --pad: max(1.25rem, calc((100vw - 72rem) / 2 + 1.25rem));
  padding: 3rem var(--pad) 1.6rem; scroll-padding-inline: var(--pad);
  scrollbar-width: thin; scrollbar-color: var(--sea) transparent;
}
.pc-row:focus-visible { outline-offset: -3px; }
.pc-item { flex: 0 0 min(82vw, 23rem); scroll-snap-align: start; display: flex; }
.row-hint { text-align: center; font: italic .9rem var(--serif); color: var(--ink-soft); margin: 0; }
@media (min-width: 900px) { .row-hint { display: none; } }

.pcard {
  display: flex; flex-direction: column; width: 100%; padding: 8px; text-decoration: none; color: inherit;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s ease, box-shadow .25s ease;
}
.pc-item:nth-child(odd) .pcard { transform: rotate(-.9deg); }
.pc-item:nth-child(even) .pcard { transform: rotate(.8deg); }
.pcard:hover, .pcard:focus-visible { transform: rotate(0) translateY(-5px); box-shadow: 0 22px 34px -16px rgba(60, 40, 10, .55); color: inherit; }
.pcard-front { position: relative; display: block; border-radius: 3px; overflow: hidden; container-type: inline-size; }
.pcard-front .scene { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; }
.pcard-back { position: relative; display: flex; flex-direction: column; gap: .3rem; flex: 1; padding: 1rem .45rem .35rem; }
.pcard .pc-big { bottom: 21%; }
.pcard-back .stamp { position: absolute; top: -40px; right: 8px; transform: rotate(4deg); }
.pcard-back .postmark { position: absolute; top: -26px; right: 50px; width: 132px; transform: rotate(-10deg); }
.pc-type {
  align-self: flex-start; display: inline-block; padding: .2rem .55rem; border-radius: 3px;
  font: 700 .7rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  background: var(--sea); color: #fff;
}
.t-stadt { background: var(--red); }
.t-pilger { background: var(--sun); color: var(--ink); }
.t-advent { background: #12304f; color: var(--sun); }
.t-line { background: var(--ink); color: #fff; }
.pcard-back .pc-type { margin-bottom: .55rem; }
.pc-title { font: 800 1.28rem/1.12 var(--display); font-stretch: condensed; color: var(--sea-dk); margin: 0; }
.pc-meta { font-size: .9rem; color: var(--ink-soft); line-height: 1.45; }
.pc-more { margin-top: auto; padding-top: .5rem; font-weight: 700; color: var(--red); }

/* ---------------- Journey route line (home) ---------------- */
.journey { position: relative; padding-top: 1rem; padding-bottom: 2rem; padding-left: calc(1.25rem + 2.7rem); }
.journey::before {
  content: ""; position: absolute; top: 1.4rem; bottom: 5rem; left: calc(1.25rem + .95rem); width: 5px; border-radius: 3px;
  background: repeating-linear-gradient(to bottom, var(--sea) 0 16px, transparent 16px 26px);
}
.j-bus {
  position: absolute; z-index: 2; top: 0; left: calc(1.25rem + .95rem + 2.5px);
  width: 54px; transform: translate(-50%, var(--bus-y, 1.2rem)) rotate(90deg);
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25)); pointer-events: none;
}
.j-bus svg { display: block; width: 54px; height: auto; }
.j-stop { padding: 1.6rem 0 2rem; }
.j-km {
  position: relative; display: flex; align-items: center; gap: .5rem; margin: 0 0 .7rem;
  font: 800 .95rem/1 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--red);
}
.j-km span { background: var(--sun); color: var(--ink); padding: .32rem .55rem; border-radius: 3px; }
.j-km::before {
  content: ""; position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%;
  left: calc(-2.7rem + .95rem + 2.5px - 11px);
  transform: translateY(-50%); background: var(--card); border: 5px solid var(--red);
}
.j-end .j-km::before { background: var(--red); box-shadow: 0 0 0 4px var(--sun-lt); }
.j-stop > p { max-width: 42rem; }
@media (min-width: 900px) {
  .journey { padding-left: calc(1.25rem + 4.5rem); }
  .journey::before { left: calc(1.25rem + 1.8rem); }
  .j-bus { left: calc(1.25rem + 1.8rem + 2.5px); }
  .j-km::before { left: calc(-4.5rem + 1.8rem + 2.5px - 11px); }
}

/* Departure "tickets" with a notch cut out (mask) */
.tickets { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(14.5rem, 1fr)); }
.ticket {
  position: relative; display: grid; gap: .15rem; padding: .8rem 2rem .85rem 1rem;
  background: var(--card); border-left: 6px solid var(--sun); border-radius: 8px; box-shadow: var(--shadow);
  -webkit-mask: radial-gradient(circle 10px at right 50%, transparent 97%, #000 100%);
          mask: radial-gradient(circle 10px at right 50%, transparent 97%, #000 100%);
}
.tk-town { font: 800 1.2rem/1.1 var(--display); color: var(--sea-dk); }
.tk-place { font-size: .92rem; color: var(--ink-soft); }
.tk-time { font: 700 .75rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); margin-top: .2rem; }

.onboard { display: grid; gap: 1.2rem; align-items: center; }
.onboard-bus { background: linear-gradient(transparent 70%, #c7b993 70% 72%, transparent 72%); padding: 0 .5rem; }
.big-bus { display: block; width: 100%; max-width: 380px; height: auto; margin-inline: auto; }
.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.feat li { padding: .55rem .8rem; background: var(--card); border-radius: 6px; border-left: 4px solid var(--sea); }
.feat b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--sea-dk); }
@media (min-width: 760px) { .onboard { grid-template-columns: 1fr 1.2fr; } }

.type-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .type-grid { grid-template-columns: repeat(4, 1fr); } }
.type-tile {
  position: relative; display: grid; align-content: end; gap: .15rem; min-height: 9rem; padding: 1rem;
  border-radius: var(--radius); text-decoration: none; color: #fff; background: var(--sea); box-shadow: var(--shadow);
  overflow: hidden; -webkit-tap-highlight-color: transparent; transition: transform .2s ease;
}
.type-tile::after { content: ""; position: absolute; inset: 6px; border: 1.5px dashed rgba(255, 255, 255, .55); border-radius: 3px; pointer-events: none; }
.type-tile:hover { transform: translateY(-3px); color: #fff; }
.type-tile.t-stadt { background: var(--red); }
.type-tile.t-pilger { background: var(--sun); }
.type-tile.t-advent { background: #12304f; }
.type-tile.t-advent .tt-n { color: var(--sun); }
.type-tile.t-pilger, .type-tile.t-pilger:hover { color: var(--ink); }
.type-tile.t-pilger::after { border-color: rgba(27, 36, 48, .4); }
.tt-n { position: absolute; top: .55rem; right: .8rem; font: 800 2.4rem/1 var(--display); opacity: .9; }
.tt-name { font: 800 1.3rem/1.1 var(--display); }
.tt-sub { font-size: .88rem; opacity: .92; }

.line-teaser { display: grid; gap: 1rem; }
.mini-tt { max-width: 26rem; background: var(--card); border-radius: 6px; box-shadow: var(--shadow); overflow: hidden; }
.mini-tt caption { text-align: left; font: 700 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); padding: 0 0 .4rem; }
.mini-tt th, .mini-tt td { padding: .5rem .9rem; border-bottom: 1.5px dashed var(--line); text-align: left; }
.mini-tt td { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.mini-tt tr:last-child th, .mini-tt tr:last-child td { border-bottom: 0; }
.from-price { font-weight: 700; color: var(--red); }

.next-dep { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; max-width: 46rem; }
.nd-row a {
  display: grid; grid-template-columns: auto 1fr; gap: .2rem .9rem; align-items: center;
  padding: .6rem .8rem; background: var(--card); border-radius: 8px; box-shadow: var(--shadow);
  text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.nd-row a:hover { background: #fff; color: var(--ink); }
.nd-date { grid-row: span 2; display: grid; place-items: center; width: 4.4rem; padding: .35rem 0; border-radius: 4px; background: var(--sea); color: #fff; font-size: .75rem; }
.nd-date b { font: 800 1.25rem/1.1 var(--display); color: var(--sun); }
.nd-name { font: 800 1.08rem/1.2 var(--display); color: var(--sea-dk); }
.nd-name small { display: block; font: 400 .85rem/1.4 var(--sans); color: var(--ink-soft); }
.nd-row .seats { justify-self: start; }
@media (min-width: 640px) {
  .nd-row a { grid-template-columns: auto 1fr auto; }
  .nd-date { grid-row: auto; }
}
.seats { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font: 700 .8rem/1.4 var(--sans); white-space: nowrap; }
.s-ok { background: var(--sea-lt); color: var(--sea-dk); }
.s-low { background: var(--sun-lt); color: #6b4a00; }
.s-full { background: var(--red-lt); color: var(--red-dk); }

.call-card {
  margin-top: 1.8rem; padding: 1.2rem 1.2rem 1.3rem; max-width: 40rem;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border: 7px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--card) 10px 16px, var(--sea) 16px 26px, var(--card) 26px 32px) 7;
}
.cc-h { font: 800 1.35rem var(--display); color: var(--sea-dk); margin-bottom: .4rem; }

/* ---------------- Overview + filters ---------------- */
.filters { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1rem 1.1rem; margin-top: .5rem; }
.filters fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters legend, .f-field > span { font: 700 .78rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip { position: relative; -webkit-tap-highlight-color: transparent; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--line); background: var(--paper); font-weight: 600; cursor: pointer; }
.chip input:checked + span { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.f-row { display: grid; gap: .9rem; margin-top: 1rem; align-items: end; }
@media (min-width: 720px) { .f-row { grid-template-columns: 1fr 1.3fr auto; } }
.f-field { display: grid; gap: .1rem; margin: 0 0 .8rem; }
.f-row .f-field { margin: 0; }
.f-field > span { display: flex; justify-content: space-between; gap: .5rem; }
.f-field output { color: var(--sea-dk); letter-spacing: 0; text-transform: none; font-size: .95rem; }
select, input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input:not([type]), textarea {
  width: 100%; min-height: 48px; padding: .55rem .8rem; border: 2px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
textarea { resize: vertical; }
select:focus-visible, input:focus-visible, textarea:focus-visible { border-color: var(--sea); }
input[type="range"] { width: 100%; min-height: 44px; accent-color: var(--sea); }
.result-count { margin: 1.4rem 0 0; font-weight: 700; color: var(--sea-dk); }
.trip-grid { list-style: none; margin: 0; padding: 3rem 0 1rem; display: grid; gap: 3.4rem 1.4rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.grid-item { display: flex; }
.grid-item[hidden] { display: none; }
.grid-item:nth-child(3n+1) .pcard { transform: rotate(-.6deg); }
.grid-item:nth-child(3n+2) .pcard { transform: rotate(.5deg); }
.no-results { padding: 2rem; text-align: center; background: var(--card); border-radius: var(--radius); margin: 1rem 0 2rem; border: 2px dashed var(--line); }
.no-results[hidden] { display: none; }

.all-dates { padding-top: 1.5rem; padding-bottom: 2rem; }
.dates-table { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.dates-table th, .dates-table td { padding: .65rem .8rem; text-align: left; border-bottom: 1.5px dashed var(--line); vertical-align: middle; }
.dates-table thead th { font: 700 .75rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); border: 0; }
.dates-table small { color: var(--ink-soft); }
@media (max-width: 639px) {
  .dates-table thead { display: none; }
  .dates-table tr { display: grid; grid-template-columns: 1fr auto; gap: .15rem .6rem; padding: .7rem .8rem; border-bottom: 1.5px dashed var(--line); }
  .dates-table td { padding: 0; border: 0; }
  .dates-table td:nth-child(3) { grid-column: 2; grid-row: 1; font-weight: 700; text-align: right; }
  .dates-table td:nth-child(4) { grid-column: 1 / -1; }
}

/* ---------------- Trip detail ---------------- */
.trip-hero { display: grid; gap: 1.6rem; padding-top: .8rem; padding-bottom: 1.4rem; }
.trip-card { padding: 9px; transform: rotate(-1deg); container-type: inline-size; align-self: start; }
.trip-card .scene { display: block; width: 100%; height: auto; aspect-ratio: 400 / 260; border-radius: 3px; }
.trip-card .pc-greet { left: calc(9px + 5%); top: calc(9px + 6%); }
.trip-card .pc-big { left: calc(9px + 4%); bottom: calc(9px + 6%); }
.stamp-float { position: absolute; top: -18px; right: -6px; transform: rotate(6deg); }
.trip-head .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.facts { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.facts li { display: grid; padding: .6rem .75rem; background: var(--card); border-radius: 6px; border-top: 4px solid var(--sea); font-size: .85rem; color: var(--ink-soft); }
.facts li:nth-child(3) { border-top-color: var(--red); }
.facts b { font: 800 1.12rem/1.2 var(--display); color: var(--sea-dk); }
.facts-inline { max-width: 52rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .trip-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 2.5rem; }
  .p-trip .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .p-trip .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.trip-layout { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.trip-main { min-width: 0; }
.toc { display: flex; gap: .4rem; overflow-x: auto; padding: .3rem 0 .6rem; scrollbar-width: none; }
.toc a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--sea-dk); }
.toc a:hover { border-color: var(--sea); }
.t-sec { padding-block: 1.6rem .6rem; scroll-margin-top: 1rem; }
.t-sec > p { max-width: 44rem; }
.tip { background: var(--card); border-left: 5px solid var(--sun); padding: .8rem 1rem; border-radius: 0 6px 6px 0; }

.map-fig { margin: 1.4rem 0 0; }
.route-map { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #f1e7cf; }
.map-fig figcaption { font-size: .88rem; color: var(--ink-soft); margin-top: .55rem; }
.map-fig figcaption a { display: inline-block; padding-block: .6rem; }
.m-country { font: 700 13px var(--sans); letter-spacing: 2.5px; fill: #a5946e; }
.m-sea { font: italic 19px var(--serif); fill: #4f86b0; }
.m-lbl { font: 700 17px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #fffaf0; stroke-width: 4.5px; stroke-linejoin: round; }
.m-lbl-dest { fill: var(--red); font-size: 20px; }
.m-small { font: 700 13px var(--sans); fill: var(--ink); }
@media (max-width: 600px) { .m-lbl { font-size: 21px; } .m-lbl-dest { font-size: 24px; } .m-country { font-size: 14px; letter-spacing: 2px; } .m-small { font-size: 16px; } }
.m-ink > path:first-child { fill: var(--ink); }
.m-case { stroke: #fffaf0; stroke-width: 10; stroke-linecap: round; stroke-linejoin: round; }
.m-route { stroke: var(--red); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.m-dep { fill: var(--sun); stroke: var(--sea-dk); stroke-width: 2.5; }
.m-stop { fill: #fffaf0; stroke: var(--sea-dk); stroke-width: 3; }
.m-dest { fill: var(--red); stroke: #fffaf0; stroke-width: 3.5; }
/* NEW IDEA: the route "draws itself". app.js makes the line ONE dash as
   long as the whole route and pushes it out of sight (dash offset), then
   slides it back in when the map scrolls into view. */
.route-map .m-route.is-drawing { transition: stroke-dashoffset 2.6s ease-in-out; }

/* Day-by-day timeline */
.itin { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: .9rem; }
.itin::before { content: ""; position: absolute; left: 1.9rem; top: 1.5rem; bottom: 1.5rem; border-left: 4px dotted var(--sea); }
.itin-day { position: relative; display: grid; grid-template-columns: 3.8rem minmax(0, 1fr); gap: .8rem; align-items: start; }
.itin-n {
  position: relative; z-index: 1; display: grid; place-items: center; align-content: center; width: 3.8rem; height: 3.8rem; border-radius: 50%;
  background: var(--card); border: 3px solid var(--sea); color: var(--sea-dk); font: 800 1.35rem/1 var(--display);
}
.itin-n span { font: 700 .58rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.itin-first .itin-n { background: var(--sun); border-color: var(--sun-dk); }
.itin-last .itin-n { background: var(--red); border-color: var(--red); color: #fff; }
.itin-body { background: var(--card); padding: .85rem 1rem .4rem; border-radius: 8px; box-shadow: var(--shadow); }
.itin-body p { font-size: 1rem; margin-bottom: .55rem; }

.incl-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .incl-grid { grid-template-columns: 1fr 1fr; } }
.incl, .excl { background: var(--card); border-radius: 8px; padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.ticks, .crosses { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ticks li, .crosses li { position: relative; padding-left: 1.9rem; }
.ticks li::before, .crosses li::before {
  content: "✓"; position: absolute; left: 0; top: .15rem; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 .8rem/1 var(--sans); background: var(--sea); color: #fff;
}
.crosses li::before { content: "×"; background: var(--red-lt); color: var(--red-dk); font-size: 1rem; }

.date-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .7rem; }
.date-row { display: grid; gap: .6rem; padding: .8rem 1rem; background: var(--card); border-radius: 8px; box-shadow: var(--shadow); align-items: center; }
.dr-when b { display: block; font: 800 1.15rem/1.2 var(--display); color: var(--sea-dk); }
.dr-when small { color: var(--ink-soft); }
.dr-seats { display: grid; gap: .35rem; justify-items: start; }
.dr-seats .seatbar { justify-self: stretch; }
.seatbar { display: block; height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.seatbar i { display: block; height: 100%; background: var(--sea); border-radius: 99px; }
@media (min-width: 720px) { .date-row { grid-template-columns: 1.2fr 1fr auto; gap: 1.2rem; } }

.tt { background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.tt th, .tt td { padding: .6rem .8rem; text-align: left; border-bottom: 1.5px dashed var(--line); vertical-align: top; }
.tt thead th { font: 700 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); border: 0; }
.tt td { overflow-wrap: anywhere; }
@media (max-width: 479px) { .tt th, .tt td { padding: .55rem .55rem; font-size: .95rem; } }
.tt td:last-child { overflow-wrap: normal; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt tr:last-child th, .tt tr:last-child td { border-bottom: 0; }

.price-table { background: var(--card); border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); max-width: 40rem; }
.price-table th, .price-table td { padding: .75rem 1rem; border-bottom: 1.5px dashed var(--line); text-align: left; }
.price-table td { text-align: right; font: 800 1.2rem var(--display); color: var(--sea-dk); white-space: nowrap; }
.price-table tbody tr:first-child td { color: var(--red); font-size: 1.4rem; }
.price-table thead th { font: 700 .74rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); background: var(--paper-2); }
.price-3 thead th:not(:first-child) { text-align: right; }
.price-3 tbody tr:first-child td { color: var(--sea-dk); font-size: 1.2rem; }
.price-table tr:last-child th, .price-table tr:last-child td { border-bottom: 0; }

.pauschal { margin-top: 1.4rem; padding: 1rem 1.1rem .2rem; border: 2px dashed var(--line); border-radius: 8px; max-width: 44rem; font-size: .95rem; }
.tag { display: inline-block; margin-left: .3rem; padding: .05rem .5rem; border-radius: 3px; background: var(--paper-2); font: 700 .7rem/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }

.trip-pager { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 2rem; }
.trip-pager a { display: grid; gap: .15rem; padding: .8rem 1rem; background: var(--card); border-radius: 8px; box-shadow: var(--shadow); text-decoration: none; font: 800 1.02rem/1.2 var(--display); color: var(--sea-dk); }
.trip-pager a[rel="next"] { text-align: right; }
.trip-pager small { font: 600 .78rem var(--sans); color: var(--red); }

.price-box {
  align-self: start; padding: 1.1rem 1.1rem 1.2rem; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
  border-top: 8px solid transparent;
  border-image: repeating-linear-gradient(-45deg, var(--red) 0 10px, var(--card) 10px 16px, var(--sea) 16px 26px, var(--card) 26px 32px) 8 0 0 0;
}
.pb-h { font: 700 .78rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 .2rem; }
.pb-price { margin: 0 0 .9rem; color: var(--ink-soft); }
.pb-price b { font: 800 2.3rem/1 var(--display); color: var(--red); }
.pb-seats { margin: -.2rem 0 .9rem; }
.price-box .btn + .btn { margin-top: .6rem; }
.book-bar {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom)); background: var(--sea-dk); color: #fff;
  box-shadow: 0 -8px 20px rgba(8, 30, 55, .25); transition: transform .25s ease;
}
.book-bar p { margin: 0; }
.book-bar b { font: 800 1.6rem/1 var(--display); color: var(--sun); }
.book-bar small { opacity: .85; }
.book-bar.is-hidden { transform: translateY(110%); }
.p-trip { padding-bottom: 72px; }
.p-trip .to-top { bottom: 84px; }
@media (min-width: 1000px) {
  .trip-layout { grid-template-columns: minmax(0, 1fr) 21rem; gap: 2.5rem; }
  .price-box { position: sticky; top: 1rem; margin-top: 1.6rem; }
  .book-bar { display: none; }
  .p-trip { padding-bottom: 0; }
  .p-trip .to-top { bottom: 16px; }
}

/* ---------------- Bus line page ---------------- */
.line-strip-wrap { overflow-x: auto; padding: .4rem 0 .8rem; scrollbar-width: thin; }
.line-strip { list-style: none; margin: 0; padding: 0; display: flex; min-width: max-content; }
.ls-stop { position: relative; display: grid; justify-items: center; gap: .3rem; width: 6.6rem; text-align: center; padding-top: .2rem; }
.ls-stop::before { content: ""; position: absolute; top: calc(.2rem + 9px); left: 0; right: 0; height: 6px; background: var(--sea); }
.ls-stop:first-child::before { left: 50%; }
.ls-stop:last-child::before { right: 50%; }
.ls-hr::before { background: var(--red); }
.ls-stop:nth-child(7)::before { background: linear-gradient(90deg, var(--sea) 50%, var(--red) 50%); }
.ls-dot { position: relative; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 5px solid var(--sea); }
.ls-hr .ls-dot { border-color: var(--red); }
.ls-name { font: 800 .98rem/1.1 var(--display); color: var(--sea-dk); }
.ls-time { font-size: .8rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.tabs { max-width: 50rem; }
.tab-list { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .8rem; }
.tab-list [role="tab"] {
  min-height: 46px; padding: 0 1.1rem; border-radius: 999px; border: 2px solid var(--sea); background: var(--card); color: var(--sea-dk);
  font: 700 .95rem var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.tab-list [aria-selected="true"] { background: var(--sea); color: #fff; }
.tab-panel:focus-visible { outline-offset: 4px; }
.tab-print-h { margin-top: 1rem; }
.js .tab-print-h { display: none; }
.tt-line .tt-day { color: var(--ink-soft); }
.season { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; max-width: 50rem; }
.season li { padding: .7rem .9rem; background: var(--card); border-radius: 8px; border-left: 5px solid var(--sun); }
.season b { display: block; font: 800 1.05rem var(--display); color: var(--sea-dk); }
.line-prices { display: grid; gap: 1.6rem; align-items: start; }
@media (min-width: 900px) { .line-prices { grid-template-columns: 1fr 1fr; } }
.small-list { margin: 1rem 0 0; padding-left: 1.2rem; font-size: .95rem; color: var(--ink-soft); }
.small-list li { margin-bottom: .35rem; }
.calc { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; border-top: 8px solid var(--sun); }
.calc-h { font: 800 1.3rem var(--display); color: var(--sea-dk); margin-bottom: .8rem; }
.calc-grid { display: grid; gap: 0 .8rem; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); }
.seg { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem; min-width: 0; }
.seg legend { font: 700 .78rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .4rem; padding: 0; width: 100%; }
.seg label { position: relative; flex: 1 1 8rem; -webkit-tap-highlight-color: transparent; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 .8rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; font-weight: 600; text-align: center; cursor: pointer; }
.seg input:checked + span { border-color: var(--sea); background: var(--sea-lt); color: var(--sea-dk); box-shadow: inset 0 0 0 1px var(--sea); }
.seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.calc-out, .estimate { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: .4rem 0 0; padding: .7rem 0 0; border-top: 2px dashed var(--line); font-weight: 700; color: var(--ink-soft); }
.calc-out output, .estimate output { font: 800 2rem/1 var(--display); color: var(--red); }
.map-wide { max-width: 50rem; }

.acc { display: grid; gap: .55rem; max-width: 50rem; }
.acc details { background: var(--card); border-radius: 8px; box-shadow: 0 1px 0 rgba(60, 40, 10, .06); border: 1.5px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .6rem 1rem;
  font-weight: 700; color: var(--sea-dk); cursor: pointer; list-style: none; -webkit-tap-highlight-color: transparent;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--sea-lt); color: var(--sea-dk); font: 700 1.2rem/1 var(--sans); }
.acc details[open] summary::after { content: "−"; background: var(--sea); color: #fff; }
.acc details p { padding: 0 1rem .4rem; margin-bottom: .6rem; max-width: 44rem; }

/* ---------------- About ---------------- */
.story { list-style: none; margin: 0; padding: 0 0 0 2.7rem; position: relative; display: grid; gap: 1.2rem; max-width: 46rem; }
.story::before { content: ""; position: absolute; left: .95rem; top: .6rem; bottom: .6rem; width: 5px; background: repeating-linear-gradient(to bottom, var(--sea) 0 16px, transparent 16px 26px); }
.story .j-km::before { left: calc(-2.7rem + .95rem + 2.5px - 11px); }
.story-stop { background: var(--card); padding: .9rem 1rem .3rem; border-radius: 8px; box-shadow: var(--shadow); }
.story-stop .j-km { margin-bottom: .5rem; }
.team { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.person { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding: 1rem; background: var(--card); border-radius: 8px; box-shadow: var(--shadow); }
.person .stamp { transform: rotate(-3deg); }
.person .stamp-in { min-width: 66px; min-height: 76px; }
.person .stamp-in b { font-size: 1.7rem; }
.person p { margin-bottom: .5rem; font-size: .97rem; }
.role { font: 700 .76rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.bus-spec { display: grid; gap: 1.4rem; align-items: center; }
.bus-card { padding: 8px; transform: rotate(1deg); margin-inline: 6px; }
.bus-card svg { display: block; width: 100%; height: auto; border-radius: 3px; }
.spec { margin: 0; display: grid; gap: .5rem; }
.spec div { display: grid; grid-template-columns: 8.5rem 1fr; gap: .8rem; padding: .55rem 0; border-bottom: 1.5px dashed var(--line); }
.spec dt { font-weight: 700; color: var(--sea-dk); }
.spec dd { margin: 0; }
@media (min-width: 860px) { .bus-spec { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .spec div { grid-template-columns: 1fr; gap: 0; } }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.values li { padding: 1rem; background: var(--card); border-radius: 8px; border-top: 5px solid var(--sun); }
.values b { display: block; font: 800 1.15rem var(--display); color: var(--sea-dk); margin-bottom: .3rem; }

/* ---------------- Travel info ---------------- */
.chip-nav { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); text-decoration: none; font-weight: 600; color: var(--sea-dk); }
.chip-link:hover { border-color: var(--sea); }
.info-wrap { display: grid; gap: 1rem; padding-bottom: 2.5rem; }
@media (min-width: 1000px) {
  .info-wrap { grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; }
  .packlist { position: sticky; top: 1rem; align-self: start; }
}
.pack-card { padding: 1.1rem 1.2rem 1.2rem; background-image: repeating-linear-gradient(transparent 0 2.85rem, rgba(11, 79, 134, .09) 2.85rem 2.95rem); }
.pack-progress { font-weight: 700; color: var(--red); }
.pack { list-style: none; margin: 0; padding: 0; }
.pack label { display: flex; gap: .7rem; align-items: center; min-height: 46px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pack input { width: 22px; height: 22px; flex: none; accent-color: var(--sea); }
.pack input:checked + span { text-decoration: line-through; text-decoration-color: var(--red); color: var(--ink-soft); }

/* ---------------- Inquiry ---------------- */
.inq-wrap { max-width: 50rem; padding-bottom: 2.5rem; }
.steps-route { list-style: none; margin: .4rem 0 1.2rem; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps-route li { position: relative; display: grid; justify-items: center; gap: .3rem; text-align: center; }
.steps-route li::before { content: ""; position: absolute; top: 17px; left: 0; right: 0; height: 5px; background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }
.steps-route li:first-child::before { left: 50%; }
.steps-route li:last-child::before { right: 50%; }
.steps-route li.done::before, .steps-route li.now::before { background: repeating-linear-gradient(90deg, var(--sea) 0 10px, transparent 10px 16px); }
.steps-route li.now::before { background: repeating-linear-gradient(90deg, var(--sea) 0 10px, transparent 10px 16px) left / 50% 100% no-repeat, repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }
.steps-route li.now:first-child::before { background: repeating-linear-gradient(90deg, var(--line) 0 10px, transparent 10px 16px); }
.sd-dot { position: relative; display: grid; place-items: center; width: 39px; height: 39px; border-radius: 50%; background: var(--card); border: 3px solid var(--line); font: 800 1.05rem var(--display); color: var(--ink-soft); }
.done .sd-dot { background: var(--sea); border-color: var(--sea); color: #fff; }
.now .sd-dot { background: var(--sun); border-color: var(--sun-dk); color: var(--ink); box-shadow: 0 0 0 4px var(--sun-lt); }
.sd-name { font: 700 .8rem var(--sans); color: var(--ink-soft); }
.now .sd-name { color: var(--ink); }
.inq { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem 1.1rem 1.1rem; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .step:not(.is-active) { display: none; }
.step-h { font: 800 1.45rem/1.15 var(--display); color: var(--sea-dk); margin-bottom: .9rem; padding: 0; }
.step-h:focus { outline: none; }
.step-h:focus-visible { outline: 3px solid var(--red); }
.opt-grid { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); margin-bottom: 1rem; }
.opt-card { position: relative; display: block; -webkit-tap-highlight-color: transparent; }
.opt-card input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt-card > span { display: grid; gap: .15rem; min-height: 64px; padding: .7rem .9rem; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; height: 100%; }
.opt-card b { font: 800 1.05rem/1.2 var(--display); color: var(--sea-dk); }
.opt-card small { color: var(--ink-soft); font-size: .86rem; }
.opt-card .seats { justify-self: start; margin-top: .25rem; }
.opt-card input:checked + span { border-color: var(--sea); background: var(--sea-lt); box-shadow: inset 0 0 0 1px var(--sea); }
.opt-card input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.steppers { display: grid; gap: .7rem; margin-bottom: 1rem; }
.stepper { display: grid; grid-template-columns: 1fr 48px 4rem 48px; gap: .4rem; align-items: center; padding: .4rem .5rem .4rem .9rem; background: #fff; border: 2px solid var(--line); border-radius: 8px; }
.st-label { font-weight: 700; }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--sea); background: var(--card); color: var(--sea-dk); font: 700 1.4rem/1 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper input { text-align: center; font-weight: 700; padding: .4rem; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.seg-wide label { flex-basis: 7rem; }
.err { color: var(--red-dk); background: var(--red-lt); padding: .5rem .8rem; border-radius: 6px; font-weight: 600; }
.err[hidden] { display: none; }
.summary { padding: 1rem 1.1rem; margin: 1rem 0 0; background: var(--paper); border: 2px dashed var(--line); box-shadow: none; }
.summary dl { margin: 0; display: grid; gap: .3rem; }
.summary dl div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .6rem; }
.summary dt { font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.summary dd { margin: 0; }
.step-nav { display: flex; justify-content: space-between; gap: .8rem; margin-top: 1.2rem; padding-top: 1rem; border-top: 2px dashed var(--line); }
.step-nav [hidden] { display: none; }
.step-nav [data-next] { margin-left: auto; }
html:not(.js) .step-nav { display: none; }
html:not(.js) .step { margin-bottom: 1.4rem; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; gap: 1.6rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } .tags { grid-column: 1 / -1; } }
.tags { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
/* Luggage tags: a punched hole (::before) on the left */
.tag-card { position: relative; display: grid; gap: .15rem; padding: .9rem 1rem .9rem 2.8rem; background: var(--sun-lt); border-radius: 8px 22px 22px 8px; box-shadow: var(--shadow); word-break: break-word; }
.tag-card::before { content: ""; position: absolute; left: .95rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2.5px var(--sun-dk); }
.tag-k { font: 700 .74rem var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tag-card a { font-weight: 700; font-size: 1.05rem; padding-block: .3rem; }
.hours-card { padding: 1.1rem 1.2rem 1rem; }
.hours-card .tt { box-shadow: none; background: transparent; }
.open-now { display: inline-block; padding: .25rem .75rem; border-radius: 999px; font-weight: 700; font-size: .9rem; }
.open-now.is-open { background: #d9efe2; color: #135232; }
.open-now.is-closed { background: var(--red-lt); color: var(--red-dk); }
.open-now[hidden] { display: none; }
.office-svg { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: .8rem; }
.dep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dep-list li { display: grid; grid-template-columns: 1fr auto; gap: 0 .8rem; align-items: center; padding: .6rem .9rem; background: var(--card); border-radius: 8px; border-left: 5px solid var(--sun); }
.dep-list b { font: 800 1.05rem var(--display); color: var(--sea-dk); }
.dep-list span { grid-column: 1; font-size: .9rem; color: var(--ink-soft); }
.dep-list a { grid-column: 2; grid-row: 1 / 3; display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.contact-form { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem; }

/* ---------------- Footer ---------------- */
.site-foot { margin-top: 2rem; background: var(--sea-dk); color: #dfe9f3; font-size: .95rem; }
.site-foot a { color: #fff; }
.site-foot :focus-visible { outline-color: var(--sun); }
.foot-road { position: relative; height: 44px; overflow: hidden; background: #2d3b4a; border-top: 4px solid var(--sun); }
.foot-road::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 3px; margin-top: -1px; background: repeating-linear-gradient(90deg, var(--sun) 0 22px, transparent 22px 40px); opacity: .85; }
.foot-bus { position: absolute; left: 6%; top: 4px; width: 80px; height: auto; }
@media (prefers-reduced-motion: no-preference) {
  .foot-bus { animation: drive 22s linear infinite; }
  @keyframes drive { from { left: -100px; } to { left: 100%; } }
}
.foot-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); padding-top: 2rem; padding-bottom: 1.6rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li a { display: inline-flex; align-items: center; min-height: 40px; }
.foot-brand { display: flex; align-items: center; gap: .55rem; font: 800 1.35rem var(--display); color: #fff; }
.foot-brand svg { width: 40px; height: 40px; }
.foot-h { font: 700 .76rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sun); margin-bottom: .4rem; }
.foot-note p:last-child { font-size: .88rem; color: #c3d3e2; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1.2rem; padding-top: 1rem; padding-bottom: 1.4rem; border-top: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; }
.foot-legal p { margin: 0; }
.foot-legal a { display: inline-flex; align-items: center; min-height: 44px; margin-right: 1.2rem; }

.to-top {
  position: fixed; z-index: 44; right: 16px; bottom: 16px; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; background: var(--sun); color: var(--ink); text-decoration: none; font: 700 1.3rem var(--sans);
  box-shadow: 0 6px 16px rgba(20, 30, 50, .3); transition: opacity .25s ease, transform .25s ease;
  -webkit-tap-highlight-color: transparent;
}
.js .to-top:not(.show) { opacity: 0; transform: translateY(12px); pointer-events: none; }
html:not(.js) .to-top { display: none; }

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

/* ---------------- Print (e.g. packing list, timetable) ---------------- */
@media print {
  body { background: #fff; font-size: 11pt; }
  .demo-banner, .menu-btn, .main-nav, .langs, .site-foot, .to-top, .book-bar, .chip-nav, .no-print, .toc, .price-box, .row-ctrl, .skip, .trip-pager, .btn-row { display: none !important; }
  .site-head { background: none; border-bottom: 2px solid #000; }
  .postcard, .pcard, .itin-body, .tt, .price-table, .acc details, .ticket { box-shadow: none !important; transform: none !important; }
  .js .step:not(.is-active), .tab-panel[hidden] { display: block !important; }
  .js .tab-print-h { display: block; }
  a { color: #000; }
}

/* About page: big bus drawing on a CSS-only landscape (sky, hills, road) */
.bus-portrait {
  position: relative; padding: 2.6rem 1.2rem 1.6rem; border-radius: 3px;
  background:
    radial-gradient(circle at 82% 22%, var(--sun) 0 22px, rgba(244, 191, 38, .25) 23px 40px, transparent 41px),
    linear-gradient(#bfe0f4 0 58%, #8fab88 58% 68%, #4a5663 68% 100%);
}
.bus-portrait .big-bus { position: relative; z-index: 1; }
.bus-portrait::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14%; height: 3px; background: repeating-linear-gradient(90deg, var(--sun) 0 18px, transparent 18px 32px); }
.plate { position: absolute; z-index: 2; left: 50%; bottom: .55rem; transform: translateX(-50%); padding: .05rem .5rem; border: 2px solid var(--ink); border-radius: 3px; background: #fff; font: 700 .72rem/1.3 var(--sans); letter-spacing: .08em; }
@media (max-width: 399px) { .price-table th, .price-table td { padding: .65rem .7rem; } }
