/* Public rentals: single maintained stylesheet, light Sion palette. */
body.public-rentals{background:#faf8f2;color:#332f29;color-scheme:light}
.public-rentals .rentals-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#fff;border:1px solid #e6dfd3;border-radius:12px;padding:16px}
.public-rentals .rentals-logo{max-width:210px;max-height:100px;object-fit:contain}
.public-rentals .rental-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;background:#fff;padding:14px;margin:14px 0;border:1px solid #e6dfd3;border-radius:10px;color:#332f29}
.public-rentals .rental-tools label{font-weight:600;color:#332f29}
.public-rentals #zip-search{display:block;width:100%;max-width:360px;margin-top:5px;background:#fff;color:#332f29;border:1px solid #cfc8ba;border-radius:6px;padding:9px}
.public-rentals .view-switch{display:flex;gap:5px;justify-self:end}
.public-rentals .view-switch button{padding:10px 18px;background:#fff;color:#6c512e;border:1px solid #bfa77f;border-radius:7px;cursor:pointer}
.public-rentals .view-switch button[aria-pressed="true"]{background:#a77b43;color:#fff}
.public-rentals #rental-count{grid-column:1/-1;margin:0}
.public-rentals #rental-results{display:flex;flex-direction:column;gap:8px}
.public-rentals #rental-results[hidden],.public-rentals #sion-map-panel[hidden],.public-rentals [hidden]{display:none!important}
.public-rentals #rental-results .rental{display:grid;grid-template-columns:230px minmax(0,1fr);align-items:start;gap:12px;padding:10px;background:#fff;color:#332f29;border:1px solid #e5ded3;border-radius:10px;min-height:0;box-shadow:none}
/* Full-photo gallery: no crop or zoom; miniatures sit beneath. */
.public-rentals #rental-results .gallery{width:230px;min-width:0;position:relative;border-radius:8px;background:#f7f5ef;overflow:visible;align-self:start}
.public-rentals #rental-results .gallery-main{display:block;position:relative;width:100%;height:180px;padding:0;background:#f4f1eb;border:1px solid #e5ded3;border-radius:8px;cursor:zoom-in;overflow:hidden}
.public-rentals #rental-results .gallery-main img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.public-rentals .gallery-thumbs{display:flex;gap:5px;overflow-x:auto;padding:7px 0 3px;scrollbar-width:thin;position:static}
.public-rentals .gallery-thumb{flex:0 0 48px;width:48px;height:44px;padding:2px;background:#fff;border:1px solid #d9d2c7;border-radius:5px;cursor:pointer}
.public-rentals .gallery-thumb[aria-pressed="true"]{border:2px solid #a77b43}
.public-rentals .gallery-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.public-rentals .gallery-controls{display:flex;align-items:center;justify-content:center;gap:9px;margin:6px 0 0;min-height:24px;position:static}
.public-rentals .gallery-controls button{appearance:none;border:0;background:transparent;color:#8b683b;padding:2px 4px;font-size:19px;line-height:1;cursor:pointer;box-shadow:none;border-radius:0}
.public-rentals .gallery-controls button:hover{color:#50371d}
.public-rentals .gallery-controls [data-count]{font-size:11px;color:#756a5c;white-space:nowrap}
.public-rentals .gallery-controls .gallery-open{margin-left:auto;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;font-size:0;line-height:1;color:#856334;text-decoration:none;white-space:nowrap}.public-rentals .gallery-controls .gallery-open::after{content:"⤢";font-size:22px;line-height:1}
.public-rentals .gallery-controls-single{justify-content:flex-end}
.public-rentals .gallery-empty{min-height:180px;padding:12px;color:#716a60;background:#f1eee8;border-radius:8px}
.public-rentals #rental-results .rental-copy{min-width:0;display:block;color:#332f29}
.public-rentals #rental-results .rental-copy p{margin:2px 0 5px;color:#443c32}
.public-rentals #rental-results .rental-copy h2{margin:2px 0 5px;font-size:17px;color:#30291f}
.public-rentals #rental-results .rental-copy .price{font-size:18px;font-weight:700;color:#91672f}
.public-rentals #rental-results .price span{font-size:12px;font-weight:400}
.public-rentals #rental-results .description{font-size:13px;line-height:1.3}
.public-rentals #rental-results .rental-copy a:not(.button){color:#856334}
.public-rentals #rental-results .rental-copy .button{display:inline-block;background:#c79c5c;color:#fff;padding:7px 10px;border-radius:6px;font-size:12px;text-decoration:none;margin-right:8px}
.public-rentals #sion-map-panel{background:#fff;border:1px solid #e5ded3;border-radius:10px;padding:16px;color:#332f29}
.public-rentals #sion-all-map{width:100%;height:440px;border:0;border-radius:8px}
.public-rentals #sion-map-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.public-rentals #sion-map-links a{color:#79552b;border:1px solid #e0d3bf;border-radius:6px;padding:6px 9px}
@media(max-width:650px){
 .public-rentals .rentals-bar{flex-wrap:wrap;gap:10px;padding:12px}
 .public-rentals .rentals-logo{max-width:140px}
 .public-rentals .rental-tools{grid-template-columns:minmax(0,1fr);gap:10px;padding:12px}
 .public-rentals .rental-tools label{display:block;width:100%}
 .public-rentals #zip-search{max-width:none;width:100%;box-sizing:border-box}
 .public-rentals .view-switch{justify-self:start}
 .public-rentals #rental-results .rental{display:flex;flex-direction:column;gap:12px;padding:12px}
 .public-rentals #rental-results .gallery{width:100%;max-width:100%;box-sizing:border-box;background:transparent}
 .public-rentals #rental-results .gallery-main{width:100%;height:auto;aspect-ratio:4/3;max-height:320px}
 .public-rentals #rental-results .gallery-main img{width:100%;height:100%;object-fit:contain}
 .public-rentals .gallery-thumbs{gap:7px;padding:8px 0 4px;max-width:100%;overflow-x:auto}
 .public-rentals .gallery-thumb{flex:0 0 58px;width:58px;height:48px}
 .public-rentals .gallery-controls{justify-content:center;gap:12px;flex-wrap:nowrap}
 /* Mobile: expand in the top-left corner; centered arrows and counter below thumbnails. */
 .public-rentals #rental-results .gallery{position:relative}
 .public-rentals #rental-results .gallery-controls{display:flex;justify-content:center;align-items:center;gap:18px;position:static;min-height:30px}
 .public-rentals #rental-results .gallery-controls [data-prev],
 .public-rentals #rental-results .gallery-controls [data-next]{font-size:23px;padding:2px 7px}
 .public-rentals #rental-results .gallery-controls [data-count]{font-size:12px}
 .public-rentals #rental-results .gallery-controls .gallery-open{position:absolute;top:10px;left:10px;right:auto;bottom:auto;z-index:2;margin:0;width:34px;height:34px;border-radius:50%;background:#fffdf3e8;box-shadow:0 1px 5px #0002;color:#77552e}
 .public-rentals #rental-results .gallery-controls .gallery-open::after{font-size:21px}
 .public-rentals #rental-results .gallery-controls-single{min-height:0;margin:0}
 .public-rentals #rental-results .rental-copy{width:100%;min-width:0}
 .public-rentals #rental-results .rental-copy h2{font-size:17px}
 .public-rentals #rental-results .rental-copy .price{font-size:19px}
 .public-rentals #rental-results .rental-copy .button{margin-top:6px}
}
@media(min-width:651px) and (max-width:850px){
 .public-rentals #rental-results .rental{grid-template-columns:210px minmax(0,1fr)}
 .public-rentals #rental-results .gallery{width:210px}
}
/* Small location preview at the bottom of List mode. */
.public-rentals #sion-list-map{margin-top:12px;padding:12px;background:#fff;border:1px solid #e5ded3;border-radius:10px;color:#332f29}
.public-rentals #sion-list-map iframe{display:block;width:100%;height:220px;border:0;border-radius:7px}
.public-rentals #sion-list-map[hidden]{display:none!important}

/* Enlarged gallery viewer, keyboard accessible and constrained to viewport. */
#sion-photo-dialog{max-width:min(94vw,1100px);max-height:92vh;width:900px;padding:14px;border:1px solid #ded3c1;border-radius:12px;background:#fffdf8;color:#332f29;box-shadow:0 16px 60px #0005}
#sion-photo-dialog::backdrop{background:#000b}
#sion-photo-dialog .photo-dialog-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px;font-weight:600}
#sion-photo-dialog .photo-dialog-toolbar button{padding:7px 12px;border:1px solid #bfa77f;border-radius:7px;background:#fff;color:#493c2d;cursor:pointer}
#sion-photo-dialog .photo-dialog-view{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:6px;align-items:center}
#sion-photo-dialog .photo-dialog-view img{width:100%;height:auto;max-height:72vh;object-fit:contain}
#sion-photo-dialog .photo-dialog-view button{padding:10px 4px;background:#f5eee3;border:1px solid #d8c5a9;border-radius:7px;cursor:pointer}
#sion-photo-dialog #sion-photo-counter{text-align:center;margin:8px 0 0}


.gallery-main > img[data-main-photo]{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;min-height:0;max-height:100%}
