/*
 * Escapelandia — arkusz strony głównej przeniesiony 1:1 z escapelandia.pl
 * (motyw escapelandia-theme 1.9.0, style.css). Zmiany względem oryginału:
 *  - zamek w tle z naszego serwera (assets/esc/zamek.webp),
 *  - klasa stopki .footer → .esc-footer (app.css ma własne .footer),
 *  - dopiski na końcu pliku („Nasze dodatki") dla elementów systemu
 *    rezerwacji: kalendarz w rozwiniętej karcie, koszyk, język, dokumenty.
 * Ładowany tylko na stronie głównej marki (views/home_escapelandia.php).
 */


:root {
  --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;
}

:focus-visible {
  outline: 2px solid var(--orange-2);
  outline-offset: 3px;
  border-radius: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(7, 24, 43, 0) 0%, rgba(7, 24, 43, 0.2) 42%, #07182b 100%),
    url("zamek.webp?v=2") top center / min(1900px, 160vw) auto no-repeat fixed,
    #07182b;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(245, 201, 119, 0.16) 0 2px, transparent 4px),
    radial-gradient(circle at 62% 18%, rgba(255, 255, 255, 0.18) 0 1px, transparent 4px),
    radial-gradient(circle at 86% 28%, rgba(216, 132, 78, 0.18) 0 2px, transparent 5px),
    radial-gradient(circle at 12% 16%, rgba(216, 132, 78, 0.2), transparent 20%),
    radial-gradient(circle at 84% 34%, rgba(32, 209, 156, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(7, 24, 43, 0.1), rgba(7, 24, 43, 0.78) 58%, #07182b 100%);
  background-size: auto, 420px 420px, 520px 520px, auto, auto, auto;
}

body::selection {
  color: var(--navy);
  background: var(--orange-2);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.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,
.primary-action,
.secondary-action,
.booking-strip a,
.card-body a,
.voucher a,
.voucher-toggle,
.booking-finder a {
  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,
.primary-action:hover,
.secondary-action:hover,
.booking-strip a:hover,
.card-body a:hover,
.voucher a:hover,
.voucher-toggle:hover,
.booking-finder a:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.book-button:active,
.primary-action:active,
.secondary-action:active,
.card-body a: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;
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 98vh;
  padding: 138px clamp(20px, 6vw, 88px) 86px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("zamek.webp?v=2");
  background-position: center top;
  background-size: cover;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(6, 21, 35, 0.97) 0%, rgba(6, 21, 35, 0.8) 38%, rgba(6, 21, 35, 0.18) 74%),
    linear-gradient(180deg, rgba(6, 21, 35, 0.48) 0%, rgba(6, 21, 35, 0.04) 44%, rgba(7, 24, 43, 0.98) 100%);
}

.hero::after {
  z-index: -1;
  background:
    radial-gradient(circle at 82% 13%, rgba(255, 249, 211, 0.22), transparent 9%),
    radial-gradient(circle at 79% 38%, rgba(245, 179, 95, 0.24), transparent 28%),
    radial-gradient(circle at 92% 66%, rgba(32, 209, 156, 0.18), transparent 18%),
    radial-gradient(circle at 34% 76%, rgba(245, 201, 119, 0.1), transparent 22%);
}

.hero-content {
  width: min(820px, 100%);
  padding: clamp(0px, 2vw, 18px) 0;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #b7ffe5;
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 6.8vw, 7.4rem);
  font-weight: 800;
  /* Fraunces potrzebuje luźniejszej interlinii — przy 0.94 dolne wydłużenia
     liter (y, g, ę) były obcinane i tytuł nachodził na tekst pod spodem. */
  line-height: 1.08;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 22px 60px rgba(0, 0, 0, 0.42);
}

/* Gradient "gold-dusted" headline, hero only — the single room page keeps a
   plain dark heading (see .card--page). */
.hero h1 {
  /* background-clip:text pokazuje tylko to, co mieści się w pudełku
     elementu — dodatkowy padding u dołu gwarantuje, że ogonki liter nie
     zostaną ucięte. */
  padding-bottom: 0.1em;
  margin-bottom: 10px;
  color: transparent;
  background: linear-gradient(180deg, #ffffff 42%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 20px 44px rgba(0, 0, 0, 0.45));
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
}

.hero-actions,
.quick-filters,
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action {
  padding: 0 24px;
  color: #1b1208;
  background: linear-gradient(135deg, #f7c77e, #d8844e);
  box-shadow: 0 18px 42px rgba(216, 132, 78, 0.26);
}

.secondary-action {
  padding: 0 22px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(6, 21, 35, 0.34);
  backdrop-filter: blur(12px);
}

.hero-metrics strong {
  color: var(--gold);
  font-size: 1.12rem;
}

/* Szybkie filtry w hero — celowo INNE niż plakietki wyżej i przyciski
   filtrów przy atrakcjach: dyskretne tekstowe odnośniki ze złotym
   podkreśleniem, poprzedzone etykietą "Przeglądaj:". */
.quick-filters {
  margin-top: 26px;
  align-items: center;
  gap: 6px 20px;
}

.quick-filters-label {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quick-filters button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 1px;
  border: none;
  border-bottom: 2px solid rgba(245, 201, 119, 0.35);
  border-radius: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.94rem;
  font-weight: 800;
  background: none;
  box-shadow: none;
  cursor: pointer;
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.quick-filters button::after {
  content: "→";
  color: var(--gold);
  font-size: 0.85em;
  transition: transform 0.2s ease;
}

.quick-filters button:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.quick-filters button:hover::after {
  transform: translateX(3px);
}

.filter-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.filter-bar button:hover,
.filter-bar button.active {
  transform: translateY(-2px);
  border-color: var(--orange);
  background: rgba(255, 122, 26, 0.13);
}

.section,
.booking-strip {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.booking-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: -34px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 30%, rgba(245, 179, 95, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(10, 34, 58, 0.92), rgba(7, 24, 43, 0.88));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.booking-strip div {
  display: grid;
  gap: 6px;
}

.booking-strip span {
  color: rgba(255, 255, 255, 0.7);
}

.booking-strip a {
  flex: 0 0 auto;
  padding: 0 20px;
  color: var(--navy);
  background: var(--orange);
}

.section {
  padding: 72px 0;
  position: relative;
}

.intro,
.attractions,
.split,
.experience-strip {
  padding-inline: clamp(20px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    radial-gradient(circle at 4% 0%, rgba(245, 201, 119, 0.1), transparent 20%),
    radial-gradient(circle at 100% 0%, rgba(32, 209, 156, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(8, 28, 50, 0.8), rgba(8, 28, 50, 0.62));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(14px);
}

.experience-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.experience-strip article {
  min-height: 220px;
  padding: 28px;
  background:
    radial-gradient(circle at 84% 18%, rgba(245, 201, 119, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(255, 248, 235, 0.1), rgba(255, 248, 235, 0.04)),
    rgba(6, 21, 35, 0.24);
  transition: background-color 0.25s ease;
}

.experience-strip article:hover {
  background-color: rgba(16, 41, 67, 0.5);
}

.experience-strip span,
.use-cases span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
}

.experience-strip span {
  color: var(--gold);
  font-weight: 950;
}

.experience-strip h3 {
  margin: 18px 0 12px;
  color: #fff4d8;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.experience-strip p {
  margin-bottom: 0;
  color: rgba(249, 251, 255, 0.72);
  line-height: 1.6;
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) 1.15fr;
  gap: clamp(24px, 5vw, 76px);
  align-items: start;
}

.intro h2,
.section-heading h2,
.split h2,
.voucher h2 {
  margin-bottom: 0;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
}

.intro p:last-child,
.split p,
.voucher p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.operator-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  color: rgba(249, 251, 255, 0.78);
  font-weight: 800;
}

.operator-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.operator-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.operator-a { background-color: var(--aqua); }
.operator-b { background-color: var(--orange); }
.operator-c { background-color: var(--emerald); }
.operator-d { background-color: var(--gold); }

.operator-pill.operator-c,
.operator-pill.operator-d {
  color: var(--navy);
}

.filter-bar {
  margin-bottom: 28px;
}

.ranking-note {
  margin-bottom: 20px;
  padding: 14px 16px;
  color: rgba(249, 251, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 235, 0.08);
  font-size: 0.95rem;
  line-height: 1.5;
}

.filter-bar button {
  padding: 0 16px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(6, 21, 35, 0.42);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  display: grid;
  overflow: hidden;
  min-height: 496px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  /* Same dark navy family as the rest of the page, just a touch lighter so
     cards still read as distinct tiles against the background. */
  background:
    radial-gradient(circle at 88% 0%, rgba(245, 201, 119, 0.09), transparent 30%),
    linear-gradient(180deg, rgba(20, 46, 74, 0.9), rgba(11, 27, 45, 0.96));
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.card.is-hidden {
  display: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 201, 119, 0.38);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.card-media {
  position: relative;
  min-height: 214px;
  overflow: hidden;
  background: linear-gradient(135deg, #172333, #4a5c6a);
}

/* The photo lives on its own layer so it can zoom gently on hover without
   scaling the type/operator pills sitting on top of it. */
.card-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--card-art, linear-gradient(135deg, #172333, #4a5c6a));
  background-size: cover;
  background-position: center;
  transition: transform 0.55s ease;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 35, 0.08), rgba(6, 21, 35, 0.66));
}

.card:hover .card-media::before {
  transform: scale(1.06);
}

.type,
.operator-pill {
  position: absolute;
  z-index: 1;
  top: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.type {
  left: 14px;
  background: rgba(6, 21, 35, 0.8);
  backdrop-filter: blur(10px);
}

.operator-pill {
  right: 14px;
  color: var(--navy);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(245, 201, 119, 0.9));
}

.card-body {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 22px;
}

.card-body h3 {
  margin-bottom: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.1;
}

.room-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rating-badge,
.slot-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
}

/* Cards are dark navy, so badges use light text on translucent tints with a
   hairline border (the previous dark-on-dark combinations were unreadable). */
.rating-badge {
  color: var(--gold);
  border: 1px solid rgba(244, 170, 69, 0.4);
  background: rgba(244, 170, 69, 0.14);
}

.slot-badge {
  color: #7dedc9;
  border: 1px solid rgba(32, 209, 156, 0.42);
  background: rgba(32, 209, 156, 0.12);
}

.slot-badge--unknown {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.card-price {
  margin-bottom: 0;
  color: var(--gold);
  font-weight: 800;
  line-height: 1.55;
}

/* Kafelki pomniejszone tak, żeby wszystkie cztery (osoby / czas / trudność /
   język) mieściły się w JEDNYM rzędzie — "PL/EN" nie spada już do drugiej
   linii. */
.card-body dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 8px;
  margin: 0;
}

.card-body dl div {
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  min-width: 0;
}

.card-body dt {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.6rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-body dd {
  margin: 3px 0 0;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
}

.card-body dd.stars {
  color: var(--orange-2);
  letter-spacing: 0.5px;
  font-size: 0.78rem;
}

.card-body a {
  margin-top: 2px;
  color: #1b1208;
  background: linear-gradient(135deg, #f7c77e, #d8844e);
  cursor: pointer;
  border: none;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.use-cases {
  display: grid;
  gap: 14px;
}

/* Ciemne karty, dopasowane do reszty strony (wcześniej kremowe). */
.use-cases article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  background:
    radial-gradient(circle at 88% 8%, rgba(245, 201, 119, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(16, 41, 67, 0.9), rgba(9, 24, 41, 0.92));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.use-cases article:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 201, 119, 0.35);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.3);
}

.use-cases span {
  color: var(--gold);
  font-weight: 950;
}

.use-cases h3 {
  margin: 10px 0 8px;
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.use-cases p {
  color: rgba(249, 251, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 16px;
}

.offer-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid rgba(245, 201, 119, 0.4);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(245, 201, 119, 0.08);
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.offer-toggle:hover,
.offer-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  background: rgba(245, 201, 119, 0.16);
  transform: translateY(-2px);
}

/* Rozwijany panel oferty (Dla firm / Urodziny / Szkoły) — ten sam ciemny
   styl co panel szczegółów pokoju. */
.offer-panel {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  margin-top: 10px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(245, 201, 119, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 201, 119, 0.1), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(32, 209, 156, 0.07), transparent 26%),
    linear-gradient(180deg, rgba(16, 41, 67, 0.97), rgba(9, 24, 41, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  scroll-margin-top: 112px;
}

.offer-panel[hidden] {
  display: none;
}

.offer-panel-header {
  display: grid;
  gap: 12px;
  padding-right: 48px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.offer-panel-body {
  max-width: 860px;
}

.offer-panel-body p {
  margin: 0 0 14px;
  color: rgba(249, 251, 255, 0.78);
  line-height: 1.7;
}

.offer-panel-body .room-detail-section-title {
  margin-top: 12px;
}

.offer-panel-body a {
  color: var(--orange-2);
  font-weight: 800;
}

.offer-panel-body a:hover {
  color: var(--white);
}

.offer-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.offer-list li {
  position: relative;
  padding-left: 22px;
  color: rgba(249, 251, 255, 0.8);
  line-height: 1.55;
}

.offer-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 11px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

.offer-contact {
  margin-top: 6px;
}

.offer-contact a {
  color: var(--orange-2);
  font-weight: 800;
}

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

.offer-price {
  color: var(--gold);
}

.voucher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 76px;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background:
    radial-gradient(circle at 88% 18%, rgba(245, 201, 119, 0.16), transparent 18%),
    radial-gradient(circle at 82% 40%, rgba(32, 209, 156, 0.24), transparent 28%),
    radial-gradient(circle at 12% 20%, rgba(245, 179, 95, 0.18), transparent 22%),
    linear-gradient(135deg, rgba(8, 28, 50, 0.96), rgba(19, 38, 60, 0.9) 58%, rgba(27, 45, 53, 0.92));
  backdrop-filter: blur(14px);
}

.voucher h2,
.voucher p {
  color: var(--white);
}

.voucher p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

/* Złota ikona prezentu przy nagłówku sekcji voucherów. */
.voucher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(245, 201, 119, 0.4);
  border-radius: 50%;
  background: rgba(245, 201, 119, 0.12);
}

.voucher-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voucher a {
  flex: 0 0 auto;
  padding: 0 22px;
  color: var(--navy);
  background: var(--orange);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}

.contact-card {
  padding: 30px;
  border: 1px solid rgba(19, 32, 51, 0.14);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 244, 222, 0.94));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
  margin: 18px 0 4px;
  color: #0b2134;
  font-size: 1.05rem;
}

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

.contact-card p {
  margin-bottom: 0;
  color: #596579;
  line-height: 1.5;
}

.contact-card p a {
  color: var(--orange);
  font-weight: 800;
}

.contact-social {
  display: flex;
  gap: 14px;
  margin-top: 22px;
}

.contact-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  background: rgba(216, 132, 78, 0.16);
}

.contact-social a:hover {
  background: rgba(216, 132, 78, 0.3);
}

.contact-map {
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
  display: block;
}

@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Inline room detail panel — expands directly under the clicked card inside
   the .cards grid. Dark navy like the cards (the earlier cream version stood
   out awkwardly), organised into named sections: header with info chips,
   "O pokoju" + "Zdjęcia" side by side, then "Zarezerwuj termin". */
.room-detail {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: clamp(22px, 3vw, 30px);
  margin: -4px 0 6px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(245, 201, 119, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(245, 201, 119, 0.1), transparent 30%),
    radial-gradient(circle at 0% 100%, rgba(32, 209, 156, 0.07), transparent 26%),
    linear-gradient(180deg, rgba(16, 41, 67, 0.97), rgba(9, 24, 41, 0.98));
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  scroll-margin-top: 112px;
}

.room-detail[hidden] {
  display: none;
}

.room-detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.room-detail-close:hover {
  border-color: var(--orange);
  background: rgba(216, 132, 78, 0.25);
}

/* Section 1: header — kicker (typ · firma), room name, info chips. */
.room-detail-header {
  display: grid;
  gap: 14px;
  padding-right: 48px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.room-detail-kicker {
  margin: 0;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Room name styled like the hero headline: Fraunces with a white-to-gold
   gradient. Solid white fallback first for browsers without background-clip. */
.room-detail-header h3 {
  margin: 0;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.02;
  text-wrap: balance;
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
  .room-detail-header h3 {
    padding-bottom: 0.1em;
    color: transparent;
    background: linear-gradient(180deg, #ffffff 42%, var(--gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  }
}

.room-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.room-detail-chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 21, 35, 0.5);
}

.room-detail-chips span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.room-detail-chips strong {
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 850;
}

.room-detail-chips strong.stars {
  color: var(--orange-2);
  letter-spacing: 1px;
}

.room-detail-chip--price {
  border-color: rgba(245, 201, 119, 0.45) !important;
  background: rgba(245, 201, 119, 0.12) !important;
}

.room-detail-chip--price strong {
  color: var(--gold);
}

/* Small gold-dashed section labels ("O pokoju", "Zdjęcia", "Zarezerwuj
   termin") that give the panel its structure. */
.room-detail-section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: #b7ffe5;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.room-detail-section-title::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--orange));
}

/* Section 2: description + features on the left, photo grid on the right. */
.room-detail-columns {
  display: grid;
  grid-template-columns: 1.15fr minmax(240px, 0.85fr);
  gap: clamp(20px, 3vw, 34px);
  align-items: start;
}

.room-detail-desc {
  margin-bottom: 18px;
  color: rgba(249, 251, 255, 0.78);
  line-height: 1.7;
}

.room-detail-desc p {
  margin: 0 0 12px;
}

.room-detail-desc p:last-child {
  margin-bottom: 0;
}

.room-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
}

.room-detail-photo {
  display: block;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  cursor: zoom-in;
}

/* First photo is the hero shot — full width and taller than the rest. */
.room-detail-photo:first-child {
  grid-column: 1 / -1;
}

.room-detail-photo img {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.room-detail-photo:first-child img {
  height: 190px;
}

.room-detail-photo:hover img {
  transform: scale(1.05);
}

/* Section 3: the lock.me booking widget, full panel width. */
.room-detail-widget-row {
  margin: 0;
}

/* Cechy i bezpieczeństwo — w stylu lock.me: dwa katalogi ("Podstawowe"
   i "Bezpieczeństwo"), każda cecha jako wiersz z kolorową ikoną i zwykłą
   etykietą (zamiast dawnych świecących plakietek). Zobacz
   escapelandia_render_feature_badges() + escapelandia_feature_icon(). */
.room-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px clamp(24px, 3vw, 40px);
  margin-bottom: 20px;
}

.feature-catalog-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: var(--cream);
  font-size: 1.02rem;
  font-weight: 850;
}

.feature-catalog-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(249, 251, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.35;
}

.feature-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-item--pos svg { color: var(--emerald); }
.feature-item--info svg { color: var(--aqua); }
.feature-item--safe svg { color: var(--aqua); }
.feature-item--warn svg { color: #ff8585; }

/* Light variant for the single room page (cream card). */
.card--page .feature-item {
  color: #4a5568;
}

.card--page .feature-catalog-title {
  color: #0b2134;
}

.card--page .feature-catalog-title::after {
  background: rgba(19, 32, 51, 0.16);
}

.card--page .feature-item--warn svg { color: #d84e4e; }

.room-detail-widget {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: #fff;
}

.room-detail-widget iframe {
  display: block;
  width: 100%;
  /* Sensible default: covers lock.me's typical calendar without leaving a
     large empty white strip below it (950px used to). If a given widget
     reports its real height via postMessage, script.js resizes the iframe
     to fit exactly; otherwise anything taller scrolls inside the widget. */
  height: 700px;
  border: 0;
}

@media (max-width: 760px) {
  .room-detail { padding: 20px 16px; }
  .room-detail-columns { grid-template-columns: 1fr; }

  /* Photos become one horizontally-scrolled strip under the description. */
  .room-detail-gallery {
    display: flex;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
  }

  .room-detail-photo,
  .room-detail-photo:first-child {
    flex: 0 0 150px;
  }

  .room-detail-photo img,
  .room-detail-photo:first-child img {
    height: 104px;
  }

  .room-detail-widget iframe { height: 620px; }
}

/* Vouchery: expandable per-company breakdown */
.voucher-toggle {
  flex: 0 0 auto;
  padding: 0 22px;
  color: var(--navy);
  background: var(--orange);
  border: none;
  cursor: pointer;
}

.voucher-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: -46px 0 76px;
  padding: 30px clamp(20px, 4vw, 34px);
  border-radius: 8px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(135deg, rgba(8, 28, 50, 0.96), rgba(19, 38, 60, 0.9) 58%, rgba(27, 45, 53, 0.92));
}

.voucher-panel[hidden] {
  display: none;
}

.voucher-company {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.voucher-company h3 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 1.05rem;
}

.voucher-rooms {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: justify;
}

.voucher-company a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--orange);
}

.voucher-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .voucher-panel { margin-top: 20px; }
}

