@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');
:root{font-family:Manrope,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#243c35;background:#e5ede7;font-synthesis:none;--green:#245e4d;--muted:#7b857d;--line:#e8ebe4;--pin-fill:#255e50;--pin-text:#fff;--pin-stroke:#fff;--pin-selected-fill:#ebd5a1;--pin-selected-text:#394b32;--dot-fill:#255e50;--dot-stroke:#fff}
*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #dc9b49;outline-offset:3px}[hidden]{display:none!important}
.topbar{height:76px;background:#fafbf8;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 32px;position:relative;z-index:3}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:23px;letter-spacing:-1px;font-weight:800}.brand-light{font-weight:400;color:#8e978f;font-size:19px}.brand-icon{background:var(--green);color:#fff;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:31px;line-height:1;padding-bottom:5px}.top-note{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600}.dot{height:6px;width:6px;border-radius:50%;background:#789975}.demo-label{font-size:10px;letter-spacing:.4px;padding:5px 9px;border:1px solid #dfe4da;border-radius:7px;color:#7b8575;background:#f5f7f1;margin-left:12px}
main{height:calc(100dvh - 76px);position:relative;overflow:hidden}#map{position:absolute;inset:0;background:#e5ede7}#panel{position:absolute;left:24px;top:24px;bottom:28px;width:350px;z-index:2;background:#fffefb;border-radius:22px;box-shadow:0 12px 48px #233a3520;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d8dfd7 transparent}#overview{padding:27px 25px 20px}.eyebrow{font-size:9px;font-weight:800;letter-spacing:2px;color:#80917f;margin:0 0 12px}h1{font-size:37px;font-weight:600;letter-spacing:-1.6px;line-height:1.15;margin:0 0 14px}.accent{color:#93ad79}.intro{font-size:12px;line-height:1.8;color:#80867b;margin:0 0 26px}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.section-heading h2{font-size:12px;margin:0;font-weight:800}.section-heading>span{font-size:10px;border:1px solid var(--line);border-radius:20px;padding:4px 9px;color:#76816e}
.listing{display:flex;align-items:center;width:100%;gap:12px;text-align:left;border:1px solid var(--line);border-radius:13px;padding:10px;background:white;margin-bottom:9px;transition:border-color .15s,background .15s}.listing:hover{border-color:#8aa08e;background:#f8faf4}.listing:disabled{opacity:.65;cursor:wait}.listing img{width:55px;height:58px;object-fit:cover;object-position:50% 21%;border-radius:8px}.listing-text{flex:1;min-width:0}.listing strong{font-size:12px;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-bottom:5px}.listing small{font-size:10px;color:#8b9389;display:block}.listing .list-price{font-size:12px;color:#3d6352;font-weight:800;white-space:nowrap}.listing.error{border-color:#e5b9ae}.listing.error small{color:#a14f42;white-space:normal}
form{border-top:1px solid var(--line);margin-top:21px;padding-top:20px}label{display:block;font-size:12px;font-weight:800;margin-bottom:10px}.input-wrap{display:flex;align-items:center;border:1px solid #dde3d9;border-radius:10px;background:#fff;gap:8px;padding:0 12px;margin-bottom:9px}.input-wrap>span{color:#869380}input{width:100%;font-size:11px;height:42px;border:0;background:transparent;outline:none;color:#34483c;min-width:0}input::placeholder{color:#a1a79c}.input-wrap input:focus-visible{outline:none}.input-wrap:focus-within{outline:2px solid #849e7d;outline-offset:2px}.primary{display:flex;justify-content:space-between;align-items:center;width:100%;background:var(--green);color:white;border:0;border-radius:10px;padding:14px 16px;font-size:12px;font-weight:700;text-decoration:none;transition:background .15s}.primary:hover{background:#174938}.primary:disabled{opacity:.65;cursor:wait}#form-status{font-size:11px;line-height:1.6;color:#7c866e;margin:8px 0 0}#form-status.error{color:#a34e3d}.demo-note{font-size:9px;line-height:1.8;color:#9da496;margin:17px 0 0}
.map-button{position:absolute;right:24px;top:24px;display:flex;align-items:center;gap:9px;border:1px solid #e0e6db;background:#fffefb;padding:12px 16px;border-radius:12px;box-shadow:0 3px 10px #233a3510;color:#45604d;font-size:12px;font-weight:700;z-index:1}.map-button>span{font-size:11px}.maplibregl-ctrl-top-right{top:78px;right:15px}.maplibregl-ctrl-group{border-radius:10px!important;overflow:hidden}.maplibregl-ctrl-attrib{font-size:10px!important}.map-caption{position:absolute;bottom:28px;left:calc(50% + 150px);transform:translateX(-50%);color:#6f8475;font-size:11px;white-space:nowrap;background:#fffefa9c;padding:9px 16px;border-radius:20px;pointer-events:none}#map-message{position:absolute;top:24px;left:50%;z-index:1;background:#fffefbf2;box-shadow:0 4px 20px #233a3514;padding:12px 18px;border-radius:12px;font-size:12px;max-width:340px}#map-message.error{color:#8c453b}
.pin{border:2px solid #fff;background:var(--green);color:white;border-radius:22px;padding:9px 15px;font:800 13px Manrope,sans-serif;box-shadow:0 4px 12px #193d4636;white-space:nowrap;position:absolute;transition:background .15s,color .15s}.pin::after{content:"";position:absolute;width:9px;height:9px;background:inherit;border-right:2px solid white;border-bottom:2px solid white;bottom:-6px;left:calc(50% - 5px);transform:rotate(45deg)}.pin:hover,.pin.selected{background:#ebd5a1;color:#394b32;z-index:3}/* Marker roots must stay absolute: normal flow adds offsets to MapLibre coordinates. */
#detail{min-height:100%;display:flex;flex-direction:column}.back-button{border:0;background:transparent;color:#728270;font-size:11px;font-weight:600;text-align:left;padding:21px 24px 16px}.back-button:hover{color:var(--green)}.detail-image-wrap{position:relative;margin:0 15px;border-radius:13px;overflow:hidden;background:#1a292f}.detail-image-wrap button{display:block;border:0;background:none;padding:0;width:100%}.detail-image-wrap img{display:block;width:100%;height:280px;object-fit:contain}.image-hint{display:block;text-align:center;color:#b5c2c4;background:#1a292f;font-size:9px;padding:6px}.detail-body{padding:22px 24px 20px;flex:1}.detail-body .eyebrow{font-size:10px;letter-spacing:1.4px;margin-bottom:10px;color:#7a8d74}#detail-title{font-size:24px;line-height:1.3;letter-spacing:-.7px;font-weight:600;margin:0 0 14px}.price-line{display:flex;align-items:center;gap:6px;font-size:10px;color:#8b9486}.price-line strong{font-size:23px;letter-spacing:-.8px;color:#2c513e}.price-line .demo-label{margin-left:auto}#detail-description{font-size:12px;line-height:1.8;color:#80877c;margin:18px 0}.location-note{display:flex;align-items:start;gap:10px;padding:12px;background:#f4f6ef;border-radius:11px}.location-note>span{font-size:22px;color:#8c9f7b}.location-note p{font-size:10px;line-height:1.7;margin:0;color:#5d7256}.location-note p span{color:#8d9784}#original-link{display:inline-block;font-size:10px;color:#7a8b71;margin-top:14px;text-decoration:none;border-bottom:1px solid #d8dfd0}.detail-footer{position:sticky;bottom:0;background:#fffefbf5;padding:14px 24px 15px;border-top:1px solid var(--line);backdrop-filter:blur(8px)}.detail-footer small{display:block;text-align:center;font-size:9px;color:#8d9787;margin-top:8px}
dialog{padding:0;border:0;background:#17272c;border-radius:12px;max-height:92dvh;max-width:92vw;overflow:auto;box-shadow:0 15px 80px #0005}dialog::backdrop{background:#142321bb;backdrop-filter:blur(5px)}dialog img{display:block;max-width:100%;max-height:88dvh;object-fit:contain}#close-image{position:absolute;right:10px;top:10px;background:#fff;border:0;border-radius:50%;width:35px;height:35px;font-size:25px;color:#283c32;box-shadow:0 2px 8px #0003}
@media(min-width:761px) and (max-height:820px){#overview{padding:20px}h1{font-size:31px}.intro{margin-bottom:18px}form{margin-top:15px;padding-top:15px}.detail-image-wrap img{height:220px}}
@media(max-width:760px){.topbar{height:62px;padding:0 18px}.brand{font-size:20px;gap:9px}.brand-icon{width:32px;height:32px;font-size:27px;border-radius:10px}.brand-light{font-size:16px}.top-note{font-size:10px}.top-note .dot{display:none}.demo-label{margin-left:4px}main{height:calc(100dvh - 62px)}#panel{left:10px;right:10px;width:auto;top:auto;bottom:25px;max-height:46%;border-radius:20px}#panel.detail-open{max-height:61%}#overview{padding:20px}.eyebrow{font-size:8px;margin-bottom:7px}h1{font-size:25px;margin-bottom:9px;letter-spacing:-.8px}h1 br{display:none}.intro{display:none}.section-heading{margin-top:16px}.listing{padding:8px;margin-bottom:7px}.listing img{width:44px;height:44px}.listing strong{font-size:11px}.demo-note{margin-top:12px}form{margin-top:15px;padding-top:15px}.map-button{top:14px;right:14px;padding:11px 14px}.maplibregl-ctrl-top-right{top:65px;right:5px}.map-caption{display:none}#map-message{left:14px;right:125px;top:14px;font-size:10px;padding:10px;max-width:none}.detail-image-wrap img{height:200px}.detail-body{padding:18px 20px}.back-button{padding:16px 20px 13px}#detail-title{font-size:23px}.detail-footer{padding:12px 20px}.pin{font-size:11px;padding:8px 12px}.top-note .demo-label{display:none}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.price-filter{margin:0 0 24px}.price-filter>label{display:block;font-size:12px;font-weight:700;margin-bottom:10px}.price-inputs{display:flex;align-items:center;gap:8px}.price-inputs input{width:0;flex:1;padding:12px;border:1px solid var(--line);border-radius:10px;font:inherit;background:white}.filter-actions{display:flex;gap:10px;margin-top:10px}.filter-actions .primary{flex:1;padding:10px}.filter-actions #price-reset{border:0;background:none;color:var(--green)}#price-error{font-size:12px;color:#a33333}#detail-description{white-space:pre-line}.contacts{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:20px}.contacts a{padding:8px;border:1px solid var(--line);border-radius:8px;font-size:12px}.empty-list{font-size:13px;line-height:1.6;color:#788477;padding:16px 0}

.range-values{display:flex;justify-content:space-between;gap:8px}.range-values button{border:0;background:#f0f4ee;color:var(--green);font:600 12px Manrope,sans-serif;padding:10px 12px;border-radius:9px;cursor:pointer}.range-control{position:relative;height:44px;margin:6px 12px}.range-track{position:absolute;height:4px;left:0;right:0;top:20px;background:#dce3d8;border-radius:4px}#range-fill{position:absolute;height:100%;background:var(--green);border-radius:4px}.range-control input{position:absolute;left:0;top:0;width:100%;height:44px;margin:0;background:transparent;appearance:none;pointer-events:none}.range-control input::-webkit-slider-thumb{appearance:none;width:24px;height:24px;background:white;border:3px solid var(--green);border-radius:50%;pointer-events:auto;cursor:grab;box-shadow:0 2px 5px #0002}.range-control input::-moz-range-thumb{width:20px;height:20px;background:white;border:3px solid var(--green);border-radius:50%;pointer-events:auto;cursor:grab}.range-control input::-moz-range-track{background:transparent}.range-control input:focus-visible{outline:2px solid #86ac9c;outline-offset:3px}#range-max{z-index:2}#price-editor .primary{width:100%;margin-top:10px;padding:10px}.price-filter .filter-actions{justify-content:flex-end;margin-top:0}.detail-heading{padding:0 24px 18px;display:flex;align-items:baseline;flex-wrap:wrap;gap:8px}.detail-heading h2{margin:0;font-size:28px;color:var(--green)}.detail-heading>span{font-size:12px;color:#7b8575}
/* Photo carousel and shared full-screen viewer. */
#card-gallery{flex-shrink:0}#open-image,#viewer-stage{touch-action:pan-y pinch-zoom}#card-gallery .gallery-arrow,.gallery-arrow{position:absolute;top:50%;transform:translateY(-50%);width:40px;height:40px;padding:0;border:1px solid #ffffff40;border-radius:50%;background:#172821bb;color:white;font:30px/1 sans-serif;display:grid;place-items:center;z-index:2;cursor:pointer}.gallery-prev{left:10px}.gallery-next{right:10px}.gallery-arrow:hover{background:#172821}.gallery-arrow:focus-visible{outline:3px solid #e8d29b;outline-offset:2px}.photo-count{position:absolute;right:10px;bottom:10px;color:white;background:#172821bb;border-radius:12px;padding:5px 9px;font-size:11px}#image-dialog{position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:#101614;color:white;overflow:hidden}#image-dialog::backdrop{background:#101614f5}#image-dialog[open]{display:flex;flex-direction:column}.viewer-toolbar{height:64px;flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:10px 20px;font-size:14px}.viewer-toolbar #close-image{position:static;width:44px;height:44px;border:0;border-radius:50%;background:#ffffff18;color:white;font-size:30px;cursor:pointer}#viewer-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:0 64px 24px}#image-dialog #viewer-image{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;user-select:none}#image-dialog .gallery-arrow{width:46px;height:46px}#image-dialog button[hidden],#card-gallery button[hidden]{display:none}@media(max-width:760px){#viewer-stage{padding:0 0 60px}#image-dialog .gallery-arrow{top:auto;bottom:8px;transform:none}.viewer-toolbar{height:60px;padding:8px 14px}}
/* Stable preview frame: changing photos must not move the card content. */
#card-gallery #detail-image{width:100%;height:440px;min-height:0;max-height:none;object-fit:cover;object-position:center;aspect-ratio:auto}
#card-gallery #open-image{overflow:hidden}
@media(max-width:760px){#card-gallery #detail-image{height:330px}}

.publication-date{font-size:11px;color:#80917f;margin:0 0 8px}#source-post{display:inline-block;font-size:12px;color:var(--green);margin-bottom:18px}

.top-note .admin-link{display:inline-block;text-decoration:none;color:var(--green)}

/* Browse photos beside the map, with a stable two-column catalogue. */
@media(min-width:761px){
 main{--catalog-width:clamp(390px,36vw,560px)}
 #panel{left:0;top:0;bottom:0;width:var(--catalog-width);border-radius:0;box-shadow:none;border-right:1px solid var(--line)}
 #map{left:var(--catalog-width)}
 .map-caption{left:calc(50% + var(--catalog-width)/2)}
 #map-message{left:calc(var(--catalog-width) + 24px)}
}
#overview{padding:24px}
#overview h1{font-size:26px;letter-spacing:-.8px;margin:0 0 20px}
#listing-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}
#listing-list .listing{display:flex;flex-direction:column;align-items:stretch;gap:10px;padding:0;border:0;border-radius:14px;background:transparent;margin:0;min-width:0}
#listing-list .listing:hover{background:#f1f5ee}
#listing-list .listing img{width:100%;height:auto;aspect-ratio:1;object-fit:cover;object-position:center;border-radius:14px}
#listing-list .listing-text{padding:0 2px 6px}
#listing-list .listing strong{font-size:17px;margin-bottom:5px;color:var(--green)}
.listing-description{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;font-size:12px;line-height:1.55;color:#526458;margin-bottom:7px;white-space:pre-line;overflow-wrap:anywhere}
#listing-list .listing small{font-size:11px;line-height:1.5}
#listing-list .empty-list{grid-column:1/-1}
.section-heading h2{font-size:15px}
#import-status{margin:0 0 12px}
.price-filter{border-top:0;padding-top:0;margin-bottom:15px}
#detail-description{font-size:14px;color:#526458}
@media(max-width:760px){
 #overview{padding:18px}
 #overview h1{font-size:22px}
 #listing-list{gap:18px 12px}
 #listing-list .listing strong{font-size:15px}
}

#share-listing{margin-left:auto;border:1px solid var(--line);border-radius:9px;background:white;color:var(--green);padding:9px 12px;font-size:12px;font-weight:700}
#share-listing:hover{background:#f0f4ee}.share-feedback{padding:0 24px;font-size:12px;color:var(--green)}.share-feedback:has(#share-status:empty){display:none}.share-feedback:not(:has(#share-status:empty)){margin-bottom:14px}#share-url{border:1px solid var(--line);border-radius:8px;padding:8px;margin-top:6px;font-size:12px}

.listing-source{margin-bottom:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}

/* Focus must not draw a border across cards or image controls. Text stays selectable. */
button:focus,button:focus-visible,a:focus,a:focus-visible,input:focus-visible,[tabindex]:focus{outline:none}
button,img,.range-control{-webkit-user-select:none;user-select:none}
.listing-text,#detail-description,input,textarea{-webkit-user-select:text;user-select:text}

/* Skip offscreen card layout/paint while retaining reusable DOM and images. */
#listing-list .listing{content-visibility:auto;contain-intrinsic-size:auto 340px}

.listing-gallery{position:relative;width:100%;aspect-ratio:1;overflow:hidden;border-radius:14px;flex-shrink:0;touch-action:pan-y pinch-zoom}
.listing-photo{display:block;width:100%;height:100%;padding:0;border:0;background:#e7ece6;touch-action:pan-y pinch-zoom}
#listing-list .listing .listing-photo img{display:block;width:100%;height:100%;border-radius:0;user-select:none}
#listing-list .listing-text{display:block;width:100%;border:0;background:transparent;text-align:left;font:inherit;color:inherit;cursor:pointer}
.listing-photo-dots{position:absolute;bottom:9px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:3px;max-width:90%;padding:0;pointer-events:none}
.listing-photo-dots i{display:block;width:4px;height:4px;flex:0 1 4px;min-width:2px;border-radius:4px;background:white;opacity:.55;transition:width .15s,flex-basis .15s}
.listing-photo-dots i.active{width:10px;flex-basis:10px;opacity:1}
.listing-photo-arrow{position:absolute;top:50%;transform:translateY(-50%);width:36px;height:40px;padding:0;border:0;border-radius:20px;background:#17282180;color:white;font:28px/1 sans-serif}
.listing-photo-arrow.prev{left:5px}.listing-photo-arrow.next{right:5px}
@media(hover:hover) and (pointer:fine){.listing-photo-dots{opacity:0}.listing-gallery:hover .listing-photo-dots,.listing-gallery:focus-within .listing-photo-dots{opacity:1}.listing-photo-arrow{opacity:0;pointer-events:none}.listing-photo-arrow:focus-visible{opacity:1;pointer-events:auto}}

#panel{overflow:hidden}
#panel-scroll{height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#d8dfd7 transparent}
#sheet-handle{display:none}
@media(max-width:760px){
 #panel,#panel.detail-open{left:0;right:0;bottom:0;top:auto;width:100%;height:100%;max-height:none;border-radius:20px 20px 0 0;display:flex;flex-direction:column;transform:translateY(calc(100% - 80px));transition:transform .22s ease-out;will-change:transform;box-shadow:0 -5px 25px #233a351a}
 #panel.sheet-dragging{transition:none;user-select:none}
 #panel-scroll{flex:1;min-height:0;height:auto;overscroll-behavior-y:contain;padding-bottom:env(safe-area-inset-bottom)}
 #sheet-handle{display:flex;flex-shrink:0;align-items:center;justify-content:center;flex-direction:column;gap:12px;width:100%;height:80px;padding:10px 18px 14px;border:0;background:transparent;color:#243c35;touch-action:none;cursor:ns-resize}
 #sheet-handle .sheet-grip{width:36px;height:4px;border-radius:4px;background:#b8c4bc}
 #sheet-handle .sheet-label{font:700 22px/1.3 Manrope,sans-serif;letter-spacing:-.6px;align-self:flex-start}
 #overview h1{display:none}
 #panel[data-sheet="0"] #panel-scroll{overflow:hidden;visibility:hidden}
 #panel[data-sheet="2"]{border-radius:0}
}

/* Favorites stay separate from the photo gesture surface. */
#favorites-toggle{margin-left:auto;margin-right:24px;border:1px solid var(--line);border-radius:20px;padding:9px 14px;background:white;color:var(--green);font-size:12px;font-weight:700;white-space:nowrap}
#favorites-toggle[aria-pressed=true]{background:var(--green);color:white}
.favorite-button{width:40px;height:40px;flex-shrink:0;display:inline-grid;place-items:center;border:0;background:transparent;color:#839188;padding:0}
.favorite-button svg{display:block;width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.favorite-button[aria-pressed=true]{color:var(--green)}
.favorite-button[aria-pressed=true] svg{fill:currentColor}
.favorite-button:hover{color:#133e31}
.listing{position:relative}.listing-content{position:relative;width:100%}.listing-favorite{position:absolute;right:-4px;top:-8px;z-index:1}.listing-content strong{padding-right:36px}
#detail-favorite{margin-left:auto;align-self:center}#share-listing{margin-left:0;align-self:center}
#favorites-status:empty{display:none}#favorites-status{position:absolute;top:8px;left:50%;transform:translateX(-50%);z-index:5;max-width:90%;padding:12px;background:white;border-radius:12px;color:var(--green);box-shadow:0 2px 12px #0002;font-size:12px}
@media(max-width:760px){.top-note{display:none}#favorites-toggle{margin-right:0;margin-left:10px;padding:8px 10px;font-size:11px}.listing-favorite{right:-6px;top:-10px;width:40px;height:40px}}

/* Geolocation is requested only by the map control's click handler. */
.maplibregl-ctrl-group .locate-button{display:grid;place-items:center;color:var(--green)}
.locate-button svg{display:block;width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.locate-button .location-center{fill:currentColor;stroke:none}
.locate-button[aria-busy=true] svg{opacity:.35}
.user-location{width:16px;height:16px;background:var(--green);border:3px solid white;border-radius:50%;box-shadow:0 0 0 9px #245e4d24,0 0 0 18px #245e4d12;pointer-events:none}

#show-all{width:33px;height:33px;padding:6px;justify-content:center;border-radius:10px}
#show-all svg{display:block;width:19px;height:19px;fill:none;stroke:#6f8475;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Video sources are assigned only after Play, never during hover or listing load. */
#card-gallery #detail-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#101614;z-index:1}
#viewer-stage{position:relative}#viewer-video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#101614}
#card-gallery .media-play,.media-play{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:64px;height:64px;border:1px solid #ffffff88;border-radius:50%;background:#245d4ee6;color:white;font-size:24px;display:grid;place-items:center;z-index:2;cursor:pointer;padding:0}
#detail-video[hidden],#viewer-video[hidden],.media-play[hidden]{display:none!important}

#video-error{margin:12px 24px;color:#8b4c38;font-size:12px}

.listing-video-badge{position:absolute;left:10px;bottom:10px;padding:3px 6px;border-radius:6px;color:white;background:#172821a6;font-size:11px;pointer-events:none}

.detail-source-row{display:flex;align-items:center;gap:12px}.detail-source-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.listing-page-link{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;color:#80917f;text-decoration:none;border-radius:10px}.listing-page-link svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.listing-page-link:hover{color:var(--green);background:#f0f4ee}

#other-offers + .location-note{margin-top:24px}
.other-offers{margin-top:24px;padding:0 18px;min-width:0;border:1px solid #dce5dc;border-radius:14px;background:#f3f7f1;overflow-wrap:anywhere;color:#526458;font-size:14px;line-height:1.8}
.other-offers summary{display:flex;align-items:center;gap:12px;cursor:pointer;padding:16px 0;list-style:none;color:var(--green,#255e50);font-size:14px;font-weight:600;line-height:1.5}
.other-offers summary::-webkit-details-marker{display:none}
.other-offers summary::after{content:'';flex:none;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:auto;transition:transform .15s}
.other-offers[open] summary::after{transform:rotate(225deg)}
.other-offers section{border-top:1px solid #dce5dc;padding:18px 0;min-width:0}
.other-offers .other-offer-source{font-size:12px;color:#7d907b;margin:0 0 8px;line-height:1.6;white-space:normal}
.other-offer-price{display:block;color:var(--green,#255e50);font-size:18px;font-weight:700;line-height:1.4}
.other-offers .other-offer-description{white-space:pre-line;font-size:14px;line-height:1.8;margin:18px 0;overflow-wrap:anywhere;user-select:text}
.other-offers .contacts{margin:0 0 14px}
.other-offers .contacts a{background:#fffefb;color:inherit;max-width:100%;margin:0}
.other-offer-post{font-size:12px;color:var(--green,#255e50)}

.district-filter{border:0;padding:0;margin:0 0 24px;min-width:0}
.district-filter legend{font-size:12px;font-weight:700;margin-bottom:10px;padding:0}
:is(#district-options,#bedroom-options){display:flex;flex-wrap:wrap;gap:8px}
:is(#district-options,#bedroom-options) button{font:600 12px Manrope,sans-serif;color:var(--green);background:transparent;border:1px solid var(--line);border-radius:20px;padding:9px 12px;cursor:pointer;min-height:36px}
:is(#district-options,#bedroom-options) button[aria-pressed="true"]{background:var(--green);border-color:var(--green);color:white}
:is(#district-options,#bedroom-options) button:focus-visible{outline:2px solid #86ac9c;outline-offset:3px}

.filters{margin:0 0 18px;border:1px solid var(--line);border-radius:12px;background:#fffefb}
.filters>summary{display:flex;align-items:center;gap:9px;min-height:44px;padding:9px 12px;list-style:none;cursor:pointer;font-size:13px;font-weight:600;color:var(--green)}
.filters>summary::-webkit-details-marker{display:none}
.filters>summary>svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;flex-shrink:0}
.filters>summary::after{content:'';width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-left:auto;flex-shrink:0}
.filters[open]>summary::after{transform:rotate(225deg)}
#filter-summary{font-size:11px;font-weight:500;color:#718273;line-height:1.5;overflow-wrap:anywhere}
.filters-body{padding:4px 12px 12px}
.filters .price-filter{margin-bottom:12px}
.filters .price-filter>label,.filters .district-filter legend{margin-bottom:6px;font-size:11px}
.filters .range-values button{padding:7px 9px;font-size:11px}
.filters .range-control{margin:0 10px;height:40px}
.filters #price-error:empty{display:none}
.filters .district-filter{margin-bottom:10px}
.filters :is(#district-options,#bedroom-options){gap:6px}
.filters :is(#district-options,#bedroom-options) button{font-size:11px;padding:7px 10px;min-height:34px}
.filters-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.filters-footer button{border:0;border-radius:8px;padding:9px 12px;font:600 12px Manrope,sans-serif;color:var(--green);background:#f0f4ee;cursor:pointer;min-height:36px}
.filters-footer #price-reset{margin-right:auto;background:transparent;padding-left:0;font-weight:500}
.filters>summary:focus-visible,.filters-footer button:focus-visible{outline:2px solid #86ac9c;outline-offset:3px}

.brand:has(.source-brand-text){min-width:0;flex:1;max-width:560px;margin-right:12px;container-type:inline-size}
.source-brand-text{display:block;width:100%;min-width:0;white-space:normal;overflow-wrap:anywhere;font-size:clamp(12px,7cqi,23px);line-height:1.15;letter-spacing:-.3px}
.topbar:has(.source-brand-text) #favorites-toggle{flex-shrink:0;margin-right:0}
@media(max-width:760px){
 .brand:has(.source-brand-text){margin-right:8px}
 .source-brand-text{font-size:clamp(12px,7cqi,16px)}
}

#viewer-stage{transition:transform .18s ease-out,opacity .18s ease-out}
#viewer-stage.viewer-dragging{transition:none}
@media(prefers-reduced-motion:reduce){#viewer-stage{transition:none}}

.mobile-map-toolbar,.mobile-filter-chips,.mobile-photo-rail{display:none}
@media(max-width:760px){
 .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in){display:none}
 .map-page .topbar{height:112px;padding:8px 14px;display:flex;flex-direction:column;align-items:stretch;gap:6px;z-index:4}
 .map-page .topbar>.brand,.map-page .topbar>.top-note{display:none}
 .mobile-map-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;height:44px;flex-shrink:0}
 .map-page .topbar #favorites-toggle{margin:0;padding:9px 12px;min-height:40px;font-size:12px;flex-shrink:0}
 .mobile-map-toolbar #filters{border:0;margin:0;position:static;min-width:0;background:transparent}
 .mobile-map-toolbar #filters>summary{padding:10px 0;gap:8px;font-size:14px}
 .mobile-map-toolbar #filter-summary{display:none}
 .mobile-map-toolbar #filters>.filters-body{position:absolute;top:100%;left:0;right:0;background:#fffefb;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0 0 18px 18px;box-shadow:0 12px 20px #243c351a;max-height:60dvh;overflow-y:auto;padding:18px}
 .mobile-map-toolbar #filters[data-section="price"] fieldset,.mobile-map-toolbar #filters[data-section="district"] .price-filter,.mobile-map-toolbar #filters[data-section="district"] fieldset:has(#bedroom-options),.mobile-map-toolbar #filters[data-section="rooms"] .price-filter,.mobile-map-toolbar #filters[data-section="rooms"] fieldset:has(#district-options){display:none}
 .mobile-filter-chips{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;min-height:40px;align-items:center}
 .mobile-filter-chips button{flex:0 0 auto;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid #e2e8df;border-radius:12px;padding:9px 12px;background:#f0f4ee;color:var(--green);font:600 12px Manrope,sans-serif;min-height:38px}
 .mobile-filter-chips button.active{background:#dcebe2;border-color:#98b5a5}
 .map-page main{height:calc(100dvh - 112px)}
 .map-page #sheet-handle{height:44px;padding:14px 18px;gap:0}
 .map-page #sheet-handle .sheet-label{display:none}
 .map-page #panel.has-source-title #sheet-handle{height:80px;gap:10px;padding:10px 18px 14px}
 .map-page #panel.has-source-title .sheet-label{display:block;font-size:clamp(13px,4vw,17px);line-height:1.2;overflow-wrap:anywhere}
 #card-gallery{height:auto!important;min-height:0;overflow:hidden;background:transparent}
 #card-gallery>#open-image,#card-gallery>#detail-video,#card-gallery>#detail-play,#card-gallery>.gallery-arrow,#card-gallery>#photo-count{display:none!important}
 .mobile-photo-rail{display:flex;position:relative;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none;padding:0 14px;scroll-padding:14px;touch-action:pan-x pan-y pinch-zoom}
 .mobile-photo-slide{position:relative;flex:0 0 86%;height:clamp(210px,65vw,300px);padding:0;border:0;border-radius:14px;overflow:hidden;scroll-snap-align:start;background:#e5ede7;touch-action:pan-x pan-y pinch-zoom}
 .mobile-photo-slide:only-child{flex-basis:100%}
 #card-gallery .mobile-photo-slide img{display:block;width:100%;height:100%;max-height:none;object-fit:cover;pointer-events:none}
 .rail-play{position:absolute;inset:0;display:grid;place-items:center;color:white;background:#0003;font-size:32px;pointer-events:none}
}

@media(max-width:760px){
 #image-dialog>.gallery-arrow{display:none}
 #viewer-stage{padding:0}
 .listing-photo-arrow{top:0;bottom:0;transform:none;height:100%;width:28%;border:0;border-radius:0;background:transparent;color:transparent;font-size:0}
 .listing-photo-arrow.prev{left:0}.listing-photo-arrow.next{right:0}
 .listing-photo-arrow:hover{background:transparent}
}

/* Desktop expansion reuses the live catalogue and its current filters. */
.desktop-feed-toggle{display:none}
.section-heading h2{margin-right:auto}
.section-heading .desktop-feed-toggle{margin-left:8px}
@media(min-width:761px){
 .desktop-feed-toggle{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:8px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--green)}
 .desktop-feed-toggle:hover{background:#f0f4ee}
 .desktop-feed-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
 .desktop-feed-toggle .collapse-icon{display:none}
 .feed-expanded .desktop-feed-toggle .expand-icon{display:none}
 .feed-expanded .desktop-feed-toggle .collapse-icon{display:block}
 .section-heading .desktop-feed-toggle{flex-basis:30px;width:30px;height:30px;padding:6px;border-radius:9px}
 .section-heading .desktop-feed-toggle svg{width:17px;height:17px}
 .detail-navigation{display:flex;align-items:center;padding-left:20px}
 .detail-navigation .back-button{padding-left:12px}
 .feed-expanded #panel{width:100%;border-right:0}
 .feed-expanded #overview{max-width:1240px;margin:auto;padding:27px 25px 32px}
 .feed-expanded #listing-list{grid-template-columns:repeat(4,minmax(0,1fr))}
 .feed-expanded #detail{max-width:850px;margin:auto}
 .feed-expanded .detail-footer{position:static}
 .feed-expanded #map,.feed-expanded .map-button,.feed-expanded .map-caption{visibility:hidden}
}
@media(min-width:761px) and (max-width:1100px){.feed-expanded #listing-list{grid-template-columns:repeat(3,minmax(0,1fr))}}
.sort-filter{border:0;padding:0;margin:16px 0 0;min-width:0}
.sort-filter legend{font-size:12px;font-weight:600;margin-bottom:8px}
.sort-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sort-options button{border:1px solid var(--line);border-radius:10px;padding:9px 13px;background:#fffefb;color:var(--green);font-size:12px;font-weight:600}
.sort-options button[aria-pressed="true"]{background:#dcebe2;border-color:#98b5a5}
@media(max-width:760px){
 .mobile-map-toolbar #filters[data-section="sort"] .price-filter,.mobile-map-toolbar #filters[data-section="sort"] .district-filter{display:none}
 .mobile-map-toolbar #filters[data-section="rooms"] .sort-filter,.mobile-map-toolbar #filters[data-section="district"] .sort-filter{display:none}
}

.text-search-filter{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;margin-bottom:16px;color:var(--green)}
.text-search-filter input{width:100%;min-height:40px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:white;font:inherit;font-weight:400;color:var(--green)}
@media(max-width:760px){
 .mobile-map-toolbar #filters:not([data-section="all"]):not([data-section="search"]) .text-search-filter{display:none}
 .mobile-map-toolbar #filters[data-section="search"] .price-filter,.mobile-map-toolbar #filters[data-section="search"] fieldset{display:none}
}

/* Card actions keep the same hit area as Favorites. */
.listing-content .listing-open{position:absolute;right:36px;top:-8px;width:40px;height:40px;padding:0;z-index:1;display:inline-grid;place-items:center;color:#839188}
.listing-content strong{padding-right:80px}
.listing-open:hover{color:var(--green)}
.listing-open:focus-visible{outline:2px solid var(--green);outline-offset:2px;border-radius:8px}
@media(max-width:760px){.listing-content .listing-open{right:34px;top:-10px}}
.contacts a.messenger-contact,.page-contacts a.messenger-contact{background:var(--messenger-color);border-color:var(--messenger-color);color:#fff;text-decoration:none;font-weight:600;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:10px 14px}
.contact-telegram{--messenger-color:#0088cc}
.contact-zalo{--messenger-color:#0068ff}
.contact-whatsapp{--messenger-color:#128c4a}
.messenger-contact:hover{filter:brightness(.92)}
.messenger-contact:focus-visible{outline:2px solid var(--messenger-color);outline-offset:3px}

.detail-share-control{display:flex;flex-direction:column;align-items:flex-end;max-width:100%;gap:6px;align-self:flex-start}
.detail-share-control .share-feedback{padding:0;margin:0;font-size:12px;text-align:right;max-width:220px;overflow-wrap:anywhere}
.detail-share-control #share-url{display:block;width:100%;box-sizing:border-box}
.detail-share-control #share-url[hidden]{display:none}
.detail-share-control #share-listing{align-self:flex-end}

.guide-nav{text-decoration:none;color:inherit}
