/* Szlakiem Przygody - style główne */

:root {
  --color-bg: #faf7f2;
  --color-bg-alt: #ffffff;
  --color-text: #2b2420;
  --color-muted: #6b5f55;
  --color-primary: #c25b2d;
  --color-primary-dark: #9c4620;
  --color-accent: #2f6b57;
  --color-border: #e6ddd1;
  --shadow: 0 8px 24px rgba(43, 36, 32, 0.08);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / nawigacja */

/* Nagłówek jest WYJĘTY Z UKŁADU (fixed, nie sticky) na każdej stronie.
   To istotne: logo kurczy się po przewinięciu, a gdyby nagłówek zajmował
   miejsce w przepływie, zmiana jego wysokości skracałaby stronę, przeglądarka
   przycinałaby pozycję przewijania i próg 60px zaczynałby się przełączać
   w kółko - obraz drżał. Wysokość rezerwuje `main` paddingiem poniżej. */
.site-header {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.25s ease, border-color 0.25s ease;
}

/* Miejsce pod nagłówek w jego pełnej (nieprzewinietej) wysokości: logo 208px + ramka */
main {
  padding-top: 209px;
}

/* Strona główna: przezroczysty nagłówek nałożony na baner, aż do przewinięcia */
body.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
}

body.home .site-header .main-nav a,
body.home .site-header .nav-toggle {
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body.home .site-header .main-nav a:hover,
body.home .site-header .main-nav a.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

body.home .site-header.scrolled {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

body.home .site-header.scrolled .main-nav a,
body.home .site-header.scrolled .nav-toggle {
  color: var(--color-muted);
  text-shadow: none;
}

/* Logo na przezroczystym nagłówku leży na zdjęciu - delikatny cień dla czytelności */
body.home .site-header .logo-mark {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

body.home .site-header.scrolled .logo-mark {
  filter: none;
}

body.home .site-header.scrolled .main-nav a:hover,
body.home .site-header.scrolled .main-nav a.active {
  background: var(--color-bg);
  color: var(--color-primary-dark);
}

body.home main {
  padding-top: 0;
}

/* Nagłówek na pełną szerokość - logo dosunięte do lewej krawędzi ekranu,
   nawigacja do prawej (bez wyśrodkowanej kolumny 1100px) */
.header-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0 24px 0 0;
  width: 100%;
  margin: 0;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text);
}

/* Logo - PNG z przezroczystym tłem, wtopione w tło (bez białego kafelka).
   Duży znak w lewym górnym rogu; po przewinięciu kurczy się, żeby przyklejony
   nagłówek nie zjadał ekranu. */
.logo-mark {
  width: 208px;
  height: 208px;
  flex-shrink: 0;
  object-fit: contain;
  transition: width 0.25s ease, height 0.25s ease;
}

.site-header.scrolled .logo-mark {
  width: 88px;
  height: 88px;
}

/* Nawigacja trzyma się góry, żeby nie zawisła w połowie wysokości logo */
.main-nav,
.nav-toggle {
  margin-top: 16px;
}

@media (max-width: 720px) {
  .logo-mark {
    width: 132px;
    height: 132px;
  }

  .site-header.scrolled .logo-mark {
    width: 72px;
    height: 72px;
  }

  main {
    padding-top: 133px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-text);
}

.main-nav ul {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav a {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  color: var(--color-muted);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--color-bg);
  color: var(--color-primary-dark);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 12px 24px 20px;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* Hero - pełnoekranowy baner ze zdjęciem w tle (wzorowany na "baner idea") */

.hero {
  position: relative;
  height: 92vh;
  min-height: 560px;
  max-height: 900px;
  overflow: hidden;
  text-align: center;
}

.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
  will-change: transform, opacity;
  /* kierunek powolnego przesuwania kadru - co drugi slajd w drugą stronę */
  --drift-x: -2%;
}

.hero-slide:nth-of-type(even) {
  --drift-x: 2%;
}

.hero-slide.active {
  opacity: 1;
}

/* Na czas ustawienia pierwszego, wylosowanego slajdu - bez przenikania z pustego tła */
.hero-no-fade .hero-slide {
  transition: none;
}

/* Souk z przyprawami: na wąskim ekranie środek kadru wycina mężczyznę w dżelabie z prawej
   strony zdjęcia - kadr idzie do prawej krawędzi. Pionowo kadr trzyma się góry, bo głowa
   mężczyzny jest tuż przy górnej krawędzi pliku (images/slider/bv5a5730.webp jest przycięty
   od góry oryginału) - przy kadrze ze środka i przybliżaniu traciłby twarz. */
.hero-slide-souk {
  object-position: 100% 0%;
}

/* Powolny najazd kamery (efekt Ken Burns): od pojawienia się slajdu zdjęcie minimalnie
   się przybliża i przesuwa w bok, jakby widz rozglądał się po miejscu. Klasę "drifting"
   dokłada setupHeroBanner() w chwili włączenia slajdu i zostawia ją do końca przenikania,
   więc ruch nie zatrzymuje się, gdy zdjęcie znika. Animacja (8 s) trwa dłużej niż slajd
   z przenikaniem (5 s + 1,8 s), a zapas przybliżenia (4% z każdej strony) jest większy
   niż przesunięcie, więc spod zdjęcia nigdy nie wychodzi tło. */
.hero-slide.drifting {
  animation: hero-drift 8s linear forwards;
}

@keyframes hero-drift {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(var(--drift-x), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.drifting {
    animation: none;
  }
}

.hero-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 16, 12, 0.55) 0%,
    rgba(20, 16, 12, 0.15) 35%,
    rgba(20, 16, 12, 0.25) 60%,
    rgba(20, 16, 12, 0.65) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  color: #fff;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero p {
  font-size: 1.2rem;
  max-width: 560px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.hero-cta {
  margin-top: 6px;
  display: inline-block;
  padding: 14px 34px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.hero-cta:hover {
  background: #fff;
  color: var(--color-text);
}

@media (max-width: 720px) {
  .hero {
    height: 80vh;
    min-height: 460px;
  }
}

/* Sekcje ogólne */

section {
  padding: 40px 0;
}

#wycieczki {
  /* wysokość zmniejszonego nagłówka po przewinięciu (logo 88px) + zapas */
  scroll-margin-top: 108px;
}

.section-title {
  font-size: 1.7rem;
  margin: 0 0 8px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin: 0 0 32px;
}

/* Karty wycieczek */

.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.trip-card {
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  scroll-margin-top: 118px;
}

.trip-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.trip-photo-placeholder {
  aspect-ratio: 16 / 10;
  background: repeating-linear-gradient(
    135deg,
    #e9ddcd,
    #e9ddcd 18px,
    #ddcdb6 18px,
    #ddcdb6 36px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a6b57;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  font-size: 0.95rem;
}

.trip-body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.trip-body h3 {
  margin: 0;
  font-size: 1.25rem;
}

.trip-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-accent);
}

