/* OfficeGlobe styles. Theme it by overriding the custom properties on .og
   (or on any parent). Colours are read by the canvas, so keep them as plain
   CSS colour values. */

.og {
  --og-height: min(92vw, 620px);
  --og-ocean-light: #173a6b;
  --og-ocean-dark: #06122a;
  --og-land: #8fc1ff;
  --og-glow: rgba(90, 160, 255, 0.35);
  --og-rim: rgba(160, 205, 255, 0.35);
  --og-pin: #ff7a45;
  --og-pin-ring: rgba(255, 122, 69, 0.55);
  --og-text: #eef3fb;
  --og-muted: #9fb2cc;
  --og-surface: rgba(12, 24, 48, 0.9);
  --og-border: rgba(255, 255, 255, 0.12);
  --og-accent: #ff7a45;
  --og-accent-text: #1a0d06;
  --og-radius: 16px;

  container-type: inline-size;
  position: relative;
  color: var(--og-text);
}

.og *, .og *::before, .og *::after { box-sizing: border-box; }

.og-viewport { position: relative; }

.og-stage {
  position: relative;
  height: var(--og-height);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;           /* vertical swipes scroll the page; horizontal ones spin the globe */
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.og-stage.is-dragging { cursor: grabbing; }

.og-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.og-pins { position: absolute; inset: 0; pointer-events: none; }

/* ---- pins ---- */

.og-pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 44px;                   /* comfortable touch target */
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  pointer-events: auto;
  will-change: transform, opacity;
  -webkit-tap-highlight-color: transparent;
}
.og-pin[data-hidden] { pointer-events: none; }
.og-pin:focus { outline: none; }

.og-pin-dot,
.og-pin-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border-radius: 50%;
}
.og-pin-dot {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--og-pin);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9), 0 2px 8px rgba(0, 0, 0, 0.45);
  transition: transform 0.2s ease;
}
.og-pin-ring {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--og-pin-ring);
  animation: og-pulse 2.4s ease-out infinite;
}
.og-pin:nth-child(3n + 2) .og-pin-ring { animation-delay: -0.8s; }
.og-pin:nth-child(3n + 3) .og-pin-ring { animation-delay: -1.6s; }

.og-pin:hover .og-pin-dot,
.og-pin.is-selected .og-pin-dot { transform: scale(1.35); }
.og-pin:focus-visible .og-pin-dot { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--og-pin); }

.og-pin-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 6px);
  translate: -50% 4px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--og-surface);
  border: 1px solid var(--og-border);
  color: var(--og-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, translate 0.2s ease;
}
.og-pin:hover .og-pin-label,
.og-pin:focus-visible .og-pin-label,
.og-pin.is-selected .og-pin-label { opacity: 1; translate: -50% 0; }

@keyframes og-pulse {
  0%   { transform: scale(1);   opacity: 0.9; }
  100% { transform: scale(3.2); opacity: 0; }
}

/* ---- hint + pause button ---- */

.og-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: var(--og-muted);
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.og-hint.is-hidden { opacity: 0; }

.og-pause {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 300;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--og-border);
  background: var(--og-surface);
  color: var(--og-text);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.og-pause:hover, .og-pause:focus-visible { opacity: 1; }
.og-pause:focus-visible { outline: 2px solid var(--og-accent); outline-offset: 2px; }
.og-pause svg { width: 18px; height: 18px; }

/* ---- office card ---- */

.og-card {
  position: relative;
  max-width: 440px;
  margin: 12px auto 0;
  padding: 22px 22px 20px;
  border-radius: var(--og-radius);
  border: 1px solid var(--og-border);
  background: var(--og-surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  font-size: 15px;
  line-height: 1.5;
}
.og-card[hidden] { display: none; }
.og-card.is-in { animation: og-card-in 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes og-card-in {
  from { opacity: 0; translate: 0 10px; }
  to   { opacity: 1; translate: 0 0; }
}

.og-card-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--og-muted);
  cursor: pointer;
}
.og-card-close:hover { background: rgba(255, 255, 255, 0.08); color: var(--og-text); }
.og-card-close:focus-visible { outline: 2px solid var(--og-accent); outline-offset: 1px; }
.og-card-close svg { width: 18px; height: 18px; }

.og-card-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--og-accent);
}
.og-card-title { margin: 0; padding-right: 32px; font-size: 26px; line-height: 1.15; font-weight: 700; }
.og-card-title:focus { outline: none; }
.og-card-country { margin: 2px 0 0; color: var(--og-muted); }
.og-card-time {
  display: inline-block;
  margin: 12px 0 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--og-border);
  font-size: 13px;
  color: var(--og-muted);
  font-variant-numeric: tabular-nums;
}
.og-card-desc { margin: 14px 0 0; }
.og-card-address { margin: 14px 0 0; font-style: normal; color: var(--og-muted); }
.og-card-contact { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.og-card-contact li { display: flex; gap: 10px; align-items: baseline; }
.og-card-contact-kind { min-width: 46px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--og-muted); }
.og-card a { color: var(--og-text); text-decoration-color: var(--og-accent); text-underline-offset: 3px; overflow-wrap: anywhere; }
.og-card a:focus-visible { outline: 2px solid var(--og-accent); outline-offset: 2px; border-radius: 3px; }
.og-card-cta {
  display: inline-block;
  margin-top: 16px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--og-accent);
  color: var(--og-accent-text) !important;
  font-weight: 700;
  text-decoration: none;
}

/* Wide layouts: card floats beside the globe instead of below it. */
@container (min-width: 820px) {
  .og-card {
    position: absolute;
    top: 50%;
    right: 24px;
    width: 340px;
    margin: 0;
    transform: translateY(-50%);
  }
}

/* ---- office list ---- */

.og-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.og-chip {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--og-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--og-text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.og-chip:hover { background: rgba(255, 255, 255, 0.1); }
.og-chip:focus-visible { outline: 2px solid var(--og-accent); outline-offset: 2px; }
.og-chip[aria-pressed="true"] { background: var(--og-accent); border-color: var(--og-accent); color: var(--og-accent-text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .og-pin-ring { animation: none; opacity: 0; }
  .og-card.is-in { animation: none; }
  .og-pin-dot, .og-pin-label, .og-hint { transition: none; }
}
