/* === RESET / GLOBALNE === */
*, *::before, *::after {
  box-sizing: border-box;
}
html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background-color: #111;
  color: #ccc;
  font-family: sans-serif;
}
ul li {
font-size: 16px;
}
/* === NAGŁÓWEK === */
.custom-header {
  background-color: #1c1c1c;
  color: #eee;
  text-align: center;
  padding: 30px 15px 10px;
  border-bottom: 1px solid #444;
}
.site-branding {
  margin-bottom: 15px;
}
.site-title {
  font-size: 36px;
  font-weight: bold;
  margin: 0;
  color: #fff;
}

/* ADNOTACJE */
h5 {
  font-size: 12;
  color:#555;
}
/* === MENU GŁÓWNE === */
.main-menu .menu {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-menu .menu li {
  margin: 0;
  padding: 0;
}
.main-menu .menu li a {
  text-decoration: none;
  color: #ccc;
  font-size: 16px;
  transition: color 0.2s ease;
}
.main-menu .menu li a:hover {
  color: #fff;
}
/* === UKŁAD STRONY === */
main {
  flex: 1;
  padding: 40px 20px;
}
.page-section {
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
  padding: 40px 20px;
  width: 100%;
}
.page-section h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #fff;
  margin-top: 0;
  padding-top: 10px;
}
.page-section hr {
  border: none;
  border-top: 1px solid #444;
  margin: 20px auto;
  width: 100%;
  max-width: 100%;
  font-size: 18px;
  line-height: 1.6;
}
.page-content {
  font-size: 18px;
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

/* === SEKCJE === */
section,
.container {
  padding: 4em 2em;
  max-width: 1100px;
  margin: auto;
}
.offer-section {
  padding: 40px 20px;
  width: 100%;
}
.dojazd-section {
  width: 400px;
}
.dojazd-section table {
  width: 100%;
}
.dojazd-section th,
.dojazd-section td {
  border: 1px solid #333;
  padding: 0.6em;
  text-align: left;
}

/* === STOPKA === */
.site-footer {
  text-align: center;
  font-size: 14px;
  padding: 20px;
  color: #555;
}

.site-footer .privacy-policy {
  margin-top: 10px;
  font-size: 12px;
}

.site-footer .privacy-policy a {
  color: #777;
  text-decoration: none;
}

.site-footer .privacy-policy a:hover {
  text-decoration: underline;
}
/* === PORTFOLIO === */
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  object-fit: cover;
}
.portfolio-item:hover img {
  transform: scale(1.05);
}
.portfolio-item h3 {
  text-align: center;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;
  color: #eee;
}

.portfolio-single .gallery-wrapper {
  text-align: center;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}
.portfolio-single .main-image {
  position: relative;
}
.portfolio-single .main-image img {
  max-width: 100%;
  max-height: 600px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.portfolio-single .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 40px;
  color: #ccc;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 15px;
  z-index: 1;
}
.portfolio-single .arrow.left {
  left: -80px;
}
.portfolio-single .arrow.right {
  right: -80px;
}
@media (max-width: 768px) {
  .portfolio-single .arrow.left,
  .portfolio-single .arrow.right {
    left: 10px;
    right: 10px;
  }
}

