body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f7f7f7;
  color: #222;
  line-height: 1.6;
}

header {
  background-color: #0a4d8c;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
}

h1, h2 {
  margin: 0.5rem 0;
}

main {
  max-width: 1200px;
  margin: 2rem auto;
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.info {
  margin-bottom: 2rem;
}

.intro-text {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-left: 5px solid #0a4d8c;
  padding: 2rem;
  margin-bottom: 2.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.intro-text h2 {
  color: #0a4d8c;
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.highlight-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #333;
  margin: 0 0 1rem 0;
}

.private-offer {
  margin: 1.5rem 0 0 0;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: 6px;
  font-size: 1.05rem;
  color: #0a4d8c;
  border: 2px solid #0a4d8c;
  text-align: center;
}

.private-offer strong {
  font-size: 1.1rem;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.property-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1.5rem;
  border: 1px solid #e9ecef;
}

.property-card h3 {
  color: #0a4d8c;
  margin-top: 0;
  margin-bottom: 1rem;
}

.property-details {
  margin: 0;
  padding: 0;
  list-style: none;
}

.property-details li {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.property-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2c5282;
  margin-top: 1rem;
}

.doc-top-text {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: #0a4d8c;
  text-align: center;
}

.doc-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background: #eee;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  background: #ddd;
}

.tab-btn.active {
  background: #0a4d8c;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Gallery */
/* Featured Photo - main highlight */
.featured-photo {
  margin: 2rem auto 3rem;
  max-width: 900px;
  text-align: center;
}

.featured-photo figure {
  margin: 0;
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.featured-photo img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.featured-photo img:hover {
  transform: scale(1.02);
}

.featured-photo figcaption {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a4d8c;
}

/* Regular Gallery Grid */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  margin-top: 2rem;
}

figure {
  margin: 0;
  width: 100%;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

figure:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.gallery img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
}

figcaption {
  margin-top: 0.75rem;
  color: #555;
  font-size: 0.95rem;
}

/* Video */
.video-container {
  max-width: 800px;
  margin: 0 auto;
}

video {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.video-description {
  text-align: center;
  margin-top: 1rem;
  color: #666;
}

/* Maps */
.maps-content {
  max-width: 800px;
  margin: 0 auto;
}

.map-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.map-btn {
  padding: 0.5rem 1.5rem;
  border: 2px solid #0a4d8c;
  background: transparent;
  color: #0a4d8c;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.map-btn:hover {
  background: #0a4d8c15;
}

.map-btn.active {
  background: #0a4d8c;
  color: white;
}

.map-container {
  display: none;
}

.map-container.active {
  display: block;
}

.map-viewer object {
  width: 100%;
  height: 600px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-viewer p {
  text-align: center;
  color: #666;
}

/* Documentation */
.documentation {
  margin-top: 4rem;
  padding-top: 2rem;
}

.docs-grid {
  display: grid;
  grid-template-rows: auto auto;
  gap: 2rem;
  margin-top: 1rem;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.docs-grid .doc-item:nth-child(-n+2) {
  grid-row: 1;
}

.docs-grid .doc-item:nth-child(n+3) {
  grid-row: 2;
}

@media (min-width: 769px) {
  .docs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .docs-grid .doc-item:nth-child(odd) {
    grid-column: 1;
  }
  
  .docs-grid .doc-item:nth-child(even) {
    grid-column: 2;
  }
}

.doc-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
  padding: 0.5rem;
  gap: 0.5rem;
}

.doc-link:hover {
  transform: translateY(-6px) scale(1.01);
}

.doc-link img,
.doc-pdf {
  width: 100%;
  max-width: 520px; /* Larger thumbnails */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.12);
  margin-bottom: 0;
}

.doc-pdf object {
  width: 100%;
  height: 735px; /* ~520px * 1.414 dla proporcji A4 */
  display: block;
}

.doc-link span {
  font-weight: 600;
  color: #0a4d8c;
  text-align: center;
}

/* Documentation note (placed above scans) */
.doc-note {
  background: #f0fbff;
  border-left: 4px solid #0a4d8c;
  padding: 0.6rem 1rem;
  margin: 0.5rem 0 1rem 0;
  border-radius: 4px;
  color: #083a63;
}

/* Lightbox */
#lightbox { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 9999; }
#lightbox.visible { display: flex; }
#lightbox .lightbox-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
#lightbox .lightbox-content { position: relative; z-index: 10000; max-width: 90%; max-height: 90%; padding: 1rem; display: flex; align-items: center; justify-content: center; }
#lightbox .lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
#lightbox .lightbox-close { position: absolute; top: -12px; right: -12px; background: #fff; border: none; border-radius: 50%; width: 36px; height: 36px; font-size: 20px; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.2); z-index: 10001; transition: transform 0.2s ease; }
#lightbox .lightbox-close:hover { transform: scale(1.1); background: #f0f0f0; }
#lightbox .lightbox-prev,
#lightbox .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.9); border: none; border-radius: 50%; width: 50px; height: 50px; font-size: 32px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); z-index: 10001; transition: all 0.2s ease; display: flex; align-items: center; justify-content: center; color: #333; }
#lightbox .lightbox-prev { left: 20px; }
#lightbox .lightbox-next { right: 20px; }
#lightbox .lightbox-prev:hover,
#lightbox .lightbox-next:hover { background: #fff; transform: translateY(-50%) scale(1.1); }

/* Contact */
.contact {
  margin-top: 3rem;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.contact h2 {
  color: #0a4d8c;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-intro {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.contact-button {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 2rem;
  background: #fff;
  border: 2px solid #0a4d8c;
  border-radius: 12px;
  text-decoration: none;
  color: #0a4d8c;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  min-width: 280px;
}

.contact-button:hover {
  background: #0a4d8c;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(10,77,140,0.3);
}

.button-icon {
  font-size: 2rem;
  line-height: 1;
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.button-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.button-value {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 0.25rem;
}

.contact-note {
  font-size: 0.95rem;
  color: #666;
  font-style: italic;
  margin-top: 1.5rem;
}

/* Sticky Contact Bar */
.sticky-contact {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(10,77,140,0.95) 0%, rgba(8,60,110,0.98) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.5rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.sticky-phone,
.sticky-email,
.sticky-whatsapp,
.sticky-messenger {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.95);
  color: #0a4d8c;
  text-decoration: none;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  justify-content: center;
}

.sticky-phone,
.sticky-email {
  flex: 1;
  max-width: 145px;
}

.sticky-icon-only {
  flex: 0 0 auto;
  padding: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-phone:hover,
.sticky-email:hover,
.sticky-whatsapp:hover,
.sticky-messenger:hover {
  background: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.sticky-whatsapp {
  background: rgba(37,211,102,0.95);
  color: #fff;
}

.sticky-whatsapp:hover {
  background: rgb(37,211,102);
}

.sticky-messenger {
  background: rgba(0,132,255,0.95);
  color: #fff;
}

.sticky-messenger:hover {
  background: rgb(0,132,255);
}

.sticky-label {
  white-space: nowrap;
}

.icon-svg {
  width: 22px;
  height: 22px;
  display: block;
}

footer {
  text-align: center;
  background-color: #eee;
  padding: 1rem;
  font-size: 0.9rem;
  margin-top: 3rem;
}

@media (max-width: 768px) {
  main {
    padding: 1rem;
    margin: 1rem;
    margin-bottom: 5rem; /* Space for sticky contact */
  }
  
  .intro-text {
    padding: 1.25rem;
    margin-bottom: 2rem;
  }
  
  .intro-text h2 {
    font-size: 1.3rem;
  }
  
  .highlight-text {
    font-size: 1.05rem;
  }
  
  .private-offer {
    font-size: 0.95rem;
  }
  
  .featured-photo {
    margin: 1.5rem auto 2rem;
  }
  
  .featured-photo figcaption {
    font-size: 1rem;
  }
  
  .gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  
  .docs-grid {
    grid-template-columns: 1fr;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
  }
  
  #lightbox .lightbox-prev,
  #lightbox .lightbox-next {
    width: 40px;
    height: 40px;
    font-size: 28px;
  }
  
  #lightbox .lightbox-prev {
    left: 10px;
  }
  
  #lightbox .lightbox-next {
    right: 10px;
  }
  
  .contact {
    padding: 2rem 1rem;
  }
  
  .contact h2 {
    font-size: 1.5rem;
  }
  
  .contact-methods {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-button {
    min-width: 100%;
    padding: 1rem 1.5rem;
  }
  
  .button-value {
    font-size: 1.15rem;
  }
  
  .sticky-contact {
    gap: 0.4rem;
    padding: 0.5rem 0.4rem;
  }
  
  .sticky-phone,
  .sticky-email {
    flex: 1;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    gap: 0.3rem;
  }
  
  .sticky-icon-only {
    width: 40px;
    height: 40px;
  }
  
  .sticky-label {
    font-size: 0.75rem;
  }
  
  .icon-svg {
    width: 18px;
    height: 18px;
  }
}