/* Lightbox: click any room photo (card panel or single room page) to see it
   full-size, one shared overlay reused for every image on the page. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 10, 18, 0.9);
  backdrop-filter: blur(4px);
}

.lightbox-image {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(6, 21, 35, 0.8);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: var(--navy);
}

/* Wideo w lightboxie (YouTube iframe albo <video> z pliku). */
.lightbox-video {
  position: relative;
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

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

.lightbox-video iframe,
.lightbox-video video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Kafelek filmu w galerii: miniatura (YouTube) albo ciemne tło (plik mp4)
   + okrągła ikona odtwarzania. */
.room-detail-video {
  position: relative;
  cursor: pointer;
}

.room-detail-video--file {
  min-height: 110px;
  background:
    radial-gradient(circle at 70% 20%, rgba(245, 201, 119, 0.14), transparent 40%),
    linear-gradient(135deg, #16283c, #0a1a2c);
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.video-play svg {
  width: 42px;
  height: 42px;
  padding: 11px;
  box-sizing: border-box;
  border-radius: 50%;
  fill: var(--navy);
  background: rgba(245, 201, 119, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}

.room-detail-video:hover .video-play svg {
  transform: scale(1.1);
}

/* Wersja w pasku miniatur na podstronie pokoju. */
.room-strip-video {
  width: 84px;
  height: 64px;
  padding: 0;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.room-strip-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.room-strip-video .video-play svg {
  width: 30px;
  height: 30px;
  padding: 8px;
}

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

/* Nagrody pokoju — lista ze złotymi pucharami (panel pokoju i podstrona). */
.room-awards {
  margin-bottom: 20px;
}

.award-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.award-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(249, 251, 255, 0.85);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.award-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(245, 201, 119, 0.35));
}

.card--page .award-item {
  color: #33415c;
}

/* Scenariusze (Quizuj / Pixeluj) — tekst wprowadzający + lista wariantów:
   błękitny kompas, nazwa i opis pod spodem. */
.room-scenarios {
  margin-bottom: 20px;
}

.room-scenarios-intro {
  margin: 0 0 14px;
  color: rgba(249, 251, 255, 0.75);
  line-height: 1.6;
}

.scenario-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.scenario-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.scenario-item svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 2px;
  fill: none;
  stroke: var(--aqua);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 2px 6px rgba(94, 202, 224, 0.3));
}

.scenario-item strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 850;
}

