@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

::after,
::before {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
}

li {
    list-style: none;
}

h1 {
    font-weight: 600;
    font-size: 1.5rem;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.wrapper {
    display: flex;
}

.main {
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    transition: all 0.35s ease-in-out;
    background-color: #fafbfe;

}

#sidebar {
    width: 70px;
    min-width: 70px;
    z-index: 1000;
    transition: all .25s ease-in-out;
    background-color: #0e2238;
    display: flex;
    flex-direction: column;
}

#sidebar.expand {
    width: 260px;
    min-width: 260px;
}

.toggle-btn {
    background-color: transparent;
    cursor: pointer;
    border: 0;
    padding: 1rem 1.5rem;
}

.toggle-btn i {
    font-size: 1.5rem;
    color: #FFF;
}

.sidebar-logo {
    margin: auto 0;
}

.sidebar-logo a {
    color: #FFF;
    font-size: 1.15rem;
    font-weight: 600;
}

#sidebar:not(.expand) .sidebar-logo,
#sidebar:not(.expand) a.sidebar-link span {
    display: none;
}

.sidebar-nav {
    padding: 2rem 0;
    flex: 1 1 auto;
}

a.sidebar-link {
    padding: .625rem 1.625rem;
    color: #FFF;
    display: block;
    font-size: 0.9rem;
    white-space: nowrap;
    border-left: 3px solid transparent;
}

.sidebar-link i {
    font-size: 1.1rem;
    margin-right: .75rem;
}

a.sidebar-link:hover {
    background-color: rgba(255, 255, 255, .075);
    border-left: 3px solid #3b7ddd;
}

.sidebar-item {
    position: relative;
}

#sidebar:not(.expand) .sidebar-item .sidebar-dropdown {
    position: absolute;
    top: 0;
    left: 70px;
    background-color: #0e2238;
    padding: 0;
    min-width: 15rem;
    display: none;
}

#sidebar:not(.expand) .sidebar-item:hover .has-dropdown+.sidebar-dropdown {
    display: block;
    max-height: 15em;
    width: 100%;
    opacity: 1;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"]::after {
    border: solid;
    border-width: 0 .075rem .075rem 0;
    content: "";
    display: inline-block;
    padding: 2px;
    position: absolute;
    right: 1.5rem;
    top: 1.4rem;
    transform: rotate(-135deg);
    transition: all .2s ease-out;
}

#sidebar.expand .sidebar-link[data-bs-toggle="collapse"].collapsed::after {
    transform: rotate(45deg);
    transition: all .2s ease-out;
}

.imgcontainer {
    display: flex;
}

.imgfixed {
    padding: 5px;
}

.imgflexible {
    flex-grow: 1;
}

/* Ramka miniatury (wcześniej przestarzały atrybut border="1" na img). */
.imgfixed img {
    border: 1px solid #000;
}

/* <nav> owija listę menu bocznego — to on, nie lista, wypełnia wolne
   miejsce w kolumnie (stopka menu zostaje przyklejona na dole). */
.sidebar-nawigacja {
    flex: 1 1 auto;
}

/* Na wąskich ekranach (telefon) obrazek nad tekstem, nie obok — przy stałych
   200 px obrazka tekst obok zostawał w kilkupikselowej kolumnie. */
@media (max-width: 575.98px) {
    .imgcontainer {
        flex-direction: column;
    }

    .imgfixed {
        margin-right: 0 !important;
        margin-bottom: .5rem;
    }

    .imgfixed img {
        max-width: 100%;
        height: auto;
    }
}

/* ==== Strona główna (index.tpl) ==== */

.hero-bieszczady {
    position: relative;
    overflow: hidden;
    padding: 4rem 2rem 7rem;
    margin: -1rem -1.75rem 2rem;
    background: linear-gradient(135deg, #0e2238 0%, #123524 55%, #1b4332 100%);
    color: #fff;
}

@media (min-width: 768px) {
    .hero-bieszczady {
        padding: 5rem 3rem 8rem;
    }
}

.hero-bieszczady::before {
    content: "";
    position: absolute;
    top: -15%;
    right: -5%;
    width: 22rem;
    height: 22rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 162, 89, .55), transparent 70%);
    filter: blur(6px);
    z-index: 0;
}

.hero-mountains {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 45%;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 46rem;
}

.hero-eyebrow {
    display: inline-block;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
    font-weight: 600;
    color: #f4a259;
    margin-bottom: .75rem;
}

.hero-lead {
    color: rgba(255, 255, 255, .85);
    max-width: 40rem;
}

.hero-weather-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    border-radius: 3rem;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .9rem;
}

.hero-weather-chip:hover {
    background: rgba(255, 255, 255, .2);
    color: #fff;
}

.section-title {
    font-weight: 600;
    font-size: 1.25rem;
    color: #0e2238;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(14, 34, 56, .08);
    color: #0e2238;
    text-align: center;
    font-weight: 600;
    font-size: .9rem;
    transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(14, 34, 56, .12);
    color: #0e2238;
}

.feature-card i {
    font-size: 1.75rem;
    color: #3b7ddd;
}

.teaser-card {
    display: flex;
    gap: 1rem;
    padding: .75rem;
    margin-bottom: .75rem;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid rgba(14, 34, 56, .08);
    color: inherit;
    transition: box-shadow .2s ease;
}

.teaser-card:hover {
    box-shadow: 0 .5rem 1.5rem rgba(14, 34, 56, .1);
    color: inherit;
}

.teaser-card img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: .5rem;
    flex-shrink: 0;
}

.teaser-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

.teaser-card p {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: 0;
}

.teaser-more {
    font-size: .85rem;
    font-weight: 600;
}

.cta-kontakt {
    border-radius: 1rem;
    background: #fafbfe;
}

