:root {
  --bg-0: #060810;
  --bg-1: #0b1020;
  --bg-2: #131a2e;
  --panel: #0f1628;
  --panel-2: #0d1323;
  --ink: #d8edff;
  --muted: #83a7c7;
  --line: #213657;
  --neon-cyan: #00e5ff;
  --neon-pink: #ff2bd6;
  --neon-lime: #b8ff2b;
  --neon-amber: #ffb800;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  --glow-cyan: 0 0 0.5rem rgba(0, 229, 255, 0.8), 0 0 1.1rem rgba(0, 229, 255, 0.4);
  --glow-pink: 0 0 0.5rem rgba(255, 43, 214, 0.8), 0 0 1.1rem rgba(255, 43, 214, 0.35);
  --radius: 4px;
  --radius-sm: 2px;
  --grid-gap: 20px;
  --t-fast: 220ms;
  --t-medium: 320ms;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  min-height: 100%;
  background:
    radial-gradient(1200px 500px at 10% -20%, rgba(255, 43, 214, 0.18), transparent 70%),
    radial-gradient(1000px 500px at 95% 0%, rgba(0, 229, 255, 0.15), transparent 68%),
    linear-gradient(160deg, var(--bg-0), var(--bg-1) 45%, var(--bg-2));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(0, 229, 255, 0.05), transparent 45%),
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 4px
    );
  opacity: 0.7;
}

main {
  position: relative;
  z-index: 1;
  padding: 24px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}

.brand {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 27px;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 0;
  border: 1px solid var(--line);
  font-weight: 600;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, rgba(18, 31, 55, 0.8), rgba(10, 19, 37, 0.8));
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: background var(--t-medium) ease, color var(--t-medium) ease,
    border-color var(--t-medium) ease, box-shadow var(--t-medium) ease, opacity var(--t-medium) ease;
  opacity: 0.65;
}

nav a.active,
nav a:hover {
  color: #00131b;
  background: linear-gradient(90deg, var(--neon-cyan), #7df7ff);
  border-color: rgba(125, 247, 255, 0.8);
  box-shadow: var(--glow-cyan);
  opacity: 1;
  animation: navGlitch 260ms steps(2, jump-none) 1;
}

.page-title {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 36px;
  letter-spacing: 0.03em;
  margin: 8px 0 6px;
  color: #dff4ff;
  text-shadow:
    1px 0 0 rgba(255, 43, 214, 0.35),
    -1px 0 0 rgba(0, 229, 255, 0.35),
    0 0 12px rgba(0, 229, 255, 0.2);
}

.page-subtitle {
  color: var(--muted);
  max-width: 640px;
  line-height: 1.5;
  margin-top: 0;
}

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(15, 22, 40, 0.95), rgba(10, 16, 30, 0.95));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(0, 229, 255, 0.22);
  clip-path: inherit;
}


.card-header {
  padding: 14px 18px 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
}

.card-body {
  padding: 16px 18px 20px;
}

.map-body {
  padding: 12px;
}

.grid-root {
  display: grid;
  grid-template-rows: auto auto;
  gap: var(--grid-gap);
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap);
}

.map-shell {
  align-self: start;
  overflow: hidden;
}

.map-shell::after {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.map-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 260px;
  max-height: 520px;
}

.map-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 401;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 229, 255, 0.08) 49.4%,
    rgba(0, 229, 255, 0.24) 50%,
    rgba(0, 229, 255, 0.08) 50.6%,
    transparent 100%
  );
  mix-blend-mode: screen;
  opacity: 0.175;
  transform: translateY(-140%);
  animation: scanSweep 9s linear infinite;
}

.map-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 402;
  pointer-events: none;
  opacity: 0.15;
  background:
    radial-gradient(circle at 10% 10%, rgba(0, 229, 255, 0.06), transparent 32%),
    radial-gradient(circle at 88% 18%, rgba(255, 43, 214, 0.06), transparent 30%),
    linear-gradient(140deg, rgba(0, 0, 0, 0.25), transparent 35%, rgba(0, 0, 0, 0.3));
  animation: noiseDrift 18s linear infinite;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.timeline-list {
  display: grid;
  gap: 14px;
  position: relative;
  padding-left: 18px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 6px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(0, 229, 255, 0.05), rgba(0, 229, 255, 0.75), rgba(255, 43, 214, 0.45));
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
}

