/* Baner zgód - www.archipelag.ustka.pl (na bazie seohost-static-kit, kolory marki z arkusza strony) */
:root {
  --zg-ciemny: #000;        /* jak stopka */
  --zg-jasny: #f3f5f7;      /* --white-smoke */
  --zg-akcent: #796d44;     /* --olive przyciemniony do kontrastu WCAG AA (był #978855) */
  --zg-akcent2: #3d758a;    /* --steel-blue przyciemniony do kontrastu WCAG AA (był #488ba3), hover */
  --zg-szary: #5b6670;
}

.zg-btn {
  font: inherit;
  font-size: .95rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: .7rem 1.1rem;
  border: 1px solid var(--zg-akcent);
  background: var(--zg-akcent);
  color: #fff;
  cursor: pointer;
  border-radius: 0;
  line-height: 1.2;
  white-space: nowrap;
}
.zg-btn:hover { background: var(--zg-akcent2); border-color: var(--zg-akcent2); }
.zg-btn--obrys { background: transparent; color: inherit; }
.zg-btn--obrys:hover { color: #fff; }
.zg-btn:focus-visible, .zg-ciastko:focus-visible, .zg-okno__zamknij:focus-visible {
  outline: 2px solid var(--zg-akcent2);
  outline-offset: 2px;
}

/* Baner */
.zg-baner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1500;
  background: var(--zg-ciemny);
  color: var(--zg-jasny);
  border-top: 3px solid var(--zg-akcent);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, .25);
  padding: 1rem 1.25rem;
}
.zg-baner__wnetrze {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}
.zg-baner__tekst { flex: 1 1 30rem; }
.zg-baner__tytul { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 600; }
.zg-baner__opis { margin: 0; font-size: .92rem; line-height: 1.5; color: #d9dde1; }
.zg-baner__opis a, .zg-okno__polityka a { color: inherit; text-decoration: underline; }
.zg-baner__przyciski { display: flex; flex-wrap: wrap; gap: .6rem; flex-shrink: 0; }
@media (max-width: 640px) {
  .zg-baner { padding: .9rem 1rem; }
  .zg-baner__przyciski { width: 100%; }
  .zg-baner__przyciski .zg-btn { flex: 1 1 auto; }
}

/* Okno ustawień */
.zg-okno {
  position: fixed; inset: 0;
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.zg-okno__tlo { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.zg-okno__pudlo {
  position: relative;
  width: 100%; max-width: 34rem; max-height: 90vh; overflow-y: auto;
  background: #fff; color: #333;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.zg-okno__glowa {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid #e6e6e6;
}
.zg-okno__tytul { margin: 0; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.zg-okno__zamknij {
  background: none; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--zg-szary); padding: 0 .25rem;
}
.zg-okno__tresc { padding: .4rem 1.4rem .8rem; }
.zg-okno__polityka { margin: .6rem 0 0; font-size: .9rem; }
.zg-kat { padding: 1rem 0; border-bottom: 1px solid #ececec; }
.zg-kat__wiersz { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.zg-kat__nazwa { font-weight: 600; font-size: 1.05rem; }
.zg-kat__zawsze { font-size: .85rem; color: var(--zg-akcent); font-weight: 600; }
.zg-kat__opis { margin: .35rem 0 0; font-size: .9rem; line-height: 1.5; color: var(--zg-szary); }
.zg-okno__stopka {
  display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end;
  padding: 1rem 1.4rem;
  border-top: 1px solid #e6e6e6;
}
.zg-okno__stopka .zg-btn--obrys { color: #333; }
.zg-okno__stopka .zg-btn--obrys:hover { color: #fff; }
@media (max-width: 640px) { .zg-okno__stopka .zg-btn { flex: 1 1 auto; } }

/* Przełącznik */
.zg-przel { position: relative; display: inline-block; width: 46px; height: 26px; flex-shrink: 0; }
.zg-przel input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.zg-przel__suwak {
  position: absolute; inset: 0;
  background: #c3c8cc; border-radius: 999px;
  transition: background .2s;
}
.zg-przel__suwak::before {
  content: ""; position: absolute;
  width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.zg-przel input:checked + .zg-przel__suwak { background: var(--zg-akcent); }
.zg-przel input:checked + .zg-przel__suwak::before { transform: translateX(20px); }
.zg-przel input:focus-visible + .zg-przel__suwak { outline: 2px solid var(--zg-akcent2); outline-offset: 2px; }

/* Pływające ciastko */
.zg-ciastko {
  position: fixed; left: 16px; bottom: 16px;
  z-index: 1400;
  width: 44px; height: 44px;
  border-radius: 50%; border: 0; padding: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.zg-ciastko:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }

/* Mapa Google wczytywana po kliknięciu (rezerwuje miejsce jak iframe 600x450) */
.zg-mapa {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem;
  max-width: 600px; height: 450px; margin: 0 auto; padding: 1.5rem;
  background: var(--zg-jasny); color: #333; text-align: center;
  border: 1px solid #e2e2e2;
}
.zg-mapa__info { margin: 0; font-size: .9rem; line-height: 1.5; max-width: 26rem; color: var(--zg-szary); }

/* ---------- Formularz rezerwacji (wlasna obsluga, bez Webflow) ---------- */
.booking-form { margin-bottom: 15px; }
.formularz-info { margin: .9rem 0 0; font-size: .85rem; line-height: 1.5; color: #5b6670; text-align: left; }
.formularz-info a { color: inherit; text-decoration: underline; }
.formularz-pulapka { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.booking-form .w-form-fail { text-align: center; }

/* ---------- Ogólne poprawki (04.10.2026) ---------- */
/* Obrazy z atrybutami width/height (dodaje buduj.py): proporcje znane przed wczytaniem pliku, bez przeskoków układu.
   :where() ma zerową specyficzność - klasy Webflow ustawiające wysokość (np. object-fit) nadal wygrywają. */
:where(img[width][height]) { height: auto; }

/* ---------- Dostępność: kontrast WCAG 2.1 AA i nagłówki (04.10.2026) ---------- */
/* Kolory marki przyciemnione tak, by biały tekst na przyciskach i oliwkowy tekst na jasnym tle (#f3f5f7)
   miały kontrast min. 4,5:1 (wcześniej 3,5:1 i 3,2:1): oliwkowy #978855 -> #796d44, niebieski #488ba3 -> #3d758a. */
:root { --olive: #796d44; --steel-blue: #3d758a; }
/* Nagłówki opinii: biały tekst na jasnoniebieskim tle #afccd7 miał kontrast 1,7:1 - teraz granatowy (5,6:1). */
.review_item .text-color-white { color: #1d4b5c; }
/* Nagłówek widoczny tylko dla czytników ekranu i agentów (porządek nagłówków h1 -> h2 -> h3). */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- Formularz rezerwacji v2: termin z kalendarzem, domek, goście, dodatki (04.10.2026) ---------- */
.booking-form .w-input, .booking-form .w-select { height: 44px; font-size: 16px; } /* 16px: iOS nie powiększa strony przy wpisywaniu */
.booking-form textarea.w-input { height: auto; }
.fr-sekcja { margin: 0 0 1.75rem; padding: 0; border: 0; min-width: 0; }
.fr-legenda { display: block; width: 100%; margin: 0 0 .9rem; padding: 0 0 .45rem; font-size: 1.05rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid #d9dee2; }
.fr-uwaga { margin: .5rem 0 0; font-size: .875rem; line-height: 1.5; color: #4b5560; text-align: left; }
.fr-uwaga:empty, .fr-podsumowanie:empty { display: none; }
.fr-podsumowanie { margin: .9rem 0 0; font-weight: 600; text-align: left; }
.fr-karty { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 479px) { .fr-karty { grid-template-columns: 1fr; } }
.fr-karta { display: flex; gap: .75rem; align-items: flex-start; margin: 0; padding: 1rem; background: #fff;
  border: 1px solid #cfd6db; cursor: pointer; font-weight: 400; text-align: left; }
.fr-karta:hover { border-color: #796d44; }
.fr-karta input, .fr-wybor input { flex-shrink: 0; width: 1.15rem; height: 1.15rem; margin: .2rem 0 0; accent-color: #796d44; }
.fr-karta:has(input:checked) { border-color: #796d44; box-shadow: inset 0 0 0 1px #796d44; background: #f8f6f0; }
.fr-karta:has(input:focus-visible), .fr-wybor:has(input:focus-visible) { outline: 2px solid #3d758a; outline-offset: 2px; }
.fr-karta__tekst { display: flex; flex-direction: column; gap: .15rem; }
.fr-karta__tytul { font-weight: 600; }
.fr-karta__opis { font-size: .875rem; color: #4b5560; }
.fr-wybor { display: flex; gap: .6rem; align-items: flex-start; margin: .25rem 0 0; font-weight: 400; text-align: left; cursor: pointer; }
.fr-wiek { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 0 1rem; }
.fr-wiek:empty { display: none; }
/* Kalendarz (Cally) - elementy wewnatrz shadow DOM stylowane przez ::part */
.fr-kalendarz { margin-top: .5rem; }
.fr-kalendarz calendar-range { display: block; font-family: inherit; --color-accent: #796d44; --color-text-on-accent: #fff; }
.fr-kalendarz calendar-range::part(button), .fr-kalendarz calendar-range::part(heading),
.fr-kalendarz calendar-month::part(button), .fr-kalendarz calendar-month::part(heading), .fr-kalendarz calendar-month::part(th) { font-family: inherit; }
.fr-miesiace { display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.fr-miesiace calendar-month { flex: 1 1 15rem; }
.fr-kalendarz calendar-range::part(header) { display: flex; align-items: center; justify-content: space-between; margin-bottom: .25rem; }
.fr-kalendarz calendar-range::part(heading) { font-weight: 600; text-transform: capitalize; }
.fr-kalendarz calendar-range::part(button) { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
  padding: 0; border: 1px solid #cfd6db; background: #fff; color: #1a1a1a; cursor: pointer; }
.fr-kalendarz calendar-range::part(button):hover { border-color: #796d44; }
.fr-kalendarz calendar-range svg[slot] { pointer-events: none; } /* klik trafia w przycisk (ludzie, agenci, testy) */
.fr-kalendarz calendar-range::part(disabled) { opacity: .4; cursor: default; }
.fr-kalendarz calendar-month { width: 100%; }
.fr-kalendarz calendar-month::part(heading) { font-weight: 600; text-transform: capitalize; margin: .25rem 0 .5rem; }
.fr-kalendarz calendar-month::part(table) { width: 100%; }
.fr-kalendarz calendar-month::part(th) { font-size: .8rem; font-weight: 600; color: #4b5560; padding-bottom: .25rem; }
.fr-kalendarz calendar-month::part(button) { width: 100%; min-width: 2.5rem; height: 2.6rem; padding: 0; border: 0; border-radius: 0;
  background: #fff; color: #1a1a1a; font-size: .95rem; cursor: pointer; }
.fr-kalendarz calendar-month::part(button):hover { background: #ece8dc; }
.fr-kalendarz calendar-month::part(sezon-wysoki) { box-shadow: inset 0 -3px 0 #aecdbc; }
.fr-kalendarz calendar-month::part(today) { outline: 1px solid #3d758a; outline-offset: -1px; }
.fr-kalendarz calendar-month::part(selected) { background: #796d44; color: #fff; }
.fr-kalendarz calendar-month::part(range-inner) { background: #ece8dc; color: #1a1a1a; }
.fr-kalendarz calendar-month::part(disallowed) { background: #f3f5f7; color: #5f6870; text-decoration: line-through; cursor: not-allowed; }
.fr-kalendarz calendar-month::part(button):focus-visible { outline: 2px solid #3d758a; outline-offset: -2px; }
.fr-legenda-kal { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1rem; margin: .75rem 0 0; font-size: .8rem; color: #4b5560; text-align: left; }
.fr-znacznik { display: inline-block; width: 1.1rem; height: .9rem; margin-right: .35rem; vertical-align: middle; }
.fr-znacznik--wysoki { background: #fff; box-shadow: inset 0 -3px 0 #aecdbc, inset 0 0 0 1px #cfd6db; }
.fr-znacznik--zakres { background: #ece8dc; box-shadow: inset 0 0 0 1px #cfd6db; }
