/* Mobile-first wayfinder viewer */
body.viewer { background: #fff; }
.v-head { position: sticky; top: 0; z-index: 2; background: #fff; padding: 12px 16px 8px; border-bottom: 1px solid var(--line); }
.v-head h1 { margin: 0 0 8px; font-size: 18px; }
.v-from { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--text); font-size: 14px; white-space: nowrap; }
.v-from select { flex: 1; min-width: 0; min-height: 44px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
#vSearch { font-size: 16px; padding: 10px 12px; min-height: 44px; border-radius: 10px; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; }
.chips button { border-radius: 999px; flex: 0 0 auto; min-height: 36px; }
.results { list-style: none; margin: 6px 0 0; padding: 0; }
.results button {
  width: 100%; min-height: 48px; flex-direction: column; align-items: flex-start;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; text-align: left; white-space: normal;
}
.results small { color: var(--muted); }
.results .none { color: var(--muted); padding: 10px 4px; }

.v-route-info { margin: 12px 16px 0; padding: 10px 12px; border-radius: 10px; background: #eff6ff; display: flex; flex-direction: column; gap: 6px; }
.v-route-info p { margin: 0; }
.v-route-info .big { font-size: 16px; font-weight: 600; color: #1e3a8a; }
.v-route-info .muted { color: var(--muted); }
.v-route-info .error { color: var(--danger); }
.v-route-info .hours-open { color: #15803d; font-weight: 600; }
.v-route-info .hours-break { color: #b45309; font-weight: 600; }
.v-route-info .hours-closed { color: var(--danger); font-weight: 600; }
.v-route-info .step { justify-content: flex-start; white-space: normal; text-align: left; min-height: 44px; }

.v-tools { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 16px 0; flex-wrap: wrap; }
.v-tools .floor-tabs { margin: 0; }
.v-check { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text); min-height: 44px; }
.v-check input { width: 20px; height: 20px; }
.v-map { padding: 8px 16px 24px; }
.v-fit { margin-bottom: 8px; min-height: 44px; }
#vCanvas { width: 100%; height: auto; max-height: calc(100vh - 230px); min-height: 260px; display: block; overflow: hidden; }
.v-hit { fill: rgba(220, 38, 38, .12); stroke: #dc2626; stroke-width: 3; animation: pulse 1.2s ease-in-out infinite; }
.v-pin { fill: #dc2626; stroke: #fff; stroke-width: 2; }
.v-route-bg { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.v-route { fill: none; stroke: #2563eb; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 8; animation: march 0.8s linear infinite; }
.v-here { fill: #2563eb; stroke: #fff; stroke-width: 3; }
.v-here-halo { fill: rgba(37, 99, 235, .2); }
@keyframes pulse { 50% { stroke-width: 7; } }
@keyframes march { to { stroke-dashoffset: -18; } }
@media (prefers-reduced-motion: reduce) { .v-hit, .v-route { animation: none; } }
.v-empty { padding: 24px 16px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
label.primary-btn { background: var(--accent); color: #fff; border-color: var(--accent); min-height: 44px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.legend .dot { width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid; }