.timeline-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(13, 22, 42, 0.9), rgba(9, 16, 32, 0.9));
  position: relative;
  transition: border-color var(--t-medium) ease, box-shadow var(--t-medium) ease,
    background var(--t-medium) ease;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 15px;
  width: 10px;
  height: 10px;
  background: rgba(0, 229, 255, 0.8);
  clip-path: polygon(0 50%, 60% 0, 100% 50%, 60% 100%);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.65);
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
  color: #f4fbff;
}

.trip-stop-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.trip-stop-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: 0 0 40px;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.6));
}

.timeline-note {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 8px 0 4px;
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

.calendar {
  display: grid;
  gap: 8px;
  text-align: center;
  font-size: 13px;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.calendar .calendar-header,
.calendar .week-days,
.calendar .week-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}

.calendar .calendar-header .day {
  background: transparent;
  border: none;
  padding: 0 6px 6px;
  min-height: unset;
}

.calendar .week-row {
  display: grid;
  gap: 6px;
  background: rgba(7, 12, 23, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 6px;
}

.calendar .week-days {
  gap: 4px;
}

.calendar .day {
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(14, 22, 40, 0.9);
  min-height: 54px;
  display: grid;
  place-items: center;
  gap: 4px;
}

.calendar .day.is-event {
  background: rgba(0, 229, 255, 0.14);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: inset 0 0 12px rgba(0, 229, 255, 0.2);
}

.calendar .day.is-muted {
  color: #4d6a88;
}

.calendar .month-label {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.calendar .week-bars {
  gap: 4px;
  align-items: center;
}

.calendar .event-bar {
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.25), rgba(0, 229, 255, 0.25));
  border: 1px solid rgba(255, 43, 214, 0.5);
  border-radius: 0;
  padding: 4px 8px;
  font-size: 10px;
  color: #f5faff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  text-align: left;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.calendar-popup {
  position: absolute;
  min-width: 180px;
  max-width: 260px;
  background: rgba(10, 16, 30, 0.98);
  border: 1px solid rgba(0, 229, 255, 0.5);
  border-radius: var(--radius);
  box-shadow: var(--glow-cyan), var(--shadow);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.4;
  z-index: 5;
  display: none;
}

.calendar-popup.is-visible {
  display: block;
}

.calendar-popup .popup-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #f4fcff;
}

.calendar-popup .popup-detail {
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(12, 22, 40, 0.95);
  border: 1px solid var(--line);
  border-radius: 0;
  font-size: 12px;
  margin-right: 6px;
}

.map-actions {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  background: rgba(12, 20, 37, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  transition: border-color var(--t-medium) ease, box-shadow var(--t-medium) ease;
}


.map-controls {
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.map-controls > * {
  position: relative;
  z-index: 1;
}

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

.filter-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  background: rgba(12, 20, 37, 0.92);
  transition: border-color var(--t-medium) ease, box-shadow var(--t-medium) ease,
    background var(--t-medium) ease;
}

.filter-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 6px;
}

.filter-list {
  display: grid;
  gap: 6px;
}

.filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 2px 4px;
  border-radius: 2px;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}

.filter-item:hover {
  background: rgba(0, 229, 255, 0.08);
  color: #eaffff;
}

.filter-item input[type="checkbox"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(0, 229, 255, 0.75);
  background: rgba(8, 15, 28, 0.95);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.15);
  display: grid;
  place-content: center;
  cursor: pointer;
}

.filter-item input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--neon-cyan);
  transform: scale(0);
  transition: transform 120ms ease;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}

.filter-item input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.filter-item input[type="checkbox"]:hover {
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.45), inset 0 0 0 1px rgba(0, 229, 255, 0.25);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 0;
  border: 1px solid var(--line);
  font-size: 11px;
  background: rgba(9, 16, 30, 0.95);
  transition: border-color var(--t-medium) ease, box-shadow var(--t-medium) ease,
    background var(--t-medium) ease;
}

.legend::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 1px;
  background: #ccc;
}

.legend-green::before {
  background: #6dbb77;
}

.legend-orange::before {
  background: var(--neon-amber);
}

.legend-red::before {
  background: #d85b57;
}

