.vn3d-map-card,
.vn3d-map-card * {
  box-sizing: border-box;
}

.vn3d-map-card {
  --vn3d-ink: #172126;
  --vn3d-muted: #5e6b70;
  --vn3d-line: #dce5e4;
  --vn3d-soft: #f3f7f5;
  --vn3d-green: #1f7a5a;
  --vn3d-water: #2f7f8d;
  --vn3d-white: #fff;
  --vn3d-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--vn3d-line);
  border-radius: var(--vn3d-radius);
  color: var(--vn3d-ink);
  font-family: inherit;
  line-height: 1.55;
  background: var(--vn3d-white);
  box-shadow: 0 14px 34px rgba(23, 33, 38, .06);
}

.vn3d-map {
  position: relative;
  min-height: 560px;
  background: var(--vn3d-soft);
}

.vn3d-map__canvas {
  width: 100%;
  height: 100%;
  min-height: inherit;
}

.maplibregl-map {
  font-family: inherit;
}

.maplibregl-ctrl-group,
.maplibregl-ctrl-scale {
  border: 0 !important;
  box-shadow: 0 10px 26px rgba(23,33,38,.16) !important;
}

.maplibregl-ctrl-scale {
  padding: 5px 8px;
  border-color: rgba(23,33,38,.35) !important;
  color: var(--vn3d-ink);
  background: rgba(255,255,255,.9);
}

.vn3d-map__controls {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vn3d-map__controls button {
  min-height: 38px;
  padding: 8px 12px;
  border: 0;
  border-radius: 6px;
  color: var(--vn3d-ink);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 26px rgba(23,33,38,.16);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.vn3d-map__controls button:hover {
  color: var(--vn3d-white);
  background: var(--vn3d-green);
}

.vn3d-map__note {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 13px 18px;
  border-top: 1px solid var(--vn3d-line);
  color: var(--vn3d-ink);
  background: rgba(243,247,245,.96);
}

.vn3d-map__note strong {
  flex: 0 0 auto;
  font-size: 14px;
}

.vn3d-map__note span {
  display: block;
  color: var(--vn3d-muted);
  font-size: 12px;
  line-height: 1.35;
}

.vn-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 4px solid var(--vn3d-white);
  border-radius: 50%;
  background: var(--vn3d-green);
  box-shadow: 0 10px 22px rgba(23,33,38,.28);
}

.vn-marker.blue {
  background: var(--vn3d-water);
}

.vn-marker:after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vn3d-white);
}

.map-popup b {
  display: block;
  margin-bottom: 4px;
  color: var(--vn3d-ink);
  font-size: 15px;
}

.map-popup span {
  display: block;
  color: var(--vn3d-muted);
  font-size: 13px;
  line-height: 1.35;
}

.map-popup a {
  display: inline-block;
  margin-top: 10px;
  color: var(--vn3d-green);
  font-weight: 850;
  text-decoration: none;
}

.vn3d-coords {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
  background: var(--vn3d-soft);
}

.vn3d-coord {
  padding: 16px;
  border: 1px solid var(--vn3d-line);
  border-radius: var(--vn3d-radius);
  background: var(--vn3d-white);
}

.vn3d-coord b,
.vn3d-coord span {
  display: block;
}

.vn3d-coord span {
  color: var(--vn3d-muted);
  font-size: 14px;
}

.vn3d-coord a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--vn3d-green);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 980px) {
  .vn3d-coords {
    grid-template-columns: 1fr;
  }

  .vn3d-map {
    min-height: 500px;
  }
}

@media (max-width: 640px) {
  .vn3d-map {
    min-height: 520px;
  }

  .vn3d-map__note {
    display: block;
    padding: 13px 14px;
  }

  .vn3d-map__note span {
    margin-top: 3px;
  }

}