.main-image-container {
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 3 / 2;
  margin: 0 auto;
  position: relative;
}
.portfolio-single .main-image {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  aspect-ratio: 3 / 2;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
#main-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* === GALERIA PORTFOLIO === */
.gallery-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}
.thumbnail-strip {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.thumbnail-strip .thumbnail {
  height: 80px;
  width: auto;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid transparent;
}
.thumbnail-strip .thumbnail:hover {
  border-color: #999;
}
.portfolio-grid {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.portfolio-sizer {
  width: 33.33%;
}
.portfolio-item {
  width: 33.33%;
  margin-bottom: 20px;
  float: left;
  border-radius: 6px;
}

/* Responsywność masonry grid */
@media (max-width: 1024px) {
  .portfolio-sizer,
  .portfolio-item {
    width: 45%;
  }
}
@media (max-width: 768px) {
  .portfolio-sizer,
  .portfolio-item {
    width: 100%;
  }
}
/* === OFERTA === */
.offer-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 0;
}
.offer-item {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.offer-item.odd {
  flex-direction: row-reverse;
}
.offer-image img {
  max-width: 500px;
  width: 100%;
  border-radius: 6px;
}
.offer-text {
  flex: 1;
  color: #ccc;
  text-align: left;
}
.offer-text h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: #fff;
}
.offer-text p {
  font-size: 16px;
  line-height: 1.6;
}
.btn {
  display: inline-block;
  margin-top: 10px;
  background: #fff;
  color: #000;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
}
/* --- SINGLE PHOTO OFFER --- */

.offer-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}

.offer-image {
  flex: 0 0 45%;
  max-width: 600px;
}

.offer-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

.offer-text {
  flex: 1 1 50%;
  font-size: 1.1em;
  line-height: 1.7;
}
@media screen and (max-width: 768px) {
  .offer-layout {
    flex-direction: column;
  }

  .offer-image, .offer-text {
    flex: 1 1 100%;
  }
}

.offer-full-image-wrapper {
  width: 100%;
  max-width: 100%;
  aspect-ratio: auto;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2em;
}

.offer-full-image {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.offer-full-image img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 20px;
}
.offer-full-content {
  font-size: 18px;
  line-height: 1.7;
  max-width: 800px;
  margin: 0 auto;
  color: #ccc;
}
.offer-item-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.offer-item-link:hover .offer-text h3 {
  text-decoration: underline;
}

/* === CENNIK === */
.sesje-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: flex-start;
}
.sesja-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}
.sesja-header label {
  margin: 0;
  font-size: 1em;
  line-height: 1.4;
}
.usun-btn {
  background-color: #1e1e1e;
  color: #fff;
  padding: 0.3em 0.8em;
  border: 1px solid #444;
  font-size: 1em;
  line-height: 1.4;
  cursor: pointer;
  height: auto;
  margin: 0;
}
.sesja {
  background: #1e1e1e;
  padding: 1em;
  border: 1px solid #333;
  width: 300px;
  flex: 0 0 auto;
}
label {
  display: block;
  margin-top: 1em;
}
select,
input[type="number"] {
  width: 100%;
  padding: 0.5em;
  background: #121212;
  color: #fff;
  border: 1px solid #444;
  box-sizing: border-box;
}
.result {
  flex: 1;
  margin-top: 0;
  padding-top: 0;
}
.result .single {
  font-size: 0.95em;
  color: #aaa;
}
.result .total {
  font-size: 1.5em;
  font-weight: bold;
  color: #f44336;
  margin-top: 0.5em;
}
button {
  background-color: #1e1e1e;
  margin-top: 1.5em;
  padding: 0.6em 1em;
  color: #fff;
  border: 1px solid #444;
  cursor: pointer;
  font-size: 0.9em;
}
button:hover {
  background-color: #2a2a2a;
}
.adnotacja {
  margin-top: 2em;
  font-size: 0.85em;
  color: #bbb;
}
/* === TABELARYCZNY UKŁAD CENNIKA === */
.flex-wrap-tabele {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  margin-top: 2em;
}
.flex-wrap-tabele > .tabela-item {
  flex: 1 1 400px;
  min-width: 320px;
}
.flex-wrap-tabele > div {
  flex: 1 1 300px;
  min-width: 280px;
}
.flex-wrap-tabele > table {
  flex: 1 1 480px;
  min-width: 320px;
  border-collapse: collapse;
  width: 100%;
}
.flex-wrap-tabele .tabela-box {
  flex: 1 1 400px;
}
.flex-wrap-tabele h3 {
  width: 100%;
  margin-top: 2em;
}
button + h2 {
  margin-top: 3em;
}
.tabela-box {
  background: #1e1e1e;
  padding: 1em;
  margin: 1em 0;
  border: 1px solid #333;
  border-radius: 4px;
}
.tabela-box table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5em;
}
.tabela-box th,
.tabela-box td {
  padding: 0.6em 1em;
  border: 1px solid #444;
  text-align: left;
}
.tabela-box th {
  background-color: #222;
  color: #fff;
}
.tabela-item table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #444;
}
.tabela-item th, .tabela-item td,
.flex-wrap-tabele th, .flex-wrap-tabele td {
  padding: 0.8em 1em;
  border: 1px solid #444;
  text-align: left;
  color: #fff;
}

