/* ==========================================================================
   BLISKO ATRAKCJI — podstrony v2 (listy atrakcji + strona atrakcji)
   Wymaga design-v2.css (tokeny, header, footer, przyciski, karty)
   Ladowany przez: app/views/layouts/main-v3.php gdy $pageStylesV2 zawiera 'pages'
   Wdrozenie: 2026-08-06
   ========================================================================== */

/* ==========================================================================
   A. WSPOLNE DLA PODSTRON
   ========================================================================== */
:root {
    /* Wysokosc sticky paska sekcji na stronie atrakcji — uzywana do offsetu sidebara */
    --toc-h: 56px;
}

/* --- Hero podstrony — jasny, spojny z homepage (mesh gradient) --- */
.page-hero {
    position: relative; overflow: hidden;
    padding-block: clamp(1.5rem, 3vw, 2.75rem) clamp(2rem, 4vw, 3.25rem);
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
}
.page-hero::before {
    content: ''; position: absolute; inset: -40% -10% auto -10%; height: 180%;
    background:
        radial-gradient(38% 46% at 14% 10%, rgba(10,111,206,.15), transparent 62%),
        radial-gradient(34% 40% at 82% 4%, rgba(240,130,30,.12), transparent 60%),
        radial-gradient(40% 44% at 58% 96%, rgba(14,155,114,.11), transparent 64%);
    pointer-events: none;
}
[data-theme="dark"] .page-hero::before { opacity: .5; }
.page-hero > .container { position: relative; z-index: 1; }

/* --- Breadcrumbs (ciemny tekst na jasnym tle) --- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .84rem; margin-bottom: 1.35rem; }
.crumbs a { color: var(--muted); font-weight: 600; transition: color .18s; }
.crumbs a:hover { color: var(--brand); }
.crumbs span { color: var(--ink); font-weight: 700; }
.crumbs svg { width: 14px; height: 14px; color: var(--line); flex-shrink: 0; }

/* --- Naglowek hero podstrony --- */
.page-hero-head { display: flex; align-items: flex-start; gap: 1.25rem; }
.page-hero-emoji {
    width: 76px; height: 76px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 2.3rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 22px; box-shadow: var(--sh-md);
}
.page-hero-text { min-width: 0; }
.page-hero h1 { font-size: clamp(1.95rem, 1.3rem + 2.2vw, 3.1rem); margin-bottom: .6rem; }
.page-hero .lead { max-width: 68ch; }

.page-hero-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }

/* --- Layout: tresc + sidebar --- */
.page-layout {
    display: grid; grid-template-columns: 288px minmax(0, 1fr);
    gap: clamp(1.5rem, 2.5vw, 2.5rem); align-items: start;
}
.page-layout--right { grid-template-columns: minmax(0, 1fr) 340px; }

/* Container dla stron z dlugim tekstem (artykul atrakcji).
   Celowo NIE rosnie razem z ultra-wide container z design-v2.css —
   kolumna tekstu musi zostac w granicach czytelnosci (~70-80 znakow w linii).
   Dzieki temu karta tresci ma szerokosc zblizona do tekstu i nie ma pustego pasa. */
.container--article { max-width: 1220px; }

/* --- Sidebar (karta) --- */
.side-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: 1.15rem 1.15rem 1.25rem;
    box-shadow: var(--sh-xs);
}
.side-card + .side-card { margin-top: 1rem; }

/* --- Sticky sidebar ---
   WAZNE: position:sticky musi byc na GRID ITEM (<aside>), nie na jego dziecku.
   Sticky wewnatrz <aside> nie dziala, bo aside ma wysokosc rowna swojej zawartosci,
   wiec element nie ma zakresu, w ktorym moglby sie przesuwac.
   Gdy sidebar jest wyzszy niz ekran, dostaje wlasny scroll — inaczej dolne karty
   (noclegi, CTA) bylyby nieosiagalne. Patrz docs/ERRORS.md → ERR-011 */
.page-layout > aside,
.page-layout--right > aside {
    position: sticky;
    align-self: start;
    top: calc(var(--header-h) + 16px);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}
/* Strona atrakcji ma dodatkowo sticky pasek sekcji (.toc) nad trescia —
   sidebar musi zaczynac sie pod nim, inaczej pasek zaslania gorna karte. */
.page-layout--right > aside {
    top: calc(var(--header-h) + var(--toc-h) + 12px);
    max-height: calc(100vh - var(--header-h) - var(--toc-h) - 24px);
}
.page-layout > aside::-webkit-scrollbar,
.page-layout--right > aside::-webkit-scrollbar { width: 6px; }
.page-layout > aside::-webkit-scrollbar-thumb,
.page-layout--right > aside::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.page-layout > aside::-webkit-scrollbar-track,
.page-layout--right > aside::-webkit-scrollbar-track { background: transparent; }

.side-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.side-head svg { width: 17px; height: 17px; color: var(--brand); }
.side-head h3 { font-size: .98rem; }
.side-head .link-arrow { margin-left: auto; font-size: .82rem; padding: 0; }

/* --- Lista nawigacyjna w sidebarze (grupy odbiorcow / typy) --- */
.side-nav { display: flex; flex-direction: column; gap: .1rem; }
.side-nav-item {
    display: flex; align-items: center; gap: .6rem;
    padding: .52rem .6rem; border-radius: var(--r-sm);
    font-size: .89rem; font-weight: 600; color: var(--ink-2);
    transition: background .18s, color .18s;
}
.side-nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.side-nav-item.is-active { background: var(--brand-50); color: var(--brand); font-weight: 700; }
.side-nav-ico { width: 22px; text-align: center; font-size: 1rem; flex-shrink: 0; }
.side-nav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav-count { font-size: .78rem; color: var(--muted); font-weight: 700; }
.side-nav-item.is-active .side-nav-count { color: var(--brand); }
.side-nav-item.is-hidden { display: none; }

