:root {
  color-scheme: light dark;
  --ink: #16211f;
  --muted: #60706b;
  --paper: #faf8f1;
  --panel: #ffffff;
  --line: #dde5df;
  --green: #167a5b;
  --green-dark: #0e4637;
  --orange: #f06a3b;
  --blue: #2f7fc1;
  --bonn-blue: #003f7d;
  --bonn-yellow: #b47d00;
  --cyan: #00a7b8;
  --cyan-dark: #004e5a;
  --yellow: #ffcf5a;
  --shadow: 0 18px 45px rgba(22, 33, 31, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow: hidden;
}

body.home-page {
  overflow: auto;
}

a {
  color: inherit;
}

.tour-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(360px, 1fr);
  height: 100vh;
  overflow: hidden;
}

.map-panel {
  position: relative;
  min-height: 0;
  height: 100vh;
  overflow: hidden;
  background: #dfe9e4;
}

.tour-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.brand-mark,
.map-legend {
  position: absolute;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(22, 33, 31, 0.12);
  background: rgba(250, 248, 241, 0.92);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(22, 33, 31, 0.12);
  backdrop-filter: blur(14px);
}

.brand-mark {
  top: 20px;
  left: 20px;
  min-height: 44px;
  padding: 8px 13px 8px 8px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark img {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  object-fit: contain;
}

.brand-mark__text {
  position: relative;
  display: grid;
  min-width: 86px;
  overflow: hidden;
}

.brand-mark__label,
.brand-mark__back {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.brand-mark__back {
  color: var(--green-dark);
  font-weight: 950;
  opacity: 0;
  transform: translateY(10px);
}

.brand-mark:hover .brand-mark__label,
.brand-mark:focus-visible .brand-mark__label {
  opacity: 0;
  transform: translateY(-10px);
}

.brand-mark:hover .brand-mark__back,
.brand-mark:focus-visible .brand-mark__back {
  opacity: 1;
  transform: translateY(0);
}

.brand-word {
  display: inline-flex;
  align-items: baseline;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-word__bonn {
  color: var(--bonn-blue);
}

.brand-word__cycle {
  color: var(--bonn-yellow);
}

.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid rgba(22, 33, 31, 0.12);
  border-radius: 8px;
  background: rgba(250, 248, 241, 0.92);
  color: var(--ink);
  box-shadow: 0 12px 28px rgba(22, 33, 31, 0.12);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(22, 33, 31, 0.16);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(47, 127, 193, 0.32);
  outline-offset: 2px;
}

.theme-toggle__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.map-legend {
  left: 20px;
  bottom: 20px;
  flex-wrap: wrap;
  max-width: min(620px, calc(100% - 40px));
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 750;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.legend-line {
  width: 34px;
  height: 0;
  border-top: 4px solid var(--cyan);
  border-radius: 8px;
}

.legend-line--ferry {
  border-top-color: var(--blue);
  border-top-style: dashed;
}

.legend-dot {
  width: 13px;
  height: 13px;
  border: 2px solid var(--cyan-dark);
  border-radius: 50%;
  background: #ffffff;
}

.home-shell {
  display: grid;
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  align-content: start;
  gap: 44px;
}

.home-hero {
  display: grid;
  width: min(820px, 100%);
}

.home-copy {
  display: grid;
  align-content: center;
  gap: 16px;
}

.home-brand-lockup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px 24px;
}

.home-brand-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.home-logo {
  display: block;
  width: clamp(96px, 15vw, 164px);
  height: auto;
  flex: 0 0 auto;
  object-fit: contain;
}

.home-kicker {
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.home-copy h1 {
  max-width: none;
  font-size: 88px;
  line-height: 0.88;
}

.home-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 44px;
  padding: 11px 15px;
  border-radius: 8px;
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 122, 91, 0.22);
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.home-whatsapp svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.home-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(22, 122, 91, 0.26);
}

.tour-archive {
  display: grid;
  gap: 14px;
}

.tour-archive__header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.tour-archive__header h2 {
  font-size: 24px;
}

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

.tour-preview {
  display: grid;
  gap: 12px;
  align-self: center;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tour-preview:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 52px rgba(22, 33, 31, 0.18);
}

.tour-preview__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour-preview__number {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eefbfc;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 900;
}

.tour-preview__badge {
  width: fit-content;
  padding: 7px 10px;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
}

.tour-preview__badge--new {
  background: #d83324;
}

.tour-preview__badge--done {
  background: var(--green);
}

.tour-preview__title {
  max-width: 12ch;
  font-size: 40px;
  font-weight: 900;
  line-height: 0.9;
}

.tour-preview__route {
  color: var(--muted);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.4;
}

.tour-preview__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tour-preview__meta span {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef8f1;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.tour-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100vh;
  min-height: 0;
  padding: 24px;
  overflow: hidden;
  border-left: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 241, 0.96)),
    var(--panel);
  box-shadow: var(--shadow);
}

