/* PESYJE V11 — homepage fixes loaded AFTER home-v31/home-v32 */

/* Use the native Pesyje rating tiles, not plain yellow Bootstrap stars. */
.py30-home .py30-review-stars.ratings{
  display:inline-flex!important;
  align-items:center!important;
  gap:2px!important;
  margin:10px 0 12px!important;
  color:inherit!important;
  font-size:inherit!important;
}
.py30-home .py30-review-stars.ratings .rating{
  display:inline-block!important;
  position:relative!important;
  padding:5px!important;
  border-radius:3px!important;
  background-color:rgb(var(--star_color))!important;
  line-height:1!important;
}
.py30-home .py30-review-stars.ratings .rating img{
  display:block!important;
  height:18px!important;
  width:auto!important;
}

/* Mobile owner card: image and copy are separate blocks. Text can never sit on the photo. */
@media (max-width:767.98px){
  .py30-home .py30-owner{
    display:flex!important;
    flex-direction:column!important;
    min-height:0!important;
    padding:0!important;
    overflow:hidden!important;
    border-radius:22px!important;
    background:#dff5f4!important;
  }
  .py30-home .py30-owner::after{
    display:none!important;
    content:none!important;
  }
  .py30-home .py30-owner-photo{
    position:relative!important;
    inset:auto!important;
    order:0!important;
    z-index:0!important;
    display:block!important;
    width:100%!important;
    height:184px!important;
    min-height:184px!important;
    object-fit:cover!important;
    object-position:var(--pesyje-owner-image-position,50%) 30%!important;
    border-radius:0!important;
  }
  .py30-home .py30-owner-copy{
    position:relative!important;
    order:1!important;
    z-index:1!important;
    width:100%!important;
    max-width:none!important;
    padding:19px 18px 21px!important;
    background:#dff5f4!important;
  }
  .py30-home .py30-owner h2{margin:0 0 7px!important;font-size:21px!important;line-height:1.15!important}
  .py30-home .py30-owner p{max-width:none!important;margin-bottom:10px!important;font-size:12px!important;line-height:1.48!important}
  .py30-home .py30-owner ul{margin-bottom:14px!important;font-size:11px!important}
  .py30-home .py30-owner .py30-button{min-height:42px!important;font-size:11px!important}
  html[data-pesyje-theme="dark"] .py30-home .py30-owner,
  html[data-pesyje-theme="dark"] .py30-home .py30-owner-copy{background:#233f46!important}
  @media(prefers-color-scheme:dark){
    html:not([data-pesyje-theme="light"]) .py30-home .py30-owner,
    html:not([data-pesyje-theme="light"]) .py30-home .py30-owner-copy{background:#233f46!important}
  }
}

@media (max-width:420px){
  .py30-home .py30-owner-photo{height:168px!important;min-height:168px!important}
  .py30-home .py30-owner-copy{padding:17px 16px 19px!important}
}