.side-more {
    margin-top: .5rem; padding: .45rem .6rem;
    font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--brand); border-radius: var(--r-sm); width: 100%; text-align: left;
}
.side-more:hover { background: var(--brand-50); }

.side-divider { height: 1px; background: var(--line); margin: 1rem 0; }

/* --- Pasek wynikow --- */
.results-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.results-count { font-size: .95rem; color: var(--ink-2); }
.results-count b { color: var(--ink); font-weight: 800; }
.results-tools { display: flex; align-items: center; gap: .5rem; }
.select-wrap {
    display: inline-flex; align-items: center; gap: .4rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-full); padding: .35rem .75rem .35rem 1rem;
    font-size: .86rem; box-shadow: var(--sh-xs);
}
.select-wrap span { color: var(--muted); }
.select-wrap select { border: 0; background: none; outline: none; font-weight: 700; cursor: pointer; }

.btn-filters-mobile { display: none; }

/* --- Sortowanie listy w pasku wynikow ---
   Osobna klasa zamiast .quick-chips: tamta przewija sie w poziomie i dostaje
   od JS szyne ze strzalkami, co przy trzech przyciskach wyglada na usterke. */
.sort-chips { display: flex; gap: .35rem; flex-wrap: wrap; }
.sort-label { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.sort-chips .chip.is-active {
    background: var(--ink); border-color: var(--ink); color: var(--bg); cursor: default;
}

/* --- Chipsy szybkich filtrow (poziomy scroll) --- */
.quick-chips {
    display: flex; gap: .45rem; overflow-x: auto;
    /* Gorny padding jest konieczny: .chip:hover unosi sie o 1px (translateY),
       a przy overflow-x: auto pasek przycina wszystko poza swoim boxem —
       bez zapasu znikala gorna ramka najechanego chipa.
       Ujemny margin-top oddaje te przestrzen, wiec ukladu to nie przesuwa. */
    padding: .25rem 0 .5rem; margin-top: -.25rem; margin-bottom: 1.25rem;
    scrollbar-width: none;
}
.quick-chips::-webkit-scrollbar { display: none; }
.quick-chips .chip { flex-shrink: 0; }
.quick-chips .chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* --- Szyna chipsow: wygaszenie krawedzi + strzalki ---
   Opakowanie dokleja JS (main-v2.js, modul 17), wiec bez JS zostaje
   dotychczasowy pasek z przewijaniem — nic sie nie psuje.
   Bez tej warstwy ostatni chip byl po prostu ucinany przy krawedzi
   i wygladal na blad ukladu zamiast na zapowiedz dalszej tresci. */
.chips-rail { position: relative; }

/* Wygaszenie zamiast twardego ciecia — mowi "tresc idzie dalej".
   pointer-events: none, zeby nie przechwytywalo klikniec w chipy pod spodem. */
.chips-rail::before,
.chips-rail::after {
    content: ''; position: absolute; top: 0; bottom: .5rem; width: 56px;
    pointer-events: none; opacity: 0; transition: opacity .18s var(--ease);
    z-index: 1;
}
.chips-rail::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 15%, transparent);
}
.chips-rail::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 15%, transparent);
}
.chips-rail.has-overflow:not(.at-start)::before { opacity: 1; }
.chips-rail.has-overflow:not(.at-end)::after { opacity: 1; }

.chips-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 30px; height: 30px; border-radius: 50%;
    display: none; place-items: center;
    border: 1px solid var(--line); background: var(--surface);
    box-shadow: 0 2px 10px rgba(15, 30, 50, .12);
    cursor: pointer; z-index: 2;
    transition: border-color .18s var(--ease), opacity .18s var(--ease);
}
.chips-rail.has-overflow .chips-arrow { display: grid; }
.chips-arrow:hover:not(:disabled) { border-color: var(--brand); }
.chips-arrow:disabled { opacity: 0; pointer-events: none; }
.chips-arrow--prev { left: -6px; }
.chips-arrow--next { right: -6px; }

/* Grot z obroconego kwadratu — bez dodatkowego SVG w kazdym widoku */
.chips-arrow span {
    width: 7px; height: 7px; border-top: 2px solid var(--ink-2);
    border-right: 2px solid var(--ink-2); display: block;
}
.chips-arrow--prev span { transform: rotate(-135deg); margin-left: 3px; }
.chips-arrow--next span { transform: rotate(45deg); margin-right: 3px; }

/* Na dotyku przewija sie palcem, wiec strzalki tylko zabieraja miejsce.
   Wygaszenie krawedzi zostaje — ono niesie informacje, nie sterowanie. */
@media (max-width: 720px) {
    .chips-rail.has-overflow .chips-arrow { display: none; }
}

/* --- Siatka kart atrakcji (lista kategorii) --- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }

.a-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s;
}
.a-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.a-card:hover img { transform: scale(1.06); }
.a-card-media { position: relative; aspect-ratio: 3 / 2; }
.a-card-media .media { position: absolute; inset: 0; }
.a-card-top { position: absolute; top: .7rem; left: .7rem; right: .7rem; z-index: 3; display: flex; justify-content: space-between; gap: .5rem; }
.a-card-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.a-card-body h3 { font-size: 1.05rem; }
.a-card-loc { display: flex; align-items: center; gap: .3rem; font-size: .82rem; color: var(--muted); font-weight: 600; }
.a-card-loc svg { width: 13px; height: 13px; flex-shrink: 0; }
.a-card-desc {
    font-size: .89rem; color: var(--ink-2); line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.a-card-foot {
    margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line-2);
    display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
    font-size: .8rem; color: var(--muted); font-weight: 600;
}
.a-card-foot span { display: inline-flex; align-items: center; gap: .3rem; }
.a-card-foot svg { width: 13px; height: 13px; }

/* --- Paginacja --- */
.pager { display: flex; justify-content: center; align-items: center; gap: .35rem; margin-top: 2.5rem; flex-wrap: wrap; }
.pager a, .pager span {
    min-width: 40px; height: 40px; padding: 0 .6rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-full); font-size: .9rem; font-weight: 700;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
    transition: all .2s var(--ease);
}
.pager a:hover { border-color: var(--brand-200); color: var(--brand); transform: translateY(-2px); }
.pager .is-current { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.pager .is-disabled { opacity: .4; pointer-events: none; }
.pager .dots { border: 0; background: none; min-width: 24px; }
.pager svg { width: 17px; height: 17px; }

/* --- Blok SEO na dole listy --- */
/* --------------------------------------------------------------------------
   HUB ATRAKCJI — kafelki kategorii, grup odbiorcow i regionow (/atrakcje)
   -------------------------------------------------------------------------- */
/* Flex zamiast gridu: w gridzie kolumna ma sztywna szerokosc i to TEKST musi sie do niej
   dopasowac — stad „Wladyslawow / o" i „wypoczynkow / e". Tutaj odwrotnie: kazdy kafelek
   jest tak szeroki, jak jego nazwa (min-width: max-content), a flex-grow dociaga rzad
   do pelnej szerokosci, wiec siatka nadal wyglada rowno. */
.hub-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
}

