/*
Theme Name: iLOT 2.0
Author: Roland Ziemiański
Description: Nowoczesny motyw dla Izerskiej Lokalnej Organizacji Turystycznej.
Version: 1.0.0
*/

.partnerzy-ticker-wrap {
    overflow: hidden;
    width: 100%;
    display: flex;
    white-space: nowrap;
}

.partnerzy-ticker {
    display: inline-flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: scroll-partnerzy 30s linear infinite;
}

@keyframes scroll-partnerzy {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.partner-logo-item {
    flex-shrink: 0;
}

.partner-logo-item img {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: none !important;
    -webkit-filter: grayscale(0) !important;
}

/* Premium Glassmorphism Pagination */
.pagination .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    min-width: 48px;
    border-radius: 48px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: var(--ilot-blue, #0a3d73);
    font-weight: 700;
    font-family: var(--font-heading);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    box-sizing: border-box;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin: 0;
    padding: 0 15px;
}

.pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--ilot-blue), var(--ilot-green, #2d8b5b)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 10px 25px rgba(10, 61, 115, 0.25) !important;
    transform: translateY(-3px);
}

.pagination a.prev.page-numbers, 
.pagination a.next.page-numbers {
    width: auto !important;
    padding: 0 28px !important;
    border-radius: 30px !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    white-space: nowrap !important;
    line-height: 1;
}

.pagination a.page-numbers:hover {
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* --- ATOMOWE UKRYCIE TAGÓW NA MOBILE --- */
@media screen and (max-width: 768px) {
    section.mission-cinematic div.pillars-wrapper div.pillar span.pillar-tag {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        position: absolute !important;
        pointer-events: none !important;
    }
}

/* =========================================
   Wymuszenie odsunięcia treści spod menu
   ========================================= */

/* Każda podstrona bez hero: odsunięcie site-main spod fixed menu */
.site-main {
    padding-top: 100px !important;
}

/* Strona główna z hero – hero sam sobie daje 100vh, nie potrzebuje dodatkowego odsunięcia */
.home .site-main,
.front-page .site-main,
body.home .site-main,
body.page-template-front-page .site-main {
    padding-top: 0 !important;
}

/* =========================================
   Redukcja wysokości - Nagłówek i Stopka
   ========================================= */

/* Nagłówek mapy / ogólny */
.page-header {
    min-height: 300px !important; 
    height: 300px !important;
    padding-top: 100px !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    aspect-ratio: auto !important;
    margin-top: -100px !important; /* Cofnij padding-top od site-main, bo page-header sam obsługuje */
}

.page-header .page-title,
.page-header h1 {
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-size: 2.2rem !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

/* Sekcja Nieba (Footer) */
.dark-sky-section {
    padding: 60px 0 !important;
}

.dark-sky-heading {
    margin-bottom: 20px !important;
}

.stars-layer {
    height: 100% !important;
}

/* Mobile Fix */
@media (max-width: 768px) {
    .page-header {
        padding-top: 90px !important;
        padding-bottom: 30px !important;
    }
    .dark-sky-section {
        padding: 40px 0 !important;
    }
}

/* --- MAPA REGIONU: FILTRY AKORDEON (MOBILE) --- */
@media (max-width: 768px) {
    .map-sidebar-overlay {
        position: absolute !important;
        top: 20px !important;
        bottom: auto !important;
        left: 5% !important;
        width: 90% !important;
        padding: 15px 20px !important;
        border-radius: 12px !important;
        z-index: 1000 !important;
        box-shadow: 0 5px 20px rgba(0,0,0,0.15) !important;
    }

    #map-filter-toggle {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        cursor: pointer;
        margin: 0 !important;
        padding: 0 !important;
    }

    #map-filter-toggle h3 {
        margin: 0 !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        color: var(--ilot-blue, #0a3d73);
    }

    #map-filter-toggle .ilot-divider-gold {
        display: none !important;
    }

    #map-filter-toggle .toggle-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.3s ease;
        color: var(--ilot-blue, #0a3d73);
        transform: rotate(0deg); /* Domyślnie strzałka w dół (zamknięte) */
    }

    #map-filter-toggle.open .toggle-icon {
        transform: rotate(180deg); /* Po otwarciu strzałka w górę */
    }

    #map-filters-list {
        max-height: 0; /* Domyślnie ZAMKNIĘTE */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
        width: 100% !important;
        white-space: normal !important;
    }

    #map-filters-list.open {
        max-height: 500px !important;
        margin-top: 15px !important;
    }

    #map-filters-list .filter-item {
        background: transparent !important;
        padding: 12px 10px !important;
        margin: 0 !important;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        font-size: 14px !important;
        border-radius: 6px !important;
        color: #333 !important;
        text-align: left !important;
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
        float: none !important;
        clear: both !important;
    }
    
    #map-filters-list .filter-item:last-child {
        border-bottom: none;
    }

    #map-filters-list .filter-item.active {
        background: rgba(10, 61, 115, 0.1) !important; /* Jasnoniebieskie tło */
        color: var(--ilot-blue, #0a3d73) !important;
        font-weight: 700 !important;
    }
}

/* Desktop: Ukryj ikonę strzałki i wyłącz akordeon */
@media (min-width: 769px) {
    #map-filter-toggle .toggle-icon {
        display: none !important;
    }
    #map-filters-list {
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Usuwanie obwódki z hamburgera */
.hamburger-btn {
    border: none !important;
    outline: none !important;
}
