/* Floating Trip Planner button — Search & Discover map pages */

.trip-planner-fab {
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #b30738;
  font-family: "Open Sans", sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(179, 7, 56, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.trip-planner-fab i {
  font-size: 15px;
}

.trip-planner-fab:hover {
  color: #fff;
  background: linear-gradient(135deg, #b30738 0%, #8c062c 100%);
  box-shadow: 0 8px 24px rgba(179, 7, 56, 0.38);
  transform: translateY(-50%) translateX(-2px);
}

.trip-planner-fab:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(179, 7, 56, 0.25), 0 4px 20px rgba(15, 23, 42, 0.14);
}

/* Discover: sit below inbound/outbound toggle */
#discover-page .trip-planner-fab {
  top: auto;
  bottom: 28px;
  transform: none;
}

#discover-page .trip-planner-fab:hover {
  transform: translateX(-2px);
}

@media (max-width: 768px) {
  .trip-planner-fab {
    right: 12px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .trip-planner-fab span {
    display: none;
  }

  .trip-planner-fab i {
    font-size: 16px;
  }

  #discover-page .trip-planner-fab {
    bottom: 18px;
  }
}
