/* =========================================================
   MOVE&TRY — JAVNA PWA NAVIGACIJA
   ========================================================= */

#moveandtry-app-nav {
    position: fixed;
    z-index: 2147483000;

    left: 0;
    right: 0;
    bottom: 0;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;

    background: rgba(247, 246, 242, 0.98);
    border-top: 1px solid #dcded6;

    padding:
        10px
        max(8px, env(safe-area-inset-right))
        calc(10px + env(safe-area-inset-bottom))
        max(8px, env(safe-area-inset-left));

    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(12px);

    font-family: 'Manrope', Arial, sans-serif;
}

/* NAVIGATION ITEMS */

#moveandtry-app-nav a {
    min-width: 0;
    min-height: 45px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
    padding: 3px 1px;

    color: #697067;
    text-decoration: none;

    font-size: 9px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;

    background: transparent;
    border: 0;
}

#moveandtry-app-nav a[aria-current="page"] {
    color: #1f2a18;
}

#moveandtry-app-nav a:focus-visible {
    outline: 2px solid #758b6b;
    outline-offset: -2px;
}

/* ICONS */

#moveandtry-app-nav svg {
    width: 22px;
    height: 22px;

    flex-shrink: 0;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;
}

/* WHERE TO TRY — CENTER ITEM */
/* Larger icon, but active color only when selected */

#moveandtry-app-nav a:nth-child(3) svg {
    width: 24px;
    height: 24px;
}

/* SPACE FOR BOTTOM NAVIGATION */

body.moveandtry-app-active {
    padding-bottom:
        calc(84px + env(safe-area-inset-bottom)) !important;
}

html.moveandtry-public-app-page body {
    padding-bottom:
        calc(84px + env(safe-area-inset-bottom)) !important;
}

/* HIDE WEBSITE HEADER ONLY INSIDE PUBLIC PWA */

body.moveandtry-app-active .site-header {
    display: none !important;
}

/* HIDE WEBSITE MOBILE MENU */

body.moveandtry-app-active .mobile-menu {
    display: none !important;
}

body.moveandtry-app-active .menu-toggle,
body.moveandtry-app-active .desktop-nav,
body.moveandtry-app-active .header-actions {
    display: none !important;
}

/* DESKTOP / TABLET */

@media (min-width: 720px) {
    #moveandtry-app-nav {
        left: 50%;
        right: auto;

        transform: translateX(-50%);
        width: min(720px, 100%);
    }
}

/* SMALL PHONES */

@media (max-width: 360px) {
    #moveandtry-app-nav a {
        font-size: 8px;
    }

    #moveandtry-app-nav svg {
        width: 20px;
        height: 20px;
    }
}
