/*
 * Cesty — shared dark theme
 * Visual language follows the nacestach.online hub while preserving the
 * travel logo, destination artwork and the colour coding of individual trips.
 */

:root {
  --hub-bg: #080b10;
  --hub-panel: #10151d;
  --hub-panel-2: #151b24;
  --hub-text: #f2f5f7;
  --hub-muted: #9aa6b4;
  --hub-faint: #6e7885;
  --hub-line: rgba(255, 255, 255, .10);
  --hub-line-strong: rgba(255, 255, 255, .18);
  --hub-gold: #d9ab63;
  --hub-gold-soft: rgba(217, 171, 99, .14);
  --hub-teal: #72c8ae;
  --hub-blue: #75a9dc;
  --hub-shadow: 0 24px 70px rgba(0, 0, 0, .34);
}

::selection {
  color: var(--hub-bg);
  background: var(--hub-gold);
}

:focus-visible {
  outline: 2px solid var(--hub-gold);
  outline-offset: 4px;
}

/* ========================================================================== */
/* Homepage                                                                    */
/* ========================================================================== */

body.site-home {
  --ink: var(--hub-text);
  --muted: var(--hub-muted);
  --faint: var(--hub-faint);
  --bg: var(--hub-bg);
  --surface: var(--hub-panel);
  --line: var(--hub-line);
  --peach: transparent;
  --skytint: transparent;
  --radius: 18px;
  --shadow: var(--hub-shadow);
  --shadow-sm: 0 16px 46px rgba(0, 0, 0, .22);
  min-height: 100vh;
  color: var(--hub-text);
  background:
    radial-gradient(circle at -42px 34%, transparent 0 88px, rgba(217, 171, 99, .08) 89px 90px, transparent 91px 128px, rgba(117, 169, 220, .055) 129px 130px, transparent 131px),
    radial-gradient(circle at calc(100% + 48px) 72%, transparent 0 102px, rgba(114, 200, 174, .06) 103px 104px, transparent 105px 148px, rgba(217, 171, 99, .07) 149px 150px, transparent 151px),
    radial-gradient(900px 520px at 10% -8%, rgba(60, 100, 150, .20), transparent 65%),
    radial-gradient(760px 480px at 94% 18%, rgba(217, 171, 99, .12), transparent 66%),
    var(--hub-bg);
  background-attachment: fixed;
}

body.site-home::before,
body.itinerary::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .42) 56%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .42) 56%, transparent 100%);
}

.site-home .topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(8, 11, 16, .80);
  border-color: var(--hub-line);
  backdrop-filter: blur(18px) saturate(130%);
}

.site-home .topbar .wrap {
  min-height: 76px;
}

.site-home .brand {
  gap: 12px;
}

.site-home .brand .mark,
.site-home .fbrand .mark {
  padding: 6px;
  overflow: visible;
  border: 1px solid var(--hub-line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, .035);
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, .018);
}

.site-home #brandmark polygon:first-of-type {
  fill: var(--hub-text);
}

.site-home #brandmark polygon:nth-of-type(2) {
  fill: var(--hub-bg);
}

.site-home .brand .btxt .bn,
.site-home .fbrand span {
  color: var(--hub-text);
}

.site-home .brand .btxt .bn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: .015em;
}

.site-home .brand .btxt .bs {
  color: var(--hub-muted);
  font-size: 9px;
  letter-spacing: .25em;
}

.site-home .navlinks {
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}

.site-home .navlinks a {
  padding: 8px 12px;
  color: var(--hub-muted);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.site-home .navlinks a:hover {
  color: var(--hub-text);
  border-color: var(--hub-line);
  background: rgba(255, 255, 255, .035);
}

.site-home .hero {
  isolation: isolate;
  min-height: 720px;
  padding-top: clamp(70px, 8vw, 108px);
  background: transparent;
  border-bottom: 1px solid var(--hub-line);
}

.site-home .hero-layout {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .78fr);
  align-items: center;
  gap: clamp(34px, 6vw, 88px);
  text-align: left;
}

.site-home .hero-copy {
  min-width: 0;
}

.site-home .hero::before {
  content: "";
  position: absolute;
  width: min(70vw, 820px);
  aspect-ratio: 1;
  top: -45%;
  right: -13%;
  z-index: -1;
  border: 1px solid rgba(217, 171, 99, .20);
  border-radius: 50%;
  box-shadow:
    0 0 0 64px rgba(217, 171, 99, .018),
    0 0 0 128px rgba(117, 169, 220, .018);
  animation: home-orbit 26s linear infinite;
}

