/* C14: map fits the same Passport header/footer shell, without a Squarespace layer. */
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > header {display:block!important;padding-top:max(8px,env(safe-area-inset-top))!important;}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active .section-switcher {display:flex!important;}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > .v235-support-dock,
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > .core-values-bottom,
html.buggy-v235-pwa-shell #buggy-passport-app.map-active #buggyCopyrightNotice {visibility:visible!important;}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > main {overflow:hidden!important;scrollbar-gutter:auto!important;}
html.buggy-v235-pwa-shell #buggy-passport-app #map.map-screen {position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;padding:0!important;background:#fffdf7!important;z-index:1!important;}
html.buggy-v235-pwa-shell #buggy-passport-app #map.map-screen.active {display:flex!important;flex-direction:column!important;}
html.buggy-v235-pwa-shell #buggy-passport-app #map > .screen-support-footer {display:none!important;}
html.buggy-v235-pwa-shell #buggy-passport-app #map .buggy-map-embed {position:relative!important;inset:auto!important;flex:1;min-height:0!important;height:auto!important;overflow:hidden!important;}
#buggy-passport-app .zone-map-toolbar {display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 12px;background:#fffdf7;flex:none;}
#buggy-passport-app .zone-map-toolbar button {min-height:36px;padding:4px 10px;border-radius:16px;background:#FEBD3B;color:#041E42;border:0;font:14px/1.2 'Permanent Marker',sans-serif;}
#buggy-passport-app .zone-map-toolbar b {font:12px/1.2 'Courier Prime',monospace;color:#041E42;}
#buggy-passport-app .zone-map-notice {position:absolute;z-index:3;top:90px;left:12px;right:12px;padding:16px;border:2px solid #FEBD3B;border-radius:18px;background:#fffdf7;color:#041E42;box-shadow:0 4px 20px #041e4222;font:14px/1.4 'Courier Prime',monospace;}
#buggy-passport-app .zone-map-notice[hidden],#buggy-passport-app .zone-map-actions[hidden] {display:none!important;}
#buggy-passport-app .zone-map-actions {display:flex;gap:12px;align-items:center;flex-wrap:wrap;}
#buggy-passport-app .zone-map-actions button {background:#FEBD3B;border:0;border-radius:14px;padding:10px;color:#041E42;}
#buggy-passport-app .zone-map-actions a {color:#041E42;}

/* C62: Map fills the viewport; only Map mode overrides the shared shell. */
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone {
  width:100%!important;max-width:none!important;display:block!important;background:transparent!important;
}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > main {
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  max-height:none!important;margin:0!important;padding:0!important;overflow:hidden!important;scrollbar-gutter:auto!important;
}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > header {
  display:block!important;position:absolute!important;top:0!important;left:50%!important;
  right:auto!important;bottom:auto!important;transform:translateX(-50%)!important;
  width:min(470px,100%)!important;margin:0!important;padding:max(8px,env(safe-area-inset-top)) 10px 8px!important;
  z-index:220!important;background:transparent!important;backdrop-filter:none!important;pointer-events:none;
}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > header .lock > * {pointer-events:auto;}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active .section-switcher {display:flex!important;}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > .v235-support-dock {
  visibility:visible!important;position:absolute!important;left:50%!important;right:auto!important;top:auto!important;
  bottom:calc(48px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;
  width:min(430px,calc(100% - 24px))!important;margin:0!important;z-index:35!important;
  border:1px solid #041e4226!important;border-radius:14px!important;background:#fffdf7ed!important;
}
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > .core-values-top,
html.buggy-v235-pwa-shell #buggy-passport-app.map-active > .phone > .core-values-bottom,
html.buggy-v235-pwa-shell #buggy-passport-app.map-active #buggyCopyrightNotice {display:none!important;}
html.buggy-v235-pwa-shell #buggy-passport-app #map.map-screen {
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
  min-height:0!important;margin:0!important;padding:0!important;background:#8ecbd2!important;z-index:1!important;
}
html.buggy-v235-pwa-shell #buggy-passport-app #map.map-screen.active {display:block!important;}
html.buggy-v235-pwa-shell #buggy-passport-app #map > .screen-support-footer {display:none!important;}
html.buggy-v235-pwa-shell #buggy-passport-app #map .buggy-map-embed {
  position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow:hidden!important;
}
#buggy-passport-app #map iframe {display:block;width:100%!important;height:100%!important;border:0;}
#buggy-passport-app .zone-map-notice {top:110px;max-width:470px;margin:auto;}
#buggyMapStudioButton{position:absolute;z-index:29;top:90px;right:12px;min-height:40px;padding:8px 14px;border:1px solid #041e42;border-radius:14px;background:#febd3b;color:#041e42;font:15px 'Permanent Marker',sans-serif;}
#buggyMapStudioButton[hidden]{display:none!important;}
