/* MO GROUP – Mockup 1 interactive global-reach map, living in the hero ("gmap").
   Uses only the Mockup 1 palette: charcoal #231F20, orange #F2480A, gold #D6BF83, ivory text.
   Looping motion is CSS/SMIL on a handful of SVG elements; JS only runs while zooming, dragging, tilting or touring. */

.gmap { --gm-orange: #F2480A; --gm-gold: #D6BF83; --gm-land: #A99E97; --gm-land-hi: #D6BF83; --gm-panel: rgba(38,34,35,.95);
  --gm-ease: cubic-bezier(.22,.8,.24,1); }

/* ---------- Map frame: behind the right of the hero on wide screens ---------- */
.gmap-frame { position: absolute; z-index: 1; top: clamp(84px, 9vw, 110px); left: 30%; right: -13%; }
.gmap-stage { position: relative; aspect-ratio: 360 / 136; perspective: 1400px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 30%); mask-image: linear-gradient(90deg, transparent 0, rgba(0,0,0,.35) 14%, #000 30%); }
.gmap-tilt { position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--gm-rx, 0deg)) rotateY(var(--gm-ry, 0deg)); transition: transform .7s var(--gm-ease); }
.gmap-canvas, .gmap-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gmap-canvas svg { display: block; overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.gmap.is-zoomed .gmap-canvas svg { cursor: grab; touch-action: none; }
.gmap.is-dragging .gmap-canvas svg { cursor: grabbing; }

/* Faint graticule for a globe-like, technical feel (moves slightly the other way for parallax) */
.gmap-grid { position: absolute; inset: -3%; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(214,191,131,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(214,191,131,.055) 1px, transparent 1px);
  background-size: calc(100% / 12) calc(100% / 6); background-position: center;
  -webkit-mask-image: radial-gradient(60% 75% at 60% 50%, #000 25%, transparent 75%); mask-image: radial-gradient(60% 75% at 60% 50%, #000 25%, transparent 75%);
  transform: translate(calc(var(--gm-px, 0) * -10px), calc(var(--gm-py, 0) * -6px)); transition: transform .7s var(--gm-ease); }
/* Slow ambient light drifting across the surface */
.gmap-ambient { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: .85;
  background: radial-gradient(26% 48% at 50% 50%, rgba(214,191,131,.08), transparent 70%),
              radial-gradient(20% 40% at 50% 50%, rgba(242,72,10,.07), transparent 70%);
  animation: gm-ambient 26s ease-in-out infinite alternate; }
@keyframes gm-ambient { 0% { background-position: -35% -10%, 60% 30%; } 50% { background-position: 25% 20%, -10% -5%; } 100% { background-position: 45% -15%, 30% 25%; } }

/* ---------- SVG layers ---------- */
.gm-land { stroke: var(--gm-land); }
.gm-land-hi { stroke: var(--gm-land-hi); opacity: 0; transition: opacity .5s ease; }
.gmap.has-spot .gm-land-hi { opacity: .45; }
.gm-arc { fill: none; stroke: var(--gm-gold); stroke-width: calc(.36px * var(--k, 1)); stroke-linecap: round; opacity: .6;
  stroke-dasharray: 1; stroke-dashoffset: 1; transition: opacity .45s ease, stroke-width .45s ease, stroke .45s ease; }
.gm-arc.alt { stroke: #C46533; }
.gm-arc-glow { fill: none; stroke: var(--gm-orange); stroke-width: calc(1.6px * var(--k, 1)); stroke-linecap: round; opacity: 0; filter: blur(.5px); transition: opacity .45s ease; }
.gmap.is-in .gm-arc { animation: gm-draw 2.2s cubic-bezier(.45,0,.2,1) forwards; animation-delay: calc(1.1s + var(--i) * .18s); }
@keyframes gm-draw { to { stroke-dashoffset: 0; } }
.gm-particle { fill: #FFE9D6; filter: drop-shadow(0 0 2px var(--gm-orange)); }
.gm-particles { opacity: 0; }
.gmap.is-in .gm-particles { opacity: 1; transition: opacity 1.2s ease 3.4s; }

.gm-pin { cursor: pointer; outline: none; opacity: 0; transition: opacity .7s ease; transition-delay: calc(1.4s + var(--i) * .16s); }
.gmap.is-in .gm-pin { opacity: 1; }
.gm-pin .gm-hit { fill: transparent; }
.gm-pin .gm-halo { fill: url(#gm-halo-grad); opacity: .55; transform-box: fill-box; transform-origin: center; transition: opacity .4s ease, transform .4s var(--gm-ease); }
.gm-pin .gm-pulse { fill: none; stroke: var(--gm-orange); opacity: 0; transform-box: fill-box; transform-origin: center; }
.gmap.is-in .gm-pin .gm-pulse { animation: gm-pulse var(--dur, 4s) cubic-bezier(.2,.6,.3,1) infinite; animation-delay: calc(2.4s + var(--i) * .37s); }
@keyframes gm-pulse { 0% { opacity: .75; transform: scale(.4); } 75%, 100% { opacity: 0; transform: scale(2.6); } }
.gm-pin .gm-dot { fill: var(--gm-orange); stroke: #231F20; stroke-width: .5; transform-box: fill-box; transform-origin: center; transition: transform .4s var(--gm-ease), filter .4s ease, fill .4s ease; }
.gm-pin .gm-ring { fill: none; stroke: var(--gm-gold); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.6); transition: opacity .35s ease, transform .45s var(--gm-ease); }
.gm-pin:is(:hover, :focus-visible, .is-active) .gm-dot { transform: scale(1.5); filter: drop-shadow(0 0 1.5px var(--gm-orange)) drop-shadow(0 0 4px var(--gm-orange)); }
.gm-pin:is(:hover, :focus-visible, .is-active) .gm-halo { opacity: 1; transform: scale(1.35); }
.gm-pin:is(:hover, :focus-visible, .is-active) .gm-ring { opacity: .9; transform: scale(1); animation: gm-ring 1.8s ease-out infinite; }
@keyframes gm-ring { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.gm-pin:focus-visible .gm-dot { stroke: #fff; stroke-width: .7; }
.gm-pin.is-selected .gm-dot { fill: #fff; stroke: var(--gm-orange); stroke-width: .8; }
.gm-wave { fill: none; stroke: var(--gm-orange); opacity: 0; transform-box: fill-box; transform-origin: center; }
.gmap.is-in .gm-wave { animation: gm-wave 6s cubic-bezier(.2,.6,.35,1) infinite; animation-delay: calc(2s + var(--w) * 2s); }
@keyframes gm-wave { 0% { opacity: .55; transform: scale(.2); } 80%, 100% { opacity: 0; transform: scale(1); } }

/* Focus mode: hovering, selecting or filtering dims everything that is not related */
.gmap.has-focus .gm-arc { opacity: .14; }
.gmap.has-focus .gm-arc.is-on { opacity: 1; stroke: #F4D9A8; stroke-width: calc(.5px * var(--k, 1)); }
.gmap.has-focus .gm-arc-glow.is-on { opacity: .45; }
.gmap.has-region .gm-pin.is-out { opacity: .28; }
.gmap.has-region .gm-pin.is-out .gm-pulse { animation: none; }

/* ---------- In-map overlays: tour caption, gesture hint and the "Reset view" chip (no control bar) ---------- */
.gm-caption, .gm-hint { position: absolute; z-index: 3; left: 30%; right: 16%; bottom: 4%; margin: 0; text-align: center; pointer-events: none;
  font-size: 14px; line-height: 1.45; color: var(--gm-gold); text-shadow: 0 1px 12px rgba(35,31,32,.95), 0 0 2px rgba(35,31,32,.9);
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s var(--gm-ease); }
.gm-hint { font-size: 12px; letter-spacing: .08em; color: rgba(244,238,234,.7); }
.gm-caption.show, .gm-hint.show { opacity: 1; transform: none; }
.gm-reset { position: absolute; z-index: 4; top: 4%; right: 16%; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; border: 1px solid rgba(214,191,131,.45); background: rgba(35,31,32,.78);
  color: var(--on-dark, #F4EEEA); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: gm-chip-in .4s var(--gm-ease); transition: border-color .25s, color .25s; }
.gm-reset[hidden] { display: none; }
.gm-reset:hover { border-color: var(--gm-gold); color: var(--gm-gold); }
.gm-reset svg { width: 14px; height: 14px; }
@keyframes gm-chip-in { from { opacity: 0; transform: translateY(-6px); } }
.gmap :is(.gm-reset, .gmap-panel button):focus-visible { outline: 2px solid var(--gm-gold); outline-offset: 2px; }

/* ---------- Tooltip ---------- */
.gm-tip { position: absolute; z-index: 6; left: 0; top: 0; pointer-events: none; min-width: 170px; max-width: 250px; padding: 11px 14px 12px; border-radius: 12px;
  background: var(--gm-panel); border: 1px solid rgba(214,191,131,.25); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.8); color: var(--on-dark, #F4EEEA); font-size: 12px; line-height: 1.45;
  opacity: 0; transform: translate(-50%, calc(-100% - 8px)) scale(.96); transform-origin: 50% 100%; transition: opacity .25s ease, transform .3s var(--gm-ease); }
.gm-tip.show { opacity: 1; transform: translate(-50%, calc(-100% - 14px)) scale(1); }
.gm-tip.flip { transform: translate(-50%, 8px) scale(.96); transform-origin: 50% 0; }
.gm-tip.flip.show { transform: translate(-50%, 14px) scale(1); }
.gm-tip b { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.gm-tip i { display: block; font-style: normal; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gm-gold); margin: 2px 0 5px; }
.gm-tip span { color: rgba(244,238,234,.75); }

/* ---------- Info panel: opens over the left of the hero, next to the map ---------- */
.gmap-panel { position: absolute; z-index: 7; top: clamp(96px, 12vw, 130px); left: max(var(--gutter, 24px), calc((100% - var(--wrap, 1200px)) / 2 + var(--gutter, 24px)));
  width: min(370px, calc(100% - 32px)); max-height: calc(100% - 160px); overflow: auto; overscroll-behavior: contain;
  padding: 26px 24px 22px; border-radius: 18px; background: var(--gm-panel); border: 1px solid rgba(214,191,131,.22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); color: var(--on-dark, #F4EEEA);
  opacity: 0; transform: translateX(-16px); transition: opacity .35s ease, transform .45s var(--gm-ease); }
.gmap-panel[hidden] { display: block; visibility: hidden; pointer-events: none; }
.gmap-panel.show { opacity: 1; transform: none; visibility: visible; }
.gm-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: transparent; color: var(--on-dark, #F4EEEA); cursor: pointer; transition: border-color .25s, transform .3s; }
.gm-close:hover { border-color: var(--gm-gold); transform: rotate(90deg); }
.gm-close svg { width: 16px; height: 16px; }
.gm-panel-region { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gm-gold); }
.gmap-panel h3 { font-family: var(--serif, Georgia, serif); font-size: 34px; line-height: 1.05; margin: 8px 40px 8px 0; color: #fff; outline: none; }
.gm-panel-type { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(242,72,10,.14); color: #FFD3BF; border: 1px solid rgba(242,72,10,.35); }
.gm-panel-type::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gm-orange); }
.gm-panel-facts { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.gm-panel-facts li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.5; color: rgba(244,238,234,.88); }
.gm-panel-facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--gm-gold); }
.gm-panel-note { margin: 14px 0 10px; font-size: 14px; color: var(--on-dark-muted, #B9AEAA); }
.gm-panel-more { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }
.gm-panel-more > span { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8E8380; margin-bottom: 8px; }
.gm-panel-links { display: flex; flex-wrap: wrap; gap: 6px; }
.gm-panel-links button { font: inherit; font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(214,191,131,.3); background: transparent; color: var(--on-dark, #F4EEEA); cursor: pointer; transition: border-color .25s, color .25s; }
.gm-panel-links button:hover { border-color: var(--gm-gold); color: var(--gm-gold); }
.gm-panel-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.gm-panel-nav button { font: inherit; font-size: 13px; font-weight: 600; background: none; border: 0; padding: 8px 0; color: var(--gm-gold); cursor: pointer; }
.gm-panel-nav button:hover { color: #fff; }
.gmap-panel .ph { margin-top: 2px; }

/* ---------- Tablet & phone: map flows under the headline ---------- */
@media (max-width: 900px) {
  .gmap-frame { position: relative; top: auto; left: auto; right: auto; margin: 28px calc(var(--gutter, 16px) * -1) 0; }
  .gmap-stage { aspect-ratio: 220 / 150;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%); }
  .gmap-panel { position: relative; top: auto; left: auto; width: auto; max-height: none; margin-top: 12px; transform: translateY(10px); }
  .gmap-panel[hidden] { display: none; }
  .gm-caption, .gm-hint { left: 16px; right: 16px; bottom: 6%; font-size: 13px; }
  .gm-reset { top: 8%; right: 16px; }
}
@media (max-width: 520px) {
  .gmap-stage { aspect-ratio: 220 / 170; }
}

/* ---------- Off-screen pause + reduced motion ---------- */
.gmap.is-offscreen .gmap-stage * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .gmap-tilt, .gmap-grid { transform: none !important; transition: none; }
  .gmap-ambient, .gm-reset { animation: none; }
  .gm-arc { stroke-dashoffset: 0; animation: none !important; }
  .gm-pin { opacity: 1; transition: none; }
  .gm-pin .gm-pulse, .gm-wave, .gm-particle { display: none; }
  .gm-pin:is(:hover, :focus-visible, .is-active) .gm-ring { animation: none; }
  .gmap-panel, .gm-tip, .gm-caption, .gm-hint { transition: opacity .01ms; }
}