.trip-body p {
  margin: 0;
  color: var(--color-muted);
  flex: 1;
}

.trip-cta {
  align-self: flex-start;
  margin-top: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
}

.trip-cta:hover {
  background: var(--color-primary-dark);
}

/* Mapa świata */

.map-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  background: #3d6b73;
}

.map-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

.map-pin {
  cursor: pointer;
}

.map-pin circle.pin-dot {
  fill: var(--color-primary);
  stroke: #fff;
  stroke-width: 3;
  transition: r 0.15s ease, fill 0.15s ease;
}

.map-pin:hover circle.pin-dot,
.map-pin:focus circle.pin-dot {
  fill: var(--color-primary-dark);
  r: 12;
}

.map-pin:focus {
  outline: none;
}

.map-tooltip {
  position: absolute;
  transform: translate(-50%, calc(-100% - 14px));
  background: var(--color-text);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  max-width: 220px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 5;
  text-align: center;
}

.map-tooltip.visible {
  pointer-events: auto;
  opacity: 1;
}

.map-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-text);
}

.map-tooltip strong {
  display: block;
  margin-bottom: 4px;
}

.map-tooltip a {
  color: #ffd8b8;
  text-decoration: underline;
  font-weight: 600;
}

.map-hint {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 14px;
}

/* Podstrony - kontakt / ekipa */

.page-hero {
  padding: 48px 0 8px;
  text-align: center;
}

.page-hero h1 {
  margin: 0 0 8px;
}

.page-hero p {
  color: var(--color-muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: start;
}

.contact-card,
.contact-form {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow);
}

.contact-card h3 {
  margin-top: 0;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-list li {
  display: flex;
  gap: 10px;
  color: var(--color-muted);
}

.contact-list strong {
  color: var(--color-text);
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}

.contact-form label:first-child {
  margin-top: 0;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: 1rem;
  background: var(--color-bg);
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  margin-top: 18px;
  padding: 12px 22px;
  border: none;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--color-primary-dark);
}

