/* RDPW cinematic globe — [rdpw_globe] */

.rdpw-globe {
  position: relative;
  width: 100%;
  background: #02060d;
  border-radius: 6px;
  overflow: hidden;
}
.rdpw-globe canvas { outline: none; }

/* Location marker: brand-red dot with a soft radar pulse */
.rdpw-globe-marker {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e2001a;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
  position: relative;
}
.rdpw-globe-marker::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid rgba(226, 0, 26, 0.65);
  animation: rdpw-globe-pulse 2.2s ease-out infinite;
}
@keyframes rdpw-globe-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* Destination label card — fades in once the flight lands */
.rdpw-globe-label {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 5;
  padding: 8px 14px;
  background: rgba(10, 12, 16, 0.78);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-left: 3px solid #e2001a;
  border-radius: 3px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.6s ease 0.15s, transform 0.6s ease 0.15s;
  pointer-events: none;
}
.rdpw-globe--arrived .rdpw-globe-label {
  opacity: 1;
  transform: translateY(0);
}

/* Replay control — appears with the label */
.rdpw-globe-replay {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 5;
  padding: 6px 12px;
  background: rgba(10, 12, 16, 0.7);
  color: #fff;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
.rdpw-globe--arrived .rdpw-globe-replay { opacity: 1; }
.rdpw-globe-replay:hover { background: rgba(226, 0, 26, 0.85); border-color: rgba(226, 0, 26, 0.85); }

@media (max-width: 767px) {
  .rdpw-globe { border-radius: 0; }
  .rdpw-globe-label { font-size: 12px; left: 10px; bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .rdpw-globe-marker::after { animation: none; opacity: 0; }
  .rdpw-globe-replay { display: none; }
}

/* Numbered itinerary waypoints — cascade in after the flight lands */
.rdpw-globe-wp {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #16181d;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
  font: 700 11px/18px -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: center;
  cursor: pointer;
  transform: scale(0);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.rdpw-globe-wp--in { transform: scale(1); }
.rdpw-globe-wp:hover { background: #e2001a; }

/* Home-base mode: the star marks where the trip STAYS; numbered dots are
   day trips, joined to the base by faint dotted spokes (drawn by JS). */
.rdpw-globe-base {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  pointer-events: none;
}

.rdpw-globe-base-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e2001a;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.rdpw-globe-base-pin svg {
  display: block;
}

/* Zoom +/- (added after the fly-in): keep it clear of the attribution pill. */
.rdpw-globe .maplibregl-ctrl-bottom-right .maplibregl-ctrl-group {
  margin-bottom: 40px;
  margin-right: 10px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Airport marker: arrival/departure points — dark pin, white plane. */
.rdpw-globe-airport {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #16181d;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  cursor: pointer;
}

.rdpw-globe-airport svg {
  display: block;
  transform: rotate(45deg);
}

.rdpw-globe-base-name {
  background: #16181d;
  color: #fff;
  padding: 2px 9px;
  border-radius: 3px;
  font: 600 12px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.rdpw-globe .maplibregl-popup-content {
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1d2327;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .rdpw-globe-wp { transform: scale(1); transition: none; }
}

/* Traveling head of the route animation */
.rdpw-globe-head {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2001a;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(226, 0, 26, 0.8);
}
