.by-baiyun-map-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  margin: 14px 0 20px;
  box-sizing: border-box;
}

.by-baiyun-map,
.by-baiyun-town-map {
  width: 100%;
  height: 560px;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #c8d6e2;
  background: #eef3f6;
  box-sizing: border-box;
}

.by-baiyun-map:focus {
  outline: 3px solid #f0a43c;
  outline-offset: 2px;
}

.by-baiyun-map.by-baiyun-map-fallback,
.by-baiyun-town-map.by-baiyun-map-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
  min-height: 140px;
  max-height: none;
  padding: 20px;
  color: #334b5c;
  text-align: center;
}

.by-baiyun-map-fallback-message strong {
  display: block;
  color: #173f59;
  font-size: 18px;
  line-height: 1.5;
}

.by-baiyun-map-fallback-message p {
  margin: 8px 0 0;
}

.by-baiyun-map-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #d2dce4;
  background: #fff;
  color: #263746;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.by-baiyun-map-card strong {
  display: block;
  color: #173f59;
  font-size: 18px;
  line-height: 1.5;
}

.by-baiyun-map-card p {
  margin: 8px 0;
}

.by-baiyun-map-card a {
  color: #0066cc;
  text-decoration: underline;
}

.by-baiyun-place-list {
  max-height: 460px;
  margin: 10px 0 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.by-baiyun-place-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px;
  border-top: 1px solid #e7edf2;
}

.by-baiyun-place-list li:first-child {
  border-top: 0;
}

.by-baiyun-place-list a,
.by-baiyun-place-list span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.by-baiyun-place-list em {
  flex: 0 0 auto;
  color: #677887;
  font-size: 12px;
  font-style: normal;
}

.by-baiyun-map-empty {
  color: #596b78;
}

.by-baiyun-map-attribution {
  margin: 8px 0 0;
  color: #596b78;
  font-size: 13px;
  line-height: 1.6;
}

.by-baiyun-map-attribution a {
  color: #005ea8;
  text-decoration: underline;
}

.leaflet-container {
  background: #eef3f6;
  font-family: "Microsoft YaHei", Arial, sans-serif;
}

.leaflet-interactive:focus {
  outline: none;
  stroke: #8f2f24;
  stroke-width: 4;
}

.by-baiyun-town-label {
  padding: 2px 3px;
  border: 1px solid #345366;
  background: rgba(255, 255, 255, 0.94);
  color: #1d3443;
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  box-shadow: none;
  white-space: nowrap;
}

.by-baiyun-town-label:before {
  display: none;
}

@media screen and (max-width: 760px) {
  .by-baiyun-map-shell {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .by-baiyun-map,
  .by-baiyun-town-map {
    height: 62vh;
    min-height: 360px;
    max-height: 520px;
  }

  .by-baiyun-map-card {
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .by-baiyun-place-list {
    max-height: 320px;
  }

  .by-baiyun-town-label {
    max-width: 9em;
    white-space: normal;
    text-align: center;
  }
}
