/* Rental photo controls remain inside the existing listing; fullscreen uses a
   separate native dialog so the listing and map retain their scroll position. */
.onto-photo-gallery-main{isolation:isolate}
.onto-photo-gallery-main #gallery-image{width:100%;display:block}
.onto-photo-gallery-main .gallery-caption{z-index:2;pointer-events:none;right:auto;max-width:calc(100% - 150px)}
.onto-gallery-open{position:absolute;inset:0;z-index:1;border:0;background:transparent;padding:0;cursor:zoom-in;border-radius:inherit}
.onto-gallery-open:focus-visible{outline:3px solid #fff;outline-offset:-5px;box-shadow:inset 0 0 0 7px var(--teal,#ba2438)}
.onto-gallery-expand-label{position:absolute;right:12px;bottom:12px;min-height:36px;padding:7px 12px;background:#fff;color:#25282b;border:1px solid #d8dadd;border-radius:6px;font-size:14px;font-weight:600;line-height:20px;box-shadow:0 2px 10px #0002}
.onto-gallery-step,.onto-photo-viewer-control,.onto-photo-viewer-close{display:grid;place-items:center;padding:10px;width:46px;height:46px;min-width:46px;min-height:46px;border:1px solid #d8dadd;border-radius:50%;background:#fff;color:#24272b;cursor:pointer;touch-action:manipulation}
.onto-gallery-step svg,.onto-photo-viewer-control svg,.onto-photo-viewer-close svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.onto-gallery-step{position:absolute;top:calc(50% - 23px);z-index:3;box-shadow:0 2px 10px #0002}
.onto-gallery-step.onto-photo-previous{left:12px}.onto-gallery-step.onto-photo-next{right:12px}
.onto-gallery-step:hover,.onto-photo-viewer-control:hover,.onto-photo-viewer-close:hover{background:#f2f3f4}
.onto-photo-gallery .gallery-thumbs button{flex-shrink:0;min-height:85px;touch-action:manipulation}
.onto-photo-gallery .gallery-thumbs button:focus-visible{outline:3px solid var(--teal,#ba2438);outline-offset:-3px;opacity:1}
.onto-photo-gallery-main{touch-action:pan-y pinch-zoom}
.onto-photo-viewer{position:fixed;inset:0;width:100%;max-width:none;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0;padding:0;overflow:hidden;background:#161719;color:#fff;box-shadow:none}
.onto-photo-viewer[open]{display:flex;flex-direction:column}
.onto-photo-viewer::backdrop{background:#161719;backdrop-filter:none}
.onto-photo-viewer-header{display:flex;align-items:center;gap:20px;min-height:80px;flex:0 0 auto;padding:max(14px,env(safe-area-inset-top)) max(22px,env(safe-area-inset-right)) 14px max(22px,env(safe-area-inset-left));border-bottom:1px solid #ffffff26}
.onto-photo-viewer-title{font-size:18px;line-height:1.4;font-weight:600;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;color:inherit}
.onto-photo-viewer-count{font-size:16px;line-height:1.5;white-space:nowrap;font-variant-numeric:tabular-nums}
.onto-photo-viewer-close{flex-shrink:0}
.onto-photo-viewer-stage{position:relative;display:grid;place-items:center;flex:1;min-height:0;padding:18px 80px max(18px,env(safe-area-inset-bottom));touch-action:pan-y pinch-zoom}
.onto-photo-viewer-image{display:block;width:100%;height:100%;min-height:0;max-width:100%;max-height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.onto-photo-viewer-control{position:absolute;top:calc(50% - 23px);z-index:2}
.onto-photo-viewer-control.onto-photo-previous{left:18px}.onto-photo-viewer-control.onto-photo-next{right:18px}
.onto-photo-viewer-feedback{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;justify-items:center;gap:12px;max-width:calc(100% - 140px);pointer-events:none}
.onto-photo-viewer-status{font-size:16px;line-height:1.5;text-align:center;background:#161719e8;border-radius:6px;padding:10px 15px;margin:0}
.onto-photo-viewer-retry{pointer-events:auto;background:#fff;color:#24272b;border:1px solid #d8dadd;border-radius:6px;font-size:16px;min-height:44px;padding:8px 16px}
.onto-photo-viewer button:focus-visible{outline:3px solid #69b9ff;outline-offset:4px}
.onto-photo-viewer [hidden],.onto-photo-gallery [hidden]{display:none!important}
@media(max-width:1000px) and (min-width:681px){.onto-photo-gallery{max-height:none;grid-template-columns:1fr 120px}.onto-photo-gallery .gallery-main{height:clamp(220px,42dvh,340px)}.onto-photo-gallery .gallery-thumbs{max-height:clamp(220px,42dvh,340px)}}
@media(max-width:680px){.onto-photo-gallery .gallery-main{height:clamp(190px,34dvh,300px)}.onto-photo-gallery .gallery-thumbs{height:64px;max-height:64px}.onto-photo-gallery .gallery-thumbs button{min-height:64px;height:64px;flex:0 0 85px}.onto-gallery-expand-label{right:10px;bottom:10px;font-size:14px}.onto-photo-gallery-main .gallery-caption{left:10px;bottom:10px;max-width:calc(100% - 145px)}.onto-gallery-step.onto-photo-previous{left:10px}.onto-gallery-step.onto-photo-next{right:10px}.onto-photo-viewer-header{gap:12px;min-height:72px;padding-inline:14px}.onto-photo-viewer-title{font-size:16px}.onto-photo-viewer-count{font-size:14px}.onto-photo-viewer-stage{padding:8px 8px max(70px,env(safe-area-inset-bottom))}.onto-photo-viewer-control{top:auto;bottom:max(12px,env(safe-area-inset-bottom))}.onto-photo-viewer-control.onto-photo-previous{left:calc(50% - 60px)}.onto-photo-viewer-control.onto-photo-next{right:calc(50% - 60px)}.onto-photo-viewer-feedback{max-width:calc(100% - 32px);width:max-content}}
@media(max-height:480px) and (min-width:681px){.onto-photo-gallery .gallery-main{height:200px}.onto-photo-gallery .gallery-thumbs{max-height:200px}.onto-photo-viewer-header{min-height:58px;padding-block:6px}.onto-photo-viewer-stage{padding-block:8px}}