.scenario-item span {
  display: block;
  margin-top: 2px;
  color: rgba(249, 251, 255, 0.68);
  font-size: 0.88rem;
  line-height: 1.5;
}

.card--page .room-scenarios-intro,
.card--page .scenario-item span {
  color: #596579;
}

.card--page .scenario-item strong {
  color: #0b2134;
}

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

/* --- Single room page (single-pokoj.php) ---------------------------------
   The homepage cards went dark navy, but this page keeps its content on a
   light cream panel — so all its text stays dark. Previously dark inline
   colors sat on the dark card background and were unreadable. */
.card--page {
  color: #33415c;
  border-color: rgba(19, 32, 51, 0.14);
  background: linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 244, 222, 0.94));
}

.card--page:hover {
  transform: none;
  border-color: rgba(19, 32, 51, 0.14);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
}

.room-page-title {
  margin-bottom: 0;
  color: #0b2134;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 700;
  text-shadow: none;
}

.card--page .card-body dl div {
  border-color: rgba(19, 32, 51, 0.12);
  background: rgba(19, 32, 51, 0.045);
}

.card--page .card-body dt {
  color: #647085;
}

.card--page .card-body dd {
  color: #0b2134;
}

.card--page .card-body dd.stars {
  color: #d8844e;
}

