/* Wspólne dla wszystkich wariantów: podstawy, podgląd zdjęć, elementy powtarzalne bez charakteru wizualnego. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, table { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
table { border-collapse: collapse; width: 100%; }
caption { text-align: left; }
details > summary { cursor: pointer; }
.powieksz { display: block; cursor: zoom-in; }
/* Odnośnik do strony ośrodka przy pozycji na liście dojazdów */
.dojazdy__www { white-space: nowrap; font-size: 0.88em; }
.ukryte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* Podgląd zdjęcia na pełnym ekranie (galeria.js) */
.podglad { inset: 0; width: auto; height: auto; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(12, 14, 13, 0.94); color: #f2f2ee; }
.podglad[open] { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; }
.podglad::backdrop { background: rgba(0, 0, 0, 0.6); }
.podglad figure { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100vh; height: 100dvh; padding: 48px 0 16px; }
.podglad img { max-width: 100%; max-height: calc(100dvh - 110px); width: auto; object-fit: contain; }
.podglad figcaption { padding: 0 12px; font: 0.9rem/1.4 system-ui, sans-serif; text-align: center; }
.podglad__licznik { opacity: 0.65; white-space: nowrap; }
.podglad button { border: 0; background: none; color: inherit; cursor: pointer; font: 2.4rem/1 system-ui, sans-serif; }
.podglad__zamknij { position: absolute; top: 6px; right: 12px; z-index: 1; width: 44px; height: 44px; }
.podglad__strzalka { height: 100%; }
@media (max-width: 640px) { .podglad[open] { grid-template-columns: 36px minmax(0, 1fr) 36px; } }
/* Strona Apartamentu Jagodzianka: wygląd („Góralski przewodnik”). Wczytywany po wspolne.css. */
:root { --tlo: #f8f2e7; --tlo2: #efe5d3; --panel: #fffaf1; --tekst: #2c2119; --cichy: #6b5a4c; --czerwien: #9c2a1f; --czerwien-ciemna: #7a2218; --zielen: #2f5a43; --linia: #d9c9b0; --max: 1160px; }
body { background: var(--tlo); color: var(--tekst); font: 1.0625rem/1.65 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
h1, h2, h3, .logo, .oceny__liczba, .fakty strong { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 12px; }
h4 { font-size: 1rem; margin: 0 0 8px; color: var(--zielen); text-transform: uppercase; letter-spacing: 0.06em; }
p + p { margin-top: 0.9em; }
a { text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 3px; }

.nadtytul { color: var(--czerwien); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.uwaga { color: var(--cichy); font-size: 0.92rem; margin-top: 18px; }
.podpis { font-family: Georgia, serif; font-style: italic; color: var(--czerwien-ciemna); }

.przycisk { display: inline-block; padding: 12px 22px; border: 2px solid var(--czerwien); border-radius: 4px; color: var(--czerwien-ciemna); font-weight: 700; text-decoration: none; transition: background 0.15s, color 0.15s; }
.przycisk:hover { background: var(--czerwien); color: #fff; }
.przycisk--glowny { background: var(--czerwien); color: #fff; }
.przycisk--glowny:hover { background: var(--czerwien-ciemna); border-color: var(--czerwien-ciemna); }
.przyciski { display: flex; flex-wrap: wrap; gap: 10px; }
.lacza { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.lacza a { color: var(--zielen); font-weight: 600; }

/* Pasek górny */
.gora { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 20px; padding: 10px max(20px, calc((100vw - var(--max)) / 2)); background: color-mix(in srgb, var(--tlo) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--linia); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--czerwien-ciemna); font-size: 1.45rem; text-decoration: none; }
.menu { display: flex; gap: 22px; margin-left: auto; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.menu a { padding: 6px 0; font-size: 0.95rem; text-decoration: none; border-bottom: 2px solid transparent; }
.menu a:hover { border-color: var(--czerwien); }
.gora__tel { padding: 8px 16px; border-radius: 4px; background: var(--zielen); color: #fff; font-weight: 700; text-decoration: none; white-space: nowrap; }

.plakietki { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--cichy); font-size: 0.95rem; }
.plakietki strong { color: var(--tekst); font-size: 1.15rem; }

/* Góralskie ząbki jako przerywnik */
.zabki { height: 14px; background: linear-gradient(135deg, var(--czerwien) 25%, transparent 25%) -7px 0 / 14px 14px, linear-gradient(225deg, var(--czerwien) 25%, transparent 25%) -7px 0 / 14px 14px; opacity: 0.85; }

.fakty { background: var(--czerwien-ciemna); color: #fbeedd; }
.fakty ul { display: grid; grid-template-columns: repeat(4, 1fr); max-width: var(--max); margin: 0 auto; padding: 22px 20px; gap: 16px; }
.fakty li { display: flex; flex-direction: column; }
.fakty strong { font-size: 1.9rem; line-height: 1.1; }
.fakty span { font-size: 0.92rem; opacity: 0.85; }

.sekcja { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 20px; }
.sekcja--tlo { max-width: none; background: var(--tlo2); padding-left: max(20px, calc((100vw - var(--max)) / 2)); padding-right: max(20px, calc((100vw - var(--max)) / 2)); }
.sekcja__naglowek { margin-bottom: 32px; }
.sekcja__naglowek::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 16px; background: var(--czerwien); }
.sekcja > h3 { margin-top: 44px; }

.powitanie { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(24px, 5vw, 64px); align-items: center; }
.powitanie h2 { margin-bottom: 18px; }
.powitanie__obraz img { width: 100%; max-height: 420px; object-fit: cover; border: 10px solid var(--panel); box-shadow: 0 10px 30px rgba(60, 40, 20, 0.18); transform: rotate(2deg); }

/* Apartamenty: na przemian zdjęcia z lewej i z prawej */
.lokal { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(20px, 4vw, 52px); align-items: start; padding: 36px 0; border-top: 1px solid var(--linia); }
.lokal:first-of-type { border-top: 0; padding-top: 0; }
.lokal:nth-of-type(even) .lokal__zdjecia { order: 2; }
.lokal__glowne img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.lokal__miniatury { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.lokal__miniatury img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 2px; transition: opacity 0.15s; }
.lokal__miniatury a:hover img { opacity: 0.8; }
.lokal__nazwa { font-size: 1.9rem; margin-bottom: 4px; }
.lokal__krotko { color: var(--czerwien-ciemna); font-weight: 600; }
.lokal__liczby { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0; padding: 14px 0; border-top: 1px solid var(--linia); border-bottom: 1px solid var(--linia); font-size: 0.95rem; color: var(--cichy); }
.lokal__liczby strong { display: block; color: var(--tekst); font-family: Georgia, serif; font-size: 1.3rem; }
.lokal__lozka { margin-top: 12px; }
.lokal__cechy { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 22px; }
.lokal__cechy li { padding: 4px 12px; border: 1px solid var(--linia); border-radius: 999px; background: var(--panel); font-size: 0.88rem; }
.lokal__akcje { display: flex; flex-wrap: wrap; gap: 10px; }

.siatka-zdjec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.siatka-zdjec img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; transition: transform 0.2s; }
.siatka-zdjec a { overflow: hidden; border-radius: 3px; }
.siatka-zdjec a:hover img { transform: scale(1.04); }

.udogodnienia { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.udogodnienia li { padding: 18px; background: var(--panel); border-top: 4px solid var(--zielen); }
.udogodnienia strong { display: block; margin-bottom: 4px; font-family: Georgia, serif; font-size: 1.1rem; }
.udogodnienia span { color: var(--cichy); font-size: 0.93rem; line-height: 1.45; display: block; }

.kolumny { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 5vw, 64px); margin-top: 36px; }
.odleglosci caption { margin-bottom: 8px; color: var(--cichy); font-size: 0.88rem; }
.odleglosci th, .odleglosci td { padding: 10px 8px; border-bottom: 1px solid var(--linia); text-align: left; font-weight: 400; }
.odleglosci thead th { color: var(--cichy); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; }
.odleglosci td { white-space: nowrap; font-weight: 700; }
.dojazdy li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--linia); }
.dojazdy__czas { color: var(--czerwien-ciemna); font-family: Georgia, serif; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.dojazdy__opis { font-size: 0.95rem; color: var(--cichy); }
.dojazdy__opis strong { display: block; color: var(--tekst); }
.trasy-uklad { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.trasy li { padding: 9px 0; border-bottom: 1px dashed var(--linia); }
.trasy strong { display: block; font-size: 0.97rem; }
.trasy span { color: var(--cichy); font-size: 0.9rem; }
.miasta { margin-top: 18px; }
.miasta li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--linia); }

.oceny { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.oceny a { display: flex; flex-direction: column; align-items: center; padding: 26px 16px; background: var(--panel); border: 1px solid var(--linia); text-decoration: none; text-align: center; }
.oceny__liczba { color: var(--czerwien); font-size: 3rem; line-height: 1; }
.oceny__liczba small { font-size: 1.1rem; color: var(--cichy); }
.oceny__zrodlo { margin-top: 8px; font-weight: 700; }
.oceny__opinie { color: var(--cichy); font-size: 0.9rem; }
.kategorie li { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 7px 0; font-size: 0.95rem; }
.kategorie__pasek { height: 8px; background: var(--linia); border-radius: 4px; overflow: hidden; }
.kategorie__pasek i { display: block; height: 100%; background: var(--zielen); }
.kategorie strong { text-align: right; }
.pochwaly li { position: relative; padding: 7px 0 7px 26px; }
.pochwaly li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 10px; height: 10px; background: var(--czerwien); transform: rotate(45deg); }

.pytania details { border-bottom: 1px solid var(--linia); }
.pytania summary { padding: 14px 28px 14px 0; font-weight: 700; list-style: none; position: relative; }
.pytania summary::-webkit-details-marker { display: none; }
.pytania summary::after { content: "+"; position: absolute; right: 4px; top: 10px; color: var(--czerwien); font-size: 1.4rem; }
.pytania details[open] summary::after { content: "–"; }
.pytania p { padding: 0 0 16px; color: var(--cichy); }
.zasady > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--linia); }
.zasady dt { font-weight: 700; }
.zasady dd { margin: 0; color: var(--cichy); }

.kontakt__lead { margin-bottom: 22px; font-size: 1.15rem; }
.adres { padding: 22px; background: var(--panel); border-left: 4px solid var(--czerwien); line-height: 1.8; }

.stopka { padding: 32px max(20px, calc((100vw - var(--max)) / 2)); background: #2c2119; color: #e8dccb; font-size: 0.92rem; }
.stopka p + p { margin-top: 6px; }
.stopka__drobne { opacity: 0.7; }

@media (max-width: 900px) {
  .menu { display: none; }
  .gora__tel { margin-left: auto; }
  .powitanie, .lokal, .kolumny { grid-template-columns: minmax(0, 1fr); }
  .lokal:nth-of-type(even) .lokal__zdjecia { order: 0; }
  .powitanie__obraz { max-width: 260px; margin: 0 auto; }
  .fakty ul, .udogodnienia { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .siatka-zdjec, #dom .siatka-zdjec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trasy-uklad { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .oceny { grid-template-columns: minmax(0, 1fr); }
}

/* Okładka ze zdjęciami gór i przewodnik ze spisem treści */

/* Okładka: panorama Tatr na całą szerokość */
.okladka { position: relative; display: flex; align-items: flex-end; min-height: min(78vh, 700px); overflow: hidden; background: #2c2119; color: #fff; }
.okladka__zdjecia { position: absolute; inset: 0; }
/* Zdjęcia leżą jedno na drugim; widać to z klasą „widoczne”, zmianę robi okladka.js (przenikanie) */
.okladka__tlo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.4s ease; }
.okladka__tlo.widoczne { opacity: 1; }
.okladka::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(30, 18, 10, 0.86) 0%, rgba(30, 18, 10, 0.45) 40%, rgba(30, 18, 10, 0) 72%); pointer-events: none; }
.okladka__kropki { position: absolute; z-index: 2; right: max(20px, calc((100vw - var(--max)) / 2 + 20px)); bottom: 22px; display: flex; align-items: center; gap: 2px; }
.okladka__kropka, .okladka__stop { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
.okladka__kropka::before { content: ""; width: 10px; height: 10px; border: 2px solid #fff; border-radius: 50%; }
.okladka__kropka[aria-current="true"]::before { background: #fff; }
.okladka__stop { margin-right: 4px; font-size: 0.68rem; opacity: 0.85; }
.okladka__stop:hover, .okladka__kropka:hover { opacity: 1; }
.okladka__tresc { position: relative; z-index: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 56px 20px 44px; }
.okladka .nadtytul { color: #f6cfa4; }
.okladka h1 { margin-top: 10px; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35); }
.okladka__lead { max-width: 32em; margin-top: 16px; font-size: clamp(1.1rem, 2vw, 1.3rem); line-height: 1.45; }
.okladka__akcje { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.przycisk--jasny { border-color: rgba(255, 255, 255, 0.85); color: #fff; }
.przycisk--jasny:hover { background: #fff; border-color: #fff; color: var(--czerwien-ciemna); }
.okladka .plakietki { color: rgba(255, 255, 255, 0.85); }
.okladka .plakietki strong { color: #fff; }

/* Przewodnik: spis treści z boku, tekst jak w artykule */
.uklad { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.spis { position: sticky; top: 84px; font-size: 0.95rem; }
.spis__tytul { margin-bottom: 10px; color: var(--cichy); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.spis ol { counter-reset: rozdzial; margin-bottom: 22px; border-left: 2px solid var(--linia); }
.spis li { counter-increment: rozdzial; }
.spis ol a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; text-decoration: none; line-height: 1.35; }
.spis ol a::before { content: counter(rozdzial) ". "; color: var(--czerwien); font-family: Georgia, serif; font-weight: 700; }
.spis ol a:hover { border-color: var(--czerwien); color: var(--czerwien-ciemna); }
.spis .przycisk { display: block; text-align: center; }

.artykul { max-width: 780px; }
.artykul > section { padding-top: 48px; }
.artykul h3 { margin-bottom: 14px; font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.artykul h3::before { content: ""; display: block; width: 44px; height: 4px; margin-bottom: 14px; background: var(--czerwien); }
.artykul > section > h4 { margin-top: 26px; }
.zajawka, .artykul > section > p { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-size: 1.12rem; line-height: 1.7; }
.zajawka { font-size: 1.3rem; line-height: 1.55; }
.zajawka::first-letter { float: left; margin: 6px 10px 0 0; color: var(--czerwien); font: 700 4.2rem/0.8 Georgia, serif; }
.artykul .lacza { font-family: inherit; font-size: 1rem; line-height: 1.5; }
.artykul .uwaga { padding: 12px 16px; border-left: 4px solid var(--czerwien); background: var(--panel); font-family: inherit; font-size: 0.95rem; line-height: 1.5; }
.artykul .dojazdy, .artykul .odleglosci, .artykul .miasta { margin-top: 18px; }
.artykul .dojazdy li { grid-template-columns: 100px minmax(0, 1fr); }
.artykul .trasy-uklad { grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 6px; }
.artykul .miasta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }

/* Zdjęcia w przewodniku: w ramce jak zdjęcie w albumie */
.figura { margin: 26px 0; padding: 10px; background: var(--panel); border: 1px solid var(--linia); }
.figura img { width: 100%; }
.figura figcaption { margin-top: 8px; color: var(--cichy); font-family: Georgia, serif; font-size: 0.92rem; font-style: italic; line-height: 1.4; }
.para-zdjec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.para-zdjec a { overflow: hidden; border-radius: 3px; }
.para-zdjec img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.2s; }
.para-zdjec a:hover img { transform: scale(1.04); }

/* Pas z panoramą między przewodnikiem a opiniami */
.pasmo img { width: 100%; height: clamp(200px, 30vw, 400px); object-fit: cover; object-position: center 80%; }

@media (max-width: 900px) {
  .okladka { min-height: min(84vh, 640px); }
  .okladka__tresc { padding: 40px 20px 32px; }
  .uklad { grid-template-columns: minmax(0, 1fr); }
  .spis { position: static; padding: 18px; border: 1px solid var(--linia); background: var(--panel); }
  .spis ol { columns: 2; column-gap: 20px; border-left: 0; }
  .spis ol a { padding-left: 0; border-left: 0; break-inside: avoid; }
  .artykul > section:first-of-type { padding-top: 36px; }
}
@media (max-width: 600px) {
  /* Na telefonie zdjęcie nad tekstem: w wąskim kadrze napis zasłoniłby góry */
  .okladka { display: block; min-height: 0; }
  .okladka__zdjecia { position: relative; inset: auto; height: 300px; }
  .okladka__kropki { right: 14px; bottom: 26px; }
  .okladka::after { inset: 0 0 auto; height: 300px; background: linear-gradient(to top, #2c2119 0%, rgba(44, 33, 25, 0) 34%); }
  .okladka__tresc { padding: 6px 20px 30px; }
  .spis ol { columns: 1; }
  .artykul .miasta { grid-template-columns: minmax(0, 1fr); }
  .zajawka { font-size: 1.18rem; }
}
