/* /assets/css/directions-fab.css — floating directions link */

.directions-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.65rem 1rem 0.65rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(225, 185, 41, 0.45);
  background: linear-gradient(135deg, #4a1a5c 0%, #391047 55%, #2a0d38 100%);
  color: #e1b929;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.directions-fab__icon {
  flex-shrink: 0;
  display: block;
}

.directions-fab__label {
  white-space: nowrap;
}

.directions-fab:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: #e1b929;
  color: #ffd76a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5), 0 0 20px rgba(225, 185, 41, 0.2);
  text-decoration: none;
}

.directions-fab:focus-visible {
  outline: 2px solid #e1b929;
  outline-offset: 3px;
}

.directions-fab--highlight {
  z-index: 10001;
  border-color: #ffd76a;
  color: #ffd76a;
  animation: directions-fab-pulse 1.25s ease-in-out infinite;
}

@keyframes directions-fab-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 0 rgba(225, 185, 41, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(225, 185, 41, 0.15);
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .directions-fab--highlight {
    animation: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 3px rgba(225, 185, 41, 0.65);
  }
}

@media (max-width: 480px) {
  .directions-fab {
    bottom: 1rem;
    right: 1rem;
    min-height: 3rem;
    padding: 0.75rem;
    border-radius: 50%;
  }

  .directions-fab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .directions-fab {
    transition: none;
  }

  .directions-fab:hover {
    transform: none;
  }
}