.site-home .hero::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  top: 18%;
  right: 18%;
  z-index: 1;
  border-radius: 50%;
  background: var(--hub-gold);
  box-shadow: 0 0 22px rgba(217, 171, 99, .85);
}

@keyframes home-orbit {
  to { transform: rotate(360deg); }
}

.site-home .hero-deco {
  opacity: .13;
  filter: saturate(.7) brightness(1.45);
}

.site-home .kicker {
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 15px;
  color: var(--hub-gold);
  border-color: var(--hub-line);
  background: rgba(16, 21, 29, .72);
  font-size: 10px;
  letter-spacing: .27em;
}

.site-home .hero h1 {
  max-width: 690px;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: 0;
  color: var(--hub-text);
  font-family: var(--sans);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 600;
  letter-spacing: -.055em;
  line-height: .96;
}

.site-home .hero .sub {
  max-width: 650px;
  margin-right: 0;
  margin-left: 0;
  color: var(--hub-muted);
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
}

.site-home .statrow {
  justify-content: flex-start;
  margin-top: 38px;
}

.site-home .hub-visual {
  position: relative;
  width: min(100%, 450px);
  margin: 0;
  justify-self: end;
  filter: drop-shadow(0 30px 55px rgba(0, 0, 0, .42));
}

.site-home .hub-visual::before,
.site-home .hub-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.site-home .hub-visual::before {
  inset: 7%;
  z-index: -1;
  border: 1px solid rgba(217, 171, 99, .30);
  box-shadow:
    0 0 0 20px rgba(217, 171, 99, .025),
    0 0 0 54px rgba(117, 169, 220, .018);
}

.site-home .hub-visual::after {
  width: 8px;
  height: 8px;
  top: 14%;
  right: 10%;
  background: var(--hub-gold);
  box-shadow: 0 0 20px rgba(217, 171, 99, .92);
}

.site-home .hub-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 44px;
  transform: rotate(1.5deg);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}

.site-home .hub-visual:hover img {
  filter: brightness(1.06);
  transform: rotate(0) translateY(-5px);
}

.site-home .hub-visual-route {
  position: absolute;
  right: -22px;
  bottom: 25%;
  z-index: 2;
  width: 96px;
  height: 46px;
  border-top: 1px dashed rgba(217, 171, 99, .72);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.site-home .hub-visual-route::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--hub-gold);
  border-radius: 50%;
  background: var(--hub-bg);
}

.site-home .hub-visual figcaption {
  position: absolute;
  right: -16px;
  bottom: 7%;
  z-index: 3;
  max-width: 210px;
  padding: 13px 16px;
  color: var(--hub-muted);
  border: 1px solid var(--hub-line-strong);
  border-radius: 14px;
  background: rgba(12, 17, 24, .88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .30);
  backdrop-filter: blur(14px);
  font-size: 11px;
  line-height: 1.45;
}

