/* trip-planner-button.css - the Add/Remove control inside map popups.
   The popup shell is a grid (see css/popup.css), so spacing comes from the
   grid gap rather than margins on this button. */

.trip-planner-btn {
  width: 100%;
  min-height: var(--tap-target);
  margin: 0;
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
}

.trip-planner-btn:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(0, 119, 190, 0.3);
}

.trip-planner-btn:active { filter: brightness(0.97); }

.trip-planner-btn:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

/* In the trip already - the action becomes "remove". */
.trip-planner-btn.in-trip {
  background: #fff;
  border: 1.5px solid rgba(220, 38, 38, 0.35);
  color: #b91c1c;
}

.trip-planner-btn.in-trip:hover {
  background: rgba(220, 38, 38, 0.06);
  box-shadow: none;
}

.trip-btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .trip-planner-btn { transition: none; }
}
