/* SAFARO_MAG_CARD_MOTION_20261110 — homepage (DestinationsGrid) motion for magazine
   destination cards: card lifts -6px with the front shadow, the white footer keeps its
   position and only gains the front hover shadow, the photo stays unfiltered and the
   CTA keeps its slate fill. Touch devices get the same short tap preview the front card
   shows before the 220ms navigation. Scoped to .safaro-mag-protected. */

/* The homepage sweep layer is hidden; the magazine layer must not resurrect it. */
html:root body .safaro-mag-protected .safaro-svg-hover-card > span.safaro-global-light-sweep {
  display: none !important;
}

@media (hover: hover) and (pointer: fine) {
  html:root body .safaro-mag-protected .safaro-svg-hover-card {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease !important;
  }
  html:root body .safaro-mag-protected .safaro-svg-hover-card:hover {
    transform: translateY(-6px) !important;
    box-shadow: 0 22px 48px rgba(36, 78, 118, .18), 0 6px 18px rgba(255, 183, 28, .07) !important;
  }
  html:root body .safaro-mag-protected .safaro-svg-hover-card > div.bg-white {
    transition: transform .42s cubic-bezier(.22, 1, .36, 1), box-shadow .42s ease !important;
  }
  html:root body .safaro-mag-protected .safaro-svg-hover-card:hover > div.bg-white {
    transform: translateY(0) !important;
    box-shadow: 0 13px 30px rgba(24, 34, 69, .2), inset 0 2px 0 rgba(255, 255, 255, .5) !important;
  }
  html:root body .safaro-mag-protected .safaro-svg-hover-card:hover > div:nth-child(1) img {
    transform: none !important;
    filter: brightness(1.035) saturate(1.045) contrast(.995) !important;
  }
  /* The front CTA never turns amber on hover; pin the slate fill the mag layer broke. */
  html:root body .safaro-mag-protected .safaro-svg-hover-card:hover > div.bg-white > div[data-mag-price-row] > button {
    background-color: #e2e8f0 !important;
    color: #475569 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .05) !important;
  }
  html:root body .safaro-mag-protected .safaro-svg-hover-card:hover > div.bg-white > div[data-mag-price-row] > button svg {
    color: #64748b !important;
    transform: none !important;
  }
}

/* Touch preview: the same pre-navigation state the front card renders (amber CTA,
   darker footer shadow, title tint) while the 220ms tap delay elapses. */
html:root body .safaro-mag-protected .safaro-svg-hover-card.is-touch-preview {
  transform: translateY(-6px) !important;
  box-shadow: 0 22px 48px rgba(36, 78, 118, .18), 0 6px 18px rgba(255, 183, 28, .07) !important;
}
html:root body .safaro-mag-protected .safaro-svg-hover-card.is-touch-preview > div.bg-white {
  box-shadow: 0 12px 28px rgba(24, 34, 69, .22) !important;
}
html:root body .safaro-mag-protected .safaro-svg-hover-card.is-touch-preview > div.bg-white > h4 {
  color: #202d59 !important;
}
html:root body .safaro-mag-protected .safaro-svg-hover-card.is-touch-preview > div.bg-white > div[data-mag-price-row] > button {
  background-color: #ffb71c !important;
  color: #182245 !important;
  box-shadow: 0 4px 12px rgba(255, 183, 28, .35) !important;
}
html:root body .safaro-mag-protected .safaro-svg-hover-card.is-touch-preview > div.bg-white > div[data-mag-price-row] > button svg {
  color: #182245 !important;
  transform: translateX(-4px) !important;
}

@media (prefers-reduced-motion: reduce) {
  html:root body .safaro-mag-protected .safaro-svg-hover-card,
  html:root body .safaro-mag-protected .safaro-svg-hover-card > div.bg-white {
    transition: none !important;
  }
  html:root body .safaro-mag-protected .safaro-svg-hover-card:hover,
  html:root body .safaro-mag-protected .safaro-svg-hover-card.is-touch-preview {
    transform: none !important;
  }
  html:root body .safaro-mag-protected .safaro-svg-hover-card:hover > div.bg-white > div[data-mag-price-row] > button svg,
  html:root body .safaro-mag-protected .safaro-svg-hover-card.is-touch-preview > div.bg-white > div[data-mag-price-row] > button svg {
    transform: none !important;
  }
}