/* Regiony — krotkie etykiety, wiec kafelki nie musza rosnac tak mocno */
.hub-tiles--compact .hub-tile { flex-grow: 1; }

.hub-tile {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    /* Nigdy wezszy niz tresc (bez lamania), ale nie szerszy niz kontener */
    flex: 1 1 auto;
    min-width: max-content;
    max-width: 100%;
    overflow: hidden; /* bezpiecznik: nic nie wychodzi poza obrys kafelka */
    transition: border-color .18s, box-shadow .18s, transform .18s;
}

.hub-tile:hover {
    border-color: var(--brand-200);
    box-shadow: var(--sh-sm);
    transform: translateY(-2px);
}

.hub-tile-ico { font-size: 1.25rem; line-height: 1; flex-shrink: 0; }

.hub-tile-name {
    font-weight: 700;
    font-size: .92rem;
    color: var(--ink);
    line-height: 1.25;
    /* Nazwa w jednej linii — kafelek dopasowuje sie do niej, nie odwrotnie.
       Lamanie w srodku wyrazu („Wladyslaw owo") bylo skutkiem `overflow-wrap: anywhere`,
       ktore tu wczesniej stalo. */
    white-space: nowrap;
}

/* Licznik odsuniety na prawo — kolumna liczb czyta sie szybciej niz tekst wtracony.
   Sama liczba, bez slowa "atrakcje": przy 6 kafelkach w rzedzie slowo zabieralo
   wiecej miejsca niz nazwa kategorii, a kontekst daje naglowek sekcji. */
.hub-tile-count {
    margin-left: auto;
    font-size: .85rem;
    font-weight: 700;
    color: var(--muted);
    white-space: nowrap;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

.hub-note {
    margin-top: 1rem;
    font-size: .88rem;
    color: var(--muted);
}

@media (max-width: 640px) {
    .hub-tile { padding: .7rem .8rem; gap: .5rem; }
    .hub-tile-name { font-size: .86rem; }
    /* Ostatnia deska ratunku na waskim ekranie: gdy nazwa nie miesci sie w calej
       szerokosci telefonu, wolno ja zlamac — ale WYLACZNIE miedzy wyrazami.
       Cieciem w srodku slowa zajmowal sie wczesniej `overflow-wrap: anywhere`
       i to on robil „Wladyslaw owo". */
    .hub-tile { min-width: 0; }
    .hub-tile-name { white-space: normal; overflow-wrap: normal; }
}

.seo-block {
    margin-top: 2.5rem; padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.seo-block h2 { font-size: 1.35rem; margin-bottom: .8rem; }
.seo-block h3 { font-size: 1.1rem; margin: 1.25rem 0 .6rem; }
.seo-block p { font-size: .95rem; line-height: 1.7; margin-bottom: .8rem; }
.seo-block p:last-child { margin-bottom: 0; }
.seo-block ul { margin: 0 0 .8rem; }
.seo-block li { position: relative; padding-left: 1.3rem; margin-bottom: .4rem; font-size: .95rem; line-height: 1.6; color: var(--ink-2); }
.seo-block li::before { content: ''; position: absolute; left: .3rem; top: .6rem; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-200); }
.seo-block a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* --- Pusty stan --- */
.empty {
    text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
    background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg);
}
.empty-ico { font-size: 3rem; margin-bottom: .75rem; }
.empty h2 { font-size: 1.4rem; margin-bottom: .5rem; }
.empty p { margin-bottom: 1.25rem; }