.card--page .slot-badge {
  color: #0c6b4e;
  border-color: rgba(32, 209, 156, 0.5);
  background: rgba(32, 209, 156, 0.16);
}

.card--page .slot-badge--unknown {
  color: #647085;
  border-color: rgba(19, 32, 51, 0.16);
  background: rgba(19, 32, 51, 0.06);
}

.card--page .rating-badge {
  color: #8a5a13;
  border-color: rgba(244, 170, 69, 0.5);
  background: rgba(244, 170, 69, 0.18);
}

.room-page-price {
  margin-bottom: 0;
  color: #0b2134;
  font-weight: 800;
}

.room-page-desc {
  color: #596579;
  line-height: 1.7;
}

.room-page-back a {
  color: var(--orange);
  font-weight: 800;
}

.room-page-back a:hover {
  color: #b96a38;
}

/* --- Scroll-reveal (added by script.js only when the browser supports
   IntersectionObserver and the visitor hasn't asked for reduced motion) --- */
.will-reveal {
  opacity: 0;
  transform: translateY(18px);
}

.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

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

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .experience-strip { grid-template-columns: 1fr; }
}

@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; }
  .hero { min-height: 94vh; padding: 110px 20px 58px; }
  h1 { font-size: clamp(3rem, 14vw, 4.6rem); }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(6, 21, 35, 0.94) 0%, rgba(6, 21, 35, 0.78) 72%, rgba(6, 21, 35, 0.42) 100%),
      linear-gradient(180deg, rgba(6, 21, 35, 0.46) 0%, rgba(6, 21, 35, 0.06) 42%, rgba(7, 24, 43, 0.98) 100%);
  }

  .hero-copy { font-size: 1rem; }
  .hero-metrics { gap: 8px; }
  .hero-metrics span { min-height: 40px; padding: 0 12px; font-size: 0.92rem; }
  .primary-action, .secondary-action { width: 100%; }

  .booking-strip, .intro, .experience-strip, .section-heading, .split, .voucher, .esc-footer {
    display: grid;
  }

  .booking-strip { margin-top: -24px; }
  .booking-strip a, .voucher a { width: 100%; }
  .section { padding: 56px 0; }
  .intro, .split { grid-template-columns: 1fr; }
  .experience-strip article { min-height: auto; padding: 22px; }
  .operator-legend { justify-content: flex-start; }
  .cards { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .card-body dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .voucher { margin-bottom: 48px; padding: 26px; }
}

/* ---- 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); }

/* Pod kalendarzem w rozwiniętej karcie: odnośnik do pełnej strony atrakcji. */
.room-detail-more {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.room-detail-more a {
  color: var(--orange-2);
  font-weight: 800;
}
.room-detail-more a:hover { color: var(--white); }

/* Atrakcja bez rezerwacji online. */
.room-detail-offline {
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}
.room-detail-offline a { color: var(--orange-2); font-weight: 800; }

/* Nasz kalendarz ma jasne tło jak widżet lock.me — ramka startuje niżej
   i rośnie do treści (esc.js). */
.room-detail-widget iframe { min-height: 200px; }
