.survey-readout {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 60;
        pointer-events: none;
        padding: 5px 9px;
        border-left: 2px solid #df0000;
        border-radius: 3px;
        background: #fff;
        color: #242424;
        box-shadow: 0 1px 5px #0002;
        font: 11px/1.45 ui-monospace, monospace;
        white-space: pre;
      }

.survey-background { isolation: isolate; background: white; }
.map-viewport { position: fixed; inset: 0; overflow: hidden; background: #fff; }
.survey-background > .map-viewport { z-index: -1; pointer-events: none; }
.map-sheet {
  position: absolute;
  width: max(3600px, 210vw, 210vh);
  height: auto;
  max-width: none;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.survey-background .map-sheet { opacity: .63; }
.office-overlay { pointer-events: none; }
.office-overlay path {
  pointer-events: fill;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  fill: #e00000;
  fill-opacity: .08;
  stroke: #e00000;
  stroke-width: .4;
  stroke-linejoin: round;
  opacity: 0;
}
.office-overlay path.is-hovered, .office-overlay path:focus-visible { opacity: 1; }
.office-card {
  position: fixed;
  inset: auto;
  margin: 0;
  box-sizing: border-box;
  max-width: calc(100vw - 16px);
  width: 22rem;
  max-height: calc(100dvh - 16px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid #ddd;
  border-left: 3px solid #e00000;
  border-radius: .6rem;
  background: white;
  color: #242424;
  box-shadow: 0 5px 22px #0002;
  font: .9rem/1.5 system-ui, sans-serif;
}
.office-card::backdrop { background: rgb(0 0 0 / 4%); }
.office-card address { margin-top: .35rem; font-style: normal; }
.office-card strong { display: block; padding-right: 1.7rem; }
.office-card figure { margin: .75rem 0 0; }
.office-card figure img { display: block; width: 100%; height: auto; border-radius: .3rem; }
.office-card figcaption { margin-top: .25rem; font-size: .68rem; color: #555; }
.office-card button {
  position: absolute;
  top: .18rem;
  right: .18rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: #444;
  font: 1.3rem system-ui, sans-serif;
  cursor: pointer;
}
@media (min-width: 90rem) {
  .survey-background .map-sheet { left: calc((100% - 77rem) / 4); }
}
.office-map-link, .map-heading a { color: #aa0000; text-underline-offset: .22em; }
.office-map-link { display: inline-block; margin-top: .6rem; font-size: .9rem; text-decoration: underline; }
.map-detail { margin: 0; color: #262626; font-family: system-ui, sans-serif; }
.map-detail .map-sheet { width: max(4800px, 150vw, 150vh); }
.map-heading, .map-credit {
  position: fixed;
  z-index: 1;
  background: #fffffff5;
  box-shadow: 0 2px 12px #0001;
}
.map-heading { left: 1rem; top: 1rem; padding: .8rem 1.15rem; border-left: 3px solid #e00000; }
.map-heading a, .map-heading p { font-size: .83rem; }
.map-heading h1 { font-size: 1.25rem; margin: .55rem 0 .1rem; }
.map-heading p { margin: 0; }
.map-credit { bottom: 0; right: 0; padding: .45rem .8rem; font-size: .7rem; }
.map-credit a { color: inherit; }
@media(max-width: 600px) {
  .map-detail .map-sheet { width: max(2800px, 210vh); }
  .map-heading { top: .5rem; left: .5rem; }
}

.map-trains { pointer-events: none; }
@media (max-width: 600px) {
  /* Udržet kancelář i přilehlou trať ve výřezu mapového detailu. */
  .map-detail .map-sheet { width: min(2800px, 600vw); left: 28%; }
}