.routing-status {
  font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.35);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 43, 214, 0.6);
  background: linear-gradient(135deg, rgba(255, 43, 214, 0.2), rgba(14, 24, 42, 0.9));
  color: #f5fbff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 0;
  cursor: pointer;
  box-shadow: var(--glow-pink);
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease,
    border-color var(--t-fast) ease, background var(--t-fast) ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 43, 214, 0.8);
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.45), 0 0 14px rgba(0, 229, 255, 0.28);
}

.trip-select {
  width: 100%;
  margin-top: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 15, 28, 0.95);
  color: var(--ink);
  border-radius: 0;
  padding: 8px 10px;
  font-size: 14px;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease,
    background var(--t-fast) ease;
}

.trip-select:hover,
.trip-select:focus {
  border-color: rgba(0, 229, 255, 0.7);
  background: rgba(10, 19, 35, 0.98);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.22), 0 0 10px rgba(0, 229, 255, 0.2);
  outline: none;
}

.btn-ghost {
  background: linear-gradient(130deg, rgba(255, 43, 214, 0.18), rgba(8, 15, 28, 0.95));
}

.leaflet-control,
.leaflet-bar,
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(8, 15, 28, 0.95);
  color: var(--ink);
  border-color: var(--line);
}

.leaflet-popup-content-wrapper {
  background: rgba(7, 13, 25, 0.98) !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
  box-shadow: var(--shadow), var(--glow-cyan);
}

.leaflet-popup-content {
  color: var(--ink);
}

.leaflet-popup-tip {
  background: rgba(7, 13, 25, 0.98) !important;
  border: 1px solid rgba(0, 229, 255, 0.45) !important;
}

.leaflet-container a.leaflet-popup-close-button {
  color: var(--neon-cyan);
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #9ff7ff;
  text-shadow: var(--glow-cyan);
}

.leaflet-control a {
  transition: background var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.leaflet-control a:hover {
  background: rgba(0, 229, 255, 0.18);
  color: #eaffff;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}

.leaflet-routing-container {
  background: rgba(8, 15, 28, 0.95);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 229, 255, 0.4);
  box-shadow: var(--shadow), var(--glow-cyan);
  color: var(--ink);
}

.leaflet-routing-container h2,
.leaflet-routing-container h3 {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  color: var(--neon-cyan);
}

.leaflet-routing-container input {
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  padding: 4px 6px;
  background: rgba(7, 12, 22, 0.95);
  color: var(--ink);
}

.leaflet-marker-icon,
.leaflet-marker-icon img {
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.45));
  transition: filter var(--t-medium) ease, transform var(--t-medium) ease;
}

.leaflet-marker-icon:hover,
.leaflet-marker-icon:focus {
  transform: scale(1.08);
  filter:
    drop-shadow(0 0 10px rgba(0, 229, 255, 0.85))
    drop-shadow(0 0 18px rgba(0, 229, 255, 0.5));
}

.leaflet-marker-icon.marker-active,
.leaflet-marker-icon.marker-active img {
  filter:
    drop-shadow(0 0 10px rgba(255, 43, 214, 0.8))
    drop-shadow(0 0 18px rgba(0, 229, 255, 0.75));
}

.marker-midnight,
.marker-paragliding,
.marker-armanet,
.marker-skydiving {
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 12px rgba(0, 229, 255, 0.65));
}

.trip-direction-icon {
  background: transparent;
  border: none;
}

.trip-direction-arrow {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: var(--trip-arrow-color, #74ecff);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-shadow:
    0 0 6px rgba(var(--trip-arrow-shadow-rgb, 0, 229, 255), 0.9),
    0 0 12px rgba(var(--trip-arrow-shadow-rgb, 0, 229, 255), 0.5);
  opacity: 0.95;
}

.trip-direction-arrow > span {
  display: inline-block;
  transform: rotate(var(--dir-rot)) translateX(0);
  animation: arrowShimmer 2.1s ease-in-out infinite;
}

.routing-direction-icon {
  background: transparent;
  border: none;
  width: 12px !important;
  height: 12px !important;
}

.routing-direction-arrow {
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  opacity: 1;
  transform: rotate(var(--dir-rot, 0deg));
}

.routing-direction-arrow > svg {
  width: 9px;
  height: 9px;
  filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.55));
  display: block;
}

.routing-direction-arrow > svg {
  animation: routeArrowPulse 1.8s ease-in-out infinite;
}

