/* JobLik 0.33.559 — single desktop owner for unified /gallery.
   Consolidates prior 534-558 visual rules and enforces true Divar-like card separation.

   Based on the stable 550 geometry; internal card content/footer contract is preserved.

   Former note: JobLik 0.33.550 — unified /gallery desktop card polish.
   Exact visible information contract:
   1 title, 2 blank, 3 model/mileage, 4 chassis/color, 5 price,
   6 blank, 7 province/city, 8 publish time/date.
   The status row is a separate row directly under the image. */
@media (min-width:769px){
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:136px!important;
    row-gap:10px!important;
    column-gap:10px!important;
    gap:10px!important;
    align-items:start!important;
    align-content:start!important;
    padding:10px!important;
    margin:0!important;
    box-sizing:border-box!important;
    background:#f6f7f9!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:46% 54%!important;
    grid-template-rows:112px 24px!important;
    width:100%!important;
    height:136px!important;
    min-height:136px!important;
    max-height:136px!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    background:#fff!important;
    border:1px solid #dfe3e8!important;
    border-radius:8px!important;
    box-shadow:none!important;
    direction:ltr!important;
  }

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

  html body .v064-home.j515-unified-gallery .apg-card>.apg-body{
    position:relative!important;
    grid-column:2!important;
    grid-row:1!important;
    display:block!important;
    width:100%!important;
    height:112px!important;
    min-height:112px!important;
    max-height:112px!important;
    margin:0!important;
    padding:0 10px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    direction:rtl!important;
    text-align:right!important;
    background:#fff!important;
    border:0!important;
  }

  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    display:grid!important;
    grid-template-columns:100%!important;
    grid-template-rows:14px 8px 19px 19px 19px 8px 11px 14px!important;
    width:100%!important;
    height:112px!important;
    min-height:112px!important;
    max-height:112px!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 .v064-home.j515-unified-gallery .apg-card .j541-card-middle,
  html body .v064-home.j515-unified-gallery .apg-card .j541-card-bottom{display:contents!important}

  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-title{
    display:block!important;
    grid-column:1!important;
    grid-row:1!important;
    height:14px!important;
    margin:0!important;
    padding:0!important;
    color:#ef6517!important;
    font-size:11.4px!important;
    font-weight:900!important;
    line-height:11px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    align-self:start!important;
  }

  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-spec{
    display:block!important;
    grid-column:1!important;
    grid-row:3!important;
    height:14px!important;
    margin:0!important;
    padding:0!important;
    color:#121a22!important;
    font-size:9.8px!important;
    font-weight:700!important;
    line-height:14px!important;
    align-self:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-condition{
    display:block!important;
    grid-column:1!important;
    grid-row:4!important;
    height:14px!important;
    margin:0!important;
    padding:0!important;
    color:#121a22!important;
    font-size:9.8px!important;
    font-weight:700!important;
    line-height:14px!important;
    align-self:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-price{
    display:block!important;
    grid-column:1!important;
    grid-row:5!important;
    height:15px!important;
    margin:0!important;
    padding:0!important;
    color:#050505!important;
    font-size:11.2px!important;
    font-weight:950!important;
    line-height:15px!important;
    align-self:center!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-location{
    display:block!important;
    grid-column:1!important;
    grid-row:7!important;
    height:11px!important;
    margin:0!important;
    padding:0!important;
    color:#202832!important;
    font-size:9.4px!important;
    font-weight:850!important;
    line-height:14px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    align-self:end!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-date{
    display:block!important;
    grid-column:1!important;
    grid-row:8!important;
    height:14px!important;
    margin:0!important;
    padding:0!important;
    color:#6e7984!important;
    font-size:8.4px!important;
    font-weight:550!important;
    line-height:14px!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    align-self:end!important;
  }

  /* Separate status strip: exactly below the image and exactly image width. */
  html body .v064-home.j515-unified-gallery .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;
    border-top:0!important;
    box-shadow:none!important;
    background:#fff!important;
    overflow:hidden!important;
    direction:ltr!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .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;
    box-shadow:none!important;
    line-height:24px!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views{justify-content:flex-start!important;color:#202832!important;gap:4px!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save{justify-content:center!important;justify-self:stretch!important;color:#64717d!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{justify-content:flex-end!important;color:#13a45b!important;font-weight:800!important;white-space:nowrap!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer svg{width:13px!important;height:13px!important}

  html body .v064-home.j515-unified-gallery .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 .v064-home.j515-unified-gallery .apg-card>.j517-card-hitarea{position:absolute!important;inset:0!important;z-index:20!important;display:block!important}
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer{z-index:40!important;pointer-events:auto!important}
}


/* 0.33.550 — remove residual gallery frame/separator lines and normalize rhythm. */
@media (min-width:769px){
  html body .v064-home.j515-unified-gallery :is(
    .apg-gallery-shell,
    .apg-gallery-main,
    .apg-results,
    .apg-list-wrap,
    .v064-cars,
    .v064-cars-row,
    .card-view-medium
  ){
    border-top:0!important;
    border-bottom:0!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    border:0!important;
    box-shadow:none!important;
    column-gap:10px!important;
    row-gap:10px!important;
    background:transparent!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    border:1px solid #dfe3e8!important;
    outline:0!important;
    box-shadow:none!important;
    border-radius:8px!important;
  }

  /* No inherited pseudo-element may redraw orange/grey separators. */
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium::before,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium::after,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card::before,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card::after{
    content:none!important;
    display:none!important;
    border:0!important;
  }

  /* Keep the status strip independent and clean, exactly under the image. */
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer{
    border:0!important;
    border-top:0!important;
    border-bottom:0!important;
    box-shadow:none!important;
  }
}


/* JobLik 0.33.552
   Preserve 0.33.550 card/status geometry.
   Only: equal visual gaps, approved edge alignment, RTL toolbar, hidden scrollbars. */
@media (min-width:769px){

  /* Initial value; JS measures the actual horizontal card gap and mirrors it vertically. */
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    --j552-card-gap:10px;
    column-gap:var(--j552-card-gap)!important;
    row-gap:var(--j552-card-gap)!important;
    gap:var(--j552-card-gap)!important;
  }

  /* Keep the exact stable 550 footer order/layout. Only pull "approved" 2px closer to image right edge. */
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{
    justify-content:flex-end!important;
    padding-right:1px!important;
    padding-left:0!important;
    text-align:right!important;
  }

  /* Top unified gallery controls: true RTL / right-origin flow. */
  html body .v064-home.j515-unified-gallery .j552-rtl-toolbar{
    direction:rtl!important;
    text-align:right!important;
    justify-content:flex-start!important;
  }

  html body .v064-home.j515-unified-gallery .j552-rtl-toolbar>*{
    direction:rtl!important;
  }

  /* Hide ALL visible scrollbar tracks on this gallery page while preserving scrolling. */
  html.joblik-gallery-scroll-hidden,
  html.joblik-gallery-scroll-hidden body,
  html.joblik-gallery-scroll-hidden body *{
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }

  html.joblik-gallery-scroll-hidden::-webkit-scrollbar,
  html.joblik-gallery-scroll-hidden body::-webkit-scrollbar,
  html.joblik-gallery-scroll-hidden body *::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
    background:transparent!important;
  }

  /* Functional category/location popup. */
  .j552-backdrop{
    position:fixed!important;
    inset:0!important;
    z-index:62000!important;
    background:rgba(15,23,42,.38)!important;
  }
  .j552-filter-modal{
    position:fixed!important;
    z-index:62001!important;
    top:50%!important;
    right:50%!important;
    transform:translate(50%,-50%)!important;
    width:min(620px,calc(100vw - 48px))!important;
    max-height:calc(100vh - 56px)!important;
    overflow:hidden!important;
    direction:rtl!important;
    background:#fff!important;
    border:1px solid #dbe2e9!important;
    border-radius:14px!important;
    box-shadow:0 24px 70px rgba(15,23,42,.28)!important;
  }
  .j552-filter-modal>header{
    display:flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:space-between!important;
    height:52px!important;
    padding:0 14px!important;
    border-bottom:1px solid #e8edf2!important;
    font:900 15px Vazirmatn,Tahoma,sans-serif!important;
  }
  .j552-filter-modal>header button{
    width:34px!important;height:34px!important;border:0!important;border-radius:50%!important;
    background:#f4f6f8!important;font-size:22px!important;cursor:pointer!important;
  }
  .j552-filter-body{
    max-height:calc(100vh - 110px)!important;
    overflow:auto!important;
    padding:14px!important;
  }
  .j552-filter-search{
    width:100%!important;height:42px!important;box-sizing:border-box!important;
    margin:0 0 10px!important;padding:0 12px!important;border:1px solid #ccd5df!important;
    border-radius:9px!important;direction:rtl!important;text-align:right!important;
    font:600 13px Vazirmatn,Tahoma,sans-serif!important;
  }
  .j552-filter-grid{
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;
  }
  .j552-filter-choice{
    min-height:44px!important;padding:0 11px!important;border:1px solid #dde4ea!important;
    border-radius:9px!important;background:#fff!important;text-align:right!important;direction:rtl!important;
    font:800 12px Vazirmatn,Tahoma,sans-serif!important;cursor:pointer!important;
  }
  .j552-filter-choice:hover{border-color:#f47721!important;background:#fff8f3!important}
  .j552-filter-back{
    margin:0 0 10px!important;border:0!important;background:transparent!important;color:#e96512!important;
    font:850 12px Vazirmatn,Tahoma,sans-serif!important;cursor:pointer!important;
  }
}


/* JobLik 0.33.553 — exact row rhythm + canonical mobile filter UI on desktop. */
@media (min-width:901px){

  /* Card is 136px. Make each grid track 144px and remove CSS row-gap.
     The unused 8px in every track becomes a guaranteed 8px visual gap,
     equal to the existing 8px horizontal gap. */
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    grid-auto-rows:144px!important;
    column-gap:8px!important;
    row-gap:0!important;
    gap:0 8px!important;
    align-items:start!important;
    align-content:start!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    height:136px!important;
    min-height:136px!important;
    max-height:136px!important;
    margin:0!important;
    align-self:start!important;
  }

  /* Preserve the stable 550 footer geometry.
     Move only the approved text a few pixels toward the right image edge. */
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{
    transform:translateX(4px)!important;
    padding:0!important;
  }

  /* Runtime marks the actual two desktop toolbar rows with these classes. */
  html body .v064-home.j515-unified-gallery .j553-toolbar-row{
    direction:rtl!important;
    text-align:right!important;
    justify-content:flex-start!important;
  }
  html body .v064-home.j515-unified-gallery .j553-toolbar-row>*{
    direction:rtl!important;
  }

  /* Canonical mobile city/filter page, reused on desktop. */
  body [data-j528="city"],body [data-j528="category"]{
    direction:rtl!important;
    text-align:right!important;
  }
  body.j553-lock{overflow:hidden!important}
  body .j553-native-backdrop{
    position:fixed!important;z-index:65000!important;inset:0!important;display:block!important;
    background:#0f172a73!important;
  }
  body .jam-city-picker.j553-native-city,
  body .jam-filter-page.j553-native-page{
    position:fixed!important;z-index:65001!important;top:50%!important;right:50%!important;left:auto!important;bottom:auto!important;
    display:block!important;width:min(620px,calc(100vw - 40px))!important;height:min(760px,calc(100vh - 40px))!important;
    max-height:calc(100vh - 40px)!important;margin:0!important;padding:0!important;transform:translate(50%,-50%)!important;
    border:1px solid #d9e0e8!important;border-radius:16px!important;background:#fff!important;
    box-shadow:0 24px 70px #0f172a4d!important;overflow:hidden!important;direction:rtl!important;
  }
  body .jam-city-picker.j553-native-city>form{display:flex!important;flex-direction:column!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important}
  body .j553-native-city .jam-city-picker-head,
  body .j553-native-page .jam-filter-page-head{
    display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:54px!important;
    padding:0 16px!important;border-bottom:1px solid #e8edf2!important;background:#071725!important;color:#fff!important;
  }
  body .j553-native-city .jam-city-picker-head strong{color:#fff!important;font-size:17px!important;font-weight:900!important}
  body .j553-native-city .jam-city-picker-head button,
  body .j553-native-page .jam-filter-page-head button{
    display:grid!important;place-items:center!important;width:36px!important;height:36px!important;margin:0!important;padding:0!important;
    border:0!important;border-radius:50%!important;background:#fff!important;color:#17212b!important;font-size:24px!important;cursor:pointer!important;
  }
  body .j553-native-city .jam-city-picker-search{
    display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;
    height:48px!important;margin:14px 18px 10px!important;padding:0 12px!important;border:1px solid #ccd5df!important;
    border-radius:10px!important;background:#fff!important;
  }
  body .j553-native-city .jam-city-picker-search input{
    width:100%!important;height:44px!important;margin:0!important;padding:0!important;border:0!important;outline:0!important;background:transparent!important;
    font:700 14px/44px Vazirmatn,Tahoma,sans-serif!important;direction:rtl!important;text-align:right!important;
  }
  body .j553-native-city .jam-city-picker-list{
    flex:1 1 auto!important;min-height:0!important;padding:0 18px 10px!important;overflow-y:auto!important;background:#fff!important;
  }
  body .j553-native-city .jam-location-province{display:block!important;margin:0!important;padding:0!important;border-bottom:1px solid #e8edf2!important;background:#fff!important}
  body .j553-native-city .jam-location-province[hidden],body .j553-native-city .jam-location-city[hidden]{display:none!important}
  body .j553-native-city .jam-location-province-row{display:grid!important;grid-template-columns:minmax(0,1fr) 42px!important;align-items:center!important;min-height:50px!important}
  body .j553-native-city .jam-location-province-row>label{display:flex!important;align-items:center!important;gap:10px!important;min-height:50px!important;margin:0!important;padding:0 6px!important;cursor:pointer!important}
  body .j553-native-city .jam-location-province-row>button{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;cursor:pointer!important}
  body .j553-native-city .jam-location-cities{display:none!important;padding:2px 32px 8px 0!important;background:#f8fafb!important}
  body .j553-native-city .jam-location-province.is-open .jam-location-cities,
  body .j553-native-city .jam-location-province.is-searching .jam-location-cities{display:grid!important}
  body .j553-native-city .jam-location-city{display:flex!important;align-items:center!important;gap:10px!important;min-height:40px!important;margin:0!important;padding:0 7px!important;border-top:1px solid #edf1f4!important;cursor:pointer!important}
  body .j553-native-city .jam-city-picker-actions{
    display:grid!important;grid-template-columns:120px minmax(0,1fr)!important;gap:10px!important;min-height:64px!important;
    padding:10px 18px!important;border-top:1px solid #e2e8ef!important;background:#fff!important;
  }
  body .j553-native-city .jam-city-picker-actions button{height:44px!important;margin:0!important;border-radius:10px!important;font:850 14px/1 Vazirmatn,Tahoma,sans-serif!important;cursor:pointer!important}
  body .j553-native-city .jam-city-clear{border:1px solid #cfd8e2!important;background:#fff!important;color:#5e6875!important}
  body .j553-native-city .jam-city-apply{border:1px solid #ed6811!important;background:#ed6811!important;color:#fff!important}

  body .j553-native-page .jam-filter-page-form{display:flex!important;flex-direction:column!important;height:calc(100% - 54px)!important}
  body .j553-native-page .jam-filter-page-scroll{flex:1 1 auto!important;padding:16px 20px!important;overflow:auto!important}
  body .j553-native-page .jam-filter-section{display:grid!important;gap:8px!important;margin:0 0 16px!important;padding:0 0 15px!important;border-bottom:1px solid #e8edf2!important}
  body .j553-native-page :is(select,input){width:100%!important;min-height:44px!important;padding:0 11px!important;border:1px solid #ccd5df!important;border-radius:9px!important;background:#fff!important;box-sizing:border-box!important}
  body .j553-native-page .jam-filter-page-actions{display:grid!important;grid-template-columns:140px minmax(0,1fr)!important;gap:10px!important;padding:10px 20px!important;border-top:1px solid #e2e8ef!important;background:#fff!important}
  body .j553-native-page .jam-filter-page-actions>*{display:grid!important;place-items:center!important;min-height:44px!important;border-radius:10px!important;text-decoration:none!important}
  body .j553-native-page .jam-filter-page-actions button{border:0!important;background:#ed6811!important;color:#fff!important;font-weight:850!important}

  body .j553-quick{display:grid!important;gap:12px!important}
  body .j553-quick :is(select,input){width:100%!important;min-height:46px!important;padding:0 11px!important;border:1px solid #ccd5df!important;border-radius:9px!important;box-sizing:border-box!important}
  body .j553-quick .jam-quick-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  body .j553-quick .jam-quick-actions>*{display:grid!important;place-items:center!important;min-height:44px!important;border-radius:9px!important;text-decoration:none!important}
  body .j553-quick .jam-quick-actions button{border:0!important;background:#ed6811!important;color:#fff!important;font-weight:850!important}
}


/* JobLik 0.33.554 — final-owner corrections.
   The grid's inline !important values were corrected in home.php. */
@media (min-width:901px){
  /* Exact physical rhythm: 136px card inside 144px track = 8px vertical visual gap.
     Horizontal grid gap is also 8px. */
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    grid-auto-rows:144px!important;
    row-gap:0!important;
    column-gap:8px!important;
    gap:0 8px!important;
    padding-top:8px!important;
    padding-bottom:8px!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    height:136px!important;
    min-height:136px!important;
    max-height:136px!important;
    margin:0!important;
  }

  /* Under-image status: preserve stable order and move approved text to the image right edge. */
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{
    justify-content:flex-end!important;
    justify-self:stretch!important;
    margin:0!important;
    padding:0!important;
    transform:translateX(7px)!important;
    text-align:right!important;
  }

  /* The two visible top control rows are marked by JS, and truly start from the right. */
  html body .v064-home.j515-unified-gallery .j554-toolbar-row{
    display:flex!important;
    width:100%!important;
    direction:rtl!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    align-items:center!important;
    text-align:right!important;
  }

  /* Hide all gallery-page scrollbar tracks, including RTL scroll containers on the left.
     Scrolling itself remains enabled. */
  html body.joblik-listing-gallery-page,
  html body.joblik-listing-gallery-page *,
  html.joblik-gallery-554,
  html.joblik-gallery-554 body,
  html.joblik-gallery-554 body *{
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
  }
  html body.joblik-listing-gallery-page::-webkit-scrollbar,
  html body.joblik-listing-gallery-page *::-webkit-scrollbar,
  html.joblik-gallery-554::-webkit-scrollbar,
  html.joblik-gallery-554 body::-webkit-scrollbar,
  html.joblik-gallery-554 body *::-webkit-scrollbar{
    width:0!important;
    height:0!important;
    display:none!important;
    background:transparent!important;
  }

  /* One robust desktop picker owner. */
  .j554-overlay{
    position:fixed!important;
    inset:0!important;
    z-index:67000!important;
    background:rgba(15,23,42,.42)!important;
  }
  .j554-picker{
    position:fixed!important;
    z-index:67001!important;
    top:50%!important;
    right:50%!important;
    transform:translate(50%,-50%)!important;
    width:min(620px,calc(100vw - 48px))!important;
    max-height:min(760px,calc(100vh - 48px))!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
    direction:rtl!important;
    background:#fff!important;
    border:1px solid #d7dfe7!important;
    border-radius:14px!important;
    box-shadow:0 24px 70px rgba(15,23,42,.28)!important;
  }
  .j554-picker-head{
    display:flex!important;
    align-items:center!important;
    justify-content:space-between!important;
    min-height:54px!important;
    padding:0 16px!important;
    border-bottom:1px solid #e6ebf0!important;
    background:#fff!important;
  }
  .j554-picker-head strong{font:900 16px/1.3 Vazirmatn,Tahoma,sans-serif!important;color:#17212b!important}
  .j554-picker-close{
    width:34px!important;height:34px!important;border:0!important;border-radius:50%!important;
    background:#f2f4f6!important;color:#202936!important;font-size:22px!important;cursor:pointer!important;
  }
  .j554-picker-body{
    flex:1 1 auto!important;
    min-height:0!important;
    overflow:auto!important;
    padding:14px 16px!important;
  }
  .j554-search{
    width:100%!important;height:44px!important;box-sizing:border-box!important;
    margin:0 0 12px!important;padding:0 12px!important;border:1px solid #cdd6df!important;
    border-radius:9px!important;outline:0!important;direction:rtl!important;text-align:right!important;
    font:650 13px/44px Vazirmatn,Tahoma,sans-serif!important;
  }
  .j554-choice-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .j554-choice{
    min-height:44px!important;padding:0 12px!important;border:1px solid #dce3e9!important;
    border-radius:9px!important;background:#fff!important;text-align:right!important;direction:rtl!important;
    font:800 12.5px/1.5 Vazirmatn,Tahoma,sans-serif!important;cursor:pointer!important;
  }
  .j554-choice:hover{border-color:#f06a16!important;background:#fff8f3!important}
  .j554-back{
    margin:0 0 10px!important;padding:0!important;border:0!important;background:transparent!important;
    color:#ed6811!important;font:850 12px/1.5 Vazirmatn,Tahoma,sans-serif!important;cursor:pointer!important;
  }
}


/* JobLik 0.33.556 — surgical corrections on top of the stable 0.33.554 card geometry.
   DO NOT change image/body/footer geometry. */
@media (min-width:901px){
  /* Equal physical vertical/horizontal distance: horizontal remains 8px.
     Each 144px row contains a 136px card with 4px breathing space above+below,
     therefore adjacent visible cards are exactly 8px apart. */
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    grid-auto-rows:144px!important;
    column-gap:8px!important;
    row-gap:0!important;
    gap:0 8px!important;
    padding:4px 14px!important;
    align-items:start!important;
    align-content:start!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    height:136px!important;
    min-height:136px!important;
    max-height:136px!important;
    margin:4px 0!important;
    align-self:start!important;
  }

  /* Keep the stable three-column status strip. Move ONLY approved text toward
     the physical right edge of the image; views and bookmark stay untouched. */
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer{
    overflow:visible!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{
    justify-content:flex-end!important;
    justify-self:stretch!important;
    margin:0!important;
    padding:0!important;
    transform:translateX(9px)!important;
    text-align:right!important;
  }

  /* The actual operational filter strip emitted by automotive_mobile_home.
     No runtime class discovery: direct canonical selector. */
  html body .v064-home.j515-unified-gallery .jam-filter-strip{
    display:flex!important;
    flex-direction:row!important;
    direction:rtl!important;
    justify-content:flex-start!important;
    align-items:center!important;
    text-align:right!important;
    gap:10px!important;
    width:100%!important;
  }
  html body .v064-home.j515-unified-gallery .jam-filter-strip>*{
    direction:rtl!important;
    flex:0 0 auto!important;
  }

  /* Primary row is RTL as well (category/search/location). */
  html body .v064-home.j515-unified-gallery .jam-primary-row{
    direction:rtl!important;
    text-align:right!important;
  }
}


/* JobLik 0.33.558 — real Divar-like independent card separation.
   The malformed 557 tail is discarded; this block is valid CSS.
   Internal image/text/footer geometry is intentionally untouched. */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:136px!important;
    gap:10px!important;
    row-gap:10px!important;
    column-gap:10px!important;
    padding:10px!important;
    margin:0!important;
    align-items:start!important;
    align-content:start!important;
    background:#f6f8fa!important;
    box-sizing:border-box!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium > .apg-card{
    width:100%!important;
    height:136px!important;
    min-height:136px!important;
    max-height:136px!important;
    margin:0!important;
    padding:0!important;
    align-self:start!important;
    background:#fff!important;
    border:1px solid #dfe4e9!important;
    border-radius:7px!important;
    outline:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium > .apg-card::before,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium > .apg-card::after{
    content:none!important;
    display:none!important;
  }
}


/* 0.33.559 FINAL OWNER CONTRACT — must remain last in this file. */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:136px!important;
    gap:10px!important;
    row-gap:10px!important;
    column-gap:10px!important;
    width:100%!important;
    margin:0!important;
    padding:10px!important;
    background:#f6f7f9!important;
    align-items:start!important;
    align-content:start!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    width:100%!important;
    height:136px!important;
    min-height:136px!important;
    max-height:136px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid #dfe3e8!important;
    border-radius:8px!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
}

/* 0.33.560 FINAL OWNER CONTRACT — compact Divar-like spacing, full text, restored footer icons. */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:144px!important;
    gap:8px!important;
    row-gap:8px!important;
    column-gap:8px!important;
    padding:8px!important;
    margin:0!important;
    align-items:start!important;
    align-content:start!important;
    background:#f6f7f9!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    height:144px!important;
    min-height:144px!important;
    max-height:144px!important;
    grid-template-rows:120px 24px!important;
    margin:0!important;
    overflow:hidden!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider>img:first-child{
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-body{
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
    grid-template-rows:18px 7px 19px 19px 19px 7px 13px 18px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-title{
    height:18px!important;
    line-height:16px!important;
    padding-top:1px!important;
    overflow:hidden!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-location{
    height:13px!important;
    line-height:13px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-date{
    height:18px!important;
    line-height:16px!important;
  }

  /* Restore the compact 556-era status strip: orange eye, outline bookmark, small green approval. */
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer{
    position:relative!important;
    inset:auto!important;
    grid-column:1!important;
    grid-row:2!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 .v064-home.j515-unified-gallery .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;
    box-shadow:none!important;
    font-family:Vazirmatn,Tahoma,sans-serif!important;
    font-size:9px!important;
    font-weight:700!important;
    line-height:24px!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views{
    justify-content:flex-start!important;
    gap:4px!important;
    color:#202832!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views svg{
    width:12px!important;height:12px!important;color:#f06418!important;fill:#f06418!important;stroke:none!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views b{
    color:#202832!important;font-size:9px!important;font-weight:750!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save{
    justify-content:center!important;justify-self:stretch!important;color:#64717d!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save svg{
    width:12px!important;height:12px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.6!important;stroke-linejoin:round!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save.is-saved{
    color:#f06418!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save.is-saved svg{
    fill:#f06418!important;stroke:#f06418!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{
    justify-content:flex-end!important;
    justify-self:stretch!important;
    margin:0!important;
    padding:0!important;
    transform:translateX(7px)!important;
    color:#13a45b!important;
    font-size:8.8px!important;
    font-weight:800!important;
    line-height:24px!important;
    white-space:nowrap!important;
    text-align:right!important;
  }
}

/* Hide the document scrollbar without changing the scrolling element or wheel/touch behavior. */
html.j560-gallery-scroll,
html.j560-gallery-scroll body{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
html.j560-gallery-scroll::-webkit-scrollbar,
html.j560-gallery-scroll body::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

/* 0.33.561 FINAL DESKTOP CONTRACT
   - exact 559-style independent-card grid mechanics
   - smaller equal 6px gaps on both axes
   - keep 144px readability from 560
   - footer/icon contract restored to 558
   - scrollbar remains hidden without changing scroll behavior */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:144px!important;
    gap:6px!important;
    row-gap:6px!important;
    column-gap:6px!important;
    padding:6px!important;
    margin:0!important;
    align-items:start!important;
    align-content:start!important;
    background:#f6f8fa!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    width:100%!important;
    height:144px!important;
    min-height:144px!important;
    max-height:144px!important;
    grid-template-rows:120px 24px!important;
    margin:0!important;
    padding:0!important;
    align-self:start!important;
    background:#fff!important;
    border:1px solid #dfe4e9!important;
    border-radius:7px!important;
    outline:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card::before,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card::after{
    content:none!important;
    display:none!important;
  }

  /* Keep the 560 text/media height so the title is not clipped. */
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider>img:first-child,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-body,
  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
  }

  /* Exact 558 footer contract: no custom filled-eye/bookmark mutation. */
  html body .v064-home.j515-unified-gallery .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;
    border-top:0!important;
    box-shadow:none!important;
    background:#fff!important;
    overflow:hidden!important;
    direction:ltr!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .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;
    box-shadow:none!important;
    line-height:24px!important;
    font-family:Vazirmatn,Tahoma,sans-serif!important;
    font-size:9px!important;
    font-weight:700!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views{
    justify-content:flex-start!important;
    color:#202832!important;
    gap:4px!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save{
    justify-content:center!important;
    justify-self:stretch!important;
    color:#64717d!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{
    justify-content:flex-end!important;
    justify-self:stretch!important;
    color:#13a45b!important;
    font-weight:800!important;
    white-space:nowrap!important;
    margin:0!important;
    padding:0!important;
    transform:none!important;
    text-align:right!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer svg{
    width:13px!important;
    height:13px!important;
  }
  /* Undo 560 icon painting so SVGs use their native 558 appearance. */
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views svg,
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save svg,
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save.is-saved svg{
    fill:revert!important;
    stroke:revert!important;
    stroke-width:revert!important;
    stroke-linejoin:revert!important;
    color:inherit!important;
  }
}

html.j561-gallery-scroll,
html.j561-gallery-scroll body{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
html.j561-gallery-scroll::-webkit-scrollbar,
html.j561-gallery-scroll body::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

/* 0.33.562 FINAL DESKTOP CONTRACT
   - equal 5px card gaps on both axes (slightly tighter than 561)
   - card height 148px to give text more breathing room
   - 4px top inset for the text column so orange titles do not touch the card edge
   - exact 559 footer/icon geometry restored
   - hidden document scrollbar and stable scroll behavior retained */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    grid-auto-rows:148px!important;
    gap:5px!important;
    row-gap:5px!important;
    column-gap:5px!important;
    padding:5px!important;
    margin:0!important;
    align-items:start!important;
    align-content:start!important;
    background:#f6f8fa!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    width:100%!important;
    height:148px!important;
    min-height:148px!important;
    max-height:148px!important;
    grid-template-rows:124px 24px!important;
    margin:0!important;
    padding:0!important;
    align-self:start!important;
    background:#fff!important;
    border:1px solid #dfe4e9!important;
    border-radius:7px!important;
    outline:0!important;
    box-shadow:none!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider>img:first-child{
    height:124px!important;
    min-height:124px!important;
    max-height:124px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-body{
    height:124px!important;
    min-height:124px!important;
    max-height:124px!important;
    padding:4px 10px 0!important;
    box-sizing:border-box!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
  }

  /* Exact 559 footer contract. */
  html body .v064-home.j515-unified-gallery .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;
    border-top:0!important;
    box-shadow:none!important;
    background:#fff!important;
    overflow:hidden!important;
    direction:ltr!important;
    box-sizing:border-box!important;
    pointer-events:auto!important;
  }
  html body .v064-home.j515-unified-gallery .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;
    box-shadow:none!important;
    line-height:24px!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views{
    justify-content:flex-start!important;
    color:#202832!important;
    gap:4px!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save{
    justify-content:center!important;
    justify-self:stretch!important;
    color:#64717d!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-approved{
    justify-content:flex-end!important;
    color:#13a45b!important;
    font-weight:800!important;
    white-space:nowrap!important;
    transform:none!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer svg{
    width:13px!important;
    height:13px!important;
  }
}

html.j565-gallery-scroll,
html.j565-gallery-scroll body{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
html.j565-gallery-scroll::-webkit-scrollbar,
html.j565-gallery-scroll body::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}

/* 0.33.563 desktop card detail polish: title prominence, save/view affordance, location baseline. */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .apg-card>.apg-body{
    grid-row:1 / 3!important;
    height:148px!important;
    min-height:148px!important;
    max-height:148px!important;
    padding:4px 10px 2px!important;
    overflow:hidden!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    position:relative!important;
    height:142px!important;
    min-height:142px!important;
    max-height:142px!important;
    grid-template-rows:20px 7px 18px 18px 18px 28px 14px 14px!important;
    align-content:start!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-title{
    height:20px!important;
    min-height:20px!important;
    max-height:20px!important;
    padding-top:1px!important;
    font-size:12.8px!important;
    font-weight:950!important;
    line-height:18px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-spec,
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-condition{
    height:18px!important;
    line-height:18px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-price{
    height:18px!important;
    line-height:18px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-location{
    grid-row:7!important;
    height:14px!important;
    min-height:14px!important;
    max-height:14px!important;
    line-height:14px!important;
    align-self:end!important;
    transform:translateY(1px)!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-date{
    grid-row:8!important;
    height:14px!important;
    min-height:14px!important;
    max-height:14px!important;
    line-height:14px!important;
  }

  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views{
    gap:5px!important;
    color:#202832!important;
    font-size:10px!important;
    font-weight:800!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views svg{
    width:15px!important;
    height:15px!important;
    color:#ef6517!important;
    fill:#ef6517!important;
    stroke:none!important;
    flex:0 0 15px!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views b{
    color:#202832!important;
    font-size:10.2px!important;
    font-weight:850!important;
    line-height:1!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save{
    position:relative!important;
    z-index:60!important;
    width:34px!important;
    min-width:34px!important;
    max-width:34px!important;
    height:24px!important;
    min-height:24px!important;
    padding:0!important;
    margin:0 auto!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    cursor:pointer!important;
    pointer-events:auto!important;
    color:#5f6d79!important;
    border:0!important;
    background:transparent!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save svg{
    width:17px!important;
    height:17px!important;
    flex:0 0 17px!important;
    fill:none!important;
    stroke:#5f6d79!important;
    stroke-width:1.8!important;
    stroke-linejoin:round!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save.is-saved{
    color:#ef6517!important;
  }
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save.is-saved svg{
    fill:#ef6517!important;
    stroke:#ef6517!important;
  }
}

/* 0.33.565 — locked 563 visual contract; suppress every legacy/duplicate status surface. */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .apg-card :is(
    .j139-card-status,.j524-desktop-status,.apg-mobile-save,.apg-approved,.apg-click-count,.apg-viewed-marker
  ){
    display:none!important;
    visibility:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer,
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer *{
    visibility:visible!important;
    opacity:1!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer::before,
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer::after,
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer>*::before,
  html body .v064-home.j515-unified-gallery .apg-card>.j538-card-footer>*::after{
    content:none!important;
    display:none!important;
  }
}

/* 0.33.566 — unified desktop gallery: one visual renderer only. */
@media (min-width:781px){
  html body .v064-home.j515-unified-gallery .j146-desktop-gallery,
  html body .v064-home.j515-unified-gallery .j146-grid,
  html body .v064-home.j515-unified-gallery .j146-card,
  html body .v064-home.j515-unified-gallery [data-public-gallery]:not(.v064-cars-row.apg-grid.card-view-medium){
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
}

/* 0.33.568 — hard visual guard for runtime-injected rows. */
@media (min-width:781px){
  html body .v064-home.j515-unified-gallery
  .v064-cars-row.apg-grid.card-view-medium[data-j568-card-cap="16"] > article:nth-of-type(n+17){
    display:none!important;
  }
}


/* 0.33.569 — canonical unified desktop listing surface only. */
@media (min-width:781px){
  html body .v064-home.j515-unified-gallery #featured [data-public-gallery]:not([data-j569-canonical="1"]),
  html body .v064-home.j515-unified-gallery #featured .j146-desktop-gallery,
  html body .v064-home.j515-unified-gallery #featured .j146-grid{display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;border:0!important;overflow:hidden!important}
  html body .v064-home.j515-unified-gallery #featured .v064-cars-row.apg-grid.card-view-medium[data-j569-canonical="1"] > article:nth-of-type(n+17){display:none!important}
}

/* 0.33.573 — locked canonical gallery micro-adjustments only.
   Preserve the approved card internals; widen result canvas by narrowing the
   desktop filter sidebar; enforce equal four-side separation; remove orange
   bottom-edge remnants from legacy gallery styles. */
@media (min-width:901px){
  body.j503-gallery-desktop{
    --j503-sidebar:220px!important;
    --j503-gap:10px!important;
  }

  body.j503-gallery-desktop .j503-workspace{
    grid-template-columns:minmax(0,1fr) 220px!important;
    gap:10px!important;
  }

  body.j503-gallery-desktop .j503-sidebar{
    width:220px!important;
    min-width:220px!important;
    max-width:220px!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
    row-gap:5px!important;
    column-gap:5px!important;
    padding:5px!important;
    margin:0!important;
    background:#f6f8fa!important;
    box-sizing:border-box!important;
    align-items:start!important;
    align-content:start!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    margin:0!important;
    border:1px solid #dfe4e9!important;
    border-top-color:#dfe4e9!important;
    border-right-color:#dfe4e9!important;
    border-bottom-color:#dfe4e9!important;
    border-left-color:#dfe4e9!important;
    box-shadow:none!important;
    outline:0!important;
  }

  /* Kill legacy orange row/card separators without altering the footer itself. */
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium::before,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium::after{
    border-bottom:0!important;
    box-shadow:none!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card::before,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card::after{
    border-bottom:0!important;
    box-shadow:none!important;
  }
}

@media (min-width:901px) and (max-width:1180px){
  body.j503-gallery-desktop{
    --j503-sidebar:200px!important;
  }
  body.j503-gallery-desktop .j503-workspace{
    grid-template-columns:minmax(0,1fr) 200px!important;
  }
  body.j503-gallery-desktop .j503-sidebar{
    width:200px!important;
    min-width:200px!important;
    max-width:200px!important;
  }
}

/* 0.33.574 — final micro geometry hardening on the canonical unified desktop gallery.
   No card content redesign: only equal tiny gaps, slightly shorter cards, a narrower
   filter sidebar, and removal of the legacy orange terminal separator. */
@media (min-width:901px){
  body.j503-gallery-desktop{
    --j503-sidebar:180px!important;
    --j503-gap:6px!important;
  }
  body.j503-gallery-desktop .j503-workspace{
    grid-template-columns:minmax(0,1fr) 180px!important;
    gap:6px!important;
  }
  body.j503-gallery-desktop .j503-sidebar{
    width:180px!important;
    min-width:180px!important;
    max-width:180px!important;
  }

  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    grid-auto-rows:146px!important;
    gap:4px!important;
    row-gap:4px!important;
    column-gap:4px!important;
    padding:4px!important;
    border:0!important;
    border-top:0!important;
    border-right:0!important;
    border-bottom:0!important;
    border-left:0!important;
    box-shadow:none!important;
    background:#f3f5f7!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    height:146px!important;
    min-height:146px!important;
    max-height:146px!important;
    grid-template-rows:122px 24px!important;
    margin:0!important;
    border:1px solid #dfe4e9!important;
    border-bottom-color:#dfe4e9!important;
    box-shadow:none!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider>img:first-child{
    height:122px!important;
    min-height:122px!important;
    max-height:122px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-body{
    height:146px!important;
    min-height:146px!important;
    max-height:146px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    height:140px!important;
    min-height:140px!important;
    max-height:140px!important;
  }

  /* Remove the terminal orange separator regardless of which legacy layer paints it. */
  html body .v064-home.j515-unified-gallery #featured,
  html body .v064-home.j515-unified-gallery .v064-featured,
  body.j503-gallery-desktop .j503-workspace,
  body.j503-gallery-desktop .j503-results,
  body.j503-gallery-desktop .j503-results-shell,
  body.j503-gallery-desktop .j503-results-pane{
    border-bottom:0!important;
    box-shadow:none!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card:nth-last-child(-n+4),
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card:nth-last-child(-n+4)::before,
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card:nth-last-child(-n+4)::after{
    border-bottom-color:#dfe4e9!important;
    box-shadow:none!important;
  }
}

/* 0.33.575 — final alignment pass on approved 574 geometry.
   Keep the card grid untouched; remove the generated results-count strip,
   align the top of results with the filter panel, and make the quick-filter
   toolbar a true right-aligned RTL row. */
@media (min-width:901px){
  /* Remove "نمایش N آگهی" and view-mode icons without leaving vertical space. */
  body.j503-gallery-desktop .j503-results-head{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }

  /* Results and sidebar start on exactly the same workspace baseline. */
  body.j503-gallery-desktop .j503-workspace{
    align-items:start!important;
  }
  body.j503-gallery-desktop .j503-results,
  body.j503-gallery-desktop .j503-sidebar,
  body.j503-gallery-desktop .j503-results #featured,
  body.j503-gallery-desktop .j503-results .v064-featured{
    margin-top:0!important;
    top:auto!important;
  }

  /* Quick-filter buttons: true RTL, all anchored to the right edge. */
  body.j503-gallery-desktop .j503-topbar-secondary{
    direction:rtl!important;
    justify-content:flex-start!important;
    text-align:right!important;
  }
  body.j503-gallery-desktop .j503-topbar-secondary .j503-filter-toggle,
  body.j503-gallery-desktop .j503-topbar-secondary .j503-chip{
    direction:rtl!important;
  }
  body.j503-gallery-desktop .j503-filter-toggle{
    margin-left:0!important;
    margin-right:0!important;
  }
}

/* 0.33.576 — gallery shell behavior lock; approved card geometry remains untouched. */
@media (min-width:901px){
  body.j503-gallery-desktop .joblik-public-footer,
  body.j503-gallery-desktop .joblik-public-footer--gallery,
  body.j503-gallery-desktop footer.v064-footer{
    display:none!important;visibility:hidden!important;height:0!important;min-height:0!important;max-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;
  }
  html:has(body.j503-gallery-desktop),body.j503-gallery-desktop{height:100%!important;overflow:hidden!important}
  body.j503-gallery-desktop .j503-gallery-shell{min-height:0!important;overflow:hidden!important}
  body.j503-gallery-desktop .j503-workspace{
    height:calc(100dvh - 198px)!important;min-height:360px!important;max-height:calc(100dvh - 198px)!important;overflow:hidden!important;align-items:stretch!important;
  }
  body.j503-gallery-desktop .j503-results,
  body.j503-gallery-desktop .j503-sidebar{
    height:100%!important;min-height:0!important;max-height:100%!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain!important;-webkit-overflow-scrolling:touch!important;scrollbar-width:none!important;
  }
  body.j503-gallery-desktop .j503-results::-webkit-scrollbar,
  body.j503-gallery-desktop .j503-sidebar::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
  body.j503-gallery-desktop .j503-results,
  body.j503-gallery-desktop .j503-results #featured,
  body.j503-gallery-desktop .j503-results .v064-featured,
  body.j503-gallery-desktop .j503-results .v064-cars-row.apg-grid{scroll-behavior:auto!important;transform:none!important}
  body.j503-gallery-desktop .j503-topbar-secondary{display:flex!important;flex-direction:row!important;direction:rtl!important;justify-content:flex-start!important;align-items:center!important;text-align:right!important;gap:8px!important}
  body.j503-gallery-desktop .j503-topbar-secondary>.j503-filter-toggle,
  body.j503-gallery-desktop .j503-topbar-secondary>.j503-chip{flex:0 0 auto!important;direction:rtl!important}
}

/* 0.33.577 — desktop gallery filter drawer.
   Approved 0.33.574/575 card geometry is locked and intentionally untouched.
   The filter sidebar becomes an overlay drawer; when closed, results own 100% width. */
@media (min-width:901px){
  body.j503-gallery-desktop .j503-workspace{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    gap:0!important;
    overflow:hidden!important;
  }
  body.j503-gallery-desktop .j503-results{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    grid-column:1!important;
    grid-row:1!important;
    z-index:1!important;
    transition:filter .16s ease,opacity .16s ease!important;
  }
  body.j503-gallery-desktop .j503-sidebar{
    position:absolute!important;
    top:0!important;
    right:0!important;
    bottom:0!important;
    left:auto!important;
    z-index:30!important;
    width:240px!important;
    min-width:240px!important;
    max-width:240px!important;
    height:100%!important;
    max-height:100%!important;
    margin:0!important;
    background:#fff!important;
    border:1px solid #dfe4e9!important;
    border-radius:10px 0 0 10px!important;
    box-shadow:0 12px 30px rgba(17,34,51,.16)!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:translateY(-18px)!important;
    transition:transform .18s ease,opacity .16s ease,visibility 0s linear .18s!important;
  }
  body.j503-gallery-desktop .j503-sidebar::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
  body.j503-gallery-desktop.j577-filter-open .j503-sidebar{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:translateY(0)!important;
    transition:transform .18s ease,opacity .16s ease,visibility 0s!important;
  }
  body.j503-gallery-desktop .j577-filter-backdrop{
    position:absolute!important;
    inset:0!important;
    z-index:20!important;
    display:block!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:rgba(91,101,111,.28)!important;
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transition:opacity .16s ease,visibility 0s linear .16s!important;
    cursor:pointer!important;
  }
  body.j503-gallery-desktop.j577-filter-open .j577-filter-backdrop{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transition:opacity .16s ease,visibility 0s!important;
  }
  body.j503-gallery-desktop.j577-filter-open .j503-results{
    filter:grayscale(.18) brightness(.93)!important;
    pointer-events:none!important;
    user-select:none!important;
  }
  body.j503-gallery-desktop .j503-filter-toggle[aria-expanded="true"]{
    border-color:#ff7a1a!important;
    color:#e96500!important;
    background:#fff7f1!important;
  }
  @media (prefers-reduced-motion:reduce){
    body.j503-gallery-desktop .j503-sidebar,
    body.j503-gallery-desktop .j577-filter-backdrop,
    body.j503-gallery-desktop .j503-results{transition:none!important}
  }
}


/* 0.33.578 — filter drawer trigger + micro card vertical polish.
   Keep approved card width/gap/layout model; only add 2px height,
   a little title breathing room and slightly looser three black info rows. */
@media (min-width:901px){
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium{
    grid-auto-rows:148px!important;
  }
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    height:148px!important;
    min-height:148px!important;
    max-height:148px!important;
    grid-template-rows:124px 24px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider>img:first-child{
    height:124px!important;
    min-height:124px!important;
    max-height:124px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-body{
    height:148px!important;
    min-height:148px!important;
    max-height:148px!important;
    padding-top:5px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    height:142px!important;
    min-height:142px!important;
    max-height:142px!important;
    grid-template-rows:20px 8px 20px 20px 20px 20px 14px 14px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-title{
    padding-top:2px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-spec,
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-condition,
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-price{
    height:20px!important;
    line-height:20px!important;
  }

  /* Drawer falls down from the top edge of the card workspace. */
  body.j503-gallery-desktop .j503-sidebar{
    top:0!important;
    transform:translateY(-102%)!important;
    transform-origin:top center!important;
  }
  body.j503-gallery-desktop.j577-filter-open .j503-sidebar,
  body.j503-gallery-desktop.j578-filter-open .j503-sidebar{
    transform:translateY(0)!important;
  }
  body.j503-gallery-desktop.j578-filter-open .j577-filter-backdrop{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transition:opacity .16s ease,visibility 0s!important;
  }
  body.j503-gallery-desktop.j578-filter-open .j503-results{
    filter:grayscale(.18) brightness(.93)!important;
    pointer-events:none!important;
    user-select:none!important;
  }
}

/* 0.33.580 — single merged desktop gallery toolbar + downward filter overlay.
   Approved card width/gap/image/footer geometry remains locked; only the requested
   +2px vertical card polish and text rhythm are changed. */
@media (min-width:901px){
  body.j503-gallery-desktop .j503-topbar-primary,
  body.j503-gallery-desktop .j503-topbar-secondary{
    display:none!important;
    visibility:hidden!important;
    height:0!important;
    min-height:0!important;
    max-height:0!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    overflow:hidden!important;
  }
  body.j503-gallery-desktop .j579-unified-toolbar{
    direction:rtl!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:7px!important;
    width:100%!important;
    min-width:0!important;
    height:54px!important;
    box-sizing:border-box!important;
    padding:7px 18px!important;
    margin:0!important;
    background:#fff!important;
    border-top:1px solid #edf0f2!important;
    border-bottom:1px solid #e8ecef!important;
    position:relative!important;
    z-index:80!important;
  }
  body.j503-gallery-desktop .j579-unified-toolbar .j579-btn{
    flex:0 0 auto!important;
    height:38px!important;
    padding:0 15px!important;
    border:1px solid #dfe5ea!important;
    border-radius:9px!important;
    background:#fff!important;
    color:#273542!important;
    font:700 13px/36px Vazirmatn,Tahoma,sans-serif!important;
    white-space:nowrap!important;
    cursor:pointer!important;
    box-sizing:border-box!important;
  }
  body.j503-gallery-desktop .j579-unified-toolbar .j579-btn:hover,
  body.j503-gallery-desktop .j579-unified-toolbar .j579-btn.is-active{
    border-color:#ffb77c!important;
    color:#ef6814!important;
    background:#fff8f2!important;
  }
  body.j503-gallery-desktop .j579-unified-toolbar .j579-filter-btn{
    display:inline-flex!important;
    align-items:center!important;
    gap:7px!important;
  }
  body.j503-gallery-desktop .j579-unified-toolbar .j579-filter-btn::before{
    content:'☷'!important;
    font-size:14px!important;
    line-height:1!important;
  }
  body.j503-gallery-desktop .j579-search{
    flex:1 1 260px!important;
    min-width:170px!important;
    max-width:none!important;
    height:38px!important;
    display:flex!important;
    align-items:center!important;
    margin-inline-start:6px!important;
    border:1px solid #dfe5ea!important;
    border-radius:9px!important;
    overflow:hidden!important;
    background:#fff!important;
    box-sizing:border-box!important;
  }
  body.j503-gallery-desktop .j579-search input{
    direction:rtl!important;
    text-align:right!important;
    width:100%!important;
    height:100%!important;
    min-width:0!important;
    border:0!important;
    outline:0!important;
    background:transparent!important;
    padding:0 13px!important;
    color:#243342!important;
    font:500 13px Vazirmatn,Tahoma,sans-serif!important;
  }
  body.j503-gallery-desktop .j579-search button{
    flex:0 0 42px!important;
    width:42px!important;
    height:100%!important;
    border:0!important;
    border-right:1px solid #edf0f2!important;
    background:#fff!important;
    color:#607181!important;
    cursor:pointer!important;
    font-size:16px!important;
  }

  /* Drawer opens downward over the cards, never consumes gallery width. */
  body.j503-gallery-desktop .j503-workspace{
    position:relative!important;
    grid-template-columns:minmax(0,1fr)!important;
  }
  body.j503-gallery-desktop .j503-sidebar{
    display:block!important;
    visibility:hidden!important;
    position:absolute!important;
    top:0!important;
    right:14px!important;
    left:auto!important;
    width:310px!important;
    height:min(68vh,calc(100% - 14px))!important;
    min-height:320px!important;
    max-height:calc(100% - 14px)!important;
    margin:0!important;
    padding:0!important;
    z-index:62!important;
    opacity:0!important;
    transform:translateY(-10px)!important;
    pointer-events:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    border:1px solid #dfe5ea!important;
    border-radius:0 0 12px 12px!important;
    background:#fff!important;
    box-shadow:0 12px 28px rgba(27,39,51,.18)!important;
    transition:opacity .14s ease,transform .14s ease,visibility 0s linear .14s!important;
  }
  body.j503-gallery-desktop .j503-sidebar::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
  body.j503-gallery-desktop.j579-filter-open .j503-sidebar{
    visibility:visible!important;
    opacity:1!important;
    transform:translateY(0)!important;
    pointer-events:auto!important;
    transition:opacity .14s ease,transform .14s ease!important;
  }
  body.j503-gallery-desktop .j579-filter-backdrop{
    display:none!important;
    position:absolute!important;
    inset:0!important;
    z-index:60!important;
    border:0!important;
    padding:0!important;
    margin:0!important;
    background:rgba(72,80,88,.30)!important;
    cursor:default!important;
  }
  body.j503-gallery-desktop.j579-filter-open .j579-filter-backdrop{display:block!important}
  body.j503-gallery-desktop.j579-filter-open .j503-results{
    pointer-events:none!important;
    user-select:none!important;
  }

  /* Requested micro-polish only; horizontal card geometry stays locked. */
  html body .v064-home.j515-unified-gallery .v064-cars-row.apg-grid.card-view-medium>.apg-card{
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
    grid-template-rows:126px 24px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider,
  html body .v064-home.j515-unified-gallery .apg-card>.apg-media .apg-media-slider>img:first-child{
    height:126px!important;
    min-height:126px!important;
    max-height:126px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card>.apg-body{
    height:150px!important;
    min-height:150px!important;
    max-height:150px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-mobile-card-copy{
    height:144px!important;
    min-height:144px!important;
    max-height:144px!important;
    grid-template-rows:20px 8px 21px 21px 21px 25px 14px 14px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-title{
    box-sizing:border-box!important;
    padding-top:2px!important;
  }
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-spec,
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-condition,
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-price{
    height:21px!important;
    min-height:21px!important;
    max-height:21px!important;
    line-height:21px!important;
  }
}
\n\n/* 0.33.580 — gallery shell polish only. Canonical cards/tooling remain locked. */
@media (min-width:901px){
  /* Filter drawer: slightly wider, denser typography. */
  body.j503-gallery-desktop .j503-sidebar{
    width:340px!important;
  }
  body.j503-gallery-desktop .j503-sidebar,
  body.j503-gallery-desktop .j503-sidebar input,
  body.j503-gallery-desktop .j503-sidebar select,
  body.j503-gallery-desktop .j503-sidebar button,
  body.j503-gallery-desktop .j503-sidebar label,
  body.j503-gallery-desktop .j503-sidebar span,
  body.j503-gallery-desktop .j503-sidebar small{
    font-size:12px!important;
  }
  body.j503-gallery-desktop .j503-sidebar h2,
  body.j503-gallery-desktop .j503-sidebar h3{
    font-size:15px!important;
  }

  /* Public gallery brand sits closer to the physical right edge. */
  body.joblik-listing-gallery-page .v064-header .v064-logo.joblik-public-brand{
    transform:translateX(18px)!important;
  }

  /* Keep locked card geometry; only create a little more breathing room above title. */
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-title{
    padding-top:4px!important;
  }
}


/* 0.33.581 — interaction + public shell micro-polish. Canonical card geometry remains locked. */
@media (min-width:901px){
  body.j503-gallery-desktop .j503-sidebar{width:370px!important;max-width:min(370px,calc(100vw - 28px))!important}
  body.j503-gallery-desktop .j503-sidebar,
  body.j503-gallery-desktop .j503-sidebar input,
  body.j503-gallery-desktop .j503-sidebar select,
  body.j503-gallery-desktop .j503-sidebar button,
  body.j503-gallery-desktop .j503-sidebar label,
  body.j503-gallery-desktop .j503-sidebar span,
  body.j503-gallery-desktop .j503-sidebar small{font-size:11px!important}
  body.j503-gallery-desktop .j503-sidebar h2,
  body.j503-gallery-desktop .j503-sidebar h3{font-size:14px!important}
  body.joblik-listing-gallery-page .v064-header .v064-logo.joblik-public-brand{transform:translateX(28px)!important}
  html body .v064-home.j515-unified-gallery .apg-card .jam-card-line-date{font-size:9.4px!important;font-weight:600!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save{width:36px!important;min-width:36px!important;max-width:36px!important;cursor:pointer!important;pointer-events:auto!important;touch-action:manipulation!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save svg{width:18px!important;height:18px!important;flex:0 0 18px!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save:hover,
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save:focus-visible{color:#ef6517!important;outline:none!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-save.is-saved svg{fill:#ef6517!important;stroke:#ef6517!important}
  html body .v064-home.j515-unified-gallery .j538-card-footer .j538-views{cursor:default!important;user-select:none!important}
}


/* 0.33.582 — filter usability + construction bookmark stabilization.
   Canonical card geometry remains locked. */
@media (min-width:901px){
  body.j503-gallery-desktop .j503-sidebar{
    width:350px!important;
    max-width:min(350px,calc(100vw - 28px))!important;
  }
  body.j503-gallery-desktop .j503-sidebar,
  body.j503-gallery-desktop .j503-sidebar input,
  body.j503-gallery-desktop .j503-sidebar select,
  body.j503-gallery-desktop .j503-sidebar button,
  body.j503-gallery-desktop .j503-sidebar label,
  body.j503-gallery-desktop .j503-sidebar span,
  body.j503-gallery-desktop .j503-sidebar small{
    font-size:10.5px!important;
  }
  body.j503-gallery-desktop .j503-sidebar h2,
  body.j503-gallery-desktop .j503-sidebar h3{font-size:13.5px!important}
  body.joblik-listing-gallery-page .v064-header .v064-logo.joblik-public-brand{
    transform:translateX(38px)!important;
  }

  /* Searchable select enhancement; original select stays in the form and submits normally. */
  body.j503-gallery-desktop .j582-select{position:relative!important;width:100%!important;margin:4px 0 8px!important;direction:rtl!important}
  body.j503-gallery-desktop .j582-select-native{position:absolute!important;inline-size:1px!important;block-size:1px!important;opacity:0!important;pointer-events:none!important}
  body.j503-gallery-desktop .j582-select-toggle{
    display:flex!important;align-items:center!important;justify-content:space-between!important;width:100%!important;height:38px!important;
    padding:0 10px!important;border:1px solid #d9e0e6!important;border-radius:8px!important;background:#fff!important;color:#33414f!important;
    font:600 10.5px/1 Vazirmatn,Tahoma,sans-serif!important;cursor:pointer!important;text-align:right!important;box-sizing:border-box!important
  }
  body.j503-gallery-desktop .j582-select-toggle::after{content:'⌄'!important;color:#73808d!important;font-size:13px!important}
  body.j503-gallery-desktop .j582-select.is-open .j582-select-toggle{border-color:#f2a66e!important;box-shadow:0 0 0 2px rgba(239,104,20,.08)!important}
  body.j503-gallery-desktop .j582-select-panel{
    display:none!important;position:absolute!important;z-index:95!important;top:calc(100% + 4px)!important;right:0!important;left:0!important;
    max-height:235px!important;overflow:auto!important;padding:7px!important;border:1px solid #dfe5ea!important;border-radius:9px!important;background:#fff!important;
    box-shadow:0 10px 24px rgba(30,42,54,.14)!important;scrollbar-width:none!important
  }
  body.j503-gallery-desktop .j582-select-panel::-webkit-scrollbar{display:none!important}
  body.j503-gallery-desktop .j582-select.is-open .j582-select-panel{display:block!important}
  body.j503-gallery-desktop .j582-select-search{width:100%!important;height:34px!important;margin:0 0 6px!important;padding:0 9px!important;border:1px solid #e0e5e9!important;border-radius:7px!important;outline:0!important;box-sizing:border-box!important}
  body.j503-gallery-desktop .j582-select-option{display:block!important;width:100%!important;min-height:31px!important;padding:6px 8px!important;border:0!important;border-bottom:1px solid #f0f2f4!important;background:#fff!important;color:#31404e!important;text-align:right!important;cursor:pointer!important;border-radius:5px!important}
  body.j503-gallery-desktop .j582-select-option:hover,body.j503-gallery-desktop .j582-select-option.is-selected{background:#fff6ef!important;color:#e96512!important}

  /* Mobile-contract province -> city picker, embedded in the desktop filter drawer. */
  body.j503-gallery-desktop .j582-location-picker{margin:8px 0 12px!important;border:1px solid #e1e6ea!important;border-radius:9px!important;background:#fff!important;overflow:hidden!important;direction:rtl!important}
  body.j503-gallery-desktop .j582-location-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;padding:9px 10px!important;background:#f8fafb!important;border-bottom:1px solid #e6ebef!important}
  body.j503-gallery-desktop .j582-location-head b{font-size:11px!important;color:#263747!important}
  body.j503-gallery-desktop .j582-location-clear{border:0!important;background:transparent!important;color:#e96816!important;cursor:pointer!important;font-size:10px!important}
  body.j503-gallery-desktop .j582-location-search{width:calc(100% - 16px)!important;height:35px!important;margin:8px!important;padding:0 10px!important;border:1px solid #dde4e9!important;border-radius:8px!important;outline:0!important;box-sizing:border-box!important}
  body.j503-gallery-desktop .j582-location-list{max-height:330px!important;overflow:auto!important;scrollbar-width:none!important}
  body.j503-gallery-desktop .j582-location-list::-webkit-scrollbar{display:none!important}
  body.j503-gallery-desktop .j582-province{border-top:1px solid #edf1f4!important}
  body.j503-gallery-desktop .j582-province:first-child{border-top:0!important}
  body.j503-gallery-desktop .j582-province-row{display:grid!important;grid-template-columns:minmax(0,1fr) 34px!important;align-items:center!important;min-height:38px!important;padding-right:9px!important}
  body.j503-gallery-desktop .j582-province-row label{display:flex!important;align-items:center!important;gap:7px!important;cursor:pointer!important;font-weight:700!important}
  body.j503-gallery-desktop .j582-province-row button{width:34px!important;height:34px!important;border:0!important;background:transparent!important;color:#687684!important;cursor:pointer!important;font-size:14px!important}
  body.j503-gallery-desktop .j582-cities{display:none!important;padding:3px 20px 7px 6px!important;background:#fafbfc!important}
  body.j503-gallery-desktop .j582-province.is-open .j582-cities,body.j503-gallery-desktop .j582-province.is-match .j582-cities{display:grid!important}
  body.j503-gallery-desktop .j582-city{display:flex!important;align-items:center!important;gap:7px!important;min-height:31px!important;padding:4px 3px!important;border-top:1px solid #eef2f4!important;cursor:pointer!important}
  body.j503-gallery-desktop .j582-city:first-child{border-top:0!important}
  body.j503-gallery-desktop .j582-location-picker input[type="checkbox"]{width:15px!important;height:15px!important;min-height:15px!important;accent-color:#ef6814!important;margin:0!important;padding:0!important}
  body.j503-gallery-desktop .j582-location-summary{padding:7px 9px!important;border-top:1px solid #e8edf1!important;background:#fff!important;color:#65717d!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  body.j503-gallery-desktop .j582-location-original{display:none!important}
}


/* 0.33.583 — resilient mobile-contract location filter + universal bookmark owner. */
@media (min-width:901px){
  body.j503-gallery-desktop .j503-sidebar{width:350px!important;max-width:min(350px,calc(100vw - 20px))!important}
  /* Place the public logo against the physical right edge instead of relying on translate. */
  body.joblik-listing-gallery-page .v064-header{position:relative!important}
  body.joblik-listing-gallery-page .v064-header .v064-logo.joblik-public-brand{
    position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;margin:0!important;padding:0!important;z-index:8!important
  }
  body.joblik-listing-gallery-page .v064-header .v064-logo.joblik-public-brand .joblik-theme-logo{margin:0!important;padding:0!important;justify-content:flex-end!important}
  body.joblik-listing-gallery-page .v064-header .v064-logo.joblik-public-brand img{object-position:right center!important;margin:0!important;padding:0!important}
  /* Every save control in canonical cards shares one saved-state visual contract. */
  html body .v064-home.j515-unified-gallery .v064-cars-row[data-j569-canonical] [data-jam-save]{pointer-events:auto!important;cursor:pointer!important;touch-action:manipulation!important}
  html body .v064-home.j515-unified-gallery .v064-cars-row[data-j569-canonical] [data-jam-save].is-saved{color:#ef6517!important}
  html body .v064-home.j515-unified-gallery .v064-cars-row[data-j569-canonical] [data-jam-save].is-saved svg{fill:#ef6517!important;stroke:#ef6517!important}
  /* Location picker is always visible as a proper filter section when the drawer is open. */
  body.j503-gallery-desktop .j583-location-picker{display:block!important;width:100%!important;margin:8px 0 12px!important}
  body.j503-gallery-desktop .j583-location-picker .j582-location-head{min-height:38px!important}
  body.j503-gallery-desktop .j583-location-picker .j582-location-head b{font-size:12px!important;font-weight:800!important}
  body.j503-gallery-desktop .j583-location-picker .j582-province-row label span,
  body.j503-gallery-desktop .j583-location-picker .j582-city span{font-size:10.5px!important}
}

/* 0.33.584 — desktop-only filter/location hardening. Mobile receives no unified-owner stylesheet. */
@media (min-width:901px){
  body.j503-gallery-desktop .j503-sidebar{width:350px!important;max-width:350px!important}
  body.j503-gallery-desktop .j584-location-trigger{display:flex!important;width:100%!important;height:38px!important;align-items:center!important;justify-content:space-between!important;padding:0 10px!important;margin:6px 0 8px!important;border:1px solid #dce3e8!important;border-radius:8px!important;background:#fff!important;color:#263747!important;font-size:11px!important;font-weight:800!important;cursor:pointer!important}
  body.j503-gallery-desktop .j584-location-trigger::after{content:'⌄';font-size:14px!important;color:#697784!important}
  body.j503-gallery-desktop .j584-location-picker{display:none!important;border:1px solid #e1e6ea!important;border-radius:9px!important;background:#fff!important;overflow:hidden!important;margin:0 0 10px!important}
  body.j503-gallery-desktop .j584-location-picker.is-open{display:block!important}
  body.j503-gallery-desktop .j584-location-picker .j582-location-list{max-height:300px!important}
  body.j503-gallery-desktop .j582-select-toggle{font-size:10.5px!important}
  body.j503-gallery-desktop .j582-select-search{font-size:10.5px!important}
  body.j503-gallery-desktop .j582-select-option{font-size:10.5px!important;min-height:30px!important}
}