.site-home .hub-visual figcaption span {
  display: block;
  margin-bottom: 3px;
  color: var(--hub-gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.site-home .stat {
  padding: 9px 16px;
  color: var(--hub-muted);
  border-color: var(--hub-line);
  background: rgba(16, 21, 29, .70);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.site-home .stat b {
  color: var(--hub-text);
  font-family: var(--sans);
  font-size: 14px;
}

.site-home .horizon {
  position: relative;
  height: 172px;
  margin-top: 34px;
  overflow: hidden;
  opacity: 1;
  background:
    linear-gradient(to bottom, transparent, rgba(16, 21, 29, .45)),
    radial-gradient(ellipse at 52% 100%, rgba(217, 171, 99, .09), transparent 62%);
}

.site-home .horizon svg {
  display: none;
}

.site-home .horizon::before,
.site-home .horizon::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -1px;
  left: -4%;
  height: 120px;
  background: #141b25;
  clip-path: polygon(0 100%, 0 82%, 8% 42%, 15% 76%, 25% 24%, 34% 78%, 43% 39%, 52% 84%, 62% 29%, 72% 77%, 82% 20%, 92% 75%, 100% 40%, 100% 100%);
}

.site-home .horizon::after {
  bottom: -18px;
  height: 96px;
  background: #0b0f15;
  clip-path: polygon(0 100%, 0 68%, 10% 36%, 18% 72%, 30% 26%, 40% 74%, 52% 18%, 63% 74%, 74% 35%, 84% 69%, 94% 28%, 100% 58%, 100% 100%);
}

.site-home .intro {
  padding: 66px 0;
  border-bottom: 1px solid var(--hub-line);
  background: rgba(16, 21, 29, .42);
}

.site-home .intro .box {
  position: relative;
  max-width: 840px;
  padding: 38px clamp(24px, 5vw, 58px);
  text-align: left;
  border: 1px solid var(--hub-line);
  background: rgba(16, 21, 29, .62);
}

.site-home .intro .box::before {
  content: "01 / O projektu";
  display: block;
  margin-bottom: 22px;
  color: var(--hub-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.site-home .intro h2,
.site-home .sechead h2,
.site-home .subcat-h {
  color: var(--hub-text);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.035em;
}

.site-home .intro h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.site-home .intro p {
  color: var(--hub-muted);
  line-height: 1.8;
}

.site-home .intro .rule {
  width: 74px;
  height: 1px;
  margin: 28px 0 0;
  background: var(--hub-gold);
}

.site-home .section {
  padding: 74px 0;
  border-bottom: 1px solid var(--hub-line);
  background: transparent !important;
}

.site-home .section:nth-of-type(even) {
  background: rgba(16, 21, 29, .22) !important;
}

.site-home .sechead {
  gap: 16px;
  margin-bottom: 34px;
}

.site-home .sechead h2 {
  font-size: clamp(27px, 3.6vw, 38px);
}

.site-home .sechead .cnt {
  color: var(--hub-gold);
  border-color: var(--hub-line);
  background: transparent;
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.site-home .grid {
  gap: 20px;
}

.site-home .card {
  position: relative;
  border-color: var(--hub-line);
  background: linear-gradient(155deg, rgba(21, 27, 36, .96), rgba(13, 18, 25, .98));
  box-shadow: var(--shadow-sm);
}

.site-home .card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  border: 1px solid transparent;
  border-radius: inherit;
  transition: border-color .24s ease, box-shadow .24s ease;
}

.site-home .card:hover {
  transform: translateY(-5px);
  box-shadow: var(--hub-shadow);
}

.site-home .card:hover::after {
  border-color: rgba(217, 171, 99, .36);
  box-shadow: inset 0 0 34px rgba(217, 171, 99, .035);
}

.site-home .ph {
  background: #0d1219;
}

.site-home .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 11, 16, .46), transparent 54%);
}

.site-home .status,
.site-home .typechip {
  backdrop-filter: blur(10px);
}

.site-home .status.up {
  color: #dff8ee;
  background: rgba(34, 120, 91, .78);
}

.site-home .status.past {
  color: var(--hub-text);
  background: rgba(8, 11, 16, .74);
  border: 1px solid var(--hub-line-strong);
}

.site-home .status.archived {
  color: #ead9bd;
  background: rgba(72, 60, 45, .84);
  border: 1px solid rgba(217, 171, 99, .28);
}

.site-home .typechip {
  color: var(--hub-text);
  border: 1px solid var(--hub-line);
  background: rgba(8, 11, 16, .76);
}

.site-home .body2 {
  padding: 22px 22px 25px;
}

.site-home .body2 h3 {
  color: var(--hub-text);
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
}

.site-home .meta2 {
  color: var(--hub-faint);
  font-size: 11px;
  line-height: 1.55;
}

.site-home .body2 p,
.site-home .ksub {
  color: var(--hub-muted);
}

.site-home .body2 p {
  font-size: 13px;
  line-height: 1.72;
}

.site-home .cta {
  color: var(--hub-gold);
  font-size: 12px;
  letter-spacing: .035em;
}

.site-home .subcat-h {
  font-size: 18px;
}

.site-home #archivovane {
  position: relative;
  background:
    radial-gradient(600px 280px at 80% 20%, rgba(217, 171, 99, .08), transparent 70%),
    rgba(16, 21, 29, .46) !important;
}

.site-home #archivovane .card {
  filter: saturate(.78);
}

.site-home footer {
  margin-top: 0;
  padding: 42px 0;
  border-color: var(--hub-line);
  background: #07090d;
}

.site-home footer .wrap {
  align-items: flex-start;
}

.site-home .fbrand span {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
}

