/* Reserve flow space only while the desktop map is open. */
html[data-map-changing] { overflow-anchor: none; }
.map-morph-slot { width: 100%; flex: none; order: 2; pointer-events: none; }
.map-morph-slot[hidden] { display: none !important; }
.map-morph-layer { position: absolute; inset: 0 0 auto; height: 0; z-index: 40; pointer-events: none; }
.map-morph-surface { position: absolute; overflow: visible; color: #383838; opacity: 0; pointer-events: none; }
.map-morph-surface[data-visible="true"] { opacity: 1; }
.map-morph-shell { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; transform-origin: 0 0; pointer-events: none; z-index: 2; }
.map-morph-shell rect { fill: none; stroke: #383838; stroke-width: 1; vector-effect: non-scaling-stroke; }
.map-morph-content { position: relative; height: 100%; border-radius: 6px; overflow: hidden; background: white; transform-origin: 0 0; transform: translate3d(0,0,0) scale(1,1); will-change: transform; }
.map-morph-surface[data-visible="true"]:not([inert]) .map-morph-content { pointer-events: auto; }
.map-morph-body { height: calc(100% - 44px); position: relative; will-change: opacity; }
.map-morph-body iframe { display: block; position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-morph-close {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border: 1px solid #38383820; border-radius: 50%; background: #ffffffed;
  box-shadow: 0 2px 6px #00000012; color: #383838; cursor: pointer;
}
.map-morph-close:hover { background: white; color: #800020; }
.map-morph-close[hidden] { display: none !important; }
.map-morph-loading {
  position: absolute; inset: 0; display: grid; place-content: center; background: #f8f6f2;
  font: 400 14px/1.6 var(--inv-font-body); pointer-events: none;
  transition: opacity 150ms ease-out, visibility 150ms;
}
.map-morph-body[data-loaded="true"] .map-morph-loading { opacity: 0; visibility: hidden; }
.map-morph-ghost {
  position: absolute; display: flex; align-items: center; justify-content: center; gap: 8px;
  color: #383838; font: 400 14px/1.5 var(--inv-font-body); pointer-events: none; z-index: 5;
}
.map-morph-layer :focus-visible { outline: 2px solid #800020; outline-offset: -4px; }
#venue a[data-map-consumed="true"] { visibility: hidden; }
@media (min-width: 810px) and (hover: hover) and (pointer: fine) {
  #venue .framer-akcuki-container { order: 1; }
}
@media (max-width: 809px), (hover: none), (pointer: coarse) {
  .map-morph-layer, .map-morph-slot { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .map-morph-loading { transition: none; } }

.map-morph-external {
  display: flex; align-items: center; justify-content: center; min-height: 44px;
  color: #383838; background: white; text-decoration: underline; text-underline-offset: 3px;
  font: 400 14px/1.5 var(--inv-font-body);
}

/* Single-venue guest maps stay open at every breakpoint. */
#venue .map-single-slot:not([hidden]) { display:block !important; pointer-events:auto; }
#venue .inv-family-map[hidden], #venue .framer-akcuki-container a[hidden] { display:none !important; }
#venue .framer-akcuki-container:has(a[hidden]) { display:none !important; }
.map-single { width:100%; overflow:hidden; border:1px solid #38383820; border-radius:6px; background:#f8f6f2; }
.map-single iframe { display:block; width:100%; height:clamp(320px, 38vw, 440px); border:0; }
.map-single :focus-visible { outline:2px solid #800020; outline-offset:-4px; }