/* --- Overlay filtrow (mobile) --- */
.side-overlay { position: fixed; inset: 0; background: rgba(8,16,28,.45); z-index: 115; opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
.side-overlay.is-open { opacity: 1; visibility: visible; }

/* ==========================================================================
   B. STRONA ATRAKCJI
   ========================================================================== */

/* --- Galeria bento --- */
/* --- Galeria atrakcji ---
   Uklad zalezy od orientacji glownego zdjecia. Widok (show-v3.php) czyta wymiary
   z bazy, dokleja klase .gallery--portrait i zmienna --hero-ar (proporcja szer./wys.).
   Dzieki temu pionowy kadr dostaje pionowy kafelek zamiast byc przyciety w polowie. */
.gallery {
    --gal-h: clamp(280px, 42vw, 480px);
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr; gap: .6rem;
    height: var(--gal-h);
    margin-bottom: 1.5rem;
}
/* Galeria z mniejsza liczba zdjec — inaczej zostaja puste pola w siatce */
.gallery--2 { grid-template-columns: 2fr 1fr; }
/* Przy dwoch zdjeciach drugi kafelek bierze cala wysokosc — inaczej pod nim zostaje dziura */
.gallery--2 .gallery-item:nth-child(2) { grid-row: span 2; }
.gallery--3 { grid-template-columns: 2fr 1fr; }
.gallery--4 .gallery-item:nth-child(4) { grid-column: span 2; }
.gallery--1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery--1 .gallery-item:first-child { grid-row: span 1; }

/* Glowne zdjecie pionowe — kolumny liczone z wysokosci galerii, nie z jej szerokosci.
   Hero dostaje dokladnie swoja proporcje (--hero-ar), kafelki obok stale 4:3.
   Suma bywa wezsza niz kontener, dlatego calosc jest wysrodkowana. */
.gallery--portrait {
    --gal-h: clamp(340px, 50vw, 580px);
    --gal-thumb-h: calc((var(--gal-h) - .6rem) / 2);
    grid-template-columns:
        minmax(0, calc(var(--gal-h) * var(--hero-ar)))
        minmax(0, calc(var(--gal-thumb-h) * 1.34))
        minmax(0, calc(var(--gal-thumb-h) * 1.34));
    justify-content: center;
}
/* Jedno zdjecie pionowe: sam hero, wysrodkowany zamiast rozciagniecia na cala szerokosc */
.gallery--portrait.gallery--1 { grid-template-columns: minmax(0, calc(var(--gal-h) * var(--hero-ar))); }
/* Dwa zdjecia: drugi kafelek ma pelna wysokosc, wiec i jemu dajemy pionowa proporcje */
.gallery--portrait.gallery--2 {
    grid-template-columns:
        minmax(0, calc(var(--gal-h) * var(--hero-ar)))
        minmax(0, calc(var(--gal-h) * .72));
}
/* Trzy zdjecia: hero + kolumna dwoch kafelkow 4:3 */
.gallery--portrait.gallery--3 {
    grid-template-columns:
        minmax(0, calc(var(--gal-h) * var(--hero-ar)))
        minmax(0, calc(var(--gal-thumb-h) * 1.34));
}
.gallery--portrait.gallery--4 .gallery-item:nth-child(4) { grid-column: span 2; }

.gallery-item { position: relative; overflow: hidden; border-radius: var(--r-md); cursor: pointer; }
.gallery-item:first-child { grid-row: span 2; border-radius: var(--r-lg); }
/* Pionowy kadr w poziomym kafelku (miniatury) — trzymamy gorna czesc zdjecia,
   bo tam zwykle jest temat: wieza, wieza kosciola, sylwetka */
.gallery-item.is-portrait:not(:first-child) .media img { object-position: center 28%; }
.gallery-item .media { position: absolute; inset: 0; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-more {
    position: absolute; right: 1rem; bottom: 1rem; z-index: 4;
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .6rem 1.05rem; border-radius: var(--r-full);
    background: rgba(255,255,255,.94); color: var(--ink);
    font-size: .85rem; font-weight: 700; box-shadow: var(--sh-md);
    backdrop-filter: blur(8px); transition: transform .2s var(--ease);
}
.gallery-more:hover { transform: translateY(-2px); }
.gallery-more svg { width: 16px; height: 16px; }

/* Brak zdjec — placeholder zamiast galerii */
.gallery-empty {
    display: grid; place-items: center; height: clamp(200px, 26vw, 320px);
    border-radius: var(--r-lg); margin-bottom: 1.5rem;
    background: linear-gradient(140deg, var(--brand-100), var(--brand-50) 55%, var(--accent-50));
    color: var(--brand-400);
}
.gallery-empty svg { width: 64px; height: 64px; opacity: .5; }

/* --- Naglowek atrakcji --- */
.attr-head { margin-bottom: 1.5rem; }
.attr-head-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.attr-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; }
.attr-head h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.9rem); margin-bottom: .7rem; }
.attr-head-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.icon-outline {
    width: 42px; height: 42px; border-radius: var(--r-full);
    border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
    display: grid; place-items: center; box-shadow: var(--sh-xs);
    transition: all .2s var(--ease);
}
.icon-outline:hover { color: var(--brand); border-color: var(--brand-200); transform: translateY(-2px); }
.icon-outline.is-on { color: #E0245E; border-color: #F3C0CE; }
.icon-outline.is-on svg { fill: currentColor; }
.icon-outline svg { width: 18px; height: 18px; }

.attr-types { display: flex; flex-wrap: wrap; gap: .4rem; }
.type-link {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .8rem; border-radius: var(--r-full);
    background: var(--bg-soft); border: 1px solid var(--line);
    font-size: .84rem; font-weight: 600; color: var(--ink-2);
    transition: all .2s var(--ease);
}
.type-link:hover { border-color: var(--brand-200); color: var(--brand); background: var(--brand-50); }

/* --- Nawigacja po sekcjach (sticky) --- */
.toc {
    position: sticky; top: var(--header-h); z-index: 40;
    background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(12px);
    border-block: 1px solid var(--line);
    margin-bottom: 1.75rem;
}
[data-theme="dark"] .toc { background: rgba(11,20,33,.9); }
.toc-inner { display: flex; gap: .3rem; overflow-x: auto; scrollbar-width: none; padding: .5rem 0; }
.toc-inner::-webkit-scrollbar { display: none; }
.toc-link {
    flex-shrink: 0; padding: .45rem .9rem; border-radius: var(--r-full);
    font-size: .86rem; font-weight: 700; color: var(--muted);
    transition: background .2s, color .2s;
}
.toc-link:hover { background: var(--line-2); color: var(--ink); }
.toc-link.is-active { background: var(--brand-50); color: var(--brand); }

/* --- Sekcje tresci --- */
.a-section {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-lg); padding: clamp(1.25rem, 2.4vw, 1.85rem);
    margin-bottom: 1.15rem; scroll-margin-top: calc(var(--header-h) + 70px);
}
.a-section > h2 {
    display: flex; align-items: center; gap: .6rem;
    font-size: clamp(1.15rem, 1rem + .5vw, 1.42rem); margin-bottom: 1.1rem;
}
.a-section > h2 svg { width: 20px; height: 20px; color: var(--brand); flex-shrink: 0; }