.site-home .footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.site-home .footer-links a,
.site-home .fmail {
  color: var(--hub-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-home .footer-links a:hover,
.site-home .fmail:hover {
  color: var(--hub-gold);
}

.site-home footer .fnote {
  color: var(--hub-faint);
  font-size: 11px;
}

/* ========================================================================== */
/* Itinerary pages                                                             */
/* ========================================================================== */

body.itinerary {
  --bg: var(--hub-bg);
  --surface: var(--hub-panel);
  --ink: var(--hub-text);
  --muted: var(--hub-muted);
  --faint: var(--hub-faint);
  --line: var(--hub-line);
  --line2: rgba(255, 255, 255, .065);
  --indigo: var(--hub-text);
  --accent: var(--hub-gold);
  --green: var(--hub-teal);
  --blue: var(--hub-blue);
  --gold: var(--hub-gold);
  --shadow: 0 16px 42px rgba(0, 0, 0, .24);
  --shadow-h: var(--hub-shadow);
  min-height: 100vh;
  color: var(--hub-text);
  background:
    radial-gradient(circle at -44px 30%, transparent 0 90px, rgba(217, 171, 99, .075) 91px 92px, transparent 93px 132px, rgba(117, 169, 220, .05) 133px 134px, transparent 135px),
    radial-gradient(circle at calc(100% + 52px) 68%, transparent 0 108px, rgba(114, 200, 174, .055) 109px 110px, transparent 111px 152px, rgba(217, 171, 99, .065) 153px 154px, transparent 155px),
    radial-gradient(960px 520px at 8% -8%, rgba(69, 104, 150, .18), transparent 66%),
    radial-gradient(760px 460px at 94% 18%, rgba(217, 171, 99, .08), transparent 68%),
    var(--hub-bg);
  background-attachment: fixed;
}

body.itinerary a {
  color: var(--hub-gold);
}

.itinerary .topbar {
  background: rgba(8, 11, 16, .82);
  border-color: var(--hub-line);
  backdrop-filter: blur(18px) saturate(130%);
}

.itinerary .topbar .inner {
  max-width: 1240px;
  min-height: 64px;
}

.itinerary .menubtn {
  color: var(--hub-text);
  border: 1px solid transparent;
}

.itinerary .menubtn:hover {
  color: var(--hub-gold);
  border-color: var(--hub-line);
  background: rgba(255, 255, 255, .035);
}

.itinerary .topbar .brand {
  color: var(--hub-text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}

.itinerary .progresswrap {
  background: rgba(255, 255, 255, .035);
}

.itinerary .progressbar {
  background: linear-gradient(90deg, var(--hub-gold), var(--hub-blue));
}

.itinerary .brandmark {
  display: block !important;
  width: 38px;
  height: 38px;
  padding: 3px;
  border: 1px solid rgba(217, 171, 99, .34);
  border-radius: 50%;
  background-color: #fbf2e4;
  background-image: url("/assets/cesty-brandmark.svg") !important;
  background-origin: content-box;
  background-size: contain;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .22);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.itinerary .brandmark:hover {
  border-color: rgba(217, 171, 99, .48);
  background-color: #fff8ed;
  transform: translateY(-1px);
}

.itinerary .drawer {
  color: var(--hub-text);
  border-right: 1px solid var(--hub-line);
  background: rgba(13, 18, 25, .98);
  box-shadow: 20px 0 70px rgba(0, 0, 0, .50);
}

.itinerary .drawer-scrim {
  background: rgba(3, 5, 8, .72);
  backdrop-filter: blur(3px);
}

.itinerary .drawer-head {
  color: var(--hub-gold);
  font-family: var(--sans);
  font-size: 10px;
}

.itinerary .ditem {
  color: var(--hub-muted);
}

.itinerary .ditem:hover {
  color: var(--hub-text);
  background: rgba(255, 255, 255, .04);
}

.itinerary .ditem.active {
  color: var(--hub-text);
  background: rgba(217, 171, 99, .09);
  border-left-color: var(--hub-gold);
}

.itinerary .ditem .dnum {
  color: var(--hub-bg);
  background: color-mix(in srgb, var(--c, var(--hub-gold)) 60%, white);
}

.itinerary .cover {
  min-height: min(74vh, 780px);
  border-bottom: 1px solid var(--hub-line);
  background: var(--hub-panel);
}

.itinerary.trip-skotsko {
  --hero-image: url("/assets/heroes/skotsko.webp");
}

.itinerary.trip-tohoku {
  --hero-image: url("/assets/heroes/tohoku.webp");
}

.itinerary.trip-severni-cina {
  --hero-image: url("/assets/heroes/severni-cina.webp");
}

.itinerary.trip-mallorca {
  --hero-image: url("/assets/heroes/mallorca.webp");
}

.itinerary.trip-italie {
  --hero-image: url("/assets/heroes/italie.webp");
}

.itinerary.trip-bamberg {
  --hero-image: url("/assets/heroes/bamberg.webp");
}

.itinerary.trip-bremen {
  --hero-image: url("/assets/heroes/bremen.webp");
}

.itinerary.trip-regensburg {
  --hero-image: url("/assets/heroes/regensburg.webp");
}

.itinerary.trip-rothenburg {
  --hero-image: url("/assets/heroes/rothenburg.webp");
}

.itinerary[class*="trip-"] .cover {
  background-color: #0b1017;
  background-image: var(--hero-image);
  background-position: center 52%;
  background-size: cover;
}

.itinerary[class*="trip-"] .cover-art,
.itinerary[class*="trip-"] .hero-scene {
  opacity: 0;
}

.itinerary .cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(8, 11, 16, .10) 25%, rgba(8, 11, 16, .48) 100%),
    linear-gradient(to right, rgba(8, 11, 16, .16), transparent 35%, rgba(8, 11, 16, .16));
}

.itinerary .cover-inner {
  z-index: 3;
  max-width: 900px;
}

.itinerary .cover .kicker {
  color: #f0cf98;
  font-size: 10px;
  letter-spacing: .28em;
}

.itinerary .cover h1 {
  font-size: clamp(52px, 10vw, 108px);
  letter-spacing: -.035em;
  text-shadow: 0 12px 42px rgba(0, 0, 0, .42);
}

.itinerary .cover .sub,
.itinerary .cover .meta {
  color: rgba(255, 255, 255, .82);
}

.itinerary .cover .rule {
  height: 1px;
  background: var(--hub-gold);
}

.itinerary .hero-logo {
  width: 52px;
  height: 52px;
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid rgba(217, 171, 99, .38);
  border-radius: 50%;
  background-color: #fbf2e4;
  background-origin: content-box;
  background-size: contain;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28), inset 0 0 0 1px rgba(255, 255, 255, .64);
}

