.bn-nearby{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:8px 0;color:inherit;font:inherit}.bn-nearby [hidden],.bn-nearby-distance[hidden]{display:none!important}.bn-nearby-options,.bn-nearby-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.bn-nearby button,.bn-nearby select,.bn-nearby-dialog button{font:inherit;color:inherit;background:rgba(128,128,128,.12);border:1px solid rgba(128,128,128,.3);border-radius:10px;padding:8px 12px;min-height:40px;cursor:pointer}.bn-nearby-status{flex-basis:100%;margin:0;font-size:12px;opacity:.8}.bn-nearby-status:empty{display:none}.bn-nearby-distance{position:absolute;left:10px;top:48px;z-index:3;background:#151515e6;color:#fff;padding:5px 8px;border-radius:8px;font-size:12px;pointer-events:none}.bn-nearby-dialog{box-sizing:border-box;width:min(520px,94vw);max-height:90dvh;overflow:auto;background:#161616;color:#f5f5f5;border:1px solid #555;border-radius:18px;padding:22px;font:16px/1.5 system-ui}.bn-nearby-dialog::backdrop{background:#0009}.bn-nearby-dialog h2{margin:0 0 10px}.bn-nearby-dialog>button{margin-top:12px}.bn-nearby-dialog a{color:#e2b857;font-size:12px}.bn-nearby-dialog button:disabled{opacity:.45;cursor:default}.bn-nearby-map{position:relative;overflow:hidden;width:100%;height:260px;background:#333;touch-action:none;margin-top:12px;border-radius:10px;cursor:crosshair}.bn-nearby-map img{position:absolute;width:256px!important;height:256px!important;max-width:none!important;pointer-events:none}.bn-nearby-marker{position:absolute;color:#f34b4b;font-size:30px;line-height:1;transform:translate(-50%,-50%);text-shadow:0 0 3px white;pointer-events:none}.bn-nearby :focus-visible,.bn-nearby-dialog :focus-visible{outline:2px solid #e2b857;outline-offset:3px}@media(max-width:600px){.bn-nearby{gap:8px}.bn-nearby button{font-size:12px}.bn-nearby-dialog{padding:16px}}


/* Fixed two-column Guide header compatibility (desktop and phone). */
body:has(.home-screen-guide) .home-guide-type-row .bn-guide-switch-pair{
  grid-column:2!important;justify-self:end!important;display:flex;align-items:center;
  gap:6px;min-width:0;position:relative;z-index:45
}
body:has(.home-screen-guide) .home-guide-type-row .bn-guide-switch-pair > .home-guide-option-switch{
  grid-column:auto!important;flex:0 0 76px!important;width:76px!important;
  min-width:76px!important;max-width:76px!important
}
body:has(.home-screen-guide) .home-guide-type-row .bn-guide-switch-pair .bn-nearby .home-guide-option-switch{
  grid-column:auto!important;flex:0 0 auto!important;width:auto!important;
  min-width:138px!important;max-width:none!important;justify-content:flex-end!important
}
body:has(.home-screen-guide) .home-guide-filter-types{overflow:visible!important}
.bn-guide-switch-pair .bn-nearby{position:relative;flex:0 0 auto;padding:0;gap:4px;z-index:45}
.bn-guide-switch-pair .bn-nearby .bn-nearby-settings{
  padding:0 8px!important;min-height:28px!important;height:28px;border-radius:8px!important
}
.bn-nearby-panel{
  box-sizing:border-box;position:absolute;top:calc(100% + 8px);right:0;
  width:min(365px,calc(100vw - 20px));max-height:min(52dvh,320px);overflow:auto;
  padding:12px;background:#191919;border:1px solid rgba(255,255,255,.24);
  border-radius:12px;box-shadow:0 16px 42px rgba(0,0,0,.5);
  z-index:60;display:flex;flex-direction:column;gap:9px
}
.bn-nearby-panel .bn-nearby-options,.bn-nearby-panel .bn-nearby-tools{
  display:flex;flex-wrap:wrap;gap:7px
}
.bn-nearby-panel .bn-nearby-status{flex-basis:auto;line-height:1.45}
.bn-nearby-panel button,.bn-nearby-panel select{min-height:34px;padding:6px 9px}
@media(max-width:600px){
  body:has(.home-screen-guide) .home-guide-type-row .bn-guide-switch-pair{gap:3px}
  body:has(.home-screen-guide) .home-guide-type-row .bn-guide-switch-pair .bn-nearby .home-guide-option-switch{
    min-width:120px!important;font-size:9px!important;letter-spacing:0!important
  }
  .bn-nearby-panel{max-height:42dvh}
}

/* Live Guide overlay should stack above the cards, not modify the header grid. */
.home-screen-guide .home-guide-filter-shell{position:relative;z-index:30}
.home-screen-guide .home-guide-carousel{position:relative;z-index:1}