.tour-card__header {
  display: grid;
  gap: 12px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 9ch;
  font-size: 56px;
  line-height: 0.88;
  letter-spacing: 0;
}

h1 span {
  color: var(--orange);
  white-space: nowrap;
}

.route-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  max-width: 31rem;
  padding: 8px 0 2px;
}

.route-step {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 9px;
  border: 1px solid rgba(0, 78, 90, 0.16);
  border-radius: 8px;
  background: #eefbfc;
  color: var(--cyan-dark);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
}

.route-step--start,
.route-step--finish {
  background: #eef8f1;
  color: var(--green-dark);
}

.route-step--ferry {
  background: #eef4fb;
  color: #17405f;
}

.route-step--bridge {
  background: #fff2ec;
  color: #a3411d;
}

.route-step--view {
  background: #f7fbff;
  color: #265a82;
}

.route-arrow {
  color: var(--muted);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}

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

.fact-card,
.weather-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.fact-card {
  display: grid;
  min-height: 88px;
  padding: 12px;
  align-content: space-between;
  gap: 8px;
}

.fact-card__icon,
.section-icon {
  width: 20px;
  height: 20px;
  color: var(--green);
}

.fact-card__label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
}

.fact-card strong {
  font-size: 24px;
  line-height: 1;
}

.weather-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.weather-card > div:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

h2 {
  font-size: 18px;
  letter-spacing: 0;
}

.weather-card p,
.tour-footnote {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.weather-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weather-pill-row span {
  padding: 7px 9px;
  border: 1px solid rgba(47, 127, 193, 0.18);
  border-radius: 8px;
  background: #f7fbff;
  color: #265a82;
  font-size: 13px;
  font-weight: 800;
}

.action-stack {
  display: grid;
  gap: 8px;
}

.primary-action,
.secondary-action,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 850;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-action svg,
.secondary-action svg,
.ghost-action svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.primary-action {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 122, 91, 0.24);
}

.secondary-action {
  border: 1px solid rgba(240, 106, 59, 0.35);
  background: #fff2ec;
  color: #a3411d;
}

.ghost-action {
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
}

.primary-action:hover,
.secondary-action:hover,
.ghost-action:hover {
  transform: translateY(-1px);
}

.primary-action:focus-visible,
.secondary-action:focus-visible,
.ghost-action:focus-visible {
  outline: 3px solid rgba(47, 127, 193, 0.32);
  outline-offset: 2px;
}

.tour-footnote {
  display: grid;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
}

