/* YNS mobile bottom navigation — icons use site primary + sky accent */
:root {
    --primary: #174487;
    --secondary: #2563eb;
    --nav-icon-muted: #ffffff;
    --nav-icon-active: #ffffff;
    --nav-accent: #ffffff;
}

.instagram-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, var(--primary, #174487) 0%, #123d6e 100%);
    border-top: 1px solid rgba(147, 197, 253, 0.2);
    padding: 6px 0;
    z-index: 9999;
    display: flex;
    visibility: visible;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.15);
}

.instagram-nav-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 8px;
    gap: 4px;
}

.instagram-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 16px;
    min-width: 0;
    flex: 1;
    max-width: 120px;
    text-decoration: none;
    color: var(--nav-icon-muted);
    -webkit-tap-highlight-color: transparent;
}

.instagram-nav-item:hover {
    transform: scale(1.05);
}

.instagram-nav-item.active {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.instagram-nav-item.active .instagram-nav-icon {
    transform: scale(1.12);
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

.instagram-nav-icon {
    font-size: 28px;
    transition: all 0.2s ease;
    color: #ffffff;
}

.instagram-nav-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    line-height: 1.2;
}

.instagram-nav-item.active .instagram-nav-label {
    font-weight: 600;
    color: var(--nav-icon-active);
}

.instagram-profile-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 15px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    transition: all 0.2s ease;
}

.instagram-nav-item.active .instagram-profile-icon {
    border: 2px solid #ffffff;
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

@media screen and (max-width: 1024px) {
    html,
    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    body {
        padding-bottom: 88px !important;
    }

    .instagram-bottom-nav {
        display: flex !important;
    }

    /* Chat FAB sits above the bar on mobile */
    .chatbot-container {
        bottom: 96px !important;
        right: 16px !important;
        z-index: 9998 !important;
    }

    .chatbot-container .chatbot-toggle {
        width: 56px !important;
        height: 56px !important;
        font-size: 26px !important;
    }

    .chatbot-container .chatbot-toggle i {
        font-size: 26px !important;
        color: #fff !important;
    }
}

@media screen and (min-width: 1025px) {
    .instagram-bottom-nav {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}
