/* =========================
   TRAVEL PANEL
========================= */

.travel-panel {
  position: absolute;
  left: 50%;
  top: 18%;

  transform: translateX(-50%);

  width: 420px;

  background: var(--ui-bg-panel);
  border: 1px solid var(--ui-border);
  backdrop-filter: blur(6px);

  
  border-radius: 12px;

  padding: 24px 26px;

  text-align: center;

  box-shadow:
    0 0 40px rgba(0,0,0,0.6),
    inset 0 0 25px rgba(255,255,255,0.03);
    animation: travelPulse 4s ease-in-out infinite;
}

.travel-panel.quick-local-travel {
  top: 12%;
  width: 300px;
  padding: 14px 16px;
  border-color: rgba(214, 188, 116, 0.38);
  background:
    linear-gradient(180deg, rgba(28, 25, 16, 0.94), rgba(18, 17, 12, 0.9));
  box-shadow:
    0 16px 40px rgba(0,0,0,0.32),
    0 0 20px rgba(214, 188, 116, 0.08),
    inset 0 0 18px rgba(255,255,255,0.03);
  animation: quickLocalTravelPulse 0.65s ease-in-out infinite;
}

.quick-local-travel-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.quick-local-travel-badge {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(214, 188, 116, 0.14);
  border: 1px solid rgba(214, 188, 116, 0.22);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(247, 229, 176, 0.82);
}

.quick-local-travel-route {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.1;
  text-align: center;
  color: rgba(255,255,255,0.96);
}

@keyframes travelPulse {
  0% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.01); }
  100% { transform: translateX(-50%) scale(1); }
}

@keyframes quickLocalTravelPulse {
  0% { transform: translateX(-50%) translateY(0) scale(0.995); }
  50% { transform: translateX(-50%) translateY(-1px) scale(1.01); }
  100% { transform: translateX(-50%) translateY(0) scale(0.995); }
}

/* TITLE */

.travel-title {
  font-size: 20px;
  margin-bottom: 12px;
}

/* Animated Traveling */

.travel-anim {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 18px;
}

.travel-anim-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(247, 229, 176, 0.88);
  font-size: 14px;
  margin-bottom: 0;
}

.travel-quick-icon {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(247, 229, 176, 1), rgba(214, 188, 116, 0.88));
  box-shadow:
    0 0 0 0 rgba(247, 229, 176, 0.4),
    0 0 14px rgba(214, 188, 116, 0.35);
  animation: quickLocalTravelBlink 0.8s ease-in-out infinite;
}

.quick-local-travel-copy {
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes quickLocalTravelBlink {
  0% {
    transform: scale(0.9);
    box-shadow:
      0 0 0 0 rgba(247, 229, 176, 0.35),
      0 0 10px rgba(214, 188, 116, 0.22);
  }

  50% {
    transform: scale(1.15);
    box-shadow:
      0 0 0 7px rgba(247, 229, 176, 0),
      0 0 18px rgba(214, 188, 116, 0.45);
  }

  100% {
    transform: scale(0.9);
    box-shadow:
      0 0 0 0 rgba(247, 229, 176, 0),
      0 0 10px rgba(214, 188, 116, 0.22);
  }
}

.travel-dots::after {
  content: "";
  animation: travelDots 1.4s infinite;
}



@keyframes travelDots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

/* ROUTE */

.travel-route {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 16px;
}

/* TIMER */

.travel-timer {
  font-size: 18px;
  margin-top: 12px;
}

/* PROGRESS BAR */

.travel-progress {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 16px;
}

.travel-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    #6ab04c,
    #badc58
  );
  transition: width 0.5s linear;
}

.quick-local-travel-progress {
  position: relative;
  width: 100%;
  height: 5px;
  margin-top: 2px;
  background: rgba(247, 229, 176, 0.06);
  overflow: hidden;
}

.quick-local-travel-progress .travel-progress-fill {
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(247, 229, 176, 0.2),
    rgba(214, 188, 116, 0.95),
    rgba(247, 229, 176, 0.2)
  );
  background-size: 180% 100%;
  animation: quickLocalTravelSweep 0.7s linear infinite;
}

.travel-flavour {

  margin-top: 18px;

  font-size: 14px;

  opacity: 0.75;

  font-style: italic;

  text-align: center;

  animation: flavourFade 0.5s ease;
}

.travel-return-btn {
  margin-top: 18px;
  min-width: 132px;
  height: 34px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    color 0.16s ease,
    transform 0.16s ease;
}

.travel-return-btn:hover:not(:disabled),
.travel-return-btn:focus-visible:not(:disabled) {
  background: rgba(214, 188, 116, 0.16);
  border-color: rgba(214, 188, 116, 0.42);
  color: rgba(247, 229, 176, 0.98);
  transform: translateY(-1px);
}

.travel-return-btn:disabled {
  cursor: wait;
  opacity: 0.58;
}

.quick-local-travel .travel-return-btn {
  margin-top: 2px;
  height: 30px;
  min-width: 112px;
  font-size: 12px;
}

.quick-local-travel-timer {
  display: none;
}

.quick-local-travel-flavour {
  margin-top: 0;
  font-style: normal;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(247, 229, 176, 0.58);
}

@keyframes flavourFade {

  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 0.75;
    transform: translateY(0);
  }

}

@keyframes quickLocalTravelSweep {
  0% {
    background-position: 180% 0;
  }

  100% {
    background-position: -20% 0;
  }
}
