
/* Układ lewo-prawo dla mniejszych ekranów */
@media (min-width: 901px) and (max-width: 1024px) {
  .pierwsze{
    margin-top: 100px;
  }
}
@media (max-width:1200px) {
  .puste,
  .puste1,
  .puste2 {
    background-image: none !important;
    background-color: inherit;
  }
}
@media (max-width: 1025px) {
  .zdjecie,
  .zdjecie1 {
    height: 50vh ;
    object-fit: cover;
    width: 100%;
    border-radius: 0 !important;
    margin: 0;
  }
  .leo-english{
    height: auto !important;
    object-fit: contain !important;
  }
  .lewo-prawo {
    display: flex;
    flex-direction: column;
    height: auto !important;
  }

  .lewo-prawo-content {
    width: 100%;
    padding: 20px;
  }

  .lewo-prawo-text,
  .lewo-prawo-img {
    width: 100% !important;
    height: auto;
    border-radius: 0 !important;
    text-align: center;
    margin: 0 auto;
  }

  .lewo-prawo-img {
    order: 2;
  }

  .lewo-prawo:nth-child(even) .lewo-prawo-img {
    order: 2;
  }
  .lewo-prawo:nth-child(even) .lewo-prawo-text {
    order: 1;
  }
}

/* Logo, menu i dropdown */
@media (max-width: 900px) {
  #naglowek {
    position: fixed !important;
    bottom: 0 !important;
    top: unset !important;
    left: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background-color: white !important;
    display: flex !important;
    border-top: 1px solid black !important;
    z-index: 1000 !important;
  }
  #logo {
    width: 100%;
    justify-content: center;
    transition: 0.5s;
  }
  #logo img {
    width: 70px;
    height: auto;
  }
  .pasek {
    display: none;
    gap: 10px;
  }
  #nav_dropdown {
    display: block;
  }
  
}
@media (max-width: 650px){
  .logo-text {
    display: none !important;
}
}
@media (min-width: 900px) and (max-width:1250px){
  .logo-text {
    max-width: 100px;
    font-size: 10px;
    }
}

/* Background position na średnie rozdzielczości */
@media (min-width: 1201px){
  .puste {
    background-position: 95% 85%;
  }
}
  .puste1 {
    background-position: 95% 55%;
  }
    .puste2 {
    background-position: 90% 50%;
  }
  .opis {
    margin-top: 40px;
  }
@media (max-width: 1300px), (max-height: 800px) {

  .opis {
    margin-top: 40px;
  }

  .text-center h2 {
    font-size: 30px;
  }
}
/* Dodatkowe poprawki responsywności */
@media (max-width: 1024px) {
  body {
    margin-top: 0 !important;
    overflow-x: hidden;
  }

  .gora {
    margin-top: 0 !important;
  }

  .lewo-prawo-text {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .lewo-prawo {
    width: 100%;
  }
}

@media (max-width: 450px) {
  #logo img {
    width: 70px;
    height: auto;
  }
}
@media (min-width:920px) and (max-width:999px) {
  .pasek {
    font-size: 14px;
  }
}
@media (min-width:900px) and (max-width:920px) {
  .pasek {
    font-size: 13px;
  }
}
@media (min-width: 1250px) and (max-width:1360px){
  .pasek{
    gap: 1vw;
  }
}
/* Globalna blokada poziomego przesuwania */
html, body {
  overflow-x: hidden !important;
}
body {
  width: 100% !important;
}


/*Mapka*/
@media (max-width: 768px) {
  .map-container {
    flex-direction: column !important;
    padding: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
  }

  .left-panel {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    background-color: #c1d3ae !important;
    padding: 10px 5px !important;
    gap: 10px !important;
    max-height: 220px !important;
    overflow: hidden !important; 
  }

  .filter-bar {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
  }

  .filter-bar button {
    padding: 6px 12px !important;
    font-size: 13px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
  }

  .schools {
    flex: 1 1 auto !important;
    display: flex !important;
    gap: 6px !important;
    overflow-y: auto !important;  
    overflow-x: hidden !important;
    max-height: 200px !important;
    padding-right: 5px !important;
  }

  .school {
    flex: 0 0 auto !important;
    font-size: 12px !important;
    padding: 6px 8px !important;
    border-radius: 6px !important;
    line-height: 1.2 !important;
    background-color: #f2f2f2 !important;
    width: 100% !important;          
    box-sizing: border-box !important;
  }

  .school p {
    font-size: 11px !important;
    margin: 2px 0 0 0 !important;
  }

  .right-panel {
    width: 100% !important;
    margin-top: 10px !important;
  }

  .map {
    width: 100% !important;
    height: 300px !important;
    border-radius: 20px !important;
  }
}

