/* Reset/ustawienia ogólne */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: #222;
  background: #fff;
  line-height: 1.6;
}

/* Linki globalne */
a {
  color: #222;               /* ten sam kolor co tekst */
  text-decoration: none;     /* brak podkreślenia */
  transition: color 0.2s ease;
}
a:hover,
a:focus {
  color: #2e7d32;            /* taki sam kolor hover jak w menu */
  outline: none;
}

/* Pomocnicze kontenery */
.container {
  width: min(1200px, 92%);
  margin-inline: auto;
}

/* Header */
.site-header {
  border-bottom: 1px solid #eee;
  background: #fff;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo po lewej, menu po prawej */
  padding: 14px 0;
  gap: 24px;
}
.logo img {
  display: block;
  height: 120px;
  width: auto;
}

/* Nawigacja */
.main-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: clamp(14px, 3vw, 28px);
}
.main-nav a {
  color: #222;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 8px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}
.main-nav a:hover,
.main-nav a:focus {
  color: #2e7d32;
  outline: none;
}

/* Hero */
/* Hero banner */
.hero-banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: url("las.jpg") center/cover no-repeat; /* podmień na swoją grafikę */
}

/* półprzezroczysta warstwa na tle */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.183);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 800px;
}

.hero-content h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
  font-weight: 700;
  font-family: serif;
}

.hero-content p {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 28px;
  font-weight: 400;
}

.hero-btn {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}
.hero-btn:hover,
.hero-btn a:hover,
.hero-btn:focus {
  background: #519054;
  color: white;
}


/* Sekcje treści */
.section { padding: 40px 0; }
.section h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 32px);
}
.section p { margin: 0 0 10px; }

/* Stopka */
.site-footer {
  border-top: 1px solid #eee;
  background: #fff;
  color: #555;
  padding: 20px 0 28px;
  font-size: 14px;
}

address {
  font-style: normal; /* usuwa kursywę */
}


/* Sekcja O nas */
.about {
  display: grid;
  grid-template-columns: 1fr 2fr; /* lewa kolumna węższa na zdjęcie */
  gap: 40px;
  align-items: start;
}

.about-image img {
  width: 100%;
  aspect-ratio: 1 / 1;  /* kwadrat */
  object-fit: cover;    /* przycina zdjęcie do kwadratu */
  display: block;
}

.about-text h2 {
  margin-top: 0;
}

@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr; /* na telefonach pod sobą */
  }
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
}


/* Oferta: układ lewo/prawo */
.offer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 4vw, 40px);
  align-items: start;
}
.offer-left {
  display: flex;
  flex-direction: column;
  gap: 20px; /* odstęp między opisem a kafelkami */
}

/* Galeria kafelkowa 2×2 */
.offer-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.offer-gallery .thumb {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.offer-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;      /* kwadrat */
  object-fit: cover;
  display: block;
}

/* Sekcja mapy Google */
.map-container {
  width: 100%;
  height: 350px; /* wysokość mapy */
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}


/* Tabela dostępności */
.table-wrapper {
  overflow-x: auto; /* na mobile można przewijać w bok */
}

.availability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin-top: 16px;
}

.availability-table th,
.availability-table td {
  border: 1px solid #e0e0e0;
  padding: 10px 12px;
  text-align: center;
}

.availability-table th {
  background: #f5f5f5;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
}

.availability-table tr:nth-child(even) td {
  background: #fafafa;
}

/* przykładowe kolory statusów */
.availability-table tr.sold td { 
  background: #ffe5e5;   /* czerwone tło dla sprzedanych */
  color: #a00;           /* ciemnoczerwony tekst */
}
.availability-table tr.reserved td { 
  background: #fff5cc;   /* żółte tło dla zarezerwowanych */
  color: #a67c00;
}
.availability-table tr.free td { 
  background: #e9f7ef;   /* zielone tło dla wolnych */
  color: #2e7d32;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}
.lightbox.open { display: flex; }
.lightbox-img {
  max-width: 96vw;
  max-height: 92vh;
  display: block;
}
.lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 36px;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Kafelki do pobrania PDF */
.download-grid {
  margin-top: 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.download-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e7e7e7;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.06s ease, color 0.2s ease;
}
.download-tile:hover,
.download-tile:focus {
  border-color: #cfd8dc;
  transform: translateY(-1px);
  color: #2e7d32; /* spójnie z hover linków/menu */
}
.download-tile .icon {
  font-size: 22px;
  line-height: 1;
}

/* RWD */
@media (max-width: 900px) {
  .offer { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { width: 100%; }
  .main-nav ul { justify-content: flex-end; }
}
@media (max-width: 520px) {
  .download-grid { grid-template-columns: 1fr; }
}

/* Twarde zabezpieczenie lightboxa przed przypadkowym wyświetleniem */
#lightbox { display: none !important; }
#lightbox.open { display: flex !important; }
