@import url('/worker-mascot.css?v=1');
@import url('/cleanup-scene.css?v=1');

.job-location {
  margin-block: 16px; padding: 16px; min-width: 0; border: 1px solid var(--go-divider, #e5e4e2);
  border-radius: 16px; background: var(--go-surface, white); color: var(--go-ink, #21201f);
}
.job-location[hidden], .job-location [hidden] { display: none; }
.job-location .jl-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.job-location .jl-head h2 { font-size: 18px; font-weight: 620; letter-spacing: -.02em; margin: 0; }
.jl-live-tag { font-size: 12px; color: #13734f; font-weight: 600; white-space: nowrap; }
.jl-live-tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #299369; vertical-align: middle; margin-right: 5px; }
.jl-map {
  position: relative; height: clamp(150px, 23vw, 220px); isolation: isolate; overflow: hidden;
  border-radius: 12px; margin-block: 10px; background: #eaeae5;
}
.jl-base { position: absolute; width: 100%; height: 100%; display: block; }
.jl-route-info { margin:5px 0 0; color:#2349a8; font-size:14px; font-weight:600; }
.jl-marker {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px;
  border: 2px solid white; border-radius: 50%; box-shadow: 0 2px 7px #1a2b493d;
  transform: translate(-50%,-50%); color: white;
}
.jl-home {
  width: 76px; height: 70px; margin: 0; pointer-events: none;
  border: 0; border-radius: 0; box-shadow: none; background: transparent;
  transform: translate(-50%,-92%);
}
.jl-site-scene { display: block; width: 100%; height: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .jl-home[data-handoff="near"] .cleanup-scene[data-phase="cleaning"] .cs-cleaner {
    animation: jl-mascot-arrival .34s ease-out both;
  }
  @keyframes jl-mascot-arrival {
    from { transform: translate(var(--jl-handoff-x, -10px), var(--jl-handoff-y, 0px)); opacity: .55; }
    to { transform: translate(0,0); opacity: 1; }
  }
}
.jl-worker {
  display: block; width: 44px; height: 48px; margin: -48px 0 0 -22px; z-index: 1; pointer-events: none;
  transform: none; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
.jl-credit { z-index: 2; position: absolute; right: 4px; bottom: 3px; padding: 2px 4px; border-radius: 4px; background: #ffffffeb; color: #424242; font: 10px/1.25 sans-serif; text-decoration: none; }
.jl-copy, .jl-reading, .jl-accuracy { margin: 5px 0 0; color: var(--go-muted, #66635f); font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.jl-reading { color: var(--go-ink, #21201f); font-weight: 520; }
.jl-local-error { margin: 6px 0 0; color: var(--go-danger, #a42b23); font-size: 13px; line-height: 1.4; }
.jl-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; margin-top: 4px; color: var(--go-muted, #66635f); font-size: 12px; }
.jl-legend > span::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-inline-end: 5px; border-radius: 50%; background: #24272c; }
.jl-legend > .jl-legend-worker::before {
  width: 15px; height: 15px; border-radius: 5px; vertical-align: -3px;
  background: #204ce8 url('/media/snowman-tile.png') center/cover;
}
.jl-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 10px; }
.jl-controls .jl-toggle, .jl-controls .jl-demo, .jl-controls .jl-directions {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px;
  border: 0; border-radius: 10px; background: var(--go-control-primary, #204ce8); color: #fff; cursor: pointer; text-decoration: none; font: inherit; font-size: 14px;
}
.jl-controls .jl-toggle[aria-pressed="true"] { background: var(--go-surface-secondary, #f5f4f2); color: var(--go-ink, #21201f); }
.jl-controls .jl-directions { background: transparent; color: var(--go-link, #2046c5); padding-inline: 0; }
.jl-controls .jl-demo { background:#eaf0ff; color:#2444a1; }
.jl-controls button:disabled { opacity:.55; cursor:default; }
.job-location :focus-visible { outline: 2px solid var(--go-focus, #2046c5); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .jl-marker { transition: none; } }
.jl-controls .jl-demo[hidden], .jl-controls .jl-directions[hidden] { display:none; }
