/* ============================================================
   Apartament Ligota — styles
   ============================================================ */

:root {
  --bg: #f7f6f3;
  --bg-alt: #efede8;
  --surface: #ffffff;
  --ink: #1d1f24;
  --ink-soft: #6d7078;
  --line: #e3e0d8;
  --gold: #a8814d;
  --gold-dark: #8c6a3e;
  --gold-soft: rgba(168, 129, 77, 0.12);
  --shadow: 0 18px 44px rgba(23, 22, 18, 0.10);
  --shadow-soft: 0 10px 30px rgba(23, 22, 18, 0.08);
  --radius: 18px;
  --header-h: 76px;
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Preloader (kurtyna) ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 500;
  pointer-events: none;
}
.preloader.done { visibility: hidden; transition: visibility 0s linear 1.1s; }
.preloader-curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50.5%;
  background: #141519;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader-curtain.left { left: 0; }
.preloader-curtain.right { right: 0; }
.preloader.done .preloader-curtain.left { transform: translateX(-101%); }
.preloader.done .preloader-curtain.right { transform: translateX(101%); }
.preloader-content {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.4rem;
  transition: opacity 0.35s ease;
}
.preloader.done .preloader-content {
  opacity: 0;
  transform: translateY(-14px);
}
.preloader-content { transition: opacity 0.4s ease, transform 0.4s ease; }
.preloader-title {
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.6vw, 3.3rem);
  line-height: 1.35;
  text-align: center;
  letter-spacing: 0.01em;
  filter: drop-shadow(0 0 28px rgba(217, 185, 138, 0.22));
}
.preloader-title .base,
.preloader-title .fill {
  white-space: nowrap;
}
.preloader-title .base {
  color: rgba(255, 255, 255, 0.16);
}
.preloader-title .base em { font-style: italic; }
.preloader-title .fill {
  position: absolute;
  inset: 0 0 -6px 0;
  color: transparent;
  background: linear-gradient(100deg,
    #8c6a3e 0%, #d9b98a 22%, #f4e3c2 40%,
    #d9b98a 58%, #a8814d 74%, #f4e3c2 90%, #8c6a3e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fluidShift 3.2s ease-in-out infinite alternate;
  clip-path: inset(0 var(--fill, 100%) 0 0);
}
.preloader-title .fill em { font-style: italic; }
@keyframes fluidShift {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.preloader-percent {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
}
.preloader-percent span { color: #d9b98a; font-weight: 600; }
body.is-loading { overflow: hidden; }

/* Lekkie, minimalistyczne przejście przy powrocie z podstrony (bez intro) */
body.page-return { animation: pageReturn 0.55s ease both; }
@keyframes pageReturn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  body.page-return { animation: none; }
}
body.is-loading .hero::before { animation-play-state: paused; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1160px, 92%);
  margin-inline: auto;
}

h1, h2, h3, .brand { font-family: var(--font-head); font-weight: 600; line-height: 1.15; }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.01em; }

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}

.lead { color: var(--ink-soft); margin-top: 0.9rem; max-width: 560px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 10px 24px rgba(168, 129, 77, 0.35);
}
.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

.btn-outline {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); transform: translateY(-2px); }

.btn-booking {
  background: #003580;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 53, 128, 0.3);
}
.btn-booking:hover { background: #00275e; transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
}
.header.scrolled {
  background: rgba(20, 21, 25, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  height: 64px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1160px, 92%);
  margin-inline: auto;
}

.brand {
  font-size: 1.25rem;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}
