/* ==========================================================================
   Delivery address search, the delivery quote and the street maps
   ========================================================================== */
.addr { position: relative; }
.addr__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35); max-height: 290px; overflow: auto; }
.addr__list li { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 8px; cursor: pointer; font-size: 15px; line-height: 1.3; }
.addr__list li svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.addr__list li:hover, .addr__list li.is-on { background: var(--accent-soft); }

.quote { margin: 14px 0 6px; }
.quote__msg { margin: 0; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); color: var(--muted); font-size: 14px; line-height: 1.5; display: flex; gap: 10px; align-items: center; }
.quote__msg.is-bad { background: rgba(192, 38, 28, .08); color: var(--bad); }
.quote__ok { border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.quote__mapwrap { position: relative; }
.quote__map { height: 250px; background: #f3f1ec; }
.quote__pin { position: absolute; left: 50%; top: 50%; width: 40px; height: 52px; margin: -52px 0 0 -20px; pointer-events: none; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .28)); transition: transform .18s ease; }
.quote__mapwrap.is-moving .quote__pin { transform: translateY(-10px); }
.quote__hint { position: absolute; left: 10px; top: 10px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(19, 33, 77, .9); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.quote__facts { padding: 14px 16px 6px; }
.quote__addr { margin: 0 0 10px; font-weight: 700; font-size: 15px; }
.quote__addr small { font-weight: 400; color: var(--muted); }
.quote__facts dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 8px; }
.quote__facts dl div { min-width: 0; }
.quote__facts dt { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.quote__facts dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; }
.quote__facts dd small { font-weight: 400; color: var(--muted); font-size: 12px; }
.quote__facts dd s { color: var(--muted); font-weight: 400; margin-right: 4px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: rbspin .8s linear infinite; flex: none; }
@keyframes rbspin { to { transform: rotate(360deg); } }

/* map pins: store, the customer's door, the car */
.gpin { display: grid; place-items: center; }
.gpin i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #13214d; box-shadow: 0 6px 16px -4px rgba(0, 0, 0, .45); border: 3px solid #fff; }
.gpin i svg { width: 22px; height: 22px; }
.gpin b { position: absolute; top: 44px; left: 50%; transform: translateX(-50%); white-space: nowrap; font: 800 12px/1 var(--sans); background: #fff; color: #13214d; padding: 4px 8px; border-radius: 999px; box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .4); }
.gpin--store i { background: var(--accent); color: #fff; }
.gpin--home i { background: #13214d; color: #fff; }
.gpin--car i { background: #ffc627; color: #13214d; animation: carPulse 1.6s ease-out infinite; }
@keyframes carPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 198, 39, .7); } 100% { box-shadow: 0 0 0 16px rgba(255, 198, 39, 0); } }
.livemap__slot { height: 380px !important; }
.livemap__map { width: 100%; height: 100%; }
.maplibregl-map { font-family: var(--sans); background: #f3f1ec; }
.maplibregl-ctrl-attrib { font-size: 9px; }
.gpin--store b { top: auto; bottom: 44px; }
.gpsbar { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--bg-2); margin: 0 0 14px; font-size: 14px; line-height: 1.45; }
.gpsbar b { font-size: 15px; }
.gpsbar.is-on { background: rgba(31, 122, 60, .1); color: #1f5f33; }
.gpsbar.is-on b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1f9a4c; margin-right: 8px; animation: mkPulse 1.6s ease-out infinite; }
.gpsbar.is-warn { background: rgba(255, 198, 39, .18); }
.gpsbar.is-bad { background: rgba(192, 38, 28, .1); color: var(--bad); }
.drivermap { padding: 0; overflow: hidden; margin-bottom: 18px; }
.drivermap__slot { height: 300px; }
.drivermap__map { width: 100%; height: 100%; }
.addr__list .addr__hint { cursor: default; color: var(--muted); font-size: 14px; }
.addr__list .addr__hint:hover { background: none; }
