/* LP111: fit the full desktop section menu without horizontal scrolling. */
@media(min-width:1024px){
 html body #start.lp67-home .desktop-nav{
  flex-wrap:nowrap!important;
  justify-content:space-between;
  gap:0;
  padding:5px 0;
  overflow:visible;
 }
 html body #start.lp67-home .desktop-nav a{
  flex:0 0 auto;
  padding:8px 0;
  gap:4px;
  font-size:14px!important;
 }
 html body #start.lp67-home .desktop-nav .nav-chat svg{width:17px;height:17px;flex-shrink:0}
 html body #start.lp67-home .desktop-nav [data-chat-badge]{position:absolute;top:-1px;right:0;min-width:15px;height:15px;padding:0 3px;font-size:9px}
}
@media(min-width:1520px){
 html body #start.lp67-home .desktop-nav a{padding-inline:4px}
}
@media(min-width:1200px) and (max-width:1399px){
 html body #start.lp67-home .desktop-nav a{padding-inline:0;gap:3px;font-size:12px!important}
}
@media(min-width:1024px) and (max-width:1199px){
 html body #start.lp67-home .desktop-nav a{padding-inline:0;gap:2px;font-size:10.5px!important}
 html body #start.lp67-home .desktop-nav .nav-chat svg{display:none}
}
/* Narrow tablets use the existing complete section menu. */
@media(min-width:821px) and (max-width:1023px){
 html body #start.lp67-home .desktop-nav{display:none!important}
 html body #start.lp67-home .mobile-menu{display:grid!important;place-items:center;flex:0 0 42px;width:42px;height:42px}
}

/* LP113: czytelniejsze karty na telefonie — wiadomości i najnowsze ogłoszenia. */
@media(max-width:820px){
  /* Poziomy pasek „Najnowsze wiadomości”: większa karta, obraz i typografia. */
  html body #start.lp67-home .news-panel .lp-home-items,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-items{
    display:flex!important;
    gap:12px!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;
    padding:2px 12px 10px!important;
    scroll-padding-inline:12px;
    scroll-snap-type:x mandatory;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  html body #start.lp67-home .news-panel .lp-home-items::-webkit-scrollbar,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-items::-webkit-scrollbar{display:none}

  html body #start.lp67-home .news-panel .lp-home-item,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-item{
    flex:0 0 min(84vw,360px)!important;
    width:min(84vw,360px)!important;
    min-width:min(84vw,360px)!important;
    min-height:104px!important;
    height:auto!important;
    grid-template-columns:90px minmax(0,1fr)!important;
    gap:11px!important;
    padding:9px!important;
    border:1px solid #dfe7ef!important;
    border-radius:13px!important;
    background:#fff!important;
    box-shadow:0 5px 15px rgba(7,26,53,.08)!important;
    scroll-snap-align:start;
  }
  html body #start.lp67-home .news-panel .lp-home-item .lp-feed-image,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-item .lp-feed-image{
    width:90px!important;
    height:82px!important;
    min-height:82px!important;
    border-radius:10px!important;
  }
  html body #start.lp67-home .news-panel .lp-home-kicker,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-kicker{
    margin-bottom:4px!important;
    font-size:10.5px!important;
    line-height:1.15!important;
    letter-spacing:.045em!important;
  }
  html body #start.lp67-home .news-panel .lp-home-headline,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-headline{
    font-size:15px!important;
    line-height:1.2!important;
    -webkit-line-clamp:3!important;
  }
  html body #start.lp67-home .news-panel .lp-home-meta,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-meta{
    margin-top:5px!important;
    font-size:11px!important;
    line-height:1.25!important;
  }

  /* „Najnowsze ogłoszenia”: kategoria ma być widoczna od pierwszego spojrzenia. */
  html body #start.lp67-home .listing-grid .lp88-kind{
    display:inline-flex!important;
    align-items:center;
    align-self:flex-start;
    width:max-content;
    max-width:100%;
    margin:0 0 4px!important;
    padding:3px 7px!important;
    border-radius:999px;
    font-size:12px!important;
    font-weight:900!important;
    line-height:1.15!important;
    letter-spacing:.015em!important;
    text-transform:none!important;
    color:#17304f!important;
    background:#edf2f7!important;
  }
  html body #start.lp67-home .listing-grid [data-category="work"] .lp88-kind{
    color:#0b4f9c!important;background:#e7f1ff!important;
  }
  html body #start.lp67-home .listing-grid [data-category="sale"] .lp88-kind{
    color:#176233!important;background:#e8f6ed!important;
  }
  html body #start.lp67-home .listing-grid [data-category="housing"] .lp88-kind{
    color:#9f1d2e!important;background:#fdecef!important;
  }
  html body #start.lp67-home .listing-grid .lp88-title{
    font-size:14px!important;
    line-height:1.2!important;
  }
  html body #start.lp67-home .listing-grid .lp88-price{
    font-size:15px!important;
    line-height:1.15!important;
    font-weight:900!important;
  }
  html body #start.lp67-home .listing-grid .lp88-meta{
    font-size:10.5px!important;
    line-height:1.2!important;
  }
}

@media(max-width:390px){
  html body #start.lp67-home .news-panel .lp-home-item,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-item{
    flex-basis:86vw!important;
    width:86vw!important;
    min-width:86vw!important;
    grid-template-columns:84px minmax(0,1fr)!important;
  }
  html body #start.lp67-home .news-panel .lp-home-item .lp-feed-image,
  html body #start.lp67-home .lp-home-highlights-host .lp-home-item .lp-feed-image{
    width:84px!important;
    height:78px!important;
    min-height:78px!important;
  }
}
