/* Demo map: the address on a map, following the call (assets/js/demo-map.js). One column, under the fields. */
.demo-map { margin-top: 1rem; border: 1px solid var(--line-ink); border-radius: 14px; overflow: hidden;
  background: var(--ink-2); }
.demo-map[hidden] { display: none !important; }
.demo-map__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line-ink); }
.demo-map__title { margin: 0; color: var(--chalk-2); font-family: var(--font-display); font-weight: 600; font-size: var(--t-sm); }
.demo-map__caption { margin: 0; color: var(--chalk); font-size: var(--t-sm); min-height: 1.3em; overflow-wrap: anywhere; }
.demo-map__caption[data-state="confirmed"] { color: var(--verdigris-2); }
.demo-map__canvas { position: relative; width: 100%; aspect-ratio: 16 / 10; min-height: 220px; background: var(--ink); }
@media (max-width: 640px) { .demo-map__canvas { aspect-ratio: 4 / 3; } }
.demo-map__note { margin: 0; padding: 0.55rem 0.9rem; color: var(--chalk-2); font-size: var(--t-xs);
  border-top: 1px solid var(--line-ink); }

/* Wide screens, once the caller has confirmed the address AND times are offered (operator, 2026-10-13/14): the map steps down to a short row --
   the words on the left, a small map with the pin on the right -- so at booking the newest transcript line and the
   calendar fit on one screen. While the address is still being found it stays full size. Phones keep the full map. */
@media (min-width: 1024px) {
  .demo-map[data-compact] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: stretch; }
  .demo-map[data-compact] .demo-map__head { flex-direction: column; justify-content: center; align-items: flex-start;
    border-bottom: 0; border-right: 1px solid var(--line-ink); }
  .demo-map[data-compact] .demo-map__canvas { aspect-ratio: auto; height: 120px; min-height: 0; }
  .demo-map[data-compact] .demo-map__note { display: none; }
}

/* the house: a hollow brass ring while Riff checks it with the caller, a solid pin once the caller says yes */
.demo-map__marker--house { width: 34px; height: 44px; display: grid; place-items: end center; pointer-events: none; }
.demo-map__pin { position: relative; width: 26px; height: 26px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  margin-bottom: 9px; border: 3px solid var(--brass); background: transparent; box-shadow: 0 0 0 3px rgba(15, 27, 45, 0.55);
  animation: demo-map-check 1.4s ease-in-out infinite; }
.demo-map__pin::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--brass); opacity: 0.35; }
.demo-map__marker--house.is-confirmed .demo-map__pin { background: var(--brass); animation: demo-map-drop 0.45s cubic-bezier(.2,.7,.2,1) both; }
.demo-map__marker--house.is-confirmed .demo-map__pin::after { background: var(--ink); opacity: 1; inset: 7px; }
@keyframes demo-map-check { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@keyframes demo-map-drop { from { transform: rotate(-45deg) translate(6px, -14px); opacity: 0.4; } to { transform: rotate(-45deg); opacity: 1; } }

/* a street the caller has not given a number for: a soft glow, never a house pin */
.demo-map__marker--street { width: 130px; height: 130px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(224, 174, 78, 0.42) 0%, rgba(224, 174, 78, 0.16) 45%, rgba(224, 174, 78, 0) 70%); }

@media (prefers-reduced-motion: reduce) {
  .demo-map__pin, .demo-map__marker--house.is-confirmed .demo-map__pin { animation: none; }
}
.demo-map .maplibregl-ctrl-attrib { font-size: 11px; }
