/* --- ESTILOS BASE DA NAVBAR (SEUS ESTILOS ORIGINAIS) --- */
nav {
    display: flex;
    justify-content: space-between; /* Distribui os elementos */
    align-items: center;
    height: 80px;
    padding: 10px 20px;
    background-color: #fff;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    position: relative; /* Importante para o menu dropdown */
}

/* Logo */
#logo--wrapper {
    display: flex;
    align-items: center;
}

#logo--wrapper a {
    text-decoration: none;
    color: inherit;
}

#logo--wrapper img {
    height: 60px; /* Um pouco menor para caber melhor */
    width: auto; /* Mantém a proporção */
}

/* Container principal dos links (novo) */
.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Seletor de cidade */
#nav--city {
    display: flex;
    justify-content: center;
}

#nav--city select {
    border: none;
    padding: 10px 15px;
    border-radius: 20px;
    background-color: #f8f9fa; /* Fundo um pouco diferente para destaque */
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    cursor: pointer;
    text-align: center;
}

/* Botões de login/logout */
#nav--col3 {
    display: flex;
    gap: 10px;
}

/* Ajuste nos botões */
.btn {
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
}

.btn--secondary {
    background-color: transparent;
    color: #333;
    border: 1px solid #ddd;
}

.btn--secondary:hover {
    background-color: #f8f9fa;
}

.btn--primary {
    background-color: black;
    color: white;
    border: none;
}

.btn--primary:hover {
    opacity: 0.8;
}

/* --- ESTILOS DO MENU HAMBÚRGUER (NOVO) --- */
.hamburger-menu {
    display: none; /* Escondido por padrão no desktop */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 10px;
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease-in-out;
}


/* --- LAYOUT RESPONSIVO PARA CELULAR (NOVO) --- */
@media (max-width: 800px) {
    
    /* Mostra o botão hambúrguer */
    .hamburger-menu {
        display: flex;
    }

    /* Esconde os links de navegação da forma tradicional */
    .nav-links {
        display: none; /* Fica escondido até ser ativado */
        position: absolute;
        top: 80px; /* Altura da navbar, para aparecer logo abaixo */
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #f0f0f0;
    }

    /* Regra que o JavaScript usa para mostrar o menu */
    .nav-links.nav-links--active {
        display: flex;
    }
    
    /* Alinha os itens do menu dropdown verticalmente */
    #nav--city, #nav--col3 {
        padding: 10px 0;
    }

    /* Animação do botão hambúrguer para um "X" quando ativo */
    .hamburger-menu.hamburger-menu--active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger-menu.hamburger-menu--active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.hamburger-menu--active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}