#map {
  position: relative;
  min-height: 620px;
  background: #eaf0e8;
}

.amap-container {
  font-family: inherit;
}

.map-state {
  display: flex;
  width: 100%;
  min-height: 620px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 9px;
  padding: 40px;
  color: #4d6459;
  text-align: center;
}

.map-state strong {
  font-size: 15px;
  font-weight: 600;
}

.map-state small {
  max-width: 430px;
  color: #7b8b82;
  font-size: 13px;
  line-height: 1.7;
}

.route-error {
  color: #b44545 !important;
}

.route-error-message {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid #ecd1d1;
  border-radius: 8px;
  background: #fff7f7;
  color: #a34242;
  font-size: 13px;
  line-height: 1.5;
}

.map-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #bdccc3;
  border-top-color: var(--green);
  border-radius: 50%;
  animation: map-spin .8s linear infinite;
}

.amap-trip-marker {
  position: relative;
  display: flex;
  align-items: center;
  flex-direction: column;
  filter: drop-shadow(0 3px 5px #1d322839);
  transform: translateY(-3px);
}

.marker-pin {
  display: grid;
  min-width: 32px;
  height: 32px;
  place-items: center;
  padding: 0 7px;
  border: 2px solid white;
  border-radius: 18px;
  background: var(--marker-color);
  color: white;
  font-size: 11px;
  font-weight: 750;
}

.marker-label {
  margin-top: 5px;
  padding: 3px 7px;
  border: 1px solid #dce4df;
  border-radius: 5px;
  background: #fffffff2;
  color: #2f453a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
}

@keyframes map-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 680px) {
  #map,
  .map-state {
    min-height: 420px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-spinner { animation: none; }
}