/* --- Wyrozniki --- */
/* Dwie kolumny tylko wtedy, gdy najdluzszy wyroznik miesci sie w jednej linii.
   --hl-min ustawia widok na podstawie dlugosci tekstu; przy dlugich wyroznikach
   auto-fit sam schodzi do jednej kolumny zamiast lamac je w polowie. */
.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--hl-min, 20rem)), 1fr));
    gap: .7rem 1.5rem;
}
.highlight {
    display: flex; align-items: flex-start; gap: .6rem;
    font-size: .93rem; color: var(--ink-2); line-height: 1.5;
    /* Krotki ogon w drugiej linii wyglada gorzej niz nieco ciasniejszy odstep */
    text-wrap: pretty;
}
.highlight-dot {
    width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; margin-top: .48rem;
    background: var(--leaf);
}
.info-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line-2); }

/* --- Dla kogo (tagi) --- */
.aud-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.aud-tag {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .5rem .9rem; border-radius: var(--r-full);
    background: var(--bg-soft); border: 1px solid var(--line);
    font-size: .88rem; font-weight: 600; color: var(--ink-2);
    transition: all .2s var(--ease);
}
.aud-tag:hover { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand); transform: translateY(-2px); }
.aud-tag span:first-child { font-size: 1rem; }

/* --- Tresc artykulu ---
   UWAGA: szerokosc linii ograniczamy na poziomie KOLUMNY (.container--article),
   nie samego tekstu. Limit na .prose robil martwe pole w prawej czesci karty
   na szerokich monitorach. */
.prose { max-width: none; }
.prose p { font-size: 1.06rem; line-height: 1.75; margin-bottom: 1.15rem; color: var(--ink-2); }
.prose h2 {
    font-size: clamp(1.2rem, 1.05rem + .5vw, 1.4rem);
    margin: 2rem 0 .75rem; padding-left: .85rem;
    border-left: 3px solid var(--brand); line-height: 1.3;
}
.prose h3 {
    font-size: clamp(1.1rem, 1rem + .4vw, 1.28rem);
    margin: 2rem 0 .75rem; padding-left: .85rem;
    border-left: 3px solid var(--brand); line-height: 1.3;
}
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose h4 { font-size: 1.05rem; margin: 1.5rem 0 .5rem; }
.prose ul, .prose ol { margin: 0 0 1.15rem; padding-left: 0; }
.prose li {
    position: relative; padding-left: 1.5rem; margin-bottom: .6rem;
    font-size: .99rem; line-height: 1.7; color: var(--ink-2);
}
.prose ul li::before {
    content: ''; position: absolute; left: .35rem; top: .68rem;
    width: 6px; height: 6px; border-radius: 50%; background: var(--brand-200);
}
/* list-style: none jest tu obowiazkowe. Reset w design-v2.css zeruje wypunktowanie
   tylko dla <ul>, wiec <ol> zachowywalo natywny marker — a ponizej dokladamy wlasny
   licznik w ::before. Efekt: kazdy punkt mial dwa numery („1. 1. Gwarancja ciszy"). */
.prose ol { counter-reset: prose-ol; list-style: none; }
.prose ol li { counter-increment: prose-ol; }
.prose ol li::before {
    content: counter(prose-ol) "."; position: absolute; left: 0; top: 0;
    font-weight: 800; color: var(--brand); font-size: .92rem;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--r-md); margin: 1rem 0; }

/* --- Wskazowki --- */
.tips { display: flex; flex-direction: column; gap: .1rem; }
.tip {
    display: flex; align-items: flex-start; gap: .7rem;
    padding: .7rem .8rem; border-radius: var(--r-sm);
    font-size: .95rem; color: var(--ink-2); line-height: 1.55;
    transition: background .2s;
}
.tip:hover { background: var(--bg-soft); }
.tip svg { width: 18px; height: 18px; color: var(--leaf); flex-shrink: 0; margin-top: .15rem; }

/* --- Mapa --- */
.map-box { border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); height: 380px; }
.map-box .leaflet-container { height: 100%; width: 100%; font: inherit; }
.map-foot {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-top: .9rem; font-size: .9rem; color: var(--ink-2);
}
.map-foot b { color: var(--ink); }

