.office-plan {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.office-map {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 960 / 510;
  min-height: 238px;
  overflow: hidden;
  background: var(--paper);
}
.office-map > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.office-map-viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.office-map-viewport:focus-visible { outline: 3px solid var(--blue); outline-offset: -4px; }
.office-map-viewport.is-dragging { cursor: grabbing; }
.office-map-viewport > img {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.office-map-tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--route-line);
  border-radius: 9px;
  background: var(--line);
  box-shadow: 0 2px 8px rgb(12 51 88 / 12%);
}
.office-map-tools button {
  display: grid;
  place-items: center;
  height: 44px;
  width: 44px;
  padding: 0;
  border: 0;
  background: var(--white);
  color: var(--blue);
  cursor: pointer;
}
.office-map-tools svg { width: 21px; height: 21px; }
.office-map-tools button:disabled { color: var(--route-line); cursor: default; }
.office-map-tools button:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.office-map-tools button:hover:enabled { background: var(--paper); }
.office-plan-caption {
  display: grid;
  gap: 3px;
  padding: 13px clamp(14px, 2vw, 23px) 15px;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.office-plan-caption strong { color: var(--ink); line-height: 1.4; }
.office-map-link {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 44px;
  color: var(--blue);
  font-weight: 600;
  text-underline-offset: .2em;
}
.office-map-link:hover { color: var(--ink); }
.office-plan-caption span { color: var(--text-muted); font-size: .875rem; line-height: 1.5; }
@media (max-width: 520px) {
  .office-map-tools { left: 10px; right: auto; }
}
@media print { .office-map-tools { display: none; } }
