/* Photos scroll inside the card; titles and detail links remain separate. */
.listing-photo-gallery{position:relative;display:block;overflow:hidden;isolation:isolate;min-width:0;background:#eceff1}
.listing-photo-gallery .listing-photo-track{display:flex;width:100%;height:100%;min-width:0;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y pinch-zoom}
.listing-photo-track::-webkit-scrollbar{display:none}
.listing-photo-track:focus-visible{outline:3px solid #ff7024;outline-offset:-3px}
.listing-photo-slide{position:relative;flex:0 0 100%;width:100%;height:100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:grid;place-items:center;overflow:hidden}
.listing-photo-gallery .listing-photo-slide img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;transform:none!important;transition:none!important;user-select:none;-webkit-user-drag:none}
.listing-photo-gallery .listing-photo-slide img[hidden]{display:none}
.listing-photo-gallery .listing-purpose{z-index:2;pointer-events:none}
.listing-photo-controls{position:absolute;inset:0;pointer-events:none;display:none}
.listing-photo-gallery[data-gallery-ready] .listing-photo-controls{display:block}
.listing-photo-gallery .listing-photo-controls button{position:absolute;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:42px;height:42px;min-height:42px;margin:0;padding:0;border:1px solid #ffffffb3;border-radius:50%;background:#fffffff2;color:#25333d;box-shadow:0 3px 14px #14222e2b;pointer-events:auto;cursor:pointer;line-height:1;transition:background .15s,color .15s,opacity .15s}
.listing-photo-gallery .listing-photo-prev{left:12px}
.listing-photo-gallery .listing-photo-next{right:12px}
.listing-photo-controls svg{display:block;width:20px;height:20px;pointer-events:none}
.listing-photo-gallery .listing-photo-controls button:hover:not(:disabled){background:#ff7428;color:#202a30;border-color:#ff7428}
.listing-photo-gallery .listing-photo-controls button:focus-visible{outline:3px solid #ff7428;outline-offset:3px}
.listing-photo-gallery .listing-photo-controls button:disabled{opacity:.35;cursor:default}
.listing-photo-counter{position:absolute;right:12px;bottom:12px;z-index:2;display:block;padding:4px 9px;border-radius:20px;background:#17212bcf;color:#fff;font:600 13px/1.5 var(--sans,Arial,sans-serif);font-variant-numeric:tabular-nums;pointer-events:none;letter-spacing:.03em}
.listing-photo-unavailable-message{padding:20px;text-align:center;color:#64717b;font-size:16px;line-height:1.6}
.listing-management-visual>.listing-management-gallery{height:100%;width:100%}
.public-listing-page .listing-management-visual>.listing-card-select{top:12px;right:12px;bottom:auto;z-index:3}
.listing-detail-gallery{width:100%;height:clamp(260px,45vw,480px)}
.listing-detail-gallery .listing-photo-slide img{object-fit:contain;background:#edf0f2}
.listing-gallery-open-all{display:block;width:100%;min-height:46px;padding:10px 15px;border:1px solid #e0e4e7;background:#fff;color:#26343e;font:600 16px/1.5 var(--sans,Arial,sans-serif);text-align:center;cursor:pointer}
.listing-gallery-open-all:hover{background:#fff0e6;color:#9c4316}
.listing-gallery-open-all:focus-visible{outline:3px solid #ff7428;outline-offset:2px}
@media(hover:none) and (pointer:coarse){.listing-photo-gallery[data-gallery-ready] .listing-photo-controls{display:none}}
@media(prefers-reduced-motion:reduce){.listing-photo-gallery .listing-photo-controls button{transition:none}}
