
/* Jiji-style feed: staggered columns, natural photo heights, rich cards (homepage "Latest ads"). */
.dax-masonry.is-masonry{display:flex!important;align-items:flex-start;gap:14px}
.dax-masonry .dax-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column;gap:14px}
.ad-card,.dax-card{isolation:isolate} /* card badges stay inside their card, never over the floating search */
.dax-card{position:relative;background:#fff;border:1px solid #e6ecef;border-radius:12px;overflow:hidden;box-shadow:0 1px 2px rgba(16,24,40,.05);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.dax-card:hover{transform:translateY(-3px);box-shadow:0 12px 30px rgba(16,24,40,.12);border-color:color-mix(in srgb,var(--site-primary,var(--site-primary)) 40%,#e6ecef)}
.dax-masonry .dax-card .ad-image-link{aspect-ratio:auto;display:block;position:relative;background:#eef2f5;min-height:150px}
.dax-masonry .dax-card .ad-image{width:100%;height:auto;max-height:340px;min-height:150px;object-fit:cover;display:block}
.dax-masonry .dax-card .ad-image-placeholder{aspect-ratio:1/1;height:auto}
.dax-card .ad-content{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px}
.dax-card .ad-price{font-size:17px;font-weight:900;color:var(--site-primary-text);margin:0;letter-spacing:-.2px}
.dax-was{display:flex;align-items:center;gap:6px;font-size:12px;color:#8a97a0;margin-top:-1px}
.dax-off{background:#e5372f;color:#fff;font-weight:800;font-size:10.5px;padding:2px 6px;border-radius:999px}
.dax-card .ad-title{font-size:14.5px;font-weight:600;line-height:1.35;color:#1d2a33;min-height:0;-webkit-line-clamp:2}
.dax-snippet{margin:0;font-size:12.5px;line-height:1.4;color:#6f7f8a;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.dax-card .ad-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:2px}
.dax-card .ad-tags span{font-size:11px;padding:4px 7px;border-radius:6px;background:#f2f5f7;color:#51606b;font-weight:600}
.dax-card .ad-meta{display:flex;align-items:center;gap:4px;font-size:12px;color:#6f8fa3;margin-top:3px;white-space:nowrap;overflow:hidden}
.dax-card .ad-meta span{overflow:hidden;text-overflow:ellipsis}
.dax-ribbon{position:absolute;top:0;left:0;z-index:3;background:var(--orange,#ff8a00);color:#fff;font-size:10px;font-weight:900;letter-spacing:.08em;padding:5px 9px;border-bottom-right-radius:10px}
.dax-ribbon-vendor{background:var(--site-primary-dark);letter-spacing:.02em}
.dax-ribbon-promo{background:#6d28d9;letter-spacing:.02em}
.dax-plan{align-self:flex-start;color:#fff;font-size:10.5px;font-weight:900;padding:3px 8px;border-radius:999px;margin-top:2px}
.dax-card.is-promoted{border-color:#c4b5fd;box-shadow:0 0 0 1px #ede9fe}
.dax-tenure{position:absolute;left:8px;bottom:8px;z-index:3;background:rgba(255,255,255,.95);color:#26353d;font-size:10px;font-weight:800;padding:4px 8px;border-radius:999px;box-shadow:0 2px 6px rgba(15,28,36,.15)}
.dax-corner{position:absolute;right:8px;bottom:8px;z-index:3;display:flex;gap:5px}
.dax-chip{background:rgba(15,25,30,.72);color:#fff;font-size:10.5px;font-weight:800;padding:4px 7px;border-radius:999px}
.dax-chip-video{background:#e5372f}
.dax-card.is-top{background:#fff8ee;border-color:#f6c98a}
.dax-card.is-top:hover{border-color:#f0a640}
.dax-card.is-vendor{border-color:color-mix(in srgb,var(--site-primary,var(--site-primary)) 45%,#e6ecef)}
.dax-card .ad-trust-badges{top:8px;right:8px}
.dax-card.dax-new{animation:daxCardIn .35s ease both}
@keyframes daxCardIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.dax-feed-more{display:flex;flex-direction:column;align-items:center;gap:10px;padding:18px 0 6px}
.dax-feed-spinner{width:26px;height:26px;border-radius:50%;border:3px solid #dfe8e4;border-top-color:var(--site-primary,var(--site-primary));animation:daxSpin .8s linear infinite;display:none}
.dax-feed-more.is-loading .dax-feed-spinner{display:block}
.dax-feed-all{font-weight:800;color:var(--site-primary-text);font-size:13px}
@keyframes daxSpin{to{transform:rotate(360deg)}}
@media(max-width:768px){.dax-masonry.is-masonry,.dax-masonry .dax-col{gap:9px}.dax-card .ad-content{padding:8px 9px 10px}.dax-card .ad-price{font-size:15.5px}.dax-card .ad-title{font-size:13px}.dax-snippet{font-size:11.5px;-webkit-line-clamp:2}.dax-masonry .dax-card .ad-image{max-height:260px;min-height:120px}.dax-tenure{display:none}}
@media(prefers-reduced-motion:reduce){.dax-card,.dax-card.dax-new{transition:none;animation:none}}
/* Recently viewed slider: same Jiji-style cards, kept the same height so the row slides evenly. */
.recent-viewed-track .dax-card .ad-image-link{aspect-ratio:1/1}
.recent-viewed-track .dax-card .ad-image{height:100%;object-fit:cover}
.recent-viewed-track .dax-card .dax-snippet{-webkit-line-clamp:2}
.recent-viewed-track .dax-card .dax-tenure{display:none}

/* Compact Jiji-style banner: headline, search and popular searches only, so ads show sooner. */
.hero{padding:26px 24px 22px!important;border-radius:0 0 22px 22px!important}
.hero .hero-kicker,.hero .hero-intro,.hero .free-note,.hero .hero-links{display:none!important}
.hero h1{font-size:26px!important;line-height:1.25!important;margin:0 auto 14px!important;max-width:900px;letter-spacing:-.4px}
.hero .hero-search{margin-top:0!important;width:100%;max-width:820px;align-self:center}
.hero .popular-tags{margin-top:12px!important;gap:6px!important}
.hero .popular-tag{padding:6px 12px!important;font-size:12px!important}
.hero .tutorial-actions{order:5;display:flex;justify-content:center;gap:8px;margin:12px 0 0!important}
.hero .tutorial-button{min-width:0!important;padding:7px 14px!important;font-size:12.5px!important;box-shadow:none!important}
.hero-inner{display:flex;flex-direction:column}
.hero-inner>h1{order:1}.hero-inner>.hero-search{order:2}.hero-inner>.popular-tags{order:3}
.quick-links{display:flex!important;flex-wrap:nowrap!important;gap:8px!important;margin:14px 0 16px!important;overflow-x:auto;scrollbar-width:none}
.quick-links::-webkit-scrollbar{display:none}
.quick-links a{flex:0 0 auto!important;padding:9px 14px!important;border-radius:999px!important;box-shadow:none!important;gap:8px!important;min-height:0!important}
.quick-links .quick-icon{width:26px!important;height:26px!important;font-size:13px!important;border-radius:50%!important}
.quick-links strong{font-size:13px!important}
@media(max-width:768px){
 .hero{padding:14px 12px 14px!important;border-radius:0 0 18px 18px!important}
 .hero h1{font-size:17px!important;margin-bottom:10px!important}
 .hero .popular-tags{margin-top:10px!important;flex-wrap:nowrap;overflow-x:auto;justify-content:flex-start!important;scrollbar-width:none}
 .hero .popular-tags::-webkit-scrollbar{display:none}
 .hero .tag-label{display:none}
 .hero .tutorial-actions{margin-top:10px!important}
 .hero .tutorial-button{flex:1}
 .quick-links{margin:10px 0 12px!important}
 .hero .tutorial-button{padding:8px 10px!important;font-size:12px!important}
}
@media(max-width:480px){
 /* Phones: [All Nigeria ▾][Search…][🔍] like Jiji. Only the state box shows; the city is picked on
    the results page. Choosing a state sends "All <state>" (the hidden city box holds the state). */
 .hero .hero-search{grid-template-columns:minmax(0,112px) minmax(0,1fr) 50px!important}
 .hero .hero-location{display:block!important;grid-column:auto!important;border-bottom:0!important;border-right:1px solid #e3ebe6!important;min-width:0}
 .hero .hero-location .field-label{display:none!important}
 .hero .hero-location-pair{display:block!important}
 .hero #homeLocationCity{display:none!important}
 .hero .hero-location-pair{display:none!important}
 .hero .dxl-btn{display:flex!important}
 .hero .hero-dlp .dlp-btn{height:50px;padding:0 6px 0 9px;font-size:13px;gap:4px;border-radius:12px 0 0 12px}.hero .hero-dlp .dlp-pin{width:15px;height:15px;flex-basis:15px}
 .hero #homeLocationState{width:100%;height:50px!important;padding:0 6px 0 10px!important;font-size:13px!important;font-weight:700;color:#24313a;border:0!important;border-radius:12px 0 0 12px!important;background:#fff;text-overflow:ellipsis}
 .hero .hero-location{border-radius:12px 0 0 12px!important;background:#fff!important}
 .hero .hero-keyword{grid-column:auto!important;border-radius:0!important}
 .hero .search-button{grid-column:auto!important;border-radius:0 12px 12px 0!important}
 .hero .hero-keyword input{padding-left:10px!important}
 .hero .hero-search.dax-search-docked{grid-template-columns:minmax(0,104px) minmax(0,1fr) 46px!important}
 .hero h1{font-size:16px!important}
}
@media(max-width:760px){
 /* Phones: categories first (like Jiji), then Recommended, then the app banner and the rest. */
 .marketplace-shell{display:flex;flex-direction:column}
 .marketplace-shell > *{width:100%;min-width:0}
 .marketplace-shell > .mobile-home-category-area{order:-3;margin-top:0}
 .marketplace-shell > .dax-rec{order:-2}
 .mobile-count{display:block;margin-top:2px;font-size:10px;font-weight:700;color:#7a868c;line-height:1.2}
}
@media(min-width:761px){.mobile-count{display:none}}
/* Phone location picker (state → town/LGA → area), like Jiji. */
.dxl-btn{display:none;align-items:center;gap:4px;width:100%;height:50px;padding:0 6px 0 9px;border:0;background:#fff;border-radius:12px 0 0 12px;font:inherit;font-size:13px;font-weight:800;color:#24313a;cursor:pointer;text-align:left;min-width:0}
.dxl-btn .dxl-label{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dxl-btn .dxl-pin{font-size:13px}.dxl-btn .dxl-caret{color:#6b7782;font-size:12px}
.dxl-sheet{position:fixed;inset:0;z-index:9000;background:#fff;display:none;flex-direction:column;font-family:inherit}
.dxl-sheet.is-open{display:flex}
.dxl-head{display:flex;align-items:center;gap:8px;padding:12px 12px 10px;border-bottom:1px solid #e6ecef}
.dxl-head button{width:40px;height:40px;border:0;border-radius:50%;background:#f1f5f3;font-size:22px;line-height:1;cursor:pointer;color:#24313a;flex:0 0 40px}
.dxl-head strong{flex:1;font-size:17px;color:#16202a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.dxl-find{padding:10px 12px;border-bottom:1px solid #eef2f4}
.dxl-find input{width:100%;height:46px;border:1px solid #d6e0e5;border-radius:12px;padding:0 14px;font:inherit;font-size:16px}
.dxl-list{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;margin:0;padding:0;list-style:none}
.dxl-list button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:52px;padding:10px 16px;border:0;border-bottom:1px solid #f0f3f5;background:#fff;font:inherit;font-size:15px;color:#1d2a32;text-align:left;cursor:pointer}
.dxl-list button.is-all{font-weight:800;color:var(--site-primary-text,#0a7a35)}
.dxl-list button small{color:#7a868c;font-size:12px}
.dxl-list .dxl-more{color:#9aa5ab;font-size:20px}
.dxl-empty{padding:24px 16px;color:#6b7782;text-align:center}
@media(min-width:481px){.dxl-sheet{display:none!important}.hero .dxl-btn,.dxl-btn{display:none!important}}