.tabela-item th {
  background-color: #222;
  font-weight: bold;
}
table {
  width: 100%;
  border: 1px solid #444;
  background: #1e1e1e;
}
th, td {
  padding: 0.8em;
  border: 1px solid #444;
  text-align: left;
  color: #fff;
}
th {
  background: #222;
  font-weight: bold;
}

/* === RESPONSYWNOŚĆ / UKŁAD === */
@media screen and (max-width: 768px) {
  .sesje-wynik-wrap {
    display: flex;
    flex-direction: column;
  }
  .sesje-wynik-wrap .result {
    margin-top: 2em;
  }
}
.sesje-wynik-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  align-items: flex-start;
}
.result {
  align-self: flex-start;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* === POLA LICZBOWE + DODATKI === */
.input-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}
.input-wrapper input[type="number"] {
  width: 60px;
}
.unit-label {
  margin-left: 0.3em;
  color: #ccc;
  font-size: 0.9em;
}
input {
  background: #1e1e1e;
  color: #f0f0f0;
  border: 1px solid #444;
  padding: 0.4em;
  text-align: left;
}

/* === NOWE TYPY SESJI === */
.nowy-typ-wrap {
  margin-top: 2em;
}
.nowy-typ-wrap input {
  background: #121212;
  color: #fff;
  border: 1px solid #444;
  padding: 0.5em;
  margin-right: 0.5em;
}
.nowy-typ-wrap button {
  background-color: #1e1e1e;
  color: #fff;
  border: 1px solid #444;
  padding: 0.5em 1em;
  cursor: pointer;
}
.nowy-typ-wrap button:hover {
  background-color: #2a2a2a;
}

/* === EDYCJA TYPÓW === */
.typ-wrap {
  margin-bottom: 2em;
}
.typ-header {
  display: flex;
  align-items: stretch;
  gap: 1em;
  margin-bottom: 1em;
  max-width: 100%;
}
.typ-header input[type="text"] {
  background: #121212;
  border: 1px solid #444;
  color: #fff;
  padding: 0.5em 1em;
  font-weight: bold;
  font-size: 1em;
  flex: 1;
  height: 38px;
  box-sizing: border-box;
  border-radius: 4px 0 0 4px;
  line-height: 1.2;
}
.usun-typ-btn {
  background: #451717;
  color: #fff;
  border: 1px solid #611b1b;
  border-left: none;
  padding: 0.5em 1em;
  font-size: 0.9em;
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 0 4px 4px 0;
  box-sizing: border-box;
  white-space: nowrap;
}
.usun-typ-btn:hover {
  background: #711f1f;
}
/* === WYNAJEM UKŁAD KAFELKÓW SPRZĘTU */
.rental-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2em;
  justify-content: space-between;
  align-items: flex-start;
}
.rental-item {
  background: #1e1e1e;
  border: 1px solid #333;
  width: 325px;
  height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  padding: 1em;
  text-align: center;
  text-decoration: none;
  color: #fff;
}
.rental-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1em;
}
.rental-thumb {
  flex: 0 0 auto;
}
.rental-bottom {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center; 
}
.rental-item h3 {
  font-size: 1em;
  margin: 0;
}
.rental-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.filter-btn {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  margin-right: 0.5em;
  padding: 0.5em 1em;
  cursor: pointer;
}
.filter-btn:hover {
  background-color: #444;
}
.rental-search {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 2em;
  background: #1e1e1e;
  border: 1px solid #444;
  color: #fff;
}

