/*
 * Escapelandia — nagłówek i stopka z escapelandia.pl na podstronach
 * (pokój, vouchery, koszyk, rezerwacja…). Treść podstron zostaje w app.css
 * ze skórką „escapelandia" (granat i złoto), więc tu są WYŁĄCZNIE reguły
 * nagłówka, stopki i znaku — wyjęte 1:1 z esc.css. Zmienne motywu są
 * zawężone do nagłówka i stopki, żeby nie nadpisać zmiennych app.css.
 */

body.esc-uklad:not(.esc-strona) { padding-top: 100px; }
@media (max-width: 760px) {
  body.esc-uklad:not(.esc-strona) { padding-top: 88px; }
}

.site-header,
.esc-footer {
  --navy: #061523;
  --navy-2: #0b2134;
  --navy-3: #102943;
  --ink: #f9fbff;
  --muted: rgba(249, 251, 255, 0.7);
  --paper: #07182b;
  --paper-2: rgba(255, 250, 241, 0.92);
  --line: rgba(255, 255, 255, 0.16);
  --white: #ffffff;
  --orange: #d8844e;
  --orange-2: #f5b35f;
  --gold: #f4c977;
  --emerald: #20d19c;
  --aqua: #5ecae0;
  --shadow: 0 24px 70px rgba(6, 21, 35, 0.18);
  --cream: #fff8eb;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --radius: 12px;
  --radius-sm: 8px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 86px;
  padding: 14px clamp(18px, 4vw, 58px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(6, 21, 35, 0.84), rgba(6, 21, 35, 0.66));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.26));
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong {
  color: var(--white);
  font-size: clamp(1.18rem, 2vw, 1.56rem);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-text strong span {
  color: var(--orange);
}

.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;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 1.45vw, 24px);
  min-width: 0;
}

.nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--white);
}

.nav-toggle-input {
  display: none;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 34px;
  height: 34px;
  cursor: pointer;
}

.nav-burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--white);
  border-radius: 3px;
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}

#nav-toggle:checked ~ .nav-burger span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

#nav-toggle:checked ~ .nav-burger span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked ~ .nav-burger span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--radius-sm);
  font-weight: 850;
  transition:
    transform 0.2s ease,
    box-shadow 0.25s ease,
    filter 0.2s ease;
}

.book-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.book-button:active {
  transform: translateY(0);
}

.book-button {
  gap: 9px;
  padding: 0 20px;
  color: #1b1208;
  background: linear-gradient(135deg, #f6c27a, #d8844e);
  box-shadow: 0 16px 38px rgba(216, 132, 78, 0.28);
}

.book-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.esc-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;
}

.esc-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.footer-info {
  display: grid;
  gap: 8px;
  text-align: right;
}

.footer-info a {
  color: var(--orange-2);
  font-weight: 700;
}

.footer-info a:hover {
  color: var(--white);
}

.footer-operators {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-terms {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-terms a {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.footer-terms a:hover {
  color: var(--orange-2);
}

@media (max-width: 760px) {
  .footer-info { text-align: left;
  }
}

.compact .brand-logo {
  width: 52px;
  height: 52px;
}

.compact .brand-text strong {
  font-size: 1.05rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: auto auto auto;
    align-items: center;
  }
  .brand { order: 1;
  }
  .book-button { order: 2;
  }
  .nav-burger { display: flex; order: 3;
  }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(6, 21, 35, 0.98), rgba(6, 21, 35, 0.96));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: max-height 0.35s ease;
  }
  #nav-toggle:checked ~ .nav {
    max-height: 80vh;
    overflow-y: auto;
  }
  .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) {
  .site-header { min-height: 74px; padding: 10px 16px;
  }
  .brand-logo { width: 50px; height: 50px;
  }
  .brand-text strong { font-size: 1rem;
  }
  .brand-text small { display: none;
  }
  .book-button { width: 46px; padding: 0; font-size: 0;
  }
  .book-button svg { margin: 0;
  }
  .esc-footer {
    display: grid;
  }
}

/* ---- Nasze dodatki (nie ma ich na escapelandia.pl) ---------------------- */

/* Koszyk w menu — tylko gdy coś w nim jest. */
.nav a.nav-koszyk { color: var(--orange-2); }
.nav a.nav-koszyk span {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px;
  padding: 0 5px; border-radius: 999px; font-size: 0.7rem; color: #1b1208; background: var(--orange-2);
}

/* Dokumenty systemu rezerwacji i język — linia pod regulaminami. */
.footer-legal {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
}
.footer-info .footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}
.footer-info .footer-legal a:hover { color: var(--orange-2); }

/* Pasek siedmiu dni w kalendarzu pokoju (pokoj.php) — app.css go nie
   rysuje, skórka FunRoom ma go w korytarz.css. Tu w kolorach Escapelandii. */
body.esc-uklad #rezerwacja .dni7 { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 6px; margin: 0 0 8px; }
body.esc-uklad #rezerwacja .dni7_d { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 2px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05); color: #fff; text-decoration: none; font-size: 0.82rem; line-height: 1.2; }
body.esc-uklad #rezerwacja .dni7_d .dni7_t { color: rgba(255, 255, 255, 0.6); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; }
body.esc-uklad #rezerwacja .dni7_d strong { font-size: 1rem; }
body.esc-uklad #rezerwacja .dni7_d i { font-style: normal; font-weight: 700; color: #7dedc9; font-size: 0.72rem; }
body.esc-uklad #rezerwacja a.dni7_d:hover { border-color: #f4c977; }
body.esc-uklad #rezerwacja .dni7_d.on { background: linear-gradient(135deg, #f7c77e, #d8844e); border-color: #f4c977; color: #1b1208; }
body.esc-uklad #rezerwacja .dni7_d.on .dni7_t, body.esc-uklad #rezerwacja .dni7_d.on i { color: #1b1208; }
body.esc-uklad #rezerwacja .dni7_d.off { opacity: 0.4; }
@media (max-width: 520px) {
  body.esc-uklad #rezerwacja .dni7 { gap: 4px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  body.esc-uklad #rezerwacja .dni7_d { padding: 6px 0; font-size: 0.75rem; }
  body.esc-uklad #rezerwacja .dni7_d strong { font-size: 0.9rem; }
}
body.esc-uklad #rezerwacja .mcal-wiecej { margin: 0 0 10px; }
body.esc-uklad #rezerwacja .mcal-wiecej > summary { cursor: pointer; display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; list-style: none; margin-bottom: 8px; }
body.esc-uklad #rezerwacja .mcal-wiecej > summary::-webkit-details-marker { display: none; }
body.esc-uklad #rezerwacja .mcal-wiecej[open] > summary { border-color: #f4c977; color: #f4c977; }
