:root{--jhb-blue:#1677ff;--jhb-blue-dark:#0f4fbf;--jhb-red:#f04438;--jhb-ink:#172033;--jhb-muted:#667085;--jhb-line:#e6edf5;--jhb-bg:#f5f7fb;--jhb-green:#12b76a}
html,input,select,textarea,button{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei","PingFang SC",Arial,sans-serif}
body{background:var(--jhb-bg);color:var(--jhb-ink)}
a{color:inherit}
.wrapper{max-width:1180px}
.jhb-header{background:#fff;border-bottom:1px solid var(--jhb-line);box-shadow:0 2px 10px rgba(23,32,51,.04)}
.jhb-header .wrapper{padding:0 18px}
.jhb-nav{height:72px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.jhb-brand{display:flex;align-items:center;gap:12px;text-decoration:none;min-width:220px}
.jhb-logo-mark{width:42px;height:42px;border-radius:8px;background:linear-gradient(135deg,var(--jhb-blue),#36bffa);color:#fff;display:flex;align-items:center;justify-content:center;font-size:22px;font-weight:800}
.jhb-brand strong{display:block;font-size:22px;line-height:24px;color:var(--jhb-ink)}
.jhb-brand em{display:block;font-style:normal;font-size:12px;color:var(--jhb-muted);margin-top:3px}
.jhb-links{display:flex;align-items:center;justify-content:flex-end;gap:4px;float:none;width:auto}
.jhb-links a{height:38px;line-height:38px;padding:0 12px;border-radius:6px;text-decoration:none;color:#344054;font-size:15px}
.jhb-links a:hover{background:#eef5ff;color:var(--jhb-blue)}
.jhb-links a.publish{background:var(--jhb-blue);color:#fff;font-weight:700;margin-left:8px}
.jhb-links a.publish:hover{background:var(--jhb-blue-dark);color:#fff}
.jhb-hero{background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%);padding:34px 0 26px;border-bottom:1px solid var(--jhb-line)}
.jhb-hero-grid{display:grid;grid-template-columns:minmax(0,1fr) 460px;gap:36px;align-items:center}
.jhb-kicker{display:inline-flex;color:var(--jhb-blue);font-weight:700;background:#eaf3ff;border:1px solid #cce2ff;border-radius:999px;padding:7px 12px;font-size:14px}
.jhb-hero h1{font-size:48px;line-height:56px;margin:18px 0 12px;color:var(--jhb-ink);letter-spacing:0}
.jhb-hero p{font-size:18px;line-height:30px;color:#475467;max-width:650px}
.jhb-hero-tags{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.jhb-hero-tags span{background:#fff;border:1px solid var(--jhb-line);border-radius:999px;padding:8px 12px;color:#344054}
.jhb-search-card{background:#fff;border:1px solid var(--jhb-line);border-radius:8px;box-shadow:0 18px 46px rgba(22,119,255,.13);padding:24px}
.jhb-search-card strong{display:block;font-size:20px;margin-bottom:16px}
.jhb-search-card .main-search{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.jhb-search-card .cell{width:auto;padding:0}
.jhb-search-card .c1,.jhb-search-card .c3{grid-column:1/-1}
.jhb-search-card label{font-size:14px;color:#344054;margin-bottom:6px}
.jhb-search-card input,.jhb-search-card select{width:100%;height:46px;border:1px solid #d0d5dd;border-radius:6px;margin:0;padding:0 12px;font-size:15px}
.jhb-search-card .btn{width:100%;height:48px;border-radius:6px;background:var(--jhb-blue);border-color:var(--jhb-blue);font-size:17px;font-weight:700}
.jhb-page{padding-top:28px}
.home #content{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.home #main,.home #sidebar{float:none;width:auto}
.home-latest,.jhb-section,.jhb-city-box,.jhb-notice{background:#fff;border:1px solid var(--jhb-line);border-radius:8px;padding:22px;box-shadow:0 8px 28px rgba(23,32,51,.04)}
.home-latest{margin-bottom:24px}
.home-latest h2,.jhb-section-head h2,.jhb-city-box h2{font-size:22px;line-height:28px;margin:0 0 16px;color:var(--jhb-ink)}
.jhb-section-head span{display:block;color:var(--jhb-blue);font-size:14px;font-weight:700;margin-bottom:6px}
#home-cats h2{display:none}
#home-cats .wrap{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
#home-cats .wrap a{border:1px solid var(--jhb-line);border-radius:8px;background:#fbfdff;padding:18px;text-align:left;text-decoration:none;min-height:132px}
#home-cats .wrap a:hover{border-color:#b7d6ff;box-shadow:0 10px 24px rgba(22,119,255,.1)}
#home-cats .icon{font-size:26px;margin-bottom:14px;color:var(--jhb-blue)}
#home-cats strong{font-size:18px;color:var(--jhb-ink)}
#home-cats em{display:block;font-style:normal;color:var(--jhb-muted);margin-top:8px}
.jhb-guide{margin-top:24px}
.jhb-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.jhb-guide-grid div{border:1px solid var(--jhb-line);border-radius:8px;padding:18px;background:#fff}
.jhb-guide-grid strong{font-size:17px}
.jhb-guide-grid p{color:var(--jhb-muted);line-height:24px;margin-top:8px}
.listing-card-list{display:grid;grid-template-columns:1fr!important;gap:12px}
.listing-card{border:1px solid var(--jhb-line)!important;border-radius:8px!important;background:#fff!important;padding:16px!important;margin:0!important;box-shadow:none!important}
.listing-card:hover{border-color:#b7d6ff!important;box-shadow:0 10px 26px rgba(23,32,51,.08)!important}
.listing-thumb{display:none!important}
.listing-detail,.listing-cell,.listing-data,.listing-basicinfo{width:100%!important;float:none!important;padding:0!important}
.listing-basicinfo .title{font-size:18px!important;line-height:26px!important;color:var(--jhb-ink)!important;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-decoration:none}
.listing-attributes{margin:10px 0!important}
.listing-details{display:flex!important;flex-wrap:wrap;gap:8px}
.listing-details span{background:#f2f6fb;border:1px solid var(--jhb-line);border-radius:999px;padding:4px 9px;color:#475467;font-size:13px}
.listing-details .category{color:var(--jhb-blue);background:#eef5ff;border-color:#d8eaff}
.listing-basicinfo .desc{font-size:14px!important;line-height:23px!important;color:#667085!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.jhb-city-box{padding:20px}
.jhb-city-box .wrap{display:grid;gap:8px}
.jhb-city-box a{display:flex;align-items:center;justify-content:space-between;gap:8px;text-decoration:none;border-bottom:1px dashed var(--jhb-line);padding:8px 0;color:#344054}
.jhb-city-box a:hover{color:var(--jhb-blue)}
.jhb-city-box em{font-style:normal;background:#eef5ff;color:var(--jhb-blue);border-radius:999px;padding:2px 8px}
.jhb-notice{margin-top:18px;background:#fffdf7;border-color:#f6df9f}
.jhb-notice strong{font-size:17px;color:#8a5a00}
.jhb-notice p{line-height:24px;color:#7a5b16;margin-top:8px}
.jhb-footer{background:#111827;color:#d0d5dd;margin-top:40px;padding:34px 0 20px}
.jhb-foot-grid{display:flex;justify-content:space-between;gap:24px;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:24px}
.jhb-foot-grid strong{display:block;color:#fff;font-size:20px;margin-bottom:8px}
.jhb-foot-grid p{color:#98a2b3;line-height:24px}
.jhb-foot-links{display:flex;flex-wrap:wrap;gap:12px;justify-content:flex-end}
.jhb-foot-links a{color:#d0d5dd;text-decoration:none}
.jhb-foot-links a:hover{color:#fff}
.jhb-copy{color:#98a2b3;margin-top:18px;font-size:13px}
body.search #content,body.item #content,body.page #content{background:#fff;border:1px solid var(--jhb-line);border-radius:8px;padding:22px}
@media(max-width:900px){.jhb-nav{height:auto;min-height:68px}.jhb-links{display:none}.jhb-hero-grid,.home #content{grid-template-columns:1fr}.jhb-hero h1{font-size:38px;line-height:46px}#home-cats .wrap,.jhb-guide-grid{grid-template-columns:1fr 1fr}.jhb-search-card .main-search{grid-template-columns:1fr}.jhb-foot-grid{display:block}.jhb-foot-links{justify-content:flex-start;margin-top:18px}}
@media(max-width:560px){.jhb-header .wrapper{padding:0 12px}.jhb-brand{min-width:0}.jhb-brand em{display:none}.jhb-hero{padding:24px 0 18px}.jhb-hero h1{font-size:32px;line-height:40px}.jhb-hero p{font-size:16px;line-height:26px}.jhb-search-card{padding:18px}#home-cats .wrap,.jhb-guide-grid{grid-template-columns:1fr}.home-latest,.jhb-section,.jhb-city-box,.jhb-notice{padding:18px}.jhb-page{padding-top:18px}}

.home-latest{grid-column:1/-1;}

/* Phase 2: module-level layout fixes */
html,body{max-width:100%;overflow-x:hidden}
.wrapper{width:100%!important;max-width:1180px!important;margin-left:auto!important;margin-right:auto!important;padding-left:18px!important;padding-right:18px!important}
.jhb-nav,.jhb-links{min-width:0}
.jhb-links{flex-wrap:nowrap;white-space:nowrap}
.jhb-links a{flex:0 0 auto}
@media(max-width:1180px){.jhb-links a{padding:0 8px;font-size:14px}.jhb-brand{min-width:170px}.jhb-brand em{display:none}}

body.search #content,body.item #content,body.page #content{background:transparent;border:0;border-radius:0;padding:0}
body.search #main,body.item #main{float:none;width:auto}
body.search #content{display:block}
.jhb-list-page{background:#fff;border:1px solid var(--jhb-line);border-radius:8px;padding:22px;box-shadow:0 8px 28px rgba(23,32,51,.04)}
.jhb-list-hero{display:grid;grid-template-columns:minmax(0,1fr) 520px;gap:24px;align-items:end;border-bottom:1px solid var(--jhb-line);padding-bottom:22px;margin-bottom:20px}
.jhb-list-hero span{color:var(--jhb-blue);font-weight:700}
.jhb-list-hero h1{font-size:30px;line-height:38px;margin:8px 0;color:var(--jhb-ink)}
.jhb-list-hero p{color:var(--jhb-muted);line-height:24px}
.jhb-inline-search{display:grid;grid-template-columns:1fr 150px 110px 92px;gap:8px}
.jhb-inline-search input,.jhb-inline-search select{width:100%;height:42px;border:1px solid #d0d5dd;border-radius:6px;margin:0;padding:0 10px}
.jhb-inline-search button{height:42px;border-radius:6px}
.jhb-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;color:#475467}
.jhb-list-title{font-size:22px!important;line-height:28px!important;margin:0 0 14px!important}
.jhb-empty{background:#f8fbff;border:1px dashed #b7d6ff;border-radius:8px;padding:28px;text-align:center;color:#475467}
.paginate{display:flex;flex-wrap:wrap;gap:6px;margin-top:20px}
.paginate a,.paginate span{min-width:34px;height:34px;border:1px solid #b7d6ff;border-radius:4px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;background:#fff;color:var(--jhb-blue)}
.paginate .searchPaginationSelected,.paginate span{background:var(--jhb-blue);color:#fff}

body.item #content{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px;align-items:start}
.jhb-item,.jhb-item-sidebar{background:#fff;border:1px solid var(--jhb-line);border-radius:8px;padding:22px;box-shadow:0 8px 28px rgba(23,32,51,.04)}
.jhb-item-head{border-bottom:1px solid var(--jhb-line);padding-bottom:18px;margin-bottom:18px}
.jhb-item-head>span{display:inline-block;background:#eef5ff;border:1px solid #d8eaff;color:var(--jhb-blue);border-radius:999px;padding:5px 10px;font-weight:700}
.jhb-item h1{font-size:28px!important;line-height:38px!important;margin:14px 0!important;color:var(--jhb-ink)!important;font-weight:800!important;word-break:break-word!important;overflow-wrap:anywhere!important}
.jhb-item-meta{display:flex;flex-wrap:wrap;gap:8px}
.jhb-item-meta em{font-style:normal;background:#f2f6fb;border:1px solid var(--jhb-line);border-radius:999px;padding:5px 10px;color:#475467}
.jhb-item-body h2,.jhb-related h2,.jhb-contact-box h2,.jhb-safe-box h2{font-size:20px!important;line-height:28px!important;margin:0 0 14px!important;color:var(--jhb-ink)!important}
.jhb-item-body .desc{font-size:16px!important;line-height:30px!important;color:#344054!important;white-space:pre-wrap;word-break:break-word;overflow-wrap:anywhere}
.jhb-item-body .contact_button{display:flex;gap:10px;margin:18px 0}
.jhb-item-body .item-views{color:var(--jhb-muted);font-size:14px;margin-top:10px}
.jhb-related{margin-top:22px;border-top:1px solid var(--jhb-line);padding-top:20px}
.jhb-item-sidebar{float:none!important;width:auto!important}
.jhb-contact-box,.jhb-safe-box{background:#fff!important;border:0!important;padding:0!important;margin:0!important}
.jhb-contact-box p{display:block;margin:0 0 10px;color:#344054;line-height:24px}
.jhb-contact-box span{font-weight:700}
.jhb-contact-box .phone a{font-size:18px;color:var(--jhb-red);font-weight:800;text-decoration:none}
.jhb-contact-box .btn{width:100%;height:42px;line-height:42px;border-radius:6px;margin:8px 0 0;text-align:center}
.jhb-safe-box{border-top:1px solid var(--jhb-line)!important;margin-top:22px!important;padding-top:20px!important}
.jhb-safe-box ul{display:block;list-style:disc;padding-left:18px;color:#667085;line-height:24px}
.jhb-safe-box li{margin-bottom:8px}
#comments{display:none!important}
#mask_as_form{display:none!important}

@media(max-width:900px){
  .wrapper{padding-left:14px!important;padding-right:14px!important}
  .jhb-header .wrapper{padding-left:14px!important;padding-right:14px!important}
  .jhb-links{display:none}
  .jhb-hero-grid,.home #content,.jhb-list-hero,body.item #content{grid-template-columns:1fr}
  .home-latest{grid-column:auto}
  .jhb-inline-search{grid-template-columns:1fr 1fr}
  .jhb-inline-search input:first-child,.jhb-inline-search button{grid-column:1/-1}
}
@media(max-width:560px){
  .wrapper{padding-left:10px!important;padding-right:10px!important}
  .jhb-page{padding-top:10px}
  .jhb-hero-grid{gap:18px}
  .jhb-search-card .main-search{display:block}
  .jhb-search-card .cell{margin-bottom:12px}
  .listing-card-list{width:100%!important;display:block!important}
  .listing-card{width:100%!important;max-width:100%!important;margin:0 0 12px!important}
  .listing-basicinfo .title{font-size:16px!important;line-height:23px!important}
  .listing-details span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .jhb-list-page,.jhb-item,.jhb-item-sidebar{padding:16px}
  .jhb-list-hero h1{font-size:24px;line-height:32px}
  .jhb-inline-search{grid-template-columns:1fr}
  .jhb-inline-search input:first-child,.jhb-inline-search button{grid-column:auto}
  .jhb-list-toolbar{display:block}
  .jhb-list-toolbar .see_by{margin-top:10px}
  .jhb-item h1{font-size:22px!important;line-height:31px!important}
  .jhb-item-body .desc{font-size:15px!important;line-height:28px!important}
  .jhb-footer{margin-top:24px}
}

/* Phase 3: hard reset Osclass fixed/grid widths */
#content{min-width:0!important}
#content>*,
#main,
#sidebar,
.home-latest,
#home-cats,
.jhb-section,
.jhb-sidebar,
.jhb-item,
.jhb-item-sidebar,
.similar_ads,
.jhb-related{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

.listing-card-list,
.listing-card,
.listing-detail,
.listing-cell,
.listing-data,
.listing-basicinfo{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

.listing-thumb{display:none!important}
.listing-detail,
.listing-cell,
.listing-data,
.listing-basicinfo{display:block!important;float:none!important;width:100%!important;margin:0!important;padding:0!important}

@media(max-width:900px){
  .home #content,
  body.item #content{display:grid!important;grid-template-columns:minmax(0,1fr)!important}
  .home #content>*,
  body.item #content>*,
  #main,
  #sidebar,
  .home-latest,
  #home-cats,
  .jhb-section,
  .jhb-sidebar,
  .jhb-item,
  .jhb-item-sidebar{width:100%!important;min-width:0!important;max-width:100%!important;float:none!important;grid-column:1/-1!important}
  .listing-card-list{width:100%!important;display:grid!important;grid-template-columns:minmax(0,1fr)!important}
}

@media(max-width:560px){
  #content{width:100%!important;max-width:100%!important}
  #content>*{width:100%!important;max-width:100%!important}
  .home-latest,
  #home-cats,
  .jhb-guide,
  .jhb-city-box,
  .jhb-notice{margin-left:0!important;margin-right:0!important}
  .listing-card{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
  .listing-detail,
  .listing-cell,
  .listing-data,
  .listing-basicinfo{display:block!important;width:100%!important;min-width:0!important;max-width:100%!important}
}

/* Phase 4: homepage information platform polish */
.jhb-header .jhb-links a.publish,
header .jhb-links a.publish,
body .jhb-links .publish{background:var(--jhb-blue)!important;border-color:var(--jhb-blue)!important;color:#fff!important;border-radius:6px!important;font-weight:700!important}
.jhb-header .jhb-links a.publish:hover,
header .jhb-links a.publish:hover{background:var(--jhb-blue-dark)!important;border-color:var(--jhb-blue-dark)!important;color:#fff!important}

.home-latest .listing-card-list{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important;width:100%!important}
.home-latest .listing-card{width:auto!important;min-height:126px!important;height:auto!important;float:none!important;padding:16px!important}
.home-latest .listing-basicinfo .title{font-size:16px!important;line-height:24px!important;-webkit-line-clamp:2}
.home-latest .listing-basicinfo .desc{display:block!important;-webkit-line-clamp:2;font-size:13px!important;line-height:21px!important}

@media(max-width:1100px){
  .home-latest .listing-card-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:560px){
  .home-latest .listing-card-list{grid-template-columns:minmax(0,1fr)!important}
  .home-latest .listing-card{min-height:auto!important}
}

/* Phase 5: related listing cards */
.jhb-related .listing-card-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:12px!important;width:100%!important}
.jhb-related .listing-card{width:100%!important;float:none!important;min-height:auto!important}

/* Account and contact pages */
.jhb-form-page{display:grid;grid-template-columns:minmax(0,1fr) 480px;gap:32px;align-items:start;background:#fff;border:1px solid var(--jhb-line);border-radius:8px;padding:30px;box-shadow:0 8px 28px rgba(23,32,51,.04)}
.jhb-form-intro span{display:inline-block;color:var(--jhb-blue);font-weight:700;background:#eef5ff;border:1px solid #d8eaff;border-radius:999px;padding:6px 10px}
.jhb-form-intro h1{font-size:32px;line-height:42px;margin:16px 0 12px;color:var(--jhb-ink)}
.jhb-form-intro p{font-size:16px;line-height:28px;color:#475467;max-width:560px}
.jhb-form-tips{margin-top:22px;border:1px solid var(--jhb-line);border-radius:8px;background:#f8fbff;padding:16px}
.jhb-form-tips strong{display:block;color:var(--jhb-ink);font-size:17px;margin-bottom:8px}
.jhb-form-tips em{font-style:normal;color:var(--jhb-muted);line-height:24px}
.jhb-form-card{max-width:none!important;width:100%!important;padding:24px!important;border:1px solid var(--jhb-line);border-radius:8px;background:#fff}
.jhb-form-card .header h1{font-size:24px!important;line-height:32px!important;margin:0 0 18px!important}
.jhb-form-card.form-horizontal label{width:100%!important;float:none!important;text-align:left!important;padding:0!important;margin:0 0 6px!important;font-weight:700;color:#344054}
.jhb-form-card.form-horizontal .controls{width:100%!important;float:none!important}
.jhb-form-card input[type="text"],.jhb-form-card input[type="password"],.jhb-form-card input[type="email"],.jhb-form-card textarea{width:100%!important;border:1px solid #d0d5dd!important;border-radius:6px!important;margin:0!important}
.jhb-form-card textarea{min-height:130px}
.jhb-form-card .control-group{margin-bottom:16px!important}
.jhb-form-card .btn-primary{width:100%;height:44px;border-radius:6px;background:var(--jhb-blue);border-color:var(--jhb-blue);font-weight:700}
.jhb-form-card .act{display:flex;justify-content:space-between;gap:12px}
.jhb-form-card .act a{color:var(--jhb-blue);text-decoration:none}
@media(max-width:900px){.jhb-form-page{grid-template-columns:1fr;padding:22px}.jhb-form-intro h1{font-size:28px;line-height:36px}}
@media(max-width:560px){.jhb-form-page{padding:16px;gap:18px}.jhb-form-intro h1{font-size:24px;line-height:32px}.jhb-form-card{padding:18px!important}}

/* Publish page */
.jhb-post-page{display:grid;grid-template-columns:320px minmax(0,1fr);gap:28px;align-items:start;background:#fff;border:1px solid var(--jhb-line);border-radius:8px;padding:30px;box-shadow:0 8px 28px rgba(23,32,51,.04)}
.jhb-post-card{width:100%!important;background:#fff;border:1px solid var(--jhb-line);border-radius:8px;padding:24px!important}
.jhb-post-card .header h1{font-size:24px!important;line-height:32px!important;margin:0 0 18px!important}
.jhb-post-card h2{font-size:20px!important;line-height:28px!important;margin:24px 0 14px!important;padding:0!important;color:var(--jhb-ink)!important}
.jhb-post-card h2.gen{margin-top:0!important}
.jhb-post-card.form-horizontal label{width:100%!important;float:none!important;text-align:left!important;padding:0!important;margin:0 0 6px!important;font-weight:700;color:#344054}
.jhb-post-card.form-horizontal .controls{width:100%!important;float:none!important}
.jhb-post-card .control-group,.jhb-post-card .box{width:100%!important;float:none!important;clear:both;margin-bottom:16px!important}
.jhb-post-card input[type="text"],.jhb-post-card input[type="password"],.jhb-post-card input[type="email"],.jhb-post-card select,.jhb-post-card textarea{width:100%!important;max-width:100%!important;border:1px solid #d0d5dd!important;border-radius:6px!important;margin:0!important}
.jhb-post-card textarea{min-height:220px}
.jhb-post-card .control-group-price .controls{display:grid;grid-template-columns:minmax(0,1fr) 140px;gap:10px}
.jhb-post-card .checkbox{display:flex;align-items:center;gap:8px}
.jhb-post-card .checkbox label{width:auto!important;margin:0!important;font-weight:400}
.jhb-post-card .pblbt,.jhb-post-card .recpt{padding-left:0!important}
.jhb-post-card .pbl{height:46px;border-radius:6px;background:var(--jhb-blue);border-color:var(--jhb-blue);font-weight:700;min-width:180px}
@media(max-width:900px){.jhb-post-page{grid-template-columns:1fr;padding:22px}.jhb-post-card{padding:20px!important}}
@media(max-width:560px){.jhb-post-page{padding:16px;gap:18px}.jhb-post-card{padding:16px!important}.jhb-post-card .control-group-price .controls{grid-template-columns:1fr}.jhb-post-card .pbl{width:100%}}

/* Search/list polish */
.jhb-list-toolbar .see_by label{color:var(--jhb-blue);font-weight:700}
.jhb-list-toolbar .see_by ul a{white-space:nowrap}
.jhb-card-action{margin-top:12px}
.jhb-card-action a{display:inline-flex;align-items:center;justify-content:center;height:30px;padding:0 12px;border-radius:6px;background:#eef5ff;color:var(--jhb-blue);font-weight:700;text-decoration:none}
.jhb-card-action a:hover{background:var(--jhb-blue);color:#fff}
.jhb-list-page .listing-card{padding:18px!important}
.jhb-list-page .listing-basicinfo .title{font-size:18px!important;line-height:27px!important}
.jhb-list-page .listing-basicinfo .desc{margin-top:8px!important;color:#667085!important}
@media(max-width:560px){
  .jhb-list-toolbar .see_by{width:100%;margin-top:10px}
  .jhb-list-toolbar .see_by label{display:flex;justify-content:space-between}
  .jhb-list-page .listing-basicinfo .title{font-size:15px!important;line-height:22px!important}
  .jhb-card-action a{width:100%}
}

/* Search form full-width layout */
.jhb-list-hero{display:block!important}
.jhb-inline-search{margin-top:18px!important;display:grid!important;grid-template-columns:minmax(0,2fr) 180px 150px 110px!important;gap:10px!important;width:100%!important}
.jhb-inline-search button{width:100%!important;min-width:0!important}
@media(max-width:700px){
  .jhb-inline-search{grid-template-columns:1fr!important}
  .jhb-inline-search button{height:44px!important}
}

/* Footer license information */
.jhb-copy{display:flex;flex-wrap:wrap;gap:8px 16px;line-height:22px}
.jhb-copy a{color:#98a2b3;text-decoration:none}
.jhb-copy a:hover{color:#fff}
@media(max-width:560px){.jhb-copy{display:block}.jhb-copy span{display:block;margin-top:4px}}

/* UI issue fix: sort dropdown overlay and publish page width */
.jhb-list-toolbar{position:relative!important;z-index:30!important}
.jhb-list-toolbar .see_by{position:relative!important;z-index:80!important;background:#fff!important}
.jhb-list-toolbar .see_by ul{z-index:9999!important;background:#fff!important;border:1px solid #1677ff!important;box-shadow:0 12px 30px rgba(23,32,51,.18)!important;border-radius:0 0 6px 6px!important;overflow:visible!important}
.jhb-list-toolbar .see_by ul li a{display:block!important;padding:10px 12px!important;color:#172033!important;background:#fff!important}
.jhb-list-toolbar .see_by ul li a:hover{background:#eef5ff!important;color:#1677ff!important}
.jhb-list-page .listing-card{position:relative!important;z-index:1!important}

body.item-post #content{max-width:1180px!important;width:100%!important}
body.item-post #main{width:100%!important;max-width:100%!important}
.jhb-post-page{width:100%!important;max-width:1180px!important;margin:0 auto!important;grid-template-columns:340px minmax(0,760px)!important;gap:34px!important;align-items:start!important}
.jhb-post-page .jhb-form-intro{min-width:0!important;max-width:340px!important}
.jhb-post-card{max-width:760px!important;width:100%!important;justify-self:stretch!important}
.jhb-post-card textarea{min-height:260px!important}
@media(max-width:900px){
  .jhb-post-page{grid-template-columns:1fr!important;max-width:100%!important}
  .jhb-post-page .jhb-form-intro,.jhb-post-card{max-width:100%!important}
}

/* Publish page layout fix: use the full official page width instead of the old item detail grid */
body.item.item-post #content{
  display:block!important;
  max-width:1180px!important;
  width:calc(100% - 40px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
}
body.item.item-post #main{
  width:100%!important;
  max-width:100%!important;
  float:none!important;
}
body.item.item-post #sidebar{
  display:none!important;
}
body.item.item-post .jhb-post-page{
  box-sizing:border-box!important;
  width:100%!important;
  max-width:1180px!important;
  grid-template-columns:340px minmax(0,1fr)!important;
}
body.item.item-post .jhb-post-card{
  max-width:none!important;
  width:100%!important;
}
body.item.item-post .jhb-post-card > .resp-wrapper,
body.item.item-post #item-post,
body.item.item-post #item-post fieldset{
  width:100%!important;
  max-width:100%!important;
  display:block!important;
  box-sizing:border-box!important;
}
body.item.item-post .jhb-post-card textarea{
  min-height:280px!important;
}
@media(max-width:900px){
  body.item.item-post #content{
    width:calc(100% - 30px)!important;
  }
  body.item.item-post .jhb-post-page{
    grid-template-columns:1fr!important;
  }
}

/* UI polish phase 2: home/list/detail readability */
.listing-card{
  transition:border-color .18s ease, box-shadow .18s ease, transform .18s ease!important;
}
.listing-card:hover{
  transform:translateY(-1px)!important;
}
.listing-card .listing-detail,
.listing-card .listing-cell,
.listing-card .listing-data,
.listing-card .listing-basicinfo{
  width:100%!important;
  display:block!important;
  min-width:0!important;
}
.listing-card .listing-basicinfo .title{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  font-size:18px!important;
  line-height:27px!important;
  font-weight:800!important;
  color:#111827!important;
  text-decoration:none!important;
  margin:0 0 10px!important;
}
.listing-card .listing-basicinfo .title:hover{
  color:var(--jhb-blue)!important;
}
.listing-card .listing-attributes{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  margin:0 0 10px!important;
}
.listing-card .currency-value{
  order:3!important;
  display:inline-flex!important;
  align-items:center!important;
  height:26px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#fff4e5!important;
  color:#b54708!important;
  font-size:13px!important;
  font-weight:800!important;
  white-space:nowrap!important;
}
.listing-card .listing-details{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px!important;
  align-items:center!important;
}
.listing-card .listing-details span{
  display:inline-flex!important;
  align-items:center!important;
  min-height:26px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  background:#f5f8ff!important;
  border:1px solid #e2ebff!important;
  color:#475467!important;
  font-size:13px!important;
  line-height:24px!important;
}
.listing-card .listing-details .category{
  background:#eef5ff!important;
  border-color:#cfe2ff!important;
  color:#1677ff!important;
  font-weight:700!important;
}
.listing-card .desc{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  color:#475467!important;
  word-break:break-word!important;
  overflow-wrap:anywhere!important;
}
.jhb-list-page .listing-card{
  padding:20px 22px!important;
  border-color:#dce6f2!important;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)!important;
}
.jhb-list-page .listing-card .desc{
  -webkit-line-clamp:2!important;
  font-size:14px!important;
  line-height:24px!important;
  margin:8px 0 14px!important;
}
.jhb-list-page .jhb-card-action a,
.home-latest .jhb-card-action a,
.jhb-related .jhb-card-action a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:32px!important;
  min-width:92px!important;
  padding:0 14px!important;
  border-radius:6px!important;
  background:#eaf3ff!important;
  color:#1677ff!important;
  font-weight:800!important;
  text-decoration:none!important;
}
.jhb-list-page .jhb-card-action a:hover,
.home-latest .jhb-card-action a:hover,
.jhb-related .jhb-card-action a:hover{
  background:#1677ff!important;
  color:#fff!important;
}
.home-latest{
  padding:24px!important;
}
.home-latest .listing-card{
  min-height:210px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  background:#fff!important;
  border-color:#dce6f2!important;
}
.home-latest .listing-basicinfo .title{
  font-size:17px!important;
  line-height:25px!important;
}
.home-latest .listing-card .desc{
  -webkit-line-clamp:4!important;
  font-size:14px!important;
  line-height:23px!important;
  margin:8px 0 12px!important;
}
.home-latest .listing-attributes{
  margin-bottom:10px!important;
}
.jhb-item{
  padding:26px!important;
}
.jhb-item-head{
  margin-bottom:22px!important;
}
.jhb-item-body{
  color:#344054!important;
}
.jhb-item-body h2{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  padding-bottom:12px!important;
  border-bottom:1px solid #e5edf6!important;
}
.jhb-item-body h2:before{
  content:"";
  width:4px;
  height:18px;
  border-radius:999px;
  background:#1677ff;
}
.jhb-item-body .desc{
  background:#fbfdff!important;
  border:1px solid #e5edf6!important;
  border-radius:8px!important;
  padding:22px!important;
  line-height:31px!important;
}
.jhb-item-body .contact_button .btn{
  min-width:116px!important;
  height:40px!important;
  line-height:40px!important;
  border-radius:6px!important;
  font-weight:800!important;
}
.jhb-related .listing-card{
  padding:18px!important;
  background:#fff!important;
}
.jhb-related .listing-card .desc,
.jhb-related .listing-card .listing-details .date,
.jhb-related .listing-card .currency-value{
  display:none!important;
}
.jhb-item-sidebar{
  position:sticky!important;
  top:88px!important;
  align-self:start!important;
}
.jhb-contact-box h2,
.jhb-safe-box h2{
  padding-bottom:12px!important;
  border-bottom:1px solid #e5edf6!important;
}
.jhb-contact-box p{
  background:#f8fbff!important;
  border:1px solid #e5edf6!important;
  border-radius:6px!important;
  padding:10px 12px!important;
}
.jhb-safe-box{
  margin-top:22px!important;
}
.jhb-safe-box ul{
  margin:0!important;
  padding-left:18px!important;
}
.jhb-safe-box li{
  margin:0 0 10px!important;
  line-height:24px!important;
  color:#475467!important;
}
@media(max-width:900px){
  .jhb-item-sidebar{position:static!important}
  .home-latest .listing-card{min-height:auto!important}
}
@media(max-width:560px){
  .jhb-list-page .listing-card,
  .home-latest .listing-card,
  .jhb-item,
  .jhb-item-body .desc{padding:16px!important}
  .listing-card .listing-basicinfo .title{font-size:16px!important;line-height:24px!important}
}

/* Home search card fix: keep submit button readable */
.jhb-search-card .main-search{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
}
.jhb-search-card .cell.c3{
  grid-column:1/-1!important;
}
.jhb-search-card .cell.c3 button,
.jhb-search-card button.btn,
.jhb-search-card input[type="submit"]{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  width:160px!important;
  min-width:160px!important;
  height:48px!important;
  line-height:48px!important;
  padding:0 18px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-align:center!important;
}
.jhb-search-card .cell.c3{
  display:flex!important;
  justify-content:flex-start!important;
}
@media(max-width:900px){
  .jhb-search-card .main-search{
    grid-template-columns:1fr!important;
  }
  .jhb-search-card .cell.c3 button,
  .jhb-search-card button.btn,
  .jhb-search-card input[type="submit"]{
    width:100%!important;
    min-width:0!important;
  }
}