/* Wiersz danych kontaktowych bez wpisu w site-data.js jest chowany przez JS. */
.contact-list li[hidden] {
  display: none;
}

.contact-list a {
  color: var(--color-primary);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  text-decoration: underline;
}

.contact-note {
  margin: 18px 0 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* Pułapka na boty - niewidoczna dla ludzi, ale wciąż obecna dla automatów.
   Bez `display: none`, bo najprostsze boty pomijają ukryte tak pola. */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Komunikat pod formularzem - jeden element, trzy stany. */
.form-status {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.form-status-ok {
  border-color: #2f8f5b;
  background: rgba(47, 143, 91, 0.1);
  color: #216b43;
}

.form-status-error {
  border-color: #c0483c;
  background: rgba(192, 72, 60, 0.1);
  color: #96372e;
}

/* Ekipa */

/* Karty ekipy idą jedna pod drugą przez całą szerokość - dzięki temu zdjęcie
   mieści się w naturalnym poziomym kadrze, zamiast być przycinane do kwadratu. */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.team-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: left;
}

/* Od tabletu w górę zdjęcie staje obok tekstu, a nie nad nim. Kolejne karty
   odbijają układ lustrzanie (zdjęcie raz z lewej, raz z prawej), żeby strona
   nie czytała się jak lista. */
@media (min-width: 721px) {
  .team-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .team-card:nth-child(even) .team-photo {
    grid-column: 2;
    grid-row: 1;
  }

  .team-card:nth-child(even) .team-body {
    grid-column: 1;
    grid-row: 1;
  }
}

.team-photo-placeholder {
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(
    135deg,
    #dfeae5,
    #dfeae5 16px,
    #c9ddd5 16px,
    #c9ddd5 32px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #46614f;
  font-weight: 700;
  font-size: 2.2rem;
}

.team-body {
  padding: 28px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.team-body h3 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.team-role {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.team-body p {
  color: var(--color-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Podstrona wycieczki */

.detail-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.detail-hero-placeholder {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    135deg,
    #e9ddcd,
    #e9ddcd 18px,
    #ddcdb6 18px,
    #ddcdb6 36px
  );
}

.detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0) 35%, rgba(20, 16, 12, 0.75) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 40px 0 32px;
  color: #fff;
}

.detail-back {
  display: inline-block;
  margin-bottom: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.9;
}

.detail-back:hover {
  text-decoration: underline;
}

.detail-hero-content .trip-tag {
  color: #ffd8b8;
}

.detail-hero-content h1 {
  margin: 4px 0 0;
  font-size: clamp(2rem, 5vw, 3rem);
  text-shadow: 0 4px 6px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.detail-intro {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.detail-intro p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.detail-gallery-tile {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    135deg,
    #e9ddcd,
    #e9ddcd 18px,
    #ddcdb6 18px,
    #ddcdb6 36px
  );
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7a6b57;
  font-weight: 700;
  text-align: center;
  padding: 16px;
  font-size: 0.95rem;
}

/* Galeria na podstronie wycieczki - jeden duży kafelek-okładka (pierwsze zdjęcie z
   js/gallery-data.js), który otwiera przeglądarkę wszystkich zdjęć (.lightbox). */

.gallery-cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: none;
  box-shadow: var(--shadow);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.gallery-cover-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-cover .detail-gallery-tile {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 0;
  padding-bottom: 96px;
  box-sizing: border-box;
}

.gallery-cover:hover .gallery-cover-photo,
.gallery-cover:focus-visible .gallery-cover-photo {
  transform: scale(1.03);
}

.gallery-cover:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.gallery-cover-info {
  position: absolute;
  inset: auto 0 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 4px 16px;
  padding: 60px 28px 24px;
  background: linear-gradient(180deg, rgba(20, 16, 12, 0) 0%, rgba(20, 16, 12, 0.72) 100%);
  color: #fff;
}

.gallery-cover-title {
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.gallery-cover-count {
  flex: 1;
  padding-bottom: 4px;
  color: #ffd8b8;
  font-weight: 600;
}

.gallery-cover-open {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--color-primary);
  font-weight: 700;
  transition: background 0.2s ease;
}

.gallery-cover:hover .gallery-cover-open {
  background: var(--color-primary-dark);
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20, 16, 12, 0.95);
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(20, 16, 12, 0.6);
}

.lightbox-stage {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 88px;
}

.lightbox-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-stage .detail-gallery-tile {
  box-sizing: border-box;
  width: min(100%, 960px, calc((100dvh - 128px) * 3 / 2));
  aspect-ratio: 3 / 2;
  font-size: 1.1rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0 0 4px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font: inherit;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--color-primary);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 3px solid #ffd8b8;
  outline-offset: 2px;
}

.lightbox-close {
  top: 16px;
  right: 16px;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav[hidden] {
  display: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  left: 50%;
  bottom: 18px;
  margin: 0;
  transform: translateX(-50%);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
}

@media (max-width: 720px) {
  .gallery-cover {
    aspect-ratio: 4 / 3;
  }

  .gallery-cover-info {
    padding: 48px 18px 18px;
  }

  .gallery-cover .detail-gallery-tile {
    padding-bottom: 120px;
  }

  .lightbox-stage {
    padding: 72px 12px 88px;
  }

  .lightbox-stage .detail-gallery-tile {
    width: min(100%, calc((100dvh - 160px) * 3 / 2));
  }

  /* Na telefonie strzałki schodzą na dół, żeby nie zasłaniać zdjęcia */
  .lightbox-nav {
    top: auto;
    bottom: 16px;
    transform: none;
  }
}

.detail-cta {
  text-align: center;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 24px;
  box-shadow: var(--shadow);
}

.detail-cta h2 {
  margin: 0 0 8px;
}

.detail-cta p {
  color: var(--color-muted);
  margin: 0 0 20px;
}

/* Stopka */

.site-footer {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  /* wyższa stopka, żeby powiększony znak wodny nie był ścięty do wąskiego paska */
  padding: 52px 0;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Znak wodny - logo wtopione w tło stopki */
.site-footer::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 6%;
  width: 460px;
  height: 460px;
  transform: translateY(-50%);
  background: url("../images/logo/logo.png") no-repeat center / contain;
  opacity: 0.07;
  pointer-events: none;
}

@media (max-width: 720px) {
  .site-footer::before {
    width: 340px;
    height: 340px;
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0.05;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-muted);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

/* Pływający WhatsApp - przyklejony do prawego dolnego rogu okna */

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* Napis "Napisz do nas" - ukryty, wjeżdża po najechaniu na ikonkę */
.whatsapp-float-label {
  background: var(--color-text);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(43, 36, 32, 0.28);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.whatsapp-float:hover .whatsapp-float-label,
.whatsapp-float:focus-visible .whatsapp-float-label {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease;
  /* wibracja: krótkie drgnięcie na końcu każdego 2-sekundowego cyklu */
  animation: whatsapp-vibrate 2s ease-in-out infinite;
}

.whatsapp-float:hover .whatsapp-float-icon,
.whatsapp-float:focus-visible .whatsapp-float-icon {
  background: #1ebd5a;
  animation-play-state: paused;
}

.whatsapp-float:focus-visible .whatsapp-float-icon {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

@keyframes whatsapp-vibrate {
  0%,
  74%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  77% {
    transform: rotate(-14deg) scale(1.06);
  }
  81% {
    transform: rotate(12deg) scale(1.06);
  }
  85% {
    transform: rotate(-9deg) scale(1.04);
  }
  89% {
    transform: rotate(7deg) scale(1.03);
  }
  93% {
    transform: rotate(-4deg) scale(1.01);
  }
  97% {
    transform: rotate(2deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-icon {
    animation: none;
  }
}

@media (max-width: 720px) {
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-float-icon {
    width: 54px;
    height: 54px;
  }
}

/* Kierunki na podstronie "Nowe horyzonty" - lista rozwinięć + galeria.
   Galeria to ta sama okładka z przeglądarką zdjęć (.gallery-cover / .lightbox), co na
   podstronach wycieczek, żeby nowe kierunki wyglądały tak samo jak Sycylia i Wietnam. */

.destination-list {
  display: grid;
  gap: 40px;
}

.destination {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.destination-media {
  aspect-ratio: 21 / 9;
  overflow: hidden;
}

/* Placeholder w miejscu zdjęcia głównego ma wypełnić kadr, a nie narzucać własne proporcje */
.destination-media .detail-gallery-tile {
  aspect-ratio: auto;
  height: 100%;
  border-radius: 0;
}

.destination-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-body {
  padding: 28px 26px 32px;
}

.destination-body h2 {
  margin: 6px 0 0;
  font-size: 1.6rem;
}

.destination-tagline {
  margin: 4px 0 16px;
  color: var(--color-primary);
  font-weight: 600;
}

.destination-body p {
  color: var(--color-muted);
}

.destination-gallery {
  margin-top: 24px;
}

.destination-empty {
  margin: 0;
  padding: 32px 24px;
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
  text-align: center;
  color: var(--color-muted);
}

@media (max-width: 720px) {
  .destination-media {
    aspect-ratio: 4 / 3;
  }

  .destination-body {
    padding: 22px 18px 26px;
  }
}

/* Zdjęcie w tle nagłówka podstrony - alternatywa dla .detail-hero-placeholder */
.detail-hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Baner Wietnamu - łódź na kanale wśród palm o zachodzie. Baner ma 52vh wysokości, więc
   jego proporcje idą za proporcjami okna:
   - szerokie okno (powyżej 3:2): niski pas, w który nie mieszczą się naraz słońce i dziób
     łodzi. Kadr trzyma słońce w zbiegu kanału, łódkę i odbicia; dziób zostaje poniżej,
     zamiast wystawać przeciętą oponą spod tytułu;
   - węższe okno (3:2 i mniej): pas jest wyższy i mieści już cały dziób z niebieską oponą;
   - telefon: baner jest węższy niż zdjęcie, decyduje poziom - 60% trzyma słońce i dziób. */
.wietnam-hero-photo {
  object-position: 60% 30%;
}

@media (max-aspect-ratio: 3/2) {
  .wietnam-hero-photo {
    object-position: 60% 75%;
  }
}

/* Baner Sycylii - plaża pod burzowym niebem, promenada, góry i łuk fal, z czarnymi skałami
   wulkanicznymi na pierwszym planie. Kadr ustalony na podglądach dla kilku proporcji okna:
   - szerokie okno (powyżej 3:2): pas przez środek zdjęcia - pasmo chmur u góry, cała
     promenada z górami, plaża z plażowiczami i fale; skały zostają pod kadrem;
   - węższe okno (3:2 i mniej): kadr przesunięty wyżej, żeby palma z lewej nie traciła
     czubka, a spod dołu nie wystawał wąski pasek skał;
   - telefon: decyduje poziom - 55% łączy domy, łuk fal i skałę jako pierwszy plan. */
.sycylia-hero-photo {
  object-position: 55% 50%;
}

@media (max-aspect-ratio: 3/2) {
  .sycylia-hero-photo {
    object-position: 55% 40%;
  }
}

/* Zdjęcie w karcie ekipy trzyma poziomy kadr 3:2 - taki, w jakim zostało zrobione.
   `height: 100%` pozwala mu dociągnąć do wysokości karty, gdy opis okaże się
   dłuższy niż samo zdjęcie, zamiast zostawiać puste pasy tła nad i pod nim. */
.team-photo {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

/* Ikonka bez adresu w js/site-data.js jest chowana przez JS (atrybut `hidden`).
   Reguła jest potrzebna, bo `display: flex` powyżej wygrywa z domyślnym `[hidden]`. */
.social-icon[hidden],
.whatsapp-float[hidden] {
  display: none;
}

/* --- Konkrety wyprawy (podstrony wycieczek) -------------------------------
   Trzy bloki pod opisem: kafelki z podstawowymi danymi, lista terminów
   z liczbą wolnych miejsc i zestawienie "co w cenie / poza ceną".
   UWAGA: te same liczby są w bazie wiedzy bota (bot/baza-wiedzy.md).
   Zmiana ceny albo terminu tutaj wymaga poprawienia ich tam - inaczej bot
   powie klientowi co innego, niż widzi na stronie. */
.trip-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin: 0 0 40px;
}

.trip-fact {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}

.trip-fact-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 6px;
}

.trip-fact-value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text);
}

.trip-fact-note {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted);
  margin-top: 4px;
}

/* Terminy - wiersz na termin, po prawej liczba wolnych miejsc. */
.trip-terms {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.trip-term {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 16px 20px;
}

.trip-term-date {
  font-weight: 700;
}

.trip-term-seats {
  font-size: 0.85rem;
  color: var(--color-accent);
  background: rgba(47, 107, 87, 0.1);
  border-radius: 999px;
  padding: 4px 12px;
  white-space: nowrap;
}

/* Mało miejsc - ten sam kafelek, cieplejszy kolor, bez krzyczenia. */
.trip-term-seats.is-few {
  color: var(--color-primary-dark);
  background: rgba(194, 91, 45, 0.12);
}

/* Co w cenie / poza ceną - dwie kolumny, na telefonie jedna pod drugą. */
.trip-includes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 8px;
}

.trip-includes h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.trip-includes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--color-muted);
}

.trip-includes li {
  margin-bottom: 6px;
}

.trip-note {
  color: var(--color-muted);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* --- Polityka prywatności -------------------------------------------------
   Zwykły tekst prawny: wąska kolumna, żeby dało się to czytać. */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
}

.legal-content h2 {
  margin: 36px 0 12px;
  font-size: 1.25rem;
}

.legal-content p,
.legal-content li {
  color: var(--color-muted);
  line-height: 1.7;
}

.legal-content ul {
  padding-left: 20px;
}

.legal-content li {
  margin-bottom: 8px;
}

/* Link do polityki prywatności w stopce - mniejszy niż linia z prawami autorskimi. */
.footer-legal {
  margin-top: 4px;
  font-size: 0.88rem;
}

/* --- Czat z asystentem ----------------------------------------------------
   Dymek siedzi nad przyciskiem WhatsAppa (ten ma 62 px + 24 px odstępu od dołu),
   więc oba są widoczne i nie nachodzą na siebie. Całość rysuje js/chat-widget.js;
   bez adresu w CHAT_ENDPOINT (js/site-data.js) widget w ogóle się nie pojawia. */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 102px;
  z-index: 200;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  transition: background 0.2s ease, transform 0.2s ease;
}

.chat-fab:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.chat-fab:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 102px;
  z-index: 210;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: min(560px, calc(100vh - 150px));
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(43, 36, 32, 0.24);
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--color-primary);
  color: #fff;
}

