/* Podstawowe style */
body {
  font-family: "Roboto", sans-serif;
  background-color: #f5f5f5;
  color: #333;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.title {
  color: black;
  text-align: center;
  margin: 40px;
  font-size: 36px;
}

.title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #c0b39a; /* Nieco jaśniejszy niebieski */
  margin: 8px auto 0;
  border-radius: 5px;
}

.house-section {
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  color: black;
  margin-bottom: 10px;
  text-align: center;
}

p {
  margin-bottom: 20px;
  color: #555;
  text-align: center;
}

/* Galeria */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Modal - centralne pozycjonowanie */
.modal {
  display: none; /* Ukryty domyślnie */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
}

/* Kontener modala */
.modal-content-wrapper {
  position: relative;
  display: flex;
  flex-direction: column; /* Ustawienie elementów jeden pod drugim */
  align-items: center;
  text-align: center;
}

/* Sam obrazek modala */
.modal-content {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

/* Przycisk zamknięcia */
.close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1001;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.close:hover {
  background: rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* Nawigacja w modalu */
.modal-navigation {
  margin-top: 20px;
  text-align: center;
}

.modal-navigation button {
  background: #c0b39a;
  border: 2px solid #c0b39a; /* delikatny akcent kolorystyczny */
  color: black;
  padding: 10px 20px;
  margin: 0 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  transition: all 0.3s ease;
  min-width: 120px;
}



.modal-navigation button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(192, 179, 154, 0.5);
}

/* Stylizacja rozwijanej sekcji */
.accordion {
  margin: 20px auto;
  max-width: 800px;
  text-align: left;
}

.accordion-toggle {
  background-color: #c0b39a;
  color: black;
  border: none;
  padding: 15px 20px;
  width: 100%;
  font-size: 24px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.accordion-toggle:hover {
  background-color: #b4a18d;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 0 20px;
  text-align: left;
}

.accordion-content p {
  padding: 10px 0;
  font-size: 18px;
  color: #333;
}

.accordion-content h3 {
  margin-top: 20px;
  font-size: 20px;
  color: #705f4e;
}

.accordion-content ul {
  padding-left: 20px;
}

.accordion-content li {
  margin: 5px 0;
  font-size: 16px;
  color: #333;
}

ul ul {
  padding-left: 20px;
  list-style-type: circle;
}

/* Responsywność dla tabletów (max-width: 768px) */
@media (max-width: 768px) {
  .title {
        font-size: 36px;
        margin: 40px;
    }
 
  .house-section {
    padding: 10px;
    margin: 10px auto;
    max-width: 90%;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 5px;
  }
  .accordion-toggle {
    font-size: 20px;
    padding: 10px 15px;
  }
  .accordion-content p,
  .accordion-content li {
    font-size: 14px;
  }
  .modal-content {
    max-width: 90%;
    max-height: 70%;
  }
  .close {
    font-size: 24px;
    width: 30px;
    height: 30px;
    top: 10px;
    right: 10px;
  }
}

/* Responsywność dla telefonów (max-width: 480px) */
@media (max-width: 480px) {
  .title {
        font-size: 36px;
        margin: 40px;
    }
  .accordion-toggle {
    font-size: 18px;
    padding: 10px;
  }
  .accordion-content p,
  .accordion-content li {
    font-size: 12px;
  }
  .modal-content {
    max-width: 100%;
    max-height: 60%;
  }
  .close {
    font-size: 20px;
    width: 25px;
    height: 25px;
    top: 5px;
    right: 5px;
  }
}

/* Dodatkowa responsywność dla szerokości do 1025px */
@media (max-width: 1025px) {
  .title {
        font-size: 36px;
        margin: 40px;
    }
  .house-section {
    padding: 10px;
    margin: 10px auto;
    max-width: 95%;
  }
  .gallery {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
  }
  .accordion-toggle {
    font-size: 20px;
    padding: 10px 15px;
  }
  .accordion-content p,
  .accordion-content li {
    font-size: 14px;
  }
}
