/**
 * Style podstrony pomieszczenia (prefiks pom-).
 * Kolory/fonty jak w toscana-97c2d7.css / custom.css.
 */

/* A-03: blok tytułu na dole hero z odstępem; podtytuł wyśrodkowany pod H1.
   Przyczyna: klasa .hero-text jest z hero-bottom-wrapper (osobny rząd),
   a .pom-hero-podtytul miał max-width bez margin:auto → stick do lewej. */
.single-pomieszczenie .section-hero .hero-content {
  padding-bottom: 48px;
}

.pom-hero-titles {
  text-align: center;
}

.pom-hero-podtytul {
  display: block;
  width: 100%;
  max-width: 28em;
  margin: 16px auto 0;
  color: #f5f3ed;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 1em;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.5;
  position: static;
}

.pom-fakty {
  background-color: #f5f3ed;
  padding: 2.5em 0 0;
}

/* A-04: jedna linia z wrapem; nadpisuje .szczegoly-item{width:100%} z custom.css ≤500px */
.pom-fakty-flex {
  align-items: center;
  justify-content: center;
  flex-flow: row wrap;
  gap: 0.5em 1em;
  border-bottom-color: #91938d;
}

.pom-fakty .szczegoly-item {
  width: auto;
  flex: 0 0 auto;
}

.pom-fakty .szczegoly-divider {
  display: block;
  flex: 0 0 auto;
  margin-bottom: 0;
}

.pom-fakt-wartosc {
  white-space: nowrap;
  color: #242a34;
  font-family: Inter, sans-serif;
}

/* A-02: jednostka m² nie dziedziczy text-transform:uppercase */
.pom-fakty .is-lower,
.pom-karta-meta .is-lower {
  text-transform: none;
}

.pom-opis-sekcja {
  background-color: #f5f3ed;
  padding: 3.5em 0 4em;
}

.pom-opis-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3em;
  align-items: start;
}

.pom-opis {
  color: #242a34;
  font-family: Inter, sans-serif;
  font-size: 1.05em;
  line-height: 1.7;
}

.pom-opis p {
  margin: 0 0 1.1em;
}

.pom-opis p:last-child {
  margin-bottom: 0;
}

.pom-cechy-tytul {
  color: #242a34;
  font-family: Playfair Display, sans-serif;
  font-size: 1.75em;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1em;
}

.pom-cechy-lista {
  list-style: none;
  margin: 0;
  padding: 0;
  color: #242a34;
  font-family: Inter, sans-serif;
  font-size: 0.95em;
  line-height: 1.5;
}

.pom-cechy-lista li {
  border-bottom: 1px solid rgba(36, 42, 52, 0.18);
  padding: 0.7em 0;
}

.pom-cechy-lista li:first-child {
  border-top: 1px solid rgba(36, 42, 52, 0.18);
}

.pom-galeria {
  background-color: #f5f3ed;
  /* A-06: slick-list ma margin: 0 -10px — bez paddingu wrappera wystaje poza viewport */
  overflow-x: clip;
}

/* Odpowiednik .page-template-template-o-willi .gal-slider-wrapper z custom.css */
.single-pomieszczenie .gal-slider-wrapper {
  padding-left: 2em;
  padding-right: 2em;
}

.pom-pozostale {
  background-color: #f5f3ed;
  padding: 4em 0 5em;
  overflow: hidden;
}

.pom-pozostale .section-subtitle {
  margin-bottom: 1.75em;
  color: #242a34;
  font-family: Inter, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85em;
}

.pom-pozostale-track {
  display: flex;
  gap: 1.25em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5em;
  scrollbar-width: thin;
}

.pom-karta {
  flex: 0 0 16.5em;
  max-width: 16.5em;
  text-decoration: none;
  color: #242a34;
  transition: opacity 0.25s ease;
}

.pom-karta:hover {
  opacity: 0.85;
}

.pom-karta-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8e4db;
}

.pom-karta-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pom-karta-body {
  padding-top: 0.85em;
}

.pom-karta-tytul {
  font-family: Playfair Display, sans-serif;
  font-size: 1.25em;
  line-height: 1.3;
  margin-bottom: 0.35em;
}

.pom-karta-meta {
  font-family: Inter, sans-serif;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(36, 42, 52, 0.7);
  white-space: nowrap;
}

@media screen and (max-width: 991px) {
  .pom-opis-grid {
    grid-template-columns: 1fr;
    gap: 2.5em;
  }

  .pom-opis-sekcja {
    padding: 3em 0;
  }
}

@media screen and (max-width: 767px) {
  .single-pomieszczenie .section-hero .hero-content {
    padding-bottom: 32px;
  }

  .pom-fakty {
    padding-top: 2em;
  }

  .pom-cechy-tytul {
    font-size: 1.5em;
  }

  .pom-pozostale {
    padding: 3em 0 4em;
  }

  .pom-karta {
    flex-basis: 14em;
    max-width: 14em;
  }
}

@media screen and (max-width: 479px) {
  .single-pomieszczenie .section-hero .hero-content {
    padding-bottom: 32px;
  }

  .pom-hero-podtytul {
    font-size: 0.95em;
  }

  .pom-opis-sekcja {
    padding: 2.5em 0;
  }

  .pom-opis {
    font-size: 1em;
  }

  .pom-karta {
    flex-basis: 12.5em;
    max-width: 12.5em;
  }

  .pom-karta-meta {
    white-space: normal;
  }
}

/* Brak poziomego scrolla strony na 390px — track kart ma własny overflow. */
@media screen and (max-width: 390px) {
  .pom-opis-sekcja,
  .pom-fakty,
  .pom-pozostale {
    overflow-x: clip;
  }

  .pom-fakty-flex {
    flex-flow: row wrap;
    justify-content: center;
    gap: 0.4em 0.75em;
  }

  .pom-fakty .szczegoly-item {
    width: auto;
  }

  .pom-fakt-wartosc {
    white-space: nowrap;
  }
}