.leaflet-control-zoom a {
  color: var(--ink);
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

.leaflet-popup-content {
  margin: 12px 14px;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.35;
}

.leaflet-popup-content strong {
  display: block;
  margin-bottom: 4px;
}

.leaflet-popup-content a {
  color: var(--green);
  font-weight: 800;
}

.route-direction-icon {
  background: transparent;
  border: 0;
}

.route-direction-arrow {
  display: block;
  width: 34px;
  height: 22px;
  transform: rotate(var(--route-arrow-angle));
  transform-origin: center;
  filter: drop-shadow(0 2px 4px rgba(22, 33, 31, 0.22));
}

.route-direction-arrow svg {
  display: block;
  width: 34px;
  height: 22px;
  overflow: visible;
}

.route-direction-arrow path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-direction-arrow__outline {
  stroke: #ffffff;
  stroke-width: 8;
}

.route-direction-arrow__fill {
  stroke: var(--cyan-dark);
  stroke-width: 4;
}

.stop-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--cyan-dark);
  color: #ffffff;
  box-shadow:
    0 9px 20px rgba(22, 33, 31, 0.24),
    0 0 0 2px rgba(0, 78, 90, 0.28);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.stop-marker--start {
  width: 42px;
  height: 42px;
  background: var(--green-dark);
  box-shadow:
    0 9px 20px rgba(22, 33, 31, 0.26),
    0 0 0 3px rgba(22, 122, 91, 0.24);
  font-size: 20px;
}

.stop-marker--ferry {
  background: #0b67a3;
  box-shadow:
    0 9px 20px rgba(22, 33, 31, 0.24),
    0 0 0 2px rgba(11, 103, 163, 0.28);
}

.stop-marker--bridge {
  background: #a3411d;
  box-shadow:
    0 9px 20px rgba(22, 33, 31, 0.24),
    0 0 0 2px rgba(163, 65, 29, 0.28);
}

.stop-marker--view {
  background: #265a82;
  box-shadow:
    0 9px 20px rgba(22, 33, 31, 0.24),
    0 0 0 2px rgba(38, 90, 130, 0.28);
}

