/* Marketplace-first home: fast search, two equal paths, compact category tiles. */
body:not(.app-subview) :is(.home118,.category-section,.home-demand,.results-section){width:min(1312px,calc(100% - 48px))}
.home118.ui8-home{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)!important;gap:24px!important;padding:24px 0 20px!important;align-items:stretch!important}
.home118 .home118-copy{display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;align-items:center;gap:0 12px;padding:0}
.home118 #homeTitle118{grid-column:1/-1;font-size:23px!important;line-height:1.25!important;letter-spacing:-.025em;margin:0 0 12px!important}
.home118 .home118-search{grid-column:1/-1;min-height:52px;box-shadow:none}
.home118 .home118-search .btn{min-height:42px}
.home118 .hunter-launch{grid-column:1;margin:0!important}
.home118 .hunter-launch-btn{min-height:44px!important}
.home118 .home118-actions{grid-column:2;grid-row:3;margin:0!important}
.home118 .home118-action,.home118 .home118-action.is-primary{padding:8px 12px;min-height:44px}
.home118 .home118-features{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;align-self:stretch;align-content:stretch}
.home118 .home118-feature{min-height:0!important;padding:16px!important;display:flex;flex-direction:column;align-items:flex-start;gap:0}
.home118 .home118-feature h2{font-size:18px!important;line-height:1.25!important;margin:0 0 5px!important;letter-spacing:-.025em}
.home118 .home118-feature>p:not(.feature-label){font-size:14px!important;line-height:1.35!important;margin:0 0 8px!important}
.home118 .feature-actions{flex-direction:row;align-items:center;gap:6px;margin-top:auto}
.home118 .feature-primary,.home118 .feature-link{min-height:44px;font-size:13px!important}
.home118 .feature-primary{padding:8px 12px}
.home118 .feature-actions .feature-link{padding:8px 4px}
.home118 .feature-exchange .feature-link{margin-top:auto!important;padding:8px 12px}
.category-section{padding-top:0!important;margin-bottom:18px!important}
.category-section>.section-heading,.results-section>.result-heading{margin-bottom:8px!important}
.category-section>.section-heading h2,.results-section .result-heading h2{font-size:20px!important;line-height:1.3}
#categoryList .category-featured-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
#categoryList .category-editorial{flex-direction:row-reverse!important;align-items:stretch!important;justify-content:space-between!important;height:84px!important;min-height:84px!important;background:#f5f4f6!important;border:0!important}
#categoryList .category-editorial>img{width:43%!important;height:84px!important;flex:0 0 43%!important;object-fit:cover!important}
#categoryList .category-editorial-label{flex:1;min-width:0;min-height:0!important;padding:12px!important;background:transparent!important;align-items:flex-start}
#categoryList .category-editorial-label strong{font-size:14px!important;line-height:1.3}
#categoryList .category-editorial-label>span{display:none!important}
#categoryList .ui4-other-categories>summary{top:0}
.home-demand{padding:0 0 20px!important;margin-top:0!important}
.home-demand-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px!important;min-height:40px}
.home-demand-heading h2{font-size:20px!important;line-height:1.3;margin:0!important}
.home-demand-kicker,.home-demand-heading>div>p:last-child{display:none}
.home-demand-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
.home-demand-card{padding:10px 12px!important}
.home-demand-card h3{font-size:14px!important;line-height:1.35}
.home-demand-budget{font-size:14px!important}
.home-demand-meta{font-size:12px!important}
.home-demand-card>.btn{font-size:13px!important;padding:8px 10px!important}
.results-section{margin-bottom:64px}
.results-section .search-tools{margin:0 0 12px!important}
body:not(.app-subview) .results-section .listing-grid>.catalog-card{border:0!important;background:transparent!important;overflow:visible;border-radius:0}
body:not(.app-subview) .results-section .catalog-card .card-image{border-radius:10px;overflow:hidden}
body:not(.app-subview) .results-section .catalog-card .card-body{padding:8px 0 0!important}
body:not(.app-subview) .results-section .catalog-card .card-price{font-size:18px;line-height:1.3}
body:not(.app-subview) .results-section .catalog-card .card-title{font-size:14px;line-height:1.35;height:auto;min-height:0;margin-top:4px}
body:not(.app-subview) .results-section .catalog-card .card-meta{margin-top:6px;font-size:12px;line-height:1.35;gap:0}
body:not(.app-subview) .results-section .catalog-card .card-meta :is(.card-city,time){font-size:12px;line-height:1.35}
@media(min-width:1200px){body:not(.app-subview) .results-section .listing-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:24px 16px}}
@media(max-width:760px){
 body:not(.app-subview) :is(.home118,.category-section,.home-demand,.results-section){width:calc(100% - 32px)}
 .home118.ui8-home{grid-template-columns:1fr!important;gap:8px!important;padding:12px 0 12px!important}
 .home118 #homeTitle118{font-size:21px!important;margin-bottom:8px!important}
 .home118 .home118-search{min-height:48px!important}
 .home118 .home118-search .btn{min-height:40px!important}
 .home118 .home118-actions{grid-row:3;gap:0!important}
 .home118 .home118-action,.home118 .home118-action.is-primary{min-height:44px;padding:7px 10px!important}
 .home118 .home118-action strong,.home118 .hunter-launch-btn strong{font-size:13px!important}
 .home118 .home118-feature{padding:12px!important}
 .home118 .home118-feature h2{font-size:16px!important;line-height:1.25!important}
 .home118 .home118-feature>p:not(.feature-label){font-size:13px!important;line-height:1.35!important}
 .home118 .feature-actions{gap:0 6px!important}
 .home118 .feature-primary,.home118 .feature-link{font-size:12px!important;padding:7px 8px!important}
 .home118 .feature-actions .feature-link{padding:7px 2px!important}
 .category-section{margin-bottom:12px!important}
 #categoryList .category-featured-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #categoryList .category-editorial{height:62px!important;min-height:62px!important}
 #categoryList .category-editorial>img{width:38%!important;flex-basis:38%!important;height:62px!important}
 #categoryList .category-editorial-label{padding:8px!important;align-items:center}
 #categoryList .category-editorial-label strong{font-size:13px!important}
 .home-demand{padding:0 0 12px!important;margin:0 auto!important}
 .home-demand-heading{margin-bottom:4px!important}
 .home-demand-card{padding:9px!important}
 .home-demand-card h3{font-size:13px!important}
 .home-demand-budget{font-size:13px!important}
 .home-demand-meta{font-size:12px!important}
 .results-section{padding-top:0!important}
 .results-section .search-tools{margin:0 0 8px!important}
 body:not(.app-subview) .results-section .catalog-card .card-price{font-size:16px!important}
 body:not(.app-subview) .results-section .catalog-card .card-title{font-size:13px!important}
}
@media(max-width:350px){
 body:not(.app-subview) :is(.home118,.category-section,.home-demand,.results-section){width:calc(100% - 24px)}
 .home118 .home118-feature{padding:10px!important}
 .home118 .feature-actions{flex-wrap:wrap}
 .home118 .feature-primary,.home118 .feature-link{font-size:12px!important}
}
@media(prefers-color-scheme:dark){
 #categoryList .category-editorial{background:#292630!important}
}
/* Second pass: less vertical space before the actual marketplace. */
.feature-link-short{display:none}
@media(min-width:761px){
 .home118.ui8-home{padding:18px 0 12px!important}
 .home118 .home118-actions{display:none!important} /* Header already provides the same action. */
 body:not(.app-subview) .results-section{padding-top:0!important}
}
.category-section{margin-bottom:8px!important}
.home-demand{padding-bottom:8px!important}
body:not(.app-subview) .results-section .result-heading .eyebrow{display:none}
@media(max-width:760px){
 .home118 .feature-actions{flex-wrap:nowrap!important}
 .home118 .feature-actions .feature-primary,.home118 .feature-actions .feature-link{white-space:nowrap!important}
 .home118 .feature-actions .feature-primary{padding-inline:8px!important}
 .home118 .feature-link-long{display:none}
 .home118 .feature-link-short{display:inline}
 .home-demand-card h3{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis}
 .home-demand{padding-bottom:8px!important}
}
@media(max-width:350px){
 #categoryList .category-editorial>img{width:32%!important;flex-basis:32%!important}
 #categoryList .category-editorial-label strong{font-size:12px!important}
}
@media(min-width:1200px){body:not(.app-subview) .results-section .listing-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}}

