/* Isolated exact-office map marker and information popup for About Us */

.office-map-stage {
  position: relative;
  background: var(--color-white);
}

.office-map-stage iframe {
  display: block;
}

.office-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 3px solid #FFFFFF;
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(11, 27, 69, 0.35);
  transform: translate(-50%, -100%) rotate(-45deg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.office-map-pin svg {
  width: 19px;
  height: 19px;
  transform: rotate(45deg);
}

.office-map-pin:hover,
.office-map-pin:focus-visible {
  transform: translate(-50%, -100%) rotate(-45deg) scale(1.06);
  box-shadow: 0 10px 26px rgba(11, 27, 69, 0.42);
  outline: none;
}

.office-map-pin[aria-expanded="true"] {
  background: var(--color-deep-navy);
}

.office-map-popup[hidden] {
  display: none !important;
}

.office-map-popup {
  position: absolute;
  left: 50%;
  bottom: calc(50% + 34px);
  z-index: 3;
  width: min(320px, calc(100% - 32px));
  padding: 16px 18px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: var(--shadow-card);
  transform: translateX(-50%);
  text-align: left;
}

.office-map-popup::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #FFFFFF;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  transform: translateX(-50%) rotate(45deg);
}

.office-map-popup strong {
  display: block;
  margin-bottom: 5px;
  color: var(--color-deep-navy);
  font-size: 0.98rem;
  line-height: 1.35;
}

.office-map-popup span {
  display: block;
  color: var(--color-secondary-text);
  font-size: 0.86rem;
  line-height: 1.55;
}

.office-map-popup a {
  display: inline-block;
  margin-top: 9px;
  color: var(--color-primary);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.office-map-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(11, 27, 69, 0.06);
  color: var(--color-deep-navy);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.office-map-popup-close:hover,
.office-map-popup-close:focus-visible {
  background: rgba(11, 27, 69, 0.12);
  outline: none;
}

@media (max-width: 480px) {
  .office-map-popup {
    top: 8px;
    bottom: auto;
    width: calc(100% - 24px);
    padding: 11px 14px 9px;
  }

  .office-map-popup strong {
    margin-bottom: 2px;
    font-size: 0.88rem;
  }

  .office-map-popup span {
    font-size: 0.78rem;
    line-height: 1.4;
  }

  .office-map-popup a {
    margin-top: 5px;
    font-size: 0.78rem;
  }

  .office-map-popup-close {
    top: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    font-size: 1rem;
  }

  .office-map-pin {
    width: 34px;
    height: 34px;
  }
}
