/* ═══════════════════════════════
   NAVBAR — Top & Bottom navigation
   KMK Munai Design System
   ═══════════════════════════════ */

/* Brand red is reserved for the primary CTA, the active nav item, and
   the logo — the top bar itself and the location dropdown stay
   neutral so red keeps its meaning instead of becoming wallpaper. */
.location-frame {
    display: flex;
    width: 100vw;
    height: var(--nav-top, 64px);
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-md, 16px);
    position: fixed;
    top: 0;
    z-index: 999;
    background: var(--color-brand-white, #fff);
    border-bottom: 1px solid var(--color-border, #E4E4E7);
    box-shadow: var(--shadow-card);
    box-sizing: border-box;
}

.location {
    display: flex;
    align-items: center;
    height: 38px;
    padding: 0 var(--space-sm, 8px);
    border-radius: var(--radius-small, 8px);
    border: 1.5px solid var(--color-border, #E4E4E7);
    background: var(--color-surface-card, #fff);
    box-sizing: border-box;
    transition: border-color var(--dur-fast, 0.15s), box-shadow var(--dur-fast, 0.15s);
}

.location:focus-within {
    border-color: var(--color-brand-red, #CC2020);
    box-shadow: var(--focus-ring, 0 0 0 3px rgba(204,32,32,0.18));
}

.location-title {
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    border: none;
    outline: none;
    color: var(--color-text-primary, #18181B);
    font-family: var(--font, 'Montserrat', sans-serif);
    font-size: var(--font-size-md, 16px);
    font-weight: var(--fw-semibold, 600);
    line-height: 1;
    cursor: pointer;
    max-width: 132px;
    padding-right: 16px;
    background-image: var(--icon-chevron-down);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 12px;
}

.nav_btn_frame {
    min-width: 60px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

/* Enlarge the "Menu" trigger's tap target to the full bar height
   (scoped to the <a>, not the #on_of status badge which shares .nav
   and should stay a small centered pill) */
.nav_btn_frame a.nav {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ── Bottom navigation ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    width: 100vw;
    height: var(--nav-bottom, 70px);
    justify-content: space-around;
    align-items: center;
    z-index: 999;
    background: var(--color-brand-white, #fff);
    border-top: 1px solid var(--color-border, #E2E2E2);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
}

.nav {
    color: var(--color-text-secondary, #777);
    font-family: var(--font, 'Montserrat', sans-serif);
    font-size: var(--font-size-sm, 13px);
    font-weight: 500;
    text-decoration: none;
    transition: color var(--dur-fast, 0.15s), opacity var(--dur-fast, 0.15s);
    padding: 8px 12px;
    border-radius: var(--radius-xs, 6px);
    position: relative;
}

.nav:hover {
    color: var(--color-brand-black, #111);
}

.nav:active {
    opacity: 0.6;
}

/* Tab items: icon above label, filling the bar's full height for a
   large tap target. Active tab (.nav.active) is the only place
   outside the primary CTA/logo that uses brand red — everything else
   is neutral gray so the active state actually reads as "selected". */
.bottom-nav .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    align-self: stretch;
    flex: 1;
    border-radius: 0;
    font-size: var(--font-size-xs, 12px);
    padding: 8px 4px;
}

.bottom-nav .nav .nav-icon {
    width: 22px;
    height: 22px;
}

.bottom-nav .nav.active {
    color: var(--color-brand-red, #CC2020) !important;
    font-weight: var(--fw-semibold, 600) !important;
}

.bottom-nav .nav.active .nav-icon {
    color: var(--color-brand-red, #CC2020);
}

.bold {
    font-weight: 600;
}

/* Online/offline status indicator */
#on_of {
    font-size: var(--font-size-xs, 12px);
    font-weight: var(--fw-semibold, 600);
    padding: 4px 12px;
    border-radius: var(--radius-xs, 6px);
    background: var(--color-brand-red-light, #FFF0F0);
    color: var(--color-brand-red, #CC2020);
}