.rental-filters {
  margin-bottom: 2em;
}

.filter-btn {
  background-color: #2a2a2a;
  color: #fff;
  border: 1px solid #444;
  margin: 0 0.5em 0.5em 0;
  padding: 0.5em 1em;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #444;
}

.filter-btn.reset {
  background-color: #444;
  font-weight: bold;
}
.no-thumbnail {
  width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #222;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95em;
  border: 1px solid #444;
}


/* === WYNAJEM === */
/* GŁÓWNY PODZIAŁ */
.rental-main {
  max-width: 1100px;
  margin: auto;
  display: flex;
  flex-direction: column;
}
.rental-content {
  display: flex;
  flex-direction: row;
  gap: 2em;
  position: relative;
}

/* LEWA STRONA */
.rental-left {
  flex: 0 0 60%;
  max-width: 60%;
}
.gallery-main-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.main-image-container {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 3 / 2;
  background-color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  overflow: hidden;
}

#main-gallery-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 1em 0;
}
.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background-color: #1a1a1a;
  padding: 4px;
  border: 1px solid #333;
  cursor: pointer;
}
.gallery-thumb:hover {
  border-color: #888;
}
@media (max-width: 480px) {
  .gallery-thumb {
    width: 60px;
    height: 60px;
  }
}

/* PRAWA STRONA - STICKY BOX */
.rental-right {
  flex: 0 0 40%;
  position: sticky;
  top: 100px;
  height: fit-content;
  align-self: flex-start;
  max-width: 40%;

}
.rental-box {
  background: #1e1e1e;
  border: 1px solid #333;
  padding: 1.5em;
  color: #fff;
}
.rental-box hr {
  border-top: 1px solid #444;
  margin: 1em 0;
}
.rental-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2em;
}
.rental-kaucja {
  font-size: 0.9em;
  color: #bbb;
}
.option-btn {
  background: #222;
  color: #fff;
  border: 1px solid #444;
  padding: 0.5em 1em;
  margin: 0.5em 0.5em 0 0;
  cursor: pointer;
}
.option-btn:hover {
  background: #333;
}
.option-btn.active {
  background-color: #f44336;
  border-color: #f44336;
  color: #fff;
}


/* FAQ */
.faq-boxes {
  display: flex;
  flex-direction: column;
  gap: 1em;
}
.faq-btn {
  background: #222;
  color: #fff;
  padding: 0.6em 1em;
  border: 1px solid #444;
  cursor: pointer;
}
.faq-btn:hover {
  background-color: #333;
}

/* UNIWERSALNE */
.rental-section {
  margin-top: 3em;
}
.rental-section h3 {
  margin-bottom: 0.5em;
}

/* MOBILNE */
@media screen and (max-width: 768px) {
  .rental-content {
    flex-direction: column;
  }

  .rental-right {
    position: static; /* NIE sticky */
    width: 100%;
    margin-top: 2em;
    order: 2; /* po galerii */
  }

  .rental-left {
    order: 1;
  }
}

/* PDF */
.rental-section ul li a {
  color: #ddd4b2; 
  text-decoration: underline;
}
.rental-section ul li a:hover {
  color: #fff8e3;
}

/* Okno alertu FAQ wynajem */
/* MODAL – tło */
.faq-modal {
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* MODAL – okienko */
.faq-modal-content {
  background-color: #1e1e1e;
  border: 1px solid #444;
  padding: 2em;
  border-radius: 8px;
  color: #fff;
  width: 90%;
  max-width: 500px;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/* MODAL – przycisk zamknięcia */
.faq-close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 26px;
  color: #ccc;
  cursor: pointer;
}
.faq-close:hover {
  color: #fff;
}
