.company-map {
  min-width: 0;
  margin-block: 24px;
  scroll-margin-top: 84px;
}

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

.company-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.company-map-frame {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line, #d5dfe8);
  border-radius: 12px;
  background: #eaf2ee;
  color: #1b3342;
  isolation: isolate;
  overflow: hidden;
}

.company-map-column {
  min-width: 0;
}

.company-map-column > .company-map-caption {
  margin: 6px 0 0;
}

.company-map-canvas {
  position: relative;
  width: 100%;
  height: 440px;
  z-index: 0;
}

.company-map-canvas .leaflet-tile {
  pointer-events: none;
}

.company-map-canvas:focus-visible,
.company-map-button:focus-visible {
  outline: 3px solid #174967;
  outline-offset: -3px;
}

.company-map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
  background: #fff;
}

.company-map-status {
  position: absolute;
  z-index: 1;
  bottom: 27px;
  inset-inline: 8px;
  border: 1px solid #b5c7cd;
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  margin: 0;
  pointer-events: none;
}

.company-map-frame:fullscreen,
.company-map-expanded {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 0;
  border-radius: 0;
}

.company-map-expanded {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.company-map-lock {
  overflow: hidden;
}

.company-map-frame:fullscreen .company-map-canvas,
.company-map-expanded .company-map-canvas {
  height: 100%;
}

.company-map-info {
  min-width: 0;
  border: 1px solid var(--line, #d5dfe8);
  border-radius: 12px;
  padding: 14px;
  background: var(--surface, #fff);
}

.company-map h2 {
  margin: 0 0 12px;
}

.company-map h3 {
  margin: 12px 0 6px;
}

.company-map-info h3:first-child {
  margin-top: 0;
}

.company-map-info p,
.company-map-places p {
  margin: 3px 0;
  overflow-wrap: anywhere;
}

.company-map-caption {
  color: #455665;
  font-size: .86rem;
  line-height: 1.45;
}

.company-map-actions,
.company-map-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-block: 10px;
}

.company-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 9px;
  border: 1px solid #aebdc9;
  border-radius: 8px;
  color: #174967;
  background: #fff;
  font: inherit;
  font-size: .86rem;
  font-weight: 650;
  text-align: center;
  cursor: pointer;
}

.company-map-primary {
  background: #174967;
  color: #fff;
}

.company-map-lines span {
  color: #fff;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: .82rem;
  font-weight: 750;
}

.company-map-walk-summary {
  font-weight: 750;
}

.company-map .company-map-access {
  margin-top: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  background: #f4f0e5;
}

.company-map .company-map-places,
.company-map .company-map-overview-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr));
  list-style: none;
  gap: 10px;
  margin-block: 10px;
  padding: 0;
}

.company-map-places li,
.company-map-overview-list li {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line, #d5dfe8);
  border-radius: 8px;
  background: var(--surface, #fff);
}

.company-map-overview-list a {
  display: block;
  padding-left: 7px;
  border-left: 4px solid var(--pin-color);
  font-weight: 750;
}

.company-map-overview-list small {
  padding-left: 11px;
}

.company-map-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--pin-color);
  color: #fff;
  box-shadow: 0 1px 5px #15304070;
  font-size: 12px;
  font-weight: 800;
}

.company-map .leaflet-marker-icon:focus-visible .company-map-pin {
  outline: 2px solid #142d3e;
  outline-offset: 2px;
}

.company-map .leaflet-popup-content p {
  margin: 4px 0;
}

@media (max-width: 750px) {
  .article-page .phrase-table {
    table-layout: fixed;
    overflow-wrap: anywhere;
  }

  .company-map-canvas {
    height: 350px;
  }
}
