/* Keep exploring: Activities and Packages tabs with clipped photo cards. */
.xp { max-width: 1320px; margin: 40px auto 30px; padding: 0 16px; }
.xp-head { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
html body .xp h2 { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.5; }
body.pk-offer .xp h2 { color: #fff !important; }

.xp-tabs { display: flex; gap: 8px; padding: 5px; border-radius: 999px; background: #0b1250; box-shadow: 0 10px 22px rgba(10, 20, 80, .3); }

.xp-tabs button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: #fff;
  font: 800 1rem "Plus Jakarta Sans", sans-serif;
  cursor: pointer;
  transition: transform .2s ease;
}

.xp-tabs button:hover { transform: translateY(-2px); }
.xp-tabs button.is-on { background: linear-gradient(90deg, #ff3d2e, #ff8a1f); box-shadow: 0 6px 14px rgba(255, 80, 30, .5); }

.xp-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 20px; }
.xp-row[hidden] { display: none; }

.xc {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(170deg, #0b1250, #3a1173);
  box-shadow: 0 16px 30px rgba(10, 20, 80, .3);
  color: #fff;
  text-decoration: none;
  animation: xcIn .6s cubic-bezier(.2, .9, .3, 1) both;
  animation-delay: calc(var(--n) * 90ms);
  transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), box-shadow .3s ease;
}

@keyframes xcIn {
  from { opacity: 0; transform: translateY(50px); }
}

.xc:hover { box-shadow: 0 0 0 3px #ffb627, 0 22px 38px rgba(10, 20, 80, .45); transform: translateY(-9px); }
.xc.is-tap { transform: scale(.95); }

/* The photo is cut on a slant and opens fully on hover */
.xc-photo {
  position: absolute;
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 56%, 0 72%);
  transition: clip-path .5s cubic-bezier(.3, .9, .3, 1);
}

.xc:nth-child(even) .xc-photo { clip-path: polygon(0 0, 100% 0, 100% 72%, 0 56%); }
.xc:hover .xc-photo, .xc:nth-child(even):hover .xc-photo { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
.xc-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.xc:hover .xc-photo img { transform: scale(1.07); }

.xc-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff2d55, #ff7a1a);
  font-size: .76rem;
  font-weight: 800;
}

.xc-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  gap: 3px;
  padding: 14px;
  transition: background .3s ease;
}

.xc:hover .xc-body { background: linear-gradient(0deg, rgba(4, 10, 50, .94), rgba(4, 10, 50, .55) 75%, transparent); }
.xc-body strong { font: 800 1.08rem/1.25 "Plus Jakarta Sans", sans-serif; }
.xc-body small { color: #cfd8ff; font-size: .78rem; line-height: 1.35; }
.xc-go { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.xc-go b { color: #ffc94d; font-size: 1rem; font-weight: 800; }

.xc-go i {
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  color: #0b1250;
  font-size: .8rem;
  font-style: normal;
  font-weight: 800;
  animation: xcBtn 2s ease-in-out infinite;
  animation-delay: calc(var(--n) * .3s);
}

.xc-go em { font-style: normal; }

@keyframes xcBtn {
  50% { box-shadow: 0 0 0 7px rgba(255, 255, 255, .22); }
}

/* A hand taps each card in turn, inviting a click */
.xc-hand {
  position: absolute;
  top: 44%;
  right: 16px;
  font-size: 2rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5));
  animation: xcHand 4s ease-in-out infinite;
  animation-delay: calc(var(--n) * 1s);
}

@keyframes xcHand {
  0%, 22%, 100% { opacity: 0; transform: translateY(14px); }
  6%, 16% { opacity: 1; transform: none; }
  11% { opacity: 1; transform: translateY(7px) scale(.86); }
}

.xc:hover .xc-hand { display: none; }

.xc-ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  opacity: 0;
  pointer-events: none;
}

.xc.is-tap .xc-ripple { animation: xcRipple .4s ease-out both; }

@keyframes xcRipple {
  from { opacity: 1; transform: scale(.4); }
  to { opacity: 0; transform: scale(16); }
}

@media (max-width: 560px) {
  .xp-head { justify-content: center; text-align: center; }
  .xp-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .xc-body { padding: 26px 10px 10px; background: linear-gradient(0deg, rgba(4, 10, 50, .95) 62%, transparent); }
  .xc-body strong { font-size: .9rem; }
  .xc-body small { display: none; }
  .xc-go b { font-size: .8rem; }
  .xc-go i { padding: 5px 9px; font-size: .72rem; white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .xc, .xc-go i, .xc-hand { animation: none; }
  .xc-hand { display: none; }
}

/* Cards stay centred with equal space on both sides, whether there are one, three or many. */
.xp-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.xp-row[hidden] { display: none; }
.xp-row .xc { flex: 0 1 calc((100% - 60px) / 4); min-width: 210px; max-width: 300px; }
.xp-head { justify-content: center; text-align: center; }
@media (max-width: 560px) {
  .xp-row { gap: 12px; }
  .xp-row .xc { flex: 0 1 calc(50% - 6px); min-width: 0; max-width: none; }
}
