
        /* Layout dla układu ze stopką zawsze na dole */
        html, body {
            height: 100%;
            margin: 0;
            padding: 0;
        }
        main {
            height: 100%;
            margin: 0;
            padding: 0;
        }

        body {
            display: flex;
            flex-direction: column;
        }

        .main-content {
            flex: 1 0 auto;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        /* Wymuszenie widoczności menu na desktopie (≥992px) – zabezpieczenie przed ukryciem */
        @media (min-width: 992px) {
            .navbar-expand-lg .navbar-collapse,
            #navbarWeatherMenu {
                display: flex !important;
                visibility: visible !important;
            }
        }

        footer {
            flex-shrink: 0;
            background: #f8f9fa;
            border-top: 1px solid #e9ecef;
            padding: 0.5rem 0;
        }

        /* Dla mapy pogodowej - specyficzne style */
        .weather-container {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .weather-content {
            flex: 1;
            overflow: hidden;
        }

        .weather-row {
            height: 100%;
            display: flex;
            gap: 0.5rem;
        }

        .map-panel {
            position: relative;
            flex: 1;
        }

        #weather-map {
            height: 100% !important;
            width: 100% !important;
        }

        /* Data i godzina na mapie */
        .weather-datetime {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.9);
            padding: 5px 15px;
            border-radius: 20px;
            font-weight: bold;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            z-index: 1000;
        }

        /* Informacja o dacie i wersji GFS */
        .weather-date-time-info {
            position: absolute;
            top: 10px;
            left: 10px;
            background: rgba(255, 255, 255, 0.95);
            padding: 4px 8px;
            border-radius: 4px;
            font-weight: normal;
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
            z-index: 1000;
            text-align: left;
            min-width: 300px;
            /* POPRAWKA: Usuń margines i dostosuj do okna mapy */
            max-width: calc(100% - 40px);
            line-height: 1.3;
        }
        
        /* Info o wschodzie/zachodzie słońca na środku górnej krawędzi */
        .weather-sun-info {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(255, 255, 255, 0.95);
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 13px;
            z-index: 1000;
            box-shadow: 0 1px 3px rgba(0,0,0,0.15);
            border: 1px solid rgba(0, 115, 183, 0.2);
            display: flex;
            gap: 12px;
            align-items: center;
        }
        
        .weather-sun-info .sun-info {
            display: flex;
            align-items: center;
            gap: 4px;
            white-space: nowrap;
        }
        
        .weather-sun-info .sun-info i {
            font-size: 12px;
        }

        .weather-date-time-info .forecast-date {
            font-size: 12px;
            font-weight: normal;
            color: #333;
            margin-bottom: 2px;
        }

        .weather-date-time-info .gfs-info {
            font-size: 11px;
            color: #666;
            font-weight: normal;
        }

        /* Strzałki nawigacji na mapie */
        .map-arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 100px;
            height: 100px;
            padding: 20px;
            background: transparent;
            border: none;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 9999999 !important;
            transition: all 0.3s ease;
            box-shadow: none;
            pointer-events: auto !important;
        }

        /* Widoczna część strzałki - wewnętrzny element */
        .map-arrow::before {
            content: '';
            position: absolute;
            width: 40px;
            height: 40px;
            background: rgba(255, 255, 255, 0.9);
            border: 2px solid #007bff;
            border-radius: 50%;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
            transition: all 0.3s ease;
            pointer-events: none;
        }

        .map-arrow:hover::before {
            background: rgba(255, 255, 255, 1);
            transform: scale(1.1);
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        }

        .map-arrow:disabled,
        .map-arrow[style*="opacity: 0.3"] {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .map-arrow[style*="opacity: 0.3"]::before {
            background: rgba(200, 200, 200, 0.5);
            border-color: #ccc;
        }

        .map-arrow[style*="opacity: 0.3"]:hover::before {
            transform: none;
        }

        .map-arrow-left {
            left: 10px;
        }

        .map-arrow-right {
            right: 10px;
        }

        .map-arrow i {
            font-size: 16px;
            color: #333;
            pointer-events: none;
        }
        .btn-menu {
            border: 1px solid #eee;
            border-radius: 5px;
            padding: 5px;
            margin: 5px;
            background: white;
            /* Jawny kolor: .navbar-dark nadaje jasny color — na białym tle tekst był niewidoczny (Edge/Safari). */
            color: #212529;
            -webkit-text-fill-color: #212529;
            /* efekt 3D: cień i lekka perspektywa, podobnie jak w .logo-cumulus */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transform-style: preserve-3d;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .btn-menu:hover {
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
            color: #0d6efd;
            -webkit-text-fill-color: #0d6efd;
        }
        
        .btn-menu:active {
            transform: scale(0.98) translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* Nazwa użytkownika w menu – ma zostać „primary”, nie ciemnoszara */
        .navbar.navbar-dark .btn-menu.text-primary,
        .navbar.navbar-dark #userDropdown.btn-menu {
            color: #0d6efd !important;
            -webkit-text-fill-color: #0d6efd !important;
        }

        a.btn-menu:visited:not(.text-primary) {
            color: #212529;
            -webkit-text-fill-color: #212529;
        }

        /* Belka nad mapą Leaflet – wyższy stacking + kontekst, żeby nic z mapy nie „przykrywało” klikalnej warstwy */
        nav.navbar.navbar-dark.header-gradient {
            position: relative;
            z-index: 1200 !important;
            isolation: isolate;
        }

        /* Hamburger: widoczna obwódka niezależnie od odcienia tła klienta */
        .navbar.navbar-dark .navbar-weather-toggler {
            border-color: rgba(255, 255, 255, 0.85);
        }
        
        /* Style dla przycisków w panelu admina */
        .admin-panel-btn {
            background-color: #2563eb;
            color: white;
            border: 1px solid #1e40af;
            padding: 8px 16px;
            border-radius: 5px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
            transform-style: preserve-3d;
            cursor: pointer;
            width: 100%;
        }
        
        .admin-panel-btn:hover {
            background-color: #1d4ed8;
            transform: scale(1.05) translateY(-2px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
        }
        
        .admin-panel-btn:active {
            transform: scale(0.98) translateY(0);
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        /* Dwa logo firmy na środku górnej belki */
        .navbar-logos-center {
            z-index: 1;
            pointer-events: auto;
        }
        .navbar-logos-center-link {
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* Wiersz przycisków w rozwiniętym menu — zawsze zajmuje szerokość belki (bez ścinania do 0 przez flex) */
        .navbar-weather-inner {
            box-sizing: border-box;
        }

        /* Menu pogody – hamburger na mobile: jeden rząd przycisków (oszczędność miejsca) */
        @media (max-width: 991.98px) {
            .navbar-logos-center {
                display: none !important;
            }
            #navbarWeatherMenu {
                padding: 0.4rem 0 0.5rem;
                margin-top: 0.25rem;
                border-top: 1px solid rgba(255, 255, 255, 0.2);
            }
            #navbarWeatherMenu.collapse.show {
                flex-basis: 100% !important;
                width: 100% !important;
            }
            #navbarWeatherMenu .navbar-weather-inner,
            #navbarWeatherMenu .d-flex {
                flex-direction: row;
                /* Jedna linia na mobile; przy wielu linkach (zalogowany) — przewijanie w poziomie zamiast wysokiego stosu */
                flex-wrap: nowrap;
                align-items: stretch !important;
                justify-content: stretch;
                gap: 0.3rem;
                width: 100% !important;
                max-width: 100%;
                margin-left: 0 !important;
                margin-right: 0 !important;
                min-height: 2.4rem;
                visibility: visible !important;
                opacity: 1 !important;
                overflow-x: auto;
                overflow-y: hidden;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: thin;
            }
            /* Trzy (lub więcej) kolumn w jednym rzędzie — równy podział, min. szerokość chroni przed „zerem” jak wcześniej */
            #navbarWeatherMenu .navbar-weather-inner > a.btn-menu,
            #navbarWeatherMenu .navbar-weather-inner > .dropdown,
            #navbarWeatherMenu .d-flex > a.btn-menu,
            #navbarWeatherMenu .d-flex > .dropdown {
                flex: 1 1 0;
                min-width: 2.75rem;
                max-width: none;
            }
            /* Jedna wysokość przycisków — bez width:100% (to układało kafle jeden pod drugim) */
            #navbarWeatherMenu .btn-menu,
            #navbarWeatherMenu .dropdown .btn-menu,
            #navbarWeatherMenu .dropdown .btn-link {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                text-align: center;
                padding: 0.3rem 0.25rem;
                margin: 0;
                border-radius: 6px;
                font-size: 0.75rem;
                line-height: 1.15;
                width: auto;
                min-width: 0;
                min-height: 2.4rem;
                box-sizing: border-box;
            }
            #navbarWeatherMenu .dropdown {
                position: relative;
                display: flex;
                flex-direction: column;
                align-self: stretch;
                flex: 1 1 0;
                min-width: 2.75rem;
            }
            #navbarWeatherMenu .dropdown > .btn-menu {
                flex: 1 1 auto;
                width: 100%;
                min-height: 2.4rem;
                height: 100%;
            }
            #navbarWeatherMenu .dropdown .btn-menu.dropdown-toggle::after {
                margin-left: 0.15rem;
                vertical-align: 0.1em;
            }
            /* Środek: tylko ikona „i” – bez strzałki dropdownu, ta sama wysokość co sąsiedzi */
            #navbarWeatherMenu #linksDropdown.dropdown-toggle::after {
                display: none !important;
            }
            #navbarWeatherMenu #linksDropdown {
                padding-left: 0.25rem;
                padding-right: 0.25rem;
            }
            #navbarWeatherMenu .dropdown-menu {
                position: absolute !important;
                top: 100%;
                left: 0;
                right: 0;
                width: auto;
                min-width: 11rem;
                margin-top: 0.2rem;
                float: none;
                box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
                border: 1px solid rgba(0, 0, 0, 0.08);
                background: #fff;
                z-index: 3000;
            }
            #navbarWeatherMenu .dropdown-menu-end {
                left: auto;
                right: 0;
            }
            #navbarWeatherMenu .dropdown-item {
                color: #212529;
                padding: 0.45rem 0.75rem;
            }
            #navbarWeatherMenu .dropdown-item:hover,
            #navbarWeatherMenu .dropdown-item:focus {
                background: rgba(13, 110, 253, 0.08);
                color: #0d6efd;
            }
            #navbarWeatherMenu .dropdown-header {
                color: #6c757d;
                font-size: 0.8rem;
            }
            #navbarWeatherMenu .dropdown-divider {
                border-color: rgba(0, 0, 0, 0.1);
            }
            #navbarWeatherMenu .me-3 {
                margin-right: 0 !important;
                margin-bottom: 0 !important;
            }
            /* Ikona „i” jak wysokość tekstu na sąsiednich przyciskach (ok. 1rem) */
            #navbarWeatherMenu .fa-xl {
                font-size: 1.05rem !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }
            #navbarWeatherMenu #linksDropdown .fa-info-circle {
                font-size: 1rem !important;
                line-height: 1;
                vertical-align: middle;
            }
            #navbarWeatherMenu #userDropdown {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            /* Otwarte menu górne: mapa nie odbiera dotknięć (CDN/cache bez tap:false, „duchy” kliknięć) */
            body.navbar-weather-open #weather-map,
            body.navbar-weather-open #weather-map .leaflet-container,
            body.navbar-weather-open #weather-map .leaflet-control-container,
            body.navbar-weather-open #weather-map .leaflet-pane {
                pointer-events: none !important;
            }
        }

        /* Pasek informacji o cookies – zawsze na dole ekranu */
        .cookie-banner {
            position: fixed !important;
            bottom: 0 !important;
            left: 0 !important;
            right: 0 !important;
            z-index: 10000 !important;
            padding: 1rem 0;
            box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
            background: var(--header-bg-color);
            background: linear-gradient(180deg, var(--header-bg-end-color) 0%, var(--header-bg-color) 100%);
            border-top: 2px solid rgba(255, 255, 255, 0.2);
        }
        .cookie-banner__inner {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }
        .cookie-banner__content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 1.5rem;
            flex-wrap: wrap;
        }
        .cookie-banner__text {
            margin: 0;
            color: var(--header-text-color);
            font-size: 0.95rem;
            line-height: 1.5;
            flex: 1;
            min-width: 200px;
        }
        .cookie-banner__icon {
            margin-right: 0.35rem;
            opacity: 0.9;
        }
        .cookie-banner__link {
            color: var(--header-text-color);
            text-decoration: underline;
            font-weight: 600;
            white-space: nowrap;
        }
        .cookie-banner__link:hover {
            color: #fff;
            text-decoration: underline;
        }
        .cookie-banner__btn {
            flex-shrink: 0;
            padding: 0.6rem 1.5rem;
            border-radius: 8px;
            border: 1px solid rgba(255, 255, 255, 0.4);
            background: rgba(255, 255, 255, 0.95);
            color: var(--header-bg-color);
            font-weight: 600;
            font-size: 0.95rem;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
        }
        .cookie-banner__btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
            background: #fff;
        }
        .cookie-banner__btn:active {
            transform: translateY(0);
        }
        .cookie-banner[aria-hidden="true"] {
            display: none !important;
        }
        @media (max-width: 576px) {
            .cookie-banner__content {
                flex-direction: column;
                align-items: stretch;
                text-align: center;
            }
            .cookie-banner__btn {
                align-self: center;
            }
        }
