/* AMap branding and legal attribution retain the provider's original rendering. */
.atlas-map { overflow: hidden; }
.atlas-schematic { position: relative; width: 100%; height: 100%; min-height: inherit; }
.atlas-roadmap { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 480px; background: #f5f5ec; }
.roadmap-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; border-bottom: 1px solid #d8ddd0; background: #f6f5ee; }
.roadmap-provider { display: flex; align-items: center; gap: 7px; font-size: 10px; letter-spacing: .05em; }
.roadmap-provider i { width: 5px; height: 5px; border-radius: 50%; background: #6d8d73; }
.roadmap-views { display: inline-flex; padding: 3px; border: 1px solid #d6dcd0; border-radius: 3px; }
.roadmap-views button { border: 0; border-radius: 2px; background: transparent; padding: 5px 11px; font-size: 10px; }
.roadmap-views button[aria-pressed=true] { background: var(--forest); color: #fffef9; }
.roadmap-stage { position: relative; flex: 1; min-height: 355px; }
.roadmap-canvas { position: absolute; inset: 0; background: #ecf0e8; }
.roadmap-zoom { position: absolute; top: 16px; right: 14px; display: grid; z-index: 200; border: 1px solid #d6dcd0; border-radius: 3px; box-shadow: 0 3px 12px #153c3612; }
.roadmap-zoom button { width: 34px; height: 34px; border: 0; background: #fffef9; font: 19px var(--sans); }
.roadmap-zoom button + button { border-top: 1px solid #d6dcd0; }
.roadmap-zoom button:hover { background: #e9eddf; }
.roadmap-zoom button:active { background: var(--forest); color: #fff; }
.roadmap-caption { position: relative; border-top: 1px solid #d8ddd0; background: #f9f8f1; padding: 12px 18px 14px; }
.roadmap-legend { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 9px; color: var(--muted); }
.roadmap-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.roadmap-legend i { width: 12px; height: 3px; background: #cd7746; border-radius: 3px; }
.roadmap-legend > span:nth-child(2) i { background: #547667; opacity: .55; }
.roadmap-legend [data-road-status] { margin-left: auto; font-size: 8px; }
.roadmap-legend button { border: 0; background: transparent; font-size: 10px; color: var(--orange); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.roadmap-caption p { margin-top: 9px; font-size: 10px; line-height: 1.9; }
.roadmap-caption small { display: block; margin-top: 7px; font-size: 10px; line-height: 1.8; color: var(--muted); }
.roadmap-pin { position: relative; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: transparent; overflow: visible; }
.roadmap-pin i { display: block; width: 10px; height: 10px; margin: 10px; background: #f9f8f1; border: 2px solid #547667; border-radius: 50%; box-shadow: 0 0 0 2px #fffef9b3; transition: transform .2s, background .2s; }
.roadmap-pin > span { display: none; position: absolute; bottom: 27px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 2px 5px; border-radius: 2px; background: #fffef9dd; color: #3e6356; font: 10px/1.5 var(--sans); box-shadow: 0 1px 5px #173b2d08; pointer-events: none; }
.roadmap-pin:is(.show-label,:hover,:focus-visible) > span { display: block; }
.roadmap-pin.is-current i { background: #cd7746; border-color: #fffef9; transform: scale(1.25); box-shadow: 0 0 0 2px #cd77463d; }
.roadmap-pin.is-current > span { color: #a65931; font-weight: 600; }
.roadmap-pin:hover i { transform: scale(1.5); }
.roadmap-pin:focus-visible { outline-offset: 4px; }
.roadmap-loading { pointer-events: none; position: absolute; top: 16px; left: 16px; right: 62px; width: fit-content; max-width: calc(100% - 80px); z-index: 200; display: flex; align-items: center; gap: 9px; padding: 10px 12px; background: #fffef9eb; border: 1px solid #d8ddd0; border-radius: 3px; font-size: 10px; line-height: 1.7; }
.roadmap-spinner { width: 12px; height: 12px; flex: 0 0 12px; border: 1px solid #bccbbd; border-top-color: #cd7746; border-radius: 50%; animation: map-wait 1s linear infinite; }
.roadmap-loading.is-error .roadmap-spinner { display: none; }
.roadmap-fallback { position: absolute; left: 0; right: 0; bottom: 0; background: #f9f8f1; padding: 8px 15px; font-size: 9px; line-height: 1.7; border-top: 1px solid #d8ddd0; }
.roadmap-canvas .amap-logo img { object-fit: contain; }
@keyframes map-wait { to { transform: rotate(360deg); } }
@media (max-width: 800px) {
  .atlas-map:has(.atlas-roadmap:not([hidden])) { height: auto; }
  .atlas-roadmap { height: 500px; min-height: 0; }
  .roadmap-stage { min-height: 0; }
}
@media (max-width: 560px) {
  .atlas-schematic { overflow: auto; }
  .atlas-roadmap { height: 510px; }
  .roadmap-toolbar { padding: 12px; gap: 7px; }
  .roadmap-provider { font-size: 10px; }
  .roadmap-views button { padding: 6px 9px; font-size: 9px; }
  .roadmap-caption { padding: 12px 13px; }
  .roadmap-legend { gap: 8px; font-size: 8px; }
  .roadmap-caption p { font-size: 10px; }
  .roadmap-caption small { font-size: 9px; }
  .roadmap-pin > span { font-size: 9px; }
  .roadmap-zoom button { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .roadmap-pin i { transition: none; }
  .roadmap-spinner { animation: none; }
}

.roadmap-fallback { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.roadmap-fallback button { border: 0; background: transparent; font-size: 10px; color: var(--forest); padding: 2px 5px; white-space: nowrap; }
.roadmap-fallback .action-arrow { margin-left: 5px; }