.trip-line-glow {
  animation: pulseRouteGlow 2.2s ease-in-out infinite;
  filter:
    drop-shadow(0 0 5px rgba(var(--trip-glow-rgb, 0, 229, 255), 0.4))
    drop-shadow(0 0 10px rgba(var(--trip-glow-rgb, 0, 229, 255), 0.28));
}

.map-status,
#map-status,
#routing-status {
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

.map-hud {
  position: absolute;
  inset: 10px auto auto 10px;
  z-index: 450;
  display: grid;
  gap: 6px;
  pointer-events: none;
}

.map-hud-item {
  background: rgba(7, 13, 25, 0.78);
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: #dbf7ff;
  padding: 4px 8px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
  font-family: ui-monospace, "Cascadia Code", "SFMono-Regular", Menlo, Consolas, monospace;
}

.map-hud-item .k {
  color: #7ed6ea;
  margin-right: 6px;
}

.planning-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) 1fr;
  gap: var(--grid-gap);
  margin-top: 24px;
}

.planning-notes {
  min-height: 320px;
  line-height: 1.6;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.gallery-card {
  background: linear-gradient(160deg, rgba(12, 20, 37, 0.95), rgba(8, 14, 28, 0.95));
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform var(--t-medium) ease, box-shadow var(--t-medium) ease,
    border-color var(--t-medium) ease;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow), var(--glow-cyan);
  border-color: rgba(0, 229, 255, 0.45);
}

.timeline-item:hover {
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.16);
  background: linear-gradient(155deg, rgba(14, 24, 45, 0.94), rgba(9, 17, 33, 0.94));
}

.map-actions:hover,
.filter-group:hover,
.legend:hover {
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.12);
}

.calendar .event-bar {
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease,
    background var(--t-fast) ease, color var(--t-fast) ease;
}

.calendar .event-bar:hover {
  border-color: rgba(255, 43, 214, 0.75);
  background: linear-gradient(90deg, rgba(255, 43, 214, 0.33), rgba(0, 229, 255, 0.33));
  box-shadow: 0 0 10px rgba(255, 43, 214, 0.2), 0 0 10px rgba(0, 229, 255, 0.2);
}

.gallery-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.gallery-caption {
  padding: 12px 14px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #d4e9fb;
}

.folder-block {
  margin-bottom: 32px;
}

.folder-title {
  font-family: "Space Grotesk", "Helvetica Neue", sans-serif;
  font-size: 24px;
  margin: 0 0 8px;
  letter-spacing: 0.03em;
}

.folder-note {
  color: var(--muted);
  margin: 0 0 16px;
}

.fade-in {
  animation: fadeIn 0.7s ease both;
}

.stagger > * {
  animation: fadeUp 0.6s ease both;
}

.stagger > *:nth-child(2) { animation-delay: 0.08s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.24s; }
.stagger > *:nth-child(5) { animation-delay: 0.32s; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes navGlitch {
  0% { text-shadow: 1px 0 rgba(255, 43, 214, 0.6), -1px 0 rgba(0, 229, 255, 0.6); }
  50% { text-shadow: -1px 0 rgba(255, 43, 214, 0.75), 1px 0 rgba(0, 229, 255, 0.75); }
  100% { text-shadow: 0 0 0 transparent; }
}

@keyframes pulseRouteGlow {
  0%, 100% { stroke-opacity: 0.45; }
  50% { stroke-opacity: 0.7; }
}

@keyframes arrowShimmer {
  0%, 100% { transform: rotate(var(--dir-rot)) translateX(0); opacity: 0.75; }
  50% { transform: rotate(var(--dir-rot)) translateX(2px); opacity: 1; }
}

@keyframes routeArrowPulse {
  0%, 100% { opacity: 0.82; filter: drop-shadow(0 0 3px rgba(0, 229, 255, 0.4)); }
  50% { opacity: 1; filter: drop-shadow(0 0 5px rgba(0, 229, 255, 0.55)); }
}

@keyframes scanSweep {
  from { transform: translateY(-140%); }
  to { transform: translateY(140%); }
}

@keyframes noiseDrift {
  from { background-position: 0 0, 0 0, 0 0; }
  to { background-position: 60px 24px, -30px 18px, 0 0; }
}

@media (max-width: 900px) {
  .grid-root {
    grid-template-rows: auto;
  }

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

  .planning-shell {
    grid-template-columns: 1fr;
  }
}
