.cm-acco-distance-section {
  width: min(1180px, calc(100% - 40px));
  margin: clamp(52px, 6vw, 76px) auto 0;
}

.cm-acco-distance-heading {
  margin: 0 0 18px;
}

.cm-acco-distance-heading .cm-eyebrow {
  margin-bottom: 6px;
}

.cm-acco-distance-heading h2 {
  margin: 0;
  color: #990033 !important;
}

.cm-acco-distance-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.85fr);
  gap: 22px;
  align-items: stretch;
}

.cm-acco-distance-grid.has-no-list {
  grid-template-columns: 1fr;
}

.cm-acco-distance-map,
.cm-acco-distance-list-panel {
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  border: 1px solid #e4dfd8;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.cm-acco-distance-map {
  position: relative;
}

.cm-acco-distance-map.leaflet-container {
  height: 440px;
  min-height: 440px;
  max-height: 440px;
  font-family: inherit;
}

.cm-acco-distance-list-panel {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  padding: 24px 0 16px;
}

.cm-acco-distance-list-panel h3 {
  margin: 0;
  padding: 0 22px 16px;
  color: #990033;
}

.cm-acco-distance-list {
  flex: 1 1 auto;
  min-height: 0;
  border-top: 1px solid #ece8e2;
}

.cm-acco-distance-list.has-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.cm-acco-distance-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 48px;
  padding: 11px 22px;
  border-bottom: 1px solid #ece8e2;
}

.cm-acco-distance-row span {
  min-width: 0;
}

.cm-acco-distance-row strong {
  color: #990033;
  font-weight: 700;
  white-space: nowrap;
}


.cm-acco-distance-placeholder,
.cm-acco-distance-map .cm-map-loading {
  display: grid;
  place-items: center;
  min-height: 440px;
  padding: 30px;
  text-align: center;
  color: #6c625b;
  background: #f8f4ee;
}

.cm-acco-distance-marker-wrap {
  background: transparent;
  border: 0;
}

.cm-acco-distance-marker {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: #990033;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  transform: rotate(-45deg);
}

.cm-acco-distance-marker::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

@media (max-width: 820px) {
  .cm-acco-distance-section {
    width: min(100% - 28px, 1180px);
    margin-top: 42px;
  }

  .cm-acco-distance-grid {
    grid-template-columns: 1fr;
  }

  .cm-acco-distance-map,
  .cm-acco-distance-map.leaflet-container {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }

  .cm-acco-distance-list-panel {
    height: 440px;
    min-height: 440px;
    max-height: 440px;
  }
}
