/* The live map (docs/LIVE.md). Tokens come from app.css. */
.live-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px 8px; padding: 8px 14px; border-radius: 10px; background: var(--red, #d21f3c); color: #fff; font-weight: 600; font-size: .9rem; }
.live-chip:hover { filter: brightness(1.08); }
.live-chip-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: lv-blink 1.6s ease-in-out infinite; }
@keyframes lv-blink { 50% { opacity: .3; } }

.lv { position: relative; }
.lv-map { width: 100%; height: calc(100svh - 76px); min-height: 460px; background: #f4f6fb; }
.lv-embed .lv-map, .lv-body .lv-map { height: 100svh; min-height: 0; }
.lv-body { margin: 0; }
.lv-empty { position: absolute; left: 16px; right: 16px; bottom: 24px; max-width: 420px; padding: 18px 20px; border-radius: 16px; background: var(--surface, #fff); color: var(--text, #14213d); box-shadow: 0 10px 30px rgb(20 33 61 / 18%); z-index: 2; }
.lv-empty[hidden] { display: none; }
.lv-empty-title { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.2rem; }
.lv-empty-sub { margin: 12px 0 6px; font-size: .85rem; opacity: .7; }
.lv-outings { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lv-outings li { display: grid; gap: 2px; font-weight: 500; }
.lv-when { font-size: .85rem; opacity: .7; font-weight: 400; }

.lv-card { position: absolute; left: 16px; right: 16px; bottom: 24px; max-width: 360px; padding: 16px 18px; border-radius: 16px; background: var(--surface, #fff); color: var(--text, #14213d); box-shadow: 0 10px 30px rgb(20 33 61 / 22%); z-index: 3; }
.lv-card[hidden] { display: none; }
.lv-card-close { position: absolute; top: 8px; right: 8px; }
.lv-card-name { margin: 0; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.15rem; padding-right: 36px; }
.lv-card-sub { margin: 4px 0 12px; font-size: .95rem; opacity: .8; }
.lv-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.lv-marker { display: grid; justify-items: center; cursor: pointer; }
.lv-logo { position: relative; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 2px 10px rgb(20 33 61 / 35%); overflow: visible; }
.lv-logo img, .lv-logo span { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.lv-logo span { display: grid; place-items: center; background: #14213d; color: #fff; font-weight: 600; font-size: .9rem; }
.lv-logo::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--red, #d21f3c); animation: lv-ring 2.2s ease-out infinite; pointer-events: none; }
@keyframes lv-ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.lv-label { margin-top: 6px; padding: 4px 10px; border-radius: 8px; background: #14213d; color: #fff; font-size: .78rem; font-weight: 500; white-space: nowrap; max-width: 70vw; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .lv-logo::after, .live-chip-dot { animation: none; } }

/* Admin page */
.lv-admin { display: grid; gap: 16px; max-width: 760px; }
.lv-admin h2 { margin: 0 0 8px; }
.lv-now { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