/* --- Czas zwiedzania --- */
.visit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.visit-grid--single { grid-template-columns: 1fr; max-width: 420px; }
.visit-card {
    padding: 1.25rem 1.15rem; border-radius: var(--r-md);
    background: var(--bg-soft); border: 1px solid var(--line);
    text-align: center; transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.visit-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.visit-card--short  { border-top: 3px solid var(--accent); }
.visit-card--medium { border-top: 3px solid var(--brand); }
.visit-card--long   { border-top: 3px solid var(--leaf); }
.visit-ico { font-size: 1.6rem; margin-bottom: .5rem; }
.visit-label { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.visit-time { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; margin: .3rem 0 .5rem; }
.visit-desc { font-size: .85rem; line-height: 1.55; color: var(--ink-2); }

/* --- FAQ --- */
.faq { display: flex; flex-direction: column; gap: .55rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--brand-200); box-shadow: var(--sh-sm); }
.faq-q {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .95rem 1.1rem; cursor: pointer; list-style: none;
    font-size: .97rem; font-weight: 700; color: var(--ink);
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
    content: ''; width: 11px; height: 11px; flex-shrink: 0;
    border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq-item[open] .faq-q::after { transform: rotate(225deg) translateY(-2px); }
.faq-q:hover { background: var(--bg-soft); }
.faq-a { padding: 0 1.1rem 1.1rem; font-size: .95rem; line-height: 1.7; color: var(--ink-2); }

/* --- Atrakcje w poblizu --- */
.nearby-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.nearby-card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.nearby-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.nearby-card:hover img { transform: scale(1.06); }
.nearby-media { position: relative; aspect-ratio: 16 / 10; }
.nearby-media .media { position: absolute; inset: 0; }
.nearby-dist { position: absolute; top: .6rem; left: .6rem; z-index: 3; }
.nearby-body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .3rem; }
.nearby-body h3 { font-size: .97rem; }
.nearby-body p {
    font-size: .84rem; line-height: 1.5; color: var(--ink-2);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nearby-loc { display: flex; align-items: center; gap: .3rem; font-size: .79rem; color: var(--muted); font-weight: 600; margin-top: .15rem; }
.nearby-loc svg { width: 12px; height: 12px; }

/* --- Sidebar atrakcji: szybkie fakty --- */
.facts { display: flex; flex-direction: column; gap: .1rem; }
.fact { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; }
.fact + .fact { border-top: 1px solid var(--line-2); }
.fact-ico {
    width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
    display: grid; place-items: center; background: var(--bg-soft); color: var(--brand);
}
.fact-ico svg { width: 16px; height: 16px; }
.fact-txt { min-width: 0; }
.fact-txt span { display: block; font-size: .74rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.fact-txt b { font-size: .92rem; font-weight: 700; }

/* --- Sidebar: noclegi --- */
.stay-mini { display: flex; gap: .75rem; padding: .7rem; border-radius: var(--r-md); transition: background .2s; }
.stay-mini:hover { background: var(--bg-soft); }
.stay-mini-media { width: 84px; height: 68px; border-radius: 12px; flex-shrink: 0; position: relative; overflow: hidden; }
.stay-mini-media .media { position: absolute; inset: 0; }
.stay-mini-body { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.stay-mini-body b { font-size: .89rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stay-mini-meta { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); font-weight: 600; }
.stay-mini-meta svg { width: 12px; height: 12px; }
.stay-mini-price { margin-top: auto; font-size: .86rem; font-weight: 800; }
.stay-mini-price span { font-weight: 600; color: var(--muted); font-size: .78rem; }

/* --- Sidebar: CTA --- */
.side-cta {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg); padding: 1.25rem;
    background: linear-gradient(135deg, var(--brand-700), var(--brand));
    color: #fff; margin-top: 1rem;
}
.side-cta::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(45% 60% at 90% 10%, rgba(255,255,255,.18), transparent 60%);
}
.side-cta > * { position: relative; z-index: 2; }
.side-cta h3 { color: #fff; font-size: 1.05rem; margin-bottom: .4rem; }
.side-cta p { color: rgba(255,255,255,.85); font-size: .87rem; margin-bottom: 1rem; }

/* --- Lightbox galerii --- */
.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(6,12,20,.96);
    display: none; align-items: center; justify-content: center;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: var(--r-md); }

/* Podpis licencyjny zdjecia (CC wymaga autora, zrodla i licencji).
   Pozycjonowany nad dolna krawedzia, nie w przeplywie — inaczej dokladalby sie
   do wysokosci obrazka i zdjecie skakaloby przy przechodzeniu miedzy kadrami. */
.lightbox-credit {
    position: absolute; bottom: 0; left: 0; right: 0;
    margin: 0; padding: .75rem 1.25rem;
    text-align: center; font-size: .78rem; line-height: 1.45;
    color: rgba(255,255,255,.72);
    background: linear-gradient(to top, rgba(6,12,20,.9), rgba(6,12,20,0));
}
.lightbox-credit a { color: rgba(255,255,255,.92); text-decoration: underline; }
.lightbox-credit a:hover { color: #fff; }
.lightbox-bar {
    position: absolute; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.25rem; color: #fff;
}
.lightbox-count { font-size: .9rem; font-weight: 700; }
.lightbox-btn {
    width: 46px; height: 46px; border-radius: var(--r-full);
    background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center;
    transition: background .2s;
}
.lightbox-btn:hover { background: rgba(255,255,255,.24); }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 1.25rem; }
.lightbox-next { right: 1.25rem; }

/* ==========================================================================
   C. RESPONSYWNOSC PODSTRON
   ========================================================================== */
@media (min-width: 1700px) {
    .page-layout { grid-template-columns: 320px minmax(0, 1fr); }
    .page-layout--right { grid-template-columns: minmax(0, 1fr) 360px; }
    /* Blok SEO na liscie — dlugie linie na szerokim ekranie sa nieczytelne */
    .seo-block p, .seo-block li { max-width: 92ch; }
}
@media (min-width: 2200px) {
    .cards-grid { grid-template-columns: repeat(4, 1fr); }
    /* Font rosnie (html 17px), wiec kolumna tekstu tez — inaczej linie robia sie za krotkie */
    .container--article { max-width: 1250px; }
    .page-layout--right { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (min-width: 2800px) {
    .container--article { max-width: 1330px; }
}

@media (max-width: 1100px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .nearby-grid { grid-template-columns: repeat(2, 1fr); }
    .page-layout--right { grid-template-columns: 1fr; }
    /* Sidebar lezy pod trescia — sticky i wlasny scroll nie maja tu sensu */
    .page-layout--right > aside {
        position: static; max-height: none; overflow: visible;
    }
}

@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; }
    .btn-filters-mobile { display: inline-flex; }
    /* Sidebar jako panel wysuwany (selektor musi przebic .page-layout > aside) */
    .page-layout > aside.page-side {
        position: fixed; top: 0; bottom: 0; left: 0; width: min(330px, 88vw);
        z-index: 120; background: var(--surface); padding: 1.15rem;
        max-height: none; overflow-y: auto; transform: translateX(-100%);
        transition: transform .3s var(--ease); box-shadow: var(--sh-lg);
    }
    .page-layout > aside.page-side.is-open { transform: translateX(0); }
    .page-side .side-card { border: 0; box-shadow: none; padding: 0; }
    .side-close { display: grid !important; }
    .gallery { grid-template-columns: 1fr 1fr; height: 340px; }
    .gallery-item:first-child { grid-column: span 2; }
    .gallery-item:nth-child(4), .gallery-item:nth-child(5) { display: none; }
    /* Pionowy hero na waskim ekranie: pelna szerokosc, ale wlasna proporcja zamiast
       sztywnych 340 px — inaczej na telefonie kadr traci gore i dol */
    .gallery--portrait {
        height: auto; grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto; justify-content: stretch;
    }
    .gallery--portrait .gallery-item:first-child { grid-row: span 1; aspect-ratio: var(--hero-ar); }
    .gallery--portrait .gallery-item:not(:first-child) { aspect-ratio: 4 / 3; }
    .gallery--portrait.gallery--1 .gallery-item:first-child { grid-column: span 2; }
    .visit-grid { grid-template-columns: 1fr; }
}
.side-close { display: none; }

@media (max-width: 640px) {
    .cards-grid, .nearby-grid { grid-template-columns: 1fr; }
    .highlights { grid-template-columns: 1fr; }
    .page-hero-head { flex-direction: column; gap: .9rem; }
    .page-hero-emoji { width: 60px; height: 60px; font-size: 1.8rem; border-radius: 18px; }
    .attr-head-row { flex-direction: column; gap: 1rem; }
    .gallery { height: 260px; }
    /* Portret trzyma sie proporcji zdjecia — sztywna wysokosc znow by go przycinala */
    .gallery--portrait { height: auto; }
    .map-box { height: 300px; }
    .a-section { padding: 1.1rem; border-radius: var(--r-md); }
}

/* ==========================================================================
   STRONA OFERTY (/oferta/...) — komponenty wlasne dla noclegu
   Reszta (galeria, .a-section, .side-card, .nearby-*) jest wspolna z atrakcjami.
   ========================================================================== */

/* gap zamiast spacji w HTML — inaczej przecinek po linku miasta odskakiwal
   od nazwy („Bukowina Tatrzanska , Malopolskie") */
.stay-loc { display: flex; align-items: center; gap: .4rem; margin: .5rem 0 0; color: var(--muted); font-weight: 600; }
.stay-loc > span { margin-left: -.4rem; }
.stay-loc svg { width: 16px; height: 16px; flex-shrink: 0; }
.stay-loc a { color: var(--ink-2); }
.stay-loc a:hover { color: var(--brand); }

.stay-lead { font-size: 1.02rem; color: var(--ink-2); margin: 0 0 1.2rem; line-height: 1.6; }

/* Parametry obiektu — liczba nad podpisem, bo wzrok ma zlapac same cyfry */
.stay-facts {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .8rem; margin-bottom: 1.2rem;
}
.stay-fact {
    display: flex; flex-direction: column; align-items: center; gap: .1rem;
    padding: .9rem .6rem; text-align: center;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md);
}
.stay-fact-ico { font-size: 1.15rem; line-height: 1; margin-bottom: .25rem; }
.stay-fact b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.stay-fact span:last-child { font-size: .78rem; color: var(--muted); font-weight: 600; }

/* Licznik przy naglowku sekcji */
.h2-count {
    font-size: .78rem; font-weight: 800; color: var(--brand);
    background: var(--brand-50); border-radius: var(--r-full); padding: .15rem .55rem;
}
.section-lead { color: var(--muted); margin: -.4rem 0 1.1rem; font-size: .9rem; }

/* --- Wyposazenie: grupy w kolumnach, w grupie lista pionowa --- */
.amen-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem 1.8rem; }
.amen-group-name {
    font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
    color: var(--muted); margin: 0 0 .7rem; padding-bottom: .5rem; border-bottom: 1px solid var(--line);
}
.amen-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.amen-item { display: flex; align-items: center; gap: .6rem; font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.amen-ico {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; flex-shrink: 0; font-size: .95rem;
    background: var(--brand-50); border-radius: var(--r-sm);
}

/* --- Pokoje --- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.room-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.room-media { aspect-ratio: 3 / 2; position: relative; }
.room-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-body { padding: .9rem 1rem 1.1rem; }
.room-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.room-body h3 { font-size: 1.02rem; font-weight: 800; margin: .2rem 0 .35rem; }
.room-body p { font-size: .86rem; color: var(--muted); margin: 0 0 .6rem; }
.room-meta { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .82rem; color: var(--ink-2); font-weight: 600; }

/* --- Zasady pobytu --- */
.rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .7rem; }
.rule {
    display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
    padding: .8rem 1rem; background: var(--bg-soft); border-radius: var(--r-md);
}
.rule span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.rule b { font-size: .95rem; font-weight: 800; }

