/* Preview-only firefly pointers for a mouse or trackpad.
   Hotspot 10 10 is the center of the firefly's head.
   The tail glow is baked into the SVG. Buttons, faire cards, and
   links styled as buttons also pick up a soft gold shadow on hover.
   Plain text links only change the cursor. */

@media (hover: hover) and (pointer: fine) {
  html {
    cursor: url("cursors/firefly.svg") 10 10, auto;
  }

  a:hover,
  button:hover,
  [role="button"]:hover,
  .card:hover,
  .faire:hover,
  .pin:hover,
  .pin-hit:hover,
  .geo-pin:hover,
  .leaflet-marker-icon:hover,
  .rm-flag:hover {
    cursor: url("cursors/firefly-lit.svg") 10 10, pointer;
  }

  button,
  [role="button"],
  .card,
  .faire,
  a.find-stays,
  a.get-tickets {
    transition: box-shadow 150ms ease;
  }

  button:hover,
  button:focus-visible,
  [role="button"]:hover,
  [role="button"]:focus-visible,
  a.find-stays:hover,
  a.find-stays:focus-visible,
  a.get-tickets:hover,
  a.get-tickets:focus-visible {
    box-shadow: 0 0 12px rgba(255, 200, 80, .45);
  }

  .card:hover,
  .card:focus-visible,
  .faire:hover,
  .faire:focus-visible {
    box-shadow: 0 18px 40px -26px rgba(42, 33, 24, .7), 0 0 12px rgba(255, 200, 80, .45);
  }

  @media (prefers-reduced-motion: reduce) {
    button,
    [role="button"],
    .card,
    .faire,
    a.find-stays,
    a.get-tickets {
      transition: none;
    }
  }
}
