/* Helpy Listing Category (mobile only)
 * Scope:
 * - only /listing-category/* (body.tax-rtcl_category)
 * - only mobile/tablet (<=991px)
 * Goal:
 * - match reference cards: square thumb, cat pill on photo,
 *   title/desc clamps, bottom row: price (left) + rating (right)
 */

@media (max-width: 991px){

  /* =============================
   * 0) Grid layout: 2 columns
   * ============================= */
  body.tax-rtcl_category .rtcl-listings.rtcl-ajax-listings.rtcl-grid-view,
  body.tax-rtcl_category .rtcl-listings.rtcl-grid-view{
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 14px !important;
  }

  body.tax-rtcl_category .rtcl-listings.rtcl-ajax-listings.rtcl-grid-view > .listing-grid-each,
  body.tax-rtcl_category .rtcl-listings.rtcl-grid-view > .listing-grid-each{
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
  }

  /* =============================
   * 1) Kill desktop hover meta buttons on mobile
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtcl-meta-buttons{
    display:none !important;
    visibility:hidden !important;
    opacity:0 !important;
    pointer-events:none !important;
  }

  /* =============================
   * 2) Card structure: equal heights + clean wrapper
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-item{
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;

    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-content{
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    padding: 0 8px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* =============================
   * 3) Thumb: square + radius + shadow (reference-like)
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb{
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto !important;

    border-radius: 16px !important;
    overflow: hidden !important;
    background: #f3f3f3 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb-inner{
    display:block;
    width:100%;
    height:100%;
    overflow:hidden;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb-inner img{
    width:100% !important;
    height:100% !important;
    object-fit: cover !important;
    display:block;
  }

  /* =============================
   * 4) Category pill on photo (requires JS adding lh-thumb-has-cat)
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat-action{
    position:absolute !important;
    top:10px !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;

    display:flex !important;
    justify-content:flex-end !important;
    align-items:flex-start !important;

    padding:0 9px !important;
    margin:0 !important;
    transform:none !important;
    z-index:7 !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat-wrap,
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat{
    display:flex !important;
    justify-content:flex-end !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat a{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    height:32px;
    padding:0 20px !important;
    border-radius:999px;

    background: rgba(235,235,235,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color:#222;
    font-weight:500;
    font-size:13px;
    line-height:1;
    text-decoration:none !important;

    white-space:nowrap;
    max-width:70%;
    overflow:hidden;
    text-overflow:ellipsis;

    box-shadow:0 8px 18px rgba(0,0,0,.14);
  }

  @media (max-width: 390px){
    body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat a{
      height:30px;
      font-size:12px;
      padding:0 10px !important;
    }
  }

  /* =============================
   * 5) Title + short description (reference-like)
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-title{
    margin: 10px 0 6px 0 !important;
  }

  body.tax-rtcl_category #content .rtcl-listings .listing-grid-each-9 .rtin-title a{
    display:-webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow:hidden !important;
    white-space:normal !important;

    line-height:20px !important;
    font-size:14px !important;
    font-weight:700 !important;
    max-height:40px !important;
    text-decoration:none !important;
  }

  /* JS creates .lh-short-desc — clamp to 2 lines like ref */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .lh-short-desc{
    font-size:13px !important;
    line-height:18px !important;
    color:#666 !important;
    margin: 0 0 8px 0 !important;

    display:-webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow:hidden !important;
    max-height:36px !important;
  }

  /* =============================
   * 6) Bottom row like reference:
   *    Price (left) + Rating (right) on one line
   * ============================= */

  /* Turn price line into the "row" */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .sj-price-line{
    margin-top: auto !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap: 10px !important;

    padding-top: 8px !important;
    margin-bottom: 0 !important;

    font-size:14px !important;
    font-weight:600 !important;
    line-height:20px !important;
  }

  /* Rating sits to the right inside that row */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .sj-card-rating{
    margin: 0 !important;
    padding: 0 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-end !important;

    white-space:nowrap !important;
    font-size:13px !important;
    line-height:18px !important;
  }

  /* If rating wrapper exists but empty, keep row stable */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .sj-card-rating:empty{
    display:none !important;
  }
}
@media (max-width: 991px){
  body.tax-rtcl_category .listing-grid-each-9 .rtin-price.sj-price-line{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin-top:auto !important;
    padding-top:8px !important;
    font-size:14px !important;
    font-weight:600 !important;
  }

  body.tax-rtcl_category .listing-grid-each-9 .rtin-price.sj-price-line .sj-card-rating{
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    white-space:nowrap !important;
    font-size:13px !important;
    font-weight:400 !important;
  }
}
/* FIX — remove big vertical gap above price */
@media (max-width: 991px){

  /* Content should not stretch */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-content{
    flex: initial !important;
  }

  /* Remove auto push */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-price.sj-price-line{
    margin-top: 6px !important;   /* small clean gap */
  }

}
@media (max-width: 991px){

  /* Thumb must be positioning context */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb{
    position:relative;
  }

  /* Container of Featured / Hot */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-featured-ad.lh-thumb-badges{
    position:absolute !important;
    left:10px !important;
    bottom:10px !important;
    top:auto !important;
    right:auto !important;

    display:flex !important;
    gap:8px !important;
    align-items:center !important;

    z-index:9 !important;
  }

  /* Individual badge */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:6px 10px !important;
    border-radius:999px !important;

    font-size:12px !important;
    font-weight:600 !important;
    line-height:1 !important;
    color:#fff !important;

    box-shadow:0 6px 14px rgba(0,0,0,0.18) !important;
  }

  /* Featured color */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-featured{
    background:#6f3cc3 !important;
  }

 /* Hot gradient (твой вариант) */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    background: linear-gradient(135deg, #FF8C00, #FF6A00) !important;
  }

}
@media (max-width: 991px){

  /* Thumb positioning */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb{
    position:relative;
  }

  /* ===== Unified badge container ===== */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges,
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    position:absolute !important;
    left:0px !important;
    bottom:0px !important;
    top:auto !important;
    right:auto !important;
    z-index:9 !important;
  }

  /* If it's single badge (Hot only case) */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    display:inline-flex !important;
  }

  /* If multiple badges */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges{
    display:flex !important;
    gap:8px !important;
    align-items:center !important;
  }

  /* Shared badge styling */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge,
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    padding:6px 10px !important;
    border-radius:999px !important;
    font-size:12px !important;
    font-weight:600 !important;
    line-height:1 !important;
    color:#fff !important;
    box-shadow:0 6px 14px rgba(0,0,0,0.18) !important;
  }

  /* Featured */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-featured{
    background:#6f3cc3 !important;
  }

  /* Hot gradient (твой вариант) */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    background: linear-gradient(135deg, #FF8C00, #FF6A00) !important;
  }
 #content .listing-grid-each.featured-listing .rtin-thumb:after{
     display:none!important;
 }
}
@media (max-width: 991px){

  /* Kill featured outline/frame injected by theme on featured listings */
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-item,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb-inner{
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  /* Theme sometimes draws frame via pseudo-elements */
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb:before,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb:after,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-item:before,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-item:after{
    content: none !important;
    display: none !important;
  }

  /* If theme adds a "bolt/corner" badge for featured */
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb .rtcl-badge-icon,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb .rtcl-badge--icon{
    display:none !important;
  }
}
@media (max-width: 991px){

  /* Exact Home-grid badge behavior */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges{
    position:absolute;
    left:10px;
    bottom:10px;
    top:auto;
    right:auto;
    z-index:10;

    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge,
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-top{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:600;
    line-height:1;

    padding:5px 12px;
    border-radius:20px;

    color:#fff;
    border:none;
    box-shadow:0 3px 8px rgba(0,0,0,0.12);
    white-space:nowrap;
  }

  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-featured{
    background: linear-gradient(135deg, #7B3FF2, #5E2DD8);
  }

  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-top{
    background: linear-gradient(135deg, #FF8C00, #FF6A00) !important;
  }

  /* If Hot still had absolute rules somewhere — neutralize them when inside container */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-top{
    position: static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
  }
}
/*Для десктопа*/
@media (min-width: 992px){
      /* =============================
   * 0) Grid layout: 3 columns
   * ============================= */
  body.tax-rtcl_category .rtcl-listings.rtcl-ajax-listings.rtcl-grid-view,
  body.tax-rtcl_category .rtcl-listings.rtcl-grid-view{
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 14px !important;
  }

  body.tax-rtcl_category .rtcl-listings.rtcl-ajax-listings.rtcl-grid-view > .listing-grid-each,
  body.tax-rtcl_category .rtcl-listings.rtcl-grid-view > .listing-grid-each{
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    align-self: stretch !important;
  }


  /* =============================
   * 2) Card structure: equal heights + clean wrapper
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-item{
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    overflow: visible !important;

    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-content{
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;

    padding: 0 8px !important;
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }

  /* =============================
   * 3) Thumb: square + radius + shadow (reference-like)
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb{
    position: relative;
    aspect-ratio: 1 / 1;
    height: auto !important;

    border-radius: 16px !important;
    overflow: hidden !important;
    background: #f3f3f3 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb-inner{
    display:block;
    width:100%;
    height:100%;
    overflow:hidden;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb-inner img{
    width:100% !important;
    height:100% !important;
    object-fit: cover !important;
    display:block;
  }

  /* =============================
   * 4) Category pill on photo (requires JS adding lh-thumb-has-cat)
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat-action{
    position:absolute !important;
    top:10px !important;
    left:0 !important;
    right:0 !important;
    width:100% !important;

    display:flex !important;
    justify-content:flex-end !important;
    align-items:flex-start !important;

    padding:0 9px !important;
    margin:0 !important;
    transform:none !important;
    z-index:7 !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat-wrap,
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat{
    display:flex !important;
    justify-content:flex-end !important;
    width:auto !important;
    max-width:none !important;
    margin:0 !important;
    padding:0 !important;
  }

  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat a{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    height:32px;
    padding:0 20px !important;
    border-radius:999px;

    background: rgba(235,235,235,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color:#222;
    font-weight:500;
    font-size:13px;
    line-height:1;
    text-decoration:none !important;

    white-space:nowrap;
    max-width:70%;
    overflow:hidden;
    text-overflow:ellipsis;

    box-shadow:0 8px 18px rgba(0,0,0,.14);
  }



  /* =============================
   * 5) Title + short description (reference-like)
   * ============================= */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .rtin-title{
    margin: 10px 0 6px 0 !important;
  }

  body.tax-rtcl_category #content .rtcl-listings .listing-grid-each-9 .rtin-title a{
    display:-webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow:hidden !important;
    white-space:normal !important;

    line-height:20px !important;
    font-size:14px !important;
    font-weight:700 !important;
    max-height:40px !important;
    text-decoration:none !important;
  }

  /* JS creates .lh-short-desc — clamp to 2 lines like ref */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .lh-short-desc{
    font-size:13px !important;
    line-height:18px !important;
    color:#666 !important;
    margin: 0 0 8px 0 !important;

    display:-webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow:hidden !important;
    max-height:36px !important;
  }

  /* =============================
   * 6) Bottom row like reference:
   *    Price (left) + Rating (right) on one line
   * ============================= */

  /* Turn price line into the "row" */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .sj-price-line{
    margin-top: auto !important;

    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap: 10px !important;

    padding-top: 8px !important;
    margin-bottom: 0 !important;

    font-size:14px !important;
    font-weight:600 !important;
    line-height:20px !important;
  }

  /* Rating sits to the right inside that row */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .sj-card-rating{
    margin: 0 !important;
    padding: 0 !important;

    display:inline-flex !important;
    align-items:center !important;
    justify-content:flex-end !important;

    white-space:nowrap !important;
    font-size:13px !important;
    line-height:18px !important;
  }

  /* If rating wrapper exists but empty, keep row stable */
  body.tax-rtcl_category .rtcl-listings .listing-grid-each-9 .sj-card-rating:empty{
    display:none !important;
  }
}

  body.tax-rtcl_category .listing-grid-each-9 .rtin-price.sj-price-line{
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    gap:10px !important;
    margin-top:auto !important;
    padding-top:8px !important;
    font-size:14px !important;
    font-weight:600 !important;
  }

  body.tax-rtcl_category .listing-grid-each-9 .rtin-price.sj-price-line .sj-card-rating{
    margin:0 !important;
    display:inline-flex !important;
    align-items:center !important;
    white-space:nowrap !important;
    font-size:13px !important;
    font-weight:400 !important;
  }

/* FIX — remove big vertical gap above price */


  /* Content should not stretch */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-content{
    flex: initial !important;
  }

  /* Remove auto push */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-price.sj-price-line{
    margin-top: 6px !important;   /* small clean gap */
  }




  /* Thumb must be positioning context */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb{
    position:relative;
  }

  /* Container of Featured / Hot */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-featured-ad.lh-thumb-badges{
    position:absolute !important;
    left:10px !important;
    bottom:10px !important;
    top:auto !important;
    right:auto !important;

    display:flex !important;
    gap:8px !important;
    align-items:center !important;

    z-index:9 !important;
  }

  /* Individual badge */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;

    padding:6px 10px !important;
    border-radius:999px !important;

    font-size:12px !important;
    font-weight:600 !important;
    line-height:1 !important;
    color:#fff !important;

    box-shadow:0 6px 14px rgba(0,0,0,0.18) !important;
  }

  /* Featured color */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-featured{
    background:#6f3cc3 !important;
  }

 /* Hot gradient (твой вариант) */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    background: linear-gradient(135deg, #FF8C00, #FF6A00) !important;
  }




  /* Thumb positioning */
  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb{
    position:relative;
  }

  /* ===== Unified badge container ===== */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges,
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    position:absolute !important;
    left:0px !important;
    bottom:0px !important;
    top:auto !important;
    right:auto !important;
    z-index:9 !important;
  }

  /* If it's single badge (Hot only case) */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    display:inline-flex !important;
  }

  /* If multiple badges */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges{
    display:flex !important;
    gap:8px !important;
    align-items:center !important;
  }

  /* Shared badge styling */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge,
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    padding:6px 10px !important;
    border-radius:999px !important;
    font-size:12px !important;
    font-weight:600 !important;
    line-height:1 !important;
    color:#fff !important;
    box-shadow:0 6px 14px rgba(0,0,0,0.18) !important;
  }

  /* Featured */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-featured{
    background:#6f3cc3 !important;
  }

  /* Hot gradient (твой вариант) */
  body.tax-rtcl_category .listing-grid-each-9 .lh-badge-top{
    background: linear-gradient(135deg, #FF8C00, #FF6A00) !important;
  }
 #content .listing-grid-each.featured-listing .rtin-thumb:after{
     display:none!important;
 
}


  /* Kill featured outline/frame injected by theme on featured listings */
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-item,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb-inner{
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
  }

  /* Theme sometimes draws frame via pseudo-elements */
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb:before,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb:after,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-item:before,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-item:after{
    content: none !important;
    display: none !important;
  }

  /* If theme adds a "bolt/corner" badge for featured */
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb .rtcl-badge-icon,
  body.tax-rtcl_category .listing-grid-each-9.featured-listing .rtin-thumb .rtcl-badge--icon{
    display:none !important;
  
}


  /* Exact Home-grid badge behavior */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges{
    position:absolute;
    left:10px;
    bottom:10px;
    top:auto;
    right:auto;
    z-index:10;

    display:flex;
    flex-wrap:wrap;
    gap:6px;
  }

  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge,
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-top{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    font-size:12px;
    font-weight:600;
    line-height:1;

    padding:5px 12px;
    border-radius:20px;

    color:#fff;
    border:none;
    box-shadow:0 3px 8px rgba(0,0,0,0.12);
    white-space:nowrap;
  }

  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-featured{
    background: linear-gradient(135deg, #7B3FF2, #5E2DD8);
  }

  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-top{
    background: linear-gradient(135deg, #FF8C00, #FF6A00) !important;
  }

  /* If Hot still had absolute rules somewhere — neutralize them when inside container */
  body.tax-rtcl_category .listing-grid-each-9 .lh-thumb-badges .lh-badge-top{
    position: static !important;
    left:auto !important;
    right:auto !important;
    top:auto !important;
    bottom:auto !important;
    transform:none !important;
}
/* DESKTOP: category pill on thumbnail for listing-category */
@media (min-width: 992px){

  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb{
    position: relative;
    overflow: hidden;
  }

  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat-action{
    position: absolute !important;
    top: 10px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;
    padding: 0 12px !important;
    margin: 0 !important;
    z-index: 7 !important;
    transform: none !important;
  }

  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat-wrap,
  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat{
    display: flex !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body.tax-rtcl_category .listing-grid-each-9 .rtin-thumb.lh-thumb-has-cat .rtin-cat a{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 32px;
    border-radius: 999px;
    background: rgba(235,235,235,0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #222;
    font-weight: 500;
    font-size: 13px;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
    padding: 0 20px !important;
  }
}