/* --- Karta kontaktu w sidebarze --- */
.side-card--book { border-color: var(--brand); box-shadow: var(--sh-md); }
.book-price { text-align: center; padding-bottom: 1rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.book-price > span { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); display: block; }
.book-price b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; color: var(--brand); }
.book-price-unit { font-size: .9rem; color: var(--muted); font-weight: 600; }
.book-price-range { font-size: .82rem; color: var(--muted); margin: .3rem 0 0; }

.book-phone-number {
    display: block; text-align: center; font-size: 1.35rem; font-weight: 800;
    letter-spacing: -.02em; color: var(--brand); padding: .6rem 0;
}
/* Bez tego numer widac od razu: wlasne `display` bije domyslne `display:none`
   atrybutu hidden, wiec przycisk „Pokaz numer" i numer byly widoczne naraz */
.book-phone-number[hidden] { display: none; }
.book-links { display: grid; gap: .45rem; margin-top: .9rem; }
.book-link {
    display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem;
    background: var(--bg-soft); border-radius: var(--r-sm);
    font-size: .88rem; font-weight: 600; color: var(--ink-2);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.book-link:hover { background: var(--brand-50); color: var(--brand); }
.book-note { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; line-height: 1.5; text-align: center; }

/* --- Gospodarz --- */
.host { display: flex; align-items: center; gap: .8rem; }
.host-photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.host-photo--empty { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); font-size: 1.4rem; }
.host b { display: block; font-size: .95rem; font-weight: 800; }
.host span { font-size: .82rem; color: var(--muted); }
.host-bio { font-size: .86rem; color: var(--ink-2); margin: .8rem 0 0; line-height: 1.55; }

