.marketplace-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:28px;overflow:hidden;margin-top:18px;padding:52px 46px 0;border:1px solid #2d363c;border-radius:24px;background:radial-gradient(circle at 72% 18%,#343a3e 0,transparent 24%),linear-gradient(120deg,#050708 0%,#0c1216 58%,#171d20 100%);box-shadow:0 22px 60px #0007}.marketplace-hero:before{content:"";position:absolute;right:8%;top:5%;width:390px;aspect-ratio:1;border:46px solid #151b1f;border-radius:50%;box-shadow:inset 0 0 0 12px #394047,0 0 80px #ffc32912;opacity:.55}.marketplace-hero-copy,.wheel-preview-promo,.home-search{position:relative;z-index:1}.marketplace-kicker{margin:0 0 12px;color:#c8d0d5;font-size:12px;font-weight:900;letter-spacing:.15em}.marketplace-hero-copy h1{max-width:680px;margin:0;color:#fff;font-size:clamp(42px,5vw,74px);line-height:.98;letter-spacing:-.055em}.marketplace-hero-copy h1 span{color:#ffc329}.marketplace-hero-copy>p:last-of-type{max-width:590px;margin:22px 0 0;color:#d1d7da;font-size:17px;line-height:1.55}.marketplace-hero-links{display:flex;gap:10px;margin-top:25px}.marketplace-hero-links button{min-height:43px}.wheel-preview-promo{align-self:end;margin-bottom:26px;padding:19px;border:1px solid #485158;border-radius:18px;background:#0a0f12e8;box-shadow:0 18px 40px #0008}.wheel-preview-promo .feature-status{float:right}.wheel-preview-promo h2{margin:5px 0 6px;font-size:22px}.wheel-preview-promo p:not(.eyebrow){margin:0 0 14px;color:#aeb8be}.wheel-preview-art{display:flex;justify-content:center;gap:24px;margin:18px 0}.wheel-preview-art i{width:72px;aspect-ratio:1;border:8px solid #222a2f;border-radius:50%;background:repeating-conic-gradient(#9da7ad 0 9deg,#30383d 9deg 24deg);box-shadow:inset 0 0 0 20px #080b0d,0 0 0 2px #5a646a}.wheel-preview-art i:last-child{border-color:#4b3d0c;box-shadow:inset 0 0 0 20px #080b0d,0 0 0 2px #ffc329}.feature-status{display:inline-block;padding:4px 7px;border-radius:999px;background:#ffc329;color:#181307;font-size:9px;font-weight:950;letter-spacing:.06em}.home-search{grid-column:1/-1;margin:22px -20px 0;border:1px solid #424c53;border-bottom:0;border-radius:19px 19px 0 0;background:#0b1013f2}.home-search-tabs{display:flex;border-bottom:1px solid #3d474d}.home-search-tabs button{min-width:170px;padding:17px 22px;border:0;border-right:1px solid #343e44;border-radius:0;background:transparent;color:#d3d9dc;font-weight:850}.home-search-tabs button:first-child{border-radius:18px 0 0}.home-search-tabs button.active{color:#ffc329;background:#151b1f}.home-search-panel{display:grid;grid-template-columns:minmax(100px,1fr) 14px minmax(100px,1fr) 14px minmax(100px,1fr) minmax(140px,1.2fr) minmax(140px,1.2fr);gap:10px;align-items:end;padding:20px}.home-search-panel[data-search-panel=vehicle]{grid-template-columns:repeat(3,minmax(140px,1fr))}.home-search-panel[data-search-panel=brand]{grid-template-columns:repeat(2,minmax(180px,1fr))}.home-search-panel label,.home-search-footer label{display:grid;gap:7px;color:#dce1e4;font-size:12px;font-weight:800}.home-search-panel input,.home-search-panel select,.home-search-footer input{width:100%;min-width:0;height:46px;border-color:#465159;background:#11171b}.size-divider{align-self:center;margin-top:21px;color:#d5dadd;font-size:20px}.home-search-footer{display:grid;grid-template-columns:minmax(220px,1fr) auto 170px;gap:11px;align-items:end;padding:0 20px 22px}.home-use-location{height:46px;white-space:nowrap}.home-find-button{height:46px;font-size:16px}.marketplace-feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:22px 0 28px}.marketplace-feature-grid article{display:flex;flex-direction:column;justify-content:space-between;min-height:245px;padding:22px;border:1px solid #343e45;border-radius:17px;background:linear-gradient(145deg,#12181c,#090d0f);box-shadow:0 12px 28px #0003}.marketplace-feature-grid h2{margin:10px 0 7px;font-size:20px}.marketplace-feature-grid p{min-height:47px;margin:0 0 18px;color:#abb5bb;line-height:1.45}.marketplace-feature-grid button{width:max-content}.feature-icon{display:grid;place-items:center;width:54px;height:54px;border:1px solid currentColor;border-radius:16px;font-size:29px}.fitment-icon{color:#8c76ff}.compare-icon{color:#49a6ff}.preview-icon{color:#ffc329}.message-icon{color:#34d5c0}.home-marketplace-head{margin-top:10px}.how-tirenest-works{margin:34px 0 18px;padding:32px;border:1px solid #303940;border-radius:20px;background:linear-gradient(120deg,#11181c,#090d0f)}.how-tirenest-works>h2{margin:4px 0 24px;font-size:28px}.how-tirenest-works>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.how-tirenest-works article{position:relative;padding-left:50px}.how-tirenest-works article>span{position:absolute;left:0;top:0;display:grid;place-items:center;width:38px;height:38px;border:1px solid #ffc329;border-radius:50%;color:#ffc329;font-weight:900}.how-tirenest-works h3{margin:0 0 5px}.how-tirenest-works p{margin:0;color:#aeb7bc;font-size:13px;line-height:1.45}
@media(max-width:900px){.marketplace-hero{grid-template-columns:1fr;padding:38px 30px 0}.marketplace-hero:before{right:-12%;top:-4%}.wheel-preview-promo{max-width:520px;margin:0}.home-search{margin-top:4px}.home-search-panel{grid-template-columns:repeat(3,minmax(0,1fr))}.size-divider{display:none}.marketplace-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.how-tirenest-works>div{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.marketplace-hero{margin-top:7px;padding:27px 15px 0;border-radius:17px}.marketplace-hero:before{width:220px;border-width:28px;opacity:.35}.marketplace-kicker{font-size:9px}.marketplace-hero-copy h1{font-size:40px}.marketplace-hero-copy>p:last-of-type{margin-top:15px;font-size:14px}.marketplace-hero-links{margin-top:18px}.wheel-preview-promo{display:none}.home-search{margin:22px -7px 0;border-radius:14px 14px 0 0}.home-search-tabs button{min-width:0;flex:1;padding:13px 5px;font-size:11px}.home-search-panel,.home-search-panel[data-search-panel=vehicle],.home-search-panel[data-search-panel=brand]{grid-template-columns:repeat(2,minmax(0,1fr));padding:14px}.home-search-panel label:last-child:nth-child(5){grid-column:1/-1}.home-search-footer{grid-template-columns:1fr 1fr;padding:0 14px 16px}.home-location-input{grid-column:1/-1}.home-use-location{overflow:hidden;padding:8px;font-size:10px}.home-use-location span{overflow:hidden;text-overflow:ellipsis}.home-find-button{font-size:14px}.marketplace-feature-grid{grid-template-columns:1fr;gap:9px;margin:13px 0 20px}.marketplace-feature-grid article{display:grid;grid-template-columns:54px 1fr;gap:15px;min-height:0;padding:17px}.marketplace-feature-grid p{min-height:0}.marketplace-feature-grid h2{font-size:18px}.home-marketplace-head{margin-top:18px}.how-tirenest-works{margin-top:24px;padding:22px 18px}.how-tirenest-works>div{grid-template-columns:1fr;gap:22px}.how-tirenest-works>h2{font-size:23px}}
.home-search-panel[hidden]{display:none!important}.marketplace-feature-grid button{border-color:#9e7a00;background:#17150d;color:#ffd34d}
.mobile-marketplace-feed{display:contents}
@media(max-width:560px){.mobile-marketplace-feed{display:block;height:var(--mobile-marketplace-feed-height,55dvh);min-height:260px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y;padding:0 1px calc(16px + env(safe-area-inset-bottom));scrollbar-width:none}.mobile-marketplace-feed::-webkit-scrollbar{display:none}.mobile-marketplace-feed #home-listings{overflow:visible;touch-action:pan-y}.mobile-marketplace-feed .home-listings-sentinel{display:block;clear:both;height:2px}.mobile-marketplace-feed #home-listings>.listing:last-child{scroll-margin-bottom:calc(16px + env(safe-area-inset-bottom))}}
.marketplace-feature-grid article[data-home-tool]{cursor:pointer}.marketplace-feature-grid article[data-home-tool]:focus-visible{outline:2px solid #ffc329;outline-offset:3px}.marketplace-feature-grid article[data-home-tool] button{position:relative;z-index:2}
@media(max-width:560px){.marketplace-hero-copy h1 span{display:block}.marketplace-hero-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.marketplace-hero-links button{min-width:0;padding:10px 8px;font-size:12px}}

/* Compact marketplace opening: car first, detailed filters remain on Search. */
.marketplace-hero{grid-template-columns:minmax(390px,.9fr) minmax(470px,1.1fr);gap:0;min-height:410px;padding:0;background:#080c0f}.marketplace-hero:before{display:none}.marketplace-hero-copy{display:flex;flex-direction:column;justify-content:center;padding:42px 40px}.marketplace-hero-copy h1{font-size:clamp(42px,4.4vw,66px)}.marketplace-hero-copy>p:last-of-type{margin-top:17px;font-size:15px}.home-quick-search{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:8px;margin-top:24px}.home-quick-search input{min-width:0;height:47px;border-color:#4b565d;background:#10161a}.home-quick-search button{height:47px}.marketplace-hero-links{flex-wrap:wrap;margin-top:10px}.marketplace-hero-links button{min-width:0;padding:9px 12px;border-color:#3b464d;background:#10161a;color:#dbe1e4;font-size:11px}.marketplace-hero-car{position:relative;z-index:1;min-height:410px;overflow:hidden}.marketplace-hero-car:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#080c0f 0,transparent 25%),linear-gradient(0deg,#050708b8 0,transparent 42%);pointer-events:none}.marketplace-hero-car>img{width:100%;height:100%;object-fit:cover;object-position:center}.hero-preview-chip{position:absolute;z-index:2;right:18px;bottom:18px;display:grid;gap:2px;max-width:245px;padding:12px 14px;border:1px solid #69747a;border-radius:13px;background:#090d10e8;color:#fff;text-align:left}.hero-preview-chip .feature-status{position:absolute;right:10px;top:-10px}.hero-preview-chip strong{font-size:15px}.hero-preview-chip small{color:#b8c1c6}.home-marketplace-head{margin:22px 0 10px}.marketplace-feature-grid{gap:10px;margin:24px 0 26px}.marketplace-feature-grid article{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;min-height:0;padding:15px}.marketplace-feature-grid .feature-icon{width:42px;height:42px;border-radius:12px;font-size:22px}.marketplace-feature-grid h2{margin:0 0 4px;font-size:16px}.marketplace-feature-grid p{min-height:38px;margin:0 0 10px;font-size:11px}.marketplace-feature-grid button{padding:7px 9px;font-size:10px}.marketplace-feature-grid .feature-status{float:right;margin-bottom:4px}
@media(max-width:900px){.marketplace-hero{grid-template-columns:1fr;min-height:0;padding:0}.marketplace-hero-copy{padding:34px 28px}.marketplace-hero-car{min-height:300px}.marketplace-hero-car:after{background:linear-gradient(0deg,#0507089e 0,transparent 45%)}.marketplace-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.marketplace-hero{padding:0}.marketplace-hero-copy{padding:25px 17px 19px}.marketplace-hero-copy h1{font-size:38px}.marketplace-hero-copy>p:last-of-type{font-size:13px}.home-quick-search{grid-template-columns:minmax(0,1fr) 92px;margin-top:17px}.home-quick-search input,.home-quick-search button{height:43px}.home-quick-search input{padding:9px;font-size:11px}.home-quick-search button{padding:7px;font-size:11px}.marketplace-hero-links{display:flex}.marketplace-hero-links button{flex:1 1 auto}.marketplace-hero-car{min-height:215px}.hero-preview-chip{right:10px;bottom:10px;max-width:205px;padding:9px 11px}.hero-preview-chip strong{font-size:12px}.hero-preview-chip small{font-size:9px}.home-marketplace-head{margin-top:16px}.marketplace-feature-grid{grid-template-columns:1fr}.marketplace-feature-grid article{grid-template-columns:42px minmax(0,1fr)}}

/* Compact mobile tool cards; desktop presentation remains unchanged. */
@media(max-width:560px){.marketplace-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:12px 0 18px}.marketplace-feature-grid article{display:flex;min-width:0;min-height:142px;padding:11px;border-radius:12px}.marketplace-feature-grid article>div{display:flex;min-width:0;flex:1;flex-direction:column}.marketplace-feature-grid .feature-icon{width:30px;height:30px;margin-bottom:7px;border-radius:9px;font-size:16px}.marketplace-feature-grid .feature-status{align-self:flex-start;margin:0 0 4px;padding:3px 5px;font-size:7px}.marketplace-feature-grid h2{margin:0 0 4px;font-size:13px;line-height:1.15}.marketplace-feature-grid p{display:-webkit-box;min-height:0;margin:0 0 7px;overflow:hidden;color:#aeb7bc;font-size:9px;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}.marketplace-feature-grid button{width:100%;min-height:34px;margin-top:auto;padding:6px 5px;font-size:9px;line-height:1.1}}

/* Mobile cards are the action, so their repeated text buttons are unnecessary. */
@media(max-width:560px){.marketplace-feature-grid article{min-height:104px;padding:10px}.marketplace-feature-grid p{margin-bottom:0}.marketplace-feature-grid article>div>button{display:none}}
@media(max-width:560px){.marketplace-feature-grid article{min-height:78px;padding:7px}.marketplace-feature-grid .feature-icon{width:24px;height:24px;margin-bottom:4px;border-radius:7px;font-size:13px}.marketplace-feature-grid h2{font-size:11px}.marketplace-feature-grid p{font-size:8px;line-height:1.2}.marketplace-feature-grid .feature-status{padding:2px 4px;font-size:6px}.search-load-sentinel{height:1px;margin-bottom:80px}}
.view-all-results{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}.view-all-listing-tile{min-width:0;overflow:hidden;border:1px solid #364149;border-radius:12px;background:#11171b;cursor:pointer;content-visibility:auto;contain-intrinsic-size:185px}.view-all-listing-tile:hover,.view-all-listing-tile:focus-visible{border-color:#ffc329;outline:none}.view-all-listing-photo{position:relative;aspect-ratio:1.25/1;overflow:hidden;background:#070a0c}.view-all-listing-photo>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#070a0c}.view-all-listing-photo>span:first-child:not([class]){display:grid;height:100%;place-items:center;color:#778289;font-size:10px}.view-all-listing-price{position:absolute;z-index:5;left:7px;bottom:7px;padding:5px 7px;border-radius:8px;background:#070a0dee;color:#ffc329;font-size:15px;font-weight:950;line-height:1}.view-all-listing-price .old-price{font-size:9px}.view-all-listing-photo>.listing-photo-time{right:7px;bottom:39px;max-width:calc(100% - 14px);font-size:8px}.view-all-listing-tile h3{margin:0;padding:7px 8px 8px;overflow:hidden;color:#eef1f3;font-size:12px;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.view-all-listing-photo .listing-discount-badge{font-size:7px}@media(max-width:900px){.view-all-results{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:700px){.view-all-results{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:560px){.view-all-results{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.view-all-listing-photo{aspect-ratio:1.2/1}.view-all-listing-price{font-size:13px}.view-all-listing-photo>.listing-photo-time{bottom:36px}.view-all-listing-tile h3{padding:6px 7px 7px;font-size:11px}}

/* Shorter desktop hero; tablet and mobile layouts retain their existing sizing. */
@media(min-width:901px){.marketplace-hero{min-height:288px}.marketplace-hero-copy{padding:23px 31px}.marketplace-hero-copy h1{font-size:clamp(38px,3.8vw,52px)}.marketplace-hero-copy>p:last-of-type{margin-top:9px;line-height:1.35}.home-quick-search{margin-top:12px}.home-quick-search input,.home-quick-search button{height:40px}.marketplace-hero-links{margin-top:6px}.marketplace-hero-links button{padding:6px 10px}.marketplace-hero-car{min-height:288px}.hero-preview-chip{right:13px;bottom:13px;padding:9px 11px}}

/* Homepage action hierarchy and photo-first listing previews. */
.marketplace-hero-links .hero-browse-action{align-self:center;padding:7px 10px;border-color:#354047;background:transparent;color:#c7d0d5;font-size:10px}.marketplace-hero-links .hero-post-action{padding:9px 15px;border-color:#ffc329;background:#ffc329;color:#171208;font-size:12px;font-weight:900;box-shadow:0 6px 18px #ffc32924}.marketplace-hero-links .hero-location-action{padding:7px 10px;background:transparent;color:#aeb8bd;font-size:10px}#home-listings{grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.home-listing-tile{position:relative;min-width:0;overflow:hidden;border:1px solid #364149;border-radius:14px;background:#11171b;box-shadow:0 8px 24px #0004;cursor:pointer;transition:transform .18s ease,border-color .18s ease}.home-listing-tile:hover,.home-listing-tile:focus-visible{transform:translateY(-3px);border-color:#ffc329;outline:none}.home-listing-photo{position:relative;aspect-ratio:1.18/1;overflow:hidden;background:#070a0c}.home-listing-photo:after{content:"";position:absolute;inset:auto 0 0;height:48%;background:linear-gradient(transparent,#050708d9);pointer-events:none}.home-listing-photo>img{display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:#070a0c}.home-listing-photo>span:first-child:not([class]){display:grid;place-items:center;width:100%;height:100%;color:#778289;font-size:11px}.home-listing-price{position:absolute;z-index:5;left:10px;bottom:9px;padding:5px 8px;border-radius:9px;background:#070a0de6;color:#ffc329;font-size:17px;font-weight:950;line-height:1}.home-listing-price .old-price{color:#a9b2b7;font-size:10px}.home-listing-price .discount-price{color:#ffc329}.home-listing-tile .listing-age-badge{left:7px;top:7px;bottom:auto}.home-listing-tile .sponsored-label{right:7px;top:7px;bottom:auto}
@media(max-width:1100px){#home-listings{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(min-width:901px){#home-listings{display:flex;grid-template-columns:none;gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x proximity;padding:1px 1px 8px}.home-listing-tile{flex:0 0 calc((100% - 50px)/5.5);scroll-snap-align:start}}
@media(max-width:700px){#home-listings{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-listing-price{left:7px;bottom:7px;font-size:14px}}
.home-listing-tile .sponsored-label{left:auto}
.home-listing-photo>.listing-photo-time{right:8px;bottom:50px;max-width:calc(100% - 16px)}
@media(max-width:700px){.home-listing-photo>.listing-photo-time{right:6px;bottom:43px;max-width:calc(100% - 12px)}}
@media(max-width:420px){#home-listings{grid-template-columns:repeat(2,minmax(0,1fr))}.marketplace-hero-links .hero-browse-action,.marketplace-hero-links .hero-location-action{flex:0 1 auto}.marketplace-hero-links .hero-post-action{flex:1 1 130px}}

/* Mobile homepage simplification. Desktop remains unchanged. */
.mobile-home-menu,.mobile-sponsored-strip,.mobile-post-action{display:none}
@media(max-width:560px){
  #home-listings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;overscroll-behavior:auto;touch-action:pan-y}
  #home-listings .home-listing-tile,#home-listings .home-listing-photo,#home-listings img{touch-action:pan-y}
  #home-view-all{display:none}
  .home-listings-sentinel{width:100%;height:2px;pointer-events:none}
  .marketplace-hero{overflow:visible;margin-top:6px;border-radius:15px}
  .marketplace-hero-copy{position:relative;padding:22px 15px 16px}
  .marketplace-hero-car,.marketplace-hero-links{display:none!important}
  .marketplace-kicker{max-width:calc(100% - 44px);margin-bottom:9px;font-size:8px;letter-spacing:.11em}
  .marketplace-hero-copy h1{font-size:35px;line-height:1.02}
  .marketplace-hero-copy h1 span{display:inline}
  .marketplace-hero-copy>p:last-of-type{margin-top:10px;font-size:12px;line-height:1.4}
  .home-quick-search{grid-template-columns:minmax(0,1fr) 86px;margin-top:13px}
  .home-quick-search input,.home-quick-search button{height:40px}
  .home-quick-search .home-find-submit{position:absolute;width:1px!important;height:1px!important;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .home-quick-search .mobile-post-action{display:inline-flex;align-items:center;justify-content:center;padding:7px;background:#ffc329;color:#171208;font-size:11px;font-weight:950}
  .home-quick-search .mobile-post-action:focus-visible{outline:2px solid #fff;outline-offset:2px}
  .mobile-home-menu{position:absolute;z-index:12;right:11px;top:10px;display:block}
  #mobile-home-menu-toggle{display:grid;place-items:center;width:38px;height:34px;padding:0;border:1px solid #3d484f;border-radius:10px;background:#11171b;color:#ffd235;font-size:17px;font-weight:950;letter-spacing:1px}
  #mobile-home-menu-toggle[aria-expanded=true]{border-color:#ffd235;background:#211d0d}
  #mobile-home-menu-panel{position:absolute;right:0;top:41px;width:min(285px,calc(100vw - 42px));padding:6px;border:1px solid #4a555c;border-radius:13px;background:#0c1114;box-shadow:0 18px 55px #000d}
  #mobile-home-menu-panel[hidden]{display:none}
  #mobile-home-menu-panel button{display:grid;grid-template-columns:30px minmax(0,1fr);gap:1px 8px;width:100%;padding:9px;border:0;border-radius:8px;background:transparent;color:#e8ecee;text-align:left}
  #mobile-home-menu-panel button+button{border-top:1px solid #242d32}
  #mobile-home-menu-panel button:hover,#mobile-home-menu-panel button:focus-visible{background:#191b12;outline:none}
  #mobile-home-menu-panel button>span{grid-row:1/3;align-self:center;color:#ffd235;font-size:20px;text-align:center}
  #mobile-home-menu-panel strong{font-size:12px}
  #mobile-home-menu-panel small{color:#8f9aa0;font-size:9px}
  .mobile-sponsored-strip:not([hidden]){display:flex;gap:8px;overflow-x:auto;margin:10px 0 0;padding:0 1px 4px;scroll-snap-type:x mandatory;overscroll-behavior-inline:contain}
  .mobile-sponsored-strip:not([hidden])>*{flex:0 0 min(76vw,270px);scroll-snap-align:start}
  .home-marketplace-head{margin:13px 0 7px}
  .home-marketplace-head h2{font-size:19px}
  #home-listings>.marketplace-empty{grid-column:1/-1;min-height:82px;padding:16px}
}

/* On desktop the complete card is the action, with compact and visible feedback. */
@media(min-width:561px){.marketplace-feature-grid article[data-home-tool]{padding:13px;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.marketplace-feature-grid article[data-home-tool]:hover{border-color:#69757d;background:linear-gradient(145deg,#171e22,#0c1114);box-shadow:0 13px 30px #0005;transform:translateY(-2px)}.marketplace-feature-grid article[data-home-tool]:focus-visible{border-color:#ffc329;box-shadow:0 0 0 3px #ffc3292e,0 13px 30px #0005}.marketplace-feature-grid article[data-home-tool] p{min-height:0;margin-bottom:0}}

/* Preserve the complete listing photo while filling unused card space with a soft copy. */
.home-listing-photo,.view-all-listing-photo{isolation:isolate}
.home-listing-photo:before,.view-all-listing-photo:before{content:"";position:absolute;z-index:0;inset:-12%;background-image:var(--listing-bg);background-position:center;background-size:cover;filter:blur(18px) brightness(.48) saturate(.86);transform:scale(1.04);pointer-events:none}
.home-listing-photo>.listing-photo-foreground,.view-all-listing-photo>.listing-photo-foreground{position:relative;z-index:1;display:block;width:100%;height:100%;object-fit:contain;object-position:center;background:transparent}
.home-listing-photo:after{z-index:2}
.home-listing-photo>span:first-child:not([class]),.view-all-listing-photo>span:first-child:not([class]){position:relative;z-index:1}

/* Interactive, pixel-aligned BMW wheel comparison on the desktop/tablet hero. */
.hero-wheel-compare{position:absolute;inset:0;overflow:hidden;background:#080c0f;touch-action:pan-y}.hero-wheel-option{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.hero-wheel-option-two{position:absolute;inset:0;overflow:hidden;clip-path:inset(0 calc(100% - var(--hero-compare-position)) 0 0)}.hero-wheel-option-two img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}.hero-wheel-divider{position:absolute;z-index:3;top:0;bottom:0;left:var(--hero-compare-position);width:2px;background:#ffd235;box-shadow:0 0 0 1px #0007,0 0 14px #000;transform:translateX(-1px);pointer-events:none}.hero-wheel-divider span{position:absolute;left:50%;top:50%;display:grid;place-items:center;width:34px;height:34px;border:2px solid #171208;border-radius:50%;background:#ffd235;color:#171208;font-size:16px;font-weight:950;transform:translate(-50%,-50%)}#hero-wheel-slider{position:absolute;z-index:4;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize}.hero-wheel-compare-label{position:absolute;z-index:5;top:12px;left:50%;padding:6px 10px;border:1px solid #ffffff38;border-radius:999px;background:#070b0dcc;color:#fff;font-size:10px;font-weight:850;letter-spacing:.03em;transform:translateX(-50%);pointer-events:none}.hero-preview-chip{z-index:6}@media(max-width:560px){.hero-wheel-compare{display:none}}

/* Keep all wheel pixels visible: controls and promotional copy live outside the photo. */
.marketplace-hero-car{display:grid;grid-template-rows:minmax(0,1fr) auto}.marketplace-hero-car:after{display:none}.marketplace-hero-car .hero-wheel-compare{position:relative;inset:auto;min-height:288px}.marketplace-hero-car .hero-preview-chip{position:static;z-index:6;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:none;padding:9px 12px;border:0;border-top:1px solid #303a40;border-radius:0;background:#0b1013;color:#fff;text-align:center;box-shadow:none}.marketplace-hero-car .hero-preview-chip strong{font-size:12px}.marketplace-hero-car .hero-preview-chip small{color:#9eaaaf;font-size:10px}@media(min-width:901px){.marketplace-hero{min-height:327px}.marketplace-hero-car{min-height:327px}}@media(max-width:900px) and (min-width:561px){.marketplace-hero-car .hero-wheel-compare{min-height:300px}}

/* Brighter Light-theme homepage surfaces. Dark and System-dark retain their theme. */
[data-theme="day"] .home-marketplace-head h2,
[data-theme="day"] .marketplace-feature-grid h2,
[data-theme="day"] .how-tirenest-works h2,
[data-theme="day"] .how-tirenest-works h3{color:#20252a}

[data-theme="day"] .home-listing-tile{
  border-color:#d8dde1;
  background:#fff;
  box-shadow:0 7px 20px #25313b14
}
[data-theme="day"] .home-listing-tile:hover,
[data-theme="day"] .home-listing-tile:focus-visible{
  border-color:#d7a711;
  box-shadow:0 11px 26px #25313b20
}
[data-theme="day"] .home-listing-photo{
  background:#f3f5f6;
}
[data-theme="day"] .home-listing-photo:before{
  display:none
}
[data-theme="day"] .home-listing-photo>.listing-photo-foreground,
[data-theme="day"] .home-listing-photo>img{
  object-fit:cover;
  background:#f3f5f6
}
[data-theme="day"] .home-listing-photo>span:first-child:not([class]){
  color:#68737a
}

[data-theme="day"] .marketplace-feature-grid article,
[data-theme="day"] .marketplace-feature-grid article[data-home-tool]{
  border-color:#d9dee2;
  background:#fff;
  color:#20252a;
  box-shadow:0 7px 20px #25313b12
}
[data-theme="day"] .marketplace-feature-grid p,
[data-theme="day"] .marketplace-feature-grid article[data-home-tool] p{
  color:#626d74
}
[data-theme="day"] .marketplace-feature-grid .feature-icon{
  background:#fff9e5;
  color:#b98700;
  border-color:#e2bd49
}
@media(min-width:561px){
  [data-theme="day"] .marketplace-feature-grid article[data-home-tool]:hover{
    border-color:#d7a711;
    background:#fffdf7;
    box-shadow:0 11px 26px #25313b1c
  }
  [data-theme="day"] .marketplace-feature-grid article[data-home-tool]:focus-visible{
    border-color:#d7a711;
    box-shadow:0 0 0 3px #ffc32935,0 11px 26px #25313b1c
  }
}

[data-theme="day"] .how-tirenest-works{
  border-color:#d9dee2;
  background:#fff;
  color:#20252a;
  box-shadow:0 8px 24px #25313b12
}
[data-theme="day"] .how-tirenest-works article{
  min-height:88px;
  padding-top:14px;
  padding-right:14px;
  padding-bottom:14px;
  border:1px solid #e2e6e9;
  border-radius:14px;
  background:#f7f8f8
}
[data-theme="day"] .how-tirenest-works article>span{
  left:10px;
  top:12px;
  border-color:#d5a30c;
  background:#fff8dd;
  color:#9a7100
}
[data-theme="day"] .how-tirenest-works p{
  color:#626d74
}
@media(max-width:560px){
  [data-theme="day"] .marketplace-feature-grid p{
    color:#626d74
  }
  [data-theme="day"] .how-tirenest-works article{
    min-height:72px
  }
}

/* Improve hero text contrast on the existing light background. */
.home-city-directory{margin:28px 0 20px;padding:20px;border:1px solid var(--line,#ddd);border-radius:18px;background:var(--panel,#fff);color:var(--text,#20252a)}
.home-city-directory summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:none}
.home-city-directory summary::-webkit-details-marker{display:none}
.home-city-directory summary strong{font-size:1.15rem;display:block}
.home-city-directory summary small{display:block;margin-top:5px;color:var(--muted,#626d74)}
.home-city-toggle{color:#a87b00;font-size:1.5rem}
.home-city-directory[open] .home-city-toggle{transform:rotate(45deg)}
.home-city-directory nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:18px}
.home-city-directory nav a{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:12px 14px;border:1px solid var(--line,#ddd);border-radius:10px;color:inherit;text-decoration:none;font-size:.95rem;font-weight:650;background:transparent}
.home-city-directory nav a span{font-size:.75rem;color:var(--muted,#626d74);font-weight:400}
.home-city-directory nav a:hover{border-color:#c99a13;background:rgba(233,178,24,.1)}
.home-city-directory a:focus-visible,.home-city-directory summary:focus-visible{outline:2px solid #c99a13;outline-offset:3px}
@media(max-width:700px){.home-city-directory{margin:20px 0;padding:15px;border-radius:14px}.home-city-directory nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:14px}.home-city-directory nav a{padding:11px 10px;font-size:.85rem}.home-city-directory summary strong{font-size:1rem}}
[data-theme="day"] .marketplace-hero .marketplace-kicker{color:#41494f;font-weight:950}
[data-theme="day"] .marketplace-hero-copy h1{color:#20252a}
[data-theme="day"] .marketplace-hero-copy>p:last-of-type{color:#505a62}

/* Shorter mobile opening without changing the header or desktop hero. */
@media(max-width:560px){
  .marketplace-hero-copy{padding:9px 15px 7px}
  .marketplace-kicker{margin-bottom:4px}
  .marketplace-hero-copy h1{font-size:31px;line-height:1}
  .marketplace-hero-copy>p:last-of-type{margin-top:5px;line-height:1.3}
  .home-quick-search{margin-top:7px}
  .home-quick-search input,.home-quick-search button{height:44px;min-height:44px}
}

/* iPhone Safari: keep the homepage search at normal width when the keyboard opens. */
@media(max-width:560px){
  html,body{max-width:100%;overflow-x:hidden}
  .container,.marketplace-hero,.marketplace-hero-copy,.home-quick-search,.home-marketplace-head,#home-listings,.home-listing-tile{min-width:0;max-width:100%}
  .home-quick-search{grid-template-columns:minmax(0,1fr) minmax(88px,96px);gap:8px;width:100%;max-width:100%;align-items:stretch}
  .home-quick-search input{min-width:0;width:100%;padding:9px 10px;font-size:16px;line-height:1.2}
  .home-quick-search .home-find-submit{position:static;width:auto!important;height:44px!important;margin:0;padding:7px 9px;border:0;overflow:visible;clip-path:none;white-space:normal;font-size:12px;line-height:1.1}
  .home-quick-search .mobile-post-action{display:none}
  .marketplace-hero-copy h1,.home-marketplace-head h2,.home-listing-tile h3{overflow-wrap:anywhere}
}
