/* Tresidder Map styles — copied verbatim from the locked phase2 design. Do not restyle. */
*{box-sizing:border-box}body{margin:0;background:#edf1f6;color:#162338;font:14px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}main{max-width:390px;margin:auto;background:white;min-height:100vh}header{padding:20px 20px 14px;border-bottom:1px solid #e1e7ef}.top{display:flex;justify-content:space-between;align-items:center}small{font-size:10px;letter-spacing:1.5px;font-weight:750;color:#52627b}.qr{font-size:12px;font-weight:750;background:#eef3fa;padding:8px 12px;border-radius:20px}h1{font-size:26px;letter-spacing:-.8px;margin:8px 0 12px}.selected{font-size:16px;font-weight:700;color:#125bdc;min-height:22px}.hint{color:#52627b;font-size:12px;margin:6px 0 12px}.tabs{display:flex;gap:8px}button{font:inherit;cursor:pointer}button:focus-visible,[tabindex]:focus-visible{outline:3px solid #162338;outline-offset:2px}.tabs button{flex:1;min-height:44px;border:1px solid #c7d3e3;border-radius:8px;background:white;color:#52627b;font-weight:650;font-size:13px}.tabs button[aria-pressed=true]{background:#125bdc;border-color:#125bdc;color:white}.map{position:relative}.map svg{display:block;width:100%;height:auto}.route{fill:none;stroke:#125bdc;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 8;animation:trail 1.2s linear infinite;pointer-events:none}.halo{fill:none;stroke:white;stroke-width:7;opacity:.9;pointer-events:none}@keyframes trail{to{stroke-dashoffset:-18}}.room{fill:transparent;stroke:transparent;cursor:pointer}.room:focus,.room:hover{fill:#125bdc18;stroke:#125bdc;stroke-width:2;outline:none}.area{position:absolute;width:44px;height:44px;transform:translate(-50%,-50%);padding:0;border:0;background:transparent;border-radius:50%}.area span{display:grid;place-items:center;margin:auto;width:26px;height:26px;border:1.5px solid #125bdc;background:white;color:#125bdc;box-shadow:0 2px 5px #16233824;border-radius:50% 50% 50% 5px;transform:rotate(-45deg);font-size:16px;font-weight:700;line-height:1}.status{padding:12px 20px;color:#52627b;font-size:12px}.legend{padding:10px 20px;display:flex;align-items:center;gap:8px;font-size:12px;color:#52627b;border-top:1px solid #e1e7ef}.legend svg{width:20px;height:26px}footer{padding:8px 20px 16px;font-size:10px;color:#66758a}@media(prefers-reduced-motion:reduce){.route{animation:none}}
.destination-label{display:block;font-size:12px;font-weight:700;margin:4px 0 6px;color:#52627b}
select{width:100%;min-height:48px;padding:10px 32px 10px 12px;border:1px solid #aebed3;border-radius:8px;background:#fff;color:#162338;font:600 15px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}select:focus-visible{outline:3px solid #125bdc;outline-offset:2px}
.transfer{margin:12px 16px 0;padding:14px;background:#eaf1ff;border:1px solid #b7cff8;border-radius:10px}.transfer-heading{display:flex;gap:10px;align-items:center}.transfer-heading svg{flex:none;width:28px;height:28px}.transfer strong{font-size:16px;line-height:1.35}.transfer button{display:block;width:100%;min-height:44px;background:#125bdc;color:white;border:0;border-radius:6px;margin-top:12px;font-weight:700}.transfer .back{background:white;color:#125bdc;border:1px solid #b7cff8}.leg{font-size:11px;color:#52627b;margin-bottom:4px;font-weight:600}

/* Friendly origin marker only; all D5 map/layout/routing retained. */
.you-halo{opacity:.22;animation:you-pulse 2.6s ease-in-out infinite;transform-box:fill-box;transform-origin:center}
@keyframes you-pulse{0%,100%{opacity:.16;transform:scale(.94)}50%{opacity:.32;transform:scale(1.12)}}
@media(prefers-reduced-motion:reduce){.you-halo{animation:none;opacity:.22}}

/* Provider branding only; approved map and marker styling unchanged. */
.top small{font-size:18px;letter-spacing:-.5px;color:#162338;font-weight:750}h1{margin-bottom:4px}.provider{font-size:12px;color:#52627b}.store-address{font-size:11px;color:#52627b;margin:5px 0 14px;line-height:1.4}select.our-store{background:#eaf1ff;border-color:#125bdc;color:#125bdc}footer{font-size:11px;line-height:1.5;color:#52627b}.disclaimer{font-size:10px;margin-top:4px}
.area span{width:16px;height:16px;font-size:9px;border-radius:50% 50% 50% 3px;box-shadow:0 1px 3px #16233824}
/* Language toggle only; existing header geometry retained. */
header{position:relative}.language{position:absolute;right:78px;top:14px;display:flex;align-items:center;font-size:11px;color:#52627b}.language button{width:44px;height:44px;padding:0;border:0;background:transparent;color:#52627b;font-size:11px}.language button[aria-pressed=true]{color:#125bdc;font-weight:750;text-decoration:underline;text-underline-offset:3px}

/* Blue dots set the start (no popover): hide the dot under the You marker; chip shows a blue dot. */
.area[aria-current=true] span,.area[data-under-you=true] span{opacity:0}
.map svg.you-layer{position:absolute;left:0;top:0;width:100%;height:100%;pointer-events:none;overflow:visible}.qr.pin-origin{color:#125bdc}


/* ===== Compact layout (owner's pick "B", Nov 19 2026: less scrolling on phones; wider on computers) =====
   Header = title row (title · EN/ES · QR chip), one-line subtitle, picker + floor buttons on one row.
   The stairs/elevator step is a slim bar under the map. The hint floats on the map and fades away.
   On phones the map is sized so the whole floor + the step bar fit on one screen. */
header{padding:12px 14px 10px}
.top{gap:6px}.top h1{flex:1;font-size:21px;letter-spacing:-.5px;margin:0}
header .language{position:static}.language button{width:30px;height:36px}
.sub{font-size:11px;color:#52627b;margin:1px 0 8px;line-height:1.35}
.pick{display:grid;grid-template-columns:1fr auto;gap:4px 6px;align-items:center}
.pick .destination-label{grid-column:1/-1;margin:0;font-size:11px}
.pick select{min-height:42px;font-size:14px;padding:8px 28px 8px 10px}
.tabs{gap:3px;background:#eef3fa;border-radius:9px;padding:3px}
.tabs button{flex:none;min-height:36px;padding:0 9px;border:0;border-radius:7px;background:transparent;font-size:12px}
.tabs button[aria-pressed=true]{background:#125bdc;color:#fff}
.map-hint{position:absolute;left:50%;top:13%;transform:translateX(-50%);max-width:92%;background:#162338e6;color:#fff;font-size:11px;
  padding:6px 10px;border-radius:14px;text-align:center;z-index:3;pointer-events:none}
.transfer{display:flex;align-items:center;gap:8px;margin:6px 10px 0;padding:8px 8px 8px 10px;border-radius:12px}
.transfer>svg{flex:none;width:24px;height:24px}
.transfer strong{flex:1;font-size:13px;line-height:1.25}
.transfer .leg{display:block;font-size:10px;margin:0 0 1px;letter-spacing:.5px}
.transfer button{width:auto;min-height:40px;margin:0;padding:0 12px;border-radius:8px;white-space:nowrap}
footer{padding:12px 14px 18px}
@media (max-width:899px){
  /* Whole floor + step bar on one screen: fitMap() in tresidder-app.js sets the map's width. */
  .map{margin:0 auto}
}

/* Computers: controls in a left column, the whole floor on the right, fitted to the window height. */
@media (min-width:900px){
  body{min-height:100vh}
  main{max-width:1180px;min-height:100vh;display:grid;grid-template-columns:400px 1fr;grid-template-rows:auto auto 1fr;
    box-shadow:0 10px 40px -20px #16233840}
  main>header,main>.transfer,main>footer{grid-column:1}
  main>header{padding:28px 28px 20px}
  .top h1{font-size:30px}.sub{font-size:12px;margin:4px 0 18px}
  .pick{grid-template-columns:1fr;gap:8px}.pick .destination-label{font-size:12px}
  .pick select{min-height:48px;font-size:15px}
  .tabs button{flex:1;min-height:42px;font-size:13px}
  main>.transfer{margin:6px 28px 0;padding:12px}
  main>.transfer strong{font-size:15px}
  main>footer{align-self:end;padding:16px 28px 24px}
  main>.map{grid-column:2;grid-row:1/-1;align-self:center;justify-self:center;
    width:min(100% - 56px,calc((100vh - 48px)*540/820));margin:24px 0}
  main::before{content:'';grid-column:2;grid-row:1/-1;background:#f4f7fb;border-left:1px solid #e1e7ef}
}
