/* =====================================================================
   Section 03 — React map journey (react-src/MapJourney.jsx)
   Only transforms/opacity change per frame, so the GPU composites it.
   ===================================================================== */
#location.has-journey{padding:0;background:#06171a}
#location.has-journey>.location-tabs__grid{display:none}
.mj{position:relative;height:360vh;height:360svh;background:#06171a}
.mj--static{height:auto}
.mj__stage{position:sticky;top:var(--hh);height:calc(100vh - var(--hh));height:calc(100svh - var(--hh));overflow:hidden;background:radial-gradient(120% 80% at 50% 0%,#0d2a2c 0%,#06171a 60%)}
.mj--static .mj__stage{position:relative;top:0}
.mj__world{position:absolute;inset:0;perspective:1150px;perspective-origin:50% 38%;overflow:hidden}
.mj__plane{position:absolute;left:0;top:0;width:2400px;height:1350px;transform-origin:0 0;transform-style:preserve-3d;will-change:transform;backface-visibility:hidden}
.mj__map{position:absolute;inset:0;width:2400px;height:1350px;max-width:none;display:block;user-select:none;-webkit-user-drag:none;
  box-shadow:0 0 0 2px rgba(242,192,99,.18),0 60px 140px rgba(0,0,0,.6)}
.mj__route{position:absolute;inset:0;pointer-events:none;overflow:visible}
.mj__route path{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 1;stroke-dashoffset:1}
.mj__r-halo{stroke:rgba(242,176,70,.16)}
.mj__r-glow{stroke:rgba(246,190,90,.38)}
.mj__r-core{stroke:url(#mj-gold)}
.mj__r-hot{stroke:#fffbea}

/* comet at the head of the route (billboarded) */
.mj__comet{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;transform-style:preserve-3d;transition:opacity .3s}
.mj__comet::before{content:'';position:absolute;left:-22px;top:-22px;width:44px;height:44px;border-radius:50%;
  background:radial-gradient(circle,#fff 0 18%,rgba(255,224,160,.85) 30%,rgba(242,176,70,0) 70%)}

/* the site: pulsing ground rings + standing light pillar */
.mj__site{position:absolute;left:0;top:0;width:0;height:0;opacity:0}
.mj__site i{position:absolute;left:-150px;top:-150px;width:300px;height:300px;border-radius:50%;border:3px solid rgba(255,214,140,.9);
  box-shadow:0 0 24px rgba(242,184,75,.6),inset 0 0 24px rgba(242,184,75,.35);animation:mj-ring 3s cubic-bezier(.2,.6,.3,1) infinite;opacity:0}
.mj__site i:nth-child(2){animation-delay:1s}.mj__site i:nth-child(3){animation-delay:2s}
.mj__site b{position:absolute;left:-90px;top:-90px;width:180px;height:180px;border-radius:50%;background:radial-gradient(circle,rgba(255,226,160,.9),rgba(242,184,75,.35) 40%,rgba(242,184,75,0) 70%);animation:mj-breathe 2.6s ease-in-out infinite}
@keyframes mj-ring{0%{opacity:1;transform:scale(.15)}100%{opacity:0;transform:scale(2.4)}}
@keyframes mj-breathe{0%,100%{opacity:.95;transform:scale(1)}50%{opacity:.55;transform:scale(1.25)}}
.mj__pillar{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;transform-style:preserve-3d}
.mj__pillar i{position:absolute;left:-22px;bottom:0;width:44px;height:1100px;transform-origin:50% 100%;
  background:linear-gradient(0deg,rgba(255,250,230,1) 0%,rgba(255,214,140,.85) 8%,rgba(242,184,75,.35) 45%,rgba(242,184,75,0) 100%);
  -webkit-mask:linear-gradient(90deg,transparent,#000 35%,#000 65%,transparent);mask:linear-gradient(90deg,transparent,#000 35%,#000 65%,transparent)}

/* billboard labels standing on the map */
.mj__label{position:absolute;left:0;top:0;width:0;height:0;transform-origin:0 0;transform-style:preserve-3d;opacity:0;pointer-events:none}
.mj__label-in{position:absolute;left:0;bottom:0;display:flex;flex-direction:column;align-items:center;transform:translateX(-50%)}
.mj__chip{display:flex;flex-direction:column;align-items:center;gap:3px;padding:10px 16px 11px;white-space:nowrap;color:#fff;
  background:rgba(6,22,24,.78);border:1px solid rgba(242,206,140,.55);box-shadow:0 14px 34px rgba(0,0,0,.45)}
.mj__chip b{font:700 15px/1.15 var(--heading,inherit);letter-spacing:.08em;text-transform:uppercase}
.mj__chip small{font:600 11px/1.3 var(--sans,inherit);letter-spacing:.12em;text-transform:uppercase;color:#fff3d6}
.mj__stem{width:2px;height:58px;background:linear-gradient(rgba(242,206,140,1),rgba(242,206,140,.15))}
.mj__dot{width:12px;height:12px;margin-bottom:-6px;border-radius:50%;background:#fff3c9;box-shadow:0 0 0 4px rgba(242,192,99,.35),0 0 18px #f2b84b}
.mj__label--hero .mj__chip{padding:16px 26px 17px;background:linear-gradient(180deg,#b58f4c,#7c5c26);border-color:rgba(255,232,186,.85)}
.mj__label--hero .mj__chip b{font-size:22px}
.mj__label--hero .mj__stem{height:110px}

/* vignette / horizon haze (static) */
.mj__shade{position:absolute;inset:0;pointer-events:none;background:
  linear-gradient(180deg,rgba(6,23,26,.85) 0%,rgba(6,23,26,0) 26%),
  radial-gradient(130% 90% at 50% 55%,transparent 55%,rgba(3,12,14,.6))}

/* headline */
.mj__copy{position:absolute;z-index:3;left:var(--g);top:50%;transform:translateY(-50%);width:min(420px,34vw);color:#fff;pointer-events:none}
.mj__pin{display:block;position:relative;width:1px;height:44px;margin:0 0 18px;background:rgba(255,255,255,.55)}
.mj__pin::after{content:'';position:absolute;left:-2px;bottom:0;width:5px;height:5px;border-radius:50%;background:#fff}
.mj__title{font:700 clamp(2rem,4.2vw,4rem)/1.08 var(--heading);letter-spacing:-.015em;color:#fff;margin:0;text-shadow:0 2px 18px rgba(0,0,0,.45)}
.mj__title em{font:inherit;color:var(--gold-l)}
.mj__points{list-style:none;margin:clamp(48px,10vh,120px) 0 0;padding:0;display:grid;gap:14px}
.mj__points li{position:relative;padding-left:52px;font:500 clamp(.92rem,1.05vw,1.05rem)/1.4 var(--sans);color:#fff}
.mj__points li::before{content:'';position:absolute;left:0;top:50%;width:36px;height:1px;background:var(--gold-l);opacity:.7}
.mj__points li::after{content:'';position:absolute;left:34px;top:50%;width:5px;height:5px;border-radius:50%;background:var(--gold-l);transform:translateY(-50%)}

/* stop card + progress rail */
.mj__ui{position:absolute;z-index:3;left:var(--g);right:var(--g);bottom:clamp(20px,4vh,40px);display:flex;align-items:flex-end;justify-content:space-between;gap:24px;opacity:0;pointer-events:none}
.mj__card{display:flex;flex-direction:column;gap:6px;min-width:min(340px,80vw);padding:18px 22px;border-left:2px solid var(--gold-l,#e2c98f);
  background:linear-gradient(90deg,rgba(6,22,24,.88),rgba(6,22,24,.55));color:#fff;animation:mj-card .6s cubic-bezier(.22,1,.36,1) both}
.mj__card:empty{display:none}
@keyframes mj-card{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.mj__step{font:600 11px/1 var(--sans);letter-spacing:.24em;color:var(--gold-l,#e2c98f)}
.mj__step i{font-style:normal;opacity:.6}
.mj__card-title{font:700 clamp(1.3rem,2vw,1.9rem)/1.1 var(--heading)}
.mj__card-sub{font:500 .9rem/1.45 var(--sans);color:rgba(255,255,255,.8);max-width:36ch}
.mj__rail{position:relative;display:flex;gap:clamp(14px,2.4vw,36px);padding:0 2px 14px}
.mj__rail::before,.mj__rail-fill{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:rgba(255,255,255,.2)}
.mj__rail-fill{background:linear-gradient(90deg,#f2c76b,#fff3c9);transform-origin:left;transform:scaleX(0);box-shadow:0 0 12px rgba(242,190,110,.8)}
.mj__rail span{font:600 10px/1 var(--sans);letter-spacing:.18em;text-transform:uppercase;color:rgba(255,255,255,.45);white-space:nowrap;transition:color .4s}
.mj__rail span.is-on{color:#fff3c9}

.mj__hint{position:absolute;z-index:3;left:50%;bottom:clamp(22px,5vh,44px);transform:translateX(-50%);display:flex;align-items:center;gap:12px;color:#fff;
  font:600 10px/1 var(--sans);letter-spacing:.22em;text-transform:uppercase;pointer-events:none}
.mj__hint span{width:18px;height:28px;border:1.5px solid rgba(255,255,255,.75);border-radius:10px;position:relative}
.mj__hint span::after{content:'';position:absolute;left:50%;top:6px;width:3px;height:6px;margin-left:-1.5px;border-radius:2px;background:#f2c76b;animation:mj-wheel 1.6s ease-in-out infinite}
@keyframes mj-wheel{0%{opacity:0;transform:translateY(-2px)}40%{opacity:1}100%{opacity:0;transform:translateY(9px)}}
.mj__expand{position:absolute;z-index:4;right:24px;top:24px;min-height:42px;display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.6);
  background:#f8f7f2;color:var(--forest);padding:8px 13px;font:600 .72rem/1.3 var(--sans);letter-spacing:.06em;cursor:pointer;transition:background .25s,color .25s}
.mj__expand:hover{background:var(--forest);color:#fff}
.mj__caption{position:absolute;z-index:3;right:24px;bottom:12px;margin:0;color:rgba(255,255,255,.7);font-size:10px;letter-spacing:.04em}

@media(max-width:1023px){
 .mj__copy{top:0;transform:none;left:0;right:0;width:auto;padding:26px var(--g) 70px;background:linear-gradient(180deg,rgba(6,23,26,.95),rgba(6,23,26,.6) 65%,transparent)}
 .mj__title{font-size:clamp(1.7rem,7vw,2.8rem)}
 .mj__points{display:none}
 .mj__ui{flex-direction:column;align-items:stretch;bottom:16px;gap:14px}
 .mj__card{min-width:0;padding:14px 16px}
 .mj__rail{justify-content:space-between;gap:6px}
 .mj__rail span{font-size:8px;letter-spacing:.06em}
 .mj__expand{top:auto;bottom:16px;right:16px;min-height:36px;padding:7px 10px;font-size:.68rem}
 .mj__caption{display:none}
 .mj__world{perspective:760px;perspective-origin:50% 45%}
}
@media(max-width:767px){
 .mj{height:300vh;height:300svh}
 .mj__chip{padding:8px 12px 9px}
 /* the plane is shown at ~1/4 scale on phones, so billboards are counter-scaled; keep their text readable */
 .mj__chip b{font-size:13px}
}
@media(prefers-reduced-motion:reduce){
 .mj__site i,.mj__site b,.mj__hint span::after{animation:none}
 .mj__hint{display:none}
}

/* ---------- polish pass: landscape, not a floating photo ---------- */
/* dusk sky behind the map */
.mj__stage{background:
  radial-gradient(70% 38% at 50% 0%,rgba(214,150,72,.30),rgba(214,150,72,0) 70%),
  radial-gradient(120% 70% at 50% 8%,#123236 0%,#0a2124 38%,#05141a 70%)}
/* the map dissolves into the night on every edge, so its border is never seen */
.mj__map{will-change:transform;box-shadow:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(180deg,transparent 0,#000 12%,#000 90%,transparent 100%);
  -webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%),linear-gradient(180deg,transparent 0,#000 12%,#000 90%,transparent 100%);mask-composite:intersect}
/* low haze on the horizon + soft vignette */
.mj__shade{background:
  linear-gradient(180deg,rgba(10,30,33,.95) 0%,rgba(10,30,33,.55) 14%,rgba(10,30,33,0) 34%),
  radial-gradient(140% 95% at 50% 60%,transparent 52%,rgba(3,12,14,.72))}
/* dark panel behind the headline so it never fights the map labels */
.mj__copy-bg{position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(90deg,rgba(5,18,20,.92) 0%,rgba(5,18,20,.75) 26%,rgba(5,18,20,.25) 46%,rgba(5,18,20,0) 60%)}
@media(max-width:1023px){.mj__copy-bg{background:linear-gradient(180deg,rgba(5,18,20,.95) 0%,rgba(5,18,20,.7) 30%,rgba(5,18,20,0) 50%)}}
/* bolder stop card */
.mj__card{gap:8px;min-width:min(420px,84vw);padding:22px 28px 24px;border-left:3px solid #e2c98f;
  background:linear-gradient(90deg,rgba(5,18,20,.94),rgba(5,18,20,.72));box-shadow:0 20px 50px rgba(0,0,0,.45)}
.mj__step{font-size:12px}
.mj__card-title{font-size:clamp(1.6rem,2.6vw,2.4rem);letter-spacing:-.01em}
.mj__card-sub{font-size:clamp(.88rem,1vw,1rem)}
.mj__rail span{font-size:11px}
.mj__chip{padding:12px 20px 13px;background:rgba(5,18,20,.88)}
.mj__chip b{font-size:17px}
@media(max-width:1023px){.mj__card{padding:14px 18px}.mj__card-title{font-size:1.35rem}.mj__rail span{font-size:8px}}
@media(max-width:767px){
 .mj__chip{padding:7px 11px 8px}
 .mj__chip b{font-size:12px}
 .mj__label--hero .mj__chip{padding:10px 14px 11px}
 .mj__label--hero .mj__chip b{font-size:15px}
 .mj__label--hero .mj__chip small{font-size:9px}
 .mj__stem{height:36px}
 .mj__label--hero .mj__stem{height:64px}
}

/* ---------- performance tiers ---------- */
/* paused while off screen */
.mj.is-idle .mj__site i,.mj.is-idle .mj__site b,.mj.is-idle .mj__hint span::after{animation-play-state:paused}
/* lite: weaker devices (auto-detected or frame-rate guard). Same story, cheaper pixels. */
.mj--lite .mj__map{-webkit-mask-image:none;mask-image:none}
.mj--lite .mj__shade{background:
  linear-gradient(180deg,rgba(10,30,33,1) 0%,rgba(10,30,33,.7) 16%,rgba(10,30,33,0) 36%),
  linear-gradient(0deg,rgba(5,18,20,.9) 0%,rgba(5,18,20,0) 18%),
  linear-gradient(90deg,rgba(5,18,20,.8) 0%,rgba(5,18,20,0) 14%,rgba(5,18,20,0) 86%,rgba(5,18,20,.8) 100%)}
.mj--lite .mj__site i{box-shadow:none}
.mj--lite .mj__pillar i{-webkit-mask:none;mask:none;left:-10px;width:20px;
  background:linear-gradient(0deg,rgba(255,250,230,.95),rgba(255,214,140,.6) 12%,rgba(242,184,75,0) 100%)}
.mj--lite .mj__card,.mj--lite .mj__chip{box-shadow:none}

/* ---------- responsive ---------- */
/* phones held sideways / short laptop windows: compact everything, keep the map dominant */
@media (max-height:540px) and (orientation:landscape){
 .mj{height:280vh;height:280svh}
 .mj__copy{top:50%;transform:translateY(-50%);left:var(--g);right:auto;width:min(340px,42vw);padding:0;background:none}
 .mj__title{font-size:clamp(1.3rem,4.2vh,2rem)}
 .mj__points{display:none}
 .mj__pin{height:24px;margin-bottom:10px}
 .mj__copy-bg{background:linear-gradient(90deg,rgba(5,18,20,.92) 0%,rgba(5,18,20,.6) 35%,rgba(5,18,20,0) 60%)}
 .mj__ui{flex-direction:row;align-items:flex-end;bottom:10px}
 .mj__card{min-width:0;padding:10px 14px;gap:4px}
 .mj__card-title{font-size:1.1rem}
 .mj__card-sub{display:none}
 .mj__rail{display:none}
 .mj__expand{top:10px;bottom:auto;right:10px;min-height:32px;padding:5px 9px}
 .mj__hint{bottom:10px}
 .mj__chip{padding:6px 10px}.mj__chip b{font-size:11px}.mj__stem{height:28px}
 .mj__label--hero .mj__chip b{font-size:13px}.mj__label--hero .mj__stem{height:48px}
}
/* tablets upright: card and rail side by side is too tight, stack them */
@media (min-width:768px) and (max-width:1023px) and (orientation:portrait){
 .mj__card{max-width:520px}
 .mj__rail span{font-size:10px}
}
/* very small phones */
@media (max-width:360px){
 .mj__card-sub{display:none}
 .mj__rail span{font-size:7px;letter-spacing:.03em}
}
/* large and ultra-wide screens */
@media (min-width:1800px){
 .mj__card{min-width:480px}
 .mj__chip b{font-size:20px}
 .mj__label--hero .mj__chip b{font-size:26px}
 .mj__rail span{font-size:12px}
}
/* phones: the site's sticky "Enquire Now" bar (≈70px) sits over the bottom of the screen */
@media(max-width:767px){
 .mj__ui{bottom:calc(84px + env(safe-area-inset-bottom,0px))}
 .mj__hint{bottom:calc(92px + env(safe-area-inset-bottom,0px))}
 .mj__expand{top:12px;bottom:auto;right:12px}
}
