.cr-header h1 .cr-title-primary {
  background: none;
  color: #ffffff;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
}

.cr-map {
  overflow: visible;
}

.world-map-image {
  opacity: 0.82;
}

.continents .land {
  fill: rgba(33, 91, 153, 0.2);
  stroke: rgba(109, 190, 255, 0.46);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}

.routes path {
  stroke-width: 2.2;
  stroke-linecap: round;
}

.cr-hero .mail {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 26px;
  border: 1px solid rgba(185, 228, 255, 0.72);
  font-size: 15px;
  line-height: 1;
}

html[data-theme="light"] .cr-hero .mail {
  color: #ffffff;
  background: #075fae;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 22px rgba(7, 95, 174, 0.35);
}

html[data-theme="dark"] .cr-header h1,
html[data-theme="dark"] .cr-header h1 .cr-title-primary {
  color: #ffffff;
}

html[data-theme="light"] .cr-hero {
  color: #0b1f48;
  background: radial-gradient(circle at 50% 42%, #e6f3ff 0%, #f4f9ff 38%, #ffffff 78%);
}

html[data-theme="light"] .cr-grid {
  opacity: 0.34;
  background-image: linear-gradient(rgba(11, 135, 254, 0.12) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 135, 254, 0.12) 1px, transparent 1px);
}

html[data-theme="light"] .cr-glow {
  background: radial-gradient(circle, rgba(11, 135, 254, 0.14), transparent 68%);
}

html[data-theme="light"] .cr-header h1,
html[data-theme="light"] .cr-header h1 .cr-title-primary {
  color: #0b1f48;
}

html[data-theme="light"] #crHeroTitleSecondary {
  background: linear-gradient(90deg, #0b1f48, #0b4c92);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

html[data-theme="light"] .cr-header p {
  color: #52647d;
}

html[data-theme="light"] .cr-header strong {
  color: #0b4c92;
}

html[data-theme="light"] .continents path {
  fill: rgba(11, 76, 146, 0.1);
  stroke: rgba(11, 76, 146, 0.38);
}

html[data-theme="light"] .world-map-image {
  opacity: 0.58;
  filter: saturate(0.72) contrast(0.9);
}

/* City cards sit beside their geographic dot; the route itself ends on the dot. */
.cr-stage .d1 { left: 21%; top: 24%; }
.cr-stage .d2 { left: 43%; top: 28%; }
.cr-stage .d3 { left: 53%; top: 17%; }
.cr-stage .d4 { right: 5%; top: 29%; }
.cr-stage .d5 { right: -3%; top: 20%; }
.cr-stage .d6 { left: 27%; bottom: 20%; }
.cr-stage .d7 { left: 54%; bottom: 10%; }
.cr-stage .d8 { right: 22%; top: 10%; }

@media (max-width: 760px) {
  .cr-stage .d1 { left: 8%; top: 23%; }
  .cr-stage .d2 { left: 35%; top: 29%; }
  .cr-stage .d3 { left: 50%; top: 15%; }
  .cr-stage .d4 { right: -2%; top: 31%; }
  .cr-stage .d5 { right: -10%; top: 18%; }
  .cr-stage .d6 { left: 19%; bottom: 20%; }
  .cr-stage .d7 { left: 48%; bottom: 8%; }
  .cr-stage .d8 { right: 13%; top: 8%; }
}

@keyframes fly1 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 29.4%; top: 27.3%; opacity: 0; }
}

@keyframes fly2 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 50.7%; top: 22.9%; opacity: 0; }
}

@keyframes fly3 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 53.8%; top: 22%; opacity: 0; }
}

@keyframes fly4 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 83.7%; top: 32.3%; opacity: 0; }
}

@keyframes fly5 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 89.9%; top: 28.8%; opacity: 0; }
}

@keyframes fly6 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 34.3%; top: 63%; opacity: 0; }
}

@keyframes fly7 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 55.1%; top: 68.8%; opacity: 0; }
}

@keyframes fly8 {
  0% { left: 50%; top: 43%; opacity: 0; }
  12% { opacity: 1; }
  100% { left: 66%; top: 19.1%; opacity: 0; }
}

html[data-theme="light"] .routes path {
  opacity: 0.78;
}

html[data-theme="light"] .origin-card,
html[data-theme="light"] .destination,
html[data-theme="light"] .timezone-panel,
html[data-theme="light"] .cr-footer {
  color: #0b1f48;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(11, 76, 146, 0.2);
  box-shadow: 0 16px 38px rgba(11, 31, 72, 0.12);
}

html[data-theme="light"] .language-cloud span {
  color: #23466f;
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(11, 135, 254, 0.18);
  box-shadow: 0 8px 24px rgba(11, 31, 72, 0.08);
}

html[data-theme="light"] .origin-sub,
html[data-theme="light"] .destination small,
html[data-theme="light"] .timezone-panel em,
html[data-theme="light"] .step small {
  color: #607590;
}

html[data-theme="light"] .mini-label,
html[data-theme="light"] .timezone-panel small,
html[data-theme="light"] .step b,
html[data-theme="light"] .step.active span {
  color: #0a63be;
}

html[data-theme="light"] .clock:before,
html[data-theme="light"] .clock:after {
  background: #0b4c92;
}
