/* ==========================================================
   RELIABLE TRAVELS — "Where will you go next?" destination explorer (explorer.js fills it)
   Domestic / International tabs over a mosaic of place cards
   ========================================================== */
.xp { --a1: #5fcf4a; --a2: #1fd1a5; position: relative; overflow: hidden; isolation: isolate; color: #fff; padding-top: clamp(80px, 9vw, 130px); padding-bottom: 0;
  background: radial-gradient(120% 80% at 50% 0%, #121a3a 0%, #0a1024 55%, #070b18 100%); }

/* ---------- Ambient layers: aurora, stars, pointer spotlight ---------- */
.xp-aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.xp-aurora i { position: absolute; border-radius: 50%; filter: blur(100px); mix-blend-mode: screen; transition: background-color 1.6s ease; animation: xpDrift 24s ease-in-out infinite alternate; }
.xp-aurora i:nth-child(1) { width: 62vw; height: 62vw; left: -18vw; top: -26vw; background-color: var(--a1); opacity: .28; }
.xp-aurora i:nth-child(2) { width: 58vw; height: 58vw; right: -22vw; bottom: -24vw; background-color: var(--a2); opacity: .26; animation-duration: 30s; animation-direction: alternate-reverse; }
.xp-aurora i:nth-child(3) { width: 34vw; height: 34vw; left: 38%; top: 34%; background-color: #ff3d7f; opacity: .12; animation-duration: 36s; }
@keyframes xpDrift { 33% { transform: translate(8vw, 6vw) scale(1.1); } 66% { transform: translate(-6vw, 10vw) scale(.92); } 100% { transform: translate(4vw, -4vw) scale(1.05); } }
.xp:before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55; animation: xpTwinkle 5s ease-in-out infinite alternate;
  background-image: radial-gradient(1.2px 1.2px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 28% 72%, #fff, transparent), radial-gradient(1.4px 1.4px at 46% 12%, #fff, transparent), radial-gradient(1px 1px at 63% 58%, #fff, transparent), radial-gradient(1.2px 1.2px at 78% 26%, #fff, transparent), radial-gradient(1px 1px at 88% 80%, #fff, transparent), radial-gradient(1px 1px at 6% 88%, #fff, transparent), radial-gradient(1.3px 1.3px at 36% 40%, #fff, transparent), radial-gradient(1px 1px at 94% 8%, #fff, transparent), radial-gradient(1px 1px at 55% 92%, #fff, transparent); }
@keyframes xpTwinkle { to { opacity: .2; } }
.xp:after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(600px circle at var(--sx, 50%) var(--sy, 30%), #ffffff12, transparent 60%); }
.xp-head, .xp-stage { position: relative; z-index: 1; }

/* ---------- Heading + tabs ---------- */
.xp-head { align-items: end; gap: 40px; }
.xp-side { display: grid; justify-items: end; gap: 18px; text-align: right; }
.xp-side p { margin: 0; color: #a3afc8; line-height: 1.7; }
.xp .section-head h2 { color: #fff; }
.xp .section-kicker { color: #a3afc8; }
.xp-tabs { position: relative; display: inline-flex; padding: 6px; border-radius: 60px; background: #ffffff0f; backdrop-filter: blur(14px); box-shadow: 0 20px 50px -24px #000, inset 0 0 0 1px #ffffff1f; }
.xp-pill { position: absolute; top: 6px; bottom: 6px; left: 0; width: 0; border-radius: 60px; background: linear-gradient(120deg, var(--a1), var(--a2)); box-shadow: 0 10px 30px -8px var(--a2); transition: transform .7s var(--ease-cine), width .7s var(--ease-cine), box-shadow 1.2s; }
.xp-tab { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border: 0; border-radius: 60px; background: none; color: #fff; font: 700 14px Manrope, sans-serif; letter-spacing: -.01em; cursor: pointer; transition: color .5s; }
.xp-tab i { font-style: normal; font-size: 15px; transition: transform .6s var(--ease-out); }
.xp-tab sup { font-size: 10px; opacity: .55; top: -.6em; }
.xp-tab[aria-selected="true"] { color: #071018; }
.xp-tab[aria-selected="true"] i { transform: rotate(-12deg) scale(1.15); }
.xp-tab:focus { outline: none; }
.xp-tab:focus-visible { outline: 2px solid #ffffff99; outline-offset: 3px; }

/* ---------- Stage ---------- */
.xp-stage { position: relative; padding: 0 5vw; }

/* Mosaic: 3 domestic cards / 4 international cards */
.xp-grid { position: relative; z-index: 1; display: grid; gap: 18px; grid-template-rows: repeat(2, clamp(210px, 17vw, 270px)); }
.xp-grid[data-n="3"] { grid-template-columns: 1.45fr 1fr; }
.xp-grid[data-n="3"] .xp-card:first-child { grid-row: 1 / 3; }
.xp-grid[data-n="4"] { grid-template-columns: 1.25fr 1fr 1fr; }
.xp-grid[data-n="4"] .xp-card:first-child { grid-row: 1 / 3; }
.xp-grid[data-n="4"] .xp-card:nth-child(2) { grid-column: 2 / 4; }

/* ---------- Card ---------- */
.xp-card { --mx: 50%; --my: 50%; position: relative; display: block; min-width: 0; padding: 0; border: 0; border-radius: 24px; overflow: hidden; isolation: isolate; cursor: pointer; text-align: left; color: #fff; font: inherit; background: #0b2a24;
  clip-path: inset(100% 0 0 0 round 24px); transform: translateY(70px) rotateX(16deg) scale(.96); transform-origin: 50% 100%;
  transition: clip-path 1.2s var(--ease-cine), transform 1.4s var(--ease-out), box-shadow .6s; transition-delay: calc(var(--i) * .12s), calc(var(--i) * .12s), 0s; }
.xp.in .xp-card.show { clip-path: inset(0 0 0 0 round 24px); transform: none; }
.xp-card.leave { clip-path: inset(0 0 100% 0 round 24px) !important; transform: translateY(-40px) scale(.94) !important; filter: blur(4px); transition: clip-path .6s var(--ease-cine), transform .6s var(--ease-cine), filter .6s; transition-delay: calc(var(--i) * .06s); }
.xp-card:hover, .xp-card:focus-visible { box-shadow: 0 40px 80px -30px var(--c), 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.xp-card:focus-visible { outline: 3px solid var(--c); outline-offset: 3px; }
.xp-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.35); transition: transform 1.8s var(--ease-out), filter .6s; transition-delay: calc(var(--i) * .11s), 0s; }
.xp.in .xp-card.show img { transform: scale(1.02); }
.xp.in .xp-card.show:hover img { transform: scale(1.09); transition-delay: 0s; transition-duration: 1.2s; }
.xp-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #041a16e0 0%, #041a1666 35%, transparent 62%), linear-gradient(180deg, #041a1673, transparent 30%); }
/* Soft light that follows the pointer */
.xp-card:after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--c) 35%, transparent), transparent 60%); mix-blend-mode: soft-light; }
.xp-card:hover:after { opacity: 1; }

.xp-top { position: absolute; z-index: 3; top: 20px; left: 22px; right: 20px; display: flex; justify-content: space-between; align-items: center; }
.xp-top em { padding: 7px 12px; border-radius: 30px; background: #ffffffe6; color: var(--ink); font: 700 10px Manrope, sans-serif; font-style: normal; letter-spacing: .14em; text-transform: uppercase; }
.xp-arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #ffffff26; border: 1px solid #ffffff4d; backdrop-filter: blur(8px); font-size: 16px; transition: background .4s, color .4s, transform .5s var(--ease-out); }
.xp-card:hover .xp-arrow { background: var(--c); border-color: var(--c); color: var(--ink); transform: rotate(45deg); }
.xp-no { position: absolute; z-index: 3; right: 22px; bottom: 16px; font: 800 clamp(48px, 5vw, 76px)/1 Manrope, sans-serif; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px #ffffff80; transition: -webkit-text-stroke-color .5s; }
.xp-card:hover .xp-no { -webkit-text-stroke-color: var(--c); }

.xp-body { position: absolute; z-index: 3; left: 24px; right: 110px; bottom: 22px; display: block; }
.xp-body > * { display: block; opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out); transition-delay: calc(.45s + var(--i) * .11s + var(--j) * .08s); }
.xp.in .xp-card.show .xp-body > * { opacity: 1; transform: none; }
.xp-body small { --j: 0; font: 700 10px Manrope, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: var(--c); margin-bottom: 8px; }
.xp-name { --j: 1; font: 700 clamp(30px, 3vw, 46px)/1 Manrope, sans-serif; letter-spacing: -.05em; text-shadow: 0 6px 30px #0006; }
.xp-card:first-child .xp-name { font-size: clamp(40px, 4.4vw, 68px); }
/* Extra details open on hover (always shown on touch screens) */
.xp-more { --j: 2; display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out), opacity .7s, transform .9s var(--ease-out) !important; }
.xp-more > span { overflow: hidden; display: flex; flex-wrap: wrap; gap: 8px; }
.xp-more b { margin-top: 14px; padding: 7px 11px; border-radius: 30px; background: #ffffff1f; border: 1px solid #ffffff33; backdrop-filter: blur(8px); font: 600 11.5px "DM Sans", sans-serif; white-space: nowrap; }
.xp-more b:last-child { background: var(--c); border-color: var(--c); color: var(--ink); font-weight: 700; }
.xp-card:hover .xp-more, .xp-card:focus-visible .xp-more { grid-template-rows: 1fr; }

.xp-foot { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 0; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8590ab; }
.xp-foot-count b { color: #fff; }

/* Grid tilts back in 3D and settles flat as it scrolls in (explorer.js sets --tilt from 1 to 0) */
.xp-grid { transform: perspective(1800px) rotateX(calc(var(--tilt, 0) * 12deg)) scale(calc(1 - var(--tilt, 0) * .06)) translateY(calc(var(--tilt, 0) * 40px)); transform-origin: 50% 0; }

/* Beam of light across the stage on a tab switch */
.xp-sweep { position: absolute; z-index: 3; top: -20px; bottom: -20px; left: 0; width: 30%; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--a1) 70%, #fff) 45%, color-mix(in srgb, var(--a2) 70%, #fff) 55%, transparent); filter: blur(30px); mix-blend-mode: screen; }
.xp-sweep.go { animation: xpSweep 1.3s var(--ease-cine); }
@keyframes xpSweep { 0% { opacity: 0; transform: translateX(-120%) skewX(-12deg); } 25% { opacity: .85; } 100% { opacity: 0; transform: translateX(380%) skewX(-12deg); } }

/* Slow strip of giant place names */
.xp-marquee { position: relative; margin-top: clamp(24px, 3vw, 40px); padding: 6px 0 clamp(26px, 3vw, 44px); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.xp-marquee-track { display: flex; width: max-content; animation: xpMarquee 40s linear infinite; transition: opacity .5s, filter .5s; }
.xp-marquee-track.swap { opacity: 0; filter: blur(10px); }
.xp-marquee-track span { flex: none; padding-right: .5em; font: 800 clamp(54px, 8vw, 128px)/1.05 Manrope, sans-serif; letter-spacing: -.05em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.2px #ffffff2e; }
.xp-marquee-track span:nth-child(3n+2) { -webkit-text-stroke: 0; background: linear-gradient(90deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; opacity: .9; }
@keyframes xpMarquee { to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */
@media (hover: none) { .xp-more { grid-template-rows: 1fr; } }
@media (max-width: 900px) {
  .xp-head { flex-direction: column; align-items: start; }
  .xp-side { justify-items: start; text-align: left; margin-top: 22px; }
  .xp-grid[data-n] { grid-template-columns: 1fr 1fr; grid-template-rows: none; grid-auto-rows: 300px; }
  .xp-grid[data-n] .xp-card:first-child { grid-row: auto; grid-column: 1 / -1; }
  .xp-grid[data-n="4"] .xp-card:nth-child(2) { grid-column: auto; }
}
@media (max-width: 600px) {
  .xp-stage { padding: 0; }
  .xp-tabs { width: 100%; }
  .xp-tab { flex: 1; justify-content: center; padding: 13px 10px; }
  .xp-grid[data-n] { grid-template-columns: 1fr; grid-auto-rows: 340px; gap: 14px; }
  .xp-body { right: 24px; }
  .xp-no { top: 70px; bottom: auto; font-size: 44px; }
  .xp-foot { flex-direction: column; align-items: start; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .xp-card, .xp.in .xp-card.show { clip-path: none; transform: none; }
  .xp-grid { transform: none; }
  .xp-aurora i, .xp:before, .xp-marquee-track { animation: none !important; }
  .xp *, .xp *:before, .xp *:after { transition-duration: .01ms !important; transition-delay: 0s !important; }
  .xp-body > * { opacity: 1; transform: none; }
}