.itinerary .wrap {
  max-width: 1120px;
}

@media (min-width: 1280px) {
  .site-home .section .wrap,
  .itinerary .view > .wrap {
    position: relative;
  }

  .site-home .section .wrap::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -76px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(217, 171, 99, .18);
    border-radius: 50%;
    background: radial-gradient(circle, var(--hub-gold) 0 3px, transparent 4px);
    box-shadow: 0 0 0 9px rgba(217, 171, 99, .018);
  }

  .itinerary .view > .wrap::before {
    content: "";
    position: absolute;
    top: 94px;
    bottom: 150px;
    left: -54px;
    width: 1px;
    opacity: .32;
    background: repeating-linear-gradient(to bottom, var(--hub-gold) 0 2px, transparent 2px 10px);
  }

  .itinerary .view > .wrap::after {
    content: "";
    position: absolute;
    top: 88px;
    left: -59px;
    width: 9px;
    height: 9px;
    border: 1px solid rgba(217, 171, 99, .55);
    border-radius: 50%;
    background: var(--hub-bg);
    box-shadow: 0 0 18px rgba(217, 171, 99, .22);
  }
}

.itinerary .intro {
  margin-top: 66px;
}

.itinerary .intro h2 {
  color: var(--hub-text);
  font-family: var(--sans);
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  letter-spacing: -.035em;
}

.itinerary .lead,
.itinerary .note {
  color: var(--hub-muted);
}

.itinerary .lead b,
.itinerary .tip b,
.itinerary .koyobar b {
  color: var(--hub-gold);
}

.itinerary .mapfig img {
  border-color: var(--hub-panel-2);
  outline-color: var(--hub-line);
  box-shadow: var(--hub-shadow);
}

.itinerary .legend .chip,
.itinerary .searchbar input,
.itinerary .tile,
.itinerary .card,
.itinerary .fbtn,
.itinerary .pnbtn,
.itinerary .introbox,
.itinerary .minimap,
.itinerary .acc,
.itinerary .ttab,
.itinerary .tpanel {
  border-color: var(--hub-line);
  background: linear-gradient(155deg, rgba(21, 27, 36, .97), rgba(13, 18, 25, .98));
  box-shadow: var(--shadow);
}

