/*
 * Nagłówek i stopka w układzie escapelandia.pl — wspólne dla wszystkich stron
 * marki z włączonym układem „jak escapelandia.pl" (panel: Wygląd strony).
 *
 * Reguły przeniesione z motywu escapelandia-theme 1.9.0, z prefiksem el-,
 * żeby na podstronach nie zderzały się ze zwykłym arkuszem app.css.
 */

.el-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px;
  min-height: 86px; padding: 14px clamp(18px, 4vw, 58px); box-sizing: border-box;
  color: #fff;
  background: linear-gradient(180deg, rgba(var(--bg2-rgb, 6, 21, 35), 0.84), rgba(var(--bg2-rgb, 6, 21, 35), 0.66));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
.el-header *, .el-footer * { box-sizing: border-box; }
.el-header a, .el-footer a { color: inherit; text-decoration: none; }

.el-brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.el-brand-logo { display: block; width: 58px; height: 58px; object-fit: contain; filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.26)); }
.el-brand--napis .el-brand-logo { width: auto; max-width: 210px; height: 50px; }
.el-brand-text { display: grid; line-height: 1; }
.el-brand-text strong { color: #fff; font-size: clamp(1.18rem, 2vw, 1.56rem); font-weight: 900; letter-spacing: 0; text-transform: uppercase; }
.el-brand-text strong span { color: var(--accent, #d8844e); }
.el-brand-text small { margin-top: 5px; color: rgba(255, 255, 255, 0.75); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.el-nav { display: flex; justify-content: center; gap: clamp(10px, 1.45vw, 24px); min-width: 0; }
.el-nav a { color: rgba(255, 255, 255, 0.82); font-size: 0.82rem; font-weight: 750; white-space: nowrap; letter-spacing: 0.02em; }
.el-nav a:hover { color: #fff; text-decoration: none; }
.el-nav-toggle { display: none; }

.el-akcje { display: flex; align-items: center; gap: 10px; }
.el-book {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 8px; font-weight: 850;
  color: #1b1208; background: linear-gradient(135deg, #f6c27a, var(--accent, #d8844e));
  box-shadow: 0 16px 38px rgba(216, 132, 78, 0.28);
  transition: transform 0.2s ease, filter 0.2s ease;
}
.el-book:hover { transform: translateY(-2px); filter: brightness(1.06); text-decoration: none; }
.el-book svg, .el-koszyk svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.el-koszyk {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 8px; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
}
.el-koszyk:hover { border-color: var(--accent, #d8844e); text-decoration: none; }
.el-koszyk span {
  position: absolute; top: -7px; right: -7px; display: grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--accent, #d8844e); color: #1b1208; font-size: 11px; font-weight: 900;
}

.el-burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 34px; height: 34px; cursor: pointer; background: none; border: 0; padding: 0; color: inherit; }
.el-burger:focus-visible { outline: 2px solid var(--gold, #e8c068); outline-offset: 4px; border-radius: 4px; }
.el-burger span { display: block; height: 3px; width: 100%; background: #fff; border-radius: 3px; transition: transform 0.25s ease, opacity 0.2s ease; }
#el-nav-toggle:checked ~ .el-burger span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
#el-nav-toggle:checked ~ .el-burger span:nth-child(2) { opacity: 0; }
#el-nav-toggle:checked ~ .el-burger span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Podstrony: treść zaczyna się pod nieruchomym nagłówkiem. */
body.el-uklad:not(.el-strona) { padding-top: 86px; }
/* Kalendarz pokoju nie może chować się pod nagłówkiem — ani przy skoku
   do #rezerwacja, ani jako przyklejona kolumna przy przewijaniu. */
body.el-uklad #rezerwacja { scroll-margin-top: 104px; }
body.el-uklad .sticky { top: 104px; }

.el-footer {
  display: flex; justify-content: space-between; gap: 24px;
  padding: 34px clamp(20px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.72);
  background: radial-gradient(circle at 18% 20%, rgba(216, 132, 78, 0.12), transparent 22%), #04101d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.6;
}
body.el-uklad:not(.el-strona) .el-footer { margin-top: 56px; }
.el-footer p { max-width: 560px; margin: 0; line-height: 1.6; }
.el-brand--compact .el-brand-logo { width: 52px; height: 52px; }
.el-brand--compact.el-brand--napis .el-brand-logo { width: auto; height: 40px; }
.el-brand--compact .el-brand-text strong { font-size: 1.05rem; }
.el-footer-info { display: grid; gap: 8px; text-align: right; }
.el-footer-info a { color: var(--accent-2, #f5b35f); font-weight: 700; }
.el-footer-info a:hover { color: #fff; }
.el-footer-operators, .el-footer-terms { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
.el-footer-terms a { color: rgba(255, 255, 255, 0.72); font-weight: 700; }
.el-footer-terms a:hover { color: var(--accent-2, #f5b35f); }

@media (max-width: 1120px) {
  .el-header { grid-template-columns: 1fr auto auto; }
  .el-brand { order: 1; }
  .el-akcje { order: 2; }
  .el-burger { display: flex; order: 3; }
  .el-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    background: linear-gradient(180deg, rgba(var(--bg2-rgb, 6, 21, 35), 0.98), rgba(var(--bg2-rgb, 6, 21, 35), 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: max-height 0.35s ease;
  }
  #el-nav-toggle:checked ~ .el-nav { max-height: 80vh; overflow-y: auto; }
  .el-nav a { padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: normal; font-size: 0.95rem; }
}

@media (max-width: 760px) {
  .el-header { min-height: 74px; padding: 10px 16px; gap: 12px; }
  .el-brand-logo { width: 50px; height: 50px; }
  .el-brand--napis .el-brand-logo { width: auto; height: 38px; max-width: 150px; }
  .el-brand-text strong { font-size: 1rem; }
  .el-brand-text small { display: none; }
  .el-book { width: 46px; padding: 0; font-size: 0; gap: 0; }
  body.el-uklad:not(.el-strona) { padding-top: 74px; }
  .el-footer { display: grid; }
  .el-footer-info { text-align: left; }
}

/* Przycisk w nagłówku: płaski kolor, bez poświaty i podskoku. */
.el-book { background: var(--accent, #d8844e); box-shadow: none; }
.el-book:hover { transform: none; filter: brightness(1.08); }
.el-header { background: rgba(var(--bg2-rgb, 6, 21, 35), 0.92); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Logowanie i menu konta w nagłówku. */
.el-konto { position: relative; }
.el-konto summary, .el-konto-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 0.85rem; font-weight: 750; cursor: pointer; list-style: none; white-space: nowrap;
}
.el-konto summary::-webkit-details-marker { display: none; }
.el-konto summary:hover, .el-konto-link:hover { border-color: var(--accent, #d8844e); text-decoration: none; }
.el-konto svg, .el-konto-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.el-konto-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 220px; padding: 6px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--bg-3, #0b2134);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.el-konto-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: rgba(255, 255, 255, 0.88); font-size: 0.9rem; font-weight: 600; }
.el-konto-menu a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; text-decoration: none; }
@media (max-width: 760px) {
  .el-konto summary, .el-konto-link { width: 46px; padding: 0; justify-content: center; }
  .el-konto summary span, .el-konto-link span { display: none; }
}
/* Menu ma teraz więcej pozycji (grupy, pakiety, firmy) i logowanie — na
   laptopie podpis „Poznań" przy znaku-napisie nachodził na menu. */
.el-brand--napis .el-brand-text { display: none; }
.el-header { gap: 16px; }
.el-nav { gap: clamp(8px, 1.1vw, 20px); }
@media (max-width: 1240px) {
  .el-header { grid-template-columns: 1fr auto auto; }
  .el-brand { order: 1; }
  .el-akcje { order: 2; }
  .el-burger { display: flex; order: 3; }
  .el-nav {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
    flex-direction: column; gap: 0; max-height: 0; overflow: hidden;
    background: var(--bg-2, #061523); border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: max-height 0.35s ease;
  }
  #el-nav-toggle:checked ~ .el-nav { max-height: 80vh; overflow-y: auto; }
  .el-nav a { padding: 16px 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); white-space: normal; font-size: 0.95rem; }
}
/* Przełącznik lokalizacji w nagłówku. */
.el-lok { position: relative; }
.el-lok summary {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; max-width: 230px; padding: 0 14px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06);
  color: #fff; font-size: 0.85rem; font-weight: 750; cursor: pointer; list-style: none; white-space: nowrap;
}
.el-lok summary span { overflow: hidden; text-overflow: ellipsis; }
.el-lok summary::-webkit-details-marker { display: none; }
.el-lok summary:hover { border-color: var(--accent, #d8844e); }
.el-lok svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.el-lok-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; width: 300px; padding: 6px;
  border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--bg-3, #0b2134);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.el-lok-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: #fff; font-size: 0.92rem; font-weight: 700; }
.el-lok-menu a small { display: block; margin-top: 2px; color: rgba(255, 255, 255, 0.62); font-size: 0.8rem; font-weight: 400; line-height: 1.4; }
.el-lok-menu a:hover { background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.el-lok-menu a.on { background: rgba(216, 132, 78, 0.2); }
@media (max-width: 760px) {
  .el-lok summary { width: 46px; padding: 0; justify-content: center; }
  .el-lok summary span { display: none; }
  .el-lok-menu { position: fixed; left: 12px; right: 12px; top: 80px; width: auto; }
  .el-brand--napis .el-brand-logo { max-width: 112px; }
  .el-akcje { gap: 6px; }
}
/* Podpis lokalizacji przy rozrywce z drugiego adresu: w wąskim pasku nagłówka
   nachodził na znak marki, więc pokazujemy go dopiero w menu rozwijanym. */
.el-nav a small { display: none; }
@media (max-width: 1240px) {
  .el-nav a small { display: inline; margin-left: 8px; color: var(--accent, #d8844e); font-weight: 700; }
}

/* Partner programu miejskiego (OK Poznań) w stopce. */
.el-partner { display: flex; align-items: center; justify-content: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.el-partner img { height: 46px; width: auto; display: block; background: #fff; padding: 6px 10px; border-radius: 8px; }
.el-partner span { color: rgba(255, 255, 255, 0.72); font-size: 0.9rem; max-width: 42ch; }
@media (max-width: 760px) { .el-partner { justify-content: flex-start; } }
/* Partner na środku stopki i wyraźnie większy. */
.el-footer { flex-wrap: wrap; }
.el-partner {
  flex: 1 0 100%; order: 3; display: flex; flex-direction: column; align-items: center; gap: 12px;
  margin: 8px 0 0; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); text-align: center;
}
.el-partner img { height: 64px; width: auto; padding: 10px 14px; border-radius: 10px; background: #fff; }
.el-partner a:hover img { filter: brightness(1.04); }
.el-partner span { max-width: 52ch; color: rgba(255, 255, 255, 0.78); font-size: 0.92rem; line-height: 1.5; }
@media (max-width: 760px) {
  .el-partner { justify-content: center; }
  .el-partner img { height: 54px; }
}
/* Stopka jak na makiecie: trzy kolumny, odręczny dopisek, ikony mediów, linia z prawami. */
.el-footer { display: block; padding: 44px clamp(18px, 4vw, 58px) 22px; }
.el-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; max-width: 1240px; margin: 0 auto; }
.el-footer h4 { margin: 0 0 12px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.el-footer-marka .el-brand { margin-bottom: 4px; }
.el-footer-dopisek { margin: 10px 0 8px; font-family: var(--font-odreczny, "Snell Roundhand", cursive); font-size: 1.4rem; line-height: 1.15; color: var(--gold, #f4c977); transform: rotate(-3deg); transform-origin: left; }
.el-footer-adresy { margin: 0; font-size: 0.86rem; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.el-footer-linki ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.el-footer-linki a, .el-footer-kontakt a { color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; }
.el-footer-linki a:hover, .el-footer-kontakt a:hover { color: var(--gold, #f4c977); }
.el-footer-kontakt p { margin: 0 0 8px; }
.el-footer-social { display: flex; gap: 8px; margin-top: 12px; }
.el-footer-social a { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; }
.el-footer-social a:hover { border-color: var(--gold, #f4c977); color: var(--gold, #f4c977); }
.el-footer-social svg { width: 20px; height: 20px; fill: currentColor; }
.el-footer-dol { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; max-width: 1240px; margin: 26px auto 0; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); }
.el-footer-dol p { margin: 0; }
.el-footer-dol a { color: rgba(255, 255, 255, 0.75); }
.el-footer .el-partner { max-width: 1240px; margin: 28px auto 0; }
@media (max-width: 860px) {
  .el-footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .el-footer-dol { flex-direction: column; }
}
/* Logo partnera: stałe wymiary (SVG z szerokością „auto" potrafi zwęzić się do zera). */
.el-partner img { width: 118px; height: 59px; padding: 8px 12px; object-fit: contain; }
.el-partner { flex-direction: column; text-align: center; gap: 10px; }
.el-partner-logo { display: inline-block; width: 118px; padding: 8px 12px; border-radius: 10px; background: #fff; line-height: 0; }
.el-partner-logo svg { width: 100%; height: auto; display: block; }

/* Przełącznik języka w nagłówku. */
.el-jezyk { display: inline-flex; align-items: center; gap: 2px; font-size: 0.78rem; font-weight: 700; }
.el-jezyk a { color: inherit; opacity: 0.7; text-decoration: none; padding: 6px 5px; }
.el-jezyk a + a::before { content: '|'; opacity: 0.4; margin: 0 6px 0 -1px; }
.el-jezyk a.on, .el-jezyk a:hover { opacity: 1; }

/* Plakietka „włączony filtr lokalizacji" — te same style co w app.css,
   bo strona główna nie ładuje tamtego arkusza. */
.lok-pasek { padding: 10px 0 0; }
.lok-pasek-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px;
  background: rgba(10, 11, 17, 0.75); border: 1px solid rgba(245, 192, 74, 0.4);
  font-size: 0.82rem; color: #cfc6b2; line-height: 1.3;
}
.lok-pasek-chip svg { width: 14px; height: 14px; flex: none; color: #f5c04a; }
.lok-pasek-chip strong { color: #f5c04a; font-weight: 700; }
.lok-pasek-chip a { margin-left: 4px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lok-pasek-chip a:hover { color: #f5c04a; }

/* Odznaka „Jesteśmy Partnerem OK Poznań" (PNG z własnym granatowym tłem) — bez białej ramki. */
.el-partner img[src*="ok-poznan-partner"] { width: 96px; height: 96px; padding: 0; background: transparent; border-radius: 14px; object-fit: contain; }

/* STOPKA 29.09.2026: 4 kolumny (marka, linki, kontakt, regulaminy) + pas partnerów z równymi kartami. */
.el-footer-grid { grid-template-columns: 1.3fr 1.1fr .9fr 1.1fr; }
.el-footer-dokumenty h4 { margin: 0 0 14px; }
.el-footer-dokumenty ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.el-footer-dokumenty a { color: rgba(255, 255, 255, 0.82); font-size: 0.9rem; }
.el-footer-dokumenty a:hover { color: var(--gold, #f4c977); }
.el-partnerzy { max-width: 1240px; margin: 30px auto 0; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; flex-wrap: wrap; align-items: stretch; justify-content: center; gap: 14px 18px; }
.el-partnerzy-tytul { width: 100%; text-align: center; font-size: 0.72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.el-partner-karta { display: flex; align-items: center; gap: 14px; width: 380px; max-width: 100%; min-height: 84px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.el-partner-karta:hover { border-color: var(--gold, #f4c977); background: rgba(255, 255, 255, 0.07); text-decoration: none; }
.el-partner-karta img { flex: none; width: 60px; height: 60px; border-radius: 12px; object-fit: contain; padding: 0; background: transparent; }
.el-partner-karta img.el-partner-lockme { width: 120px; height: 30px; border-radius: 4px; }
.el-partner-karta span { display: flex; flex-direction: column; gap: 3px; text-align: left; }
.el-partner-karta strong { font-size: 0.95rem; }
.el-partner-karta small { color: rgba(255, 255, 255, 0.68); font-size: 0.82rem; line-height: 1.45; }
@media (max-width: 1080px) { .el-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .el-footer-grid { grid-template-columns: 1fr; } }

/* Telefon z koszykiem (25.10.2026): ikona koszyka dosuwała akcje do logo — „EN” wchodziło na logo, „PL” znikało.
   Na wąskim ekranie z koszykiem chowamy przełącznik języka (język rezerwacji wybiera się w zamówieniu). */
@media (max-width: 430px) {
  .el-akcje:has(.el-koszyk) .el-jezyk { display: none; }
}
