/* Zoomable image (shared by the room viewer and the pets dialog). */
.mst-pz-img { touch-action: none; cursor: zoom-in; will-change: transform; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mst-pz-img.is-zoomed { cursor: grab; border-radius: 0 !important; }
.mst-pz-img.is-zoomed:active { cursor: grabbing; }

/* Fullscreen viewer. */
html.mst-pz-lock { overflow: hidden; }
.mst-pz { border: 0; padding: 0; margin: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; background: transparent; color: #fff; }
.mst-pz[open] { display: flex; flex-direction: column; }
.mst-pz::backdrop { background: rgba(13, 18, 54, .94); }
.mst-pz__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px; overflow: hidden; }
.mst-pz__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; display: block; }
.mst-pz .mst-pz__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .9); color: #0D1236; font-size: 30px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.mst-pz .mst-pz__nav:hover, .mst-pz .mst-pz__nav:focus { background: #fff; color: #0D1236; }
.mst-pz__nav--prev { left: 16px; }
.mst-pz__nav--next { right: 16px; }
.mst-pz.is-single .mst-pz__nav, .mst-pz.is-single .mst-pz__count { display: none; }
@media (hover: none) { .mst-pz .mst-pz__nav { display: none; } }
.mst-pz__bar { background: #0D1236; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 16px; padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
.mst-pz__count { font-variant-numeric: tabular-nums; opacity: .85; }
.mst-pz__hint { opacity: .7; font-size: 13px; }
.mst-pz .mst-pz__close { min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.mst-pz .mst-pz__close:hover, .mst-pz .mst-pz__close:focus { background: rgba(255, 255, 255, .12); color: #fff; }
.mst-pz button:focus-visible { outline: 2px solid #FFB547; outline-offset: 2px; }

/* "Enlarge" button on room sliders. */
.mst-pz-open { position: absolute; top: 14px; left: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: 600 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; cursor: pointer; }
.mst-pz-open:hover, .mst-pz-open:focus { background: rgba(0, 0, 0, .6); color: #fff; }
.mst-pz-open svg { width: 18px; height: 18px; flex: none; }
.mst-pz-zoomable img { cursor: zoom-in; }