.itinerary .searchbar input {
  color: var(--hub-text);
  background: rgba(16, 21, 29, .88);
}

.itinerary .searchbar input::placeholder {
  color: var(--hub-faint);
}

.itinerary .searchbar input:focus {
  border-color: rgba(217, 171, 99, .65);
  box-shadow: 0 0 0 4px rgba(217, 171, 99, .11);
}

.itinerary .btn-print,
.itinerary .toTop {
  color: var(--hub-bg);
  background: var(--hub-gold);
  box-shadow: 0 10px 28px rgba(217, 171, 99, .22);
}

.itinerary .tile,
.itinerary .card {
  border-radius: 16px;
}

.itinerary .tile:hover,
.itinerary .card:hover {
  border-color: rgba(217, 171, 99, .30);
  box-shadow: var(--hub-shadow);
}

.itinerary .tile::after {
  height: 3px;
  background: color-mix(in srgb, var(--c) 62%, white);
}

.itinerary .tile-ph,
.itinerary .card .ph {
  background: #0d1219;
}

.itinerary .tile-ph::after,
.itinerary .card .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(8, 11, 16, .28), transparent 50%);
}

.itinerary .tile-ph .tfallback,
.itinerary .card .ph .fallback {
  color: var(--hub-muted);
  background: linear-gradient(135deg, #121923, #0c1118);
}

.itinerary .tile-body .tnum,
.itinerary .stepind,
.itinerary .prefchip,
.itinerary .tpref {
  color: color-mix(in srgb, var(--c, var(--hub-gold)) 58%, white);
}

.itinerary .tile-body .tname,
.itinerary .card .body h4,
.itinerary .pnbtn,
.itinerary .acc-head {
  color: var(--hub-text);
}

.itinerary .tile-body .tname {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: -.02em;
}

.itinerary .card .body h4 {
  font-size: 17px;
}

.itinerary .tile-body .tdate,
.itinerary .card .body p,
.itinerary .info .irow,
.itinerary .minimap-cap,
.itinerary .made,
.itinerary footer,
.itinerary .src {
  color: var(--hub-muted);
}

.itinerary .chip {
  color: var(--hub-text);
  border: 1px solid var(--hub-line);
  background: rgba(8, 11, 16, .78);
}

.itinerary .chip.out,
.itinerary .legend .chip.out {
  color: var(--hub-teal);
}

.itinerary .chip.cul,
.itinerary .legend .chip.cul {
  color: var(--hub-blue);
}

.itinerary .band .num,
.itinerary .band .t .nm {
  color: color-mix(in srgb, var(--c) 56%, white);
}

.itinerary .band .t .dt,
.itinerary .navpill,
.itinerary .ttab.active {
  color: var(--hub-bg);
  background: color-mix(in srgb, var(--c) 56%, white);
  border-color: transparent;
}

.itinerary .band .t .ht,
.itinerary .acc-body i,
.itinerary .tpanel .tbody i {
  color: var(--hub-muted);
}

.itinerary .fbtn:hover,
.itinerary .backbtn:hover,
.itinerary .ttab:hover,
.itinerary .pnbtn:hover {
  color: var(--hub-gold);
  border-color: rgba(217, 171, 99, .55);
}

.itinerary .fbtn.active,
.itinerary .pnbtn.mid {
  color: var(--hub-bg);
  background: var(--hub-gold);
  border-color: var(--hub-gold);
}

.itinerary .fbtn.out.active {
  color: var(--hub-bg);
  background: var(--hub-teal);
  border-color: var(--hub-teal);
}

.itinerary .fbtn.cul.active {
  color: var(--hub-bg);
  background: var(--hub-blue);
  border-color: var(--hub-blue);
}

.itinerary .backbtn {
  color: var(--hub-muted);
  border-color: var(--hub-line);
}

.itinerary .introbox,
.itinerary .tpanel {
  color: var(--hub-text);
  border-left-color: color-mix(in srgb, var(--c) 58%, white);
}

.itinerary .introbox b,
.itinerary .acc-body b,
.itinerary .tpanel h5,
.itinerary .tpanel .tbody b,
.itinerary .acc-x {
  color: color-mix(in srgb, var(--c, var(--hub-gold)) 56%, white);
}

.itinerary .acc-head:hover {
  background: rgba(255, 255, 255, .035);
}

.itinerary .acc-body p,
.itinerary .tpanel .tbody {
  color: var(--hub-muted);
}

.itinerary .tip,
.itinerary .koyobar {
  color: var(--hub-text);
  border-color: rgba(217, 171, 99, .24);
  background: linear-gradient(90deg, rgba(217, 171, 99, .10), rgba(117, 169, 220, .06));
}

.itinerary .prefchip {
  border-color: var(--hub-line);
  background: rgba(255, 255, 255, .025);
}

.itinerary .navarrow {
  color: var(--hub-text);
  border-color: var(--hub-line-strong);
  background: rgba(8, 11, 16, .84);
  box-shadow: var(--hub-shadow);
}

.itinerary .navarrow:hover {
  color: var(--hub-bg);
  background: var(--hub-gold);
}

.itinerary footer {
  border-color: var(--hub-line);
}

.itinerary .foot-logo {
  display: block !important;
  width: 56px;
  height: 56px;
  box-sizing: border-box;
  margin: 0 auto 12px;
  padding: 5px;
  border: 1px solid rgba(217, 171, 99, .28);
  border-radius: 50%;
  background-color: #fbf2e4;
  background-image: url("/assets/cesty-brandmark.svg") !important;
  background-origin: content-box;
  background-size: contain;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.itinerary .bg-anim .glow {
  background:
    radial-gradient(72% 44% at 50% 0%, rgba(117, 169, 220, .12), transparent 64%),
    radial-gradient(60% 40% at 86% 14%, rgba(217, 171, 99, .08), transparent 62%),
    radial-gradient(55% 46% at 8% 34%, rgba(114, 200, 174, .055), transparent 62%);
}

.itinerary .bg-anim .mist {
  opacity: .14;
  background: radial-gradient(closest-side, rgba(117, 169, 220, .30), transparent);
}

.itinerary .bg-anim .horizon {
  opacity: .035;
  filter: saturate(.2) brightness(1.5);
}

.itinerary.archived-itinerary .cover::before {
  content: "ARCHIVOVÁNO";
  position: absolute;
  top: 26px;
  right: 26px;
  z-index: 4;
  padding: 7px 12px;
  color: #ead9bd;
  border: 1px solid rgba(217, 171, 99, .40);
  border-radius: 999px;
  background: rgba(8, 11, 16, .72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .18em;
  backdrop-filter: blur(8px);
}

@media (max-width: 960px) {
  .site-home .hero-layout {
    grid-template-columns: 1fr;
    gap: 42px;
    text-align: center;
  }

  .site-home .hero h1,
  .site-home .hero .sub {
    margin-right: auto;
    margin-left: auto;
  }

  .site-home .statrow {
    justify-content: center;
  }

  .site-home .hub-visual {
    width: min(76vw, 390px);
    margin: 0 auto;
    justify-self: center;
  }
}

@media (max-width: 720px) {
  .site-home .topbar .wrap {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 9px;
  }

  .site-home .navlinks {
    display: flex;
    gap: 10px;
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
    font-size: 10.5px;
  }

  .site-home .navlinks a {
    flex: 0 0 auto;
    padding: 4px 0;
    white-space: nowrap;
  }

  .site-home .hero {
    min-height: 0;
    padding-top: 70px;
  }

  .site-home .hero-layout {
    gap: 34px;
  }

  .site-home .hero::before {
    top: -12%;
    right: -55%;
    width: 120vw;
  }

  .site-home .hero::after {
    top: 12%;
    right: 13%;
  }

  .site-home .hero h1 {
    font-size: clamp(43px, 13vw, 64px);
  }

  .site-home .hero .sub {
    font-size: 14px;
  }

  .site-home .hub-visual {
    width: min(82vw, 330px);
  }

  .site-home .hub-visual img {
    border-radius: 34px;
  }

  .site-home .hub-visual figcaption {
    right: -5px;
    bottom: 3%;
    max-width: 178px;
    padding: 10px 12px;
    font-size: 10px;
  }

  .site-home .hub-visual-route {
    right: -8px;
  }

  .site-home .horizon {
    height: 128px;
  }

  .site-home .intro,
  .site-home .section {
    padding-top: 54px;
    padding-bottom: 54px;
  }

  .site-home .intro .box {
    padding: 30px 22px;
  }

  .site-home footer .wrap {
    flex-direction: column;
  }

  .itinerary .topbar .inner {
    min-height: 60px;
  }

  .itinerary .brandmark {
    width: 34px;
    height: 34px;
  }

  .itinerary .cover {
    min-height: 64vh;
  }

  .itinerary .cover-inner {
    padding: 58px 20px 42px;
  }

  .itinerary .hero-logo {
    width: 48px;
    height: 48px;
  }

  .itinerary .cover .kicker {
    letter-spacing: .19em;
  }

  .itinerary.archived-itinerary .cover::before {
    top: 14px;
    right: 14px;
  }
}

@media (max-width: 380px) {
  .site-home .topbar {
    position: relative;
  }

  .site-home .navlinks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px 14px;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-home .hero::before {
    animation: none;
  }

  .site-home .card,
  .site-home .hub-visual img,
  .itinerary .card,
  .itinerary .tile,
  .itinerary .navarrow {
    transition-duration: .01ms !important;
  }
}

.itinerary .photo-credit {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  color: rgba(238, 245, 247, .92);
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(7, 13, 20, .74);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .24);
  backdrop-filter: blur(7px);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.itinerary .photo-credit:hover,
.itinerary .photo-credit:focus-visible {
  color: #fff;
  border-color: rgba(217, 171, 99, .64);
  background: rgba(7, 13, 20, .92);
}

.itinerary .p3-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
  border: 1px solid rgba(126, 165, 178, .22);
  border-radius: 13px;
  background: #071321;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 18px 38px rgba(0, 0, 0, .24);
}

.itinerary .p3-map-stop {
  cursor: pointer;
  outline: none;
}

.itinerary .p3-map-stop .p3-map-hit {
  fill: transparent;
}

.itinerary .p3-map-stop .p3-map-marker {
  transition: filter .18s ease, transform .18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.itinerary .p3-map-stop:hover .p3-map-marker,
.itinerary .p3-map-stop:focus-visible .p3-map-marker {
  filter: drop-shadow(0 0 5px rgba(255, 210, 123, .78));
  transform: scale(1.12);
}

.itinerary .p3-map-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}

.itinerary .p3-map-stop:hover .p3-map-tooltip,
.itinerary .p3-map-stop:focus-visible .p3-map-tooltip {
  opacity: 1;
}

.itinerary .p3-map-tooltip rect {
  fill: rgba(7, 13, 21, .97);
  stroke: rgba(217, 171, 99, .62);
  stroke-width: 1;
  filter: drop-shadow(0 7px 12px rgba(0, 0, 0, .42));
}

.itinerary .p3-map-tooltip .p3-map-tip-title {
  fill: #f6f2e8;
  font-size: 8px;
  font-weight: 800;
}

.itinerary .p3-map-tooltip .p3-map-tip-activity {
  fill: #bfd0d7;
  font-size: 6.8px;
  font-weight: 600;
}

.itinerary .p3-map-hint {
  fill: #b9cbd3;
  font-size: 6.4px;
  letter-spacing: .02em;
}

@media print {
  .itinerary .p3-map-tooltip,
  .itinerary .p3-map-hint {
    display: none;
  }
}

.itinerary .mapfig .p3-map {
  width: min(680px, 94%);
  max-width: 680px;
  border: 4px solid var(--hub-panel-2);
  border-radius: 18px;
  outline: 1px solid var(--hub-line);
  box-shadow: var(--hub-shadow);
}

.itinerary .minimap-note {
  color: var(--hub-faint);
}

@media print {
  .itinerary .photo-credit {
    display: none;
  }

  body.itinerary {
    --bg: #fff;
    --surface: #fff;
    --ink: #242424;
    --muted: #5f5f5f;
    --faint: #777;
    --line: #d7d7d7;
    --line2: #e8e8e8;
    --indigo: #1f3a5f;
    color: #242424;
    background: #fff !important;
  }

  body.itinerary::before {
    display: none;
  }

  .itinerary .card,
  .itinerary .tile,
  .itinerary .introbox,
  .itinerary .minimap,
  .itinerary .acc,
  .itinerary .tpanel {
    color: #242424;
    border-color: #d7d7d7;
    background: #fff;
    box-shadow: none;
  }

  .itinerary .card .body h4,
  .itinerary .tile-body .tname,
  .itinerary .acc-head {
    color: #1f3a5f;
  }

  .itinerary .card .body p,
  .itinerary .info .irow,
  .itinerary .acc-body p,
  .itinerary .tpanel .tbody {
    color: #4f4f4f;
  }
}