@media(min-width:1200px){
 body:not(.app-subview) .results-section .listing-grid:has(> .catalog-card:only-child){max-width:320px}
 body:not(.app-subview) .results-section .listing-grid:has(> .catalog-card:nth-child(2):last-child){max-width:656px}
 body:not(.app-subview) .results-section .listing-grid:has(> .catalog-card:nth-child(3):last-child){max-width:992px}
}
@media(min-width:761px) and (max-width:1100px){
 .topbar{min-height:72px!important;height:auto!important;flex-wrap:nowrap!important}
 .home118 .home118-feature{padding:12px!important}
 .home118 .home118-feature h2{font-size:16px!important}
 .home118 .home118-feature>p:not(.feature-label){font-size:13px!important}
 .home118 .feature-actions{flex-wrap:nowrap!important;gap:3px}
 .home118 .feature-actions .feature-primary,.home118 .feature-actions .feature-link{font-size:12px!important;white-space:nowrap!important;padding:7px!important}
 .home118 .feature-link-long{display:none}
 .home118 .feature-link-short{display:inline}
 .home118 .feature-exchange .feature-link{font-size:12px!important;padding:7px!important}
 #categoryList .category-editorial>img{width:32%!important;flex-basis:32%!important}
 #categoryList .category-editorial-label{padding:8px!important}
 #categoryList .category-editorial-label strong{font-size:13px!important}
}
@media(min-width:761px) and (max-width:1600px){
 body:not(.app-subview) .launch-fab{display:none!important} /* Support remains in the footer. */
}

/* Districts must stay readable even in a two-column phone grid. */
.catalog-card .card-city{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}

.home118 .home-telegram-heading{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;min-width:0}
.home118 .home-telegram-heading #homeTitle118{margin:0!important}
.home-telegram{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 10px;color:#5d4d75;text-decoration:none;font-size:14px;font-weight:600;white-space:nowrap;border:1px solid #e0dae8;border-radius:10px;background:#fff;transition:background-color .15s,border-color .15s}
.home-telegram svg{width:16px;height:16px;flex:none}.home-telegram-arrow{font-size:13px}
.home-telegram:hover{background:#f8f6fa;border-color:#bdb1cf}.home-telegram:focus-visible{outline:3px solid #5a3988;outline-offset:2px}
@media(max-width:760px){.home118 .home-telegram-heading{margin-bottom:6px;gap:6px}.home-telegram{font-size:14px;padding:0 8px}}
@media(max-width:350px){.home-telegram svg,.home-telegram-arrow{display:none}.home-telegram{padding:0 7px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.home-telegram{transition:none}}
@media(prefers-color-scheme:dark){.home-telegram{background:#292630;border-color:#544d60;color:#e3deeb}.home-telegram:hover{background:#38313f;border-color:#817492}}

.home-telegram-short{display:none}
@media(max-width:760px){.home-telegram-full,.home-telegram-arrow{display:none}.home-telegram-short{display:inline}}
