/* JobLik 0.33.605 — PG-GALLERY-DESKTOP-001 ONLY
   Exact 146px card closure: 122px media + 24px footer.
   Mobile is intentionally untouched: this file is loaded with media=(min-width:901px).
*/
@media (min-width:901px){
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-cars-row.apg-grid.card-view-medium{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:146px!important;
    gap:4px!important;
    row-gap:4px!important;
    column-gap:4px!important;
    align-items:start!important;
    align-content:start!important;
    padding:4px!important;
    margin:0!important;
    border:0!important;
    border-bottom:0!important;
    background:#f3f5f7!important;
    box-sizing:border-box!important;
  }

  /* The :not() chain deliberately outranks the legacy tuning-v03339 rule
     that imposed min-height:182px, padding:8px and the orange 2px edge. */
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-featured .v064-cars-row.apg-grid.card-view-medium:not(.card-view-small):not(.card-view-large):not(.card-view-extra)>.apg-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:46% 54%!important;
    grid-template-rows:122px 24px!important;
    width:100%!important;
    height:146px!important;
    min-height:146px!important;
    max-height:146px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#fff!important;
    border:1px solid #dfe4e9!important;
    border-bottom:0!important;
    border-radius:7px!important;
    box-shadow:none!important;
    outline:0!important;
    direction:ltr!important;
  }

  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card>.apg-media{
    position:relative!important;
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:122px!important;
    min-height:122px!important;
    max-height:122px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#eef1f4!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card>.apg-media .apg-media-slider,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card>.apg-media .apg-media-slider>img:first-child{
    display:block!important;
    width:100%!important;
    height:122px!important;
    min-height:122px!important;
    max-height:122px!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card>.apg-media .apg-media-slider>img:first-child{
    object-fit:cover!important;
    object-position:center!important;
  }

  /* Text column uses the complete card height so the two bottom metadata rows
     stay visible exactly as in the approved desktop reference. */
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card>.apg-body{
    position:relative!important;
    grid-column:2!important;
    grid-row:1 / span 2!important;
    display:block!important;
    width:100%!important;
    height:146px!important;
    min-height:146px!important;
    max-height:146px!important;
    margin:0!important;
    padding:3px 10px 2px!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#fff!important;
    direction:rtl!important;
    text-align:right!important;
    border:0!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-mobile-card-copy{
    display:grid!important;
    grid-template-columns:100%!important;
    grid-template-rows:19px 6px 21px 21px 21px 15px 19px 19px!important;
    width:100%!important;
    height:142px!important;
    min-height:142px!important;
    max-height:142px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    align-items:center!important;
    gap:0!important;
    direction:rtl!important;
    text-align:right!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .j541-card-middle,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .j541-card-bottom{display:contents!important}
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-card-line{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-card-line-title{
    grid-row:1!important;
    height:19px!important;
    color:#ef6517!important;
    font-size:11.4px!important;
    font-weight:900!important;
    line-height:18px!important;
    padding-top:2px!important;
    box-sizing:border-box!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-card-line-spec{
    grid-row:3!important;height:21px!important;line-height:21px!important;color:#121a22!important;font-size:9.8px!important;font-weight:700!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-card-line-condition{
    grid-row:4!important;height:21px!important;line-height:21px!important;color:#121a22!important;font-size:9.8px!important;font-weight:700!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-card-line-price{
    grid-row:5!important;height:21px!important;line-height:21px!important;color:#050505!important;font-size:11.2px!important;font-weight:950!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-card-line-location{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    grid-row:7!important;
    height:19px!important;
    min-height:19px!important;
    max-height:19px!important;
    line-height:19px!important;
    color:#202832!important;
    font-size:9.4px!important;
    font-weight:850!important;
    align-self:end!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card .jam-card-line-date{
    display:block!important;
    visibility:visible!important;
    opacity:1!important;
    grid-row:8!important;
    height:19px!important;
    min-height:19px!important;
    max-height:19px!important;
    line-height:19px!important;
    color:#6e7984!important;
    font-size:10.2px!important;
    font-weight:600!important;
    align-self:end!important;
  }

  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card>.j538-card-footer{
    position:relative!important;
    inset:auto!important;
    grid-column:1!important;
    grid-row:2!important;
    z-index:40!important;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    align-items:center!important;
    width:100%!important;
    height:24px!important;
    min-height:24px!important;
    max-height:24px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:#fff!important;
    overflow:hidden!important;
    direction:ltr!important;
    box-sizing:border-box!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .j538-card-footer>*{
    display:flex!important;align-items:center!important;height:24px!important;min-height:24px!important;margin:0!important;padding:0 4px!important;border:0!important;background:transparent!important;line-height:24px!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .j538-card-footer .j538-views{justify-content:flex-start!important;gap:4px!important;color:#202832!important}
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .j538-card-footer .j538-save{justify-content:center!important;color:#64717d!important;pointer-events:auto!important}
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .j538-card-footer .j538-approved{justify-content:flex-end!important;color:#13a45b!important;font-weight:800!important;white-space:nowrap!important}
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .apg-card :is(.j139-card-status,.j524-desktop-status,.apg-mobile-save,.apg-approved,.apg-click-count,.apg-viewed-marker){display:none!important}
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) #featured,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-featured,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-cars-row.apg-grid.card-view-medium{
    height:auto!important;min-height:0!important;padding-bottom:0!important;border-bottom:0!important;box-shadow:none!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) :is(#featured,.v064-featured,.v064-cars-row.apg-grid.card-view-medium)::before,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) :is(#featured,.v064-featured,.v064-cars-row.apg-grid.card-view-medium)::after{
    content:none!important;display:none!important;border:0!important;box-shadow:none!important;
  }
}

/* 0.33.602: preserve the open 598 text rhythm; collapse only the outer dead space. */
@media (min-width:901px){
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) #featured,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-featured{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
    border-bottom:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-cars-row.apg-grid.card-view-medium{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin-bottom:0!important;
    padding-bottom:0!important;
    border-bottom:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) #featured::before,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) #featured::after,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-featured::before,
  html body :is(.v064-home.j515-unified-gallery,.v064-home.automotive-gallery-only) .v064-featured::after{
    content:none!important;
    display:none!important;
    border:0!important;
    box-shadow:none!important;
  }
}
