/* Animated location map (home page, "Find us") */
.amap{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.amap-stage{ position:relative; background:#eef1ef; }
.amap-svg{ display:block; width:100%; height:auto; }
.amap-live{ width:100%; height:100%; min-height:340px; border:0; display:block; }
.am-bg{ fill:#eef1ef; }
.am-park{ fill:#d3e9d6; }
.am-block rect{ fill:#e1e6e3; }
.am-roads path{ fill:none; stroke:#fff; stroke-width:15; stroke-linecap:round; stroke-linejoin:round; }
.am-road-names text{ font:500 13px var(--font-body); fill:#8a9690; letter-spacing:.02em; text-anchor:start; }
.am-route-bg{ fill:none; stroke:#ec3237; stroke-opacity:.35; stroke-width:5; stroke-dasharray:2 11; stroke-linecap:round; stroke-linejoin:round; }
.am-route-fg{ fill:none; stroke:#ec3237; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; }
.am-start circle:first-child{ fill:#fff; stroke:#ec3237; stroke-width:3; }
.am-start rect{ fill:#ec3237; } .am-start circle:not(:first-child){ fill:#fff; }

/* nearby places pop up as the pin passes */
.am-poi{ opacity:0; transition:opacity .35s; }
.am-poi > *{ transform-box:fill-box; transform-origin:center; }
.am-poi rect{ fill:#fff; stroke:#f1c4c6; stroke-width:1.5; filter:drop-shadow(0 3px 5px rgba(122,20,24,.18)); }
.am-poi text{ font:600 15.5px var(--font-body); fill:#1f1416; }
.am-poi .dot{ fill:#ec3237; stroke:#fff; stroke-width:3; }
.am-poi.show{ opacity:1; animation:amPop .5s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes amPop{ from{ opacity:0; scale:.6; } to{ opacity:1; scale:1; } }

/* destination */
.am-dest, .am-card{ opacity:0; }
.dest-dot{ fill:#ec3237; }
.ring{ fill:none; stroke:#ec3237; stroke-width:2.5; opacity:0; transform-box:fill-box; transform-origin:center; }
.arrived .am-dest{ opacity:1; }
.arrived .ring{ animation:amRing 2.2s ease-out infinite; }
.arrived .ring.r2{ animation-delay:1.1s; }
@keyframes amRing{ 0%{ opacity:.8; transform:scale(.3); } 100%{ opacity:0; transform:scale(2.6); } }
.am-card rect, .am-card path{ fill:#ec3237; }
.am-card text{ fill:#fff; }
.am-card .c1{ font:700 17px var(--font-head); } .am-card .c2{ font:500 13px var(--font-body); opacity:.92; }
.arrived .am-card{ opacity:1; animation:amCard .6s .35s cubic-bezier(.34,1.56,.64,1) both; transform-box:fill-box; transform-origin:50% 100%; }
@keyframes amCard{ from{ opacity:0; scale:.5; } to{ opacity:1; scale:1; } }

/* pin */
.am-pin path{ fill:#ec3237; } .am-pin circle{ fill:#fff; }
.pin-shadow{ fill:rgba(60,10,12,.25); }
.pin-bob{ animation:amBob .6s ease-in-out infinite alternate; }
@keyframes amBob{ from{ transform:translateY(0); } to{ transform:translateY(-6px); } }
.arrived .pin-bob{ animation:amDrop .8s cubic-bezier(.28,.84,.42,1) 1; }
@keyframes amDrop{ 0%{ transform:translateY(-30px); } 55%{ transform:translateY(0); } 72%{ transform:translateY(-9px); } 100%{ transform:translateY(0); } }

.amap-status{ position:absolute; left:12px; top:12px; max-width:calc(100% - 24px); padding:7px 14px; border-radius:999px; background:rgba(255,255,255,.95);
  border:1px solid var(--line); box-shadow:var(--shadow); font:600 .82rem/1.2 var(--font-body); color:var(--ink); }
.amap-status::before{ content:""; display:inline-block; width:8px; height:8px; margin-right:8px; border-radius:50%; background:#ec3237; animation:amBlink 1s infinite; }
.arrived .amap-status::before{ background:#25d366; animation:none; }
@keyframes amBlink{ 50%{ opacity:.25; } }

.amap-bar{ display:flex; flex-wrap:wrap; gap:8px 12px; align-items:center; justify-content:space-between; padding:10px 14px; border-top:1px solid var(--line); background:#fff; }
.amap-note{ font-size:.8rem; color:var(--muted); } .amap-note i{ color:var(--red); margin-right:4px; }
.amap-btns{ display:flex; gap:8px; }
.amap-btn{ display:inline-flex; align-items:center; gap:6px; min-height:36px; padding:0 14px; border-radius:999px; border:1.5px solid var(--red); background:#fff; color:var(--red);
  font:600 .82rem/1 var(--font-body); cursor:pointer; transition:background .2s,color .2s; }
.amap-btn:hover, .amap-btn[aria-pressed="true"]{ background:var(--red); color:#fff; }
@media (max-width:599px){
  .am-road-names text{ font-size:15px; } .am-poi text{ font-size:18px; } .am-card .c1{ font-size:19px; } .am-card .c2{ font-size:15px; }
  .map .amap-svg{ min-height:0; }
  .amap-btn{ min-height:44px; }
}
@media (prefers-reduced-motion:reduce){ .pin-bob, .arrived .ring{ animation:none !important; } .arrived .ring{ opacity:.5; } }
@media (max-width:599px){
  .amap-stage{ display:flex; flex-direction:column-reverse; }
  .amap-status{ position:static; max-width:none; border-radius:0; border:0; border-bottom:1px solid var(--line); box-shadow:none; background:#fff; padding:10px 14px; }
  .amap-live{ min-height:300px; }
}
