/* TPH STEP38E4
   Preserve STEP38E3:
   Desktop: featured 3, recommended 10
   Mobile : featured 3, recommended 10
   Tablet : featured 4 (2x2), recommended 9 (3x3)
*/

/* Desktop: only first 3 featured */
@media (min-width:851px){
  .tph38e3-featured .stay-grid > .stay-card:nth-child(n+4){
    display:none!important;
  }
}

/* Tablet: 4 featured / 9 recommended */
@media (min-width:651px) and (max-width:850px){
  .tph38e3-featured .stay-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .tph38e3-featured .stay-grid > .stay-card:nth-child(n+5){
    display:none!important;
  }

  .tph38e3-recommended .stay-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .tph38e3-recommended .stay-grid > .stay-card:nth-child(n+10){
    display:none!important;
  }
}

/* Mobile: only first 3 featured, all 10 recommended */
@media (max-width:650px){
  .tph38e3-featured .stay-grid > .stay-card:nth-child(n+4){
    display:none!important;
  }
  .tph38e3-recommended .stay-grid > .stay-card{
    display:flex!important;
  }
}