.chat-header strong {
  font-size: 1rem;
}

.chat-header span {
  display: block;
  font-size: 0.78rem;
  opacity: 0.85;
}

.chat-close {
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chat-msg.bot {
  align-self: flex-start;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.chat-msg.ja {
  align-self: flex-end;
  background: var(--color-primary);
  color: #fff;
}

.chat-msg.blad {
  align-self: stretch;
  max-width: 100%;
  background: rgba(194, 91, 45, 0.1);
  border: 1px solid var(--color-primary);
  color: var(--color-primary-dark);
}

/* Trzy kropki - model pisze. */
.chat-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 3px;
  border-radius: 50%;
  background: var(--color-muted);
  animation: chat-dot 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes chat-dot {
  0%, 60%, 100% { opacity: 0.25; }
  30% { opacity: 1; }
}

/* Podpowiedzi startowe - ludzie nie wiedzą, co napisać do pustego pola. */
.chat-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}

.chat-hint {
  border: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}

.chat-hint:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
}

.chat-form textarea {
  flex: 1;
  resize: none;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.93rem;
  min-height: 42px;
  max-height: 110px;
  background: var(--color-bg);
  color: var(--color-text);
}

.chat-form button {
  border: none;
  border-radius: 10px;
  padding: 0 16px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.chat-form button:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Formularz kontaktowy w czacie - pokazuje się, gdy bot o niego poprosi. */
.chat-lead {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  padding: 14px 16px;
  display: grid;
  gap: 8px;
}

.chat-lead input[type="text"],
.chat-lead input[type="email"],
.chat-lead input[type="tel"] {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 9px 12px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--color-bg);
  color: var(--color-text);
}

.chat-lead label.zgoda {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.78rem;
  color: var(--color-muted);
  line-height: 1.45;
}

.chat-lead button {
  border: none;
  border-radius: 10px;
  padding: 10px;
  background: var(--color-accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* Pułapka na boty - człowiek tego nie widzi. */
.chat-lead .chat-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.chat-note {
  padding: 8px 16px 12px;
  font-size: 0.72rem;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  text-align: center;
}

.chat-note a {
  color: var(--color-muted);
}

@media (max-width: 720px) {
  .chat-fab {
    right: 16px;
    bottom: 86px;
    width: 54px;
    height: 54px;
  }

  .chat-panel {
    right: 8px;
    left: 8px;
    bottom: 16px;
    width: auto;
    max-width: none;
    height: min(78vh, calc(100vh - 90px));
  }
}
