﻿:root {
  --ink: #1a1a1f;
  --glow: #f0e6ff;
  --deep: #0b1224;
  --aurora: #5ef1c5;
  --flare: #ffae6d;
  --electric: #4db3ff;
  --panel: rgba(10, 15, 30, 0.88);
  --panel-border: rgba(255, 255, 255, 0.12);
  --accent: #f3d07a;
  --map-frame: rgba(15, 22, 45, 0.82);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--glow);
  background: radial-gradient(circle at top, #18203b 0%, #0b1020 40%, #070a14 100%);
  min-height: 100vh;
}

.page {
  position: relative;
  padding: 32px clamp(20px, 4vw, 60px) 48px;
  background-image: linear-gradient(120deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 40%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Ccircle cx='60' cy='80' r='2' fill='rgba(255,255,255,0.25)'/%3E%3Ccircle cx='140' cy='30' r='1.5' fill='rgba(255,255,255,0.2)'/%3E%3Ccircle cx='220' cy='120' r='1.8' fill='rgba(255,255,255,0.18)'/%3E%3Ccircle cx='90' cy='230' r='1.2' fill='rgba(255,255,255,0.22)'/%3E%3Ccircle cx='260' cy='260' r='1.4' fill='rgba(255,255,255,0.2)'/%3E%3C/svg%3E");
  background-size: auto, 320px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.eyebrow {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.7rem;
  color: var(--accent);
  margin: 0 0 12px;
}

.hero h1 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  margin: 0 0 12px;
  color: #fdf7ff;
}

.subhead {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
}

.layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) 1fr;
  gap: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  padding: 24px;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.panel-header h2 {
  font-family: "Bodoni Moda", "Times New Roman", serif;
  font-size: 1.6rem;
  margin: 0 0 8px;
}

.panel-header p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.7);
}

.controls {
  display: grid;
  gap: 16px;
}

.controls label {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

select,
input[type="range"],
button {
  width: 100%;
}

select,
button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.toggle input {
  width: 42px;
  height: 24px;
  appearance: none;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  position: relative;
  outline: none;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.toggle input:checked::after {
  transform: translateX(18px);
  background: var(--aurora);
}

button {
  cursor: pointer;
  background: linear-gradient(120deg, var(--aurora), var(--electric));
  color: var(--deep);
  font-weight: 600;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(77, 179, 255, 0.3);
}

.route-picks .label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

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

.route-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.route-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(94, 241, 197, 0.6);
}

.route-chip.is-active {
  background: linear-gradient(120deg, rgba(94, 241, 197, 0.25), rgba(77, 179, 255, 0.2));
  border-color: rgba(94, 241, 197, 0.7);
}

.hint {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.stats {
  margin-top: 20px;
  display: grid;
  gap: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.stats .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.stats strong {
  font-size: 1.1rem;
  color: #fff;
}

.note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.timeline,
.jetlag,
.scene-scout {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.timeline-row {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.timeline-track {
  margin-top: 12px;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.timeline-progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--aurora));
  transition: width 0.6s ease;
}

.jetlag p,
.scene-scout p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.otp {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.otp p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.booking {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.booking .label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.5);
}

.booking-links {
  display: grid;
  gap: 10px;
}

.booking-links a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.jetlag-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--aurora);
  text-decoration: none;
  font-weight: 600;
}

.map-tip {
  position: absolute;
  right: 24px;
  bottom: 24px;
  font-size: 0.75rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.map-shell {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--map-frame);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

#map {
  height: 100%;
  min-height: 520px;
}

.map-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top, rgba(94, 241, 197, 0.15), transparent 50%);
}

.ticker {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  gap: 16px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}

.ad-slot {
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
  padding: 16px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.03);
}

.ad-hero {
  width: 100%;
  max-width: 360px;
  min-height: 90px;
}

.ad-panel {
  margin-top: 20px;
  min-height: 250px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.5);
}

.route-line {
  stroke-linecap: round;
  filter: drop-shadow(0 0 10px rgba(94, 241, 197, 0.65));
  animation: dash 2.8s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -40;
  }
}

.leaflet-popup-content {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

.mode-day {
  --map-tint: rgba(94, 241, 197, 0.18);
}

.mode-dusk {
  --map-tint: rgba(255, 174, 109, 0.2);
}

.mode-nocturne {
  --map-tint: rgba(77, 179, 255, 0.2);
}

.map-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(140deg, transparent 20%, var(--map-tint) 100%);
  mix-blend-mode: screen;
  pointer-events: none;
}

@media (max-width: 960px) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .map-shell {
    min-height: 420px;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 24px 16px 40px;
  }

  .hero {
    align-items: stretch;
  }

  .ad-hero {
    max-width: none;
  }

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

  .stats {
    grid-template-columns: 1fr;
  }

  .timeline-row {
    grid-template-columns: 1fr;
  }

  .booking-links {
    grid-template-columns: 1fr;
  }

  .ticker {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .map-tip {
    left: 12px;
    right: 12px;
    bottom: 56px;
  }
}