@media (max-width: 980px) {
  body {
    overflow: auto;
  }

  .home-shell {
    gap: 32px;
  }

  .home-copy h1 {
    font-size: 68px;
  }

  .tour-list {
    grid-template-columns: 1fr;
  }

  .tour-preview {
    min-height: 240px;
  }

  .tour-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .map-panel {
    height: 56vh;
    min-height: 360px;
  }

  .tour-card {
    height: auto;
    min-height: auto;
    overflow: visible;
    border-left: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

  h1 {
    max-width: 12ch;
    font-size: 54px;
  }

  .route-chain {
    max-width: 100%;
    gap: 6px;
  }
}

@media (min-width: 981px) and (max-height: 760px) {
  .tour-card {
    gap: 8px;
    padding: 18px;
  }

  .tour-card__header {
    gap: 8px;
  }

  h1 {
    font-size: 48px;
  }

  .route-step {
    font-size: 13px;
  }

  .fact-card {
    min-height: 76px;
    padding: 10px;
  }

  .fact-card strong {
    font-size: 22px;
  }

  .weather-card {
    gap: 9px;
    padding: 12px;
  }

  .primary-action,
  .secondary-action,
  .ghost-action {
    min-height: 40px;
    padding: 8px 12px;
  }

  .tour-footnote {
    display: none;
  }
}

@media (max-width: 560px) {
  .home-shell {
    padding: 16px;
    gap: 28px;
  }

  .home-copy h1 {
    font-size: 50px;
  }

  .home-brand-lockup {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-logo {
    width: 118px;
  }

  .home-brand-copy {
    gap: 14px;
  }

  .home-whatsapp {
    width: 100%;
  }

  .tour-preview {
    min-height: 190px;
    padding: 16px;
  }

  .tour-preview__title {
    max-width: 100%;
    font-size: 34px;
  }

  .tour-card {
    padding: 18px;
    gap: 14px;
  }

  .map-panel {
    height: 52vh;
    min-height: 320px;
  }

  .brand-mark {
    top: 12px;
    left: 12px;
  }

  .map-legend {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 8px;
    font-size: 12px;
  }

  .legend-item {
    justify-content: center;
    gap: 6px;
    white-space: normal;
    text-align: center;
  }

  .legend-line {
    width: 24px;
  }

  .facts-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .fact-card {
    min-height: 78px;
  }

  h1 {
    font-size: 40px;
  }

  .route-chain {
    gap: 5px;
  }

  .route-step {
    min-height: 28px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .route-arrow {
    font-size: 14px;
  }

  .primary-action,
  .secondary-action,
  .ghost-action {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  .map-legend {
    grid-template-columns: 1fr;
  }

  .legend-item {
    justify-content: start;
    text-align: left;
  }

  .tour-card {
    padding: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .home-copy h1 {
    font-size: 44px;
  }
}

@media (max-width: 980px) {
  .leaflet-top.leaflet-right {
    top: 58px;
  }
}

@media (max-width: 560px) {
  .theme-toggle {
    top: 12px;
    right: 12px;
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .theme-toggle [data-theme-label] {
    display: none;
  }

  .leaflet-top.leaflet-right {
    top: 52px;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f2f3ee;
    --muted: #a8b1ad;
    --paper: #171717;
    --panel: #202321;
    --line: #353a36;
    --green: #36a875;
    --green-dark: #8fd8b6;
    --orange: #ff8a5f;
    --blue: #74b8ff;
    --bonn-blue: #74b8ff;
    --bonn-yellow: #d6a526;
    --cyan: #2cc7d3;
    --cyan-dark: #86e5ec;
    --yellow: #e3bc45;
    --shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
  }

  :root:not([data-theme="light"]) .map-panel {
    background: #151817;
  }

  :root:not([data-theme="light"]) .leaflet-tile-pane {
    filter: brightness(0.72) contrast(1.08) saturate(0.82);
  }

  :root:not([data-theme="light"]) .brand-mark,
  :root:not([data-theme="light"]) .map-legend,
  :root:not([data-theme="light"]) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(31, 34, 32, 0.9);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
  }

  :root:not([data-theme="light"]) .theme-toggle:hover {
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  }

  :root:not([data-theme="light"]) .legend-dot {
    border-color: var(--cyan-dark);
    background: #f2f3ee;
  }

  :root:not([data-theme="light"]) .home-whatsapp,
  :root:not([data-theme="light"]) .primary-action {
    background: #25875e;
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
  }

  :root:not([data-theme="light"]) .tour-preview,
  :root:not([data-theme="light"]) .fact-card,
  :root:not([data-theme="light"]) .weather-card {
    border-color: var(--line);
    background: rgba(32, 35, 33, 0.92);
  }

  :root:not([data-theme="light"]) .tour-preview:hover {
    box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36);
  }

  :root:not([data-theme="light"]) .tour-card {
    border-left-color: var(--line);
    background:
      linear-gradient(180deg, rgba(32, 35, 33, 0.96), rgba(23, 23, 23, 0.96)),
      var(--panel);
  }

  :root:not([data-theme="light"]) .tour-preview__number,
  :root:not([data-theme="light"]) .route-step {
    border-color: rgba(44, 199, 211, 0.3);
    background: rgba(44, 199, 211, 0.14);
    color: var(--cyan-dark);
  }

  :root:not([data-theme="light"]) .tour-preview__meta span,
  :root:not([data-theme="light"]) .route-step--start,
  :root:not([data-theme="light"]) .route-step--finish {
    background: rgba(54, 168, 117, 0.15);
    color: #9be4c2;
  }

  :root:not([data-theme="light"]) .route-step--ferry,
  :root:not([data-theme="light"]) .weather-pill-row span {
    border-color: rgba(116, 184, 255, 0.28);
    background: rgba(116, 184, 255, 0.14);
    color: #b9dfff;
  }

  :root:not([data-theme="light"]) .route-step--bridge,
  :root:not([data-theme="light"]) .secondary-action {
    border-color: rgba(255, 138, 95, 0.28);
    background: rgba(255, 138, 95, 0.14);
    color: #ffb99f;
  }

  :root:not([data-theme="light"]) .route-step--view {
    background: rgba(116, 184, 255, 0.1);
    color: #b9dfff;
  }

  :root:not([data-theme="light"]) .ghost-action {
    border-color: var(--line);
    background: #252825;
    color: var(--ink);
  }

  :root:not([data-theme="light"]) .leaflet-control-zoom a,
  :root:not([data-theme="light"]) .leaflet-control-layers {
    background: #202321;
    color: var(--ink);
    border-color: var(--line);
  }

  :root:not([data-theme="light"]) .leaflet-popup-content-wrapper,
  :root:not([data-theme="light"]) .leaflet-popup-tip {
    background: #202321;
    color: var(--ink);
  }

  :root:not([data-theme="light"]) .leaflet-popup-content {
    color: var(--ink);
  }

  :root:not([data-theme="light"]) .route-direction-arrow__outline {
    stroke: #171717;
  }

  :root:not([data-theme="light"]) .route-direction-arrow__fill {
    stroke: var(--cyan-dark);
  }

  :root:not([data-theme="light"]) .stop-marker {
    border-color: #171717;
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #16211f;
  --muted: #60706b;
  --paper: #faf8f1;
  --panel: #ffffff;
  --line: #dde5df;
  --green: #167a5b;
  --green-dark: #0e4637;
  --orange: #f06a3b;
  --blue: #2f7fc1;
  --bonn-blue: #003f7d;
  --bonn-yellow: #b47d00;
  --cyan: #00a7b8;
  --cyan-dark: #004e5a;
  --yellow: #ffcf5a;
  --shadow: 0 18px 45px rgba(22, 33, 31, 0.16);
}

:root[data-theme="light"] .map-panel {
  background: #dfe9e4;
}

:root[data-theme="light"] .leaflet-tile-pane {
  filter: none;
}

:root[data-theme="light"] .brand-mark,
:root[data-theme="light"] .map-legend,
:root[data-theme="light"] .theme-toggle {
  border-color: rgba(22, 33, 31, 0.12);
  background: rgba(250, 248, 241, 0.92);
  box-shadow: 0 12px 28px rgba(22, 33, 31, 0.12);
}

:root[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 16px 32px rgba(22, 33, 31, 0.16);
}

:root[data-theme="light"] .legend-dot {
  border-color: var(--cyan-dark);
  background: #ffffff;
}

:root[data-theme="light"] .home-whatsapp,
:root[data-theme="light"] .primary-action {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 122, 91, 0.24);
}

:root[data-theme="light"] .tour-preview,
:root[data-theme="light"] .fact-card,
:root[data-theme="light"] .weather-card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
}

:root[data-theme="light"] .tour-preview {
  background: #ffffff;
}

:root[data-theme="light"] .tour-preview:hover {
  box-shadow: 0 22px 52px rgba(22, 33, 31, 0.18);
}

:root[data-theme="light"] .tour-card {
  border-left-color: var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(250, 248, 241, 0.96)),
    var(--panel);
}

:root[data-theme="light"] .tour-preview__number,
:root[data-theme="light"] .route-step {
  border-color: rgba(0, 78, 90, 0.16);
  background: #eefbfc;
  color: var(--cyan-dark);
}

:root[data-theme="light"] .tour-preview__meta span,
:root[data-theme="light"] .route-step--start,
:root[data-theme="light"] .route-step--finish {
  background: #eef8f1;
  color: var(--green-dark);
}

:root[data-theme="light"] .route-step--ferry,
:root[data-theme="light"] .weather-pill-row span {
  border-color: rgba(47, 127, 193, 0.18);
  background: #f7fbff;
  color: #265a82;
}

:root[data-theme="light"] .route-step--ferry {
  background: #eef4fb;
  color: #17405f;
}

:root[data-theme="light"] .route-step--bridge,
:root[data-theme="light"] .secondary-action {
  border-color: rgba(240, 106, 59, 0.35);
  background: #fff2ec;
  color: #a3411d;
}

:root[data-theme="light"] .route-step--view {
  background: #f7fbff;
  color: #265a82;
}

:root[data-theme="light"] .ghost-action {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

:root[data-theme="light"] .leaflet-control-zoom a,
:root[data-theme="light"] .leaflet-control-layers {
  background: #ffffff;
  color: var(--ink);
  border-color: #cccccc;
}

:root[data-theme="light"] .leaflet-popup-content-wrapper,
:root[data-theme="light"] .leaflet-popup-tip {
  background: #ffffff;
  color: var(--ink);
}

:root[data-theme="light"] .leaflet-popup-content {
  color: var(--ink);
}

:root[data-theme="light"] .route-direction-arrow__outline {
  stroke: #ffffff;
}

:root[data-theme="light"] .route-direction-arrow__fill {
  stroke: var(--cyan-dark);
}

:root[data-theme="light"] .stop-marker {
  border-color: #ffffff;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f2f3ee;
  --muted: #a8b1ad;
  --paper: #171717;
  --panel: #202321;
  --line: #353a36;
  --green: #36a875;
  --green-dark: #8fd8b6;
  --orange: #ff8a5f;
  --blue: #74b8ff;
  --bonn-blue: #74b8ff;
  --bonn-yellow: #d6a526;
  --cyan: #2cc7d3;
  --cyan-dark: #86e5ec;
  --yellow: #e3bc45;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .map-panel {
  background: #151817;
}

:root[data-theme="dark"] .leaflet-tile-pane {
  filter: brightness(0.72) contrast(1.08) saturate(0.82);
}

:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .map-legend,
:root[data-theme="dark"] .theme-toggle {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(31, 34, 32, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .theme-toggle:hover {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .legend-dot {
  border-color: var(--cyan-dark);
  background: #f2f3ee;
}

:root[data-theme="dark"] .home-whatsapp,
:root[data-theme="dark"] .primary-action {
  background: #25875e;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .tour-preview,
:root[data-theme="dark"] .fact-card,
:root[data-theme="dark"] .weather-card {
  border-color: var(--line);
  background: rgba(32, 35, 33, 0.92);
}

:root[data-theme="dark"] .tour-preview:hover {
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.36);
}

:root[data-theme="dark"] .tour-card {
  border-left-color: var(--line);
  background:
    linear-gradient(180deg, rgba(32, 35, 33, 0.96), rgba(23, 23, 23, 0.96)),
    var(--panel);
}

:root[data-theme="dark"] .tour-preview__number,
:root[data-theme="dark"] .route-step {
  border-color: rgba(44, 199, 211, 0.3);
  background: rgba(44, 199, 211, 0.14);
  color: var(--cyan-dark);
}

:root[data-theme="dark"] .tour-preview__meta span,
:root[data-theme="dark"] .route-step--start,
:root[data-theme="dark"] .route-step--finish {
  background: rgba(54, 168, 117, 0.15);
  color: #9be4c2;
}

:root[data-theme="dark"] .route-step--ferry,
:root[data-theme="dark"] .weather-pill-row span {
  border-color: rgba(116, 184, 255, 0.28);
  background: rgba(116, 184, 255, 0.14);
  color: #b9dfff;
}

:root[data-theme="dark"] .route-step--bridge,
:root[data-theme="dark"] .secondary-action {
  border-color: rgba(255, 138, 95, 0.28);
  background: rgba(255, 138, 95, 0.14);
  color: #ffb99f;
}

:root[data-theme="dark"] .route-step--view {
  background: rgba(116, 184, 255, 0.1);
  color: #b9dfff;
}

:root[data-theme="dark"] .ghost-action {
  border-color: var(--line);
  background: #252825;
  color: var(--ink);
}

:root[data-theme="dark"] .leaflet-control-zoom a,
:root[data-theme="dark"] .leaflet-control-layers {
  background: #202321;
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .leaflet-popup-tip {
  background: #202321;
  color: var(--ink);
}

:root[data-theme="dark"] .leaflet-popup-content {
  color: var(--ink);
}

:root[data-theme="dark"] .route-direction-arrow__outline {
  stroke: #171717;
}

:root[data-theme="dark"] .route-direction-arrow__fill {
  stroke: var(--cyan-dark);
}

:root[data-theme="dark"] .stop-marker {
  border-color: #171717;
}
