/* Override para garantir que o menu mobile funcione corretamente */
#mobile-menu.active {
  transform: translateX(0) !important;
  display: block !important;
  visibility: visible !important;
  
  /* Estilo traveldesigner.com - ocupar toda a tela */
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  background: #1a1a1a !important;
  z-index: 99999 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Adicionar logotipo no menu móvel */
#mobile-menu.active::before {
  content: '';
  position: fixed !important;
  top: 20px !important;
  left: 20px !important;
  width: 180px !important;
  height: 60px !important;
  background-image: url('../logotipos/logo_branco.png') !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: left center !important;
  z-index: 100003 !important;
  filter: none !important; /* Logo já é branco */
  display: block !important;
}

/* Adicionar botão X de fechar */
#mobile-menu.active::after {
  content: 'X';
  position: fixed !important;
  top: 55px !important;
  right: 25px !important;
  font-size: 24px !important;
  color: #fff !important;
  cursor: pointer !important;
  z-index: 100003 !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  font-family: Arial, sans-serif !important;
  display: block !important;
}

/* Estilo da lista do menu móvel */
#mobile-menu ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 25px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  position: fixed !important;
  top: 120px !important;
  left: 20px !important;
  width: auto !important;
  text-align: left !important;
}

#mobile-menu li {
  width: auto !important;
  padding: 0 !important;
  border: none !important;
  text-align: left !important;
  margin: 0 !important;
}

#mobile-menu a {
  color: #fff !important;
  text-decoration: none !important;
  font-size: 28px !important;
  font-weight: 500 !important;
  letter-spacing: 1px !important;
  display: block !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  transition: opacity 0.3s ease !important;
  font-family: 'General Sans', 'Montserrat', system-ui, -apple-system, sans-serif !important;
  text-align: left !important;
  width: auto !important;
}

#mobile-menu a:hover {
  opacity: 0.7 !important;
  color: #fff !important;
}

/* Esconder botão "Informe-se agora" em mobile */
#mobile-menu .btn-mobile-informe {
  display: none !important;
}

/* Garantir que o menu ocupe toda a tela e bloqueie scroll */
body:has(#mobile-menu.active),
body.menu-open {
  overflow: hidden !important;
}

#mobile-menu.active {
  box-sizing: border-box !important;
}

/* Garantir que o botão hambúrguer fique visível */
.mobile-menu-toggle, 
#mobile-menu-toggle {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 9999 !important;
  position: absolute !important;
}

/* Posições do botão hambúrguer por tamanho de tela */
@media (max-width: 767px) {
  .mobile-menu-toggle, 
  #mobile-menu-toggle {
    left: 20px !important;
    top: 26px !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .mobile-menu-toggle, 
  #mobile-menu-toggle {
    left: 15px !important;
    top: 20px !important;
  }
}

@media (min-width: 992px) {
  .mobile-menu-toggle, 
  #mobile-menu-toggle {
    display: block !important;
    left: -120px !important;
    top: 26px !important;
  }
}

/* Transformar VISUALMENTE o menu lateral em overlay preto - MANTENDO funcionalidade */
@media (max-width: 991px) {
  /* Garantir que o botão hambúrguer seja visível */
  .mobile-menu-toggle, 
  #mobile-menu-toggle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  /* Transformar menu lateral branco em overlay preto APENAS VISUAL */
  #mobile-menu.active {
    /* Posição de overlay de tela cheia */
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    
    /* Visual igual ao overlay preto */
    background: #1E3347  !important;
    z-index: 99999 !important;
    
    /* Layout alinhado à esquerda */
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    
    /* Resetar transform do menu lateral */
    transform: none !important;
    
    /* Sem rolagem */
    overflow: hidden !important;
  }
  
  /* Logotipo específico para mobile */
  #mobile-menu.active::before {
    content: '';
    position: fixed !important;
    top: 0px !important;
    left: 20px !important;
    width: 260px !important;
    height: 260px !important;
    background-image: url('../logotipos/logo_branco.png') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: left center !important;
    z-index: 999999 !important;
    filter: none !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Estilizar a lista do menu */
  #mobile-menu.active ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 160px 20px 20px 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 25px !important;
    width: auto !important;
    max-width: 400px !important;
  }
  
  /* Estilizar os links principais */
  #mobile-menu.active ul > li > a {
    color: #fff !important;
    font-family: 'General Sans', 'Montserrat', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    letter-spacing: .4px !important;
    text-decoration: none !important;
    padding: 6px 0 !important;
    display: block !important;
    text-align: left !important;
  }
  
  /* Estilizar submenus quando aparecem */
  #mobile-menu.active .mobile-submenu {
    background: transparent !important;
    border: none !important;
    margin-top: 10px !important;
    padding: 0 !important;
    display: block !important;
  }
  
  #mobile-menu.active .mobile-submenu a {
    color: #d6a854 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    padding: 4px 0 !important;
  }
  
  /* Bloquear scroll do body */
  body:has(#mobile-menu.active) {
    overflow: hidden !important;
  }
}
