/* Ogólne */
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f0fa 100%);
  display: flex;
  justify-content: center;
  padding: 40px 15px;
  color: #333;
  overflow-y: scroll;
}

.main {
  width: 100%;
  max-width: 720px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* Zakładki */
.tabs {
  display: flex;
  background: #f7f9fc;
  border-bottom: 1px solid #dce3ec;
}

.tab-btn {
  flex: 1;
  padding: 16px;
  border: none;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
}

.tab-btn:hover {
  background: #e9f1ff;
  color: #007bff;
}

.tab-btn.active {
  background: #fff;
  color: #007bff;
  border-bottom: 3px solid #007bff;
}

/* Zawartość */
.tab-content {
  display: none;
  padding: 30px;
}

.tab-content.active {
  display: block;
}

.main h2 {
  text-align: center;
  font-size: 28px;
  margin-top: 0;
}

.main h3 {
  margin-top: 25px;
  text-align: center;
  font-size: 20px;
  color: #444;
}

.info {
  max-width: 80%;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.address {
  color: #666;
  font-size: 14px;
}

.about {
  text-align: justify;
  line-height: 1.7;
}

.info {
  width: 100%;
  max-width: 500px;
  margin: 0 auto 25px;
  text-align: center;
}

.info-title {
  margin: 0 0 6px;
  font-size: 20px;
  color: #333;
}

.owner {
  margin: 0 0 14px;
  font-size: 15px;
  color: #555;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
}

.contact-list li {
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  color: #444;
}

.contact-list .icon {
  font-size: 18px;
}

.contact-list a {
  color: #007bff;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-list a:hover {
  text-decoration: underline;
  color: #0056b3;
}


/* Kafelki wypożyczalni */

.rental-contact, .rental-contact .contact
{
  max-width: fit-content;
  margin-inline: auto;
}

.rental-contact .contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.rental-contact .contact-row
{
  display: flex;
  align-items: center;
  gap: 8px;
}

.rental-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
}

.rental-item {
  display: flex;
  align-items: flex-start;
  background: #f9fbff;
  border-radius: 16px;
  padding: 16px 22px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.rental-img:hover,
.thumb:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rental-img,
.thumb {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rental-img,
.thumb {
  flex-shrink: 0;
  width: 45%;
  height: auto;
  max-height: 200px;
  border-radius: 12px;
  object-fit: contain;
  background-color: #fff;
  cursor: pointer;

  border: 2px solid #eff0f3;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.rental-info {
  flex: 1;
  padding-left: 5%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 0px;
}

.rental-info h4 {
  margin: 0;
  font-size: 18px;
  color: #333;
}

.rental-info p {
  margin: 0;
  color: #555;
  font-size: 15px;
}

@media (max-width: 700px) {
  .rental-contact .contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  
  .rental-item {
    flex-direction: column;
    text-align: center;
  }

  .rental-img,
  .thumb {
    width: 100%;
    height: auto;
    max-height: none;
  }

  .rental-info {
    padding-left: 0;
    margin-top: 10px;
  }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
}

.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
}

.lightbox .close { top: 20px; right: 30px; }
.lightbox .prev  { top: 50%; left: 40px; transform: translateY(-50%); }
.lightbox .next  { top: 50%; right: 40px; transform: translateY(-50%); }

.dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dots .dot {
  width: 12px;
  height: 12px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s;
}
.dots .dot.active {
  background: #fff;
}
