/* Progressive enhancement: every photograph is available without JavaScript. */
.property-gallery {margin-bottom:2rem;border-radius:14px;overflow:hidden}
.gallery-images figure {margin:0 0 1rem;background:#f3f5f1}
.gallery-images figure[hidden],.gallery-controls[hidden] {display:none}
.gallery-images img {display:block;width:100%;max-height:560px;object-fit:contain;aspect-ratio:4/3;background:#e9ede7}
.gallery-images figcaption {padding:.75rem 1rem;color:#31453a;overflow-wrap:anywhere}
.gallery-controls {display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem 0 1rem}
.gallery-thumbnails {display:flex;gap:.65rem;overflow-x:auto;padding:.25rem .2rem .75rem}
.gallery-thumbnails a {flex:0 0 86px;border:3px solid transparent;border-radius:8px;overflow:hidden}
.gallery-thumbnails a[aria-current] {border-color:#173e32}
.gallery-thumbnails img {display:block;width:80px;height:64px;object-fit:cover}
.property-gallery:focus-visible,.gallery-thumbnails a:focus-visible {outline:3px solid #b38a42;outline-offset:3px}
.property-resource-links {display:flex;flex-wrap:wrap;gap:1rem;margin:1.5rem 0}
.media-editor {min-width:0;border:1px solid #d7dfd7;border-radius:12px;padding:1.25rem}
.media-editor legend {font-weight:700;padding:0 .5rem}
.media-editor-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1rem;margin:1.5rem 0}
.media-editor-grid figure {margin:0;min-width:0}
.media-editor-grid img {width:100%;height:150px;object-fit:cover;border-radius:8px}
.media-editor-grid figcaption {overflow-wrap:anywhere}
.media-upload-slots {display:grid;gap:1rem;margin-top:1.25rem}
.media-upload-slot {display:grid;grid-template-columns:1fr 1fr;gap:1rem;padding-bottom:1rem;border-bottom:1px solid #d7dfd7}
.media-upload-slot input[type=file] {max-width:100%;padding:.65rem}
.search-form.enhanced-search {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
@media(max-width:760px){.search-form.enhanced-search{grid-template-columns:repeat(2,minmax(0,1fr))}.media-upload-slot{grid-template-columns:1fr}.gallery-controls{font-size:.85rem}}
@media(max-width:440px){.search-form.enhanced-search{grid-template-columns:1fr}.gallery-controls .button{padding:.6rem}.gallery-thumbnails a{flex-basis:72px}.gallery-thumbnails img{width:66px;height:54px}}

.property-contact-actions {display:flex;flex-direction:column;align-items:flex-start;gap:1rem;margin-top:1.5rem}
[data-share-property][hidden] {display:none!important}
