/**
 * Villa Activities section — centred header and a row of island chips that
 * float a photo by the cursor on hover. Depends on villa-home.css.
 *
 * @package Villa_Addon
 */

.vo-activities { padding-block: var(--sp-160); padding-inline: var(--pad-x); text-align: center; }
.vo-activities__inner { width: 100%; margin-inline: auto; }
.vo-activities h2 { margin-bottom: 60px; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; max-width: 1100px; margin-inline: auto; }
.chip {
  height: 70px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 40px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: transparent;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.1;
  color: var(--dark);
  transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.chip svg { width: 26px; height: 26px; color: var(--dark-2); transition: color .4s var(--ease); }
.chip:hover { background: var(--dark); color: var(--cream); border-color: var(--dark); }
.chip:hover svg { color: var(--teal); }

.vo-activities__btn { margin-top: 60px; }

.act-preview {
  position: fixed; top: 0; left: 0; z-index: 120;
  transform: translate(-50%, -50%);
  width: clamp(190px, 18vw, 290px); aspect-ratio: 4 / 5;
  pointer-events: none; opacity: 0;
  transition: opacity .45s var(--ease);
  will-change: left, top, opacity;
}
.act-preview.show { opacity: 1; }
.act-preview__stage {
  position: relative; width: 100%; height: 100%;
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 34px 70px -22px rgba(18, 53, 54, .65);
  transform: scale(.86) rotate(-5deg); transform-origin: center;
  transition: transform .5s var(--ease);
}
.act-preview.show .act-preview__stage { transform: scale(1) rotate(-5deg); }
.act-preview__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .5s var(--ease); }
.act-preview__img.on { opacity: 1; }
/* Beat Elementor's global `.elementor img { height: auto }` (specificity 0-1-1),
   which otherwise sizes the photo to its natural ratio and leaves the card
   half-empty instead of cover-filling it. */
.act-preview__stage > .act-preview__img { height: 100%; }

@media (max-width: 700px) { .chips { gap: 16px; } .chip { height: 58px; padding: 0 24px; font-size: 20px; gap: 10px; } }
/* On touch the preview is shown centred on tap (not hidden) — see villa-activities.js. */
@media (max-width: 900px) { .act-preview { z-index: 130; } }

/* Long CTA text ("Plan your days in our Anguilla guide") must wrap on phones,
   not push the pill past the viewport. */
@media (max-width: 560px) {
  .vo-activities__btn { white-space: normal; max-width: 100%; padding: 14px 28px; line-height: 1.3; text-align: center; }
}