/* Typ atrakcji na karcie „w poblizu" */
.nearby-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--brand); }

/* --- Karta obiektu na listach noclegow (partials/stay-card-v3.php) --- */
/* Cena w stopce karty odsunieta na prawo — kolumna liczb czyta sie szybciej
   niz cena wtracona miedzy liczbe gosci a sypialnie */
.a-card-price { margin-left: auto; font-weight: 800; color: var(--brand); white-space: nowrap; }
.a-card-price small { font-weight: 600; color: var(--muted); }
.stay-price { font-weight: 800; }

.side-empty { font-size: .88rem; color: var(--muted); margin: 0; }

/* Kafel rodzaju obiektu bez ani jednej oferty — nadal klikalny (to nawigacja
   po katalogu), ale wizualnie cofniety, zeby nie obiecywal wynikow */
.hub-tile--empty { opacity: .55; }
.hub-tile--empty:hover { opacity: 1; }

@media (max-width: 640px) {
    .stay-facts { grid-template-columns: repeat(2, 1fr); }
    .amen-groups { grid-template-columns: 1fr; }
    .book-price b { font-size: 1.7rem; }
}

/* ==========================================================================
   STRONA MAPY (/mapa) — dwie warstwy: atrakcje i noclegi
   ========================================================================== */

.map-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: .75rem; margin-bottom: 1rem;
}

/* Przelacznik warstw — segment, nie dwa osobne przyciski, zeby bylo widac,
   ze to jeden wybor z dwoch, a nie dwie niezalezne akcje */
.map-tabs {
    display: inline-flex; gap: .25rem; padding: .25rem;
    background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-full);
}
.map-tab {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .5rem .95rem; border-radius: var(--r-full);
    font-size: .88rem; font-weight: 700; color: var(--ink-2);
    background: none; border: 0; cursor: pointer; transition: all .2s var(--ease);
}
.map-tab:hover { color: var(--brand); }
.map-tab.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--sh-sm); }
.map-tab-count {
    font-size: .76rem; font-weight: 800; color: var(--muted);
    background: var(--bg-soft); border-radius: var(--r-full); padding: .05rem .4rem;
}
.map-tab.is-active .map-tab-count { background: var(--brand-50); color: var(--brand); }

.map-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }

/* Kontener mapy — bez jawnej wysokosci Leaflet renderuje pustke.
   z-index nizszy niz sticky header, inaczej kafelki wchodza na nawigacje. */
.map-canvas {
    width: 100%; height: 620px; position: relative; z-index: 1;
    border-radius: var(--r-lg); border: 1px solid var(--line); overflow: hidden;
    background: var(--bg-soft);
}
.map-canvas .leaflet-container { height: 100%; width: 100%; font: inherit; background: var(--bg-soft); }

.map-hint { font-size: .82rem; color: var(--muted); margin: .6rem 0 1.75rem; }

/* --- Pinezka: kolo z emoji typu atrakcji ---
   Celowo kolo, a nie klasyczna „kropla": kropla wymaga obrotu o 45°, przez ktory
   emoji w srodku tez staloby przekrzywione. Kolor obwodki rozroznia warstwy. */
.map-pin-wrap { background: none; border: 0; }
.map-pin {
    display: flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; font-size: 1.05rem; line-height: 1;
    background: var(--surface); color: var(--ink);
    border: 2px solid var(--brand); border-radius: 50%;
    box-shadow: var(--sh-md); transition: transform .15s var(--ease);
}
.map-pin--properties { border-color: var(--accent); }
.map-pin-wrap:hover .map-pin { transform: scale(1.12); }

.map-list-title { font-size: 1.35rem; margin: 0 0 1.1rem; }

/* Lista noclegow — prosty spis, bo to warstwa pomocnicza */
.map-simple-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.map-simple-list li {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem;
    padding: .7rem .9rem; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-md);
}
.map-simple-list a { font-weight: 700; }
.map-simple-list span { font-size: .85rem; color: var(--muted); }
.map-simple-list b { margin-left: auto; font-size: .88rem; color: var(--brand); }

/* --- Popup --- */
.map-pop-wrap .leaflet-popup-content-wrapper {
    padding: 0; overflow: hidden; border-radius: var(--r-md);
    background: var(--surface); color: var(--ink); box-shadow: var(--sh-lg);
}
.map-pop-wrap .leaflet-popup-content { margin: 0; }
.map-pop-wrap .leaflet-popup-tip { background: var(--surface); }
/* Stala szerokosc zamiast auto: Leaflet liczy szerokosc popupu z tresci, a zdjecie
   ma tylko proporcje (bez wlasnej szerokosci), wiec kolumna zwijala sie do ~70 px
   i kazde slowo lamalo sie osobno */
.map-pop { width: 244px; }
.map-pop-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.map-pop-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-pop-body { padding: .8rem .9rem .9rem; }
.map-pop-type { font-size: .72rem; font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.map-pop-body h3 { font-size: 1rem; font-weight: 800; margin: .2rem 0 .15rem; line-height: 1.25; }
.map-pop-loc { font-size: .82rem; color: var(--muted); margin: 0; }
.map-pop-meta { font-size: .8rem; color: var(--ink-2); margin: .35rem 0 0; }
.map-pop-link {
    display: inline-block; margin-top: .6rem; font-size: .85rem; font-weight: 700; color: var(--brand);
}

@media (max-width: 900px) {
    .map-canvas { height: 480px; }
    .map-toolbar { align-items: stretch; }
    .map-filters { width: 100%; }
    .map-filters .select-wrap { flex: 1; }
}

@media (max-width: 640px) {
    .map-canvas { height: 400px; }
    .map-tabs { width: 100%; }
    .map-tab { flex: 1; justify-content: center; }
}