.brand span { color: #d9b98a; font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

/* Przełącznik języka PL / EN / DE */
.nav-lang-item {
  list-style: none;
}

/* Wariant inline w headerze — tylko mobile (obok hamburgera).
   (Selektor podwójny celowo — przebija .lang-switch bez !important.) */
.lang-switch.nav-lang-inline {
  display: none;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  overflow: hidden;
}

.lang-btn {
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.85);
  font: inherit;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.lang-code {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

.lang-btn svg {
  width: 26px;
  height: 17px;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.35);
}

.lang-btn + .lang-btn {
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.lang-btn.active {
  background: #d9b98a;
  color: #141519;
}
.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3rem 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: #d9b98a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.62rem 1.25rem;
  border-radius: 999px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { background: var(--gold-dark); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5.5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: rgba(20, 21, 25, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  cursor: pointer;
  z-index: 120;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/hero-kitchen.jpg") center 42% / cover no-repeat;
  z-index: -2;
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.74) 0%, rgba(12, 13, 16, 0.28) 45%, rgba(247, 246, 243, 0.94) 96%, var(--bg) 100%),
    linear-gradient(78deg, rgba(12, 13, 16, 0.55) 8%, rgba(12, 13, 16, 0.08) 60%);
}

.hero-content { color: #fff; padding-top: var(--header-h); }

.hero-kicker {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #d9b98a;
  margin-bottom: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.hero-kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: #d9b98a;
  display: inline-block;
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.3rem);
  letter-spacing: -0.015em;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
  max-width: 13ch;
}
.hero-title em {
  font-style: italic;
  color: #ecd9b8;
  font-weight: 500;
}

.hero-sub {
  margin-top: 1.4rem;
  max-width: 480px;
  font-size: 1.06rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: bob 2.4s ease-in-out infinite;
}
.hero-scroll svg { width: 20px; height: 20px; }
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Amenities ---------- */
.amenities {
  background: var(--bg);
  padding: 3.4rem 0 1rem;
}
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.amenity strong { display: block; font-size: 0.95rem; }
.amenity span:last-child { display: block; font-size: 0.78rem; color: var(--ink-soft); }
.amenity-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.amenity-icon svg { width: 22px; height: 22px; }

/* ---------- About (opis z bookingu) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text p {
  color: var(--ink-soft);
  margin-top: 1.1rem;
  max-width: 58ch;
}
.about-beds {
  margin-top: 1.9rem;
  display: grid;
  gap: 0.7rem;
}
.about-beds li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1.2rem;
}
.about-beds strong { font-size: 0.95rem; }
.about-beds span { font-size: 0.88rem; color: var(--ink-soft); text-align: right; }

.about-cta {
  display: flex;
  justify-content: center;
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.about-cta .btn { min-width: 280px; justify-content: center; }

.about-facts { display: grid; gap: 1.3rem; }
.fact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-soft);
}
.fact-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.fact-card h3 svg { width: 20px; height: 20px; color: var(--gold-dark); }

.dist-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.dist-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dist-row strong { color: var(--ink); white-space: nowrap; }
.dist-row small { color: #9a9ca3; font-size: 0.78rem; }

/* Wyróżniona karta "szpitalna" */
.fact-card-hospital {
  border: 1.5px solid rgba(168, 129, 77, 0.45);
  background: linear-gradient(180deg, #fffdf8 0%, var(--surface) 60%);
  box-shadow: 0 14px 36px rgba(168, 129, 77, 0.16);
}
.fact-card-hospital h3 { color: var(--gold-dark); }
.fact-card-hospital h3 svg { color: var(--gold); }
.fact-lead {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.dist-row-hospital {
  border-bottom: 1px dashed rgba(168, 129, 77, 0.35);
  padding: 0.65rem 0;
}
.dist-row-hospital span { color: var(--ink); font-weight: 500; line-height: 1.4; }
.dist-row-hospital strong { color: var(--gold-dark); font-size: 1.05rem; }
.fact-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.1rem;
  padding: 0.9rem 1rem;
  background: var(--gold-soft);
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.fact-note svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold-dark); margin-top: 0.15rem; }

.fact-list { display: grid; gap: 0.55rem; }
.fact-list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.fact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 640px; margin-bottom: 3rem; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 210px;
  grid-auto-flow: dense;
  gap: 14px;
}
.g-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  background: #ddd;
}
.g-big { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-full { grid-column: 1 / -1; }
.g-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
.g-tile:hover img { transform: scale(1.06); }

/* subtelne przesunięcia kadrów, żeby duplikaty wyglądały inaczej */
.pos-top img { object-position: top; }
.pos-bottom img { object-position: bottom; }
.pos-left img { object-position: left center; }
.pos-right img { object-position: right center; }

.g-tile figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(20, 21, 25, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.g-cta {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  text-align: center;
  font-size: 0.95rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.g-cta:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(168, 129, 77, 0.4); }
.g-cta-inner strong { display: inline-block; margin-top: 0.3rem; }

/* ---------- Price banner (cennik złączony z kalendarzem) ---------- */
.price-banner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  padding: 2.2rem 2.4rem;
  margin-bottom: 2.6rem;
}
.price-banner-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.price-banner-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.price-banner-value {
  font-family: var(--font-head);
  line-height: 1.1;
  margin-bottom: 1.1rem;
}
.price-banner-value span { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.02em; }
.price-banner-value small { font-family: var(--font-body); font-size: 0.95rem; color: var(--ink-soft); }
.price-banner-list { display: grid; gap: 0.5rem; }
.price-banner-list li {
  position: relative;
  padding: 0.2rem 0 0.2rem 1.6rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.price-banner-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.price-banner-list strong { color: var(--gold-dark); }

.price-banner-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.9rem;
  padding-left: 2.4rem;
  border-left: 1px solid var(--line);
}
.price-banner-side-title {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 600;
}
.price-banner-side-desc { font-size: 0.93rem; color: var(--ink-soft); }
.price-banner-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.price-banner-meta { font-size: 0.8rem; color: #9a9ca3; }

/* ---------- Booking widget (kalendarz) ---------- */
.booking-widget {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.booking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.booking-brand { display: flex; flex-direction: column; gap: 0.15rem; }
.booking-logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #003580;
}
.booking-tag {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
}

.booking-nav { display: flex; align-items: center; gap: 0.8rem; }
.cal-month {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  min-width: 150px;
  text-align: center;
}
.cal-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cal-arrow:hover:not(:disabled) { border-color: #003580; color: #003580; }
.cal-arrow:disabled { opacity: 0.35; cursor: default; }
.cal-arrow svg { width: 18px; height: 18px; }

.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  padding: 1rem 1.5rem 0;
}
.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 0.4rem;
}
.cal-grid { padding-bottom: 1.2rem; }

.cal-day {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  font-size: 0.88rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.cal-day:not(:disabled):hover { background: var(--gold-soft); transform: scale(1.06); }

.cal-day:disabled {
  color: #c4c2bc;
  cursor: not-allowed;
  text-decoration: line-through;
  text-decoration-color: rgba(214, 106, 106, 0.55);
}

.cal-day.is-sat, .cal-day.is-sun { color: var(--gold-dark); font-weight: 600; }
.cal-day:disabled.is-sat, .cal-day:disabled.is-sun { color: #d3b9a9; }

.cal-day.today::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
}

.cal-day.start, .cal-day.end {
  background: #003580;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(0, 53, 128, 0.35);
}
.cal-day.in-range {
  background: rgba(0, 53, 128, 0.12);
  color: #00275e;
  font-weight: 600;
  border-radius: 0;
}
.cal-grid:has(.start:not(.end)) .cal-day.in-range { border-radius: 0; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0 1.5rem 1.2rem;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-free { background: var(--gold-soft); border: 1.5px solid var(--gold); }
.dot-booked { background: #f3d9d9; border: 1.5px solid #d66a6a; }
.dot-sel { background: #003580; }

.booking-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  border-top: 1px solid var(--line);
  background: #fafaf8;
}
.booking-summary { font-size: 0.88rem; color: var(--ink-soft); flex: 1 1 auto; min-width: 0; }
.booking-summary strong { color: var(--ink); }
.booking-summary a { color: var(--gold-dark); font-weight: 600; }
.booking-summary a:hover { text-decoration: underline; }

.mock-note {
  text-align: center;
  margin-top: 1.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}

.contact-info h2 { margin-bottom: 2rem; }

.contact-list { display: grid; gap: 1.4rem; margin-bottom: 2.2rem; }
.contact-list li { display: flex; gap: 1rem; }
.contact-list svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list span { font-size: 0.9rem; color: var(--ink-soft); }
.contact-list small { font-size: 0.78rem; color: #9a9ca3; }
.contact-list a:hover { color: var(--gold-dark); }

.contact-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.contact-map {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  min-height: 420px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }

/* ---------- Footer ---------- */
.footer {
  background: #141519;
  color: rgba(255, 255, 255, 0.78);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3.6rem 0 2.6rem;
}
.footer-logo { color: #fff; font-size: 1.3rem; margin-bottom: 0.7rem; }
.footer-logo span { color: #d9b98a; font-style: italic; }
.footer-desc { font-size: 0.9rem; max-width: 300px; color: rgba(255, 255, 255, 0.6); }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d9b98a;
  margin-bottom: 1.1rem;
}
.footer-col ul { display: grid; gap: 0.55rem; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.2rem 0;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255, 255, 255, 0.45); text-align: center; }
.footer-legal {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  margin-top: 0.45rem;
}
.footer-legal a { font-size: 0.8rem; color: rgba(255, 255, 255, 0.55); }
.footer-legal a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 11, 13, 0.94);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.show { opacity: 1; visibility: visible; }

.lb-figure { max-width: min(1100px, 88vw); text-align: center; }
.lb-figure img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-figure figcaption {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 26px;
  font-size: 2.4rem;
  line-height: 1;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  opacity: 0.85;
}
.lb-close:hover { opacity: 1; }

.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lb-arrow:hover { background: rgba(255, 255, 255, 0.2); }
.lb-arrow svg { width: 22px; height: 22px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Mobile view
   ============================================================ */
@media (max-width: 960px) {
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .price-banner { grid-template-columns: 1fr; gap: 1.8rem; padding: 1.8rem; }
  .price-banner-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 1.6rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 4rem 0; }

  .hamburger { display: flex; }

  .lang-switch.nav-lang-inline { display: inline-flex; margin-left: auto; }
  /* W otwartym menu mobilnym nie dubluj przełącznika (jest w headerze). */
  .nav-lang-item { display: none; }

  /* Kompaktowy przełącznik w wąskim headerze mobilnym. */
  .nav { gap: 0.6rem; }
  .brand { font-size: 1.05rem; }
  .lang-btn { padding: 0.35rem 0.5rem; gap: 3px; }
  .lang-code { font-size: 0.6rem; }
  .lang-btn svg { width: 22px; height: 15px; }

  .nav-links {
    position: fixed;
    inset: 0;
    z-index: 95;
    flex-direction: column;
    justify-content: center;
    gap: 1.6rem;
    background: rgba(16, 17, 20, 0.97);
    backdrop-filter: blur(14px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-link { font-size: 1.35rem; }
  .nav-cta-item { margin-top: 0.6rem; }
  .nav-cta { padding: 0.85rem 1.7rem; font-size: 1rem; }

  body.menu-open { overflow: hidden; }
  /* backdrop-filter na headerze tworzy containing-block dla fixed overlay —
     przy otwartym menu zdejmujemy go, żeby menu było na pełnym ekranie */
  body.menu-open .header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }

  .hero-actions { margin-top: 2.4rem; }
  .hero-scroll { display: none; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 10px; }

  .price-banner-actions .btn { flex: 1 1 100%; justify-content: center; }

  .booking-head { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .booking-nav { width: 100%; justify-content: space-between; }
  .cal-weekdays, .cal-grid { padding-inline: 1rem; }
  .cal-day { font-size: 0.8rem; border-radius: 8px; }

  .booking-footer { flex-direction: column; align-items: stretch; text-align: center; }
  .booking-footer .btn { justify-content: center; }

  .lb-arrow { width: 42px; height: 42px; }
  .lb-prev { left: 10px; }
  .lb-next { right: 10px; }
}

@media (max-width: 520px) {
  .amenities-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .g-big, .g-tall, .g-wide { grid-column: span 1; grid-row: span 1; }
  .g-full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Szanuj preferencje ograniczonego ruchu */
/* Tryb podglądu pełnej strony (zrzuty / print) */
html.full-preview .hero { min-height: auto; }

/* ---------- Modal: pełne wyposażenie ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(10, 11, 13, 0.62);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal.show { opacity: 1; visibility: visible; }

.modal-panel {
  width: min(860px, 100%);
  max-height: min(86vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.3s ease;
  overflow: hidden;
}
.modal.show .modal-panel { transform: none; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.8rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.modal-head h3 { font-size: 1.45rem; }
.modal-head p { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.modal-close {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.modal-close:hover { background: var(--ink); color: #fff; }

.modal-body {
  padding: 1.4rem 1.8rem 1.8rem;
  overflow-y: auto;
}
.modal-cats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 2.2rem;
}
.modal-cat h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.7rem;
}
.modal-cat ul { display: grid; gap: 0.45rem; }
.modal-cat li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.modal-cat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 9px;
  height: 5px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}
.modal-notes {
  margin-top: 1.5rem;
  padding: 1rem 1.2rem;
  background: var(--gold-soft);
  border-radius: 14px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.modal-notes strong { color: var(--ink); }
.modal-notes p + p { margin-top: 0.4rem; }

body.modal-open { overflow: hidden; }

@media (max-width: 760px) {
  .modal-cats { grid-template-columns: 1fr; gap: 1.3rem; }
  .modal-head, .modal-body { padding-inline: 1.2rem; }
}

/* ---------- Podstrony (regulamin, polityka) ---------- */
.header.simple {
  position: static;
  height: auto;
  background: #141519;
  padding: 1.1rem 0;
}
.header.simple .brand { text-shadow: none; }

.legal-wrap {
  width: min(760px, 92%);
  margin-inline: auto;
  padding: 3.5rem 0 4.5rem;
}
.legal-wrap .kicker { margin-bottom: 0.5rem; }
.legal h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.8rem;
}
.legal p, .legal li {
  color: var(--ink-soft);
  font-size: 0.97rem;
}
.legal p { margin-bottom: 0.8rem; }
.legal ul { display: grid; gap: 0.5rem; padding-left: 1.2rem; list-style: disc; }
.legal a { color: var(--gold-dark); font-weight: 500; }
.legal a:hover { text-decoration: underline; }
.legal-updated {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ---------- Formularz rezerwacji bezpośredniej (Ligota) ---------- */
.booking-inquiry-wrap {
  margin-top: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  display: none;
  animation: fadeInDown 0.3s ease forwards;
}
.booking-inquiry-wrap.is-open { display: block; }

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

.inquiry-head {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.inquiry-head h3 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.inquiry-head p {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.inquiry-dates-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(168, 129, 77, 0.12);
  color: var(--gold-dark);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.inquiry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 640px) {
  .inquiry-grid { grid-template-columns: 1fr; }
}

.inquiry-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.inquiry-field.full { grid-column: 1 / -1; }
.inquiry-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.inquiry-field input,
.inquiry-field select,
.inquiry-field textarea {
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.inquiry-field input:focus,
.inquiry-field select:focus,
.inquiry-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(168, 129, 77, 0.2);
}

.inquiry-summary-box {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem;
  margin: 1.2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.inquiry-summary-box .price-total {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
}
.inquiry-summary-box .price-deposit {
  font-size: 0.88rem;
  color: #059669;
  font-weight: 600;
}
.inquiry-guarantee-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.inquiry-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.8rem;
}

.inquiry-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--rad);
  padding: 2rem;
  text-align: center;
  display: none;
  animation: fadeInDown 0.3s ease forwards;
}
.inquiry-success.is-open { display: block; }
.inquiry-success h3 {
  color: #166534;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}
.inquiry-success p {
  color: #15803d;
  font-size: 0.95rem;
  max-width: 540px;
  margin: 0 auto 1.2rem;
  line-height: 1.5;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
