/* Search opens from the top; detail and route sheets keep their own positions. */
#panel:not(.bottom-sheet):not(.route-mode) {
  top:env(safe-area-inset-top, 0px);
  bottom:auto;
  left:0;
  right:0;
  width:min(920px, 100%);
  margin:0 auto;
  transform:none;
  max-height:calc(100dvh - env(safe-area-inset-top, 0px) - 150px);
}
#panel:not(.bottom-sheet):not(.route-mode) #topControls {
  order:0;
  flex-shrink:0;
  padding:14px 18px 16px;
  border-top:0;
  border-bottom:1px solid #d8dce4;
  border-radius:0 0 20px 20px;
  box-shadow:0 12px 36px rgba(15,23,42,.14);
}
#panel:not(.bottom-sheet):not(.route-mode) #panelBody {
  min-height:0;
  border:1px solid #e3e6ec;
  border-radius:0 0 20px 20px;
  box-shadow:0 16px 36px rgba(15,23,42,.14);
}
#panel:not(.bottom-sheet):not(.route-mode) #dropdown {
  top:calc(100% + 4px);
  bottom:auto;
  max-height:min(320px, 35dvh);
}
#panel:not(.bottom-sheet):not(.route-mode) .bottomNav {
  position:fixed;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  width:min(920px, 100vw);
  margin:0;
  padding-bottom:env(safe-area-inset-bottom, 0px);
  box-shadow:0 -8px 24px #0f172a14;
}
#categoryQrButton {
  top:auto;
  bottom:calc(env(safe-area-inset-bottom, 0px) + 94px);
}
.mapboxgl-ctrl-bottom-right,
.mapboxgl-ctrl-bottom-left { bottom:86px; }
@media (max-width:1050px) {
  .floorCtl {
    position:fixed;
    top:auto;
    bottom:calc(env(safe-area-inset-bottom, 0px) + 160px);
    right:14px;
  }
}
@media (max-width:768px) {
  #panel:not(.bottom-sheet):not(.route-mode) #topControls { padding:12px 16px 14px; }
  #categoryQrButton { bottom:calc(env(safe-area-inset-bottom, 0px) + 86px); }
}
#eventGuideDialog {
  width:min(1200px, 96vw);
  height:92dvh;
  max-width:96vw;
  max-height:92dvh;
  padding:0;
  border:0;
  border-radius:20px;
  background:#fff;
  color:#242936;
  overflow:hidden;
}
#eventGuideDialog[open] { display:flex; flex-direction:column; }
#eventGuideDialog::backdrop { background:rgba(9,18,35,.65); }
.eventGuideHeader {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 20px;
  border-bottom:1px solid #e3e6ec;
  flex-shrink:0;
}
.eventGuideHeader h2 { margin:0; font-size:24px; }
.eventGuideHeader button {
  min-height:48px;
  padding:10px 24px;
  border:0;
  border-radius:12px;
  background:#1f2636;
  color:#fff;
  font:inherit;
  font-weight:700;
  cursor:pointer;
}
.eventGuideContent { flex:1; min-height:0; overflow:auto; overscroll-behavior:contain; }
.eventGuideContent img { display:block; width:100%; height:auto; }
