/* RC1.0.15.52 — Search place-awareness UI density + tablet category-card integrity.
   Presentation only: no inventory/card/detail styling changes. */

/* Search: keep the premium composition but reduce vertical bulk. */
@media (min-width: 701px){
  body.theo-app #explore .hero-search-card{
    padding: 12px 14px 13px!important;
  }
  body.theo-app #explore .taxonomy-search{
    gap: 10px 12px!important;
  }
  body.theo-app #explore .taxonomy-search label{
    margin-bottom: 5px!important;
  }
  body.theo-app #explore .taxonomy-search input,
  body.theo-app #explore .taxonomy-search select,
  body.theo-app #explore .taxonomy-search .rent-range-trigger,
  body.theo-app #explore .taxonomy-search>.hero-search-submit{
    min-height: 50px!important;
    height: 50px!important;
  }
  body.theo-app #explore .market-more-toggle{
    min-height: 48px!important;
  }
}

/* Tablet: never squeeze four visual class cards into a clipped row. */
@media (min-width: 701px) and (max-width: 1180px){
  body.theo-app #explore .marketplace-category-showcase{
    padding-left: 28px!important;
    padding-right: 28px!important;
  }
  body.theo-app #explore .category-showcase-grid{
    grid-template-columns: repeat(2,minmax(0,1fr))!important;
    gap: 18px!important;
    overflow: visible!important;
  }
  body.theo-app #explore .category-showcase-card.premium-category-card{
    width: 100%!important;
    min-width: 0!important;
    aspect-ratio: 16/9!important;
    min-height: 220px!important;
  }
  body.theo-app #explore .premium-category-copy{
    left: 22px!important;
    right: 22px!important;
    bottom: 20px!important;
  }
  body.theo-app #explore .premium-category-copy>strong{
    font-size: clamp(22px,3vw,28px)!important;
    line-height: 1.05!important;
    overflow-wrap: anywhere!important;
  }
  body.theo-app #explore .premium-category-copy>small{
    white-space: normal!important;
    overflow: visible!important;
    text-overflow: clip!important;
    line-height: 1.32!important;
  }
}

/* Narrow tablet / large phone landscape: preserve a clean 2x2 composition. */
@media (min-width: 701px) and (max-width: 820px){
  body.theo-app #explore .marketplace-category-showcase{
    padding-left: 20px!important;
    padding-right: 20px!important;
  }
  body.theo-app #explore .category-showcase-grid{gap: 14px!important;}
  body.theo-app #explore .category-showcase-card.premium-category-card{min-height: 200px!important;}
  body.theo-app #explore .premium-category-icon{
    width: 48px!important;
    height: 48px!important;
    top: 16px!important;
    left: 16px!important;
  }
}

/* Phone: keep the existing swipe rail, but stop text/media from clipping. */
@media (max-width: 700px){
  body.theo-app #explore .category-showcase-card.premium-category-card{
    min-width: min(84vw,330px)!important;
    overflow: hidden!important;
  }
  body.theo-app #explore .premium-category-copy{
    left: 18px!important;
    right: 18px!important;
    bottom: 18px!important;
  }
  body.theo-app #explore .premium-category-copy>strong,
  body.theo-app #explore .premium-category-copy>small{
    max-width: 100%!important;
    white-space: normal!important;
    overflow: visible!important;
    text-overflow: clip!important;
  }
}
