/* =========================================================
   Dolny pasek na telefonie + menu "Więcej" (naTeneryfie.pl)
   ========================================================= */
.ntb-bar, .ntb-sheet, .ntb-backdrop { display: none; }

@media (max-width: 860px) {
    body { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }

    .ntb-bar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: end;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 1000;
        padding: 8px 6px 7px;
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-radius: 26px;
        box-shadow: 0 10px 30px rgba(3, 105, 161, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08);
        border: 1px solid rgba(2, 132, 199, 0.08);
    }
    .ntb-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;
        padding: 2px 0;
        font: 600 11.5px/1.15 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
        color: #0c4a6e;
        text-decoration: none;
        background: none;
        border: 0;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }
    .ntb-item svg { width: 25px; height: 25px; stroke: currentColor; }
    .ntb-item .ntb-ico { display: flex; align-items: center; justify-content: center; height: 28px; }
    .ntb-item.is-active { color: #0284c7; }
    .ntb-temp { font-size: 15px; font-weight: 800; letter-spacing: -0.3px; }

    /* Wyróżniony środkowy przycisk: auto */
    .ntb-item.ntb-main .ntb-ico {
        width: 54px;
        height: 54px;
        margin-top: -28px;
        border-radius: 50%;
        color: #ffffff;
        background: linear-gradient(145deg, #fbbf24 0%, #f59e0b 45%, #f97316 100%);
        box-shadow: 0 8px 18px rgba(249, 115, 22, 0.38);
        border: 4px solid #ffffff;
    }
    .ntb-item.ntb-main svg { width: 26px; height: 26px; }
    .ntb-item.ntb-main span:last-child { color: #c2410c; }

    /* Menu "Więcej" */
    .ntb-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1001;
        background: rgba(15, 23, 42, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }
    .ntb-sheet {
        display: block;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1002;
        max-height: 88vh;
        overflow-y: auto;
        padding: 10px 18px calc(22px + env(safe-area-inset-bottom));
        background: #ffffff;
        border-radius: 26px 26px 0 0;
        transform: translateY(105%);
        transition: transform 0.25s ease;
        visibility: hidden;
    }
    .ntb-open .ntb-backdrop { opacity: 1; pointer-events: auto; }
    .ntb-open .ntb-sheet { transform: translateY(0); visibility: visible; }
    body.ntb-open { overflow: hidden; }

    .ntb-handle { width: 46px; height: 5px; margin: 0 auto 12px; border-radius: 3px; background: #cbd5e1; }
    .ntb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .ntb-head strong { font-size: 24px; color: #0c4a6e; }
    .ntb-close {
        width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer;
        background: #f1f5f9; color: #0f172a; display: flex; align-items: center; justify-content: center;
    }
    .ntb-close svg { width: 20px; height: 20px; stroke: currentColor; }

    /* Karta pogody na górze menu */
    .ntb-weather {
        display: flex; align-items: center; gap: 14px;
        padding: 14px 16px; margin-bottom: 14px; border-radius: 20px;
        color: #ffffff; text-decoration: none;
        background: linear-gradient(120deg, #0284c7 0%, #06b6d4 55%, #fbbf24 130%);
        box-shadow: 0 8px 22px rgba(2, 132, 199, 0.28);
    }
    .ntb-weather-ico { font-size: 34px; line-height: 1; }
    .ntb-weather b { display: block; font-size: 18px; }
    .ntb-weather small { display: block; font-size: 13.5px; opacity: 0.95; margin-top: 2px; }
    .ntb-weather .ntb-arrow { margin-left: auto; font-size: 22px; opacity: 0.9; }

    .ntb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
    .ntb-tile {
        display: flex; flex-direction: column; align-items: center; gap: 8px;
        padding: 14px 6px 12px; border-radius: 18px; text-decoration: none;
        background: #f0f9ff; color: #0c4a6e; font-weight: 700; font-size: 13.5px; text-align: center;
    }
    .ntb-tile .ntb-tile-ico {
        width: 46px; height: 46px; border-radius: 14px; background: #ffffff;
        display: flex; align-items: center; justify-content: center; color: #0284c7;
        box-shadow: 0 2px 6px rgba(2, 132, 199, 0.12);
    }
    .ntb-tile svg { width: 24px; height: 24px; stroke: currentColor; }
    .ntb-tile.sand { background: #fff7ed; }
    .ntb-tile.sand .ntb-tile-ico { color: #ea580c; }
    .ntb-tile.green { background: #f0fdf4; }
    .ntb-tile.green .ntb-tile-ico { color: #16a34a; }
}

@media (prefers-reduced-motion: reduce) {
    .ntb-sheet, .ntb-backdrop { transition: none; }
}
