/* Scoped to listing photos and their expanded viewer. */
.listing-slideshow{position:relative;isolation:isolate;background:#090a0a;overflow:hidden;touch-action:pan-y;outline-offset:4px}
.listing-slideshow.listing-cover{aspect-ratio:16/10;border:1px solid var(--line)}
.listing-slideshow .listing-slide{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#090a0a}
.listing-slideshow .listing-slide[hidden],.listing-slideshow [hidden]{display:none!important}
.listing-slideshow .listing-slide-photo{display:block;width:100%;height:100%;cursor:zoom-in}
.listing-slideshow .listing-slide img{display:block;width:100%;height:100%;object-fit:cover;border:0;user-select:none}
.listing-slideshow .listing-expand-hint{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:30px;height:30px;background:rgba(10,12,11,.8);border-radius:50%;color:#fff;font-size:22px;line-height:1}
.listing-slideshow .listing-slide-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:2;display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.65);border-radius:50%;padding:0;background:rgba(10,12,11,.82);color:#fff;font:32px/1 Arial,sans-serif;cursor:pointer;box-shadow:0 1px 8px #0005}
.listing-slideshow .listing-slide-prev{left:10px}
.listing-slideshow .listing-slide-next{right:10px}
.listing-slideshow .listing-slide-arrow:hover{background:#262c29;border-color:var(--gold,#c7ad74)}
.listing-slideshow a:focus-visible,.listing-slideshow button:focus-visible,.listing-photo-dialog button:focus-visible{outline:3px solid var(--gold2,#d8c48f);outline-offset:3px}
.listing-slideshow .listing-slide-status{position:absolute;z-index:2;bottom:12px;left:12px;max-width:calc(100% - 65px);border-radius:3px;padding:4px 9px;background:rgba(10,12,11,.85);color:#fff;font:12px/1.5 "DM Sans",Arial,sans-serif;pointer-events:none}
.listing-slideshow .cms-video{width:100%;height:100%;margin:0;border:0;aspect-ratio:auto}
.listing-slideshow .cms-video video,.listing-slideshow .cms-video iframe{width:100%;height:100%;border:0;object-fit:contain}
.listing-slideshow .listing-slide[data-slide-kind="video"]>p{padding:50px;text-align:center}
.listing-slideshow[data-active-kind="video"] .listing-slide-status{top:10px;bottom:auto;left:50%;transform:translateX(-50%);white-space:nowrap;max-width:calc(100% - 20px)}
.listing-slideshow .listing-tour-external{position:absolute;top:10px;left:50%;transform:translateX(-50%);padding:6px 10px;max-width:calc(100% - 20px);background:rgba(10,12,11,.9);border:1px solid var(--gold,#c7ad74);border-radius:3px;color:#fff;font-size:11px;line-height:1.5;white-space:nowrap}
.listing-photo-dialog{position:fixed;inset:0;margin:auto;padding:54px 12px 12px;border:1px solid #383e3a;width:96vw;max-width:1500px;height:94dvh;max-height:94dvh;background:#090a0a;color:#fff;overflow:hidden}
.listing-photo-dialog::backdrop{background:rgba(0,0,0,.92)}
.listing-photo-dialog .listing-photo-close{position:absolute;right:12px;top:8px;width:40px;height:40px;border:1px solid #777;border-radius:50%;background:#171918;color:#fff;font:28px/1 Arial,sans-serif;cursor:pointer}
.listing-photo-dialog .listing-slideshow{width:100%;height:100%;margin:0;aspect-ratio:auto;border:0}
.listing-photo-dialog .listing-slide img{object-fit:contain}
.listing-photo-dialog .listing-slide-photo{cursor:default}
.listing-photo-dialog .listing-slide-photo{overflow:hidden;touch-action:none}
.listing-photo-dialog .listing-slide img{will-change:transform;max-width:none}
.listing-photo-dialog.listing-is-zoomed .listing-slide-photo,.listing-photo-dialog .listing-is-zoomed .listing-slide-photo{cursor:grab}
.listing-photo-tools{position:absolute;left:10px;top:6px;display:flex;align-items:center;gap:4px;z-index:4}
.listing-photo-tools[hidden]{display:none}
.listing-photo-tools button{min-width:44px;height:44px;padding:0 8px;border:1px solid #777;border-radius:5px;background:#171918;color:#fff;font:20px/1 Arial,sans-serif;cursor:pointer}
.listing-photo-tools button[aria-label="Fit photo"]{font-size:14px}.listing-photo-tools button:disabled{opacity:.5;cursor:default}
.listing-zoom-status{font:12px/1.2 Arial,sans-serif;max-width:85px;padding-left:5px;color:#fff}
.listing-photo-dialog .listing-photo-close{width:44px;height:44px;top:6px}
.listing-slideshow[data-loading="true"]::after{content:'Loading photo…';position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:9px 14px;background:#090a0acc;color:#fff;border-radius:5px;font:13px Arial,sans-serif;pointer-events:none;z-index:3}
.listing-photo-dialog .listing-expand-hint{display:none}
.listing-detail .listing-gallery img{cursor:zoom-in}
@media(max-width:620px){.listing-photo-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;padding:54px 0 8px}.listing-slideshow .listing-slide-arrow{width:44px;height:44px}.listing-photo-dialog .listing-slide-prev{left:6px}.listing-photo-dialog .listing-slide-next{right:6px}}
