.location-box {
  background-color: rgb(255, 255, 255);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0.1, 0.1, 0.1, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 900px;  /* Box zajmuje całą szerokość kontenera */
  max-width: 100%; /* Zapewnia, że szerokość boxa nie przekroczy szerokości kontenera */
  margin: 40px auto;
  animation: fadeInLocation 0.8s ease-out both;
}

.dojazd img {
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 0;
}


.location-info {
  padding: 40px 30px 30px;
  text-align: left;
  animation: fadeInLocation 0.8s ease-out both;
}

.location-info h2 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #1e1e1e;
  font-weight: 600;
}

#location-info {
  font-size: 16px; 
  color: #636363;
  line-height: 1.6;
}

.location-map-container {
  width: 100%;
  height: 400px; /* Zwiększona wysokość mapy */
  animation: fadeInLocation 1s ease-out both;
}

.location-map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes fadeInLocation {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsywność */
@media (max-width: 600px) {
  .location-box {
    width: 95%;        /* Ustawiamy prawie pełną szerokość */
    margin: 20px auto; /* Mniejsze marginesy */
    border-radius: 12px;
  }

  .location-info {
    padding: 20px 15px; /* Zmniejszony padding */
  }

  .location-info h2 {
    font-size: 20px;
    text-align: center; /* Lepsza czytelność na telefonie */
  }

  #location-info {
    font-size: 14px;
    line-height: 1.5;
    text-align: justify;
  }

  .location-map-container {
    height: 250px; /* Jeszcze mniejsza mapa dla bardzo małych ekranów */
  }
}
