.world-office-map-shell {
  --map-ocean: #dcecf3;
  --map-country: #d8d8d4;
  --map-north-america: #83b6cf;
  --map-south-america: #75b99b;
  --map-europe: #d2a66f;
  --map-asia: #d98f84;
  --map-africa: #c5b76c;
  --map-oceania: #9a91c7;
  --map-antarctica: #d8e3e7;
  --map-country-hover: #66737b;
  --map-border: #fff;
  --map-pin: #f30d0d;
  --map-pin-hover: #98171c;
  --map-text: #222;
  --map-text-muted: #666660;
  --map-surface: #fff;
  --map-line: #deded9;
  --map-focus: #145da0;
  --map-shadow: 0 12px 30px rgb(0 0 0 / 14%);
  width: 100%;
  color: var(--map-text);
  font-family: Arial, "Helvetica Neue", sans-serif;
}

.world-office-map-shell,
.world-office-map-shell * { box-sizing: border-box; }
.world-office-map-shell button { font: inherit; }
.world-office-map-shell .world-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: min(53.125vw, 85vh);
  height: min(53.125vw, 85dvh);
  max-height: 85vh;
  max-height: 85dvh;
  min-height: 280px;
  background: var(--map-ocean);
  border: 1px solid var(--map-line);
  touch-action: none;
}
.world-office-map-shell .world-map svg { display: block; width: 100%; height: 100%; cursor: grab; }
.world-office-map-shell .world-map svg:active { cursor: grabbing; }
.world-office-map-shell .country { fill: var(--map-country); stroke: var(--map-border); vector-effect: non-scaling-stroke; transition: fill .15s ease; }
.world-office-map-shell .country.north-america { fill: var(--map-north-america); }
.world-office-map-shell .country.south-america { fill: var(--map-south-america); }
.world-office-map-shell .country.europe { fill: var(--map-europe); }
.world-office-map-shell .country.asia { fill: var(--map-asia); }
.world-office-map-shell .country.africa { fill: var(--map-africa); }
.world-office-map-shell .country.oceania { fill: var(--map-oceania); }
.world-office-map-shell .country.antarctica { fill: var(--map-antarctica); }
.world-office-map-shell .country.has-office { filter: brightness(.72) saturate(1.15); }
.world-office-map-shell .country:hover { fill: var(--map-country-hover); }
.world-office-map-shell .map-loading { position: absolute; inset: 50% auto auto 50%; margin: 0; transform: translate(-50%, -50%); color: var(--map-text-muted); }
.world-office-map-shell .map-help { margin: 8px 0 0; padding: 0 clamp(14px, 3vw, 42px); color: var(--map-text-muted); font-size: 12px; }
.world-office-map-shell .office-pin,
.world-office-map-shell .cluster-pin { cursor: pointer; outline: none; }
.world-office-map-shell .office-pin .pin-halo { fill: var(--map-surface); opacity: .82; }
.world-office-map-shell .office-pin .pin-dot { fill: var(--map-pin); stroke: var(--map-surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.world-office-map-shell .office-pin:hover .pin-dot,
.world-office-map-shell .office-pin:focus .pin-dot { fill: var(--map-pin-hover); stroke: var(--map-focus); stroke-width: 2.5; }
.world-office-map-shell .cluster-pin circle { fill: var(--map-pin); stroke: var(--map-surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.world-office-map-shell .cluster-pin text { fill: #fff; font-weight: 700; font-size: 11px; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.world-office-map-shell .cluster-pin:hover circle,
.world-office-map-shell .cluster-pin:focus circle { fill: var(--map-pin-hover); stroke: var(--map-focus); stroke-width: 3; }
.world-office-map-shell .map-controls { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; gap: 6px; }
.world-office-map-shell .map-controls button { min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--map-line); border-radius: 0; background: rgb(255 255 255 / 94%); color: var(--map-text); cursor: pointer; }
.world-office-map-shell .map-controls button:hover { background: #eee; }
.world-office-map-shell .map-controls .reset-button { min-width: 64px; font-size: 12px; }
.world-office-map-shell button:focus-visible,
.world-office-map-shell [tabindex="0"]:focus-visible { outline: 3px solid var(--map-focus); outline-offset: 2px; }
.world-office-map-shell .office-popup { position: absolute; z-index: 4; right: 16px; bottom: 16px; width: min(390px, calc(100% - 32px)); max-height: min(520px, calc(100% - 32px)); overflow-y: auto; padding: 22px; background: var(--map-surface); box-shadow: var(--map-shadow); border-top: 4px solid var(--map-pin); }
.world-office-map-shell .office-popup .popup-title { margin: 0 36px 12px 0; color: var(--map-text-muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.world-office-map-shell .popup-office + .popup-office { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--map-line); }
.world-office-map-shell .popup-office h3 { margin: 4px 30px 8px 0; color: var(--map-text); font-size: 17px; }
.world-office-map-shell .office-popup p { margin: 0; color: var(--map-text); font-size: 14px; line-height: 1.55; }
.world-office-map-shell .office-popup .popup-country { color: var(--map-pin); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.world-office-map-shell .popup-close { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: var(--map-text); font-size: 24px; cursor: pointer; }
.world-office-map-shell .map-error { margin-bottom: 20px; padding: 14px 16px; border-left: 4px solid var(--map-pin); background: #fff0f0; line-height: 1.5; }

@media (max-width: 820px) {
  .world-office-map-shell .world-map { min-height: 280px; }
  .world-office-map-shell .office-popup { right: 10px; bottom: 10px; width: calc(100% - 20px); padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .world-office-map-shell *,
  .world-office-map-shell *::before,
  .world-office-map-shell *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