/* ==== Wyszukiwarka noclegów / gastronomii (wspólne klasy) ==== */

.listing-filtry {
    border-radius: 1rem;
    border-color: rgba(14, 34, 56, .08);
}

.listing-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(14, 34, 56, .08);
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(14, 34, 56, .12);
    color: inherit;
}

.listing-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

/* Zdjęcie/placeholder na stronie szczegółów (nocleg/gastro/transport/
   wypożyczalnia) — pełna szerokość kolumny, ale ograniczona wysokość
   (samo img-fluid + w-100 na szerokim ekranie dawało bardzo wysoki
   obrazek, bo skaluje się proporcjonalnie do pełnej szerokości). */
.detal-zdjecie {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
}

.listing-card-body {
    padding: 1rem;
}

.listing-card-body h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: .25rem;
}

.listing-meta {
    font-size: .85rem;
    color: #6c757d;
    margin-bottom: .25rem;
}

.listing-cena {
    font-weight: 600;
    color: #0e2238;
    margin-bottom: 0;
}

.listing-fakty li {
    margin-bottom: .4rem;
}

.listing-fakty i {
    width: 1.25rem;
    display: inline-block;
    color: #3b7ddd;
}

/* ==== Mapa (Leaflet/OSM) — pełny dostępny ekran ==== */

.mapa-pelny-ekran {
    position: relative;
    margin: -1rem -1.75rem;
    height: 100vh;
}

#mapa-leaflet {
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mapa-legenda {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background: #fff;
    border-radius: .75rem;
    padding: .75rem 1rem;
    box-shadow: 0 .25rem 1rem rgba(14, 34, 56, .15);
    font-size: .85rem;
}

.mapa-legenda .kropka {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
    margin-right: .4rem;
}

.mapa-legenda button {
    display: block;
    width: 100%;
    background: none;
    border: none;
    padding: .15rem 0;
    text-align: left;
    font-size: inherit;
    color: inherit;
    cursor: pointer;
}

.mapa-legenda button {
    font-weight: 600;
}

.mapa-legenda button.wylaczone {
    opacity: .55;
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-color: #adb5bd;
}

.mapa-legenda button.wylaczone .kropka {
    background: #adb5bd !important;
}

.mapa-marker {
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 2px solid #fff;
    box-shadow: 0 .1rem .3rem rgba(0, 0, 0, .4);
}

.mapa-marker i {
    transform: rotate(45deg);
    display: block;
    text-align: center;
    line-height: 1.5rem;
    color: #fff;
    font-size: .85rem;
}

/* ==== Pogoda (/pogoda/) ==== */

.pogoda-karta-glowna {
    position: relative;
    /* z-index:0 (nie samo position:relative) tworzy nowy kontekst
       warstw — bez tego ujemny z-index ikonki niżej "uciekałby" poza
       kartę i renderował się POD jej białym tłem, czyli byłby
       niewidoczny (złapane wizualnie: pierwsza wersja bez tej linii
       faktycznie nic nie pokazywała, mimo że ikonka była w DOM-ie). */
    z-index: 0;
    overflow: hidden;
}

/* Delikatna ikonka aktualnej pogody w tle karty (patrz pogoda.php —
   dobierana z weather_main przez ikona_pogody_lni()). z-index:-1 w
   parze z kontekstem warstw karty wyżej sprawia, że ikonka renderuje
   się nad tłem karty, ale pod całą treścią (tekst zawsze w normalnym
   przepływie dokumentu maluje się nad elementami o ujemnym z-index) —
   bez tego trzeba by ręcznie podnosić z-index każdego akapitu w karcie. */
.pogoda-ikona-tlo {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    font-size: 10rem;
    line-height: 1;
    color: rgba(14, 34, 56, .06);
    z-index: -1;
    pointer-events: none;
}

@media (max-width: 767px) {
    .pogoda-ikona-tlo {
        font-size: 6rem;
    }
}
/* ==== Treść artykułu z edytora WYSIWYG (artykul.tpl) ==== */

.artykul-tresc img {
    max-width: 100%;
    height: auto;
}

/* Śródtytuły w treści artykułu: domyślne h2/h3 Bootstrapa (2rem/1.75rem)
   są za duże obok tekstu akapitów. */
.artykul-tresc h2 {
    font-size: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: .6rem;
}

.artykul-tresc h3 {
    font-size: 1.25rem;
    margin-top: 1.4rem;
    margin-bottom: .5rem;
}

/* Listy w treści artykułu: globalne "li { list-style: none }" (menu, karty)
   usuwało punktory, więc tu wracają — punktor w kolorze serwisu, numeracja
   dla ol, mniejsze wcięcie i odstępy między pozycjami. li dziedziczy typ od
   ul/ol, więc zagnieżdżone listy dostają kółka bez dodatkowych reguł. */
.artykul-tresc ul,
.artykul-tresc ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.artykul-tresc ul {
    list-style: disc outside;
}

.artykul-tresc ul ul {
    list-style: circle outside;
}

.artykul-tresc ol {
    list-style: decimal outside;
}

.artykul-tresc li {
    list-style: inherit;
    margin-bottom: .3rem;
    padding-left: .2rem;
}

.artykul-tresc li::marker {
    color: #3b7ddd;
}

.artykul-tresc li > ul,
.artykul-tresc li > ol {
    margin-top: .3rem;
    margin-bottom: .3rem;
}

/* Tabele z edytora WYSIWYG — wygląd z CSS strony, nie z inline stylów
   (sanityzuj_html() nie przepuszcza border-collapse itp.). */
.artykul-tresc table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.artykul-tresc th,
.artykul-tresc td {
    border: 1px solid #dee2e6;
    padding: .4rem .6rem;
}
