/* Round 3 of the search results, listing cards and listing page. Loaded after the pilot and detail styles. */
/* The base theme floats form controls and buttons; these layouts do not want that. */
.bngo-search-bar input,.bngo-search-bar .btn,.bngo-filter-toggle,.bngo-drawer-close,.bngo-search-pilot .filter-panel input,.bngo-search-pilot .filter-panel select,.bngo-search-pilot .filter-panel label,.bngo-filter-actions .btn,.bngo-gallery-nav,.bngo-gallery-thumbs button,.bngo-desc-more,.bngo-share,.bngo-mark select{float:none}
.bngo-range,.bngo-filter-actions,.bngo-item-actions{clear:both}
.bngo-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.bngo-breadcrumb{max-width:1100px;margin:0 auto;padding:0 0 10px;box-sizing:border-box;font-size:13px;color:#58717c}
.bngo-breadcrumb ol{display:flex;gap:6px;margin:0;padding:0;list-style:none;overflow-x:auto;white-space:nowrap;scrollbar-width:none}
.bngo-breadcrumb ol::-webkit-scrollbar{display:none}
.bngo-breadcrumb li+li:before{content:"›";margin-right:6px;color:#9db0b9}
.bngo-breadcrumb a{color:var(--bngo-blue);text-decoration:none}
.bngo-breadcrumb li[aria-current]{overflow:hidden;text-overflow:ellipsis}

/* Search page */
.bngo-search-pilot .section-head{margin-bottom:12px}
.bngo-search-pilot .section-head h1{margin:0}
.bngo-search-pilot .section-head p{margin:4px 0 0;color:#58717c;font-size:14px}
.bngo-search-bar{display:flex;gap:8px;margin:0 0 10px}
.bngo-search-bar input{flex:1;min-width:0;min-height:44px;padding:0 12px;border:1px solid #bdced7;border-radius:8px;background:#fff;font-size:16px;color:#153747;box-sizing:border-box}
.bngo-search-bar .btn{flex:0 0 auto;min-height:44px;padding:0 18px;border-radius:8px;white-space:nowrap}
.bngo-quick-filters,.bngo-filter-toggle,.bngo-drawer-close,.bngo-drawer-backdrop{display:none}
.bngo-search-pilot .filter-panel form{display:block}
.bngo-search-pilot .filter-panel label{display:block;margin:12px 0 4px;font-size:13px;color:#496570}
.bngo-search-pilot .filter-panel label.check{display:flex;align-items:center;gap:8px;min-height:44px;margin:8px 0 0;font-size:14px;color:#153747}
.bngo-search-pilot .filter-panel label.check input{width:18px;height:18px;margin:0}
.bngo-search-pilot .filter-panel input:not([type=checkbox]),.bngo-search-pilot .filter-panel select{width:100%;min-height:42px;margin:0}
.bngo-drawer-head h2{margin:0}
.bngo-range{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 10px;align-items:end}
.bngo-filter-actions{display:flex;flex-direction:column;gap:8px;margin-top:14px}
.bngo-filter-actions .btn{width:100%;min-height:44px}
.bngo-search-pilot .bngo-clear-filters{order:2;margin:0;padding:8px 0;text-align:center}
.bngo-search-pilot .bngo-active-filters:empty{display:none}
.bngo-search-pilot .bngo-active-filters a{display:inline-flex;align-items:center;gap:4px;min-height:32px;box-sizing:border-box;padding:4px 10px;border-radius:999px;text-decoration:none}
.bngo-search-pilot .bngo-sort a{display:inline-flex;align-items:center;min-height:36px;box-sizing:border-box;white-space:nowrap}
.bngo-search-pilot .bngo-sort a.active,.bngo-quick.active{border-color:var(--bngo-blue);background:#e8f5fa;color:var(--bngo-blue)}

/* Empty results */
.bngo-search-pilot .bngo-empty-state{padding:28px 20px;text-align:center}
.bngo-empty-state h2{margin:0 0 6px;font-size:18px;color:#153747}
.bngo-empty-state p{margin:0 0 14px;color:#58717c;font-size:14px;line-height:1.6}
.bngo-empty-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.bngo-empty-actions .btn{display:inline-flex;align-items:center;min-height:44px;padding:0 16px;border-radius:8px;text-decoration:none}
.bngo-empty-actions .btn:not(.primary){border:1px solid #bdced7;background:#fff;color:#24728c}
.bngo-empty-state .bngo-empty-label{margin:20px 0 8px;font-size:13px}
.bngo-empty-cats{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.bngo-empty-cats a{display:inline-flex;align-items:center;min-height:36px;padding:0 12px;border:1px solid #bdced7;border-radius:999px;background:#fff;color:#24728c;font-size:13px;text-decoration:none}

/* Listing cards */
.bngo-search-pilot #listing-card-list .listing-card,.bngo-detail-r2 .similar_ads .listing-card{position:relative;border:1px solid #e3eaee;box-shadow:none}
.bngo-search-pilot #listing-card-list .listing-card:not(.bngo-owned-listing) .title:after,.bngo-detail-r2 .similar_ads .listing-card .title:after{content:"";position:absolute;inset:0}
.bngo-search-pilot #listing-card-list .listing-thumb{overflow:hidden;border-radius:6px;background:#eef2f4}
.bngo-search-pilot .listing-card .title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 4px;color:#153747;font-weight:600;text-decoration:none;white-space:normal}
.bngo-search-pilot .listing-card .listing-attributes{display:block;margin:0}
.bngo-search-pilot .listing-card .currency-value,.bngo-detail-r2 .similar_ads .currency-value{display:block;margin:0 0 2px;padding:0;background:none;color:var(--bngo-price);font-size:18px;font-weight:700;line-height:1.35}
.bngo-search-pilot .bngo-card-facts,.bngo-detail-r2 .similar_ads .bngo-card-facts{margin:2px 0;color:#344054;font-size:13px;font-weight:500}
.bngo-search-pilot .listing-card .listing-details{display:flex;flex-wrap:wrap;gap:0 10px;margin-top:4px;color:#58717c;font-size:13px;line-height:1.5}
.bngo-search-pilot .listing-card .listing-details>*{display:inline;float:none;margin:0;padding:0;border:0}
.bngo-search-pilot .listing-card .listing-details .location{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.bngo-search-pilot #listing-card-list .listing-data{padding:0}
.bngo-search-pilot #listing-card-list .listing-card .listing-detail{padding:0}
.bngo-search-pilot .listing-card .listing-details>*:before,.bngo-search-pilot .listing-card .listing-details>*:after{content:none}
.bngo-search-pilot .listing-card .desc{-webkit-line-clamp:2;margin-top:6px;font-size:13px}

/* Listing page */
.bngo-detail-r2 .main{padding-top:12px}
.bngo-detail-r2 #item-content h1{margin:0 0 8px;font-size:24px;font-weight:600;line-height:1.35}
.bngo-detail-r2 #item-content h2{margin:0 0 10px;font-family:inherit;font-size:17px;font-weight:600;line-height:1.4;color:#153747}
.bngo-detail-r2 .bngo-detail-price{margin:0 0 12px;color:var(--bngo-price)}
.bngo-detail-r2 .item-header{margin:0 0 16px;padding:12px 0 14px;border-bottom:1px solid #e3eaee}
.bngo-detail-r2 .item-header p{margin:0 0 4px}
.bngo-detail-r2 #item_location{color:#153747;font-size:14px}
.bngo-detail-r2 #item_location a{margin-left:6px;color:#24728c;white-space:nowrap}
.bngo-item-meta{display:flex;flex-wrap:wrap;gap:0 14px}

.bngo-gallery{position:relative;margin:0 0 8px;border-radius:8px;overflow:hidden;background:#101c22}
.bngo-gallery-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;aspect-ratio:4/3;max-height:480px;width:100%}
.bngo-gallery-track::-webkit-scrollbar{display:none}
.bngo-gallery-track:focus-visible{outline:3px solid var(--bngo-blue);outline-offset:-3px}
.bngo-gallery-slide{flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always;display:block;min-width:0;height:100%}
.bngo-gallery-slide img{display:block;width:100%;height:100%;object-fit:contain}
.bngo-gallery-count{position:absolute;right:10px;bottom:10px;padding:2px 10px;border-radius:999px;background:rgba(16,28,34,.72);color:#fff;font-size:13px;line-height:1.6}
.bngo-gallery-nav{position:absolute;top:50%;width:44px;height:44px;margin-top:-22px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.9);color:#153747;font-size:26px;line-height:1;cursor:pointer}
.bngo-gallery-nav[hidden]{display:none}
.bngo-gallery-nav:disabled{opacity:.35;cursor:default}
.bngo-gallery-nav.prev{left:10px}
.bngo-gallery-nav.next{right:10px}
.bngo-gallery-thumbs{display:flex;gap:6px;margin:0 0 16px;overflow-x:auto;scrollbar-width:thin}
.bngo-gallery-thumbs button{flex:0 0 72px;height:56px;padding:0;border:2px solid transparent;border-radius:6px;overflow:hidden;background:none;cursor:pointer}
.bngo-gallery-thumbs button[aria-current]{border-color:var(--bngo-blue)}
.bngo-gallery-thumbs img{display:block;width:100%;height:100%;object-fit:cover}

.bngo-detail-r2 #description{display:flow-root;margin:0;padding-bottom:16px}
.bngo-detail-r2 #description>.desc{font-size:15px;line-height:1.8;color:#1f3c49;white-space:normal}
.bngo-detail-r2 #description>.desc.is-clamped{max-height:320px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent)}
.bngo-desc-more{min-height:44px;margin:4px 0 0;padding:0 14px;border:1px solid #bdced7;border-radius:8px;background:#fff;color:#24728c;font-size:14px;cursor:pointer}
.bngo-detail-r2 #custom_fields{margin-top:14px;padding:12px;border-radius:6px;background:#f5f7f8}
.bngo-item-actions{display:flex;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:8px 16px;padding-top:12px;border-top:1px solid #e3eaee}
.bngo-share{min-height:40px;padding:0 16px;border:1px solid #bdced7;border-radius:8px;background:#fff;color:#24728c;font-size:14px;cursor:pointer}
.bngo-share[hidden]{display:none}
.bngo-detail-r2 .bngo-item-actions .bngo-report-link{flex:0 0 auto;width:auto;margin:0 0 0 auto;font-size:13px}
.bngo-detail-r2 .bngo-item-actions .bngo-report-link a{display:inline-flex;align-items:center;min-height:40px;color:#58717c}

.bngo-detail-r2 #sidebar{float:right}
.bngo-detail-r2 #sidebar>.price{display:block;float:none;width:auto;margin:0;padding:16px 16px 8px;border:1px solid #e3eaee;border-bottom:0;border-radius:8px 8px 0 0;background:#fff;color:var(--bngo-price);font-size:22px;line-height:1.35;text-align:left}
.bngo-detail-r2 #sidebar>.price+#contact,.bngo-detail-r2 #sidebar>.price+.ads_300+#contact{margin-top:0;padding-top:4px;border-top:0;border-radius:0 0 8px 8px}
.bngo-detail-r2 #sidebar #contact{position:relative;display:flex;flex-wrap:wrap;align-items:center;gap:0 10px;float:none;margin:0 0 12px;padding:16px}
.bngo-detail-r2 #sidebar #contact h2{flex:0 0 100%;margin:0 0 8px;font-size:13px;font-weight:400;color:#58717c}
.bngo-detail-r2 #sidebar #contact p.user-img{flex:0 0 44px;margin:0}
.bngo-detail-r2 #sidebar #contact p.user-img img{display:block;width:44px;height:44px;margin:0;border-radius:50%;object-fit:cover}
.bngo-detail-r2 #sidebar #contact p.name{flex:1;min-width:0;margin:0;overflow-wrap:anywhere}
.bngo-detail-r2 #sidebar #contact p.name>span:first-child{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.bngo-detail-r2 #sidebar .bngo-contact-actions{flex:0 0 100%;flex-direction:column;margin:12px 0 0}
.bngo-detail-r2 #sidebar .bngo-contact-actions a{width:100%;box-sizing:border-box;text-decoration:none}
.bngo-detail-r2 #sidebar #useful_info{float:none;clear:both;margin:0 0 12px}
.bngo-detail-r2 #useful_info h2{margin:0 0 8px;font-size:15px;line-height:1.4}
.bngo-detail-r2 #useful_info ul{margin:0;padding-left:18px;font-size:13px;line-height:1.6;color:#496570}
.bngo-mark{margin:0 0 12px;font-size:13px;color:#58717c}
.bngo-mark summary{padding:10px 0;cursor:pointer}
.bngo-detail-r2 #sidebar .bngo-mark select{width:100%;height:42px;background:#fff}

.bngo-detail-r2 .similar_ads{clear:both;margin:0;padding:16px;background:#fff}
.bngo-detail-r2 .similar_ads:before{content:"";display:table;clear:both}
.bngo-similar-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
.bngo-detail-r2 .similar_ads h2{margin:0;font-family:inherit;font-size:17px;font-weight:600}
.bngo-similar-head a{color:#24728c;font-size:13px;white-space:nowrap}
.bngo-detail-r2 .similar_ads #listing-card-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:100%;margin:0;padding:0;list-style:none}
.bngo-detail-r2 .similar_ads #listing-card-list .listing-card{float:none;width:auto;min-width:0;margin:0;padding:0;border-radius:8px;overflow:hidden;background:#fff}
.bngo-detail-r2 .similar_ads .listing-thumb{display:block;float:none;width:100%;height:auto;aspect-ratio:4/3;margin:0;border:0;background:#eef2f4}
.bngo-detail-r2 .similar_ads .listing-thumb img{display:block;width:100%;height:100%;border-radius:0;object-fit:cover}
.bngo-detail-r2 .similar_ads .listing-detail,.bngo-detail-r2 .similar_ads .listing-cell,.bngo-detail-r2 .similar_ads .listing-data,.bngo-detail-r2 .similar_ads .listing-basicinfo{display:block;float:none;width:auto;min-width:0;margin:0;padding:0}
.bngo-detail-r2 .similar_ads .listing-card .listing-detail{padding:0}
.bngo-detail-r2 .similar_ads .listing-data{padding:10px}
.bngo-detail-r2 .similar_ads .listing-basicinfo a.title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;width:auto;margin:0 0 4px;overflow:hidden;color:#153747;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;white-space:normal}
.bngo-detail-r2 .similar_ads .currency-value{font-size:15px}
.bngo-detail-r2 .similar_ads .listing-details .category,.bngo-detail-r2 .similar_ads .desc{display:none}
.bngo-detail-r2 .similar_ads .listing-details .location,.bngo-detail-r2 .similar_ads .listing-details .date{display:block;color:#58717c;font-size:12px;line-height:1.5}

@media(min-width:761px){
 .bngo-detail-r2 #sidebar{position:sticky;top:76px}
 .bngo-detail-r2 .similar_ads{margin-top:16px}
}
@media(max-width:760px){
 .bngo-breadcrumb{padding:8px 12px 6px;font-size:12px}
 .bngo-search-pilot .main{padding-left:0;padding-right:0;padding-top:0}
 .bngo-search-pilot .section{margin:10px 12px 16px}
 .bngo-search-pilot .section-head{display:block;margin-bottom:8px}
 .bngo-search-pilot .section-head>div{display:flex;flex-wrap:wrap;align-items:baseline;gap:0 8px}
 .bngo-search-pilot h1,.bngo-search-pilot .section-head h1{font-size:19px;line-height:1.35}
 .bngo-search-pilot .section-head p{margin:0;font-size:12px}
 .bngo-search-bar{margin-bottom:8px}

 /* Without JS the panel stays in the page, so every filter is still reachable. */
 .bngo-quick-filters{display:flex;gap:6px;margin:0 -12px 8px;padding:0 12px;overflow-x:auto;scrollbar-width:none}
 .bngo-quick-filters::-webkit-scrollbar,.bngo-search-pilot .bngo-sort::-webkit-scrollbar,.bngo-search-pilot .bngo-active-filters::-webkit-scrollbar{display:none}
 .bngo-quick,.bngo-filter-toggle{flex:0 0 auto;align-items:center;gap:4px;min-height:40px;padding:0 12px;border:1px solid #bdced7;border-radius:999px;background:#fff;color:#24728c;font-size:14px;line-height:1;white-space:nowrap;text-decoration:none;box-sizing:border-box}
 .bngo-quick{display:inline-flex}
 .bngo-js .bngo-filter-toggle{display:inline-flex;font-weight:600;color:#153747;cursor:pointer}
 .bngo-filter-toggle b{display:inline-block;min-width:18px;padding:2px 4px;border-radius:999px;background:var(--bngo-blue);color:#fff;font-size:12px;text-align:center;box-sizing:border-box}
 .bngo-search-pilot .bngo-active-filters{flex-wrap:nowrap;margin:0 -12px 8px;padding:0 12px;overflow-x:auto;scrollbar-width:none}
 .bngo-search-pilot .bngo-active-filters a{flex:0 0 auto;max-width:80%;white-space:nowrap}
 .bngo-search-pilot .bngo-active-filters a.bngo-chip-quick{display:none}
 .bngo-search-pilot .bngo-active-filters:not(:has(a:not(.bngo-chip-quick))){display:none}
 .bngo-search-pilot .bngo-sort{flex-wrap:nowrap;margin:0 -12px 8px;padding:0 12px;overflow-x:auto;scrollbar-width:none}
 .bngo-search-pilot .bngo-sort a{flex:0 0 auto;padding:0 10px;font-size:13px}
 .bngo-search-pilot .list-layout{display:block}

 .bngo-search-pilot .filter-panel{margin-bottom:12px}
 .bngo-js.bngo-drawer-open,.bngo-js.bngo-drawer-open body{overflow:hidden}
 .bngo-js .bngo-drawer-backdrop.is-open{display:block;position:fixed;inset:0;z-index:999;background:rgba(16,28,34,.5)}
 .bngo-js .bngo-search-pilot .filter-panel,.bngo-js body.bngo-search-pilot .filter-panel{position:fixed;left:0;right:0;bottom:0;z-index:1000;max-height:88vh;max-height:88dvh;margin:0;padding:0 16px;overflow-y:auto;overscroll-behavior:contain;border:0;border-radius:14px 14px 0 0;visibility:hidden;transform:translateY(100%);transition:transform .2s ease,visibility .2s}
 .bngo-js body.bngo-search-pilot .filter-panel.is-open{visibility:visible;transform:none;transition:transform .2s ease,visibility 0s}
 .bngo-js .bngo-drawer-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:0 -16px;padding:8px 8px 8px 16px;border-bottom:1px solid #e3eaee;background:#fff}
 .bngo-js .bngo-drawer-close{display:block;width:44px;height:44px;padding:0;border:0;background:none;color:#153747;font-size:26px;line-height:1;cursor:pointer}
 .bngo-js .bngo-filter-actions{position:sticky;bottom:0;z-index:2;flex-direction:row;align-items:center;margin:12px -16px 0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-top:1px solid #e3eaee;background:#fff}
 .bngo-js .bngo-filter-actions .btn{flex:1;width:auto}
 .bngo-js body.bngo-search-pilot .bngo-clear-filters{order:0;flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;max-width:45%;padding:0 4px;font-size:13px;text-align:left}
 .bngo-search-pilot .filter-panel input:not([type=checkbox]),.bngo-search-pilot .filter-panel select{min-height:44px;font-size:16px}
 .bngo-search-pilot .bnlife-search-alert{margin:12px 0 16px}

 .bngo-search-pilot #listing-card-list .listing-card{padding:10px;margin:0 0 8px}
 .bngo-search-pilot #listing-card-list .listing-card .listing-thumb{float:left;width:112px;height:112px;margin:0 10px 0 0}
 .bngo-search-pilot #listing-card-list .listing-card .listing-thumb img{width:112px;height:112px;object-fit:cover}
 .bngo-search-pilot #listing-card-list .listing-card .listing-detail{margin-left:122px}
 .bngo-search-pilot #listing-card-list .listing-card:after{content:"";display:block;clear:both}
 .bngo-search-pilot .listing-card .title{font-size:15px;line-height:1.4}
 .bngo-search-pilot .listing-card .currency-value{font-size:17px}
 .bngo-search-pilot .listing-card:not(.bngo-owned-listing) .desc,.bngo-search-pilot .listing-card .listing-details .category{display:none}
 .bngo-search-pilot .listing-card .listing-details{font-size:12px;margin-top:2px}

 /* The contact bar replaces the tab bar on a listing, as a single set of counted buttons. */
 body.bngo-detail-r2:has(.bngo-contact-actions) .bottom-nav{display:none}
 .bngo-detail-r2 #sidebar #contact .bngo-contact-actions{position:fixed;left:0;right:0;bottom:0;z-index:60;flex-direction:row;flex-wrap:nowrap;gap:8px;margin:0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #e3eaee;box-shadow:0 -2px 10px rgba(16,28,34,.08)}
 .bngo-detail-r2 #sidebar #contact .bngo-contact-actions a{width:auto;min-height:46px;min-width:0;font-size:15px}
 .bngo-detail-r2 .main{padding:8px 0 20px}
 .bngo-detail-r2 #item-content{padding:0 12px 14px;border-width:0 0 1px;border-radius:0}
 .bngo-detail-r2 #item-content h1{font-size:20px}
 .bngo-gallery{margin:0 -12px 12px;border-radius:0}
 .bngo-gallery-track{max-height:none}
 .bngo-gallery-nav,.bngo-gallery-thumbs{display:none}
 .bngo-detail-r2 #sidebar{float:none;width:auto;margin:8px 12px 0}
 .bngo-detail-r2 #sidebar>.price{display:none}
 .bngo-detail-r2 #sidebar>.price+#contact,.bngo-detail-r2 #sidebar>.price+.ads_300+#contact{padding-top:16px;border-top:1px solid #e3eaee;border-radius:8px}
 .bngo-detail-r2 .similar_ads{margin:0 12px;padding:14px 12px}
 .bngo-detail-r2 .similar_ads #listing-card-list{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:2px}
 .bngo-detail-r2 .similar_ads #listing-card-list::-webkit-scrollbar{display:none}
 .bngo-detail-r2 .similar_ads #listing-card-list .listing-card{flex:0 0 66%;scroll-snap-align:start}
}
@media(prefers-reduced-motion:reduce){.bngo-search-pilot .filter-panel{transition:none!important}}
